@layer reset,base,components,layout,responsive;
@layer reset {
*,*::before,*::after{box-sizing:border-box}html,body{margin:0;min-height:100%;padding:0}body{font-family:var(--sans);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.38}button{color:inherit}a{color:inherit;text-decoration:none}button{border:0}button,textarea,input,select{outline:none}svg{flex-shrink:0}h1,h2,h3,p{margin:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:4px}::selection{background:#9f795980;color:var(--text)}[hidden]{display:none!important}
}
@layer base {
:root{--sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--serif:"Iowan Old Style","Palatino Linotype","Book Antiqua",Georgia,serif;--bg:#141312;--surface:#1c191a;--surface-2:#272226;--sidebar:#100f0f;--input:#171415;--text:#f0ece3;--muted:#ada69c;--faint:#8d857d;--line:#383131;--line-soft:#2c2628;--accent:#d6bd83;--accent-strong:#e7cf9c;--accent-ink:#211b12;--accent-soft:#d6bd8310;--violet:#aa8db8;--danger:#e6a59b;--green:#a4b796;--shadow:0 25px 70px #0005;--editor-size:20px;--editor-line:1.85;--editor-font:var(--serif);color-scheme:dark;background:var(--bg);color:var(--text)}
:root[data-theme=light]{--bg:#f6f3ec;--surface:#fcfaf5;--surface-2:#ebe7de;--sidebar:#efebe3;--input:#f9f6f0;--text:#302e28;--muted:#716e63;--faint:#898477;--line:#d9d4c9;--line-soft:#e5e0d5;--accent:#986643;--accent-strong:#825235;--accent-ink:#fffaf1;--accent-soft:#9866430e;--danger:#ab4f43;--green:#667e54;--shadow:0 25px 70px #5148331c;color-scheme:light}
html{scroll-behavior:smooth}body{font-size:14px;line-height:1.55}h1,h2,h3{line-height:1.2}button{background:transparent}input,textarea,select{color:var(--text);background:var(--input);border:1px solid var(--line);border-radius:7px;transition:border-color .18s}input::placeholder,textarea::placeholder{color:var(--faint)}input:focus,textarea:focus,select:focus{border-color:var(--accent)}input,select{min-height:44px;padding:10px 13px}textarea{padding:12px 13px;resize:vertical;line-height:1.65}select{padding-right:26px}button{transition:background .16s,color .16s,transform .16s}strong{font-weight:550}.icon{width:19px;height:19px;vertical-align:middle}.skip-link{position:fixed;top:-80px;left:20px;z-index:100;background:var(--accent);color:var(--accent-ink);padding:12px 20px;border-radius:8px}.skip-link:focus{top:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:7px;min-height:42px;padding:10px 16px;font-size:13px;font-weight:550;white-space:nowrap}.btn.primary{background:var(--accent);color:var(--accent-ink);box-shadow:0 2px 5px #0001}.btn.primary:hover{background:var(--accent-strong);transform:translateY(-1px)}.btn.subtle{border:1px solid var(--line);background:var(--surface)}.btn.subtle:hover{background:var(--surface-2);border-color:var(--faint)}.btn.ghost{color:var(--muted)}.btn.ghost:hover{background:var(--surface-2);color:var(--text)}.text-btn{display:inline-flex;align-items:center;gap:7px;padding:7px 0;font-size:12px;color:var(--muted)}.text-btn .icon{width:15px;height:15px}.text-btn:hover{color:var(--accent)}.icon-btn{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;flex-shrink:0;color:var(--muted)}.icon-btn:hover{background:var(--surface-2);color:var(--text)}.icon-btn .icon{width:18px;height:18px}.danger{color:var(--danger)!important}.brand{display:inline-flex;align-items:center;gap:10px;color:var(--text)}.brand-mark{font-family:Georgia,serif;font-style:italic;font-weight:600;position:relative;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);width:30px;height:33px;border-radius:7px;font-size:28px;line-height:1;padding:0 3px 5px 0}.brand-mark>span{position:absolute;top:5px;right:8px;width:7px;height:4px;border-radius:100% 0;background:var(--accent-ink);transform:rotate(-22deg)}.brand-name{font-size:27px;font-weight:570;letter-spacing:-1.4px}.brand-dot{color:var(--accent)}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2.1px;line-height:1.6;color:var(--accent);display:flex;align-items:center;gap:10px}.tiny-dash{width:19px;height:1px;background:var(--accent)}.progress-track{height:3px;background:var(--line);border-radius:4px;overflow:hidden}.progress-track>span{display:block;height:100%;background:var(--accent);border-radius:4px;transition:width .2s}.count-badge{font:11px/1 var(--sans);padding:5px 7px;border:1px solid var(--line);border-radius:5px;color:var(--muted)}.small-label{display:block;color:var(--muted);font-size:9px;letter-spacing:1.5px;font-weight:600}.field-hint{color:var(--faint);font-size:11px;line-height:1.6}.readonly-banner{position:fixed;top:0;left:0;right:0;padding:5px 14px;background:var(--accent);color:var(--accent-ink);text-align:center;font-size:12px;z-index:80}.loading-screen,.startup-error{max-width:620px;margin:15vh auto;padding:25px}.loading-screen{text-align:center}.loading-screen p{color:var(--muted);margin-top:25px}.startup-error h1{font-family:var(--serif);font-weight:400;font-size:36px;margin:35px 0 20px}.startup-error p{margin-bottom:18px;color:var(--muted)}.startup-error .error-detail{font-size:12px;color:var(--danger)}
}
@layer components {
.library-header{height:88px;display:flex;align-items:center;justify-content:space-between;max-width:1360px;margin:auto;padding:0 64px}.library-header nav{display:flex;align-items:center;gap:13px}.local-badge{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);border-left:1px solid var(--line);padding-left:23px;margin-left:9px}.local-badge .icon{width:14px;height:14px;color:var(--accent)}.library-main{max-width:1220px;margin:auto;padding:0 40px}.library-hero{min-height:358px;padding:38px 0 48px;position:relative;border-bottom:1px solid var(--line-soft)}.library-hero h1{font-family:var(--serif);font-weight:400;font-size:clamp(44px,4.6vw,64px);letter-spacing:-1.7px;line-height:1.06;margin:22px 0 19px;position:relative;z-index:1}.library-hero h1 em{font-weight:400;color:var(--accent)}.library-hero>p{color:var(--muted);font-size:13px;position:relative;z-index:1}.hero-bottom{margin-top:28px;display:flex;align-items:center;gap:22px;position:relative;z-index:1}.hero-bottom .btn{padding:12px 19px;min-height:44px}.hero-note{font-size:10px;line-height:1.7;color:var(--faint)}.hero-art{position:absolute;top:20px;right:38px;width:330px;height:302px;isolation:isolate}.art-book{position:absolute;width:181px;height:242px;left:78px;top:37px;background:#39332c;border:1px solid #73634b;border-radius:3px 8px 8px 3px;transform:rotate(10deg);box-shadow:14px 13px 0 -3px var(--bg),15px 14px 0 -3px #504839,20px 24px 30px #0002;color:#d9c0a0;padding:33px 24px}.art-book>span{display:block;font:italic 22px/1.25 var(--serif);margin-top:25px}.book-line{width:38px;border-top:1px solid #ae8e6555;margin-bottom:5px}.book-line.short{width:25px}.book-star{font-size:38px;position:absolute;right:22px;bottom:11px;font-weight:200;color:#c0a279}.art-sun{position:absolute;top:13px;left:14px;width:91px;height:91px;background:#9f68422d;border-radius:50%}.orbit-line{position:absolute;border:1px solid #81745a2c;border-radius:50%;transform:rotate(-23deg);width:350px;height:192px;top:78px;left:-7px;z-index:-1}.orbit-line.two{transform:rotate(31deg);height:250px;width:314px;top:28px;left:9px}.art-stem{position:absolute;height:95px;width:65px;border-left:1px solid #ac936469;right:-22px;bottom:21px;transform:rotate(34deg)}.art-stem:after,.art-stem:before{content:'';position:absolute;width:19px;height:35px;border:1px solid #ac936469;border-radius:100% 0;left:0;top:8px}.art-stem:after{top:50px;left:-19px;transform:rotate(90deg)}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.section-heading h2{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:500;letter-spacing:-.4px}.section-heading p{color:var(--faint);font-size:12px;margin-top:8px}.library-books{padding:37px 0 35px}.search-box{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--line);border-radius:7px;color:var(--faint);background:var(--input)}.search-box .icon{width:16px;height:16px}.search-box input{border:0;padding:10px 0;background:transparent;min-height:37px;width:180px;font-size:12px;border-radius:0}.search-box:focus-within{border-color:var(--accent)}.search-box input:focus{outline:none}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.project-card{min-width:0}.cover{width:100%;height:250px;overflow:hidden;position:relative;isolation:isolate;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:23px 25px;color:#f2dfc5;text-align:center;transition:transform .3s,box-shadow .3s}.cover:hover{transform:translateY(-3px);box-shadow:0 10px 35px #0003}.cover.clay,.mini-cover.clay,.color-option.clay{background:#584a3e}.cover.sage,.mini-cover.sage,.color-option.sage{background:#464c3e}.cover.plum,.mini-cover.plum,.color-option.plum{background:#50414a}.cover.sand,.mini-cover.sand,.color-option.sand{background:#746649}.cover:after{content:'';position:absolute;inset:0;opacity:.18;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.25' filter='url(%23n)'/%3E%3C/svg%3E");z-index:-1}.cover-top{font-size:8px;letter-spacing:2.4px;text-transform:uppercase;z-index:2}.cover-title{font:28px/1.16 var(--serif);position:relative;z-index:1;max-width:250px;text-wrap:balance;letter-spacing:-.5px;margin-top:22px}.cover-bottom{font-size:6.8px;letter-spacing:1.6px;z-index:2}.cover-orb{width:114px;height:114px;background:#c5a27a88;border-radius:50%;position:absolute;top:40px;left:50%;transform:translateX(-50%);z-index:-1}.cover-land{position:absolute;width:160%;height:167px;border-radius:50%;bottom:-109px;left:-12%;background:#2c352e;z-index:-1;transform:rotate(-10deg)}.cover-land.two{background:#2a2d26;left:-40%;bottom:-130px;transform:rotate(11deg)}.cover.sage .cover-land{background:#333e31}.cover.sage .cover-land.two{background:#272f25}.cover.plum .cover-land{background:#403039}.cover.plum .cover-land.two{background:#2e2329}.cover.sand .cover-land{background:#514833}.cover.sand .cover-land.two{background:#383426}.project-card-meta{padding:14px 0 0}.project-card-title{display:flex;align-items:center;justify-content:space-between;gap:4px}.project-card-title h3{font-size:15px;font-weight:550;line-height:1.4;min-width:0}.project-card-title h3 button{text-align:left;padding:0}.project-card-title h3 button:hover{color:var(--accent)}.project-card-title .icon-btn{height:25px;width:25px}.project-card-meta>p{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);margin:5px 0 14px}.project-card-meta>p>span:not(.example-pill){color:var(--faint)}.example-pill{margin-left:auto;font-size:8px;border:1px solid var(--line);padding:1px 5px;border-radius:4px;color:var(--muted)}.card-footer{display:flex;justify-content:space-between;font-size:9px;color:var(--faint);margin-top:7px}.new-project-card{height:250px;border:1px dashed #4b493e;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:8px;background:linear-gradient(140deg,transparent,var(--accent-soft))}.new-project-card:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}.new-circle{display:grid;place-items:center;height:38px;width:38px;border:1px solid var(--line);border-radius:50%;margin-bottom:8px;color:var(--accent)}.new-project-card strong{font-size:13px;font-weight:500}.new-project-card>span:last-child{font-size:11px;color:var(--faint)}.library-bottom{margin:0 0 35px;border-top:1px solid var(--line-soft);padding-top:26px;display:flex;align-items:center;justify-content:space-between;gap:20px}.library-bottom>div{display:flex;align-items:center;gap:14px}.library-bottom>div>.icon{color:var(--accent);width:22px;height:22px}.library-bottom p{font-size:10px;color:var(--faint);line-height:1.75}.library-bottom strong{color:var(--muted);font-size:11px}.library-bottom .btn{font-size:11px}.library-footer{max-width:1360px;margin:0 auto;padding:22px 64px;border-top:1px solid var(--line-soft);display:flex;align-items:center;justify-content:space-between;color:var(--faint);font-size:10px}.library-footer>div{display:flex;gap:22px}.library-footer .text-btn{font-size:10px}.empty-search{color:var(--muted);padding:50px 0}
.sidebar{width:248px;background:var(--sidebar);border-right:1px solid var(--line-soft);display:flex;flex-direction:column;flex-shrink:0;z-index:25}.sidebar-top{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 21px}.sidebar-top .brand-name{font-size:25px}.sidebar-top .brand-mark{width:27px;height:30px;font-size:26px}.sidebar-top>.icon-btn{color:var(--faint)}.project-switch{display:flex;align-items:center;text-align:left;gap:10px;padding:12px 10px;margin:0 13px 30px;border:1px solid var(--line-soft);border-radius:7px;background:var(--surface)}.project-switch:hover{background:var(--surface-2)}.mini-cover{width:31px;height:40px;border-radius:3px;display:grid;place-items:center;flex-shrink:0;color:#dbc3a8}.mini-cover .icon{width:16px;height:16px}.project-switch>span:nth-child(2){flex:1;min-width:0}.project-switch strong{font-size:11px;font-weight:550;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-switch small{color:var(--faint);font-size:9px;display:block;margin-top:4px}.project-switch>.icon{width:12px;height:12px;color:var(--muted)}.sidebar-section-title{display:flex;justify-content:space-between;align-items:center;padding:0 17px 9px 22px}.sidebar-section-title>span{font-size:9px;color:var(--faint);letter-spacing:1.5px;font-weight:550}.sidebar-section-title .icon-btn{width:24px;height:24px}.sidebar-section-title .icon{width:15px;height:15px}.chapter-tree{overflow-y:auto;padding:0 11px 25px;flex:1;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.chapter-group{margin-bottom:18px}.chapter-row{display:flex;align-items:center;gap:1px}.chapter-toggle{padding:8px 3px;display:flex;align-items:center;gap:4px;flex:1;min-width:0;text-align:left;font-size:9px;color:var(--faint)}.chapter-toggle>.icon{width:12px;height:12px}.chapter-toggle>span{display:flex;align-items:center;gap:7px;min-width:0}.chapter-title{color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chapter-row .icon-btn{width:22px;height:25px;opacity:0}.chapter-row:hover .icon-btn,.chapter-row:focus-within .icon-btn{opacity:1}.chapter-row .icon-btn .icon{width:14px;height:14px}.scene-row{display:flex;align-items:center;gap:9px;width:100%;font-size:11px;color:var(--muted);padding:10px 12px 10px 26px;line-height:1.4;border-radius:5px;min-height:35px;text-align:left;position:relative}.scene-row>span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.scene-row small{font-size:9px;color:var(--faint);font-variant-numeric:tabular-nums}.scene-row:hover{background:var(--surface)}.scene-row.active{background:var(--accent-soft);color:var(--accent)}.scene-dot{width:5px;height:5px;border-radius:50%;border:1px solid var(--faint);flex-shrink:0}.scene-dot.done{background:var(--green);border-color:var(--green)}.scene-dot.revised{background:var(--accent);border-color:var(--accent)}.scene-row.active .scene-dot{border-color:var(--accent)}.add-scene{display:flex;align-items:center;gap:6px;font-size:9px;color:var(--faint);padding:9px 0 7px 24px;opacity:.6}.add-scene .icon{width:11px;height:11px}.add-scene:hover{opacity:1;color:var(--accent)}.sidebar-bottom{padding:14px 17px 0}.goal-card{border:1px solid var(--line-soft);background:var(--surface);width:100%;padding:13px 12px 14px;text-align:left;border-radius:7px}.goal-card>span{font-size:9px;color:var(--muted);display:flex;gap:6px;align-items:center}.goal-card>span .icon{width:13px;height:13px;color:var(--accent)}.goal-card>span .icon:last-child{width:10px;height:10px;margin-left:auto;color:var(--faint)}.goal-card>strong{display:block;font-size:10px;color:var(--muted);font-weight:400;margin:12px 0 10px}.goal-card .progress-track{height:3px}.sidebar-bottom-links{display:flex;justify-content:space-between;align-items:center;padding:11px 0}.sidebar-bottom-links .text-btn{font-size:10px}.sidebar-backdrop{display:none}.workspace-header{height:63px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid var(--line-soft);gap:12px}.header-left{display:flex;align-items:center;gap:10px;min-width:0}.workspace-breadcrumb{display:flex;align-items:center;gap:10px;min-width:0;font-size:11px;color:var(--muted)}.workspace-breadcrumb>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-breadcrumb>.icon{width:15px;height:15px;color:var(--faint)}.header-actions{display:flex;align-items:center;gap:15px;flex-shrink:0}.header-actions .btn{min-height:32px;padding:7px 12px;font-size:10px}.header-actions .btn .icon{width:13px;height:13px}.header-actions>.icon-btn{width:28px;height:28px}.save-status{display:inline-flex;align-items:center;gap:5px;font-size:9px;color:var(--faint)}.save-status .icon{width:12px;height:12px;color:var(--green)}.save-status.save-error,.save-status.save-error .icon{color:var(--danger)}.workspace-tabs{height:51px;display:flex;align-items:stretch;padding:0 25px;border-bottom:1px solid var(--line-soft);gap:20px;flex-shrink:0}.tab{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--faint);border-bottom:2px solid transparent;padding:2px 4px 0;white-space:nowrap}.tab .icon{width:14px;height:14px}.tab:hover{color:var(--muted)}.tab.active{color:var(--accent);border-bottom-color:var(--accent)}.tab-right{margin-left:auto;display:flex;align-items:center;gap:5px}.tab-right .icon-btn{height:28px;width:28px}.tab-right .icon{width:16px;height:16px}.writing-sheet{max-width:740px;width:100%;margin:0 auto;padding:54px 60px 30px}.chapter-eyebrow{display:flex;align-items:center;gap:12px;color:var(--faint);font-size:9px;letter-spacing:.4px;line-height:1.6}.chapter-eyebrow>span:first-child{letter-spacing:1.65px;font-size:8px;color:var(--accent);white-space:nowrap}.eyebrow-line{height:1px;background:var(--line);width:23px;flex-shrink:0}.scene-title-row{display:flex;align-items:center;gap:8px;margin-top:19px}.scene-title-input{font-family:var(--serif);font-size:38px;font-weight:400;letter-spacing:-1.2px;border:none;border-radius:0;background:transparent;width:100%;padding:0;line-height:1.3;min-width:0;height:54px;text-overflow:ellipsis}.scene-title-input:focus{outline:none}.scene-title-row .icon-btn{opacity:0}.scene-title-row:hover .icon-btn,.scene-title-row:focus-within .icon-btn{opacity:1}.scene-subline{display:flex;align-items:center;gap:10px;color:var(--faint);font-size:9px;margin:13px 0 30px}.scene-subline strong{font-weight:400}.status-badge{display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:4px;padding:2px 6px;color:var(--muted);font-size:8px}.status-badge>span{width:4px;height:4px;border-radius:50%;background:var(--faint)}.status-badge.revised>span{background:var(--accent)}.status-badge.done>span{background:var(--green)}.manuscript-editor{display:block;width:100%;font-family:var(--editor-font);font-size:var(--editor-size);font-weight:400;line-height:var(--editor-line);background:transparent;border:0;border-radius:0;padding:0;resize:none;overflow:hidden;color:var(--text);letter-spacing:.04px;min-height:360px;caret-color:var(--accent)}.manuscript-editor:focus{outline:none}.manuscript-editor::placeholder{color:var(--faint);font-style:italic}.writing-end{display:flex;align-items:center;gap:14px;justify-content:center;margin:35px 0 23px;color:var(--faint)}.writing-end>span{width:30px;height:1px;background:var(--line)}.writing-end>.icon{width:15px;height:15px;opacity:.5}.editor-next{text-align:center;font-size:10px;color:var(--faint)}.editor-next .text-btn{font-size:10px;flex-direction:row-reverse}.inspector{padding:24px 21px;width:250px;flex-shrink:0;border-left:1px solid var(--line-soft);background:var(--bg);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.inspector-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.inspector-heading h2{font-size:11px;font-weight:550;color:var(--muted)}.inspector-heading .icon-btn{height:22px;width:22px}.inspector-heading .icon{height:13px;width:13px}.inspector-block{margin-bottom:27px}.inspector-block>label{display:block;font-size:8px;font-weight:600;letter-spacing:1.4px;color:var(--faint);margin-bottom:11px}.inspector-block>select{width:100%;min-height:34px;font-size:10px;padding:7px 10px;background:var(--surface)}.inspector-block>textarea{width:100%;font-size:11px;line-height:1.8;min-height:127px;padding:11px;background:var(--surface);border:1px solid var(--line-soft);resize:vertical}.inspector-block>.field-hint{display:block;font-size:9px;margin-top:7px}.inspector-block.daily-writing{padding:21px 0 20px;border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}.daily-writing .small-label{font-size:8px;letter-spacing:1.15px}.daily-writing>div{margin-top:15px;display:flex;align-items:baseline;gap:5px}.daily-writing strong{font:29px/1 var(--serif);color:var(--accent)}.daily-writing>div>span{font-size:10px;color:var(--faint)}.daily-writing>p{font-size:9px;color:var(--faint);margin:13px 0 4px}.daily-writing .text-btn{font-size:9px}.daily-writing .text-btn .icon{width:12px;height:12px}.inspector-block>.small-label{margin-bottom:12px}.inspector-link{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted);padding:9px 0}.inspector-link .icon{width:13px;height:13px;color:var(--faint)}.inspector-link:hover,.inspector-link:hover .icon{color:var(--accent)}.quiet-quote{font:italic 16px/1.6 var(--serif);color:var(--faint);padding:12px 0 0}.quiet-quote>span{display:block;font:7px/1 var(--sans);letter-spacing:2px;margin-top:16px;color:var(--faint)}.editor-footer{height:35px;border-top:1px solid var(--line-soft);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 25px;color:var(--faint);font-size:9px;flex-shrink:0;background:var(--bg)}.editor-footer>span{display:inline-flex;align-items:center;gap:6px}.editor-footer strong{font-weight:400;color:var(--muted)}.connection-dot{height:4px;width:4px;border-radius:50%;background:var(--green)}.connection-dot.offline{background:var(--accent)}.footer-center{font-size:9px;letter-spacing:.1px}.footer-center .icon{width:11px;height:11px}.focus-bar{position:fixed;top:0;left:0;right:0;display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:15px 24px;z-index:5;background:linear-gradient(var(--bg) 70%,transparent)}.focus-bar>span:first-child{font-size:11px;color:var(--faint);margin-right:auto}.focus-shortcut{font-size:9px;color:var(--faint);border:1px solid var(--line);padding:2px 4px;border-radius:4px}.focus-bar .btn{font-size:10px;min-height:31px;padding:6px 9px}.focus-bar .icon{width:13px;height:13px}.planning-page{max-width:1120px;width:100%;margin:0 auto;padding:46px 48px 60px}.page-heading{margin-bottom:30px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.6px}.page-heading-row{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:15px}.page-heading h1{font-family:var(--serif);font-size:34px;font-weight:400;letter-spacing:-.8px}.page-heading p{color:var(--muted);font-size:12px;margin-top:13px}.page-heading .btn{font-size:11px;min-height:37px;padding:9px 12px}.page-heading .btn>.icon{width:14px;height:14px}.segmented{display:inline-flex;padding:4px;background:var(--sidebar);border:1px solid var(--line-soft);border-radius:7px;gap:2px;margin:0 0 28px}.segmented>button{padding:8px 12px;display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);border-radius:4px}.segmented>button.active{background:var(--surface-2);color:var(--text)}.segmented>button>span{font-size:9px;color:var(--faint)}.character-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.character-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid var(--line);background:var(--surface);padding:25px 23px 20px;border-radius:9px;min-width:0;transition:border-color .2s,transform .2s}.character-card:hover{border-color:var(--faint);transform:translateY(-2px)}.character-avatar{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;font-family:var(--serif);font-size:20px;margin-bottom:25px;color:#dfc4ad;background:#55473c}.character-avatar.sage{background:#454d3e;color:#c2ceb1}.character-avatar.plum{background:#4d3b47;color:#d1b8c9}.character-avatar.sand{background:#625940;color:#e0d2b1}.character-role{font-size:8px;color:var(--accent);letter-spacing:1.5px;text-transform:uppercase;margin-bottom:10px}.character-card h2{font-size:21px;font-weight:400;font-family:var(--serif);margin-bottom:13px}.character-card p{color:var(--muted);font-size:11px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:25px}.card-link{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;font-size:9px;color:var(--faint);margin-top:auto;padding-top:15px;border-top:1px solid var(--line-soft)}.card-link>.icon{width:14px;height:14px}.relationship-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.relationship-card{padding:25px;border:1px solid var(--line);border-radius:9px;background:var(--surface);text-align:left;display:flex;flex-direction:column}.relationship-card:hover{border-color:var(--faint)}.relationship-people{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--accent);font-size:10px;margin-bottom:22px}.relationship-people>.icon{width:16px;height:16px;color:var(--faint)}.relationship-card h2{font:23px/1.3 var(--serif);margin-bottom:12px}.relationship-card p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:25px}.timeline-list{max-width:800px;padding-top:10px}.timeline-event{display:flex;gap:27px;position:relative;margin-bottom:25px}.timeline-event:not(:last-child):after{content:'';position:absolute;top:33px;bottom:-26px;width:1px;background:var(--line);left:17px;z-index:0}.timeline-number{font:11px/1 var(--sans);border:1px solid var(--line);background:var(--bg);color:var(--accent);display:grid;place-items:center;width:35px;height:35px;border-radius:50%;flex-shrink:0;margin-top:20px;z-index:1}.timeline-card{background:var(--surface);border:1px solid var(--line);padding:24px 25px 13px;border-radius:8px;flex:1}.event-date{display:block;text-transform:uppercase;letter-spacing:1.5px;color:var(--accent);font-size:8px;margin-bottom:11px}.timeline-card h2{font:23px/1.3 var(--serif);margin-bottom:13px}.timeline-card p{font-size:12px;color:var(--muted);white-space:pre-wrap;line-height:1.8}.event-actions{display:flex;align-items:center;justify-content:space-between;margin-top:17px;border-top:1px solid var(--line-soft);padding-top:8px}.event-actions .text-btn{font-size:10px}.event-actions .icon-btn{width:26px;height:28px}.event-actions .icon{width:13px;height:13px}.notes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.note-card{padding:23px 23px 18px;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:8px;min-height:247px;display:flex;flex-direction:column;align-items:flex-start}.note-card:hover{border-color:var(--faint);transform:translateY(-2px)}.note-card>.icon{width:17px;height:17px;color:var(--accent);margin-bottom:22px}.note-card h2{font:21px/1.3 var(--serif);margin-bottom:15px}.note-card p{font-size:11px;color:var(--muted);line-height:1.9;margin-bottom:27px;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.note-card>span{font-size:9px;color:var(--faint);margin-top:auto}.empty-state{padding:65px 15px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;grid-column:1/-1;width:100%;flex:1}.empty-state>.icon{width:33px;height:33px;color:var(--accent);margin-bottom:22px}.empty-state h1,.empty-state h2{font:29px/1.25 var(--serif);color:var(--text)}.empty-state p{color:var(--muted);font-size:12px;margin:14px 0 24px}.empty-mini{color:var(--faint);font-size:13px;padding:28px 0;text-align:center}
dialog{background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:13px;padding:0;width:510px;max-width:calc(100% - 32px);max-height:calc(100dvh - 48px);box-shadow:var(--shadow);overflow:auto}dialog.wide{width:660px}dialog::backdrop{background:#080806ac;backdrop-filter:blur(5px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 28px 15px;position:sticky;top:0;background:var(--bg);z-index:2}.modal-heading h2{font:26px/1.15 var(--serif);letter-spacing:-.6px;font-weight:400}.modal-heading .icon-btn{width:25px;height:25px}.modal-heading .icon-btn .icon{width:16px;height:16px}.modal-body{padding:7px 28px 28px;font-size:13px}.modal-intro{color:var(--muted);font-size:12px;line-height:1.8;margin-bottom:24px}.form-field{display:flex;flex-direction:column;gap:8px;margin-bottom:20px;flex:1;min-width:0}.form-field>span{font-size:11px;color:var(--muted)}.form-field>input,.form-field>select,.form-field>textarea{width:100%;font-size:12px}.form-field textarea{min-height:75px}.form-row{display:flex;gap:16px}.color-field{border:0;padding:0;margin:3px 0 0;display:flex;gap:11px}.color-field legend{font-size:11px;color:var(--muted);margin-bottom:13px}.color-option{position:relative;width:31px;height:31px;border-radius:50%;display:block;cursor:pointer}.color-option input{appearance:none;position:absolute;inset:0;padding:0;margin:0;min-height:0;border:0;border-radius:50%;width:100%;height:100%;background:transparent;cursor:pointer}.color-option input:checked{outline:2px solid var(--accent);outline-offset:4px}.color-option span{display:grid;place-items:center;width:100%;height:100%;pointer-events:none}.color-option .icon{height:16px;width:16px;color:#ead8c4;opacity:0}.color-option input:checked+span>.icon{opacity:1}.modal-footer{border-top:1px solid var(--line-soft);padding:18px 28px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:var(--bg);position:sticky;bottom:0;z-index:2}.modal-footer>div{display:flex;align-items:center;gap:9px;margin-left:auto}.modal-footer .btn{font-size:11px;min-height:36px;padding:8px 13px}.modal-footer>.btn{padding-left:0}.inline-info{display:flex;gap:11px;align-items:flex-start;color:var(--muted);font-size:11px;line-height:1.8;padding:15px;background:var(--surface);border:1px solid var(--line-soft);border-radius:7px;margin-top:16px}.inline-info>.icon{color:var(--accent);width:18px;height:18px;margin-top:2px}.menu-options{display:flex;flex-direction:column;gap:4px}.menu-option{display:flex;align-items:center;gap:13px;padding:12px;text-align:left;border-radius:6px;color:var(--muted);font-size:12px}.menu-option:hover{background:var(--surface);color:var(--text)}.menu-option>.icon{height:16px;width:16px}.privacy-note{display:flex;gap:13px;padding:20px 0;margin:13px 0 6px;border-top:1px solid var(--line-soft)}.privacy-note>.icon{color:var(--accent);width:21px;height:21px}.privacy-note strong{font-size:12px}.privacy-note p{color:var(--muted);font-size:11px;margin-top:9px;line-height:1.85}.settings-links{display:flex;gap:8px;flex-wrap:wrap}.settings-links .btn{font-size:10px;padding:7px 9px;min-height:34px}.settings-links .icon{width:13px;height:13px}.export-options{display:flex;flex-direction:column;gap:10px}.export-option{display:flex;align-items:center;gap:15px;text-align:left;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.export-option:hover{border-color:var(--accent);background:var(--accent-soft)}.export-option>.icon:first-child{color:var(--accent)}.export-option>span{flex:1}.export-option strong{display:block;font-size:12px;font-weight:500}.export-option small{display:block;font-size:10px;color:var(--faint);margin-top:3px}.export-option>.icon:last-child{height:15px;width:15px;color:var(--faint)}.export-backup{border-top:1px solid var(--line-soft);padding-top:24px;margin-top:25px}.export-backup p{font-size:11px;color:var(--muted);line-height:1.8;margin-bottom:15px}.export-backup strong{color:var(--text)}.export-backup .btn{font-size:10px;min-height:35px;padding:8px 11px}.export-backup .icon{height:14px;width:14px}.version-list{display:flex;flex-direction:column}.version-item{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line-soft);padding:17px 0}.version-item>div{min-width:0}.version-item strong{display:block;font-size:12px;font-weight:500}.version-item span{display:block;font-size:10px;line-height:1.7;color:var(--muted);margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:400px}.version-item .btn{font-size:10px;padding:7px 9px;min-height:32px}.version-item .icon{height:13px;width:13px}.help-section{margin-bottom:25px}.help-section h3{font-size:13px;font-weight:500;margin-bottom:10px}.help-section p{font-size:12px;color:var(--muted);line-height:1.9}.shortcut-list{margin:0}.shortcut-list>div{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid var(--line-soft);font-size:11px}.shortcut-list dt{color:var(--muted)}.shortcut-list dd{margin:0;color:var(--accent);font-size:10px;text-align:right}.modal-search input{width:100%;font-size:13px}.search-results{min-height:160px;padding-top:18px}.search-results>p{color:var(--faint);font-size:12px;padding:15px 0}.search-result{text-align:left;width:100%;display:flex;flex-direction:column;padding:16px 12px;border-bottom:1px solid var(--line-soft);gap:5px;border-radius:5px}.search-result:hover{background:var(--surface)}.search-result small{color:var(--accent);font-size:9px}.search-result strong{font:18px/1.4 var(--serif)}.search-result span{color:var(--muted);font-size:11px;line-height:1.6}.import-titles{font-family:var(--serif);font-size:19px;padding-left:20px;line-height:1.8}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,15px);z-index:200;background:var(--text);color:var(--bg);font-size:12px;line-height:1.6;padding:12px 20px;box-shadow:0 7px 35px #0003;border-radius:9px;max-width:min(600px,calc(100% - 32px));width:max-content;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}
}
@layer layout {
.workspace{height:100dvh;display:flex;overflow:hidden}.workspace-main{min-width:0;flex:1;display:flex;flex-direction:column;height:100%}.workspace-content{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.workspace-content.manuscript{display:flex;overflow:hidden;position:relative}.editor-scroll{flex:1;min-width:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.inspector{display:none}.inspector-open .inspector{display:block}.workspace.focus-mode .sidebar,.workspace.focus-mode .workspace-header,.workspace.focus-mode .workspace-tabs,.workspace.focus-mode .inspector{display:none}.workspace.focus-mode .writing-sheet{max-width:810px;padding-top:112px;padding-bottom:50px}.workspace.focus-mode .editor-footer{padding:0 28px}.workspace.focus-mode .chapter-eyebrow{opacity:.6}[data-action=toggle-outline]{display:none}
}
@layer responsive {
@media(min-width:1600px){.sidebar{width:270px}.inspector{width:285px;padding:26px}.writing-sheet{max-width:820px;padding:65px 70px 35px}.scene-title-input{font-size:44px;height:60px}.project-grid{gap:32px}.cover{height:285px}.new-project-card{height:285px}.library-hero{padding-top:53px;padding-bottom:55px}.library-hero h1{font-size:67px}}
@media(max-width:1300px){.writing-sheet{padding:43px 38px 30px}.sidebar{width:228px}.inspector{width:223px;padding:24px 18px}.workspace-header{padding:0 22px}.save-status{font-size:8px}.header-actions{gap:11px}.character-grid,.notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.planning-page{padding:40px 35px}.page-heading h1{font-size:31px}.workspace-tabs{gap:17px;padding:0 20px}}
@media(max-width:1120px){.inspector{position:absolute;right:0;top:0;bottom:0;z-index:10;width:265px;box-shadow:-20px 0 60px #0003;background:var(--surface)}.writing-sheet{max-width:780px;padding:45px 50px 30px}.hero-art{right:5px;transform:scale(.9);transform-origin:right center}.library-header{padding:0 40px}.library-main{padding:0 40px}.library-footer{padding:22px 40px}.library-hero h1{font-size:53px}.project-grid{gap:22px}.cover{height:230px}.new-project-card{height:230px}.cover-title{font-size:25px}.library-hero>p{max-width:400px}.save-status>span{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.footer-center{display:none!important}}
@media(max-width:900px){.sidebar{width:216px}.workspace-breadcrumb{max-width:220px}.save-status>span{display:none}.workspace-header{padding:0 18px}.workspace-tabs{gap:13px;padding:0 17px}.tab{font-size:10px;gap:5px}.tab-right{gap:0}.tab-right .icon-btn{width:24px}.writing-sheet{padding:38px 34px 30px}.scene-title-input{font-size:35px}.planning-page{padding:34px 28px}.page-heading-row{align-items:flex-start;flex-direction:column;gap:20px}.page-heading h1{font-size:33px}.relationship-list{grid-template-columns:1fr}.character-card{padding:23px 20px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-art{right:-15px;transform:scale(.78)}.library-hero h1{font-size:48px}.library-hero>p{max-width:340px;font-size:12px}.hero-note{display:none}.library-bottom{align-items:flex-start;flex-direction:column;gap:13px}.library-bottom .btn{padding-left:36px}.library-header{height:78px}.library-hero{padding-top:30px;min-height:330px}.local-badge{padding-left:15px;margin-left:0}.library-header nav{gap:7px}}
@media(max-width:700px){:root{--editor-size:19px}.sidebar{position:fixed;left:0;top:0;bottom:0;width:280px;transform:translateX(-101%);visibility:hidden;transition:transform .2s;box-shadow:20px 0 50px #0003;z-index:40;padding-top:env(safe-area-inset-top)}.outline-open .sidebar{transform:translateX(0);visibility:visible}.outline-open .sidebar-backdrop{display:block;position:fixed;inset:0;background:#0008;z-index:35}.sidebar-top{height:72px}.chapter-row .icon-btn{opacity:1;width:32px;height:32px}.chapter-toggle{font-size:10px;padding:11px 3px}.chapter-title{font-size:12px}.scene-row{min-height:42px;font-size:12px;padding-top:12px;padding-bottom:12px}.add-scene{padding-top:12px;padding-bottom:12px;font-size:11px;opacity:1}.chapter-group{margin-bottom:22px}.sidebar-section-title .icon-btn{width:34px;height:34px}.project-switch strong{font-size:12px}.project-switch small{font-size:10px}.project-switch{padding:14px 11px;margin-bottom:25px}.sidebar-bottom{padding-bottom:env(safe-area-inset-bottom)}[data-action=toggle-outline]{display:inline-flex;width:36px;height:36px}.workspace-header{height:61px;padding:0 14px 0 9px;gap:10px;padding-top:env(safe-area-inset-top);box-sizing:content-box}.header-left{gap:5px;flex:1}.workspace-breadcrumb{font-size:11px;max-width:none}.workspace-breadcrumb>.icon{display:none}.header-actions{gap:6px}.header-actions .btn{padding:7px 10px;font-size:10px;min-height:34px}.header-actions>.icon-btn{width:33px;height:34px}.header-actions .save-status{display:none}.workspace-tabs{height:51px;gap:0;padding:0 8px;justify-content:space-between;position:relative}.tab{justify-content:center;font-size:10px;gap:5px;padding:1px 7px 0;flex:1}.tab>.icon{width:13px;height:13px}.tab-right{position:absolute;right:13px;top:64px;z-index:4;gap:2px;margin:0}.tab-right .icon-btn{width:31px;height:31px;background:var(--bg)}.tab-right .icon{width:15px;height:15px}.writing-sheet{padding:60px 28px 30px}.chapter-eyebrow{font-size:9px;gap:9px}.chapter-eyebrow>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chapter-eyebrow>span:first-child{font-size:8px}.scene-title-row{margin-top:20px}.scene-title-input{font-size:35px;height:48px}.scene-title-row .icon-btn{opacity:1;width:28px}.scene-subline{font-size:9px;margin-top:11px;margin-bottom:28px}.manuscript-editor{font-size:calc(var(--editor-size) - 1px);line-height:var(--editor-line)}.editor-footer{height:37px;padding:0 16px;font-size:8px;padding-bottom:env(safe-area-inset-bottom);box-sizing:content-box}.editor-footer>span{gap:4px}.editor-footer .footer-center{display:none}.inspector{width:min(320px,calc(100vw - 30px));padding:24px 25px;background:var(--surface);z-index:20}.inspector-heading h2{font-size:14px}.inspector-heading .icon-btn{width:36px;height:36px}.inspector-heading .icon{width:18px;height:18px}.inspector-block>label{font-size:10px}.inspector-block>select{font-size:13px;min-height:43px}.inspector-block>textarea{font-size:13px;min-height:140px}.inspector-block>.field-hint{font-size:11px}.small-label,.daily-writing .small-label{font-size:9px}.daily-writing>div>span{font-size:12px}.daily-writing>p,.daily-writing .text-btn{font-size:11px}.inspector-link{font-size:12px;padding:12px 0}.inspector-link .icon{height:16px;width:16px}.workspace.focus-mode .writing-sheet{padding:95px 28px 30px}.focus-bar{padding:14px 15px}.focus-shortcut{display:none}.focus-bar>span:first-child{max-width:43%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace.focus-mode .editor-footer{padding:0 16px}.planning-page{padding:35px 25px 45px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.3px}.page-heading h1{font-size:31px;line-height:1.2}.page-heading-row{gap:19px}.page-heading p{font-size:12px;line-height:1.8;margin-top:10px}.page-heading .btn{font-size:11px;min-height:40px;padding:10px 13px}.page-heading{margin-bottom:27px}.character-grid{gap:15px}.character-card{padding:22px 17px 18px}.character-avatar{width:44px;height:44px;font-size:18px;margin-bottom:22px}.character-card h2{font-size:21px}.character-role{font-size:7px;letter-spacing:1.2px}.character-card p{font-size:11px;line-height:1.7}.card-link{font-size:9px;line-height:1.5;gap:5px}.timeline-event{gap:14px;margin-bottom:20px}.timeline-card{padding:22px 20px 10px}.timeline-number{width:28px;height:28px;font-size:9px}.timeline-event:not(:last-child):after{left:14px}.timeline-card h2{font-size:22px}.event-actions .icon-btn{width:36px;height:36px}.event-actions .icon{width:16px;height:16px}.notes-grid{gap:14px}.note-card{padding:21px 17px 18px;min-height:230px}.note-card h2{font-size:21px}.note-card p{font-size:11px}.note-card>span{font-size:10px}.library-header{padding:0 25px;height:78px}.library-header .brand-name{font-size:27px}.library-header nav{gap:9px}.library-header .desktop-label>span{display:none}.library-header .desktop-label{padding:8px;width:34px}.library-header .local-badge{display:none}.library-main{padding:0 25px}.library-hero{padding:23px 0 35px;min-height:auto}.library-hero .eyebrow{font-size:8px;letter-spacing:1.7px}.library-hero h1{font-size:49px;letter-spacing:-1.8px;margin:22px 0 18px}.library-hero>p{font-size:12px;line-height:1.8;max-width:285px}.hero-art{display:none}.hero-bottom{margin-top:24px}.hero-bottom .btn{font-size:12px;padding:11px 15px;min-height:43px}.library-books{padding:29px 0}.section-heading{align-items:flex-start;flex-direction:column;gap:20px;margin-bottom:22px}.section-heading h2{font-size:18px}.section-heading p{font-size:11px;margin-top:7px}.search-box{width:100%}.search-box input{width:100%;min-height:40px;font-size:12px}.project-grid{gap:23px 18px}.cover{height:229px;padding:21px 15px}.cover-top{font-size:7px;letter-spacing:1.8px}.cover-title{font-size:25px}.cover-bottom{font-size:6px;letter-spacing:1.3px}.new-project-card{height:229px}.project-card-title h3{font-size:13px}.project-card-meta>p{font-size:9px;gap:5px;flex-wrap:wrap;line-height:1.8;margin-top:6px}.example-pill{font-size:7px}.project-card-meta{padding-top:12px}.card-footer{font-size:8px;gap:7px;flex-wrap:wrap}.card-footer>span:last-child{display:none}.project-card-title .icon-btn{width:30px;height:30px;margin-right:-7px}.new-project-card strong{font-size:11px}.new-project-card>span:last-child{font-size:9px}.new-circle{width:33px;height:33px}.library-bottom{padding-top:22px;margin-bottom:21px;gap:13px}.library-bottom>div{align-items:flex-start;gap:12px}.library-bottom>div>.icon{width:18px;height:18px;margin-top:3px}.library-bottom p{font-size:10px;line-height:1.9}.library-bottom strong{font-size:11px}.library-bottom .btn{font-size:10px;padding-left:30px;padding-top:5px;padding-bottom:5px;min-height:32px}.library-footer{padding:20px 25px 24px;align-items:flex-start;gap:15px;font-size:9px}.library-footer>div{gap:14px;flex-direction:column;align-items:flex-end}.library-footer .text-btn{padding:0;font-size:9px}.library-footer .icon{height:11px;width:11px}.modal-heading{padding:24px 22px 15px}.modal-heading h2{font-size:25px}.modal-body{padding:5px 22px 24px}.modal-heading .icon-btn{width:32px;height:32px;flex-shrink:0}.modal-heading .icon-btn .icon{width:18px;height:18px}.modal-footer{padding:16px 22px;gap:7px}.modal-footer>.btn{padding-right:3px}.modal-footer .btn{font-size:10px;padding:9px 11px;min-height:40px}.modal-footer .btn>.icon{width:15px;height:15px}.modal-footer>div{gap:5px}.form-field>input,.form-field>textarea,.form-field>select{font-size:16px}.form-field>span{font-size:11px}.form-row{gap:13px}.form-field{margin-bottom:18px}.version-item{gap:11px}.version-item span{max-width:190px;font-size:10px}.version-item .btn{font-size:9px}.version-item .btn>.icon{display:none}.help-section p{font-size:12px}.shortcut-list>div{font-size:10px}.shortcut-list dd{font-size:9px}.settings-links .btn{min-height:38px}.export-option{padding:15px 13px}.export-option small{font-size:10px}.readonly-banner{font-size:10px;padding:3px 8px}#toast{bottom:calc(20px + env(safe-area-inset-bottom));font-size:11px;padding:11px 15px}}
@media(max-width:420px){.project-grid{grid-template-columns:1fr;gap:25px}.project-card{display:grid;grid-template-columns:132px 1fr;gap:17px;align-items:center}.cover{height:185px;padding:18px 12px}.cover-title{font-size:22px}.cover-top{font-size:6px;letter-spacing:1px}.cover-bottom{font-size:5px;letter-spacing:.7px}.cover-orb{height:88px;width:88px;top:34px}.cover-land{height:125px;bottom:-87px}.cover-land.two{bottom:-103px}.project-card-meta{padding:0}.project-card-title{align-items:flex-start}.project-card-title h3{font-family:var(--serif);font-size:22px;font-weight:400;line-height:1.2;letter-spacing:-.4px}.project-card-title .icon-btn{width:24px;height:25px;margin-right:-9px}.project-card-meta>p{font-size:9px;margin:12px 0 16px;gap:5px}.example-pill{margin-left:0}.card-footer{font-size:9px;margin-top:9px}.card-footer>span:last-child{display:block}.new-project-card{height:124px;gap:5px;position:relative;padding-left:53px}.new-project-card .new-circle{position:absolute;left:29px;top:44px;margin:0}.new-project-card strong{font-size:12px}.new-project-card>span:last-child{font-size:10px}.character-grid,.notes-grid{grid-template-columns:1fr}.character-card{padding:24px;min-height:245px;position:relative}.character-avatar{margin-bottom:18px}.character-card h2{font-size:24px}.character-card p{font-size:12px;max-width:100%}.character-role{position:absolute;top:41px;left:82px;font-size:8px}.card-link{font-size:10px}.note-card{min-height:220px;padding:24px}.note-card h2{font-size:24px}.note-card p{font-size:12px}.scene-title-input{font-size:33px}.workspace-breadcrumb{max-width:156px}.tab{font-size:9px;padding-left:5px;padding-right:5px;gap:4px}.tab>.icon{width:12px;height:12px}.writing-sheet{padding-left:25px;padding-right:25px}.timeline-card h2{font-size:21px}.timeline-card{padding-left:17px;padding-right:17px}.library-hero h1{font-size:47px}.form-row{flex-direction:column;gap:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
}

@layer components {.cover-title,.project-card-title h3,.character-card,.timeline-card,.relationship-card,.note-card,.event-date,.modal-heading h2{overflow-wrap:anywhere}.timeline-card,.relationship-card,.note-card{min-width:0}}

/* Original halo identity: quiet geometry, obsidian, ivory, pale gold and amethyst. */
@layer components {
.brand-mark{width:35px;height:35px;background:transparent;padding:0;border-radius:0;font-size:0;color:var(--accent)}
.brand-mark svg{width:100%;height:100%;stroke:currentColor;stroke-width:1.2}
.brand-mark .halo-arc{stroke:var(--violet,#aa8db8);opacity:.65;stroke-width:.7}
.brand-mark .halo-core{fill:var(--text);stroke:none;opacity:.92}
.brand-name{font-family:var(--serif);font-weight:400;font-size:30px;letter-spacing:-1.3px}
.brand-dot{color:var(--accent)}
.sidebar-top .brand-mark{width:31px;height:31px;font-size:0}
.sidebar-top .brand-name{font-size:28px}
.art-book{background:linear-gradient(145deg,#30262e,#171413 80%);border:1px solid #88734e70;color:#e8dbc0;transform:rotate(0);width:168px;height:220px;left:83px;top:67px;box-shadow:0 20px 45px #0005;border-radius:4px;padding:30px 22px}
.art-book>span{font-size:23px;margin-top:32px;text-align:center;line-height:1.3}
.book-line{display:none}
.book-star{font-size:47px;left:0;right:0;bottom:17px;text-align:center;color:#d6bd83}
.orbit-line.one{width:222px;height:222px;left:55px;top:14px;transform:none;border-color:#d6bd835c}
.orbit-line.two{width:241px;height:241px;left:46px;top:4px;transform:none;border-color:#aa8db837}
.art-sun{width:66px;height:66px;left:133px;top:32px;background:radial-gradient(circle,#eee7d5 0%,#d5bf9670 47%,transparent 70%);opacity:.64;box-shadow:none}
.art-stem{display:none}
.cover.clay,.mini-cover.clay,.color-option.clay{background:#30262d}
.cover.sage,.mini-cover.sage,.color-option.sage{background:#33382d}
.cover.plum,.mini-cover.plum,.color-option.plum{background:#44334b}
.cover.sand,.mini-cover.sand,.color-option.sand{background:#5c5035}
.cover{color:#eee3cc}
.cover-orb{width:112px;height:112px;background:transparent;border:1px solid #ddc68c99;top:32px}
.cover-orb:after{content:'';position:absolute;inset:7px;border-radius:50%;border:1px solid #d6bdeb40}
.cover-land.one{background:#201c21}
.cover-land.two{background:#171519}
.cover.plum .cover-land.one{background:#302538}
.cover.plum .cover-land.two{background:#221b27}
.cover-title{margin-top:31px}
.character-avatar.clay{background:#45343e;color:#e6d7ba}
.character-avatar.plum{background:#493a52;color:#d8c4e0}
.new-project-card{border-color:#4c413d;background:linear-gradient(140deg,transparent,#aa8db806)}
.quiet-quote{color:#9a8f99}
:root[data-theme=light] .art-book{background:linear-gradient(145deg,#483741,#24201e)}
:root[data-theme=light] .quiet-quote{color:var(--muted)}
}
@layer responsive {
@media(max-width:700px){.library-header .brand-name{font-size:30px}}
@media(max-width:420px){.cover-orb{width:88px;height:88px;top:24px}.cover-title{margin-top:31px}}
}
