:root{color-scheme:dark;--bg:#151815;--panel:#111411;--text:#b3c7af;--muted:#91a08d;--sage:#88ac83;--gold:#d0c58a;--line:#3e503c;--error:#e2a99a;font-family:"Courier New",Courier,monospace;font-size:15px;line-height:1.6}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}[hidden]{display:none!important}header,main,footer{max-width:1360px;margin:auto;padding-left:32px;padding-right:32px}header{display:flex;align-items:center;justify-content:space-between;padding-top:35px;padding-bottom:24px;border-bottom:1px solid var(--line)}h1,h2,h3,p{margin-top:0}h1{font-size:29px;color:var(--gold);font-weight:normal;line-height:1.25;margin-bottom:0}h2{font-size:22px;color:var(--gold);font-weight:normal}h3{font-size:17px;font-weight:normal;color:var(--gold)}.eyebrow{letter-spacing:.13em;color:var(--sage);font-size:12px;margin-bottom:10px}.local-label{color:var(--gold);font-size:12px;border:1px solid var(--line);padding:4px 9px;white-space:nowrap}.local-note{color:var(--muted);max-width:900px;margin:23px 0;font-size:13px}button,input,select,textarea{font:inherit;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:0}button{padding:9px 13px;min-height:44px;cursor:pointer}button:hover{border-color:var(--gold);color:var(--gold)}button:disabled{opacity:.55;cursor:wait}input,select,textarea{padding:9px 10px;min-height:44px;width:100%}textarea{resize:vertical}label{display:block;color:var(--muted);font-size:13px}label input,label select,label textarea{display:block;margin-top:6px}input[type=checkbox],input[type=radio]{width:18px;min-height:18px;height:18px;margin:0;accent-color:var(--sage)}:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.skip{position:absolute;top:-100px;left:12px;padding:12px;background:var(--bg);color:var(--gold);z-index:9}.skip:focus{top:12px}.notice{border-left:3px solid var(--sage);padding:10px 14px;background:var(--panel);overflow-wrap:anywhere}.notice.error{border-color:var(--error);color:var(--error)}.inline{display:flex;gap:12px;margin-top:6px}.inline input{max-width:540px}.inline button{white-space:nowrap}#auth{padding:25px 0 50px;max-width:800px}code{font-family:inherit;color:var(--gold)}.session-line{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:27px 0 18px}.session-line p{margin:0;color:var(--muted);font-size:13px}.quiet{font-size:13px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:24px}.tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:8px 0;color:var(--muted)}.tabs button.active{border-bottom-color:var(--gold);color:var(--gold)}.filters{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:18px;margin-bottom:26px}.library-layout{display:grid;grid-template-columns:330px minmax(0,1fr);border-top:1px solid var(--line);min-height:580px}.library-layout aside{max-height:calc(100vh - 270px);min-height:450px;overflow:auto;padding:16px 22px 30px 0;border-right:1px solid var(--line)}.muted,.empty{color:var(--muted);font-size:13px}.empty{padding-top:20px}.item{display:block;text-align:left;width:100%;background:none;border:0;border-bottom:1px solid var(--line);padding:15px 10px 15px 0}.item:hover{background:#1b221a}.item.selected{background:#202a1f;border-left:2px solid var(--gold);padding-left:12px}.item-title{display:block;color:var(--text);overflow-wrap:anywhere}.item-meta{display:block;color:var(--muted);font-size:11px;margin-top:5px}.status{color:var(--gold)}.detail{min-width:0;padding:23px 0 30px 30px}.detail h2{overflow-wrap:anywhere;margin-bottom:7px}.detail-meta{color:var(--muted);font-size:12px;margin-bottom:23px;overflow-wrap:anywhere}.access-editor{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin-bottom:25px}.access-options{display:flex;gap:20px;flex-wrap:wrap;margin:14px 0}.choice{display:flex;gap:9px;align-items:center;min-height:44px;color:var(--text);font-size:14px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:15px}.section-label{color:var(--gold);font-size:14px;margin-bottom:4px}.small{font-size:12px;color:var(--muted)}.circle{margin-top:20px}.grant-row,.reader-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}.reader-info{min-width:0;overflow-wrap:anywhere}.reader-info span{display:block;font-size:12px;color:var(--muted)}.grant-form{display:flex;gap:10px;align-items:end;margin-top:14px}.grant-form label{flex:1}.grant-form button{white-space:nowrap}.prose{white-space:pre-wrap;overflow-wrap:anywhere;font:16px/1.85 Georgia,"Times New Roman",serif;color:#c7d0c2;margin:0;tab-size:4}.source-info{margin-top:30px;border-top:1px solid var(--line);padding-top:15px;color:var(--muted);font-size:12px}.source-info summary{cursor:pointer;min-height:34px}.source-info pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.reader-form{display:grid;grid-template-columns:1fr 1.2fr auto;align-items:end;gap:14px;padding:15px 0 25px}.reader-row button{font-size:13px}.reader-row small{color:var(--gold)}footer{border-top:1px solid var(--line);padding-top:20px;padding-bottom:25px;font-size:11px;color:var(--muted);margin-top:35px}dialog{background:var(--panel);color:var(--text);border:1px solid var(--sage);max-width:580px;width:calc(100% - 32px);padding:25px}dialog::backdrop{background:#000b}dialog p{overflow-wrap:anywhere}#public-piece{color:var(--gold)}@media(max-width:850px){header,main,footer{padding-left:20px;padding-right:20px}.library-layout{grid-template-columns:265px minmax(0,1fr)}.detail{padding-left:20px}.filters{grid-template-columns:1fr 1fr}.filters label:first-child{grid-column:1/-1}.access-options{gap:8px 18px}}@media(max-width:620px){header{padding-top:23px;align-items:flex-start;gap:12px}h1{font-size:24px}.local-label{font-size:10px}.session-line{align-items:flex-start;gap:10px}.filters{gap:13px}.library-layout{display:block}.library-layout aside{border-right:0;padding:12px 0 20px;max-height:350px;min-height:0;overflow:auto;border-bottom:1px solid var(--line)}.detail{padding:25px 0 20px}.item{padding-left:8px}.reader-form{grid-template-columns:1fr}.inline{flex-direction:column}.inline input{max-width:none}.reader-row{align-items:flex-start}.grant-form{flex-direction:column;align-items:stretch}.access-options{display:block}.prose{font-size:17px}.tabs{margin-top:20px}.local-note{font-size:12px}footer{font-size:10px}}
:root{font-family:"Courier Prime","Courier New",Courier,monospace}h1,h2,h3,.eyebrow,.tabs{font-family:"VT323","Courier New",monospace}.home-link,a{color:var(--gold);text-underline-offset:4px}.home-link{font-size:12px;min-height:44px;display:flex;align-items:center}.auth-panel{padding:25px;border:1px solid var(--line);max-width:650px;margin:25px 0 32px}.auth-panel label{margin-bottom:15px}.auth-panel .actions{margin-top:15px}.session-line .actions{margin:0;align-items:center;font-size:12px}.review-panel{border:1px solid var(--line);padding:18px;margin:20px 0}.review-panel h3{margin-bottom:8px}.review-panel label{margin:12px 0}.review-panel .choice{align-items:flex-start}.review-panel .choice input{flex-shrink:0;margin-top:4px}.notes{white-space:pre-wrap;overflow-wrap:anywhere}.version{overflow-wrap:anywhere;font-size:11px;color:var(--muted)}.prose{font-family:"Courier Prime","Courier New",monospace;font-size:16px;line-height:1.85;max-width:76ch}.detail>h2{font-size:27px}.reader-row .actions{margin:0}.notice{margin-top:22px}.status-line{border-left:2px solid var(--gold);padding-left:12px}.detail details{margin:18px 0}.detail summary{cursor:pointer;min-height:44px;color:var(--gold)}footer{display:flex;justify-content:space-between;gap:20px}button.danger{color:var(--error)}.auth-panel input{max-width:540px}.access-editor{margin-top:25px}.request-form textarea{min-height:100px}.detail h3{margin-top:18px}.source-info pre{max-height:260px;overflow:auto}.approval-label{color:var(--gold)}@media(max-width:620px){header{display:block}.home-link{margin-top:9px}.auth-panel{padding:18px}.session-line{flex-wrap:wrap}.session-line .actions{flex-wrap:wrap}.filters{grid-template-columns:1fr}.filters label:first-child{grid-column:auto}.reader-row{flex-direction:column;align-items:stretch}.reader-row .actions{flex-wrap:wrap}.reader-row button{width:100%}footer{display:block}footer span{display:block;margin-top:10px}.prose{font-size:15px}.review-panel{padding:14px}.detail>h2{font-size:24px}}
.series-nav{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:15px 0;margin:20px 0}.series-nav ol{list-style:none;padding:0}.series-nav li{margin:8px 0}.series-nav li button{text-align:left;white-space:normal}.series-nav [aria-current]{display:block;border-left:2px solid var(--gold);padding:10px;color:var(--gold)}.series-editor{margin-top:20px}.series-editor .inline label{flex:1}.series-editor input[type=number]{max-width:180px}

.email-delivery{margin-top:18px;padding:14px 16px;border-left:2px solid var(--gold);background:var(--panel);overflow-wrap:anywhere}
.email-delivery h3{margin:0 0 5px;font-size:16px}.email-delivery p{margin:0}
.email-delivery-sending{border-top:2px solid var(--gold);animation:email-delivery-enter 320ms ease-out both}
.email-delivery-sent{animation:email-delivery-confirm 320ms ease-out both}
.email-delivery-failed{border-left-color:var(--error);animation:email-delivery-enter 320ms ease-out both}
@keyframes email-delivery-enter{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@keyframes email-delivery-confirm{from{opacity:.45;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.email-delivery-sending,.email-delivery-sent,.email-delivery-failed{animation:none;transform:none}}

/* Announce delivery once without repeating the visible delivery card. */
#notice.email-delivery-announcement{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}

.reader-directory-controls{display:flex;flex-wrap:wrap;align-items:end;gap:12px 24px;margin:22px 0 12px}.reader-directory-controls label{width:100%;max-width:340px}.reader-directory-controls p{margin:0 0 10px}

/* Reader pages share the writing site's quiet palette; author controls retain their layout. */
.reader-route{--bg:#151815;--panel:#10150f;--text:#c1d1b9;--muted:#93a68c;--sage:#9ab491;--line:#354331;--gold:#d0c58a;--library:#1b211b;--selected:#29392b;--primary-ink:#10150f}
.reader-route header,.reader-route main,.reader-route footer{max-width:1120px;padding-left:32px;padding-right:32px}
.reader-route header{padding-top:28px;padding-bottom:22px}.reader-route h1{font-size:30px}.reader-route .eyebrow{font-size:11px;letter-spacing:.08em}
.reader-route .session-line{margin:20px 0 12px}.reader-route #session-status{font-size:11px}.reader-route .session-line .actions{gap:16px}
.reader-route button{color:var(--sage)}.reader-route button:hover{color:var(--text);border-color:var(--sage)}
.reader-route #reader-account{font-size:12px;margin:0 0 18px;color:var(--muted)}.reader-route summary{cursor:pointer;min-height:44px;padding:9px 0;color:var(--sage)}
.reader-route #account-content{max-width:620px;padding:0 0 12px}.reader-route #reader-reference-panel{border:0;margin:0;padding:12px 0}.reader-route #reader-reference-panel h2{font-size:16px;color:var(--text)}
.reader-route #approval-open{margin:0 0 16px}.reader-route #library-note{display:none}.reader-route .library-layout{grid-template-columns:260px minmax(0,1fr);border:1px solid var(--line);min-height:620px}
.reader-route .library-layout aside{background:var(--library,var(--panel));padding:20px 16px;max-height:calc(100vh - 180px);min-height:600px;border-right:1px solid var(--line)}
.reader-route .filters{display:block;margin:0 0 18px}.reader-route .filters label{font-size:11px}.reader-route .filters input,.reader-route .filters select{background:var(--panel);font-size:12px}.reader-route .filter-disclosure{border-bottom:1px solid var(--line);padding:4px 0 10px}.reader-route .filter-disclosure label{margin-bottom:12px}
.reader-route #result-count{font-size:10px;margin-bottom:8px;letter-spacing:.04em}.reader-route .item{padding:18px 10px;border-color:var(--line)}.reader-route .item.selected{background:var(--selected);border-left:2px solid var(--sage);padding-left:8px}.reader-route .item-title{font-size:14px;line-height:1.5}.reader-route .item.selected .item-title{color:var(--gold)}.reader-route .item-meta{font-size:10px;line-height:1.6}.reader-route .item .status{color:var(--muted)}
.reader-route .detail{padding:32px 36px 44px}.reader-route .detail>h2{font-size:28px;line-height:1.35;margin-bottom:10px}.reader-route .version{font-size:11px;margin-bottom:12px}.reader-route .status-line{font-size:11px;border:0;padding:0;margin-bottom:12px}.reader-route .detail>a{display:inline-block;font-size:11px;color:var(--sage);margin:0 0 28px}.reader-route .prose{font:18px/1.85 Georgia,"Times New Roman",serif;color:var(--text);max-width:64ch}.reader-route .library-back{display:none}.reader-route .empty{padding-top:0}
.reader-route footer{margin-top:24px;font-size:10px}.reader-route footer span{display:none}
.text-button{border:0;background:none;padding:8px 0;text-decoration:underline;text-underline-offset:4px;font-size:12px}
#signin-dialog{width:calc(100% - 32px);max-width:390px;padding:28px;background:var(--library,var(--panel));border-color:#53674b}
#signin-dialog #auth{border:0;margin:0;padding:0;max-width:none}#signin-dialog h2{font-size:22px;padding-right:22px;margin-bottom:10px}#signin-dialog #auth-note{font-size:12px;margin-bottom:22px}
.dialog-close{position:absolute;right:10px;top:8px;border:0;background:none;font-size:23px;padding:2px 10px;color:var(--muted)}
#signin-dialog #code-form{padding:0;border:0;margin:18px 0 4px}#signin-dialog #code-form h3{font-size:15px;color:var(--text)}#signin-dialog #code-help{font-size:11px}
#signin-dialog #login-button,#signin-dialog #code-button{background:var(--sage);color:var(--primary-ink,#10150f);width:100%;border-color:var(--sage)}#signin-dialog .auth-panel input{background:var(--panel)}
#signin-dialog #auth-status{font-size:12px;margin:14px 0 0}#signin-dialog #auth-status.error{color:var(--error)}#signin-dialog .email-delivery{font-size:12px;margin-bottom:12px}#signin-dialog .email-delivery h3{font-size:14px}
@media(max-width:850px){.reader-route header,.reader-route main,.reader-route footer{padding-left:20px;padding-right:20px}.reader-route .library-layout{grid-template-columns:230px minmax(0,1fr)}.reader-route .detail{padding:28px 24px}.reader-route .prose{font-size:17px}}
@media(max-width:620px){.reader-route header{display:flex;align-items:center;padding-top:20px;gap:10px}.reader-route .eyebrow{font-size:9px;letter-spacing:0}.reader-route h1{font-size:26px}.reader-route .home-link{font-size:10px;margin:0}.reader-route .session-line{gap:4px;margin:16px 0 8px}.reader-route #session-status{font-size:10px}.reader-route #reader-account{margin-bottom:8px}.reader-route .library-layout{display:block;min-height:0}.reader-route .library-layout aside{min-height:0;max-height:none;border-right:0;border-bottom:0;padding:18px 16px}.reader-route .detail{padding:24px 20px}.reader-route:not(.reading-piece) .detail{display:none}.reader-route.reading-piece .library-layout aside{display:none}.reader-route.reading-piece .library-back{display:block;border:0;background:none;padding:0;margin:0 0 22px;min-height:44px;font-size:12px}.reader-route .detail>h2{font-size:26px}.reader-route .prose{font-size:18px;line-height:1.8}.reader-route .series-nav .actions{display:block}.reader-route .series-nav button{margin-bottom:8px}.reader-route footer{font-size:9px}.reader-route #approval-open{font-size:11px}}

.reader-route a{color:var(--sage)}

.reader-route .piece-about{border-top:1px solid var(--line);margin-top:32px;padding-top:8px;font-size:11px}.reader-route .detail>.version{margin-bottom:28px}

@media(max-width:620px){.reader-route input:not([type=checkbox]):not([type=radio]),.reader-route select,.reader-route textarea,.reader-route .filters input,.reader-route .filters select{font-size:16px}}

.reader-route .item:hover{background:var(--selected)}

/* Device-local reading appearance. */
body.reader-route{--ra-prose-font:Georgia,"Times New Roman",serif}
body.reader-route[data-reader-font="mono"]{--ra-prose-font:"Courier Prime","Courier New",monospace}
body.reader-route[data-reader-palette="day"]{color-scheme:light;--library:#e6e8dc;--selected:#d8dfcb;--primary-ink:#f1f0e6;--bg:#f1f0e6;--panel:#e6e8dc;--text:#293d2e;--muted:#52624e;--sage:#526e4e;--gold:#405c37;--line:#bdc8b4;--error:#8c3e31}
body.reader-route[data-reader-palette="dark"]{color-scheme:dark;--library:#202a20;--selected:#303f2c;--primary-ink:#151b12;--bg:#151815;--panel:#1b231a;--text:#d2ddc8;--muted:#a5b69a;--sage:#a2b98d;--gold:#c7d1ae;--line:#46563d;--error:#e9b6a1}
body.reader-route[data-reader-palette="night"]{color-scheme:dark;--library:#191f15;--selected:#2c3824;--primary-ink:#10130e;--bg:#10130e;--panel:#191f15;--text:#e7e2cd;--muted:#b4bea3;--sage:#a8b98f;--gold:#d4d8b4;--line:#3d4a32;--error:#e9b6a1}
body.reader-route #detail .prose{font-family:var(--ra-prose-font);font-size:19px;line-height:1.9;max-width:66ch;color:var(--text)}
body.reader-route[data-reader-font="mono"] #detail .prose{max-width:70ch}
.reader-tools{display:flex;align-items:flex-start;gap:12px;margin:20px 0 28px;font:12px/1.6 "Courier Prime","Courier New",monospace;color:var(--muted)}
.reader-appearance-button,.reader-appearance-access{font:18px/1.4 Georgia,serif;min-width:44px;min-height:44px;padding:6px 10px;background:transparent;color:var(--text)}
.reader-appearance-access{position:fixed;right:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:14;background:var(--panel);box-shadow:0 4px 20px #0003}
.reader-appearance-sheet{width:min(360px,calc(100vw - 24px));max-width:360px;max-height:calc(100dvh - 24px);padding:22px;margin:auto 12px max(12px,env(safe-area-inset-bottom)) auto;overflow:auto;overscroll-behavior:contain;background:var(--panel);color:var(--text);border-color:var(--line);box-shadow:0 18px 80px #0005;font:12px/1.6 "Courier Prime","Courier New",monospace}
.reader-appearance-sheet::backdrop{background:#0006}
.reader-appearance-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.reader-appearance-header h2{font:15px/1.5 "Courier Prime","Courier New",monospace;margin:0;color:var(--text)}
.reader-appearance-header button{font-size:12px;min-height:44px}
.reader-size-controls{display:flex;align-items:center;gap:8px;margin-bottom:22px}
.reader-size-controls>span{flex:1;color:var(--muted)}
.reader-size-controls button{min-width:44px;min-height:44px;font-size:12px;background:transparent}
.reader-size-controls output{min-width:4ch;text-align:center;font-variant-numeric:tabular-nums}
.reader-appearance-group{display:flex;gap:8px;border:0;padding:0;margin:0 0 18px;min-width:0}
.reader-appearance-group:last-child{margin-bottom:0}
.reader-appearance-group legend{padding:0;margin-bottom:8px;color:var(--muted)}
.reader-appearance-group button{flex:1;min-width:0;min-height:44px;font-size:12px;background:transparent}
.reader-appearance-group button[aria-pressed="true"]{color:var(--text);background:var(--bg);border-color:var(--sage)}
@media(max-width:620px){body.reader-route #detail .prose{font-size:18px}.reader-route input,.reader-route select,.reader-route textarea{font-size:16px}.reader-tools{margin:16px 0 22px}}

/* Palette changes fade only painted colors; normal controls regain immediate feedback afterward. */
body.reader-route.reader-palette-transition,
body.reader-route.reader-palette-transition :where(*),
body.reader-route.reader-palette-transition :where(*)::before,
body.reader-route.reader-palette-transition :where(*)::after,
body.reader-route.reader-palette-transition dialog::backdrop{transition-property:color,background-color,border-color;transition-duration:var(--reader-palette-fade,180ms);transition-timing-function:ease}

/* Author workspace: the same writing palette, with room for private editorial tools. */
.author-route{--bg:#151815;--panel:#10150f;--text:#c1d1b9;--muted:#93a68c;--sage:#9ab491;--gold:#d0c58a;--line:#354331;--library:#1b211b;--selected:#29392b;--primary-ink:#10150f}
.author-route header,.author-route main,.author-route footer{max-width:1360px;padding-left:32px;padding-right:32px}.author-route header{padding-top:28px;padding-bottom:22px}.author-route h1{font-size:30px}.author-route h2{font-size:24px}.author-route h3{font-size:17px;color:var(--text)}.author-route .eyebrow{letter-spacing:.08em;font-size:11px}.author-route a{color:var(--sage)}
.author-route .session-line{margin:22px 0}.author-route .session-line p{font-size:12px}.author-route .tabs{gap:30px;margin-bottom:24px}.author-route .tabs button{padding:12px 2px}.author-route .tabs button.active{border-color:var(--sage);color:var(--text)}
.author-route input,.author-route select,.author-route textarea{background:var(--panel);border-color:var(--line);color:var(--text);font-size:14px;padding:11px 12px}.author-route input:focus,.author-route textarea:focus,.author-route select:focus{border-color:var(--sage)}.author-route button{color:var(--sage);font-size:13px;padding:10px 14px}.author-route button:hover{color:var(--text);border-color:var(--sage)}.author-route button.primary-action,.author-route #author-signin,.author-route #reader-unlock-button{background:var(--sage);color:var(--primary-ink);border-color:var(--sage)}.author-route button.primary-action:hover{background:#adc4a4}.author-route button:disabled{opacity:.5}.author-route .choice{font-size:13px;line-height:1.7}
.author-route #library-note{font-size:12px;max-width:82ch;margin-bottom:22px}.author-route .library-layout{grid-template-columns:280px minmax(0,1fr);border:1px solid var(--line);align-items:start;min-height:600px}.author-route .library-layout aside{background:var(--library);padding:22px 18px;border-right:1px solid var(--line);max-height:calc(100vh - 170px);min-height:600px;position:sticky;top:0}.author-route .filters{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.author-route .filters label{font-size:11px;line-height:1.5}.author-route .filters label:has(#search){order:-1}.author-route .filters input,.author-route .filters select{font-size:12px;width:100%;min-width:0}.author-route #result-count{font-size:10px;margin-bottom:10px}.author-route .item{padding:16px 10px;border-color:var(--line)}.author-route .item:hover,.author-route .item.selected{background:var(--selected)}.author-route .item.selected{border-left:2px solid var(--sage);padding-left:8px}.author-route .item-title{font-size:13px;line-height:1.55}.author-route .item.selected .item-title{color:var(--gold)}.author-route .item-meta{font-size:10px;line-height:1.7}.author-route .item .status{color:var(--muted)}
.author-route .detail{padding:30px 32px 40px}.author-route .detail>h2{font-size:28px;margin-bottom:8px}.author-route .detail>.version{font-size:11px;margin-bottom:24px}.author-route .review-panel{padding:24px;margin:24px 0;background:var(--library);border:1px solid var(--line)}.author-route .review-panel:first-of-type{margin-top:0}.author-route .review-panel .review-panel{background:var(--bg);padding:20px;margin-bottom:0}.author-route .review-panel h3{margin-top:0;margin-bottom:12px}.author-route .review-panel p{margin-bottom:16px}.author-route .small{font-size:12px;line-height:1.75}.author-route .review-panel .status-line{font-size:12px;border-color:var(--sage)}.author-route .wording-panel>h3{font-size:20px;color:var(--gold)}.author-route .wording-panel>button{margin:4px 0 8px}.author-route .review-scope{padding:12px 14px;background:var(--panel);border-left:2px solid var(--line)}.author-route #wording-operation-status:empty{display:none}.author-route .review-panel form>label{margin-top:0}.author-route .review-panel form>button{margin-top:8px}.author-route textarea{line-height:1.75}.author-route #working-draft{font:17px/1.8 Georgia,"Times New Roman",serif;min-height:360px;max-height:70vh}.author-route #sentence-correction{font:17px/1.8 Georgia,"Times New Roman",serif}.author-route .prose{font:17px/1.85 Georgia,"Times New Roman",serif;max-width:68ch;color:var(--text)}
.author-route .detail details{margin:20px 0}.author-route .detail summary{color:var(--sage);font-size:13px;line-height:1.6;cursor:pointer;padding:10px 0;min-height:44px}.author-route .original-panel{padding:8px 24px;background:var(--panel);border:1px solid var(--line)}.author-route .original-panel .prose{padding:16px 0 24px;max-height:580px;overflow:auto}.author-route .organization-panel{padding-top:10px;padding-bottom:10px}.author-route .organization-panel>summary{color:var(--text)}.author-route .organization-panel>h3{margin-top:14px}.author-route .access-editor{padding:24px;border:1px solid var(--line);background:var(--panel);margin:24px 0}.author-route .access-editor>h3{margin-top:0}.author-route .access-editor .review-panel{margin-bottom:0}.author-route .grant-row,.author-route .reader-row{padding:18px 0}.author-route .grant-row .actions{margin-top:0}.author-route .source-info{font-size:11px}.author-route #readers-view{max-width:1000px;margin:0 auto 36px}.author-route #readers-view>h2{margin-bottom:12px}.author-route #readers-view>.muted{max-width:85ch}.author-route #reader-unlock-form{display:flex;gap:18px;align-items:end}.author-route #reader-unlock-form label{flex:1;max-width:440px;margin:0}.author-route #reader-unlock-form button{margin-bottom:0}.author-route #reader-list{border-top:1px solid var(--line);margin-top:20px}.author-route #reader-lock-notice{margin-bottom:20px}.author-route .reader-info{font-size:14px}.author-route .reader-info span{font-size:12px;line-height:1.7}
.author-route .author-entry{max-width:460px;margin:56px auto 80px;padding:30px;background:var(--library);border:1px solid var(--line)}.author-route .author-entry h2{font-size:24px;color:var(--text);margin-bottom:16px}.author-route .author-entry>.muted{font-size:13px;margin-bottom:24px}.author-route .author-entry button{width:100%}.author-route footer{font-size:10px;margin-top:30px}.author-route footer span{color:var(--muted)}
@media(max-width:1000px){.author-route .library-layout{grid-template-columns:250px minmax(0,1fr)}.author-route .detail{padding:26px 24px}.author-route .review-panel{padding:20px}.author-route .grant-form{flex-direction:column;align-items:stretch}}
@media(max-width:700px){.author-route header,.author-route main,.author-route footer{padding-left:18px;padding-right:18px}.author-route header{padding-top:22px}.author-route h1{font-size:26px}.author-route .session-line{align-items:flex-start;flex-wrap:wrap;gap:12px}.author-route .library-layout{display:block}.author-route .library-layout aside{position:static;max-height:none;min-height:0;padding:20px 16px;border-right:0;border-bottom:1px solid var(--line)}.author-route .filters{display:grid;grid-template-columns:1fr 1fr;gap:14px}.author-route .filters label:has(#search){grid-column:1/-1}.author-route .filters label{grid-column:auto}.author-route #item-list{max-height:300px;overflow:auto}.author-route .detail{padding:24px 16px}.author-route .review-panel{padding:18px}.author-route .review-panel .review-panel{padding:16px}.author-route .access-editor{padding:18px}.author-route .original-panel{padding:6px 18px}.author-route input:not([type=checkbox]):not([type=radio]),.author-route select,.author-route textarea,.author-route .filters input,.author-route .filters select{font-size:16px}.author-route .tabs{gap:22px}.author-route .tabs button{font-size:12px}.author-route #reader-unlock-form{display:block}.author-route #reader-unlock-form label{max-width:none;margin-bottom:16px}.author-route .reader-row{align-items:stretch}.author-route .reader-row .actions{gap:10px}.author-route .reader-row button{width:auto}.author-route .author-entry{margin:30px auto 60px;padding:24px}.author-route .detail>h2{font-size:25px}}
/* Author task flow: draft → exact saved preview → one audience-specific action. */
.author-route .draft-panel{margin-bottom:28px}.author-route .draft-panel>h3{font-size:23px;color:var(--gold);margin:0 0 8px}.author-route .draft-panel>.small{margin-bottom:20px;max-width:70ch}.author-route .draft-editor label{font-size:12px;color:var(--muted)}.author-route .draft-editor textarea{display:block;width:100%;margin:8px 0 0;min-height:360px}.author-route .draft-actions{margin:14px 0 8px;align-items:center}.author-route .draft-save-status{margin:0;min-height:22px}.author-route .wording-panel{margin-top:26px;padding:10px 20px;background:var(--panel)}.author-route .wording-panel>summary{color:var(--sage);font-size:13px;min-height:44px;cursor:pointer;display:list-item;padding:10px 0}.author-route .wording-panel>summary::marker{color:var(--muted)}.author-route .wording-panel>p:first-of-type{margin-top:14px}.author-route .wording-panel .review-scope{background:transparent;padding-left:12px}.author-route .wording-panel>button{margin-bottom:12px}.author-route .wording-panel .review-panel{padding:18px}
.author-route .publication-preview{padding:24px;background:var(--library);border:1px solid var(--sage);margin-bottom:24px}.author-route .publication-preview>h3{font-size:23px;color:var(--gold);margin:0 0 10px}.author-route .publication-preview>h3:focus{outline:none}.author-route .publication-preview-text{font:18px/1.8 Georgia,serif;max-width:68ch;max-height:56vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin:24px 0;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.author-route .publication-preview>label{max-width:460px;font-size:13px}.author-route .publication-scope{max-width:70ch;margin:14px 0}.author-route .publication-actions{margin-top:18px}.author-route #publication-action-status:empty{display:none}.author-route .publish-success{border-left:3px solid var(--sage);padding:18px 20px;margin:0 0 24px;background:var(--library)}.author-route .publish-success h3{font-size:19px;color:var(--gold);margin:0 0 8px}.author-route .publish-success button{margin-right:10px}.author-route .author-secondary{padding-top:8px;padding-bottom:8px}.author-route .author-secondary>summary{font-size:13px;min-height:44px;cursor:pointer;color:var(--sage);padding:10px 0}.author-route .author-secondary>form{padding:14px 0}.author-route .author-secondary.access-editor{background:transparent;border:0;border-top:1px solid var(--line);padding:8px 0}.author-route button:active{transform:translateY(1px)}.author-route button:disabled{transform:none;cursor:default}.author-route .grant-access:focus{outline:2px solid var(--sage);outline-offset:6px}
@media(max-width:700px){.author-route .publication-preview{padding:18px}.author-route .publication-preview-text{font-size:17px;padding:18px 0;margin:20px 0}.author-route .draft-editor textarea{min-height:320px}.author-route .draft-actions,.author-route .publication-actions{align-items:stretch}.author-route .draft-actions button,.author-route .publication-actions button{width:100%}.author-route .wording-panel{padding:8px 14px}.author-route .publish-success{padding:16px}.author-route .publish-success button{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){.author-route button:active{transform:none}}

/* Keep the next draft action visible while the author is in the editor. */
.author-route .draft-actions{position:sticky;bottom:0;z-index:6;background:var(--bg);border-top:1px solid var(--line);padding:12px 0;margin-bottom:0}
/* Optional reader tools: access and immutable text remain controlled by the server. */
.rt-account{font-size:12px;margin:20px 0}.rt-account h3{font-size:14px}.rt-access-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding:10px 0}.rt-access-row button{min-height:44px;font-size:12px}.rt-muted{font-size:11px;color:var(--muted);line-height:1.7}.rt-owner-row{border-top:1px solid var(--line);padding:15px 0}.rt-owner-row>p{color:var(--gold)}
.rt-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 16px;font-size:11px}.rt-toolbar button{min-height:44px;font-size:12px;background:transparent}.rt-toolbar span:empty{display:none}.rt-paragraph{display:inline;scroll-margin:60px}.rt-paragraph:focus-visible{outline:1px solid var(--sage);outline-offset:4px}body.rt-placing .rt-paragraph{cursor:crosshair}body.rt-placing .rt-paragraph:hover{background:var(--selected)}
.rt-ball{position:fixed;z-index:12;width:48px;height:48px;min-height:48px;padding:6px;border:0;background:transparent;touch-action:none;user-select:none;cursor:grab}.rt-ball:active{cursor:grabbing}.rt-ball svg{display:block;overflow:visible;transform-origin:center}.rt-eye{filter:drop-shadow(0 0 2px #e8d68d)}
.rt-ripple{position:fixed;z-index:11;width:44px;height:44px;border:1px solid var(--sage);border-radius:50%;pointer-events:none;animation:rt-settle 450ms ease-out forwards}@keyframes rt-settle{from{opacity:.7;transform:scale(.4)}to{opacity:0;transform:scale(1.8)}}
.rt-sheet{position:fixed;inset:auto;margin:0;padding:17px;width:320px;max-width:calc(100vw - 24px);max-height:75dvh;overflow:auto;background:var(--panel);color:var(--text);border:1px solid var(--sage);z-index:20;box-shadow:0 10px 25px #0003;font-family:"Courier New",monospace;font-size:12px;overscroll-behavior:contain}.rt-sheet::backdrop{background:transparent}.rt-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.rt-header h2{font:normal 13px/1.5 "Courier New",monospace;color:var(--gold);margin:0}.rt-header button{min-height:44px;font-size:11px;padding:8px;border:0;background:none}.rt-sheet blockquote{font:16px/1.6 Georgia,serif;margin:0 0 14px;border-left:2px solid var(--sage);padding-left:11px;color:var(--text);overflow-wrap:anywhere;max-height:100px;overflow:auto}.rt-choices{display:flex;gap:8px}.rt-choices button{flex:1;text-align:left;min-height:44px;font-size:12px}.rt-choices [aria-pressed=true]{border-color:var(--sage);color:var(--gold)}.rt-status{font-size:11px;color:var(--muted);line-height:1.7;margin:12px 0}.rt-answer{font:15px/1.7 Georgia,serif;white-space:pre-wrap;overflow-wrap:anywhere}.rt-answer:empty{display:none}.rt-passages{display:grid;gap:8px}.rt-passages h3{font:12px/1.5 "Courier New",monospace;color:var(--gold);margin:8px 0 0}.rt-passages button,.rt-citation-current{font:11px/1.7 "Courier New",monospace;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:8px}.rt-provider-notice{font-size:10px;color:var(--muted);line-height:1.7;border-top:1px solid var(--line);padding-top:12px;margin-top:14px}.rt-sheet details{font-size:11px;margin:12px 0}.rt-sheet summary{min-height:44px;cursor:pointer;padding:8px 0}.rt-sheet textarea{font-size:14px;width:100%;margin-top:8px}.rt-sheet>button{width:100%;font-size:12px;min-height:44px}.rt-return{position:fixed;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:22;min-height:48px;max-width:calc(100vw - 24px);font-size:12px;background:var(--panel);color:var(--gold)}
@media(max-width:700px){.rt-sheet{left:12px!important;right:12px!important;bottom:max(12px,env(safe-area-inset-bottom));top:auto;width:auto;max-width:none;max-height:60dvh;padding:14px}.rt-sheet.rt-above{top:max(12px,env(safe-area-inset-top))!important;bottom:auto!important}.rt-sheet textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.rt-ripple{animation:none;opacity:.6;border-radius:3px}}
.rt-cross-citation{margin:0;padding:10px;border-left:2px solid var(--sage);background:var(--bg)}.rt-cross-citation figcaption{font:11px/1.6 "Courier New",monospace;color:var(--gold);overflow-wrap:anywhere}.rt-sheet .rt-cross-citation blockquote{border:0;margin:6px 0 0;padding:0;font:14px/1.7 Georgia,serif;max-height:none;overflow:visible}
.rt-context-orders{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}.rt-context-order{padding:12px 0;border-bottom:1px solid var(--line)}.rt-context-order summary{cursor:pointer;min-height:44px;padding:10px 0;color:var(--sage)}.rt-context-order ol{padding-left:24px}.rt-context-order li{padding:8px 0;font-size:12px;overflow-wrap:anywhere}.rt-context-order li>p{margin-bottom:4px}.rt-context-order li details{font-size:10px}.rt-context-order li details p{font-size:10px;overflow-wrap:anywhere}.rt-context-order li details summary{font-size:11px}.rt-context-order>button{min-height:44px}

/* Selection-first helpers: floating surfaces never change the prose measure. */
.rt-sheet{border-color:var(--line);border-radius:10px;background:var(--library,var(--panel));padding:20px;box-shadow:0 12px 40px #0004}
.rt-header{gap:16px;margin-bottom:14px}.rt-header h2{font-size:14px;color:var(--sage)}
.rt-header button{border-radius:6px}.rt-selection-levels{display:flex;gap:4px;margin-bottom:12px}.rt-selection-levels button{background:transparent;border-color:transparent;padding:7px 9px;min-height:44px;font-size:11px}.rt-selection-levels [aria-pressed=true]{background:var(--selected);border-color:var(--line);color:var(--gold)}
.rt-selection-hint{font-size:11px;color:var(--muted);line-height:1.6;margin:8px 0 14px}.rt-sheet .rt-choices{gap:8px;margin:10px 0}.rt-choices button{border-radius:6px}
.rt-language-popup{width:330px;max-height:min(70dvh,560px);border-top:2px solid var(--gold)}
.rt-story-panel:not(.rt-selection-preview){left:auto!important;right:18px;top:88px!important;bottom:18px;width:360px;max-height:calc(100dvh - 106px);border-left:2px solid var(--sage)}
.rt-sheet>button{background:var(--sage);color:var(--primary-ink,#10150f);border-radius:6px;border-color:var(--sage);margin-top:10px}.rt-sheet>button:disabled{cursor:not-allowed}
.rt-skeleton{display:grid;gap:9px;padding:12px 0;min-height:70px}.rt-skeleton-line{display:block;height:9px;border-radius:3px;background:linear-gradient(90deg,var(--selected),var(--line),var(--selected));background-size:200% 100%;animation:rt-shimmer 1.4s ease-in-out infinite}.rt-skeleton-line:nth-child(2){width:88%}.rt-skeleton-line:nth-child(3){width:58%}@keyframes rt-shimmer{from{background-position:100% 0}to{background-position:-100% 0}}
.rt-stones{position:fixed;inset:0;pointer-events:none;z-index:13}.rt-stone{position:fixed;pointer-events:auto;width:44px;height:44px;min-height:44px;padding:0;background:transparent;border:0;font-size:12px;color:var(--gold);text-shadow:0 0 8px #d0c58a55}.rt-stone:focus-visible{outline:1px solid var(--gold);border-radius:50%}
@media(max-width:700px){.rt-language-popup{right:auto!important;bottom:auto!important;width:min(330px,calc(100vw - 24px));max-height:65dvh}.rt-sheet.rt-story-panel:not(.rt-selection-preview){top:auto!important;left:10px!important;right:10px!important;bottom:max(10px,env(safe-area-inset-bottom));width:auto;max-height:50dvh;border-left:1px solid var(--line);border-top:2px solid var(--sage);border-radius:12px;padding:16px}.rt-sheet.rt-selection-preview{bottom:auto;right:auto!important;max-height:65dvh;width:calc(100vw - 24px)}.rt-sheet textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.rt-skeleton-line{animation:none;background:var(--line)}}

/* The companion keeps a 48px native pointer target; character geometry owns all motion. */
.rt-ball{padding:0}.rt-character{display:block;width:48px;height:55px;pointer-events:none}.rt-character svg{display:block;width:48px;height:55px;overflow:visible}.rt-header>button{min-width:60px;min-height:44px;border:1px solid var(--line);background:var(--panel);color:var(--text)}.rt-answer-languages{display:flex;gap:6px;margin:8px 0}.rt-answer-languages[hidden]{display:none}.rt-answer-languages button{min-width:44px;min-height:44px}.rt-answer-languages [aria-pressed=true]{border-color:var(--sage);color:var(--gold)}.rt-provider-details{color:var(--muted)}

.rt-feedback{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:8px 0;color:var(--muted);font-size:10px}.rt-feedback[hidden]{display:none}.rt-feedback button{min-height:44px;padding:6px 9px;font-size:10px;background:transparent;border-color:var(--line)}.rt-feedback-status{font-size:10px}.rt-utility-glyph{font:14px/1 monospace;color:var(--sage);opacity:.65;image-rendering:pixelated}.rt-glow-options{display:flex;gap:6px;flex-wrap:wrap}.rt-glow-options button{min-height:44px;font-size:11px}.rt-glow-options [aria-pressed=true]{border-color:var(--sage);color:var(--gold)}.rt-companion-preferences summary{min-height:44px;cursor:pointer;padding:10px 0}.rt-feedback-count p{font-size:11px}.rt-feedback-count meter{width:100%;height:10px;accent-color:var(--sage)}.rt-ball[data-glow=sage]{--rt-eye-light:#eff8d7;--rt-eye-mid:#c2da9e;--rt-eye-edge:#809864}.rt-ball[data-glow=moonlight]{--rt-eye-light:#f3f3ff;--rt-eye-mid:#c8d5ed;--rt-eye-edge:#8a9dbb}

.rt-saved-notes{font-size:11px;flex-basis:100%}.rt-saved-notes>summary{min-height:44px;cursor:pointer;padding:12px 0}.rt-saved-note-list{display:grid;gap:4px;max-height:240px;overflow:auto}.rt-stone-list-item{position:static;min-height:44px;width:100%;padding:9px 10px;text-align:left;font-size:11px;white-space:normal;overflow-wrap:anywhere}.rt-saved-notes[hidden]{display:none}

.rt-site-activity{margin-top:18px;border-top:1px solid var(--line);padding-top:8px}.rt-site-activity>summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:12px}.rt-traffic-preference{display:flex;align-items:center;gap:9px;min-height:44px;font-size:11px}.rt-traffic-preference input{flex:none}.rt-traffic-days{display:grid;gap:8px;max-height:350px;overflow:auto}.rt-traffic-day p{font-size:10px;margin:0 0 3px}.rt-traffic-day meter{display:block;width:100%;height:8px;accent-color:var(--sage)}.rt-traffic-day meter+meter{accent-color:var(--gold)}

.rt-feedback-note{flex-basis:100%;margin:0!important}.rt-feedback-note>summary{min-height:44px;padding:10px 0;color:var(--muted)}.rt-feedback-reasons{display:flex;gap:4px;flex-wrap:wrap}.rt-feedback-reasons [aria-pressed=true]{border-color:var(--sage);color:var(--gold)}.rt-feedback-note textarea{margin:6px 0;width:100%;font-size:14px}.rt-feedback-note>button{min-height:44px}.rt-reader-feedback{margin-top:14px;border-top:1px solid var(--line)}.rt-reader-feedback>summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:12px}.rt-reader-feedback>div{max-height:360px;overflow:auto}.rt-reader-feedback-item{border-bottom:1px solid var(--line);padding:8px 0}.rt-reader-feedback-item p{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){.rt-feedback-note textarea{font-size:16px}}

.rt-feedback-scores{display:flex;gap:5px;flex-wrap:wrap}.rt-feedback-scores button{min-width:44px;min-height:44px;text-align:center}.rt-feedback-scores [aria-pressed=true]{border-color:var(--sage);color:var(--gold)}.rt-feedback-score-label{margin:8px 0;font-size:11px}

/* Reserve the saved-note control before reading; opening its list never reflows prose. */
.rt-toolbar .rt-saved-notes{position:relative;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0}
.rt-saved-notes>summary{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;list-style:none}
.rt-saved-notes>summary::marker{content:""}.rt-saved-notes>summary::-webkit-details-marker{display:none}
.rt-saved-notes>summary[aria-disabled=true]{opacity:.45;cursor:default}
.rt-saved-note-list{position:absolute;top:44px;right:0;width:min(280px,calc(100vw - 80px));z-index:16;background:var(--panel);border:1px solid var(--line);padding:6px;box-shadow:0 10px 25px #0003}
.rt-saved-notes:not([open])>.rt-saved-note-list{display:none}
@media(max-width:700px){.rt-toolbar{gap:8px}.rt-toolbar>button{padding:8px}.rt-sheet.rt-story-panel{top:auto!important;left:10px!important;right:10px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;width:auto!important}.rt-sheet.rt-story-panel.rt-story-above{top:12px!important;bottom:auto!important}.rt-sheet>button:last-child{position:sticky;bottom:0}}

.rt-sheet .rt-header{position:sticky;top:0;z-index:2;background:var(--library,var(--panel))}

/* Quiet footer maintenance action; keep its status visible on reader routes. */
footer .reload-control{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;max-width:100%}
footer #reload-latest{min-height:44px;min-width:44px;border-color:transparent;background:transparent;color:var(--muted);font-size:11px;text-align:left;padding:8px 0}
footer #reload-latest:hover{color:var(--gold);text-decoration:underline;text-underline-offset:4px}
footer #reload-status{font-size:11px;color:var(--muted);margin:0;max-width:32ch}

/* A permanent rest slot is reserved as soon as approved reading tools enhance the page.
   Wide screens use existing outer whitespace; compact screens keep the full prose measure. */
.rt-rest-space{position:fixed;z-index:10;right:0;bottom:0;left:0;height:calc(79px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);pointer-events:auto}
body.rt-has-rest{padding-bottom:calc(79px + env(safe-area-inset-bottom));--rt-rest-bottom:calc(79px + env(safe-area-inset-bottom))}
html:has(body.rt-has-rest){scroll-padding-bottom:calc(103px + env(safe-area-inset-bottom))}
.rt-ball{height:55px;min-height:55px}
body.rt-has-rest .rt-paragraph{scroll-margin-bottom:calc(103px + env(safe-area-inset-bottom))}
body.rt-has-rest .rt-return{max-width:calc(100vw - 160px);bottom:calc(16px + env(safe-area-inset-bottom))}
body.rt-has-rest .reader-appearance-sheet{margin-bottom:calc(var(--rt-rest-bottom) + 12px);max-height:calc(100dvh - var(--rt-rest-bottom) - 24px)}
@media(max-width:1279px){
body.rt-has-rest .rt-sheet{max-height:calc(100dvh - var(--rt-rest-bottom) - 24px)}
}
@media(min-width:701px) and (max-width:1279px){body.rt-has-rest .rt-story-panel:not(.rt-selection-preview){bottom:calc(var(--rt-rest-bottom) + 12px);max-height:calc(100dvh - var(--rt-rest-bottom) - 100px)}}
@media(max-width:700px){
body.rt-has-rest .rt-sheet{bottom:calc(var(--rt-rest-bottom) + 10px)}
body.rt-has-rest .rt-sheet.rt-story-panel{bottom:calc(var(--rt-rest-bottom) + 10px)!important}
body.rt-has-rest .rt-sheet.rt-story-panel.rt-story-above{bottom:auto!important}
}
@media(min-width:1280px){
.rt-rest-space{left:auto;top:0;width:72px;height:auto;border-top:0;border-left:1px solid var(--line)}
body.rt-has-rest{padding-bottom:0;--rt-rest-bottom:0px}
html:has(body.rt-has-rest){scroll-padding-bottom:24px}
body.rt-has-rest .rt-story-panel:not(.rt-selection-preview){right:90px}
body.rt-has-rest .reader-appearance-sheet{margin-right:84px}
}
/* Status uses the already reserved dock, leaving the toolbar and prose in place. */
.rt-toolbar>.rt-reading-status{position:fixed;z-index:12;left:80px;bottom:calc(12px + env(safe-area-inset-bottom));width:calc(100% - 160px);height:55px;max-height:55px;overflow:auto;margin:0;padding:8px 0;display:block;font-size:11px;line-height:1.5;color:var(--muted)}
.rt-toolbar>.rt-reading-status:empty{display:none}
@media(min-width:1280px){.rt-toolbar>.rt-reading-status{left:0;bottom:0;width:1px;height:1px;max-height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
/* Citation return owns the center dock while visible; status remains available to assistive tech. */
body.rt-has-rest:has(.rt-return:not([hidden])) .rt-reading-status{width:1px;height:1px;max-height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
