.story-page{max-width:760px;color:var(--ink);margin:0 auto;padding:16px 16px 96px}.story-toolbar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.story-toolbar .text-link,.story-toolbar a{color:var(--accent);cursor:pointer;background:0 0;border:0;padding:6px 0;font-size:15px}.story-list-wrap,.story-reader,.story-locked,.story-report,.story-collection-group,.story-studio-item,.story-income,.story-editor{background:var(--solid);border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 28px #3c285a14}.story-list-wrap{padding:20px}.story-list-head{align-items:center;gap:14px;margin-bottom:14px;display:flex}.story-list-head h1{margin:2px 0;font-size:24px}.story-list-head small,.story-list-head p{color:var(--muted);margin:0;font-size:13px}.story-face{border-radius:50%;flex:0 0 56px;place-items:center;width:56px;height:56px;font-weight:700;display:grid;overflow:hidden}.story-face img{object-fit:cover;width:100%;height:100%}.story-chapters{gap:10px;margin:0 0 14px;padding:0;list-style:none;display:grid}.story-chapter{text-align:left;border:1px solid var(--line);width:100%;color:var(--ink);cursor:pointer;background:0 0;border-radius:16px;align-items:center;gap:12px;min-height:56px;padding:12px 14px;display:flex}.story-chapter:hover:not(:disabled){border-color:var(--accent)}.story-chapter:disabled{opacity:.6;cursor:default}.story-chapter-no{background:var(--selected,#7d5a991f);height:30px;color:var(--accent);border-radius:50%;flex:0 0 30px;place-items:center;font-size:13px;font-weight:700;display:grid}.story-chapter-main{flex:1;gap:2px;min-width:0;display:grid}.story-chapter-main b{font-size:16px}.story-chapter-main small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.story-chip{border:1px solid var(--line);color:var(--muted);white-space:nowrap;border-radius:999px;flex:none;padding:4px 10px;font-size:12px}.story-chip.ok{color:#2f7a52;border-color:#2f7a5259}.story-chip.stardust{color:#9a6b12;border-color:#9a6b1259}.story-chip.rounds{color:var(--accent)}:root[data-theme=dark] .story-chip.ok{color:#8fd9ae}:root[data-theme=dark] .story-chip.stardust{color:#f0c96a}.story-unavailable{color:var(--muted);margin:4px 0 0 56px;font-size:12px;display:block}.story-reader{padding:22px 22px 26px}.story-reader-head{border-bottom:1px solid var(--line);gap:4px;margin-bottom:16px;padding-bottom:14px;display:grid}.story-reader-head small{color:var(--muted)}.story-reader-head h1{margin:0;font-size:24px;line-height:1.4}.story-mode{border:1px solid var(--line);border-radius:999px;justify-self:start;margin-top:8px;display:inline-flex;overflow:hidden}.story-mode button{color:var(--muted);cursor:pointer;background:0 0;border:0;min-height:34px;padding:6px 14px;font-size:13px}.story-mode button.on{background:var(--accent);color:#fff}.story-note{background:var(--selected,#7d5a991a);color:var(--muted);border-radius:12px;padding:10px 12px;font-size:14px}.story-text{letter-spacing:.02em;font-size:17px;line-height:2}.story-text.stepping{cursor:pointer;min-height:40vh}.story-paragraph{margin:0 0 1em;animation:.35s story-in}.story-paragraph .action-segment{color:var(--muted)}.story-paragraph .dialogue-segment{color:var(--ink);font-weight:600}@keyframes story-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.story-paragraph{animation:none}}.story-next-line{border:1px dashed var(--line);color:var(--accent);cursor:pointer;background:0 0;border-radius:999px;align-items:center;gap:8px;margin:8px auto 0;padding:8px 18px;font-size:14px;display:flex}.story-next-line small{color:var(--muted)}.story-image{margin:10px 0 0}.story-image-img{border-radius:14px;width:100%;height:auto;display:block}.story-end{text-align:center;color:var(--muted);gap:12px;margin-top:18px;display:grid}.story-pager{justify-content:center;gap:10px;display:flex}.story-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.story-actions .text-link{color:var(--muted);cursor:pointer;background:0 0;border:0;font-size:13px;text-decoration:underline}.story-report{gap:10px;margin-top:12px;padding:16px;display:grid}.story-locked{text-align:center;justify-items:center;gap:10px;padding:28px 20px;display:grid}.story-locked h1{margin:0;font-size:21px}.story-lock-icon{font-size:34px}.story-hint{color:var(--muted);font-style:italic}.story-card h2 small{color:var(--muted);margin-left:6px;font-size:13px;font-weight:400}.story-card-list{gap:8px;margin:8px 0 10px;padding:0;list-style:none;display:grid}.story-card-list a{color:var(--ink);align-items:center;gap:10px;padding:6px 0;text-decoration:none;display:flex}.story-card-list b{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.story-collection{gap:14px;margin-top:14px;display:grid}.story-collection-group{padding:16px 18px}.story-collection-group header{align-items:center;gap:12px;margin-bottom:8px;display:flex}.story-collection-group header small{color:var(--muted)}.story-collection-group .story-face{flex-basis:40px;width:40px;height:40px}.story-collection-group ul{gap:6px;margin:0;padding-left:20px;display:grid}.story-collection-group a{color:var(--accent)}.story-kept{color:var(--muted);font-size:12px;display:block}.story-studio{max-width:980px;margin:auto;padding:24px 16px 80px}.story-income{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:12px 0;padding:16px;display:grid}.story-income div{gap:2px;display:grid}.story-income small,.story-income span{color:var(--muted);font-size:12px}.story-income b{color:var(--ink);font-size:24px}.story-income .owed b{color:#b4483c}.debt-log{margin-top:10px;font-size:13px}.debt-log summary{cursor:pointer;color:var(--muted)}.debt-log ul{gap:4px;margin:6px 0;padding:0;list-style:none;display:grid}.debt-log li{border-bottom:1px solid var(--line);justify-content:space-between;gap:10px;padding:3px 0;display:flex}.debt-log li span{overflow-wrap:anywhere;min-width:0}.debt-log li b{white-space:nowrap}.debt-log small{color:var(--muted)}.studio-page>.story-income-card,.story-income-card{background:var(--solid);border:1px solid var(--line);color:var(--ink);-webkit-backdrop-filter:none;border-radius:20px;margin-top:20px;padding:18px 20px}.story-income-card h2{margin:0;font-size:19px}.story-income-card .story-income{box-shadow:none;background:0 0;border:0;padding:0}.story-income-table{border-collapse:collapse;width:100%;margin:4px 0 8px;font-size:14px}.story-income-table th,.story-income-table td{text-align:left;border-bottom:1px solid var(--line);padding:8px 6px}.story-income-table th{color:var(--muted);font-size:12px;font-weight:500}.story-income-table td:not(:first-child),.story-income-table th:not(:first-child){text-align:right;white-space:nowrap}.story-income-table a{color:var(--accent)}.story-studio-bar{flex-wrap:wrap;align-items:center;gap:14px;margin:14px 0;display:flex}.story-studio-list{gap:12px;padding:0;list-style:none;display:grid}.story-studio-item{padding:14px 16px}.story-studio-head{align-items:center;gap:12px;display:flex}.story-studio-head>div{flex:1;min-width:0;display:grid}.story-studio-head small{color:var(--muted);font-size:12px}.story-status{border:1px solid var(--line);white-space:nowrap;border-radius:999px;padding:3px 10px;font-size:12px}.story-status.ok{color:#2f7a52}.story-status.changed{color:#9a6b12}.story-status.off,.story-status.draft{color:var(--muted)}.story-status.bad{color:#b4483c;border-color:#b4483c66}.story-stats{color:var(--muted);margin:8px 0 0;font-size:13px}.story-stats p{margin:0}.story-stats b{color:var(--ink)}.story-studio-actions{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.story-studio-actions .secondary-button{min-height:36px;padding:0 14px}.story-editor-page{margin-top:12px}.story-editor{width:100%;color:var(--ink);gap:14px;margin:0 auto;padding:18px 20px 22px;display:grid}.story-editor-head{justify-content:space-between;align-items:center;display:flex}.story-editor-head h2{margin:0}.story-editor input,.story-editor textarea,.story-editor select{background:var(--solid);color:var(--ink);font-size:16px}.story-content-input{resize:none;overscroll-behavior:auto;touch-action:pan-y;width:100%;min-height:45vh;font-size:16px;line-height:1.9;overflow:hidden}.story-unlock-field{border:1px solid var(--line);border-radius:14px;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:10px 14px;display:flex}.story-unlock-field small{color:var(--muted);flex-basis:100%}.story-unlock-value{align-items:center;gap:8px;display:inline-flex}.story-unlock-value input{border:1px solid var(--line);border-radius:10px;width:90px;min-height:40px;padding:8px 10px}.story-editor-head h2{font-size:20px}.story-image-field{gap:8px;display:grid}.story-image-thumb{border-radius:12px;max-width:240px}.story-editor-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.story-preview-tag{color:var(--muted);font-size:13px}.story-editor .story-reader{box-shadow:none}@media (max-width:640px){.story-reader{border-radius:16px;padding:18px 16px 22px}.story-text{font-size:16px}.story-unavailable{margin-left:0}.story-editor{padding:14px}.story-editor-actions .primary-button,.story-editor-actions .secondary-button{flex:1}}
