@font-face{font-family:Fraunces;src:url('assets/fonts/Fraunces/Fraunces[SOFT,WONK,opsz,wght].ttf');font-weight:100 900;font-display:swap}
@font-face{font-family:Fraunces;src:url('assets/fonts/Fraunces/Fraunces-Italic[SOFT,WONK,opsz,wght].ttf');font-style:italic;font-weight:100 900;font-display:swap}
@font-face{font-family:Inter;src:url('assets/fonts/Inter/Inter[opsz,wght].ttf');font-weight:100 900;font-display:swap}
@font-face{font-family:Inter;src:url('assets/fonts/Inter/Inter-Italic[opsz,wght].ttf');font-style:italic;font-weight:100 900;font-display:swap}
@font-face{font-family:Literata;src:url('assets/fonts/Literata/Literata[opsz,wght].ttf');font-weight:200 900;font-display:swap}
@font-face{font-family:Literata;src:url('assets/fonts/Literata/Literata-Italic[opsz,wght].ttf');font-style:italic;font-weight:200 900;font-display:swap}
@font-face{font-family:'Source Serif 4';src:url('assets/fonts/SourceSerif4/SourceSerif4[opsz,wght].ttf');font-weight:200 900;font-display:swap}
@font-face{font-family:'Source Serif 4';src:url('assets/fonts/SourceSerif4/SourceSerif4-Italic[opsz,wght].ttf');font-style:italic;font-weight:200 900;font-display:swap}
@font-face{font-family:'Source Sans 3';src:url('assets/fonts/SourceSans3/SourceSans3[wght].ttf');font-weight:200 900;font-display:swap}
@font-face{font-family:'Source Sans 3';src:url('assets/fonts/SourceSans3/SourceSans3-Italic[wght].ttf');font-style:italic;font-weight:200 900;font-display:swap}
@font-face{font-family:'Atkinson Hyperlegible Next';src:url('assets/fonts/AtkinsonHyperlegibleNext/AtkinsonHyperlegibleNext[wght].ttf');font-weight:200 800;font-display:swap}
@font-face{font-family:'Atkinson Hyperlegible Next';src:url('assets/fonts/AtkinsonHyperlegibleNext/AtkinsonHyperlegibleNext-Italic[wght].ttf');font-style:italic;font-weight:200 800;font-display:swap}
@font-face{font-family:'Times New Roman';src:local('Times New Roman'),url('assets/fonts/Tinos/Tinos-Regular.ttf');font-weight:100 500;font-display:swap}
@font-face{font-family:'Times New Roman';src:local('Times New Roman Italic'),url('assets/fonts/Tinos/Tinos-Italic.ttf');font-style:italic;font-weight:100 500;font-display:swap}
@font-face{font-family:'Times New Roman';src:local('Times New Roman Bold'),url('assets/fonts/Tinos/Tinos-Bold.ttf');font-weight:600 900;font-display:swap}
@font-face{font-family:'Times New Roman';src:local('Times New Roman Bold Italic'),url('assets/fonts/Tinos/Tinos-BoldItalic.ttf');font-style:italic;font-weight:600 900;font-display:swap}
:root{color-scheme:light;--bg:#fff;--fg:#1e1e1e;--secondary:#6b6b6b;--line:#d6d6d6;--border:#e8e8e8;--surface:#f2f2f2;--selection:#d6d6d6;--menu:#1e1e1e;--menu-fg:#fff;--writing-font:Fraunces;--writing-size:20px;--ease:cubic-bezier(.2,0,0,1);--focus-ease:cubic-bezier(.4,0,.2,1)}
:root[data-theme=dark]{color-scheme:dark;--bg:#1e1e1e;--fg:#ececec;--secondary:#a3a3a3;--line:#333;--border:#333;--surface:#2a2a2a;--selection:#3f3f3f;--menu:#ececec;--menu-fg:#1e1e1e}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--fg)}body,button,input{font-family:Inter,sans-serif;font-size:14px;font-weight:400}button,input,dialog{color:inherit}button{cursor:pointer;min-height:44px;border:1px solid var(--border);border-radius:10px;padding:0 16px;background:var(--bg);transition:background 150ms var(--ease)}button:hover{background:var(--surface)}button:disabled{opacity:.35;cursor:default}button:focus-visible,input:focus-visible,[contenteditable]:focus-visible{outline:2px solid var(--fg);outline-offset:3px}button:focus:not(:focus-visible){outline:none}input{min-width:0;max-width:100%;background:var(--bg);border:1px solid var(--line);border-radius:10px;min-height:44px;padding:10px 12px}input::placeholder{color:var(--secondary)}h1,h2,h3,p{margin:0}h1,h2{font-family:Fraunces,serif;font-weight:600;font-variation-settings:'SOFT' 0,'WONK' 0}a{color:inherit}::selection{background:var(--selection);color:var(--fg)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.versalio-app{height:100%;width:100%;overflow:hidden;background:var(--bg);color:var(--fg);transition:background 250ms,color 250ms}.app-shell{height:100%;display:flex;flex-direction:column;min-width:0}.topbar{height:64px;flex-shrink:0;display:flex;align-items:center;gap:8px;padding:0 24px;border-bottom:1px solid var(--surface);background:var(--bg)}.brand{display:flex;align-items:center;border:0;background:none;padding:0 8px;flex-shrink:0}.brand img{width:113px;height:30px;object-fit:contain;object-position:left center}.brand .brand-dark{display:none}[data-theme=dark] .brand .brand-light{display:none}[data-theme=dark] .brand .brand-dark{display:block}.top-actions{display:flex;align-items:center;gap:6px;margin-left:auto;min-width:0}.primary{background:var(--fg);color:var(--bg);border-color:var(--fg);font-weight:500;white-space:nowrap}.primary:hover{background:var(--fg);opacity:.88}.quiet,.icon,.text-button,.back-link{border:0;background:none}.icon{width:44px;height:44px;min-width:44px;padding:0;font-size:19px}.text-button{padding:0 6px;text-decoration:underline;text-underline-offset:3px}.back-link{padding:0;color:var(--secondary);text-align:left;align-self:flex-start}.muted,small{color:var(--secondary)}.small{font-size:12px}.eyebrow{font-family:Inter,sans-serif;font-size:12px;line-height:1.5;font-weight:500;letter-spacing:.06em;color:var(--secondary)}.stack{display:flex;flex-direction:column;gap:16px}.full{width:100%}.loading{display:grid;place-content:center;height:100%;color:var(--secondary)}
.auth-layout{height:100%;overflow:auto;padding:36px 24px 64px}.auth-brand{max-width:1100px;margin:auto}.auth-card{width:100%;max-width:380px;margin:100px auto 0}.auth-card h1{font-size:34px;line-height:1.2;margin:16px 0 12px}.auth-card>.muted{line-height:1.7;margin-bottom:30px}.auth-card label,.modal-body label{display:flex;flex-direction:column;gap:8px;font-size:13px}.google{font-weight:500}.or{display:flex;align-items:center;gap:14px;color:var(--secondary);font-size:12px;margin:24px 0}.or:before,.or:after{content:'';height:1px;flex:1;background:var(--border)}.auth-links{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:16px;font-size:13px;color:var(--secondary)}.form-message{font-size:13px;line-height:1.6;min-height:0}.form-message:empty{display:none}
.search{display:flex;align-items:center;gap:8px;background:var(--surface);border-radius:10px;padding:0 12px;width:260px;max-width:30vw}.search input{border:0;background:none;padding:0;flex:1;font-size:13px}.search>span[aria-hidden]{display:flex;color:var(--secondary)}.library-page{width:100%;max-width:1088px;margin:0 auto;padding:56px 24px 80px;overflow:auto;flex:1}.continue-card{display:flex;justify-content:space-between;align-items:center;gap:24px;width:100%;padding:22px 24px;text-align:left;background:var(--fg);color:var(--bg);border:0;border-radius:16px;min-height:136px}.continue-card:hover{background:var(--fg);opacity:.92}.continue-copy{display:flex;flex-direction:column;gap:6px}.continue-copy strong{font:600 24px/1.25 Fraunces,serif;font-variation-settings:'SOFT' 0,'WONK' 0}.section-heading{margin:44px 0 20px}.book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:16px}.book-card{border:1px solid var(--border);border-radius:16px;overflow:hidden;min-width:0}.book-cover{display:flex;flex-direction:column;gap:8px;align-items:flex-start;text-align:left;width:100%;min-height:176px;border:0;border-radius:0;padding:24px}.book-cover h2{font-size:24px;line-height:1.25;overflow-wrap:anywhere}.book-cover p{font-size:13px}.card-bottom{display:flex;justify-content:space-between;width:100%;margin-top:auto;padding-top:24px;color:var(--secondary);font-size:12px}.search-result{border:0;border-top:1px solid var(--border);border-radius:0;text-align:left;width:100%;font-size:12px}.empty-state{grid-column:1/-1;text-align:center;padding:80px 20px}.empty-state h2{font-size:30px;margin-bottom:12px}.empty-state p{line-height:1.7;margin-bottom:24px}.daily-footer{flex-shrink:0;display:flex;justify-content:flex-end;padding:8px 32px}.daily-goal{border:0;padding:0;display:flex;gap:10px;align-items:center;color:var(--secondary);font-size:12px;background:none}progress{appearance:none;width:80px;height:3px;border:0;border-radius:2px;overflow:hidden;background:var(--border)}progress::-webkit-progress-bar{background:var(--border)}progress::-webkit-progress-value{background:var(--secondary)}progress::-moz-progress-bar{background:var(--secondary)}
.book-page{width:100%;max-width:920px;margin:auto;flex:1;overflow:auto;padding:32px 24px 80px}.book-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:40px 0}.book-heading h1{font-size:42px;overflow-wrap:anywhere;margin:8px 0 12px}.chapter-table{border-top:1px solid var(--border)}.chapter-row{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--border);min-width:0;padding:10px 0}.drag-handle{cursor:grab;color:var(--secondary);font-size:20px}.chapter-number{font-family:Inter,sans-serif;font-size:12px;color:var(--secondary);width:20px;flex-shrink:0}.chapter-open{border:0;flex:1;min-width:0;text-align:left;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:12px 8px}.chapter-open>span{font-family:var(--writing-font),serif;font-weight:var(--writing-weight,300);font-size:21px;overflow-wrap:anywhere}.chapter-open small{font-size:12px}.reorder{display:flex}
.editor-top{height:56px;padding:0 12px;z-index:2;transition:opacity 200ms var(--ease)}.editor-top .brand img{width:24px;height:26px}.breadcrumb{display:flex;align-items:center;gap:6px;color:var(--secondary);font-size:13px;min-width:0}.breadcrumb .text-button{text-decoration:none;color:var(--secondary);max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.breadcrumb #breadcrumb-chapter{color:var(--fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.save-label{font-size:12px;color:var(--secondary);line-height:1.4}.save-label:not(:empty):before{content:'';display:inline-block;width:6px;height:6px;background:var(--secondary);border-radius:50%;margin-right:6px;vertical-align:1px}.save-label.saved:before{animation:save-pulse 250ms var(--ease)}@keyframes save-pulse{from{transform:scale(1.8)}to{transform:scale(1)}}.history{display:flex}.editor-layout{display:flex;flex:1;min-height:0;overflow:hidden}.chapter-sidebar{width:260px;flex-shrink:0;padding:20px 10px;border-right:1px solid var(--surface);overflow:auto;transition:opacity 200ms var(--ease),margin-left 200ms var(--ease)}.chapter-sidebar>.back-link{padding:0 10px;margin-bottom:20px}.chapter-sidebar>.eyebrow{margin:0 10px 12px;font-size:11px}.sidebar-row{border-radius:8px}.sidebar-row.active{background:var(--surface)}.sidebar-chapter{border:0;width:100%;display:flex;gap:10px;align-items:center;text-align:left;padding:8px 10px;background:none;border-radius:8px;min-height:44px}.sidebar-row.active .sidebar-chapter{font-weight:600}.chapter-name{min-width:0;overflow-wrap:anywhere}.new-chapter{width:100%;text-align:left;border:0;background:none;color:var(--secondary);font-size:13px}.writing-pane{overflow:auto;flex:1;min-width:0;scrollbar-gutter:stable;padding:72px 28px 80vh;position:relative;overscroll-behavior:contain;overflow-anchor:none}.writing-column{max-width:680px;margin:0 auto;width:100%;font-family:var(--writing-font),serif;font-variation-settings:'SOFT' 0,'WONK' 0;font-weight:var(--writing-weight,300);animation:chapter-enter 220ms var(--ease)}@keyframes chapter-enter{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}.chapter-title{font-family:inherit;font-size:44px;font-weight:600;line-height:1.1;width:100%;display:block;border:0;border-radius:0;background:none;min-height:55px;padding:0;margin:12px 0 32px;font-variation-settings:'SOFT' 0,'WONK' 0}.chapter-title:focus{outline:0}.manuscript{outline:none!important;font-size:var(--writing-size);line-height:1.55;min-height:30vh;overflow-wrap:anywhere;caret-color:var(--fg)}.block{margin:0 0 .6em;min-height:1.55em;white-space:pre-wrap;transition:color 200ms var(--ease)}.block.heading1{font-size:1.65em;line-height:1.25;font-weight:600;margin:20px 0 12px}.block.heading2{font-size:1.3em;line-height:1.4;font-weight:600;margin:16px 0 10px}.block.quote{border-left:2px solid var(--line);padding-left:22px;font-style:italic}.block.listItem{padding-left:26px;position:relative}.block.listItem:before{content:'•';position:absolute;left:6px}.block.sceneBreak{text-align:center;letter-spacing:.25em;margin:30px 0;user-select:text}.manuscript:has(>.block:only-child>br:only-child):before{content:attr(data-placeholder);position:absolute;color:var(--secondary);pointer-events:none}.selection-menu{position:fixed;display:flex;padding:4px;border-radius:12px;background:var(--menu);color:var(--menu-fg);box-shadow:0 4px 24px #0002;z-index:6;animation:menu-enter 150ms var(--ease);transform-origin:bottom left;width:max-content;max-width:calc(100vw - 24px);flex-wrap:wrap}.selection-menu button{min-width:44px;padding:0 10px;border:0;background:none;color:inherit;font-size:17px}.selection-menu button:hover{background:color-mix(in srgb,var(--menu-fg) 12%,transparent)}@keyframes menu-enter{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.slash-menu{position:fixed;z-index:6;width:300px;max-width:calc(100vw - 24px);padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--bg);box-shadow:0 12px 32px #0002;animation:menu-enter 150ms var(--ease)}.slash-menu button{width:100%;display:flex;justify-content:space-between;align-items:center;border:0;border-radius:8px;padding:0 12px}.slash-menu button.chosen{background:var(--surface)}.slash-menu button{gap:12px;padding:0 10px}.slash-glyph{width:28px;height:28px;display:grid;place-content:center;border:1px solid var(--border);border-radius:6px;background:var(--bg);font:600 14px Fraunces,serif}.slash-label{flex:1;text-align:left}.word-counter{position:relative;white-space:nowrap;padding:0 8px}#word-delta{position:absolute;right:0;top:100%;opacity:0;font-weight:600;pointer-events:none}#word-delta.rise{animation:word-rise 400ms var(--ease)}@keyframes word-rise{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}kbd{font-family:ui-monospace,monospace;font-size:12px;color:var(--secondary)}.editor-footer{min-height:44px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:16px}.reading-book-title,#reading-progress{display:none}.sidebar-hidden .chapter-sidebar{margin-left:-260px;opacity:0;pointer-events:none}
.focus .editor-top{opacity:0;pointer-events:none;transition-duration:1200ms;transition-timing-function:var(--focus-ease)}.focus:not(.sidebar-hidden) .chapter-sidebar{opacity:.25;transition-duration:1200ms;transition-timing-function:var(--focus-ease)}.focus .editor-footer>.save-label{opacity:0;transition:opacity 1200ms var(--focus-ease)}@media(min-width:1101px){.editor-footer>.save-label{display:none}}.reading .editor-top,.reading .chapter-sidebar{display:none}.reading .writing-pane{padding-top:60px;padding-bottom:96px}.reading .writing-column{max-width:680px}.reading .reading-book-title{display:block;text-transform:uppercase;font:11px Inter,sans-serif;letter-spacing:.12em;text-align:center;color:var(--secondary);margin-bottom:56px}.reading #chapter-label{text-align:center}.reading .chapter-title{text-align:center;pointer-events:none;margin-bottom:36px}.reading .block.paragraph{text-align:justify;hyphens:auto;margin-bottom:0;text-indent:1.5em}.reading .block.paragraph:first-child{text-indent:0}.reading .block.paragraph:first-child:first-letter{float:left;font-size:3.8em;line-height:.85;padding:8px 9px 0 0;font-weight:600}.reading .editor-footer .save-label,.reading #daily-progress{display:none}.reading #reading-progress{display:block;color:var(--secondary);font-size:12px;margin-left:auto}.reading .notice-slot{display:none}
.modal{padding:8px 8px 20px;width:calc(100% - 32px);max-width:640px;max-height:calc(100% - 64px);border:1px solid var(--border);border-radius:20px;background:var(--bg);color:var(--fg);box-shadow:0 24px 64px #0004;overflow:auto;margin:auto}.modal::backdrop{background:rgba(20,20,20,.4)}.modal-header{display:flex;align-items:center;min-height:56px;padding:0 8px 0 20px;gap:12px}.modal-header h2{font:600 17px Inter,sans-serif}.modal-header .icon{margin-left:auto}.modal-body{padding:8px 20px}.dialog-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.font-preview{padding:16px 20px;background:var(--surface);border-radius:14px;line-height:1.55;font-weight:var(--writing-weight,300);font-variation-settings:'SOFT' 0,'WONK' 0}.font-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px -8px}.font-grid .eyebrow{font-size:11px;margin:8px 10px}.font-option{border:0;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:8px 10px;text-align:left;border-radius:12px}.font-option>span:first-child{display:flex;flex-direction:column;gap:4px}.font-option small,.focus-option small{font:12px Inter,sans-serif;color:var(--secondary);display:block;margin-top:3px}.font-name{font-size:17px;font-weight:350;font-variation-settings:'SOFT' 0,'WONK' 0}.font-option.selected{background:var(--surface)}.size-control{display:flex;align-items:center;gap:8px;flex:1}.size-control>span:first-child{margin-right:auto}.size-control button{width:40px;min-height:36px;height:36px;padding:0;border-color:var(--line);background:none}.size-control .size-smaller{font-size:13px}.size-control .size-bigger{font-size:18px}.size-control #text-size{width:26px;text-align:center;color:var(--secondary);font-size:13px}.theme-control{display:flex;flex:1;min-width:240px;background:var(--surface);border-radius:12px;padding:3px}.theme-control button{flex:1;background:none;border:0;padding:0 10px;font-size:13px}.theme-control button.selected{background:var(--bg);font-weight:600}.focus-option{padding:16px 0;display:flex;justify-content:space-between;align-items:center;gap:16px;text-align:left;border:0;width:100%;background:none}.switch-track{display:block;position:relative;flex-shrink:0;width:44px;height:26px;background:var(--line);border-radius:13px}.switch-track>span{position:absolute;left:3px;top:3px;width:20px;height:20px;background:var(--bg);border-radius:50%;transition:left 200ms var(--ease)}.focus-option.on .switch-track{background:var(--fg)}.focus-option.on .switch-track>span{left:21px}.notice-slot{position:relative;z-index:4}.notice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 24px;border-bottom:1px solid var(--line);background:var(--surface);font-size:13px;line-height:1.5}.notice p{max-width:900px}.notice button{flex-shrink:0}.conflict-item{padding:16px;border:1px solid var(--border);border-radius:12px}.conflict-item h3{font-size:15px;margin-bottom:8px}.conflict-item p{margin-bottom:16px;font-size:13px}
@media(max-width:1100px){.editor-top .save-label{display:none}.breadcrumb .text-button{max-width:160px}.editor-top .history{display:none}.writing-pane{padding-left:32px;padding-right:32px}.chapter-sidebar{width:230px}.sidebar-hidden .chapter-sidebar{margin-left:-230px}}
@media(max-width:760px){.topbar{padding:8px 16px;height:auto;min-height:64px;flex-wrap:wrap}.library-top .top-actions{flex:1;justify-content:flex-end;flex-wrap:wrap}.library-top .search{order:5;max-width:none;width:100%;flex-basis:100%}.library-top>.brand{align-self:flex-start}.library-top .quiet{padding:0 8px}.library-page{padding:32px 20px 56px}.book-grid{grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr))}.continue-card{gap:16px;padding:22px}.editor-top{height:56px;min-height:56px;flex-wrap:nowrap;padding:0 6px;gap:2px}.editor-top .top-actions{gap:0}.editor-top .brand{display:none}.editor-top .word-counter{display:none}.breadcrumb{flex:1;min-width:0}.breadcrumb .text-button{max-width:100px;padding:0 4px}.breadcrumb #breadcrumb-chapter{max-width:130px}.chapter-sidebar{position:absolute;top:56px;bottom:44px;left:0;z-index:4;width:260px;background:var(--bg);box-shadow:4px 0 24px #0001;transform:translateX(-100%);opacity:0;pointer-events:none;border-right:1px solid var(--border)}.sidebar-hidden .chapter-sidebar{transform:translateX(0);margin-left:0;opacity:1;pointer-events:auto}.focus:not(.sidebar-hidden) .chapter-sidebar{opacity:0}.focus.sidebar-hidden .chapter-sidebar{opacity:.25;transition-duration:1200ms;transition-timing-function:var(--focus-ease)}.writing-pane{padding:48px 24px 80vh}.chapter-title{font-size:36px}.editor-footer{padding:0 20px;font-size:11px;flex-wrap:wrap;gap:0}.editor-footer .save-label{max-width:60%;font-size:11px}.book-page{padding:20px 20px 56px}.book-heading{flex-direction:column;align-items:flex-start;margin:24px 0}.book-heading h1{font-size:36px}.chapter-row{gap:8px}.drag-handle{display:none}.reorder .icon{width:36px;min-width:36px}.chapter-open{padding-left:0}.chapter-open>span{font-size:19px}.font-grid{grid-template-columns:1fr}.modal{max-height:calc(100% - 32px)}.modal-body{padding:8px 16px}.notice{padding:8px 16px;flex-wrap:wrap;gap:6px}.auth-card{margin-top:64px}.reading .writing-pane{padding-top:28px}.reading .reading-book-title{margin-bottom:36px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Extra top room lets even the first line settle at the typewriter anchor. */
svg{flex-shrink:0}.icon,.selection-menu button{display:inline-flex;align-items:center;justify-content:center}.with-icon{display:inline-flex;align-items:center;gap:8px}.new-chapter.with-icon{display:flex}.continue-open{display:flex;align-items:center;gap:6px;font-weight:500}.drag-handle{display:flex}.font-check{display:flex;width:20px}.selection-menu button{font-size:15px;font-weight:600}.selection-menu button[data-action=bold]{font-size:16px;font-weight:700}.selection-menu button[data-action=italic]{font:italic 17px Fraunces,serif}.selection-menu .format-subtitle{font-size:13px}.block{tab-size:2em}
@media(max-width:760px){.drag-handle{display:none}}
.hint{position:relative}.hint::after{content:attr(data-hint);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);z-index:5;padding:6px 10px;border-radius:8px;background:var(--menu);color:var(--menu-fg);box-shadow:0 4px 16px #0002;font:500 12px/1.4 Inter,sans-serif;white-space:pre;pointer-events:none;opacity:0;visibility:hidden;transition:opacity 150ms var(--ease),visibility 150ms}.hint.hint-below::after{bottom:auto;top:calc(100% + 8px)}.hint.hint-start::after{left:0;transform:none}.hint.hint-end::after{left:auto;right:0;transform:none}.hint:focus-visible::after{opacity:1;visibility:visible}@media(hover:hover){.hint:hover::after{opacity:1;visibility:visible;transition-delay:200ms}}
.shortcut-toast{position:fixed;left:50%;bottom:56px;transform:translateX(-50%);z-index:6;padding:8px 14px;border-radius:10px;background:var(--menu);color:var(--menu-fg);font:500 13px/1.4 Inter,sans-serif;pointer-events:none}.shortcut-toast[hidden]{display:none}
.selection-menu button{position:relative}.selection-menu button::after{content:attr(data-hint);position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);padding:6px 10px;border-radius:8px;background:var(--menu);color:var(--menu-fg);box-shadow:0 4px 16px #0002;font:500 12px/1.4 Inter,sans-serif;white-space:pre;pointer-events:none;opacity:0;visibility:hidden;transition:opacity 150ms var(--ease),visibility 150ms}.selection-menu button:first-child::after{left:-4px;transform:none}.selection-menu button:last-child::after{left:auto;right:-4px;transform:none}.selection-menu.hint-below button::after{bottom:auto;top:calc(100% + 10px)}.selection-menu button:focus-visible::after{opacity:1;visibility:visible}@media(hover:hover){.selection-menu button:hover::after{opacity:1;visibility:visible;transition-delay:200ms}}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.editor-footer>.save-label{transition:opacity 200ms var(--focus-ease)}.chapter-leaving{position:fixed;overflow:hidden;pointer-events:none;z-index:1;animation:chapter-exit 150ms var(--ease) forwards}@keyframes chapter-exit{to{opacity:0;transform:translateX(-12px)}}
.focus .editor-footer>.save-label{transition:opacity 1200ms var(--focus-ease)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
@property --fade-top{syntax:'<number>';inherits:false;initial-value:1}@property --fade-bottom{syntax:'<number>';inherits:false;initial-value:1}
.block,.chapter-title,#chapter-label{--fade-top:1;--fade-bottom:1;-webkit-mask-image:linear-gradient(rgb(0 0 0/var(--fade-top)),rgb(0 0 0/var(--fade-bottom)));mask-image:linear-gradient(rgb(0 0 0/var(--fade-top)),rgb(0 0 0/var(--fade-bottom)));transition:--fade-top 200ms var(--focus-ease),--fade-bottom 200ms var(--focus-ease),color 200ms var(--ease)}
.focus .block:not(.current),.focus .chapter-title,.focus #chapter-label{--fade-top:var(--far-top,.38);--fade-bottom:var(--far-bottom,.38);transition-duration:1200ms;transition-timing-function:var(--focus-ease)}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}
.line-control{display:flex;align-items:center;gap:8px;padding-bottom:12px;flex-wrap:wrap}.line-control>span:first-child{display:flex;flex-direction:column;margin-right:auto}.line-control small{font-size:12px;color:var(--secondary);margin-top:3px}.line-control .line-step{display:inline-flex;align-items:center;justify-content:center;width:40px;min-height:36px;height:36px;padding:0;border-color:var(--line);background:none}.line-control #focus-line{width:38px;text-align:center;color:var(--secondary);font-size:13px;font-variant-numeric:tabular-nums}.line-control .text-button{font-size:13px}
/* Settings window: one titled group per subject; title and close stay in view while scrolling. */
.modal-header{position:sticky;top:-8px;z-index:7;background:var(--bg)}
.modal:has(.settings-body){max-height:calc(100% - 24px)}.settings-body .settings-group{padding:14px 0;border-top:1px solid var(--line)}.settings-body .settings-group:first-child{border-top:0;padding-top:4px}.settings-body .settings-group:last-child{padding-bottom:4px}
.settings-group h3{font:600 15px Inter,sans-serif;margin:0 0 10px}.settings-body .settings-group[aria-label=Tema]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 24px}.settings-body .settings-group[aria-label=Tema] h3{margin:0}
.settings-body .font-preview{padding:12px 20px;margin:0}.settings-body .font-grid{margin:8px -10px 4px}.settings-body .font-grid .eyebrow{margin:4px 10px}.settings-body .font-option{min-height:46px;padding:4px 10px}.settings-body .font-option>span:first-child{gap:0}.settings-body .font-option small{margin-top:0}
.settings-body .size-control{padding-top:4px}.settings-body .theme-control{flex:0 1 320px}.settings-body .theme-control button{min-height:36px}
.settings-body .focus-option{padding:0 0 10px;min-height:0}.settings-body .line-control{padding-bottom:0}.settings-group:has(.focus-option:not(.on)) .line-control{opacity:.5}
.goal-setting{display:flex;align-items:center;justify-content:space-between;gap:16px}.goal-setting>span{display:flex;flex-direction:column}.goal-setting small{font-size:12px;color:var(--secondary);margin-top:3px}.goal-setting .text-button{font-size:13px}
/* The day's word count fades like the sidebar: slowly into focus, quickly back. */
#daily-progress{transition:opacity 200ms var(--focus-ease)}.focus #daily-progress{opacity:.25;transition-duration:1200ms}
