:root{--page:#faf6ef;--surface:#fff;--subtle:#f3ede3;--border:#e7e0d4;--border-strong:#d9d0c1;--text:#24221f;--text2:#6e6a63;--ink:#1e2230;--accent:#b4532f;--accent-hover:#9a4426;--accent-soft:#f4e3da;--success:#3e7b57;--error:#b3261e;--on-accent:#fff;--on-ink:#faf6ef;--serif:Literata, Georgia, serif;--sans:"Golos Text", system-ui, sans-serif;--radius:6px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--page:#15171c;--surface:#1d2027;--subtle:#252932;--border:#2f3440;--border-strong:#3a3f4b;--text:#ece6db;--text2:#a49e94;--ink:#ece6db;--accent:#e08a64;--accent-hover:#eaa27f;--accent-soft:#3a2a24;--success:#7cc49a;--error:#f2867e;--on-accent:#15171c;--on-ink:#15171c;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--page:#15171c;--surface:#1d2027;--subtle:#252932;--border:#2f3440;--border-strong:#3a3f4b;--text:#ece6db;--text2:#a49e94;--ink:#ece6db;--accent:#e08a64;--accent-hover:#eaa27f;--accent-soft:#3a2a24;--success:#7cc49a;--error:#f2867e;--on-accent:#15171c;--on-ink:#15171c;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}body{background:var(--page);color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased;margin:0;font-size:15px;line-height:1.5}a{color:var(--accent)}a:hover{color:var(--accent-hover)}button{font:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.display,.h1,.h2,.h3{font-family:var(--serif);margin:0;font-weight:600}.display{letter-spacing:-.02em;font-size:clamp(36px,6vw,56px);line-height:1.12}.h1{font-size:clamp(28px,4vw,38px);line-height:1.2}.h2{font-size:clamp(22px,3vw,28px);line-height:1.28}.h3{font-size:20px;line-height:26px}.eyebrow{letter-spacing:.04em;text-transform:uppercase;color:var(--accent);margin:0;font-size:12px;font-weight:600;line-height:16px}.lead{color:var(--text2);margin:0;font-size:16px;line-height:24px}.meta{color:var(--text2);margin:0;font-size:13px;line-height:18px}.prose{font-family:var(--serif);white-space:pre-line;max-width:68ch;font-size:17px;line-height:28px}.row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.button{border-radius:var(--radius);cursor:pointer;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:0 22px;font-size:15px;font-weight:500;text-decoration:none;display:inline-flex}.button:disabled{opacity:.55;cursor:default}.button-sm{min-height:40px;padding:0 16px;font-size:14px}.button-ink,.button-ink:hover{background:var(--ink);color:var(--on-ink)}.button-accent,.button-accent:hover{background:var(--accent);color:var(--on-accent)}.button-accent:hover{background:var(--accent-hover)}.button-outline,.button-outline:hover{color:var(--text);border-color:var(--border-strong);background:0 0}.button-google,.button-google:hover{background:var(--surface);color:var(--text);border-color:var(--border-strong);width:100%}.icon-button{min-width:44px;height:44px;color:var(--text);border-radius:var(--radius);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border:1px solid var(--border-strong);background:var(--surface);min-height:36px;color:var(--text);cursor:pointer;border-radius:999px;align-items:center;padding:0 14px;font-size:14px;text-decoration:none;display:inline-flex}.chip:hover{color:var(--text);border-color:var(--text2)}.chip[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}.badge{background:var(--subtle);color:var(--text2);border-radius:999px;padding:3px 8px;font-size:12px;font-weight:500;line-height:16px;display:inline-block}.badge-mature{color:var(--error);box-shadow:inset 0 0 0 1px var(--error);background:0 0}.more{white-space:nowrap;font-size:14px;font-weight:500;text-decoration:none}.container{max-width:1200px;margin:0 auto;padding:0 24px}@media (width<=600px){.container{padding:0 16px}}.app{flex-direction:column;min-height:100vh;display:flex}.page{flex:1 0 auto;width:100%;padding-top:24px;padding-bottom:64px}.header{z-index:10;background:var(--page);border-bottom:1px solid var(--border);position:sticky;top:0}.header-inner{align-items:center;gap:16px 32px;min-height:70px;display:flex}.logo{color:var(--ink);font-family:var(--serif);align-items:flex-end;gap:2px;font-size:26px;font-weight:600;line-height:32px;text-decoration:none;display:inline-flex}.logo:hover{color:var(--ink)}.logo-dot{background:var(--accent);border-radius:4px;width:7px;height:7px;margin-bottom:8px}.header-nav{gap:20px;display:flex}.header-nav a{color:var(--text);font-size:14px;font-weight:500;text-decoration:none}.header-nav a.active{color:var(--accent)}.search{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-width:0;height:42px;color:var(--text2);flex:280px;align-items:center;gap:8px;padding:0 6px 0 14px;display:flex}.search input{min-width:0;height:100%;font:inherit;color:var(--text);background:0 0;border:0;outline:none;flex:auto;font-size:14px}.search-lg{max-width:720px;height:52px;margin:16px 0 24px}.search-lg input{font-size:16px}.account-placeholder{width:40px}.avatar{background:var(--ink);width:36px;height:36px;color:var(--on-ink);border-radius:50%;flex:none;justify-content:center;align-items:center;font-size:14px;font-weight:500;text-decoration:none;display:inline-flex;overflow:hidden}.avatar:hover{color:var(--on-ink)}.avatar img{object-fit:cover;width:100%;height:100%}.avatar-sm{width:28px;height:28px;font-size:12px}.avatar-lg{width:64px;height:64px;font-size:24px}.footer{border-top:1px solid var(--border);background:var(--surface);padding:32px 0 104px}.footer-inner{flex-wrap:wrap;align-items:center;gap:16px 24px;display:flex}.tabbar{display:none}@media (width<=720px){.header-nav{display:none}.header-inner{gap:12px;min-height:60px}.header .search{display:none}.header-inner>:last-child{margin-left:auto}.tabbar{z-index:10;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);justify-content:space-around;display:flex;position:fixed;bottom:0;left:0;right:0}.tabbar a{height:52px;color:var(--text2);flex-direction:column;flex:0 0 72px;justify-content:center;align-items:center;gap:4px;font-size:12px;font-weight:500;text-decoration:none;display:flex}.tabbar a.active{color:var(--accent)}}@media (width>=721px){.footer{padding-bottom:32px}}.banner{border-radius:var(--radius);background:var(--accent-soft);justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;padding:8px 8px 8px 16px;display:flex}.notice{text-align:center;flex-direction:column;align-items:center;gap:16px;max-width:480px;margin:48px auto;display:flex}.notice p{color:var(--text2);margin:0}.cover{aspect-ratio:2/3;color:#fff;border-radius:2px;position:relative;overflow:hidden;box-shadow:0 1px 2px #24221f1f}.cover-sm{flex:0 0 88px;width:88px}.cover-md{width:100%}.cover-lg{flex:0 0 220px;width:220px}.cover img{object-fit:cover;width:100%;height:100%;display:block}.cover-generated{flex-direction:column;justify-content:flex-end;gap:6px;padding:12%;display:flex;position:absolute;inset:0}.cover-rule{background:#ffffffb3;width:24px;height:2px}.cover-title{font-family:var(--serif);overflow-wrap:anywhere;font-size:17px;font-weight:600;line-height:1.25}.cover-lg .cover-title{font-size:22px}.cover-sm .cover-title{font-size:11px}.cover-author{letter-spacing:.06em;text-transform:uppercase;opacity:.85;font-size:11px}.cover-sm .cover-author{display:none}.cover-badge{color:#fff;box-shadow:none;background:#1e2230;position:absolute;top:8px;right:8px}.story-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:24px 20px;display:grid}@media (width<=600px){.story-grid{grid-template-columns:repeat(2,1fr);gap:20px 14px}}.story-card{color:var(--text);flex-direction:column;gap:4px;min-width:0;text-decoration:none;display:flex}.story-card:hover{color:var(--text)}.story-card .cover{margin-bottom:6px}.story-card-title{font-family:var(--serif);font-size:16px;font-weight:600;line-height:21px}.story-card:hover .story-card-title,.story-row:hover .story-card-title{color:var(--accent)}.story-rows{flex-direction:column;margin-bottom:24px;display:flex}.story-row{border-bottom:1px solid var(--border);color:var(--text);gap:16px;padding:16px 0;text-decoration:none;display:flex}.story-row:hover{color:var(--text)}.story-row-text{flex-direction:column;gap:4px;min-width:0;display:flex}.story-row-desc{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;line-height:20px;display:-webkit-box;overflow:hidden}.skeleton{background:var(--subtle);box-shadow:none}.skeleton-line{border-radius:4px;height:14px;display:block}.skeleton-line.short{width:60%}.hero{flex-wrap:wrap;align-items:center;gap:40px 64px;padding:32px 0 24px;display:flex}.hero-text{flex-direction:column;flex:420px;gap:20px;max-width:540px;display:flex}.featured{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-width:0;color:var(--text);flex-wrap:wrap;flex:480px;align-items:center;gap:28px;padding:24px;text-decoration:none;display:flex}.featured:hover{color:var(--text)}.featured-text{flex-direction:column;flex:220px;align-items:flex-start;gap:10px;display:flex}.featured-desc{font-family:var(--serif);-webkit-line-clamp:4;-webkit-box-orient:vertical;font-size:17px;font-style:italic;line-height:27px;display:-webkit-box;overflow:hidden}@media (width<=600px){.featured .cover-lg{flex-basis:140px;width:140px}}.section{flex-direction:column;gap:16px;padding:32px 0 0;display:flex}.section-head{justify-content:space-between;align-items:flex-end;gap:16px;display:flex}.genre-tiles{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;display:grid}.genre-tile,.genre-tile:hover{border-radius:var(--radius);color:#fff;min-height:72px;font-family:var(--serif);align-items:flex-end;padding:14px;font-size:16px;font-weight:600;text-decoration:none;display:flex}.continue{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);max-width:480px;color:var(--text);flex-direction:column;gap:4px;padding:16px 20px;text-decoration:none;display:flex}.continue-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;display:grid}.continue-card{flex-direction:row;align-items:center;gap:14px;max-width:none;padding:12px}.continue-card .cover{flex:0 0 52px;width:52px}.continue-card .cover-generated{visibility:hidden}.continue-text{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.continue-text .meta{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.progress{background:var(--subtle);border-radius:2px;width:100%;max-width:240px;height:4px;display:block;overflow:hidden}.progress>span{background:var(--accent);border-radius:2px;height:100%;display:block}.library-page{flex-direction:column;gap:20px;max-width:760px;display:flex}.library-tabs{max-width:100%;overflow-x:auto}.library-tabs button{white-space:nowrap}.tab-count{color:var(--text2);font-variant-numeric:tabular-nums;margin-left:6px}.library-list{flex-direction:column;display:flex}.library-row{border-bottom:1px solid var(--border);gap:16px;padding:16px 0;display:flex}.library-row:first-child{padding-top:0}.library-cover{flex:none}.library-text{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.library-text .story-card-title{color:var(--text);text-decoration:none}.library-actions{flex-wrap:wrap;margin-top:4px}.select-sm{border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);min-height:36px;color:var(--text);font:inherit;padding:0 10px;font-size:14px}.library-empty{flex-direction:column;align-items:flex-start;gap:12px;padding:24px 0;display:flex}.library-toggle.in-library{color:var(--success);border-color:var(--success)}.explore-body{grid-template-columns:260px 1fr;align-items:start;gap:40px;display:grid}@media (width<=860px){.explore-body{grid-template-columns:1fr;gap:16px}}.filters{flex-direction:column;gap:20px;display:flex}fieldset{border:0;margin:0;padding:0}legend{color:var(--text2);margin-bottom:8px;padding:0;font-size:13px;font-weight:600}.toggle{cursor:pointer;justify-content:space-between;align-items:flex-start;gap:12px;max-width:480px;padding:12px 0;font-size:14px;display:flex}.toggle>span{flex-direction:column;gap:2px;display:flex}.toggle input{width:20px;height:20px;accent-color:var(--accent);margin:2px 0 0}.setting{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;max-width:480px;padding:12px 0;font-size:14px;display:flex}.setting>span{flex-direction:column;flex:220px;gap:2px;display:flex}.crumbs{margin-bottom:20px}.crumbs a{color:var(--text2)}.story-head{flex-wrap:wrap;align-items:flex-start;gap:32px 48px;display:flex}.story-info{flex-direction:column;flex:360px;gap:16px;display:flex}.author{align-items:center;gap:8px;margin:0;font-weight:500;display:flex}.stats{flex-wrap:wrap;gap:12px 32px;margin:0;display:flex}.stats div{flex-direction:column;display:flex}.stats dt{color:var(--text2);font-size:12px}.stats dd{font-family:var(--serif);margin:0;font-size:20px;font-weight:600}.chapters{border-top:1px solid var(--border);max-width:760px;margin:0;padding:0;list-style:none}.chapters a{border-bottom:1px solid var(--border);min-height:56px;color:var(--text);grid-template-columns:40px 1fr auto;align-items:center;gap:12px;padding:8px 4px;text-decoration:none;display:grid}.chapters a:hover .chapter-title{color:var(--accent)}.chapters a[aria-current]{background:var(--accent-soft)}.chapter-n{color:var(--text2);font-variant-numeric:tabular-nums}.chapter-title{font-family:var(--serif);font-size:16px}@media (width<=600px){.story-head .cover-lg{flex-basis:160px;width:160px}.chapters a{grid-template-columns:32px 1fr}.chapters a .meta{grid-column:2}}.reader{--r-bg:#faf6ef;--r-text:#24221f;--r-muted:#6e6a63;--r-line:#e7e0d4;background:var(--r-bg);min-height:100vh;color:var(--r-text)}.reader-sepia{--r-bg:#f1e6d2;--r-text:#3b2f22;--r-muted:#6b5a45;--r-line:#e0d2b8}.reader-night{--r-bg:#15171c;--r-text:#d6cfc2;--r-muted:#a49e94;--r-line:#2f3440}.reader .meta{color:var(--r-muted)}.reader .icon-button{color:var(--r-text)}.reader-bar{z-index:10;background:var(--r-bg);border-bottom:1px solid var(--r-line);position:sticky;top:0}.reader-bar-inner{align-items:center;gap:8px;max-width:1200px;margin:0 auto;padding:6px 12px;display:flex}.reader-where{flex-direction:column;flex:auto;min-width:0;display:flex}.reader-where>*{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reader-story{font-family:var(--serif);font-size:15px;font-weight:600}.reader-aa{font-family:var(--serif);font-size:18px;font-weight:600}.reader-logo .logo{color:var(--r-text);font-size:22px}@media (width<=600px){.reader-logo{display:none}}.reader-settings{background:var(--surface);max-width:420px;color:var(--text);border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:16px;margin:0 12px 12px auto;padding:16px;display:flex;box-shadow:0 12px 32px #24221f2e}@media (width>=1224px){.reader-settings{margin-right:calc(50vw - 588px)}}.reader-settings .meta{color:var(--text2)}.setting{justify-content:space-between;align-items:center;gap:12px;font-size:14px;display:flex}.setting legend{float:left;color:var(--text);margin:10px 0 0;font-size:14px;font-weight:400}.swatch{border-radius:var(--radius);border:1px solid var(--border-strong);cursor:pointer;min-height:40px;padding:0 12px;font-size:13px}.swatch-paper{color:#24221f;background:#faf6ef}.swatch-sepia{color:#3b2f22;background:#f1e6d2}.swatch-night{color:#d6cfc2;background:#15171c}.swatch[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:1px}.reader-page{max-width:680px;margin:0 auto;padding:40px 20px 96px}.reader-title{font-family:var(--serif);margin:8px 0 32px;font-size:clamp(28px,5vw,38px);font-weight:600;line-height:1.2}.reader-text{font-family:var(--reader-font,var(--serif));font-size:var(--reader-size,20px);line-height:var(--reader-leading,1.7)}.reader-text p{margin:0 0 1em}.reader-text h2{margin:1.6em 0 .6em;font-size:1.2em}.reader-text blockquote{border-left:2px solid var(--r-line);margin:1.2em 0;padding-left:1em;font-style:italic}.reader-break{text-align:center;color:var(--r-muted);letter-spacing:.4em}.author-note{border:1px solid var(--r-line);border-radius:var(--radius);margin-top:40px;padding:20px}.author-note p{white-space:pre-line;margin:8px 0 0}.reader-nav{flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:48px;display:flex}.reader .button-outline{color:var(--r-text);border-color:var(--r-line)}.auth{justify-content:center;align-items:center;min-height:100vh;padding:24px 16px;display:flex}.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:20px;width:100%;max-width:440px;padding:32px;display:flex}@media (width<=480px){.auth-card{padding:24px 20px}}.field{flex-direction:column;gap:6px;font-size:14px;font-weight:500;display:flex}.field input,.field select{border:1.5px solid var(--border-strong);background:var(--surface);height:52px;color:var(--text);font:inherit;border-radius:8px;padding:0 12px;font-size:17px;font-weight:400}.field .meta{font-weight:400}.info{border-radius:var(--radius);background:var(--subtle);margin:0;padding:12px;font-size:14px}.error{color:var(--error);margin:0;font-size:14px}.account-page{flex-direction:column;align-items:flex-start;gap:24px;max-width:640px;display:flex}.reader .reader-settings .button-outline{color:var(--text);border-color:var(--border-strong)}:root{--success-bg:#e3efe7;--warn:#8f6418;--warn-bg:#f6ecd8;--bar:#d9d0c1}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--success-bg:#203127;--warn:#e2b45c;--warn-bg:#352c1c;--bar:#3a3f4b}}:root[data-theme=dark]{--success-bg:#203127;--warn:#e2b45c;--warn-bg:#352c1c;--bar:#3a3f4b}.studio{grid-template-columns:240px minmax(0,1fr);min-height:100vh;display:grid}.studio-nav{border-right:1px solid var(--border);background:var(--surface);flex-direction:column;gap:24px;height:100vh;padding:24px 16px;display:flex;position:sticky;top:0}.studio-logo{font-family:var(--serif);color:var(--text);align-items:baseline;gap:8px;padding:0 8px;font-size:22px;font-weight:600;text-decoration:none;display:flex}.studio-logo-sub{font-family:var(--sans);color:var(--accent);font-size:13px;font-weight:500}.studio-links{flex-direction:column;gap:2px;display:flex}.studio-links a{border-radius:var(--radius);min-height:44px;color:var(--text2);align-items:center;padding:0 12px;font-weight:500;text-decoration:none;display:flex}.studio-links a:hover{color:var(--text)}.studio-links a.active{background:var(--subtle);color:var(--text);font-weight:600}.studio-me{align-items:center;gap:10px;margin-top:auto;padding:0 8px;font-size:14px;display:flex}.studio-me-text{flex-direction:column;min-width:0;display:flex}.studio-main{min-width:0;padding:32px 40px 64px}.studio-page{flex-direction:column;gap:24px;max-width:1120px;display:flex}.studio-page>*,.studio>*{min-width:0}.studio-page.narrow{max-width:640px}.studio-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;display:flex}.kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.kpi,.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:4px;padding:16px;display:flex}.kpi-value{font-family:var(--serif);font-size:28px;font-weight:600;line-height:36px}.kpi-delta{font-size:13px;font-weight:500}.kpi-delta.up{color:var(--success)}.kpi-delta.down{color:var(--error)}.studio-split{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;display:grid}.panel{gap:12px}.panel.empty{align-items:flex-start}.panel-head{flex-wrap:wrap;justify-content:space-between;gap:12px;display:flex}.panel-ink{background:var(--ink);border-color:var(--ink);color:var(--on-ink);justify-content:center}.panel-ink .eyebrow{color:#e08a64}.panel-ink .button{align-self:flex-start}.segmented{background:var(--subtle);border-radius:8px;align-self:flex-start;padding:3px;display:inline-flex}.segmented button{border-radius:var(--radius);min-height:36px;color:var(--text2);cursor:pointer;background:0 0;border:0;padding:0 14px;font-size:14px;font-weight:500}.segmented button[aria-checked=true],.segmented button[aria-selected=true]{background:var(--surface);color:var(--text)}.segmented button:disabled{opacity:.5;cursor:default}.bars{border-bottom:1px solid var(--border);align-items:flex-end;gap:4px;height:168px;display:flex}.bars button{background:var(--bar);cursor:pointer;border:0;border-radius:2px 2px 0 0;flex:1 1 0;min-width:0;padding:0}.bars button[aria-pressed=true]{background:var(--accent)}.bars-axis{justify-content:space-between;display:flex}.table-wrap{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);position:relative;overflow-x:auto}.studio-table{border-collapse:collapse;width:100%;font-size:14px}.studio-table th{text-align:left;color:var(--text2);border-bottom:1px solid var(--border);white-space:nowrap;padding:10px 16px;font-size:12px;font-weight:600}.studio-table td{border-bottom:1px solid var(--border);white-space:nowrap;padding:12px 16px}.studio-table tr:last-child td{border-bottom:0}.studio-story{align-items:center;gap:12px;display:flex}.studio-story>span:last-child{flex-direction:column;display:flex}.studio-story-title{font-family:var(--serif);font-size:15px;font-weight:600}.mini-cover{border-radius:2px;flex:0 0 32px;height:48px}.status{background:var(--subtle);color:var(--text2);white-space:nowrap;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:500;line-height:16px;display:inline-block}.status-published{background:var(--success-bg);color:var(--success)}.status-scheduled{background:var(--warn-bg);color:var(--warn)}.status-removed{background:var(--accent-soft);color:var(--error)}.status-text-published{color:var(--success)}.status-text-scheduled{color:var(--warn)}.story-form{flex-direction:column;gap:16px;display:flex}.field textarea{border:1.5px solid var(--border-strong);background:var(--surface);color:var(--text);font:inherit;resize:vertical;border-radius:8px;padding:10px 12px;font-size:15px;font-weight:400}.story-form.compact .field input,.story-form.compact .field select,.field.small input{height:44px;font-size:15px}.story-form.compact .toggle,.side-panel .toggle{max-width:none}.link-button{color:var(--accent);cursor:pointer;background:0 0;border:0;padding:0;font-size:14px;font-weight:500;text-decoration:underline}.link-button.danger{color:var(--error);align-self:flex-start}.editor{flex-direction:column;min-height:100vh;display:flex}.editor-loading{padding:24px}.editor-bar{z-index:5;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:12px;min-height:60px;padding:8px 16px;display:flex;position:sticky;top:0}.editor-back{font-weight:600;text-decoration:none}.editor-where{flex-direction:column;min-width:0;line-height:18px;display:flex}.editor-story{font-family:var(--serif);text-overflow:ellipsis;white-space:nowrap;max-width:260px;font-weight:600;overflow:hidden}.editor-spacer{flex:auto}.save{color:var(--text2);align-items:center;gap:6px;font-size:13px;display:inline-flex}.save-dot{background:var(--success);border-radius:4px;width:8px;height:8px}.save-dirty .save-dot,.save-saving .save-dot{background:var(--warn)}.save-error{color:var(--error)}.save-error .save-dot{background:var(--error)}.editor .banner{margin:12px 16px 0}.editor-body{flex:auto;grid-template-columns:260px minmax(0,1fr) 320px;display:grid}.editor-chapters,.editor-side{background:var(--surface);border-right:1px solid var(--border);padding:16px}.editor-side{border-right:0;border-left:1px solid var(--border);flex-direction:column;gap:16px;display:flex}.editor-chapters summary{color:var(--text2);cursor:pointer;margin-bottom:8px;font-size:13px;font-weight:600}.editor-chapters ol{margin:0 0 12px;padding:0;list-style:none}.editor-chapters li{border-radius:var(--radius);align-items:center;display:flex}.editor-chapters li.current{background:var(--accent-soft)}.editor-chapters li>a{min-width:0;color:var(--text);flex:auto;gap:10px;padding:8px;font-size:14px;text-decoration:none;display:flex}.editor-chapters li.current>a{font-weight:600}.editor-chapter-text{flex-direction:column;min-width:0;display:flex}.editor-chapter-text>span:first-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-chapter-text .meta{font-size:12px;font-weight:400}.editor-move{opacity:.7;display:flex}.editor-move .icon-button{min-width:28px;height:32px;font-size:14px}.editor-move .icon-button:disabled{opacity:.3;cursor:default}.editor-chapters .meta{margin-top:8px}.editor-main{min-width:0;padding:32px 24px 96px}.editor-page,.editor-empty{flex-direction:column;gap:12px;max-width:68ch;margin:0 auto;display:flex}.editor-tools{z-index:2;border:1px solid var(--border);background:var(--surface);font-family:var(--serif);border-radius:8px;align-self:flex-start;gap:2px;padding:4px;font-weight:600;display:flex;position:sticky;top:68px}.editor-title{flex-direction:column;gap:4px;display:flex}.editor-title input{color:var(--text);font-family:var(--serif);background:0 0;border:0;padding:0;font-size:clamp(26px,4vw,34px);font-weight:600;line-height:1.25}.editor-title input:focus{outline:none}.editor-text{--reader-size:19px;--r-line:var(--border-strong);--r-muted:var(--text2);outline:none;min-height:50vh;padding:8px 0}.editor-text hr{text-align:center;border:0;margin:1.6em 0}.editor-text hr:after{content:"* * *";color:var(--text2);letter-spacing:.4em}.editor-preview{--reader-size:19px;--r-line:var(--border-strong);--r-muted:var(--text2)}.side-panel{flex-direction:column;gap:16px;display:flex}.publish-box{border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:12px;min-width:0;margin:0;padding:16px;display:flex}.publish-box legend{padding:0 4px;font-size:16px}.choice{flex-direction:column;gap:8px;font-size:15px;display:flex}.choice label{cursor:pointer;align-items:center;gap:8px;min-height:32px;display:flex}.choice input{accent-color:var(--accent);width:18px;height:18px}.field.small{flex:120px}.modal-backdrop{z-index:20;background:#14141873;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal{background:var(--surface);width:100%;max-width:440px;color:var(--text);border-radius:8px;flex-direction:column;gap:16px;padding:24px;display:flex}.summary{grid-template-columns:auto 1fr;gap:8px 16px;margin:0;font-size:14px;display:grid}.summary dt{color:var(--text2)}.summary dd{margin:0}.toast{z-index:30;border-radius:var(--radius);background:var(--ink);color:var(--on-ink);max-width:calc(100vw - 32px);padding:12px 18px;font-size:14px;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}@media (width<=1100px){.editor-body{grid-template-columns:220px minmax(0,1fr)}.editor-side{border-left:0;border-top:1px solid var(--border);grid-column:1/-1}}@media (width<=900px){.studio{grid-template-columns:minmax(0,1fr)}.studio-nav{border-right:0;border-bottom:1px solid var(--border);flex-flow:wrap;align-items:center;gap:8px 16px;height:auto;padding:12px 16px;position:static}.studio-links{flex-direction:row;order:3;width:100%;overflow-x:auto}.studio-links a{white-space:nowrap}.studio-me{margin:0 0 0 auto}.studio-me-text{display:none}.studio-main{padding:24px 16px 64px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-split,.editor-body{grid-template-columns:minmax(0,1fr)}.editor-chapters{border-right:0;border-bottom:1px solid var(--border)}.editor-main{padding:20px 16px 48px}.editor-words,.editor-reader-link{display:none}.editor-story{max-width:160px}}
