/* workshop.css */
.workshop-brand{font-size:17px;font-weight:600;letter-spacing:-.015em;}.header-actions{align-self:center;}.resources-menu{position:relative;font-size:16px;}.resources-menu summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--ef-quiet);padding:11px 0;user-select:none;}.resources-menu summary::-webkit-details-marker{display:none;}.resources-menu summary .ui-icon{transform:rotate(180deg);transition:transform .2s;}.resources-menu[open] summary .ui-icon{transform:none;}.resources-menu summary:hover{color:var(--ef-text);}.resources-menu summary:focus-visible{outline:2px solid var(--ef-accent);outline-offset:5px;border-radius:5px;}.resources-popover{position:absolute;top:calc(100% + 16px);right:-8px;display:grid;gap:4px;padding:8px;width:290px;max-width:calc(100vw - 48px);border:1px solid color-mix(in srgb, var(--ef-accent) 17.25%, transparent);border-radius:17px;background:color-mix(in srgb, var(--ef-surface) 96.08%, transparent);box-shadow:0 20px 70px color-mix(in srgb, var(--ef-shadow) 60%, transparent),inset 0 1px 0 color-mix(in srgb, var(--ef-white) 9.41%, transparent);z-index:30;}.resources-popover>a{display:flex;align-items:center;gap:14px;padding:14px;border-radius:11px;color:var(--ef-text);line-height:1.4;}.resources-popover>a:hover{background:color-mix(in srgb, var(--ef-accent) 6.27%, transparent);}.resources-popover .ui-icon{color:var(--ef-muted);}.resources-popover small{display:block;font-size:16px;color:var(--ef-muted);margin-top:5px;}.resources-popover>a:focus-visible{outline:2px solid var(--ef-accent);outline-offset:-2px;}
.workshop-footer,.reader-page .workshop-footer{padding-block:28px;min-height:90px;gap:20px;flex-wrap:nowrap;}.workshop-footer>.footer-signature{font-size:16px;line-height:1.5;color:var(--ef-muted);order:0;width:auto;}.workshop-footer>a:last-child{font-size:16px;color:var(--ef-muted);}.workshop-footer>a:hover{color:var(--ef-quiet);}.reader-page .toast{bottom:24px;}.reader-page .resume-reading{bottom:28px;}.reader-menu-toggle{display:none;position:fixed;bottom:22px;right:22px;z-index:35;align-items:center;gap:9px;padding:12px 16px;color:var(--ef-quiet);background:color-mix(in srgb, var(--ef-surface) 96.08%, transparent);border:1px solid color-mix(in srgb, var(--ef-accent) 18.82%, transparent);border-radius:13px;box-shadow:0 10px 25px color-mix(in srgb, var(--ef-shadow) 33.33%, transparent);font-size:16px;line-height:1.5;}.reading-focus .reader-menu-toggle{display:inline-flex;}.author-work-tools{flex-wrap:wrap;gap:12px;}.author-work-tools>button,.author-work-tools>a{font-size:16px;}
@media(max-width:1000px){.header-inner.wrap{gap:20px;}.header nav{gap:18px;}.workshop-brand{font-size:16px;}.reader-menu-toggle{display:inline-flex;}.reader-page .resume-reading{bottom:88px;}}
@media(max-width:850px){.header-inner.wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding-block:12px;}.header-inner>.brand{grid-column:1;grid-row:1;min-width:0;}.header-inner>.header-actions{display:flex;grid-column:2;grid-row:1;}.header-inner>nav{grid-column:1 / -1;grid-row:2;justify-content:space-between;gap:16px;flex-wrap:nowrap;font-size:16px;}.header nav a{min-height:30px;padding-block:8px;}.resources-popover{top:calc(100% + 10px);right:0;}.resources-menu summary{padding:5px 0;}.workshop-brand{font-size:17px;}}
@media(max-width:600px){.header-inner.wrap{padding:14px 16px;}.site-page .header nav,.reader-page .header nav{font-size:16px;gap:8px;}.header-inner>.brand{font-size:16px;white-space:normal;line-height:1.35;}.resources-menu{font-size:16px;}.resources-popover{width:270px;}.reader-menu-toggle{right:16px;bottom:16px;}.workshop-footer{gap:18px;}.workshop-footer>.footer-signature{font-size:16px;}.author-work-tools{justify-content:flex-start;}.author-work-tools>button,.author-work-tools>a{font-size:16px;}}

.resources-popover{max-height:70dvh;overflow-y:auto;overscroll-behavior:contain;}

/* usability.css */
/* Reader: the text is the main surface; tools appear only when requested. */
.reader-page .publication-grid{display:block;}
.reader-page .publication-content{width:100%;max-width:740px;margin:0;padding-inline:28px;}
.reader-page .publication-body{max-width:none;}
html[data-read-width=wide] .reader-page:not(.poem-page) .publication-content{max-width:800px;}
.reader-page .work-hero .work-hero-copy .work-annotation{display:block;max-width:none;padding:0;margin:20px 0 0;border:0;}

.reader-page .work-hero .work-hero-copy .work-note-preview{font-size:1rem;line-height:1.75;-webkit-line-clamp:2;line-clamp:2;max-height:3.5em;color:var(--ef-quiet);}
.reader-page .work-hero .work-hero-copy .work-note-more{margin-top:9px;font-size:max(1rem, .875rem);}

.reader-page #reading-panel{position:fixed;inset:auto;display:none;margin:0;padding:20px;width:310px;border:1px solid color-mix(in srgb, var(--ef-accent) 18.82%, transparent);border-radius:18px;background:color-mix(in srgb, var(--ef-surface) 98.04%, transparent);box-shadow:0 18px 55px color-mix(in srgb, var(--ef-shadow) 46.67%, transparent);z-index:1400;overflow:auto;font-size:1rem;}
.reader-page #reading-panel:popover-open{display:flex;flex-direction:column;gap:16px;}
.reader-page #reading-panel [hidden]{display:none!important;}
.reader-page .reader-panel-head button{display:block;font-size:24px;line-height:1;width:34px;height:34px;border-radius:9px;background:color-mix(in srgb, var(--ef-white) 2.75%, transparent);}
.reader-page .reader-panel-head{font-size:1rem;}
.reader-page.reading-focus .publication-content{margin:0;padding-top:0;}
.reader-page.reading-focus .work-about-full,.reader-page.reading-focus .related-publications,.reader-page.reading-focus .original-source{display:none;}

.reader-page .related-publications>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.reader-page .related-publications>div>a{display:block;padding:24px;border:1px solid color-mix(in srgb, var(--ef-white) 10.2%, transparent);border-radius:16px;background:var(--ef-surface-deep);min-width:0;}
.reader-page .related-publications h2{font-size:22px;margin-bottom:22px;}
.reader-page .related-publications h3{font-size:20px;line-height:1.45;margin:12px 0;color:var(--ef-text);}
.reader-page .related-publications span{font-size:16px;color:var(--ef-muted);}
.reader-page .related-publications p{font-size:16px;line-height:1.7;color:var(--ef-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.reader-page .author-work-tools{display:block;position:relative;margin:0 0 22px;padding:0;border:0;background:none;}
.author-work-tools>summary{display:inline-flex;align-items:center;gap:9px;list-style:none;padding:9px 14px;border:1px solid color-mix(in srgb, var(--ef-accent) 20%, transparent);border-radius:11px;background:color-mix(in srgb, var(--ef-accent) 2.75%, transparent);color:var(--ef-quiet);font-size:16px;cursor:pointer;min-height:42px;}
.author-work-tools>summary::-webkit-details-marker{display:none;}
.author-edit-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:35;display:grid;gap:4px;width:285px;max-width:calc(100vw - 40px);padding:8px;border:1px solid color-mix(in srgb, var(--ef-accent) 20%, transparent);border-radius:14px;background:var(--ef-surface);box-shadow:0 16px 40px color-mix(in srgb, var(--ef-shadow) 46.67%, transparent);}
.author-edit-menu>button,.author-edit-menu>a{display:flex;align-items:center;gap:12px;padding:12px;text-align:left;font-size:16px;line-height:1.5;border-radius:8px;color:var(--ef-quiet);background:none;border:0;}
.author-edit-menu>button:hover,.author-edit-menu>a:hover{background:color-mix(in srgb, var(--ef-accent) 4.31%, transparent);}
.catalog-search-hit{color:var(--ef-quiet)!important;display:block!important;font-size:1rem;line-height:1.65;}
.catalog-search-hit[hidden],.catalog-entry-copy p[hidden]{display:none!important;}
.catalog-search-hit mark{background:color-mix(in srgb, var(--ef-accent) 14.51%, transparent);color:var(--ef-text);border-radius:3px;padding:0 2px;}
.catalog-refinements{grid-column:1/-1;}
.catalog-refinements>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;}
.catalog-refinements .catalog-selects{margin-top:0;}
/* The owner workspace has one save bar and separate, explicit sections. */
.admin-shell .admin-grid{grid-template-columns:260px minmax(0,1fr);gap:28px;align-items:start;}
.admin-shell .admin-list{position:sticky;top:24px;max-height:calc(100dvh - 48px);overflow:auto;border-radius:18px;background:var(--ef-surface);padding:20px;}
.admin-shell .admin-editor{min-width:0;padding:28px;border:1px solid color-mix(in srgb, var(--ef-white) 10.59%, transparent);border-radius:20px;background:var(--ef-surface-deep);}
.editor-work-heading{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:26px;}
.editor-work-heading h2{font-size:26px;line-height:1.35;margin:9px 0 0;overflow-wrap:anywhere;}
#editor-state{font-size:16px;color:var(--ef-muted);}
.editor-work-heading>a{font-size:16px;line-height:1.5;white-space:nowrap;margin-top:5px;color:var(--ef-quiet);}
.editor-tabs{display:flex;gap:4px;padding:5px;background:var(--ef-surface-deep);border:1px solid color-mix(in srgb, var(--ef-white) 7.45%, transparent);border-radius:12px;margin-bottom:28px;overflow:auto;}
.editor-tabs>button{flex:1;min-height:44px;padding:10px 14px;border-radius:8px;white-space:nowrap;font-size:16px;color:var(--ef-muted);}
.editor-tabs>button[aria-selected=true]{background:color-mix(in srgb, var(--ef-accent) 6.67%, transparent);color:var(--ef-text);}
.editor-tabs>button:focus-visible{outline:2px solid var(--ef-accent);outline-offset:-2px;}
.admin-editor [hidden]{display:none!important;}
.admin-editor [role=tabpanel]{padding:0;min-width:0;}
.admin-editor label{font-size:16px;line-height:1.6;color:var(--ef-quiet);display:block;margin-bottom:20px;}
.admin-editor input:not([type=file]):not([type=color]),.admin-editor textarea,.admin-editor select{font-size:16px;line-height:1.7;background:var(--ef-surface-deep);border:1px solid color-mix(in srgb, var(--ef-accent) 15.69%, transparent);border-radius:11px;color:var(--ef-text);margin-top:8px;}
.admin-editor input:focus,.admin-editor textarea:focus{outline:2px solid color-mix(in srgb, var(--ef-accent) 36.08%, transparent);outline-offset:2px;}
.admin-editor textarea{min-height:0;resize:vertical;width:100%;padding:16px;}
.admin-editor #content{line-height:1.8;min-height:400px;}
.editor-field-hint{font-size:16px;line-height:1.7;color:var(--ef-muted);margin:-5px 0 22px;}
.editor-extra{margin-top:24px;border-top:1px solid color-mix(in srgb, var(--ef-white) 7.84%, transparent);padding-top:18px;}
.editor-extra>summary{font-size:16px;color:var(--ef-muted);cursor:pointer;margin-bottom:16px;}
.admin-editor .cover-editor{border:0;padding:0;margin:0 0 24px;}
.admin-editor #cover-preview{width:216px;height:216px;object-fit:contain;background:var(--ef-surface-deep);border:1px solid color-mix(in srgb, var(--ef-white) 14.12%, transparent);border-radius:18px;padding:5px;max-width:100%;}
.editor-theme{margin:0;padding:22px 0 0;border:0;border-top:1px solid color-mix(in srgb, var(--ef-white) 7.84%, transparent);}
.editor-theme legend{font-size:16px;line-height:1.6;padding:0;}
.editor-theme-presets{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 24px;}
.editor-theme-presets button{min-height:44px;padding:10px 16px;border:1px solid color-mix(in srgb, var(--ef-white) 15.69%, transparent);border-radius:10px;font-size:16px;color:white;}
.editor-theme-presets button[data-theme-start="var(--ef-warning)"]{color:var(--ef-accent);}
#editor-gradient-preview{height:100px;border-radius:16px;border:1px solid color-mix(in srgb, var(--ef-white) 14.51%, transparent);margin-top:12px;}
.editor-notice{font-size:16px;line-height:1.7;padding:14px 18px;background:color-mix(in srgb, var(--ef-accent) 3.14%, transparent);border-left:2px solid var(--ef-accent);border-radius:0 10px 10px 0;color:var(--ef-quiet);margin:0 0 22px;}
.editor-save-bar{position:sticky;bottom:16px;z-index:30;border:1px solid color-mix(in srgb, var(--ef-accent) 16.08%, transparent);background:color-mix(in srgb, var(--ef-surface) 98.04%, transparent);border-radius:14px;padding:16px;margin:28px -8px -8px;box-shadow:0 8px 30px color-mix(in srgb, var(--ef-shadow) 33.33%, transparent);}
.editor-save-bar #save-status{font-size:16px;line-height:1.65;color:var(--ef-muted);margin:0 0 12px;}
.editor-save-bar .editor-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0;align-items:center;}
.editor-save-bar .button{font-size:16px;min-height:44px;padding:11px 15px;border-radius:10px;white-space:normal;text-align:center;}
.editor-save-bar .button.primary{margin-left:auto;}
.editor-more-actions{margin-top:12px;font-size:16px;color:var(--ef-muted);}
.editor-more-actions>summary{cursor:pointer;display:inline-block;}
.editor-more-actions>button{display:block;font-size:16px;line-height:1.5;padding:12px 0;color:var(--ef-quiet);text-align:left;}
#notes-preview{display:block;width:100%;height:700px;max-height:85dvh;border:1px solid color-mix(in srgb, var(--ef-white) 13.33%, transparent);border-radius:14px;background:var(--ef-surface-deep);margin-top:22px;}
.preview-annotation-tools{display:flex;justify-content:flex-end;margin-bottom:12px;}
.preview-annotation-tools>button{font-size:16px;color:var(--ef-quiet);padding:10px 14px;border:1px solid color-mix(in srgb, var(--ef-accent) 18.82%, transparent);border-radius:10px;}
.editor-preview .publication-layout{padding:22px;max-width:100%;}
.editor-preview .publication-breadcrumb{display:none;}
.editor-preview .work-hero{margin-bottom:24px;}
.editor-preview .work-hero>.work-banner{height:100px;}
.editor-preview .work-heading-layout{grid-template-columns:150px minmax(0,1fr);gap:24px;padding-inline:16px;margin-top:20px;}
.editor-preview .work-hero .work-cover{width:150px;height:150px;margin-top:-60px;border-radius:16px;}
.editor-preview .work-hero .work-hero-copy h1{font-size:38px;line-height:1.2;}
.editor-preview .work-hero .work-hero-copy .work-annotation{margin-top:16px;}
.editor-preview .publication-content{padding-inline:16px;}
.editor-preview .work-reading-heading{top:0;}
#preview-warning{font-size:16px;line-height:1.6;margin:0;padding:14px 20px;color:var(--ef-text);background:color-mix(in srgb, var(--ef-warning) 9.41%, transparent);}
.drag-over{outline:2px dashed var(--ef-accent);outline-offset:5px;border-radius:12px;}
@media(max-width:1180px){.reader-page .publication-content{margin-inline:auto;max-width:780px;}.reader-page.reading-focus .publication-content{margin-inline:auto;}.reader-page .work-reading-heading{top:108px;}}
@media(max-width:850px){.reader-page .work-reading-heading{top:113px;}.reader-page .publication-content{padding-inline:24px;}.admin-shell .admin-grid{grid-template-columns:minmax(0,1fr);}.admin-shell .admin-list{position:static;max-height:260px;}.admin-shell .admin-editor{padding:24px;}.editor-work-heading h2{font-size:24px;}}
@media(max-width:650px){.reader-page .work-heading-layout{grid-template-columns:minmax(0,1fr);gap:22px;padding-inline:18px;margin-top:22px;}.reader-page .work-hero .work-cover{width:200px;height:200px;margin-top:-70px;}.reader-page .work-hero .work-hero-copy h1{font-size:34px;max-width:none;}.reader-page .work-hero.poetry-hero .work-hero-copy h1{font-size:clamp(38px,9vw,48px);}.reader-page .work-hero .work-hero-copy .work-annotation{margin-top:18px;}.reader-page .publication-content{padding-inline:18px;}.reader-page .work-reading-heading{gap:12px;padding-block:9px;}.reader-page .work-reading-heading .reader-menu-toggle{font-size:16px;}.reader-page .related-publications>div{grid-template-columns:minmax(0,1fr);}.reader-page .work-about-full>.work-about-content{max-width:none;}.editor-preview .work-hero .work-cover{width:150px;height:150px;}.editor-preview .work-heading-layout{padding-inline:0;}.editor-preview .publication-content{padding-inline:0;}.editor-preview .work-hero .work-hero-copy h1{font-size:36px;}}
@media(max-width:600px){.catalog-refinements>summary{display:flex;align-items:center;gap:4px;min-height:44px;padding:10px 0;cursor:pointer;color:var(--ef-quiet);font-size:16px;list-style:none;}.catalog-refinements>summary::-webkit-details-marker{display:none;}.catalog-refinements[open] .catalog-selects{padding-top:8px;}.admin-shell .admin-editor{padding:18px;}.editor-work-heading{flex-direction:column;gap:8px;margin-bottom:22px;}.editor-tabs{margin-inline:-5px;gap:0;}.editor-tabs>button{padding:10px;font-size:16px;}.editor-save-bar{bottom:8px;margin:24px -10px -10px;padding:12px;}.editor-save-bar .editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;}.editor-save-bar #save-draft{grid-column:1/-1;}.editor-save-bar .button.primary{margin:0;}.editor-theme-presets{gap:8px;}.editor-theme-presets button{padding:8px 12px;}.admin-editor #content{min-height:360px;}}
@media(prefers-reduced-motion:no-preference){.editor-tabs>button,.reader-menu-toggle,.author-work-tools>summary{transition:background-color .15s,color .15s;}}
.reader-page .work-hero .work-hero-copy .work-note-preview{margin:0;}
#admin-refresh{margin-bottom:22px;font-size:16px;}
.reader-page.reading-focus .author-work-tools{display:none;}

/* Publication sections share a clear edge and the same spacing rhythm. */
.reader-page .publication-layout{padding-top:16px;}
.publication-topbar{position:relative;z-index:5;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;min-height:34px;margin-bottom:14px;padding-bottom:8px;border-bottom:1px solid color-mix(in srgb, var(--ef-accent) 14.12%, transparent);}
.reader-page .publication-topbar .publication-breadcrumb{margin:0;min-width:0;flex-wrap:wrap;}
.reader-page .publication-topbar .author-work-tools{margin:0 0 0 auto;flex-shrink:0;}
.publication-topbar .author-edit-menu{left:auto;right:0;}
.publication-topbar .author-work-tools>summary{min-height:34px;padding:6px 11px;line-height:20px;border-radius:9px;}
.publication-topbar .author-work-tools>summary:hover,.publication-topbar .author-work-tools[open]>summary{background:color-mix(in srgb, var(--ef-accent) 6.27%, transparent);border-color:color-mix(in srgb, var(--ef-accent) 33.73%, transparent);color:var(--ef-text);}
.reader-page .publication-grid{border-top:1px solid color-mix(in srgb, var(--ef-accent) 16.47%, transparent);border-bottom:1px solid color-mix(in srgb, var(--ef-accent) 14.12%, transparent);padding-block:32px;}
.reader-page .work-hero .work-hero-copy .work-note-body{max-width:65ch;}
.reader-page .work-about-full{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:start;gap:32px;padding:32px;margin-top:32px;box-shadow:inset 0 1px 0 color-mix(in srgb, var(--ef-white) 14.12%, transparent),0 16px 40px color-mix(in srgb, var(--ef-shadow) 13.33%, transparent);}
.work-about-heading{display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding:4px 0;}
.work-about-mark{display:grid;place-items:center;width:48px;height:48px;border:1px solid color-mix(in srgb,currentColor 24%,transparent);border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb, var(--ef-white) 14.9%, transparent),color-mix(in srgb, var(--ef-white) 1.96%, transparent));box-shadow:inset 0 1px 0 color-mix(in srgb, var(--ef-white) 16.86%, transparent);}
.work-about-heading h2{font:500 22px/1.4 Inter,"Segoe UI",sans-serif;letter-spacing:-.025em;color:inherit;margin:0;text-wrap:balance;}
.reader-page .work-about-full>.work-about-content{max-width:none;min-width:0;padding:4px 0 4px 32px;border-left:1px solid color-mix(in srgb,currentColor 22%,transparent);font-size:1rem;line-height:1.85;}
.work-about-content>:not(figure){max-width:74ch;}
.work-about-content>:first-child{margin-top:0;}
.work-about-content figure{margin:24px 0;}
.work-about-content :is(h2,h3){font-size:1.25rem;line-height:1.5;margin:28px 0 16px;color:inherit;}
.work-about-content :is(ul,ol){padding-left:1.4em;margin-block:20px;}
.work-about-content li+li{margin-top:8px;}
.work-about-full:focus-visible{outline:2px solid var(--ef-accent);outline-offset:5px;}
.reader-page .related-publications{margin-top:32px;padding-top:28px;border-top:1px solid color-mix(in srgb, var(--ef-accent) 14.12%, transparent);}

.reader-page.reading-focus .publication-grid{border:0;}

@media(max-width:850px){
 .reader-page .work-about-full{grid-template-columns:180px minmax(0,1fr);gap:24px;padding:28px;}
 .reader-page .work-about-full>.work-about-content{padding-left:24px;}
}
@media(max-width:650px){
 .publication-topbar{gap:12px;padding-bottom:8px;margin-bottom:14px;}
 .publication-topbar .author-work-tools>summary{padding:9px 11px;}
 .reader-page .work-about-full{grid-template-columns:minmax(0,1fr);gap:22px;padding:24px 22px;margin-top:28px;}
 .work-about-heading{flex-direction:row;align-items:center;gap:14px;padding:0;}
 .work-about-mark{width:42px;height:42px;border-radius:12px;flex-shrink:0;}
 .work-about-heading h2{font-size:21px;}
 .reader-page .work-about-full>.work-about-content{padding:20px 0 0;border-left:0;border-top:1px solid color-mix(in srgb,currentColor 22%,transparent);}
}

/* Reading preferences live with the page tools, outside the text. */
.publication-tools{display:flex;align-items:center;gap:12px;margin-left:auto;}
.reader-page .publication-tools .reader-menu-toggle{position:static;z-index:auto;display:grid;place-items:center;width:34px;height:34px;min-width:34px;padding:0;border:1px solid color-mix(in srgb, var(--ef-accent) 16.47%, transparent);border-radius:9px;background:color-mix(in srgb, var(--ef-accent) 2.75%, transparent);color:var(--ef-quiet);box-shadow:none;}
.reader-page .publication-tools .reader-menu-toggle:hover{background:color-mix(in srgb, var(--ef-accent) 6.27%, transparent);border-color:color-mix(in srgb, var(--ef-accent) 33.73%, transparent);color:var(--ef-text);}
.reader-page .publication-tools .reader-menu-toggle:focus-visible{outline:2px solid var(--ef-accent);outline-offset:3px;}
.reader-page .publication-topbar .author-work-tools{padding-left:12px;border-left:1px solid color-mix(in srgb, var(--ef-accent) 16.47%, transparent);}
.reader-page.reading-focus .publication-topbar{display:flex;position:fixed;top:16px;right:24px;z-index:40;min-height:0;margin:0;padding:0;border:0;}
.reader-page.reading-focus .publication-topbar .publication-breadcrumb{display:none;}
.reader-page.reading-focus .publication-tools .reader-menu-toggle{background:color-mix(in srgb, var(--ef-surface) 96.08%, transparent);}
.editor-preview .publication-topbar{display:flex;justify-content:flex-end;margin-bottom:18px;padding-bottom:12px;}
@media(max-width:650px){.publication-tools{gap:10px;}.reader-page .publication-topbar .author-work-tools{padding-left:10px;}.reader-page .publication-grid{padding-block:24px;}.reader-page.reading-focus .publication-topbar{right:18px;}}

@media(pointer:coarse){.reader-page .publication-tools .reader-menu-toggle{width:42px;height:42px;min-width:42px;}.publication-topbar .author-work-tools>summary{min-height:42px;}}

/* A quiet bookmark, rather than a second reading toolbar. */
.reader-page #resume-reading{display:flex;align-items:center;gap:0;width:308px;max-width:calc(100vw - 32px);padding:5px 7px 5px 5px;border:1px solid color-mix(in srgb, var(--ef-accent) 13.73%, transparent);border-radius:17px;background:linear-gradient(120deg,color-mix(in srgb, var(--ef-white) 2.35%, transparent),color-mix(in srgb, var(--ef-white) 0.78%, transparent)),color-mix(in srgb, var(--ef-surface) 90.98%, transparent);box-shadow:0 10px 32px color-mix(in srgb, var(--ef-shadow) 33.33%, transparent),inset 0 1px 0 color-mix(in srgb, var(--ef-white) 5.1%, transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);}
.reader-page #resume-reading[hidden]{display:none!important;}
.reader-page #resume-confirm{position:relative;display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:50px;padding:8px 12px;border:0;border-radius:12px;background:transparent;text-align:left;font-family:inherit;color:var(--ef-text);cursor:pointer;transition:background .2s;}
.reader-page #resume-confirm:hover{background:color-mix(in srgb, var(--ef-white) 2.35%, transparent);}
.resume-book{display:grid;place-items:center;flex-shrink:0;width:28px;color:var(--ef-quiet);}
.resume-copy{display:grid;gap:3px;min-width:0;}
.resume-copy strong{font-size:16px;font-weight:500;line-height:1.4;letter-spacing:-.015em;}
#resume-position{font-size:16px;line-height:1.4;color:var(--ef-muted);font-variant-numeric:tabular-nums;}
.reader-page #resume-dismiss{position:relative;display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;min-height:32px;margin:0 0 0 6px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ef-muted);cursor:pointer;transition:color .2s,background .2s;}
.reader-page #resume-dismiss:hover{background:color-mix(in srgb, var(--ef-white) 2.75%, transparent);color:var(--ef-text);}
.reader-page #resume-dismiss::before{content:"";position:absolute;left:-4px;top:4px;bottom:4px;width:1px;background:linear-gradient(transparent,color-mix(in srgb, var(--ef-white) 8.63%, transparent),transparent);}
.resume-close-mark{position:relative;width:12px;height:12px;pointer-events:none;}
.resume-close-mark::before,.resume-close-mark::after{content:"";position:absolute;top:50%;left:0;width:12px;height:1.5px;border-radius:2px;background:currentColor;transform:translateY(-50%) rotate(45deg);}
.resume-close-mark::after{transform:translateY(-50%) rotate(-45deg);}
.reader-page #resume-reading button:focus-visible{outline:2px solid var(--ef-accent);outline-offset:2px;}
@media(prefers-reduced-motion:no-preference){.reader-page #resume-reading:not([hidden]){animation:resume-bookmark-in .4s cubic-bezier(.16,1,.3,1);}@keyframes resume-bookmark-in{from{opacity:0;transform:translateX(-50%) translateY(10px);}to{opacity:1;transform:translateX(-50%) translateY(0);}}}
.admin-shell :is(.admin-fields,.theme-colors){grid-template-columns:repeat(2,minmax(0,1fr));}
.admin-shell :is(.admin-top,.admin-heading,.admin-workspaces){flex-wrap:wrap;}
.admin-shell .admin-heading>div{min-width:0;}
.admin-shell .editor-work-heading>a{white-space:normal;}
.admin-shell :is(#preview-dialog,#settings-preview-dialog,#collection-preview-dialog){overflow:hidden;}
.admin-shell :is(#preview-dialog,#settings-preview-dialog,#collection-preview-dialog)[open]{display:flex;flex-direction:column;}
.admin-shell :is(#preview-dialog,#settings-preview-dialog,#collection-preview-dialog)>header{height:auto;min-height:60px;flex:none;gap:16px;}
.admin-shell :is(#preview-dialog,#settings-preview-dialog,#collection-preview-dialog) iframe{display:block;flex:1;min-height:0;height:auto;}
.work-editor-body>section,.work-editor-body>div,.work-editor-header>div,.quick-theme-heading>div{min-width:0;}
.quick-theme-preview strong{overflow-wrap:anywhere;}
.work-editor-footer{flex-wrap:wrap;}
.quick-meta-fields{grid-template-columns:repeat(2,minmax(0,1fr));}
@media(max-width:1000px){.admin-shell .admin-grid{grid-template-columns:minmax(0,1fr);}.admin-shell .admin-list{position:static;max-height:300px;}}
@media(max-width:600px){.admin-shell :is(.admin-fields,.theme-colors){grid-template-columns:minmax(0,1fr);}.quick-meta-fields{grid-template-columns:minmax(0,1fr);}}

.reader-profile-save{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border:1px solid color-mix(in srgb, var(--ef-accent) 12.55%, transparent);border-radius:16px;background:color-mix(in srgb, var(--ef-accent) 3.14%, transparent);margin:30px 0;}.reader-profile-save p{font-size:16px;color:var(--ef-accent);margin:0;}.reader-profile-save button{white-space:nowrap;}@media(max-width:600px){.reader-profile-save{display:block;}.reader-profile-save button{margin-top:14px;}}

/* literary-header.css */
html{scrollbar-gutter:stable;scroll-padding-top:var(--site-header-clearance,92px);}
.header-space{height:72px;flex:none;}
/* One surface, fixed reservation: changing the header never changes document height. */
body .header.literary-header.adaptive-header{position:fixed;left:50%;top:0;transform:translateX(-50%);width:100%;max-width:none;height:72px;margin:0;padding:0;z-index:100;border:1px solid transparent;border-bottom-color:color-mix(in srgb, var(--ef-white) 4.31%, transparent);border-radius:0;background:color-mix(in srgb, var(--ef-page-bg) 96.86%, transparent);box-shadow:none;overflow:visible;backdrop-filter:blur(0px);-webkit-backdrop-filter:blur(0px);contain:layout style;transition:width .3s cubic-bezier(.22,1,.36,1),height .3s cubic-bezier(.22,1,.36,1),transform .3s cubic-bezier(.22,1,.36,1),border-radius .3s cubic-bezier(.22,1,.36,1),background-color .3s,border-color .3s;}
body .header.literary-header.adaptive-header::before,body .header.literary-header.adaptive-header::after{display:none;}
body .header.literary-header.adaptive-header.is-compact{height:56px;transform:translate(-50%,12px);width:min(860px,calc(100% - 32px));border-radius:20px;border-color:color-mix(in srgb, var(--ef-accent) 9.8%, transparent);background:color-mix(in srgb, var(--ef-page-bg) 85.1%, transparent);box-shadow:0 8px 30px color-mix(in srgb, var(--ef-shadow) 21.96%, transparent),inset 0 1px 0 color-mix(in srgb, var(--ef-white) 1.57%, transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);}
body .adaptive-header.literary-header .header-inner.wrap{display:flex;align-items:center;justify-content:space-between;gap:32px;height:100%;min-height:0;width:100%;max-width:1280px;padding:0 24px;margin:auto;}
body .adaptive-header.literary-header .workshop-brand{display:inline-flex;align-items:center;flex:none;min-width:0;font-size:17px;line-height:1.2;font-weight:600;letter-spacing:-.035em;color:var(--ef-text);white-space:nowrap;}
body .adaptive-header.literary-header .workshop-brand>span{margin:0;color:inherit;font-weight:inherit;}
body .adaptive-header.literary-header .brand-avatar{width:32px;height:32px;border-radius:10px;object-fit:cover;box-shadow:none;transition:width .3s,height .3s,opacity .2s;}

body .adaptive-header.literary-header .header-navigation{display:flex;align-items:center;justify-content:center;position:relative;isolation:auto;width:auto;flex:0 1 auto;flex-wrap:nowrap;gap:24px;border:0;padding:0;background:none;box-shadow:none;border-radius:0;min-width:0;}

body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending)[aria-current]::after{content:"";display:block;position:absolute;left:0;right:0;bottom:5px;height:2px;border-radius:2px;background:var(--ef-accent);}
body .adaptive-header.literary-header .header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:none;grid-column:auto;grid-row:auto;align-self:center;}
.header-icon-button{appearance:none;border:0;background:none;color:var(--ef-quiet);font:inherit;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border-radius:12px;cursor:pointer;transition:background-color .2s,color .2s,box-shadow .2s;}
.header-icon-button:hover,.header-icon-button[aria-expanded=true]{color:var(--ef-text);background:color-mix(in srgb, var(--ef-accent) 4.31%, transparent);}
.header-icon-button:active{background:color-mix(in srgb, var(--ef-accent) 8.24%, transparent);}
body .adaptive-header.literary-header .header-mobile-toggle{display:none;}
.header-account-image{display:grid;place-items:center;width:34px;height:34px;border:1px solid color-mix(in srgb, var(--ef-white) 7.45%, transparent);border-radius:11px;overflow:hidden;background:color-mix(in srgb, var(--ef-accent) 3.92%, transparent);color:var(--ef-quiet);}
.header-account-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;filter:contrast(1.06);}
body .adaptive-header .page-progress{position:absolute;bottom:-1px;left:20px;right:20px;top:auto;height:1px;overflow:hidden;border-radius:1px;pointer-events:none;opacity:.4;background:transparent;}
body .adaptive-header .page-progress>span{height:1px;background:var(--ef-accent);}
body .adaptive-header.is-compact .page-progress{left:22px;right:22px;bottom:0;}
.header-popover{position:fixed;z-index:110;width:280px;max-width:calc(100vw - 32px);max-height:min(65dvh,600px);overflow:auto;overscroll-behavior:contain;padding:9px;border:1px solid color-mix(in srgb, var(--ef-accent) 10.98%, transparent);border-radius:18px;background:color-mix(in srgb, var(--ef-surface-deep) 96.08%, transparent);color:var(--ef-text);box-shadow:0 18px 55px color-mix(in srgb, var(--ef-shadow) 46.67%, transparent);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);animation:header-panel-enter .22s cubic-bezier(.22,1,.36,1) both;}
.header-popover[hidden]{display:none!important;}
.header-popover a{display:flex;align-items:center;gap:12px;padding:12px;border-radius:10px;min-height:44px;text-decoration:none;font-size:16px;line-height:1.4;color:var(--ef-text);transition:color .2s,background .2s;}
.header-popover a:hover{background:color-mix(in srgb, var(--ef-accent) 3.92%, transparent);color:var(--ef-text);}
.header-popover a>span{min-width:0;overflow-wrap:anywhere;}
.header-popover a .ui-icon{flex:none;color:var(--ef-accent);}
.header-popover small{display:block;margin-top:4px;color:var(--ef-muted);font-size:16px;}
.header-popover p{margin:8px 12px 10px;color:var(--ef-quiet);line-height:1.5;font-size:16px;overflow-wrap:anywhere;}
.header-account-panel #header-account-status{font-size:16px;color:var(--ef-text);padding-bottom:12px;border-bottom:1px solid color-mix(in srgb, var(--ef-white) 4.31%, transparent);}
.header-account-panel .header-profile-link{display:flex;font-size:16px!important;color:var(--ef-text)!important;}
.header-account-panel a[data-account-signout]{margin-top:7px;border-top:1px solid color-mix(in srgb, var(--ef-white) 3.92%, transparent);border-radius:0 0 10px 10px;color:var(--ef-quiet);}
.header-search-status{line-height:1.6;}
.header-search-results{display:grid;gap:4px;}
.header-search-result{display:flex;align-items:center;gap:14px;padding:13px 12px;border-radius:12px;text-decoration:none;color:var(--ef-text);min-width:0;transition:background .18s;}
.header-search-result:hover,.header-search-result:focus-visible{background:color-mix(in srgb, var(--ef-accent) 5.1%, transparent);}
.header-search-result>svg{flex:none;color:var(--ef-accent);}
.header-search-result>span{min-width:0;}
.header-search-result strong{display:block;font-weight:500;line-height:1.45;overflow-wrap:anywhere;}
.header-search-result small{color:var(--ef-quiet);margin-top:4px;line-height:1.5;overflow-wrap:anywhere;}
@keyframes header-panel-enter{from{opacity:0;transform:translateY(-5px) scale(.985);}to{opacity:1;transform:none;}}
:is(#popular,#work-about,#work-text,#book-contents,#book-excerpt,.publication-body h2,.publication-body h3){scroll-margin-top:16px;}
@media(max-width:1150px){
 body .adaptive-header.literary-header .header-inner.wrap{gap:12px;padding:0 18px;}
 body .adaptive-header.literary-header .header-mobile-toggle{display:inline-flex;}
 body .adaptive-header.literary-header .header-navigation{display:none;position:absolute;top:calc(100% + 10px);right:16px;width:min(310px,calc(100vw - 32px));max-height:calc(100dvh - 110px);overflow:auto;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:2px;padding:8px;border:1px solid color-mix(in srgb, var(--ef-accent) 10.98%, transparent);border-radius:18px;background:color-mix(in srgb, var(--ef-page-bg) 96.08%, transparent);box-shadow:0 18px 55px color-mix(in srgb, var(--ef-shadow) 46.67%, transparent);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);}
 body .adaptive-header.literary-header.is-mobile-open .header-navigation{display:flex;animation:header-panel-enter .22s ease both;}
 
 body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending)[aria-current]::after{top:16px;bottom:16px;left:4px;right:auto;width:2px;height:auto;}
 body .adaptive-header.literary-header.is-compact{width:min(460px,calc(100% - 24px));border-radius:20px;}
 body .adaptive-header.literary-header.is-compact .header-navigation{right:0;}
}
@media(max-width:480px){
 body .adaptive-header.literary-header .header-inner.wrap{padding:0 12px;gap:8px;}
 body .adaptive-header.literary-header .workshop-brand{font-size:16px;gap:8px;}
 body .adaptive-header.literary-header .brand-avatar{width:28px;height:28px;}
 body .adaptive-header.literary-header .header-actions{gap:0;}
}
@media(max-width:350px){body .adaptive-header.literary-header .workshop-brand>span{overflow:hidden;font-size:16px;}body .adaptive-header.literary-header.is-compact .workshop-brand>span{display:none;}}
@supports not (backdrop-filter:blur(1px)){body .header.literary-header.adaptive-header.is-compact{background:color-mix(in srgb, var(--ef-page-bg) 96.08%, transparent);}.header-popover{background:var(--ef-surface-deep);}}
.reading-focus .header-space{display:none;}

/* Search grows within the header, to the left of its icon. */
body .adaptive-header.literary-header .workshop-brand{gap:10px;transition:gap .3s;}
body .adaptive-header.literary-header .workshop-brand>span{display:block;max-width:140px;overflow:hidden;opacity:1;transition:max-width .3s cubic-bezier(.22,1,.36,1),opacity .2s;white-space:nowrap;}
body .adaptive-header.literary-header.is-compact .workshop-brand{gap:0;}
body .adaptive-header.literary-header.is-compact .workshop-brand>span{display:block;max-width:0;opacity:0;}
body .adaptive-header.literary-header.is-compact.is-search-open{width:min(1280px,calc(100% - 32px));}
.header-search-control{display:flex;align-items:center;gap:0;min-width:0;}
.header-search-form{display:flex;align-items:center;gap:4px;width:0;max-width:0;opacity:0;visibility:hidden;overflow:hidden;margin:0;padding:0;background:color-mix(in srgb, var(--ef-shadow) 41.18%, transparent);border:1px solid transparent;border-radius:11px;transform:translateX(8px);transition:width .3s cubic-bezier(.22,1,.36,1),max-width .3s cubic-bezier(.22,1,.36,1),opacity .2s,transform .3s,margin .3s,visibility 0s .3s;}
.is-search-open .header-search-form{width:clamp(200px,24vw,330px);max-width:330px;margin-right:8px;opacity:1;visibility:visible;transform:none;border-color:color-mix(in srgb, var(--ef-accent) 10.98%, transparent);transition:width .3s cubic-bezier(.22,1,.36,1),max-width .3s cubic-bezier(.22,1,.36,1),opacity .2s .05s,transform .3s,margin .3s,visibility 0s;}
.header-search-form input{display:block;width:100%;min-width:0;max-width:100%;height:38px;padding:8px 0 8px 13px;border:0;background:none;border-radius:0;color:var(--ef-text);font:inherit;font-size:16px;line-height:1.4;outline:none;box-shadow:none;}
.header-search-form input::placeholder{color:var(--ef-muted);}.header-search-form input::-webkit-search-cancel-button{display:none;}
.header-search-form:focus-within{border-color:color-mix(in srgb, var(--ef-accent) 28.63%, transparent);}
.header-search-close{display:grid;place-items:center;flex:none;width:32px;height:36px;padding:0;border:0;border-radius:8px;background:none;color:var(--ef-muted);cursor:pointer;}
.header-search-close svg{width:15px;height:15px;}.header-search-close:hover{color:var(--ef-text);}
.header-search-panel{width:480px;padding:10px;max-height:min(60dvh,540px);scrollbar-width:thin;}
.header-search-status{margin:8px 12px 10px;font-size:16px;color:var(--ef-quiet);}
.header-search-result strong{font-size:16px;}.header-search-result small{font-size:16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.header-create-trigger{color:var(--ef-accent);}.header-create-trigger:hover{color:var(--ef-text);}
@media(max-width:1150px){
 
 body .adaptive-header.literary-header.is-search-open .workshop-brand{gap:0;}
 body .adaptive-header.literary-header.is-search-open .workshop-brand>span{max-width:0;opacity:0;}
 body .adaptive-header.literary-header.is-search-open .header-actions{flex:1;min-width:0;gap:4px;}
 body .adaptive-header.literary-header.is-search-open .header-search-control{flex:1;min-width:0;}
 body .adaptive-header.literary-header.is-search-open .header-search-form{flex:1;width:auto;max-width:none;min-width:0;margin-right:4px;}
 body .adaptive-header.literary-header.is-search-open .header-mobile-toggle{display:none;}
 body .adaptive-header.literary-header.is-compact.is-search-open{width:calc(100% - 24px);}
 .header-search-form input{font-size:16px;padding-left:10px;}
}
@media(prefers-reduced-motion:reduce){.header-search-form,body .adaptive-header.literary-header .workshop-brand,body .adaptive-header.literary-header .workshop-brand>span{transition:none!important;}}
body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending){position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:inherit;font-size:16px;line-height:1.2;color:var(--ef-quiet);text-decoration:none;white-space:nowrap;cursor:pointer;transition:color .2s;}
body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending):hover{background:none;color:var(--ef-text);}
body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending)[aria-current]{background:none;box-shadow:none;color:var(--ef-accent-strong);}
body .adaptive-header :is(a,button):focus-visible,.header-popover :is(a,button):focus-visible{outline:2px solid var(--ef-accent);outline-offset:4px;}
.header-search-form input:focus-visible{outline:none;}
@media(max-width:1150px){body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending){justify-content:space-between;min-height:48px;padding:12px 16px;border-radius:10px;font-size:17px;}body .adaptive-header.literary-header .header-navigation>:is(a,.header-nav-pending)[aria-current]{background:color-mix(in srgb, var(--ef-accent) 3.92%, transparent);}}
@media(max-width:350px){body .adaptive-header.literary-header .workshop-brand{gap:0;}body .adaptive-header.literary-header .workshop-brand>span{max-width:0;opacity:0;}}
@media(prefers-reduced-motion:reduce){body .header.literary-header.adaptive-header,body .adaptive-header *, .header-popover,.header-popover *{animation:none!important;transition:none!important;}}

body .adaptive-header.literary-header .header-nav-pending{cursor:default;color:var(--ef-quiet);}
@media(min-width:1151px) and (max-width:1280px){body .adaptive-header.literary-header.is-search-open .header-inner.wrap{gap:18px;padding-inline:18px;}body .adaptive-header.literary-header.is-search-open .header-navigation{gap:18px;}.is-search-open .header-search-form{width:clamp(180px,20vw,230px);max-width:230px;}}

/* Keep the original morph, without resampling a blurred poem scene every frame. */
body .header.literary-header.adaptive-header.is-morphing{backdrop-filter:none;-webkit-backdrop-filter:none;background:color-mix(in srgb, var(--ef-page-bg) 94.9%, transparent);}
html.header-morphing .poem-background-surface *,html.header-morphing body.classic-reading:before{animation-play-state:paused!important;}

/* Utility icons have generous hit areas without a painted button shell. */
body .icon-action,body .icon-action:is(:hover,:active,[aria-expanded=true]){border:0!important;background:transparent!important;box-shadow:none!important;}
body .icon-action:focus-visible{outline:2px solid var(--ef-accent);outline-offset:2px;}

/* Stable logo slot in both header states. */
body .adaptive-header.literary-header.is-compact .brand-avatar{width:32px;height:32px;flex:none;}
body .adaptive-header.literary-header.is-compact .header-inner.wrap{padding-inline:24px;gap:28px;}
body .adaptive-header.literary-header.is-compact .workshop-brand{min-width:44px;min-height:44px;justify-content:center;}
@media(max-width:600px){body .adaptive-header.literary-header.is-compact .header-inner.wrap{padding-inline:16px;gap:12px;}body .adaptive-header.literary-header .brand-avatar,body .adaptive-header.literary-header.is-compact .brand-avatar{width:28px;height:28px;}}

/* Mobile header: reserve every action's hit area, including notifications.
   The wordmark cannot coexist with five 44px controls at narrow phone widths. */
@media(max-width:400px){
 body .adaptive-header.literary-header .workshop-brand{gap:0;}
 body .adaptive-header.literary-header .workshop-brand>span{max-width:0;opacity:0;}
}
/* Search needs a usable input on a phone: keep the search trigger/close control,
   temporarily hide secondary header actions while the search field is open. */
@media(max-width:600px){
 body .adaptive-header.literary-header.is-search-open .header-actions > :not(.header-search-control){display:none!important;}
}

/* v495: one authoritative mobile geometry for the shared header on every route.
   Works whether or not a page's older general layout stylesheet is cached. */
body #site-header,body #site-header *{box-sizing:border-box;}
@media(max-width:760px){
 body #site-header.header.literary-header.adaptive-header{left:0;right:0;top:0;transform:none;width:100%;max-width:100%;height:64px;margin:0;border:0;border-radius:0;}
 body #site-header.header.literary-header.adaptive-header.is-compact{top:8px;left:8px;right:8px;transform:none;width:calc(100% - 16px);max-width:none;height:54px;border-radius:16px;}
 body #site-header.adaptive-header.literary-header .header-inner.wrap{display:flex;grid-template-columns:none;align-items:center;justify-content:space-between;min-width:0;max-width:100%;height:100%;min-height:0;margin:0;padding:0 10px;gap:6px;}
 body #site-header.adaptive-header.literary-header .workshop-brand{flex:0 1 auto;min-width:0;max-width:40%;gap:7px;overflow:hidden;}
 body #site-header.adaptive-header.literary-header .workshop-brand>span{min-width:0;overflow:hidden;text-overflow:ellipsis;}
 body #site-header.adaptive-header.literary-header .header-actions{display:flex;flex:0 0 auto;min-width:0;max-width:calc(100% - 38px);gap:0;align-items:center;justify-content:flex-end;}
 body #site-header.adaptive-header.literary-header .header-icon-button{width:38px;min-width:38px;height:42px;padding:0;}
 body #site-header.adaptive-header.literary-header .header-account-image{width:30px;height:30px;}
 body #site-header.adaptive-header.literary-header .header-navigation{right:8px;left:auto;max-width:calc(100vw - 24px);}
 body #site-header.adaptive-header.literary-header.is-search-open .workshop-brand{flex:0 0 28px;max-width:28px;}
 body #site-header.adaptive-header.literary-header.is-search-open .workshop-brand>span{display:none;}
 body #site-header.adaptive-header.literary-header.is-search-open .header-actions{flex:1 1 auto;max-width:none;min-width:0;}
 body #site-header.adaptive-header.literary-header.is-search-open .header-search-control{flex:1 1 auto;min-width:0;}
 body #site-header.adaptive-header.literary-header.is-search-open .header-search-form{flex:1 1 auto;width:0;max-width:none;min-width:0;margin-right:0;}
}
@media(max-width:390px){
 body #site-header.adaptive-header.literary-header .workshop-brand>span{display:none;}
 body #site-header.adaptive-header.literary-header .workshop-brand{max-width:32px;}
}

/* work-favorites.css */
.work-favorite-control{display:inline-flex;align-items:center;position:relative;vertical-align:middle;flex:none;}
.work-favorite-control .work-favorite{display:inline-grid;place-items:center;width:40px;height:40px;padding:0;min-height:40px;border:0;background:none;border-radius:10px;color:var(--ef-quiet);cursor:pointer;transition:color .2s,background-color .2s,transform .2s;}
.work-favorite-control .work-favorite:hover{color:var(--ef-text);background:color-mix(in srgb, var(--ef-accent) 3.53%, transparent);}
.work-favorite-control .work-favorite[aria-pressed=true]{color:var(--ef-accent);}.work-favorite-control .work-favorite[aria-pressed=true] svg{fill:currentColor;fill-opacity:.16;}
.work-favorite-control .work-favorite:active{transform:scale(.95);}.work-favorite-control .work-favorite:focus-visible{outline:2px solid var(--ef-accent);outline-offset:3px;}.work-favorite-control .work-favorite:disabled{opacity:.5;cursor:wait;}
.work-favorite-status{position:absolute;z-index:5;top:calc(100% + 6px);right:0;width:max-content;max-width:min(290px,calc(100vw - 32px));padding:8px 12px;border:1px solid color-mix(in srgb, var(--ef-accent) 10.98%, transparent);border-radius:10px;background:color-mix(in srgb, var(--ef-surface-deep) 94.9%, transparent);color:var(--ef-quiet);font-size:16px;line-height:1.5;box-shadow:0 8px 25px color-mix(in srgb, var(--ef-shadow) 26.67%, transparent);}.work-favorite-status[hidden]{display:none;}
@media(prefers-reduced-motion:reduce){.work-favorite-control .work-favorite{transition:none;}.work-favorite-control .work-favorite:active{transform:none;}}

/* site-footer.css */
/* Utility links complement the main navigation instead of repeating it. */
.footer.literary-footer,.reader-page .footer.literary-footer,.site-page .footer.literary-footer{display:block;position:relative;min-height:0;margin-top:24px;padding:0 0 10px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--ef-muted);}
.literary-footer .footer-inner{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:8px 32px;padding-block:16px;}
.literary-footer .footer-inner::before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,color-mix(in srgb, var(--ef-accent) 0%, transparent),color-mix(in srgb, var(--ef-accent) 21.18%, transparent) 12%,color-mix(in srgb, var(--ef-accent) 13.33%, transparent) 88%,color-mix(in srgb, var(--ef-accent) 0%, transparent));pointer-events:none;}
.literary-footer .footer-resources{display:flex;align-items:center;flex-wrap:wrap;flex:1 1 auto;gap:4px 26px;min-width:0;}
.literary-footer .footer-resource{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:8px 0;text-decoration:none;color:var(--ef-muted);max-width:100%;transition:color .25s;}
.literary-footer .footer-resource>.ui-icon{flex:none;opacity:.75;}
.literary-footer .footer-resource>span{min-width:0;}
.literary-footer .footer-resource strong{font:500 16px/1.5 Inter,"Segoe UI",sans-serif;color:inherit;overflow-wrap:anywhere;}
.literary-footer .community-links{display:flex;align-items:center;flex-wrap:wrap;gap:4px 24px;font-size:16px;}
.literary-footer .community-links a{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;color:inherit;}
.literary-footer .footer-copyright{flex:none;font:400 16px/1.6 Inter,"Segoe UI",sans-serif;color:var(--ef-muted);}
.literary-footer :is(.footer-resource,.community-links a):hover{color:var(--ef-text);}
.literary-footer a:focus-visible{outline:2px solid var(--ef-border-strong);outline-offset:5px;border-radius:3px;}
body.reading-focus .footer.literary-footer{display:none;}
@media(max-width:850px){.literary-footer .footer-resources{flex-basis:100%;}.literary-footer .community-links{flex:1 1 auto;}.literary-footer .footer-inner{gap:4px 24px;}}
@media(max-width:520px){.literary-footer .footer-resources{gap:2px 20px;}.literary-footer .community-links{gap:2px 20px;}.literary-footer .footer-resource{gap:8px;}.literary-footer .footer-inner{padding-block:12px;}}
@media(prefers-reduced-motion:reduce){.literary-footer a{transition:none;}}
.site-page main{min-height:0;}
.site-page .works-section:last-child,.site-page .about-page:last-child,.site-page .collection-page:last-child,.site-page .project-detail-list:last-child{padding-bottom:20px;}
.site-page .book-detail-section:last-child{padding-bottom:24px;}
.site-page .book-page:last-child{padding-bottom:28px;}
.site-page .latest-section:last-child{padding-bottom:12px;}

/* site-motion.css */
/* Light, paper and inertia. All content stays visible without JavaScript. */
:root{--motion-ease:cubic-bezier(.16,1,.3,1);--motion-soft:cubic-bezier(.22,.7,.18,1);}
.header.literary-header .workshop-brand{display:inline-flex;align-items:center;gap:10px;width:fit-content;min-width:0;}
.brand-avatar{display:block;width:34px;height:34px;flex:none;border-radius:10px;object-fit:cover;box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--ef-accent) 10.2%, transparent);}
.header.literary-header .workshop-brand>span{min-width:0;}
.header.literary-header .workshop-brand .brand-avatar{transition:transform .9s var(--motion-ease),border-radius .9s var(--motion-ease);}
.header.literary-header nav{position:relative;isolation:isolate;}
.header.literary-header nav>.motion-nav-light{position:absolute;inset:4px;z-index:-1;pointer-events:none;border-radius:9px;background:linear-gradient(115deg,color-mix(in srgb, var(--ef-accent) 10.59%, transparent),color-mix(in srgb, var(--ef-accent) 4.31%, transparent));box-shadow:inset 0 1px 0 color-mix(in srgb, var(--ef-white) 16.08%, transparent);opacity:0;clip-path:inset(0 var(--nav-right,100%) 0 var(--nav-left,0px) round 9px);transition:clip-path .65s var(--motion-ease),opacity .3s;}
.header.literary-header nav[data-motion-nav]>.motion-nav-light{opacity:var(--nav-opacity,0);}
.header.literary-header nav[data-motion-nav] a:is(:hover,[aria-current]){background:none;box-shadow:none;}
.header.literary-header nav a{transition:color .12s;}
.site-page .catalog-entry,.site-page .collection-card,.reader-page:not(.poem-page) .related-work{transition:translate .85s var(--motion-ease),border-color .55s,background-color .55s;}
.site-page .catalog-entry-cover,.site-page .collection-card-art,.related-work-cover{position:relative;isolation:isolate;}
.motion-reflection{position:absolute;inset:-25% -65%;z-index:1;pointer-events:none;opacity:0;transform:translateX(-70%);background:linear-gradient(112deg,transparent 36%,color-mix(in srgb, var(--ef-white) 1.18%, transparent) 43%,color-mix(in srgb, var(--ef-white) 14.9%, transparent) 49%,color-mix(in srgb, var(--ef-white) 1.96%, transparent) 55%,transparent 62%);}
.site-page .catalog-entry-cover img,.site-page .collection-card-art:not(.has-mosaic)>img{transform:perspective(900px) translate3d(var(--art-x,0px),var(--art-y,0px),0) rotateX(var(--art-rx,0deg)) rotateY(var(--art-ry,0deg)) scale(var(--art-scale,1));transition:transform .85s var(--motion-ease);}
.site-page .motion-art-active .catalog-entry-cover img,.site-page .motion-art-active .collection-card-art:not(.has-mosaic)>img{transition:none;}
.site-page .catalog-entry-copy h3,.site-page .collection-card h2{transition:color .5s;}
.site-page .catalog-opening{transition:opacity .55s var(--motion-soft),transform .8s var(--motion-ease);transform:translateY(16px);}
.site-page .catalog-entry:is(.motion-art-active,:focus-visible) .catalog-opening{transform:none;}
.site-page .catalog-controls :is(button,select,.search-box){transition:border-color .12s,background-color .12s,color .12s;}
.site-page .catalog-view button .ui-icon,.catalog-view button svg{transition:transform .65s var(--motion-ease);}
.site-page .catalog-view button[aria-pressed=true] svg{transform:scale(1.08);}
.site-page .book-feature .cover-button{transform:perspective(1200px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--book-lift,0px));transition:transform .85s var(--motion-ease);}
.site-page .book-feature.motion-book-active .cover-button{transition:none;}
.site-page .book-page-cover.book-feature{transform:none;}
.site-page .book-feature .cover-button img{transition:filter .65s;}
.site-page .book-contents li{transition:background-color .6s,color .5s;}
.site-page .book-contents li:before{transition:translate .8s var(--motion-ease),color .4s;}
.site-page .book-contents li:hover:before{translate:5px 0;color:var(--ef-text);}
.site-page .book-contents li:hover{color:var(--ef-text);background-color:color-mix(in srgb, var(--ef-accent) 1.18%, transparent);}
.site-page .book-contents li span{transition:translate .8s var(--motion-ease);}
.site-page .book-contents li:hover span{translate:3px 0;}
.header-popular,.site-page .button.primary{position:relative;isolation:isolate;overflow:hidden;}
.header-popular::before,.site-page .button.primary::before{content:"";position:absolute;inset:-40% -60%;z-index:-1;pointer-events:none;background:linear-gradient(112deg,transparent 38%,color-mix(in srgb, var(--ef-white) 43.92%, transparent) 49%,transparent 62%);transform:translateX(-70%);opacity:0;transition:transform 1.1s var(--motion-ease),opacity .45s;}
.header-popular:hover::before,.site-page .button.primary:hover::before{transform:translateX(65%);opacity:1;}
.site-page .button,.header.literary-header .header-popular{transition:translate .14s var(--motion-ease),background-color .12s,border-color .12s;transform:none;}
.site-page .button:active,.header.literary-header .header-popular:active{translate:0 1px;}
.resources-menu .resources-popover{transform-origin:top right;}
.resources-menu[open] .resources-popover{animation:resource-unfold .7s var(--motion-ease) both;}
.resources-menu .resources-popover>a{transition:translate .65s var(--motion-ease),background-color .35s,color .35s;}
.resources-menu .resources-popover>a:hover{translate:3px 0;}
.literary-footer .footer-resource>.ui-icon{transition:transform .85s var(--motion-ease),opacity .45s;}
.literary-footer .footer-resource:hover>.ui-icon{transform:translateY(-3px) rotate(-6deg);}
.literary-footer .footer-resource strong::after{transition:transform .85s var(--motion-ease);}
.literary-footer .footer-wordmark>span{transition:translate .8s var(--motion-ease),color .5s;}
.literary-footer .footer-wordmark:hover>span:last-child{translate:4px 0;}
.back-top{transition:translate .65s var(--motion-ease),background-color .4s;}
.back-top:hover{translate:0 -4px;}
@keyframes resource-unfold{from{opacity:.25;transform:translateY(-9px) scale(.97);}to{opacity:1;transform:none;}}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .header.literary-header .workshop-brand:hover .brand-avatar{transform:rotate(-9deg) scale(1.07);border-radius:13px;}
 .site-page .catalog-entry.motion-art-active,.site-page .collection-card.motion-art-active{translate:0 -7px;}
 .site-page .catalog-gallery[data-view=list] .catalog-entry.motion-art-active{translate:0 0;}
 .site-page .catalog-entry:hover .catalog-entry-copy h3,.site-page .collection-card:hover h2{color:var(--ef-text);}
 .site-page .catalog-entry:is(.motion-art-active,:focus-visible) .catalog-entry-cover img,.site-page .catalog-gallery[data-view=covers] .catalog-entry:is(.motion-art-active,:focus-visible) .catalog-entry-cover img,.site-page .collection-card.motion-art-active .collection-card-art:not(.has-mosaic)>img{transform:perspective(900px) translate3d(var(--art-x,0px),var(--art-y,0px),0) rotateX(var(--art-rx,0deg)) rotateY(var(--art-ry,0deg)) scale(var(--art-scale,1.055));}
 .site-page .book-feature:hover .cover-button{transform:perspective(1200px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--book-lift,-5px));}
 .site-page .button:hover,.header.literary-header .header-popular:hover{translate:0 -2px;}
 .header.literary-header .header-popular:hover{transform:none;}
 .reader-page:not(.poem-page) .related-work:hover{translate:0 -5px;}
}
/* Cross-document transitions progressively enhance ordinary same-origin links. */
@media(prefers-reduced-motion:no-preference){
 @view-transition{navigation:auto}
 .literary-header{view-transition-name:literary-header;}
 ::view-transition-group(root){animation-duration:.16s;}
 ::view-transition-old(root){animation:site-leave .16s ease-out both;mix-blend-mode:normal;}
 ::view-transition-new(root){animation:none;mix-blend-mode:normal;}
 ::view-transition-group(literary-header){animation-duration:.16s;animation-timing-function:var(--motion-ease);}
 ::view-transition-old(literary-header),::view-transition-new(literary-header){mix-blend-mode:normal;animation:none;}
 ::view-transition-old(literary-header){opacity:0;}
 @keyframes site-leave{to{opacity:0;}}
}
@media(max-width:600px){.brand-avatar{width:28px;height:28px;border-radius:8px;}.header.literary-header .workshop-brand{gap:8px;}}
@media(prefers-reduced-motion:reduce){
 .brand-avatar,.site-page .catalog-entry,.site-page .collection-card,.site-page .catalog-entry-cover img,.site-page .collection-card-art img,.catalog-opening,.book-feature .cover-button,.book-contents li,.book-contents li span,.book-contents li:before,.site-page .button,.header-popular,.resources-popover,.resources-popover>a,.literary-footer .footer-wordmark>span,.literary-footer .footer-resource>.ui-icon,.back-top{animation:none!important;transition:none!important;transform:none!important;translate:none!important;}
 .motion-reflection,.motion-nav-light,.header-popular::before,.site-page .button.primary::before{display:none!important;}
 .header.literary-header nav[data-motion-nav] a[aria-current]{background:linear-gradient(120deg,color-mix(in srgb, var(--ef-white) 7.06%, transparent),color-mix(in srgb, var(--ef-white) 3.14%, transparent));}
}

/* Physical press feedback is immediate, including while navigation is loading. */
:where(button,a.button,.header-popular){touch-action:manipulation;}
.site-page .button:active,.header.literary-header .header-popular:active{transition-duration:0s;}
