/* 25 stylesheets that index.html loads at this point of the cascade, inlined in order by Vite. */
.caret-character-highlight{position:absolute;top:0;left:0;width:1px;height:1px;transform-origin:0 0;background:var(--color-accent-soft);pointer-events:none;z-index:-1;transition:none;will-change:transform}
.caret-character-highlight[hidden]{display:none}
.active-paragraph:has(.caret-character-highlight) .current,.rapid-word:has(.caret-character-highlight) .current{background:transparent}
/* Contain the negative layer above the passage background and below its text. */
.active-paragraph:has(.caret-character-highlight),.rapid-word:has(.caret-character-highlight){isolation:isolate}
/* While the current letter is mistyped the red caret marks it; the letter box
 * would otherwise show as a thin sliver beside the caret on a mistyped space. */
.active-paragraph:has(.current.incorrect) .caret-character-highlight,.rapid-word:has(.current.incorrect) .caret-character-highlight{visibility:hidden}
.reader.rapid-mode:not(.rapid-manual) .rapid-stage{left:var(--reader-inset);width:calc(100% - 2*var(--reader-inset));min-height:160px;justify-content:flex-start;overflow:hidden}
.reader.rapid-mode:not(.rapid-manual) .rapid-stage:before,.reader.rapid-mode:not(.rapid-manual) .rapid-stage:after{content:"";position:absolute;left:50%;width:1px;height:18px;background:var(--color-muted);opacity:.35;pointer-events:none}
.reader.rapid-mode:not(.rapid-manual) .rapid-stage:before{top:0}
.reader.rapid-mode:not(.rapid-manual) .rapid-stage:after{bottom:0}
/* One inline text run keeps every fragment on the same baseline on phones. */
.rsvp-word{display:block;position:relative;left:50%;width:max-content;max-width:none;flex:none;transform:translateX(var(--rsvp-shift,-50%));line-height:1.4;white-space:pre;font-kerning:normal;font-variant-ligatures:none;-webkit-text-size-adjust:none;text-size-adjust:none}
.rsvp-word>span{display:inline;font-size:inherit;line-height:inherit;vertical-align:baseline;margin:0;padding:0}
.rsvp-focus{color:var(--rsvp-accent,var(--color-accent));font-weight:700}
:root[data-colorway="moonpaper"] .rsvp-word{--rsvp-accent:#ffad66}
:root[data-colorway="moonpaper"][data-theme="light"] .rsvp-word{--rsvp-accent:#ae480e}
:root[data-colorway="rosewater"] .rsvp-word{--rsvp-accent:#ff72b2}
:root[data-colorway="rosewater"][data-theme="light"] .rsvp-word{--rsvp-accent:#b91d69}
:root[data-colorway="mossbound"] .rsvp-word{--rsvp-accent:#82d853}
:root[data-colorway="mossbound"][data-theme="light"] .rsvp-word{--rsvp-accent:#38751c}
:root[data-colorway="tidepool"] .rsvp-word{--rsvp-accent:#45ceff}
:root[data-colorway="tidepool"][data-theme="light"] .rsvp-word{--rsvp-accent:#00759f}
:root[data-colorway="copperglow"] .rsvp-word{--rsvp-accent:#ff9d50}
:root[data-colorway="copperglow"][data-theme="light"] .rsvp-word{--rsvp-accent:#b74e0b}
:root[data-colorway="velvet-hour"] .rsvp-word{--rsvp-accent:#c285ff}
:root[data-colorway="velvet-hour"][data-theme="light"] .rsvp-word{--rsvp-accent:#8431c1}
/* Hallmark · component: reader statistics · genre: editorial · theme: existing Bookslop
 * Read-only groups: three statistics per side, with equal group widths; no panel chrome.
 * pre-emit critique: P5 H5 E5 S5 R5 V4 */
.reader .reading-main{position:relative;container:reader-layout / inline-size}
.reader .reading-main>.typing-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-6);padding:0;margin:var(--space-2) 0 var(--space-4);border:0;align-items:start}
.reader .typing-stats>.reader-stat-group{display:flex;flex-direction:column;gap:var(--space-1);min-width:0;margin:0;padding:0;border:0;border-radius:0;background:var(--color-clear);box-shadow:none;text-align:left}
.reader .reader-stat-group>h2{display:none}
.reader .reader-stat-group>div{display:flex;align-items:baseline;justify-content:flex-start;gap:6px;min-width:0;min-height:0;text-align:inherit}
.reader .reader-stat-group strong{display:block;flex-shrink:0;margin:0;font:400 12px/1.4 var(--font-body);font-variant-numeric:tabular-nums;letter-spacing:0;color:var(--color-body);white-space:nowrap}
.reader .reader-stat-group strong small{font:inherit;letter-spacing:0;color:inherit;margin-left:2px}
.reader .reader-stat-group>div>span{display:block;margin:0;font:400 10px/1.4 var(--font-body);letter-spacing:0;color:var(--color-muted);white-space:nowrap}
.reader .reader-stat-group .chapter-progress-stat,.reader .reader-stat-group .stat-wpm{margin-bottom:var(--space-1)}
.reader .reader-stat-group .chapter-progress-stat strong,.reader .reader-stat-group .stat-wpm strong{font:400 26px/1.25 var(--font-body);font-variant-numeric:tabular-nums;letter-spacing:-1px;color:var(--color-accent)}
.reader .reader-stat-group .chapter-progress-stat>span,.reader .reader-stat-group .stat-wpm>span{font-size:11px}
.reader .typing-stats .reader-stat-group .word-progress-value{display:inline;font:inherit;color:inherit;margin:0;letter-spacing:inherit;white-space:nowrap}
.reader .typing-stats>.reader-performance{align-items:flex-end;text-align:right}
.reader .reader-performance>div{justify-content:flex-end}
@container reader-layout (min-width:900px){
 .reader .reading-main:has(>.typing-stats)>.reader-book-heading{width:calc(100% - 560px);min-height:88px;margin-inline:auto;padding-top:var(--space-6);box-sizing:border-box;justify-content:center}
 .reader .reading-main:has(>.typing-stats)>.reader-book-heading>h1{max-width:100%}
 .reader .reading-main>.typing-stats{position:absolute;inset:var(--space-8) var(--reader-inset) auto;display:flex;justify-content:space-between;gap:var(--space-6);margin:0;pointer-events:none}
 .reader .typing-stats>.reader-stat-group{display:grid;grid-template-columns:auto auto;column-gap:var(--space-4);row-gap:var(--space-1);width:auto;pointer-events:auto}
 .reader .reader-stat-group .chapter-progress-stat,.reader .reader-stat-group .stat-wpm{grid-column:1/-1}
 .reader .reading-main:has(>.typing-stats)>.chapter-bar{margin-block:var(--space-2) var(--space-4)}
}
@media(max-width:359px){
 .reader .reading-main>.typing-stats{gap:var(--space-4)}
 .reader .reader-stat-group strong{font-size:11px}
 .reader .reader-stat-group>div{gap:var(--space-1)}
}
/* A full-height reading stage with a quiet line of context on each side. */
.reader .reading-main>.typing-passage{flex:1 1 0;min-height:0;justify-content:center;max-height:none}
.reader .typing-passage>.passage-window{display:flex;flex-direction:column;flex:0 1 auto;width:100%;min-height:0;max-height:100%;gap:var(--space-6);overflow:hidden}
.reader .passage-window>.active-paragraph{flex:0 1 auto;min-height:0;max-height:100%;box-sizing:border-box;white-space:pre;word-break:normal;overflow-wrap:normal;overflow:hidden;padding-block:var(--space-3);scrollbar-width:none}
.reader .passage-window>.paragraph-context{display:flex;flex-direction:row;flex:0 0 auto;align-items:center;max-height:none;height:calc(1lh + 12px);padding-block:6px;box-sizing:border-box;white-space:pre;overflow:hidden;opacity:.55}
.reader .passage-window>.previous-paragraph{justify-content:flex-end}
.reader .passage-window>.next-paragraph{justify-content:flex-start}
.reader .passage-window .passage-text{flex:0 0 auto;width:max-content;min-width:100%;white-space:pre;overflow-wrap:normal}
.reader .passage-window .passage-text br{display:none}
@media(max-height:600px){
 .reader .typing-passage>.passage-window{gap:var(--space-1)}
 .reader .passage-window>.paragraph-context{font-size:.8em;height:1.25lh;padding-block:0}
}
.bottom-nav-sync[data-sync-cooldown],.bottom-nav-sync:disabled{cursor:wait;opacity:1;color:var(--color-muted)}
.bottom-nav-sync[data-sync-cooldown] .bottom-nav-label{font-size:0}
.bottom-nav-sync[data-sync-cooldown] .bottom-nav-label::after{content:attr(data-sync-countdown);font:400 10px/1.2 var(--font-body)}
.reader .typing-stats .reader-stat-group .word-progress-value{font:inherit;color:inherit;margin:0;letter-spacing:inherit}
.reader .typing-passage>.passage-window{gap:var(--space-2)}
.reader .passage-window>.active-paragraph{padding-block:var(--space-2);flex-shrink:0}
.reader .passage-window>.paragraph-context{height:calc(1lh + 8px);padding-block:var(--space-1)}
@media(max-width:640px){
 .reader .reading-main>.reader-book-heading{padding-top:var(--space-6)}
 .reader .reading-main>.chapter-bar{margin-block:var(--space-2)}
}
@media(max-height:600px){
 .reader .reading-main>.reader-book-heading{padding-top:var(--space-2);min-height:0}
 .reader .reading-main>.chapter-bar{margin-block:var(--space-1)}
 .reader .typing-passage>.passage-window{gap:0}
 .reader .passage-window>.paragraph-context{font-size:.65em;height:1lh;padding-block:0}
 .reader .passage-window>.active-paragraph{padding-block:0}
}
.reader .passage-window>.paragraph-context{opacity:1}
@media(max-height:600px){
 .reader .reading-main:has(>.typing-stats)>.reader-book-heading{min-height:0;padding-top:var(--space-1)}
 .reader .reading-main:has(>.typing-stats)>.reader-book-heading>h1{font-size:22px;line-height:1.1}
 .reader .reading-main:has(>.typing-stats)>.chapter-bar{margin-block:var(--space-1) var(--space-2)}
 .reader .passage-window>.paragraph-context{font-size:.5em;line-height:1.2}
 .reader .reading-main>.typing-passage{min-height:calc(1lh + 40px)}
 .reader .reading-main{overflow-y:auto}
}
.reader .passage-window>.active-paragraph{padding-block:var(--space-1)}
.reader .passage-window>.paragraph-context{font-size:.75em;line-height:1.3;height:calc(1lh + 4px);padding-block:2px}
@media(max-height:600px){
 .reader .passage-window>.active-paragraph{padding-block:0}
 .reader .passage-window>.paragraph-context{font-size:.5em;height:1.2lh;padding-block:0}
}

/* Equal halves with mirrored primary and supporting rows. */
@container reader-layout (min-width:900px){
 .reader .typing-stats>.reader-stat-group{width:240px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .reader .typing-stats>.reader-performance{justify-items:end}
}

/* The passage caret shows typing progress, so the capture field stays focusable but unseen.
   It keeps its normal size, so the mobile tail fit and Backspace still work, but takes no layout space.
   It sits at the top of the screen, above any on-screen keyboard, so focusing it never pans the page. */
.reader .typing-input-wrap .practice-input{position:fixed;inset:0 auto auto 0;opacity:0;pointer-events:none;caret-color:transparent}
/* Sync status has the same independent surface and alignment as Account cards. */
.app-shell .account-sync-status-area{width:100%;max-width:none;min-width:0;margin:0 0 18px;padding:24px;border:1px solid var(--color-rule);border-radius:12px;background:var(--color-surface)}
.account-sync-status-area h2{margin:0 0 12px;font-family:var(--font-display);font-size:20px;font-weight:400;line-height:1.3;color:var(--color-ink)}
.account-sync-status-area [role=status]{display:flex;flex-wrap:wrap;gap:8px 16px;color:var(--color-muted);font-size:12px;line-height:1.6}
@media(max-width:540px){.app-shell .account-sync-status-area{padding:19px}}
/* Keep decorative replacements in the same layout as their real controls. */
:where(.sk-layout) :is(:is(.sort-trigger, .daily-goals-trigger, .pace-session-range, .date-picker-heading-choice, .loading-preview-picker > [role="combobox"], :is(sk-select,:where([data-sk-tag="select"])))){box-sizing: border-box; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; height: 34px; min-height: 34px; padding: 0px 12px; border: 1px solid var(--color-rule); border-radius: 8px; background: var(--color-surface); color: var(--color-body); font-family: var(--font-body); font-size: 11px; font-weight: 400; line-height: 1; white-space: nowrap; cursor: pointer;}
:where(.sk-layout) :is(:is(.sort-trigger, .daily-goals-trigger, .pace-session-range, .date-picker-heading-choice, .loading-preview-picker > [role="combobox"], :is(sk-select,:where([data-sk-tag="select"]))):focus-visible){outline: 2px solid var(--color-ink); outline-offset: 2px;}
:where(.sk-layout) :is(:is(.sort-trigger, .daily-goals-trigger, .pace-session-range, .date-picker-heading-choice, .loading-preview-picker > [role="combobox"], :is(sk-select,:where([data-sk-tag="select"]))):disabled){opacity: 0.5; cursor: not-allowed;}
@media (hover: hover) {:where(.sk-layout) :is(:is(.sort-trigger, .daily-goals-trigger, .pace-session-range, .date-picker-heading-choice, .loading-preview-picker > [role="combobox"], :is(sk-select,:where([data-sk-tag="select"]))):not(:disabled):not([aria-expanded="true"]):hover){background: var(--color-hover); color: var(--color-hover-ink);}
}




:where(.sk-layout) :is(.loading-actions :is(sk-button,:where([data-sk-tag="button"]))),:where(.sk-layout) :is(.loading-actions :is(sk-a,:where([data-sk-tag="a"]))),:where(.sk-layout) :is(.loading-preview-controls :is(sk-button,:where([data-sk-tag="button"]))),:where(.sk-layout) :is(.loading-preview-controls :is(sk-a,:where([data-sk-tag="a"]))){display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 0px; border-radius: var(--radius-small); background: var(--color-surface); color: var(--color-ink); font: 500 13px/1.6 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-fast),color var(--dur-fast);}
:where(.sk-layout) :is(.loading-actions :is(sk-button,:where([data-sk-tag="button"])):focus-visible),:where(.sk-layout) :is(.loading-actions :is(sk-a,:where([data-sk-tag="a"])):focus-visible),:where(.sk-layout) :is(.loading-preview-controls :is(sk-button,:where([data-sk-tag="button"])):focus-visible),:where(.sk-layout) :is(.loading-preview-controls :is(sk-a,:where([data-sk-tag="a"])):focus-visible),:where(.sk-layout) :is(.loading-brand:focus-visible){outline: none; box-shadow: none; background: var(--color-accent-soft); color: var(--color-ink); text-decoration: underline; text-underline-offset: 4px;}
:where(.sk-layout) :is(.loading-actions :is(sk-button,:where([data-sk-tag="button"])):active:not(:disabled)),:where(.sk-layout) :is(.loading-actions :is(sk-a,:where([data-sk-tag="a"])):active),:where(.sk-layout) :is(.loading-preview-controls :is(sk-button,:where([data-sk-tag="button"])):active:not(:disabled)){transform: translateY(1px);}
:where(.sk-layout) :is(.loading-actions :is(sk-button,:where([data-sk-tag="button"])):disabled),:where(.sk-layout) :is(.loading-preview-controls :is(sk-button,:where([data-sk-tag="button"])):disabled){opacity: 0.5; cursor: not-allowed;}
:where(.sk-layout) :is(.modal:has(.loading-state) :is(sk-button,:where([data-sk-tag="button"]))),:where(.sk-layout) :is(.account-card:has(.loading-state) .button){border: 0px;}
:where(.sk-layout) :is(.modal:has(.loading-state) :is(sk-button,:where([data-sk-tag="button"])):focus-visible),:where(.sk-layout) :is(.account-card:has(.loading-state) .button:focus-visible){outline: none; box-shadow: none; background: var(--color-accent-soft); color: var(--color-ink); text-decoration: underline; text-underline-offset: 4px;}
@media (hover: hover) {:where(.sk-layout) :is(.loading-actions :is(sk-button,:where([data-sk-tag="button"])):hover:not(:disabled)),:where(.sk-layout) :is(.loading-actions :is(sk-a,:where([data-sk-tag="a"])):hover),:where(.sk-layout) :is(.loading-preview-controls :is(sk-button,:where([data-sk-tag="button"])):hover:not(:disabled)),:where(.sk-layout) :is(.loading-preview-controls :is(sk-a,:where([data-sk-tag="a"])):hover){background: var(--color-hover);}
}
@media (prefers-reduced-motion: reduce) {:where(.sk-layout) :is(.loading-actions :is(sk-button,:where([data-sk-tag="button"]))),:where(.sk-layout) :is(.loading-actions :is(sk-a,:where([data-sk-tag="a"]))),:where(.sk-layout) :is(.loading-preview-controls :is(sk-button,:where([data-sk-tag="button"]))),:where(.sk-layout) :is(.loading-preview-controls :is(sk-a,:where([data-sk-tag="a"]))){transition: none;}
}
:where(.sk-layout) :is(.loading-preview-controls :is(sk-select,:where([data-sk-tag="select"]))){min-height: 44px; max-width: 100%; padding: 10px 32px 10px 14px; border: 0px; border-radius: var(--radius-small); background: var(--color-surface); color: var(--color-ink); font: 14px var(--font-body);}
:where(.sk-layout) :is(.loading-preview-controls :is(sk-select,:where([data-sk-tag="select"])):focus-visible){outline: 2px solid var(--color-accent); outline-offset: 3px;}
@media (max-width: 540px) {:where(.sk-layout) :is(.loading-preview-navigation :is(sk-a,:where([data-sk-tag="a"]))){flex-basis: 100%;}
}

:where(.sk-layout) :is(.policy-content :is(sk-button,:where([data-sk-tag="button"]))[data-page-route]){padding: 0px; text-align: inherit; text-decoration: underline; text-underline-offset: 4px; color: var(--color-accent);}
:where(.sk-layout) :is(.policy-content :is(sk-button,:where([data-sk-tag="button"]))[data-page-route]:focus-visible){outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 2px;}
:where(.sk-layout) :is(.caret-style-choice .appearance-options label:has(:is(sk-input,:where([data-sk-tag="input"])):focus-visible)){outline: 2px solid var(--color-accent); outline-offset: 2px;}
:where(.sk-layout) :is(:is(:is(sk-textarea,:where([data-sk-tag="textarea"])), .sort-menu, .date-picker-year-grid, .custom-tooltip)){--scrollbar-track: var(--color-surface);}
:where(.sk-layout) :is(.reading-calendar :is(sk-button,:where([data-sk-tag="button"])):focus-visible),:where(.sk-layout) :is(.reading-day-details :is(sk-button,:where([data-sk-tag="button"])):focus-visible){outline: 2px solid var(--color-ink); outline-offset: 2px;}
:where(.sk-layout) :is(.reading-calendar-controls :is(sk-button,:where([data-sk-tag="button"])):active),:where(.sk-layout) :is(.reading-day-details :is(sk-button,:where([data-sk-tag="button"])):active){opacity: 0.7;}
:where(.sk-layout) :is(:is(.pace-range-option, .library-view .sort-menu :is(sk-button,:where([data-sk-tag="button"])))){white-space: nowrap;}
:where(.sk-layout) :is(.daily-goals :is(sk-button,:where([data-sk-tag="button"]))){font-family: var(--font-body); font-size: 12px; line-height: 1; cursor: pointer; white-space: nowrap; outline: transparent solid 2px; outline-offset: 2px;}
:where(.sk-layout) :is(.daily-goals :is(sk-button,:where([data-sk-tag="button"])):focus-visible){outline-color: var(--goal-focus);}
:where(.sk-layout) :is(.daily-goals :is(sk-button,:where([data-sk-tag="button"])):active){transform: translateY(1px);}
:where(.sk-layout) :is(.daily-goals :is(sk-button,:where([data-sk-tag="button"])):disabled){opacity: 0.55; cursor: not-allowed;}
:where(.sk-layout) :is(.daily-goals-menu :is(sk-button,:where([data-sk-tag="button"]))){display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0px; border-radius: 6px; background: var(--color-surface); color: var(--color-ink); text-align: left;}
:where(.sk-layout) :is(.daily-goals-menu :is(sk-button,:where([data-sk-tag="button"]))[aria-selected="true"]){background: var(--goal-selected); color: var(--goal-selected-ink); font-weight: 500;}
@media (hover: hover) {:where(.sk-layout) :is(.daily-goals-menu :is(sk-button,:where([data-sk-tag="button"])):not([aria-selected="true"]):hover){background: var(--color-hover); color: var(--color-hover-ink);}
}

:where(.sk-layout) :is(:is(sk-button,:where([data-sk-tag="button"]))),:where(.sk-layout) :is(:is(sk-input,:where([data-sk-tag="input"]))),:where(.sk-layout) :is(:is(sk-select,:where([data-sk-tag="select"]))),:where(.sk-layout) :is(:is(sk-textarea,:where([data-sk-tag="textarea"]))){font: inherit;}
:where(.sk-layout) :is(:is(sk-button,:where([data-sk-tag="button"]))),:where(.sk-layout) :is(:is(sk-a,:where([data-sk-tag="a"]))),:where(.sk-layout) :is(:is(sk-input,:where([data-sk-tag="input"]))),:where(.sk-layout) :is(:is(sk-select,:where([data-sk-tag="select"]))),:where(.sk-layout) :is(:is(sk-textarea,:where([data-sk-tag="textarea"]))){-webkit-tap-highlight-color: var(--color-clear);}
:where(.sk-layout) :is(:is(sk-button,:where([data-sk-tag="button"]))){cursor: pointer; color: inherit;}
:where(.sk-layout) :is(:is(sk-button,:where([data-sk-tag="button"]))){border: 0px; background: none;}
:where(.sk-layout) :is(:is(sk-a,:where([data-sk-tag="a"]))){color: inherit; text-decoration: none;}
:where(.sk-layout) :is(:is(sk-button,:where([data-sk-tag="button"])):disabled){opacity: 0.45; cursor: not-allowed;}
:where(.sk-layout) :is(:is(sk-button,:where([data-sk-tag="button"])):active:not(:disabled)){transform: translateY(1px);}
:where(.sk-layout) :is(:is(sk-button,:where([data-sk-tag="button"]))),:where(.sk-layout) :is(:is(sk-a,:where([data-sk-tag="a"]))){touch-action: manipulation;}
:where(.sk-layout) :is(:is(sk-input,:where([data-sk-tag="input"]))[type="range"]),:where(.sk-layout) :is(:is(sk-input,:where([data-sk-tag="input"]))[type="checkbox"]),:where(.sk-layout) :is(progress){accent-color: var(--color-accent);}
:where(.sk-layout) :is(.filter-tabs :is(sk-button,:where([data-sk-tag="button"]))){display: flex; align-items: center; gap: 6px; min-height: 49px; padding: 0px 0px 13px; font-size: 11px; color: var(--color-muted); border-bottom: 2px solid var(--color-clear); white-space: nowrap;}
:where(.sk-layout) :is(.filter-tabs :is(sk-button,:where([data-sk-tag="button"])).active){color: var(--color-accent); border-color: var(--color-accent); font-weight: 500;}
:where(.sk-layout) :is(.filter-tabs :is(sk-button,:where([data-sk-tag="button"])) > span){display: inline-grid; place-items: center; min-width: 17px; height: 17px; border-radius: 4px; background: var(--color-sidebar); font-size: 9px; padding: 0px 4px;}
:where(.sk-layout) :is(.search-field :is(sk-input,:where([data-sk-tag="input"]))){border: 0px; background: none; min-width: 0px; width: 132px; padding: 0px; outline-offset: 5px; font-size: 10px; color: var(--color-body);}
:where(.sk-layout) :is(.sort-select :is(sk-select,:where([data-sk-tag="select"]))){border: 0px; background: none; appearance: none; padding: 6px 19px 6px 0px; color: var(--color-body); font-size: 10px; cursor: pointer;}
:where(.sk-layout) :is(.book-title-row h3 :is(sk-button,:where([data-sk-tag="button"]))){text-align: left; padding: 0px; line-height: inherit;}
:where(.sk-layout) :is(.book-menu :is(sk-button,:where([data-sk-tag="button"]))){display: flex; align-items: center; gap: 8px; text-align: left; width: 100%; padding: 10px 8px; font-size: 11px; border-radius: 4px;}
:where(.sk-layout) :is(.modal label > :is(sk-input,:where([data-sk-tag="input"])):not([type="range"]):not([type="checkbox"])),:where(.sk-layout) :is(.modal :is(sk-select,:where([data-sk-tag="select"]))),:where(.sk-layout) :is(.reader-settings :is(sk-select,:where([data-sk-tag="select"]))){width: 100%; min-height: 44px; background: var(--color-surface); color: var(--color-ink); border: 1px solid var(--color-rule); border-radius: 5px; padding: 8px 10px;}
:where(.sk-layout) :is(.reader-settings :is(sk-input,:where([data-sk-tag="input"]))[type="range"]){width: 100%; height: 22px;}
:where(.sk-layout) :is(.toggle-label :is(sk-input,:where([data-sk-tag="input"]))){width: 18px; height: 18px; flex-shrink: 0;}
:where(.sk-layout) :is(.settings-classics :is(sk-a,:where([data-sk-tag="a"]))){display: flex; gap: 6px; align-items: center; font-size: 10px; text-decoration: underline; text-underline-offset: 4px; margin: 10px 0px;}
:where(.sk-layout) :is(.chapter-bar :is(sk-select,:where([data-sk-tag="select"]))){min-width: 0px; max-width: 80%; color: var(--color-body); border: 0px; background: var(--color-clear); font-size: 11px; padding: 9px; cursor: pointer; text-align: center;}
@media (max-width: 1150px) {:where(.sk-layout) :is(.search-field :is(sk-input,:where([data-sk-tag="input"]))){width: 106px;}
}
@media (max-width: 767px) {:where(.sk-layout) :is(.reader-settings label :is(sk-input,:where([data-sk-tag="input"]))[type="range"]){height: 32px;}
}
@media (max-width: 540px) {:where(.sk-layout) :is(.filter-tabs :is(sk-button,:where([data-sk-tag="button"]))){font-size: 11px; padding-bottom: 11px; min-height: 35px;}
:where(.sk-layout) :is(.search-field :is(sk-input,:where([data-sk-tag="input"]))){width: 100%; font-size: 11px;}
:where(.sk-layout) :is(.sort-select :is(sk-select,:where([data-sk-tag="select"]))){min-height: 39px; font-size: 10px;}
:where(.sk-layout) :is(.chapter-bar :is(sk-select,:where([data-sk-tag="select"]))){font-size: 10px;}
}
@media (max-width: 360px) {:where(.sk-layout) :is(.filter-tabs :is(sk-button,:where([data-sk-tag="button"]))){font-size: 10px;}
}
@media (max-width: 767px) {:where(.sk-layout) :is(.filter-tabs :is(sk-button,:where([data-sk-tag="button"]))){min-height: 44px;}
}
:where(.sk-layout) :is(.library-view .filter-tabs :is(sk-button,:where([data-sk-tag="button"]))){min-height: 40px; padding-bottom: 8px;}
@media (max-width: 540px) {:where(.sk-layout) :is(.library-view .filter-tabs :is(sk-button,:where([data-sk-tag="button"]))){min-height: 36px; padding-bottom: 5px;}
:where(.sk-layout) :is(:is(.library-view, .admin-links) .search-field),:where(.sk-layout) :is(.library-view .sort-select :is(sk-select,:where([data-sk-tag="select"]))){height: 34px; min-height: 34px;}
}
:where(.sk-layout) :is(:is(.library-view, .admin-links) .search-field :is(sk-input,:where([data-sk-tag="input"])):focus){outline: none;}
:where(.sk-layout) :is(.modal :is(.form-grid, form) label > :is(sk-input,:where([data-sk-tag="input"])):not([type="file"])),:where(.sk-layout) :is(.modal .text-editor){border: 0px; outline: none;}
:where(.sk-layout) :is(.sort-menu :is(sk-button,:where([data-sk-tag="button"]))){display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 36px; padding: 8px 10px; border-radius: 8px; text-align: left; color: var(--color-body); font-size: 11px;}
:where(.sk-layout) :is(.sort-menu :is(sk-button,:where([data-sk-tag="button"]))[aria-checked="true"]){color: var(--color-accent); background: var(--color-accent-soft);}
:where(.sk-layout) :is(.chapter-select .sort-menu :is(sk-button,:where([data-sk-tag="button"]))){white-space: normal; min-height: 40px;}
@media (max-width: 1100px) and (min-width: 768px) {:where(.sk-layout) :is(:is(.library-view, .admin-links) .search-field :is(sk-input,:where([data-sk-tag="input"]))){width: 84px;}
}
:where(.sk-layout) :is(.auto-type-speed :is(sk-input,:where([data-sk-tag="input"]))[type="range"]){appearance: none; width: 110px; height: 28px; padding: 0px; background: transparent; border: 0px; cursor: pointer; outline: none;}
:where(.sk-layout) :is(.preference-value :is(sk-input,:where([data-sk-tag="input"]))[type="number"]){appearance: textfield; box-sizing: content-box; width: 4ch; min-width: 0px; padding: 0px; border: 0px; border-radius: 0px; background: transparent; color: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; line-height: 20px; text-align: right; outline: none;}
:where(.sk-layout) :is(.reader-settings .preference-slider :is(sk-input,:where([data-sk-tag="input"]))[type="range"]){display: block; appearance: none; width: 100%; height: 36px; margin: 4px 0px 0px; padding: 0px; border: 0px; border-radius: 12px; background: transparent; cursor: pointer; outline: none;}
@media (forced-colors: active) {
}
:where(.sk-layout) :is(.reader-settings .toggle-label :is(sk-input,:where([data-sk-tag="input"]))[type="checkbox"]){appearance: none; position: relative; width: 42px; height: 24px; min-width: 42px; margin: 0px; border: 1px solid var(--color-muted); border-radius: 99px; background: var(--color-sidebar); cursor: pointer; transition: background var(--dur-fast),border-color var(--dur-fast);}
:where(.sk-layout) :is(.reader-settings .toggle-label :is(sk-input,:where([data-sk-tag="input"]))[type="checkbox"]:checked){border-color: var(--color-accent); background: var(--color-accent);}
:where(.sk-layout) :is(.reader-settings .toggle-label :is(sk-input,:where([data-sk-tag="input"]))[type="checkbox"]:focus){outline: none;}
:where(.sk-layout) :is(.reader-settings .toggle-label:has(:is(sk-input,:where([data-sk-tag="input"])):focus-visible)){background: var(--color-hover); outline: 2px solid var(--color-accent); outline-offset: 2px;}
@media (forced-colors: active) {:where(.sk-layout) :is(.reader-settings .toggle-label :is(sk-input,:where([data-sk-tag="input"]))[type="checkbox"]){appearance: auto; width: 24px; min-width: 24px; accent-color: auto;}
}
:where(.sk-layout) :is(.account-card :is(sk-input,:where([data-sk-tag="input"])):where(:not([type="file"]):not([type="checkbox"]):not(.search-input))){width: 100%; border: 1px solid var(--color-rule); border-radius: 8px; background: var(--color-paper); color: var(--color-ink); padding: 12px 14px; font: inherit; min-height: 44px;}
:where(.sk-layout) :is(.account-card :is(sk-input,:where([data-sk-tag="input"]))[aria-invalid="true"]){border-color: var(--color-error);}
:where(.sk-layout) :is(.account-card .remember-choice :is(sk-input,:where([data-sk-tag="input"]))){appearance: none; position: relative; width: 42px; min-width: 42px; min-height: 24px; height: 24px; margin: 0px; padding: 0px; border: 1px solid var(--color-muted); border-radius: 99px; background: var(--color-sidebar); cursor: pointer;}
:where(.sk-layout) :is(.account-card .remember-choice :is(sk-input,:where([data-sk-tag="input"])):checked){background: var(--color-selected); border-color: var(--color-selected-ink);}
:where(.sk-layout) :is(.account-card .remember-choice :is(sk-input,:where([data-sk-tag="input"])):focus-visible){outline: 2px solid var(--color-accent); outline-offset: 3px;}
:where(.sk-layout) :is(.account-card .remember-choice :is(sk-input,:where([data-sk-tag="input"])):disabled){opacity: 0.45; cursor: wait;}
:where(.sk-layout) :is(.modal form :is(sk-input,:where([data-sk-tag="input"]))[aria-invalid="true"]){border: 0px; outline: 1px solid var(--color-error);}
:where(.sk-layout) :is(.dictionary-menu :is(sk-a,:where([data-sk-tag="a"]))){display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px; min-height: 36px; border-radius: 8px; font-size: 12px; color: var(--color-body); overflow-wrap: anywhere;}
:where(.sk-layout) :is(.preferences-tabs :is(sk-button,:where([data-sk-tag="button"]))){display: flex; flex: 1 1 0%; align-items: center; justify-content: center; gap: 8px; min-width: 0px; min-height: 44px; padding: 9px 12px; border-radius: 8px; color: var(--color-body); font-size: 12px; font-weight: 500; white-space: nowrap;}
:where(.sk-layout) :is(.preferences-tabs :is(sk-button,:where([data-sk-tag="button"]))[aria-selected="true"]){background: var(--color-accent-soft); color: var(--color-accent);}
@media (max-width: 540px) {:where(.sk-layout) :is(.preferences-tabs :is(sk-button,:where([data-sk-tag="button"]))){padding-inline: 8px; gap: 6px;}
}
:where(.sk-layout) :is(:where(:is(sk-button,:where([data-sk-tag="button"])), :is(sk-a,:where([data-sk-tag="a"])))){border-radius: var(--radius-small); transition: background-color var(--dur-fast),color var(--dur-fast),border-color var(--dur-fast);}
@media (hover: hover) {:where(.sk-layout) :is(:is(:is(sk-button,:where([data-sk-tag="button"])):not(:disabled), :is(sk-a,:where([data-sk-tag="a"]))):where(:not(.selected, .active, .is-selected, [aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [aria-current="page"], [aria-expanded="true"])):hover),:where(.sk-layout) :is(.reader-settings .toggle-label:hover),:where(.sk-layout) :is(.preference-slider:hover),:where(.sk-layout) :is(.appearance-options label:where(:not(.is-selected)):hover),:where(.sk-layout) :is(.sound-set-card:where(:not(.is-selected)):hover),:where(.sk-layout) :is(.theme-card:where(:not(.is-selected)):hover),:where(.sk-layout) :is(:is(.library-view, .admin-links) .search-field:not(:focus-within):hover){background-color: var(--color-hover); color: var(--color-hover-ink); text-decoration: none;}
:where(.sk-layout) :is(:is(.library-view, .admin-links) .search-field:not(:focus-within):hover :is(sk-input,:where([data-sk-tag="input"]))){color: var(--color-hover-ink); opacity: 1;}
}
:where(.sk-layout) :is(:is(.nav-item.selected, .preferences-tabs :is(sk-button,:where([data-sk-tag="button"]))[aria-selected="true"], .appearance-options label.is-selected, .sound-set-card.is-selected, .theme-card.is-selected, .sort-menu :is(sk-button,:where([data-sk-tag="button"]))[aria-checked="true"], .sort-trigger[aria-expanded="true"])){background: var(--color-selected); color: var(--color-selected-ink); font-weight: 500;}
:where(.sk-layout) :is(.library-view .filter-tabs :is(sk-button,:where([data-sk-tag="button"]))){justify-content: center; gap: 7px; min-height: 34px; padding: 6px 12px; border: 0px; border-radius: 8px; font-size: 11px; font-weight: 500; line-height: 20px; color: var(--color-muted);}
:where(.sk-layout) :is(.library-view .filter-tabs :is(sk-button,:where([data-sk-tag="button"])).active){background: var(--color-selected); color: var(--color-selected-ink);}
:where(.sk-layout) :is(.library-view .filter-tabs :is(sk-button,:where([data-sk-tag="button"])) > span){min-width: 12px; height: auto; padding: 0px; background: transparent; border-radius: 0px; font-size: 10px; font-variant-numeric: tabular-nums; color: inherit; opacity: 0.8;}
:where(.sk-layout) :is(.library-view .filter-tabs :is(sk-button,:where([data-sk-tag="button"])).active > span){opacity: 1;}
@media (hover: hover) {:where(.sk-layout) :is(.library-view .filter-tabs :is(sk-button,:where([data-sk-tag="button"])):hover){background: var(--color-hover); color: var(--color-hover-ink);}
:where(.sk-layout) :is(.library-view .filter-tabs :is(sk-button,:where([data-sk-tag="button"])).active:hover){background: var(--color-selected); color: var(--color-selected-ink);}
}
@media (max-width: 540px) {:where(.sk-layout) :is(.library-view .filter-tabs :is(sk-button,:where([data-sk-tag="button"]))){flex: 1 1 0%; min-width: 0px; min-height: 36px; padding: 6px 8px;}
}
:where(.sk-layout) :is(.import-permission :is(sk-a,:where([data-sk-tag="a"]))),:where(.sk-layout) :is(.account-card p :is(sk-a,:where([data-sk-tag="a"]))){text-decoration: underline; text-underline-offset: 3px;}
:where(.sk-layout) :is(.account-card .consent-choice :is(sk-input,:where([data-sk-tag="input"]))[type="checkbox"]){appearance: none; position: relative; flex-shrink: 0; width: 20px; min-width: 20px; min-height: 20px; height: 20px; margin: 2px 0px 0px; padding: 0px; border: 1px solid var(--color-rule); border-radius: 50%; background: transparent; cursor: pointer; transition: background-color var(--dur-fast),border-color var(--dur-fast);}
:where(.sk-layout) :is(.account-card .consent-choice :is(sk-input,:where([data-sk-tag="input"]))[type="checkbox"]:checked){background: var(--color-accent); border-color: var(--color-accent);}
:where(.sk-layout) :is(.account-card .consent-choice :is(sk-input,:where([data-sk-tag="input"]))[type="checkbox"]:focus-visible){outline: none;}
:where(.sk-layout) :is(.account-card .consent-choice:has(:is(sk-input,:where([data-sk-tag="input"])):focus-visible)){background: var(--color-hover); color: var(--color-hover-ink); outline: none;}
@media (forced-colors: active) {:where(.sk-layout) :is(.account-card .consent-choice :is(sk-input,:where([data-sk-tag="input"]))[type="checkbox"]){appearance: auto;}
}
@media (hover: hover) {:where(.sk-layout) :is(:is(.book-menu, .admin-links) :is(sk-button,:where([data-sk-tag="button"])).danger:not(:disabled):hover){background: var(--color-error-bg); color: var(--color-error);}
}
:where(.sk-layout) :is(.policy-content :is(sk-a,:where([data-sk-tag="a"]))){text-decoration: underline; text-underline-offset: 4px; color: var(--color-accent);}
:where(.sk-layout) :is(:root :is(sk-a,:where([data-sk-tag="a"]))[href^="mailto:b@bookslop.fun"]){color: var(--color-accent); text-decoration: none;}
:where(.sk-layout) :is(.policy-content :is(sk-a,:where([data-sk-tag="a"])):focus-visible){outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 2px;}
:where(.sk-layout) :is(.reader-nav > :is(sk-button,:where([data-sk-tag="button"]))),:where(.sk-layout) :is(.reader-nav-actions){pointer-events: auto;}
:where(.sk-layout) :is(.session-chart-switch :is(sk-button,:where([data-sk-tag="button"]))){min-height: 36px; padding: 7px 13px; border: 0px; border-radius: 5px; background: var(--color-clear); color: var(--color-muted); font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 12px; cursor: pointer; white-space: nowrap;}
:where(.sk-layout) :is(.session-chart-switch :is(sk-button,:where([data-sk-tag="button"]))[aria-pressed="true"]){background: var(--color-accent-soft); color: var(--color-ink);}
:where(.sk-layout) :is(.session-chart-switch :is(sk-button,:where([data-sk-tag="button"])):where([aria-pressed="false"]):hover){background: var(--color-hover); color: var(--color-ink);}
:where(.sk-layout) :is(.session-chart-switch :is(sk-button,:where([data-sk-tag="button"])):focus-visible){outline: 2px solid var(--color-accent); outline-offset: 2px;}
:where(.sk-layout) :is(.session-chart-switch :is(sk-button,:where([data-sk-tag="button"])):active){background: var(--color-accent-soft);}
:where(.sk-layout) :is(.admin-card .admin-slug-input :is(sk-input,:where([data-sk-tag="input"]))),:where(.sk-layout) :is(.admin-page .admin-slug-input :is(sk-input,:where([data-sk-tag="input"]))){border: 0px; border-radius: 0px; min-width: 0px; padding-left: 4px;}
:where(.sk-layout) :is(.admin-link-heading > :is(sk-a,:where([data-sk-tag="a"]))){overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px;}
:where(.sk-layout) :is(.account-card .date-picker-field > :is(sk-input,:where([data-sk-tag="input"]))){border: 0px; border-radius: 0px; background: transparent; min-width: 0px;}
:where(.sk-layout) :is(.loading-actions :is(sk-button,:where([data-sk-tag="button"]))),:where(.sk-layout) :is(.loading-actions :is(sk-a,:where([data-sk-tag="a"]))),:where(.sk-layout) :is(.loading-preview-controls :is(sk-button,:where([data-sk-tag="button"]))),:where(.sk-layout) :is(.loading-preview-controls :is(sk-a,:where([data-sk-tag="a"]))){display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 0px; border-radius: var(--radius-small); background: var(--color-surface); color: var(--color-ink); font: 500 13px/1.6 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-fast),color var(--dur-fast);}
:where(.sk-layout) :is(.loading-actions :is(sk-button,:where([data-sk-tag="button"])):focus-visible),:where(.sk-layout) :is(.loading-actions :is(sk-a,:where([data-sk-tag="a"])):focus-visible),:where(.sk-layout) :is(.loading-preview-controls :is(sk-button,:where([data-sk-tag="button"])):focus-visible),:where(.sk-layout) :is(.loading-preview-controls :is(sk-a,:where([data-sk-tag="a"])):focus-visible),:where(.sk-layout) :is(.loading-brand:focus-visible){outline: none; box-shadow: none; background: var(--color-accent-soft); color: var(--color-ink); text-decoration: underline; text-underline-offset: 4px;}
:where(.sk-layout) :is(.loading-actions :is(sk-button,:where([data-sk-tag="button"])):active:not(:disabled)),:where(.sk-layout) :is(.loading-actions :is(sk-a,:where([data-sk-tag="a"])):active),:where(.sk-layout) :is(.loading-preview-controls :is(sk-button,:where([data-sk-tag="button"])):active:not(:disabled)){transform: translateY(1px);}
:where(.sk-layout) :is(.loading-actions :is(sk-button,:where([data-sk-tag="button"])):disabled),:where(.sk-layout) :is(.loading-preview-controls :is(sk-button,:where([data-sk-tag="button"])):disabled){opacity: 0.5; cursor: not-allowed;}
:where(.sk-layout) :is(.modal:has(.loading-state) :is(sk-button,:where([data-sk-tag="button"]))),:where(.sk-layout) :is(.account-card:has(.loading-state) .button){border: 0px;}
:where(.sk-layout) :is(.modal:has(.loading-state) :is(sk-button,:where([data-sk-tag="button"])):focus-visible),:where(.sk-layout) :is(.account-card:has(.loading-state) .button:focus-visible){outline: none; box-shadow: none; background: var(--color-accent-soft); color: var(--color-ink); text-decoration: underline; text-underline-offset: 4px;}
@media (hover: hover) {:where(.sk-layout) :is(.loading-actions :is(sk-button,:where([data-sk-tag="button"])):hover:not(:disabled)),:where(.sk-layout) :is(.loading-actions :is(sk-a,:where([data-sk-tag="a"])):hover),:where(.sk-layout) :is(.loading-preview-controls :is(sk-button,:where([data-sk-tag="button"])):hover:not(:disabled)),:where(.sk-layout) :is(.loading-preview-controls :is(sk-a,:where([data-sk-tag="a"])):hover){background: var(--color-hover);}
}
@media (prefers-reduced-motion: reduce) {:where(.sk-layout) :is(.loading-actions :is(sk-button,:where([data-sk-tag="button"]))),:where(.sk-layout) :is(.loading-actions :is(sk-a,:where([data-sk-tag="a"]))),:where(.sk-layout) :is(.loading-preview-controls :is(sk-button,:where([data-sk-tag="button"]))),:where(.sk-layout) :is(.loading-preview-controls :is(sk-a,:where([data-sk-tag="a"]))){transition: none;}
}
:where(.sk-layout) :is(.loading-preview-controls :is(sk-select,:where([data-sk-tag="select"]))){min-height: 44px; max-width: 100%; padding: 10px 32px 10px 14px; border: 0px; border-radius: var(--radius-small); background: var(--color-surface); color: var(--color-ink); font: 14px var(--font-body);}
:where(.sk-layout) :is(.loading-preview-controls :is(sk-select,:where([data-sk-tag="select"])):focus-visible){outline: 2px solid var(--color-accent); outline-offset: 3px;}
@media (max-width: 540px) {:where(.sk-layout) :is(.loading-preview-navigation :is(sk-a,:where([data-sk-tag="a"]))){flex-basis: 100%;}
}
:where(.sk-layout) :is(.bot-policy-links :is(sk-a,:where([data-sk-tag="a"]))){white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center;}

:where(.sk-layout) :is(.landing :is(sk-a,:where([data-sk-tag="a"]))){color: inherit; text-decoration: none;}
:where(.sk-layout) :is(.landing :is(:is(sk-a,:where([data-sk-tag="a"])), :is(sk-button,:where([data-sk-tag="button"])), summary)){cursor: pointer;}
:where(.sk-layout) :is(.landing :is(:is(sk-a,:where([data-sk-tag="a"])), :is(sk-button,:where([data-sk-tag="button"])), :is(sk-input,:where([data-sk-tag="input"])), summary):focus),:where(.sk-layout) :is(.landing :is(:is(sk-a,:where([data-sk-tag="a"])), :is(sk-button,:where([data-sk-tag="button"])), :is(sk-input,:where([data-sk-tag="input"])), summary):focus-visible){outline: none; box-shadow: none;}
:where(.sk-layout) :is(.landing .landing-capture :is(sk-input,:where([data-sk-tag="input"]))){display: block; width: 1px; height: 1px; padding: 0px; border: 0px; outline: none; box-shadow: none; opacity: 0;}
:where(.sk-layout) :is(.landing-footer :is(sk-a,:where([data-sk-tag="a"]))){white-space: nowrap;}
:where(.sk-layout) :is(.landing :is(sk-button,:where([data-sk-tag="button"])):disabled),:where(.sk-layout) :is(.landing :is(sk-input,:where([data-sk-tag="input"])):disabled){opacity: 0.55; cursor: not-allowed;}






:where(.sk-layout) :is(.landing :is(:is(sk-a,:where([data-sk-tag="a"])), summary):focus-visible){outline: 2px solid var(--color-accent); outline-offset: 4px;}

:where(.sk-layout) :is(.reader-speed-panel .auto-type-speed :is(sk-input,:where([data-sk-tag="input"]))[type="range"]){flex: 1 1 0%; min-width: 0px; width: auto;}
@media (hover: hover) {:where(.sk-layout) :is(:is(sk-button,:where([data-sk-tag="button"])):not(:disabled) > .tray-icon:hover),:where(.sk-layout) :is(:is(sk-button,:where([data-sk-tag="button"])):not(:disabled) > .bottom-nav-back-content > .tray-icon:hover){color: var(--color-ink); transform: translateY(-1px) scale(1.12); filter: brightness(1.12);}
}





:where(.sk-layout) :is(:is(sk-button,:where([data-sk-tag="button"])):focus),:where(.sk-layout) :is(:is(sk-button,:where([data-sk-tag="button"])):focus-visible){outline: none !important;}





:where(.sk-layout) [data-sk-tag]{pointer-events:none;cursor:default}
:where(.sk-layout [data-sk-tag=button]){display:inline-block;text-align:center}
.sk-layout .sk-native-field{display:inline-block;height:auto;flex-shrink:1}
.page-skeleton{width:100%;min-width:0;pointer-events:none;text-align:left;color:var(--color-ink)}
.sk-status-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.skeleton-cancel{position:fixed;left:max(24px,calc((100% - 1120px)/2));bottom:28px;z-index:2;height:64px;padding:0 12px;border:0;border-radius:8px;background:var(--color-paper);color:var(--color-muted);font:13px var(--font-body);cursor:pointer}
@media(max-width:767px){.skeleton-cancel{bottom:18px;height:64px;padding:0 6px;left:16px}}
.sk-layout{width:100%;min-width:0}.sk-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.sk-block{display:block;flex-shrink:0;max-width:100%;border-radius:6px;background:color-mix(in srgb,var(--color-rule) 66%,var(--color-surface));animation:sk-breathe 1.8s ease-in-out infinite alternate}
.sk-card{min-width:0;padding:24px;border:1px solid var(--color-rule);border-radius:12px;background:var(--color-surface)}
.sk-line{height:13px;margin-block:12px}.sk-caption{height:10px;margin-block:12px}.sk-title{height:25px;margin:4px 0 20px}.sk-action{width:130px;height:36px;border-radius:6px}.sk-value{width:62px;height:24px}.sk-input{height:44px;width:100%;margin-block:18px}.sk-lines{width:100%;padding-block:2px}.sk-lines .sk-line{margin-block:15px}
.sk-stack{display:grid;gap:18px}.sk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-block:26px}.sk-tabs{width:270px;height:36px;border-radius:999px}.sk-search{width:200px;height:36px}.sk-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.sk-continue{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:24px;align-items:center;padding:24px 26px;border:1px solid var(--color-rule);border-radius:14px;background:var(--color-surface)}.sk-continue>.sk-card{border:0;padding:0;background:none}.sk-cover{width:100%;aspect-ratio:2/3;border-radius:8px}.sk-continue>.sk-cover{width:82px;height:116px;aspect-ratio:auto;justify-self:center}.sk-continue .sk-caption{margin:0 0 12px}.sk-continue .sk-title{margin:0 0 10px;height:24px}.sk-continue .sk-line{margin:0 0 14px}.sk-continue .sk-action{height:32px}.sk-books{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.sk-book{min-width:0}.sk-book>.sk-cover{margin-bottom:20px;height:184px;aspect-ratio:auto;border-radius:12px}
.sk-setting{padding-block:16px}.sk-setting>div{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}.sk-track{width:100%;height:6px;border-radius:999px}.sk-detail{display:flex;align-items:center;gap:24px;min-height:70px;border-bottom:1px solid var(--color-rule)}.sk-detail:last-child{border-bottom:0}
.sk-stat{width:100%;height:48px;margin-block:12px}.sk-calendar{display:grid;grid-template-columns:repeat(21,minmax(0,1fr));gap:5px;margin-block:24px}.sk-day{width:100%;aspect-ratio:1;border-radius:3px}.sk-dropzone{width:100%;height:170px;border-radius:12px;margin-bottom:24px}
.sk-reader{width:100%;max-width:none}.sk-reader-heading{margin:8px 0 55px}.sk-reading{max-width:100%;padding-block:10px}.sk-reading .sk-line{height:22px;margin-block:23px}.sk-reader-stats{display:flex;gap:20px;margin-top:50px}.sk-reader-stats .sk-stat{flex:1;min-width:0;height:32px}
.skeleton-screen{position:relative;min-height:100svh;background:var(--color-paper);color:var(--color-ink)}.sk-loading-dock{position:fixed;bottom:26px;inset-inline:16px;width:min(506px,calc(100% - 32px));height:74px;margin-inline:auto;display:flex;gap:12px;pointer-events:none}.sk-dock-pill,.sk-dock-sync{display:block;height:100%;border:1px solid var(--color-rule);border-radius:999px;background:var(--color-surface)}.sk-dock-pill{flex:1;min-width:0}.sk-dock-sync{flex:0 0 74px}
.skeleton-startup .sk-layout{margin-top:0}
.skeleton-screen:has(.sk-reader) .sk-loading-dock,.skeleton-startup:has(.sk-reader) .sk-loading-dock{justify-content:flex-end}.skeleton-screen:has(.sk-reader) .sk-dock-pill,.skeleton-startup:has(.sk-reader) .sk-dock-pill{flex:0 1 200px;margin-left:0}
@keyframes sk-breathe{from{opacity:.45}to{opacity:.82}}@media(prefers-reduced-motion:reduce){.sk-block{animation:none;opacity:.65}}
@media(max-width:959px){.sk-books{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.sk-books{gap:20px}.sk-calendar{grid-template-columns:repeat(14,minmax(0,1fr))}.sk-loading-dock{height:64px;bottom:18px;width:min(420px,calc(100% - 32px));gap:10px}.sk-dock-sync{flex-basis:64px}.sk-dock-pill{margin-left:calc((100% - 86px)/6)}.sk-continue{grid-template-columns:minmax(0,1fr) 90px;padding:20px;gap:20px}.sk-continue .sk-title{width:100%!important}.sk-reader-heading{margin-bottom:36px}.sk-reader-stats{gap:12px;margin-top:30px}}
@media(max-width:540px){.sk-card{padding:19px}.sk-columns{grid-template-columns:1fr}.sk-toolbar{flex-wrap:wrap;gap:12px}.sk-tabs{width:210px}.sk-search{width:150px}.sk-heading>.sk-action{width:90px;height:32px}.sk-reading .sk-line{height:20px;margin-block:20px}.sk-continue .sk-caption{width:70%!important}}
@media(max-width:699px){.sk-books{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* These pages use their loaded layout's containers and breakpoints. */
.sk-layout :is(.settings-layout,.settings-layout section){width:100%;max-width:none;min-width:0;margin-inline:0}
.sk-ghost-text{color:transparent!important;border-radius:4px;background:color-mix(in srgb,var(--color-rule) 66%,var(--color-surface));box-decoration-break:clone;-webkit-box-decoration-break:clone;animation:sk-breathe 1.8s ease-in-out infinite alternate}
.sk-preference-tab{flex:1;min-width:0;height:44px;border-radius:8px}
.sk-choice{flex:1;min-width:0;height:38px;border-radius:7px}
.sk-number{width:66px;height:28px}
.sk-slider-rail{height:36px;margin-top:4px;display:flex;align-items:center}
.sk-preferences .sk-toggle{display:flex;justify-content:space-between;align-items:center}
.sk-preferences .toggle-label>.sk-checkbox{width:42px;height:24px;flex:0 0 42px;border-radius:4px}
.sk-goal-picker{width:90px;height:34px;border-radius:8px}
.sk-pet{width:144px;aspect-ratio:160/112;border-radius:24px}
.sk-pace-range{width:58px;height:34px;border-radius:8px}
.sk-pace-switch{width:157px;height:46px;border-radius:8px}
.sk-pace-plot{display:flex;flex-direction:column;justify-content:center;gap:16px;height:62.09375px;margin-top:16px}
.sk-year{width:132px;height:32px;border-radius:8px}
.sk-heatmap-scroll{min-width:0;overflow:hidden;padding-bottom:18px}
.sk-heatmap-day{width:18px;height:18px;border-radius:4px}
.sk-legend-day{width:18px;height:18px;border-radius:3px}
@media(max-width:640px){.sk-pet{width:128px}}
@media(prefers-reduced-motion:reduce){.sk-ghost-text{animation:none;opacity:.65}}

/* Use the same header and content containers at startup and after React mounts. */
.loading-screen.skeleton-startup .loading-state.page-skeleton{display:block;min-height:calc(100svh - var(--site-header-height));text-align:left;padding:26px 40px 144px;color:var(--color-ink);font:14px/1.6 var(--font-body)}
.sk-layout :is(.account-page,.misc-details){width:100%;max-width:none;min-width:0;margin-inline:0}
.sk-layout .account-sync-status-area{width:100%;max-width:none;min-width:0;margin:0 0 18px;padding:24px;border:1px solid var(--color-rule);border-radius:12px;background:var(--color-surface)}
.sk-sync-status{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;line-height:1.6;color:var(--color-muted)}
.sk-icon{display:inline-block;flex-shrink:0;border-radius:4px}
.sk-account .sk-button{cursor:default;font-family:var(--font-body);line-height:1.6}
.sk-account .policy-link{line-height:1.7}
.sk-account form .sk-account-input{width:100%;height:calc(1.6em + 26px);min-height:44px;border-radius:8px}
.sk-remember{width:42px;height:24px;border-radius:99px}
.sk-consent-check{width:20px;height:20px;margin-top:2px;border-radius:50%}
.sk-account .remember-choice>.sk-ghost-text{background:color-mix(in srgb,var(--color-rule) 66%,var(--color-surface))}
.sk-account .account-card>h2{margin-top:0}
@media(max-width:767px){.loading-screen.skeleton-startup .loading-state.page-skeleton{padding:24px 24px 126px}}
@media(max-width:540px){.sk-layout .account-sync-status-area{padding:19px}}

.sk-layout [data-sk-tag]{color:transparent!important}
.sk-layout [data-sk-tag].primary{background:var(--color-surface);border-color:var(--color-rule)}
.skeleton-reader-screen .page-skeleton{width:100%}
.sk-reader .practice-input.sk-native-field{display:none}
.loading-screen.skeleton-reader-startup .loading-state.page-skeleton{padding:0;max-width:none;margin:0;min-height:100svh}
.skeleton-reader-cancel{position:fixed;z-index:80;pointer-events:auto;bottom:calc(var(--bottom-nav-bottom) + 7px);left:calc(50% - min(253px,calc((100vw - 32px)/2)) + 7px);width:calc((min(506px,calc(100vw - 32px)) - var(--bottom-nav-height) - 26px)/5);height:calc(var(--bottom-nav-height) - 14px);border:0;border-radius:999px;background:var(--color-paper);color:var(--color-muted);font:10px var(--font-body);cursor:pointer}
@media(max-width:767px){.skeleton-reader-cancel{width:calc((min(420px,calc(100vw - 32px)) - var(--bottom-nav-height) - 24px)/5);left:calc(50% - min(210px,calc((100vw - 32px)/2)) + 7px)}}
/* Preferences, Account, Misc, Apps, Changelog and Donate load in the same centred 720px column as the live pages (page-widths.css). */
.page-skeleton:is([data-skeleton-view=preferences],[data-skeleton-view=account],[data-skeleton-view=misc],[data-skeleton-view=things],[data-skeleton-view=blog],[data-skeleton-view=changelog],[data-skeleton-view=donate]) .sk-layout{width:100%;max-width:720px;margin-inline:auto}
/* The live tray reserves a mobile Back slot only below 600px. */
@media(min-width:600px) and (max-width:767px){.sk-loading-dock .sk-dock-pill{margin-left:0}}
/* Sub-pages show Back in the tray: Sync stays put and the pill grows left by one Back slot. */
.page-skeleton:is([data-skeleton-view=things],[data-skeleton-view=blog],[data-skeleton-view=changelog],[data-skeleton-view=donate],[data-skeleton-view=minecraft],[data-skeleton-view=bot],[data-skeleton-view=policy]) .sk-loading-dock .sk-dock-pill{margin-left:-81px}
@media(max-width:767px){.page-skeleton:is([data-skeleton-view=things],[data-skeleton-view=blog],[data-skeleton-view=changelog],[data-skeleton-view=donate],[data-skeleton-view=minecraft],[data-skeleton-view=bot],[data-skeleton-view=policy]) .sk-loading-dock .sk-dock-pill{margin-left:-67px}}
@media(max-width:599px){.page-skeleton:is([data-skeleton-view=things],[data-skeleton-view=blog],[data-skeleton-view=changelog],[data-skeleton-view=donate],[data-skeleton-view=minecraft],[data-skeleton-view=bot],[data-skeleton-view=policy]) .sk-loading-dock .sk-dock-pill{margin-left:0}}

/* Blog index rows: startup skeleton and BlogPage.js's loading list; 52px like a post row. */
.sk-blog-row{display:flex;align-items:center;justify-content:space-between;gap:24px;height:52px;padding:0 10px}
.sk-blog-row .sk-title{height:18px;margin:0}
.sk-blog-row .sk-caption{height:12px;margin:0}
/* Blog post placeholder: inline blocks inside the post's real h1, date line and
   paragraphs (blog.css), so the line boxes and spacing are the post's own. */
.sk-blog .blog-post .sk-block{display:inline-block;margin:0;vertical-align:middle}
.sk-blog .blog-post h1 .sk-block{height:24px}
.sk-blog .blog-post .blog-meta .sk-block{height:12px}
.sk-blog .blog-post .blog-body .sk-block{height:14px}
/* Startup dock mirrors the joined pill: Sync is the pill's end segment. */
.sk-loading-dock{gap:0}
.sk-loading-dock .sk-dock-pill{border-start-end-radius:0;border-end-end-radius:0;border-inline-end:0}
.sk-loading-dock .sk-dock-pill+.sk-dock-sync{border-start-start-radius:0;border-end-start-radius:0;border-inline-start-color:color-mix(in srgb,var(--color-rule) 45%,transparent)}
@media(max-width:767px){.sk-dock-pill{margin-left:calc((100% - 76px)/6)}}
/* Library placeholder keeps one shelf row like the live page: when three books
   and the import tile no longer fit, the tile takes the row's last column and
   the books that would wrap are clipped. */
.sk-layout.library-view .library-section{container-type:inline-size}
@container (max-width:827px){
 .sk-layout.library-view .book-grid{grid-template-rows:auto;grid-auto-rows:0;row-gap:0;overflow:hidden}
 .sk-layout.library-view .book-grid>.book-import-tile{grid-column:-2/-1;grid-row:1}
}

/* The loading dock follows the real dock offset (--bottom-nav-bottom). */
.sk-loading-dock.sk-loading-dock{bottom:calc(var(--bottom-nav-bottom, 18px) + env(safe-area-inset-bottom))}
/* The startup skeleton reserves the same space above the dock as the page does. */
.loading-screen.skeleton-startup .loading-state.page-skeleton.page-skeleton{padding-bottom:calc(var(--bottom-nav-height) + var(--bottom-nav-bottom) + 20px + env(safe-area-inset-bottom))}
/* Hallmark · component: reader loading skeleton · genre: editorial · theme: existing Bookslop
 * Shared live layout, neutral unknown metadata, and no interactive placeholders.
 * pre-emit critique: P5 H5 E5 S5 R5 V4 */
.sk-reader .sk-reader-title-bar,.sk-reader .sk-reader-author-bar,.sk-reader .sk-reader-number,.sk-reader .sk-reader-line{display:inline-block;vertical-align:baseline;height:.75em;margin:0;max-width:100%;border-radius:var(--radius-small)}
.sk-reader .sk-reader-title-bar{width:18ch}
.sk-reader .sk-reader-author-bar{width:10ch}
.sk-reader .reader-book-heading>h1,.sk-reader .reader-book-heading>p{min-width:0;width:100%}
.sk-reader .sk-reader-chapter-label{display:inline-block;width:80px;height:.75em;vertical-align:baseline}
.sk-reader .paragraph-context .sk-reader-line{opacity:.55;animation:none}
.sk-reader .reader-stat-group .sk-reader-number{vertical-align:baseline}
.sk-reader .passage-text{line-height:inherit}
@media(prefers-reduced-motion:reduce){.sk-reader .sk-block,.sk-reader .sk-ghost-text{animation:none}}
.sk-reader .reader-stat-group .sk-reader-number{font:inherit;line-height:inherit}
/* Keep first-paint skeletons aligned with the app's custom scrollbar layout. */
html[data-skeleton-scroll="true"]:has(.page-skeleton):not(:has(.sk-reader)){scrollbar-width:none}
html[data-skeleton-scroll="true"]:has(.page-skeleton):not(:has(.sk-reader))::-webkit-scrollbar{display:none}
.skeleton-welcome-startup{min-height:100svh;background:var(--color-paper)}
.sk-welcome .landing-capture{display:none}
.sk-welcome canvas.sk-block{opacity:.5}
.sk-welcome .landing-book-cover{color:transparent}
.sk-admin .account-card+.account-card{margin-top:18px}
.sk-import .import-steps>.sk-caption{margin:0;height:18px}
.sk-layout .drop-zone [data-sk-tag=button]{display:inline-flex;align-items:center;justify-content:center}
.sk-layout .modal-actions [data-sk-tag=button]{display:inline-flex;align-items:center;justify-content:center}
.loading-error .sk-status-text{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:normal}
/* Activity loading follows the existing page typography, grid and theme tokens. */
.sk-bookworm-pet svg{display:block;overflow:visible;animation:sk-breathe 1.8s ease-in-out infinite alternate}
.sk-worm-shape{fill:var(--color-rule);stroke:none}
.sk-worm-stroke{fill:none;stroke:var(--color-muted);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sk-bookworm-loading .bookworm-xp-count{gap:4px}
.sk-activity .sk-weekday-label{display:block;background:none;text-align:center}
.sk-activity .sk-weekday-label .sk-ghost-text{display:inline-block;width:24px;height:10px;line-height:10px;vertical-align:middle}
.sk-activity-control{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:34px;padding:0 12px;border:1px solid var(--color-rule);border-radius:8px;background:var(--color-surface);font:11px/1 var(--font-body)}
.sk-goal-control{min-width:90px}
.sk-range-control{min-width:63px}
.sk-metric-switch .sk-activity-control{height:36px;padding:7px 13px;border:0;border-radius:5px;background:none;font-size:12px;line-height:1.6}
.sk-metric-switch .sk-activity-control:first-child{background:var(--color-accent-soft)}
.sk-activity .sk-calendar-arrow{display:inline-flex;align-items:center;justify-content:center}
.sk-arrow{width:16px;height:4px;border-radius:2px}
.sk-activity .sk-calendar-scroll{overflow:hidden}
.sk-activity .reading-heatmap-blank{background:none}
.sk-session-chart .sk-ghost-text{font:inherit}
.sk-chart-canvas{height:196px;display:flex;flex-direction:column;justify-content:space-between;padding:29px 20px 2px 0;box-sizing:border-box}
.sk-chart-row{display:flex;align-items:center;gap:12px;height:14px}
.sk-axis-label{width:36px;height:10px;margin-left:0;border-radius:3px}
.sk-chart-rule{height:1px;flex:1;background:var(--color-rule)}
.sk-chart-dates{display:flex;justify-content:space-between;padding-left:48px;margin-top:7px;height:14px}
.sk-axis-date{width:40px;height:10px;border-radius:3px}
@media(prefers-reduced-motion:reduce){.sk-bookworm-pet svg{animation:none;opacity:.65}}
/* Masks reveal the original headings without changing their typography. */
.landing .welcome-reveal-masks{position:fixed;width:0;height:0;overflow:hidden;pointer-events:none}
/* Keep the live caret out of the sample's entrance; typing ends it immediately. */
.landing-reader[data-sample-reveal] .landing-fluid-caret{visibility:hidden}
/* Keep the compact typing field on one horizontal line, including iOS textareas. */
.reader .practice-input{line-height:1.3;white-space:pre;overflow-wrap:normal;word-break:normal;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.reader .practice-input::-webkit-scrollbar{display:none}
/* Align the loading cancel hit target with the existing Back skeleton slot.
 * The placeholders provide the visuals; this layer only handles cancellation. */
.skeleton-reader-cancel-position{z-index:80}
.skeleton-reader-cancel-position .bottom-nav-dock{pointer-events:none}
.skeleton-reader-cancel-position .bottom-nav{background:none;border-color:transparent;box-shadow:none;pointer-events:none}
.skeleton-reader-cancel-position .skeleton-reader-cancel{position:static;inset:auto;grid-column:1;width:auto;height:auto;opacity:0;pointer-events:auto}
.skeleton-reader-cancel-position .skeleton-reader-cancel-sync{visibility:hidden;pointer-events:none}
@media(max-width:767px){
 .reader .practice-input{overflow:hidden}
 .reader.reader-bottom-dock .reading-main{height:calc(100svh - var(--bottom-nav-bottom) - var(--bottom-nav-height) - 60px - env(safe-area-inset-bottom));padding-top:calc(var(--reader-safe-top,env(safe-area-inset-top,0px)) + 8px);padding-bottom:0}
 .reader.reader-bottom-dock:has(.auto-type-speed) .reading-main{height:calc(100svh - var(--bottom-nav-bottom) - var(--bottom-nav-height) - 60px - env(safe-area-inset-bottom))}
 .reader .reading-main:has(>.typing-stats)>.reader-book-heading{width:calc(100% - 172px);min-height:76px;margin:0 auto;padding:0;justify-content:center;gap:4px}
 .reader .reading-main:has(>.typing-stats)>.reader-book-heading>h1{font-size:clamp(14px,4.2vw,20px);line-height:1.15;letter-spacing:-.3px;max-width:100%;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .reader .reading-main:has(>.typing-stats)>.reader-book-heading>p{font-size:10px;line-height:1.25;margin:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .reader .reading-main>.typing-stats{position:absolute;inset:calc(var(--reader-safe-top,env(safe-area-inset-top,0px)) + 12px) var(--reader-inset) auto;display:flex;justify-content:space-between;gap:0;margin:0;pointer-events:none}
 .reader .typing-stats>.reader-stat-group{width:82px;gap:3px;pointer-events:auto}
 .reader .reader-stat-group>div{gap:3px;flex-wrap:wrap}
 .reader .reader-stat-group strong{font-size:10px;line-height:1.25}
 .reader .reader-stat-group>div>span{font-size:8px;line-height:1.25}
 .reader .reader-stat-group .chapter-progress-stat,.reader .reader-stat-group .stat-wpm{margin-bottom:0}
 .reader .reader-stat-group .chapter-progress-stat strong,.reader .reader-stat-group .stat-wpm strong{font-size:18px;line-height:1.15;letter-spacing:-.4px}
 .reader .reader-stat-group .chapter-progress-stat>span,.reader .reader-stat-group .stat-wpm>span{font-size:8px}
 .reader .reading-main>.chapter-bar{margin-block:4px 8px}
 .reader .typing-input-wrap{margin-top:4px}
 .reader .typing-feedback{min-height:18px;height:18px;margin-top:2px}
}

.typing-input-toolbar{display:contents}
.typing-input-toolbar>label{display:flex;align-items:center;justify-content:center;gap:8px;font-size:10px;line-height:16px;color:var(--color-muted);margin-bottom:4px}
.reader .mobile-reader-input-action{display:none}
@media(max-width:767px){
 .reader.reader-bottom-dock{min-height:100svh}
 .reader.reader-bottom-dock .reader-bottom-left,.reader.reader-bottom-dock .reader-bottom-right{display:none}
 .reader .typing-input-toolbar{display:grid;grid-template-columns:24px minmax(0,1fr) 24px;align-items:center;gap:8px;height:24px;margin-bottom:4px}
 .reader .typing-input-toolbar>label{margin:0;min-width:0}
 .reader .mobile-reader-input-action{display:flex;align-items:center;justify-content:center;width:24px;height:24px;min-height:24px;padding:3px;border:0;background:none;color:var(--color-muted)}
 .reader .mobile-reader-input-action>.tray-icon{display:flex;width:18px;height:18px}
 .reader .mobile-reader-input-action>span:not(.tray-icon){display:none}
 .sk-reader .typing-input-wrap>label{height:24px;line-height:24px}
}

/* RSVP has no typing field; keep its secondary actions above the speed row. */
@media(max-width:767px){
 .reader.rapid-mode:not(.rapid-manual) .reader-bottom-left,.reader.rapid-mode:not(.rapid-manual) .reader-bottom-right{display:flex;bottom:calc(var(--bottom-nav-bottom) + var(--bottom-nav-height) + 68px + env(safe-area-inset-bottom))}
}

/* The chapter bar shrink-wraps, so a percentage cap collapsed the picker; cap it by viewport. */
.reader .chapter-bar .chapter-select{max-width:min(320px,calc(100vw - 140px))}

/* Keyboard shortcut hints only appear where a hardware keyboard is likely. */

/* Hallmark · component: Library shelf cards · theme: existing Bookslop
 * Welcome proportions scaled to compact covers. Pre-emit critique: P5 H5 E5 S5 R5 V4 */
.library-view .book-grid {
  grid-template-columns: repeat(auto-fill, minmax(0, 192px));
  gap: 20px;
}
.library-view .book-grid .book-display {
  height: 184px;
  aspect-ratio: auto;
  padding: 13px;
  border-radius: 11px;
}
.library-view .book-grid .book-display .book-cover {
  width: 88px;
  height: 128px;
  max-width: 100%;
  aspect-ratio: auto;
}

/* Let generated-cover typography scale with the cover, as on Welcome. */
.library-view .book-grid .book-display .generated-cover .cover-title {
  font-size: 17cqw;
  margin: 0;
  padding: 0;
}
.library-view .book-grid .book-display .generated-cover[data-long-title] .cover-title {
  font-size: 13cqw;
}
.library-view .book-grid .book-display .generated-cover .cover-border {
  inset: 6%;
  padding: 6% 5% 3%;
  gap: 5cqw;
}
.library-view .book-grid .book-display .generated-cover .cover-author {
  font-size: 5cqw;
  letter-spacing: .7cqw;
}
.library-view .book-grid .book-display .generated-cover .cover-art { margin: 0; }

/* Card and hero meta text keep a legible minimum size. */
.library-view .continue-copy>.eyebrow{font-size:11px;letter-spacing:1.4px}
.library-view .book-author{font-size:13px}
.library-view .book-meta{justify-content:flex-start;font-size:12px}
.library-view .format-tag{font-size:10px;letter-spacing:.6px}
.library-view .book-last-opened{font-size:12px}

/* Spare shelf slot: an empty cover outline in a cover-sized tile, labelled
   like a book card so it sits in the shelf row without looking like a book. */
.library-view .book-grid .book-import-tile {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-muted);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
}
.library-view .book-import-slot {
  height: 184px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--color-surface) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-rule) 60%, transparent);
}
.library-view .book-import-cover {
  width: 88px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed color-mix(in srgb, var(--color-muted) 55%, transparent);
  border-radius: 4px 7px 7px 4px;
  color: var(--color-muted);
  transition: color var(--book-hover-duration) var(--book-hover-ease), border-color var(--book-hover-duration) var(--book-hover-ease), transform var(--book-hover-duration) var(--book-hover-ease);
}
.library-view .book-import-tile strong { margin: 13px 4px 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--color-ink); }
@media (hover: hover) {
  .library-view .book-import-tile:hover .book-import-cover { color: var(--color-ink); border-color: var(--color-body); transform: translateY(var(--book-hover-lift)); }
}

/* Featured book: larger cover and title on wide, tall screens so it leads the
   page; shorter windows keep the compact panel so the shelf fits without scrolling. */
@media (min-width: 768px) and (min-height: 1000px) {
  .library-view .continue-panel { padding: 26px 40px 26px 34px; }
  .library-view .continue-copy h2 { font-size: 36px; }
  .library-view .continue-copy p { font-size: 13px; }
  .library-view .continue-copy .button { margin-top: 18px; min-height: 40px; padding: 8px 16px; font-size: 13px; }
  .library-view .continue-cover { zoom: 1.45; }
}
@media (min-width: 768px) and (max-height: 999px) {
  .library-view .continue-panel { padding-block: 10px; }
  .library-view .page-heading { margin-bottom: 14px; }
}

/* Desktop: shelf tiles shrink with the window height so the Library does not scroll
   (632px is the space above the shelf, the card details and the dock padding). Short
   windows also hide the last-opened line. */
@media (min-width: 768px) {
  .library-view .book-grid {
    --library-tile-height: clamp(112px, calc(100dvh - 632px), 184px);
  }
  .library-view .book-grid .book-display,
  .library-view .book-import-slot {
    height: var(--library-tile-height);
  }
  .library-view .book-grid .book-display .book-cover,
  .library-view .book-import-cover {
    height: calc(var(--library-tile-height) - 56px);
    width: calc((var(--library-tile-height) - 56px) * 0.6875);
  }
}
@media (min-width: 768px) and (max-height: 860px) {
  .library-view .book-grid {
    --library-tile-height: clamp(112px, calc(100dvh - 607px), 184px);
  }
  .library-view .book-grid .book-last-opened {
    display: none;
  }
}

/* The skeleton's pagination row appears only in the phone list. */
.sk-layout.library-view .sk-mobile-pager {
  display: none;
}

/* Phones: the shelf becomes a compact list sized to the screen, so the Library page
   does not scroll. Each row is a small cover beside the title, author, chapters and
   progress; a page holds as many rows as fit, the last being Import a book. */
@media (max-width: 540px) {
  .library-view .book-grid {
    --library-row-height: 88;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .library-view .book-grid .book-card,
  .library-view .book-grid .book-import-tile {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    height: 80px;
    padding: 6px 10px 6px 6px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--color-surface) 70%, transparent);
  }
  .library-view .book-grid .book-import-tile {
    background: color-mix(in srgb, var(--color-surface) 40%, transparent);
  }
  .library-view .book-grid .book-display,
  .library-view .book-grid .book-import-slot {
    width: 56px;
    height: 68px;
    padding: 4px;
    border-radius: 8px;
  }
  .library-view .book-grid .book-display .book-cover,
  .library-view .book-grid .book-import-cover {
    width: 42px;
    height: 60px;
  }
  .library-view .book-grid .book-import-tile strong {
    margin: 0;
  }
  .library-view .book-grid .book-info {
    min-width: 0;
    margin: 0;
    padding: 0;
  }
  .library-view .book-grid .book-info :is(h3, p, span, div) { line-height: 1.3; }
  .library-view .book-grid .book-info p { margin: 0; }
  .library-view .book-grid .book-title-row h3 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .library-view .book-grid .book-byline { margin-top: 1px; }
  .library-view .book-grid .book-author,
  .library-view .book-grid .book-meta { font-size: 12px; }
  .library-view .book-grid .book-meta { margin-top: 1px; }
  .library-view .book-grid .progress-track { margin-top: 6px; }
  .library-view .book-grid .book-last-opened { display: none; }
  /* A shorter featured-book panel leaves room for more list rows. */
  .library-view .continue-copy {
    min-width: 0;
  }
  .library-view .continue-copy h2 {
    overflow: hidden;
    font-size: 20px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .library-view .continue-cover .book-cover {
    width: 46px;
    height: 66px;
  }
  /* The loading skeleton places the Import tile in the first row of the grid. */
  .sk-layout.library-view .book-grid > .book-import-tile.book-import-tile {
    grid-column: auto;
    grid-row: auto;
  }
  /* The skeleton shows one book row and the Import row, the smallest real page. */
  .sk-layout.library-view .book-grid {
    grid-auto-rows: 80px;
    row-gap: 8px;
  }
  .sk-layout.library-view .book-grid > .book-card ~ .book-card {
    display: none;
  }
  .sk-layout.library-view .sk-mobile-pager {
    display: flex;
  }
}
/* Short phones: drop the featured panel's eyebrow so a book and the Import row fit. */
@media (max-width: 540px) and (max-height: 720px) {
  .library-view .continue-copy > .eyebrow {
    display: none;
  }
}
/* Phone skeleton: show as many book rows as the real list fits at common heights
   (the list starts about 370px down; each row is 88px). */
@media (max-width: 540px) and (min-height: 781px) {
  .sk-layout.library-view .book-grid > .book-card:nth-child(2) { display: grid; }
}
@media (max-width: 540px) and (min-height: 869px) {
  .sk-layout.library-view .book-grid > .book-card:nth-child(3) { display: grid; }
}
/* Hallmark · component: generated book covers · genre: editorial · theme: existing Bookslop
 * One design: double inset rule, centred serif title over a short rule, spaced author at
 * the foot. Colours are set per book inline (--gc-bg, --gc-ink, --gc-accent).
 * Container units keep the design consistent from thumbnails to shelf covers.
 */
.generated-cover.gc {
  container-type: size;
  background: var(--gc-bg);
  color: var(--gc-ink);
}
.gc .gc-face {
  position: absolute;
  inset: 6% 6% 6% 10%;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  padding: 14% 9% 10%;
  border: 1px solid var(--gc-accent);
  outline: 1px solid var(--gc-accent);
  outline-offset: -3.4cqw;
  text-align: center;
}
.gc .gc-head {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}
.gc .gc-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: 18cqw;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
.gc[data-title-size='medium'] .gc-title { font-size: 14.5cqw; }
.gc[data-title-size='long'] .gc-title { font-size: 11.5cqw; }
.gc[data-title-size='xlong'] .gc-title { font-size: 9.5cqw; -webkit-line-clamp: 6; }
.gc .gc-rule {
  display: block;
  width: 16cqw;
  height: 1px;
  margin-top: 6cqw;
  background: var(--gc-accent);
}
.gc .gc-author {
  grid-row: 3;
  align-self: end;
  max-width: 100%;
  overflow: hidden;
  color: var(--gc-accent);
  font-family: var(--font-body);
  font-size: 4.6cqw;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Cloth sheen and spine shadow so the cover reads as an object. */
.gc .gc-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.24) 0%, rgb(0 0 0 / 0) 7%, rgb(255 255 255 / 0.09) 10%, rgb(255 255 255 / 0) 24%),
    linear-gradient(180deg, rgb(255 255 255 / 0.06), rgb(0 0 0 / 0.08));
}
/* Thumbnails: title only, single rule. */
@container (max-width: 64px) {
  .gc .gc-author,
  .gc .gc-rule {
    display: none;
  }
  .gc .gc-face {
    outline: none;
    padding: 8%;
  }
  .gc .gc-title,
  .gc[data-title-size] .gc-title {
    font-size: 15cqw;
    -webkit-line-clamp: 4;
  }
}
/* Hallmark · component: Minimum window notice · theme: existing Bookslop
 * Shared app header and two lines of resize guidance. P5 H5 E5 S5 R5 V4 */
html:root[data-window-too-small],html:root[data-window-too-small] body,html:root[data-window-too-small] #root {
  min-width: 0;
  overflow-x: clip;
}
.bookslop-window-notice {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  overflow: auto;
  overscroll-behavior: contain;
  text-align: left;
}
.bookslop-window-notice[open] { display: flex; flex-direction: column; }
.bookslop-window-notice::backdrop { background: var(--color-paper); }
.bookslop-window-notice [hidden] { display: none; }
.window-notice-dot { color: var(--color-accent); }
.window-notice-header { flex: 0 0 auto; }
.window-notice-content { flex: 0 0 auto; width: 100%; max-width: 1200px; min-width: 0; margin-block: auto; margin-inline: 0; margin-left: max(0px, calc((100vw - 1200px)/2)); padding: 40px var(--site-header-padding); box-sizing: border-box; }
.bookslop-window-notice h1 { max-width: 520px; margin: 0 0 16px; font: 400 clamp(32px, 5vw, 44px)/1.1 var(--font-display); font-style: normal; letter-spacing: -1px; overflow-wrap: anywhere; }
.bookslop-window-notice p { max-width: 440px; margin: 0; font: 400 13px/1.7 var(--font-body); color: var(--color-body); }
.bookslop-window-notice strong { font-weight: 500; color: var(--color-ink); white-space: nowrap; }
/* Hallmark · pre-emit critique: P4 H5 E5 S5 R5 V4
 * component: starter-book shelf · genre: editorial · theme: existing Bookslop
 * states: default · hover · focus · active · disabled · loading · error · success
 * contrast: pass (40–41) · mobile: pass (320 / 375 / 414 / 768)
 * scope: Account only; existing cover art, typefaces and colorways */
:root{
  --text-starter-heading:27px;
  --text-starter-title:20px;
  --text-starter-body:13px;
  --text-starter-caption:12px;
  --space-starter-row:16px;
  --space-starter-detail:12px;
  --space-starter-control:10px;
  --space-starter-footer:20px;
  --color-starter-focus:var(--color-accent);
  --color-starter-action-ink:var(--color-on-accent);
}
.account-card.starter-books{min-width:0;color:var(--color-ink)}
.starter-books .starter-books-heading{display:block;margin-bottom:var(--space-6)}
.starter-books .starter-books-heading h2{margin:0 0 var(--space-2);font-family:var(--font-display);font-size:var(--text-starter-heading);font-weight:400;font-style:normal;line-height:1.2;min-width:0;overflow-wrap:anywhere;color:var(--color-ink)}
.starter-books .starter-books-heading p{margin:0;font-family:var(--font-body);font-size:var(--text-starter-body);line-height:1.6;color:var(--color-body)}
.starter-books-list{list-style:none;margin:0;padding:0;min-width:0}
.starter-books-row{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:var(--space-starter-detail);row-gap:var(--space-1);align-items:center;padding:var(--space-starter-row) 0;border-top:1px solid var(--color-rule);min-width:0}
.starter-books-cover{position:relative;grid-row:span 2;width:44px;height:62px;isolation:isolate}
.starter-books-cover .book-cover{position:relative;inset:auto;width:100%;height:100%;transform:none;box-shadow:none}
.starter-books-details{min-width:0;align-self:end}
.starter-books .starter-books-details h3{margin:0;font-family:var(--font-display);font-size:var(--text-starter-title);font-style:normal;font-weight:400;line-height:1.15;color:var(--color-ink);overflow-wrap:anywhere;min-width:0}
.starter-books .starter-books-author{margin:var(--space-1) 0 0;font-family:var(--font-body);font-size:var(--text-starter-caption);line-height:1.5;color:var(--color-body)}
.starter-books-presence{grid-column:2;align-self:start;display:inline-flex;align-items:center;gap:var(--space-1);font-family:var(--font-body);font-size:var(--text-starter-caption);line-height:1.5;color:var(--color-muted)}
.starter-books-presence svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.starter-books-row[data-saved=true] .starter-books-presence{color:var(--color-accent)}
.starter-books-footer{padding-top:var(--space-starter-footer);border-top:1px solid var(--color-rule)}
.starter-books .starter-books-action-row{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2)}
.starter-books .starter-books-action{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);width:fit-content;max-width:100%;min-height:0;padding:var(--space-starter-control) var(--space-4);white-space:nowrap;font-family:var(--font-body);font-size:var(--text-starter-body);line-height:22px;font-weight:500;border:1px solid var(--color-accent);border-radius:var(--radius-small);background:var(--color-accent);color:var(--color-starter-action-ink);cursor:pointer;transition:transform var(--dur-fast) var(--ease-out)}
.starter-books-action::after{content:'';position:absolute;inset:-1px}
.starter-books-action svg,.starter-books-result svg{width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.starter-books .starter-books-action:is(:focus-visible,.is-focus),.starter-books .starter-books-library-link:is(:focus-visible,.is-focus){outline:2px solid var(--color-starter-focus);outline-offset:3px;box-shadow:0 0 0 2px var(--color-surface)}
.starter-books .starter-books-action:is(:active,.is-active):not(:disabled){transform:translateY(1px)}
.starter-books .starter-books-action:disabled{opacity:.55;cursor:not-allowed;transform:none}
.starter-books[data-state=loading] .starter-books-action{cursor:wait;opacity:.8}
.starter-books[data-state=error] .starter-books-action{outline:1px solid var(--color-error);outline-offset:3px}
.starter-books[data-state=success] .starter-books-success{color:var(--color-accent)}
.starter-books .starter-books-cooldown{margin:0;font-family:var(--font-body);font-size:var(--text-starter-caption);font-variant-numeric:tabular-nums;line-height:1.6;color:var(--color-body)}
.starter-books .starter-books-note{margin:var(--space-2) 0 0;font-family:var(--font-body);font-size:var(--text-starter-caption);line-height:1.6;color:var(--color-muted)}
.starter-books-result:empty{display:none}
.starter-books .starter-books-result :is(p,.account-error){display:flex;align-items:flex-start;gap:var(--space-2);margin:var(--space-4) 0 0;font-family:var(--font-body);font-size:var(--text-starter-body);line-height:1.65;color:var(--color-body)}
.starter-books .starter-books-result .account-error{color:var(--color-error)}
.starter-books-result svg{margin-top:2px}
.starter-books-success{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 var(--space-4)}
.starter-books .starter-books-library-link{display:inline-flex;align-items:center;white-space:nowrap;padding:var(--space-starter-control) 0;margin:var(--space-1) 0 0;min-height:0;border:0;background:var(--color-clear);color:var(--color-accent);font-family:var(--font-body);font-size:var(--text-starter-body);line-height:24px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.starter-books-spinner{animation:starter-books-spin .8s linear infinite}
@keyframes starter-books-spin{to{transform:rotate(360deg)}}
@media(hover:hover){
 .starter-books .starter-books-action:is(:hover,.is-hover):not(:disabled){background:var(--color-accent-hover);color:var(--color-starter-action-ink)}
 .starter-books .starter-books-library-link:is(:hover,.is-hover){text-decoration-thickness:2px}
}
@media(min-width:40rem){
 .starter-books-row{grid-template-columns:44px minmax(0,1fr) auto;row-gap:0;column-gap:var(--space-4)}
 .starter-books-cover{grid-row:auto}
 .starter-books-details{align-self:center}
 .starter-books-presence{grid-column:auto;align-self:center;white-space:nowrap}
 .starter-books .starter-books-action-row{flex-direction:row;align-items:center;gap:var(--space-4)}
}
@media(prefers-reduced-motion:reduce){
 .starter-books .starter-books-action{transition:none}
 .starter-books .starter-books-action:is(:active,.is-active){transform:none}
 .starter-books-spinner{animation:none}
}
.sk-account .sk-starter-books .starter-books-action{background:var(--color-surface);border-color:var(--color-rule);color:var(--color-ink);cursor:default}
.sk-starter-books .starter-books-cover{border-radius:0}
/* Hallmark · component: age slider · genre: editorial · theme: existing Bookslop
 * tone: quiet utilitarian · structure: label + value badge above a range track
 * states: default · hover · focus · active · disabled · loading · error · success
 * pre-emit critique: P5 H5 E5 S5 R5 V4
 */
.account-age-form .account-age-field.preference-slider {
  width: 100%;
  min-width: 0;
  max-width: 360px;
  margin: 0;
  padding: 12px 16px 4px;
  border: 0;
  border-radius: var(--radius-large);
  outline: none;
  box-shadow: none;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
}

.account-age-field .slider-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-width: 0;
}

.account-age-form .slider-heading > label {
  display: block;
  margin: 0;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 500;
}

.account-age-field .account-age-value {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: var(--radius-small);
  outline: none;
  box-shadow: none;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.account-age-form .account-age-value input[type="number"] {
  box-sizing: content-box;
  width: 3ch;
  min-width: 0;
  height: 20px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: var(--color-clear);
  color: inherit;
  font: inherit;
  line-height: 20px;
  text-align: right;
  appearance: textfield;
  -moz-appearance: textfield;
}

.account-age-value input::placeholder { color: var(--color-muted); }
.account-age-value input::-webkit-inner-spin-button,
.account-age-value input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.account-age-form .account-age-range {
  display: block;
  width: 100%;
  min-width: 0;
  height: 36px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-small);
  outline: none;
  box-shadow: none;
  background: var(--color-clear);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.account-age-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--color-accent) var(--slider-fill), var(--color-rule) var(--slider-fill));
}

.account-age-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-paper);
  appearance: none;
  -webkit-appearance: none;
}

.account-age-range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--color-rule); }
.account-age-range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--color-accent); }
.account-age-range::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid var(--color-accent); border-radius: 50%; background: var(--color-paper); }

@media (hover: hover) {
  .account-age-value:hover,
  .account-age-field.is-hover .account-age-value { background: var(--color-hover); color: var(--color-hover-ink); }
}

.account-age-value:focus-within,
.account-age-field.is-focus .account-age-value { background: var(--color-selected); color: var(--color-selected-ink); }
.account-age-range:focus-visible::-webkit-slider-thumb,
.account-age-range:active::-webkit-slider-thumb,
.account-age-field.is-active .account-age-range::-webkit-slider-thumb { background: var(--color-accent); transform: scale(1.1); }
.account-age-range:focus-visible::-moz-range-thumb,
.account-age-range:active::-moz-range-thumb { background: var(--color-accent); }
.account-age-field:has(input:disabled) { opacity: .55; }
.account-age-field input:disabled { cursor: default; }
.account-age-field[data-state="loading"] { cursor: progress; }
.account-age-field[data-state="error"] .account-age-value { background: var(--color-error-bg); color: var(--color-error); }
.account-age-field[data-state="success"] .account-age-value { color: var(--color-success); }

.account-age-form .account-age-feedback {
  min-height: 1.5em;
  margin: var(--space-1) 0 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
}
.account-age-form .account-age-feedback.account-error { color: var(--color-error); }
.account-card .account-verification-notice {
  display: block;
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
}
.account-verification-notice a { color: inherit; white-space: nowrap; }
/* Google pre-approved neutral artwork is displayed whole, at its original 4.5:1 aspect ratio.
 * Keep the same neutral colours in every interaction state and app theme. */
.account-card .shoo-signin{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:24px 0 20px;min-width:0}
.shoo-separator{display:flex;align-items:center;gap:12px;width:100%;color:var(--color-muted);font-size:12px;line-height:20px}
.shoo-separator::before,.shoo-separator::after{content:"";height:1px;flex:1;background:var(--color-rule)}
.account-card .shoo-google-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:198px;height:44px;max-width:100%;padding:0;border:0;border-radius:4.4px;background:#f2f2f2;color:#1f1f1f;cursor:pointer;outline:0 solid transparent;outline-offset:0;box-shadow:none;overflow:visible}
.shoo-google-artwork{display:block;flex:none;width:100%;height:auto;max-width:100%;aspect-ratio:4.5;pointer-events:none;user-select:none}
.account-card .shoo-google-button:hover:not(:disabled),.account-card .shoo-google-button.is-hover,
.account-card .shoo-google-button:focus-visible,.account-card .shoo-google-button.is-focus,
.account-card .shoo-google-button:active:not(:disabled),.account-card .shoo-google-button.is-active{background:#f2f2f2;color:#1f1f1f;border:0;box-shadow:none}
.account-card .shoo-google-button:disabled{cursor:not-allowed}
.account-card .shoo-google-button[data-state="loading"]{cursor:progress}
.account-card .shoo-connected{margin:4px 0 18px;color:var(--color-ink);font-size:13px}
.shoo-account-action .account-error{margin:0}
.shoo-link{margin:0 0 18px}
.shoo-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.landing a.button, .landing a.book-display { text-decoration: none; }
.landing-footer nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; }

/* Quiet footer links share one centered row. */
.landing .landing-footer nav { gap: 8px 24px; }
.landing .landing-footer .policy-link { display: inline-block; min-width: 0; min-height: 0; padding: 4px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--color-muted); font: 400 12px/1.6 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; }
@media (hover: hover) { .landing .landing-footer .policy-link:hover { color: var(--color-ink); background: transparent; text-decoration: none; } }
/* Existing Bookslop typography, theme tokens and navigation stay shared. */
.donation-page{width:100%;min-width:0}
/* The letter uses the Account card surface and its heading and body sizes. */
.donation-letter h2{margin:0 0 12px;overflow-wrap:anywhere}
.donation-letter p{max-width:64ch;color:var(--color-body);margin:0 0 12px}
.donation-checkout{margin-block:20px 0}
.donation-button{white-space:nowrap;max-width:100%;text-decoration:none}
.donation-page .donation-button:is(:focus,:focus-visible){outline:none;box-shadow:none}
.donation-button:disabled{cursor:default;opacity:.6}
.donation-letter .donation-note{font-size:14px;color:var(--color-muted);margin-top:12px}
.donation-letter .donation-thanks{padding-top:24px;border-top:0;font-size:15px}

.donation-checkout h3{font-family:var(--font-body);font-style:normal;font-size:16px;font-weight:500;line-height:1.5;color:var(--color-ink);margin:0 0 12px}
.donation-amounts{display:flex;flex-wrap:wrap;gap:12px}
.donation-amounts .donation-button{min-width:72px;justify-content:center}
@media(max-width:414px){.donation-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.donation-amounts .donation-button{min-width:0;width:100%}}

/* Match the adjacent Minecraft link's text size, hit area and row spacing. */
.misc-details :is([data-page-route="/donate"],.misc-donate-placeholder){padding:6px 8px;margin:-6px -8px;font-size:14px}
/* Things reuses Misc rows; its Misc link matches the adjacent Donate link. */
.things-page{width:100%;min-width:0}
.misc-details :is([data-page-route="/things"],.misc-things-placeholder){padding:6px 8px;margin:-6px -8px;font-size:14px}
/* Apps: Misc's box, one row per app, each a small left-aligned name. */
.apps-list>div{justify-content:flex-start}
.apps-list .apps-word{padding:6px 8px;margin:-6px -8px;font-size:14px}
.apps-list>div{flex-direction:column;align-items:flex-start;gap:6px}
.apps-list .apps-about{margin:0;color:var(--color-muted);font-size:13px;line-height:1.5}
/* Blog (BlogPage.js): long-form reading in the app's column, on the app's tokens. */
.blog-page{width:100%;min-width:0}
.blog-lede{max-width:30em;margin:4px 0 0;color:var(--color-muted);font:400 21px/1.42 var(--font-display);text-wrap:pretty}
.blog-new{margin-top:24px}
.blog-empty{margin:36px 0 0;color:var(--color-muted);font:400 19px/1.5 var(--font-display)}
.blog-empty p{margin:0 0 8px}

/* Index: a small lowercase heading, a one-line note, then one quiet line per post
   (title left, date right); rows take the app's standard hover fill. Rows bleed
   10px each side so the text stays on the column edge. */
.blog-home .content-page-heading{margin-bottom:0;padding-bottom:0}
.blog-home .page-heading h1{margin-top:0;font-size:30px;font-weight:500;letter-spacing:-.01em;line-height:1.2}
.blog-home .blog-lede{max-width:none;margin:8px 0 0;color:color-mix(in srgb,var(--color-ink) 34%,transparent);font:400 16px/1.5 var(--font-body)}
.blog-index{margin:56px -10px 0;padding:0;list-style:none}
.blog-index a{display:flex;align-items:baseline;justify-content:space-between;gap:24px;padding:12px 10px;border-radius:var(--radius-small,6px);color:color-mix(in srgb,var(--color-ink) 72%,transparent);text-decoration:none}
.blog-index time{flex:none;color:color-mix(in srgb,var(--color-ink) 34%,transparent);font:400 15px/1 var(--font-body);font-variant-numeric:tabular-nums;white-space:nowrap}
.blog-entry-title{min-width:0;font:400 20px/1.4 var(--font-body);text-wrap:balance}
@media(hover:hover){.blog-index a:hover{background:var(--color-hover);color:var(--color-hover-ink)}}

/* Post: a narrower reading column. Title, then a dim date line
   above a hairline; the plain-text body is the body font at 18px on a 32px line. */
.blog-post,.blog-editor{max-width:624px;margin-inline:auto}
.blog-post>header{margin-bottom:40px;padding-bottom:28px;border-bottom:1px solid var(--color-rule)}
.blog-post h1{margin:0;font:500 30px/1.25 var(--font-display);letter-spacing:-.01em;text-wrap:balance}
.blog-meta{margin:12px 0 0;color:color-mix(in srgb,var(--color-ink) 34%,transparent);font:400 15px/1.4 var(--font-body);font-variant-numeric:tabular-nums}
.blog-edit-link{margin-left:12px;padding:2px 8px;border-radius:var(--radius-small,6px);color:var(--color-ink);text-decoration:underline 1px color-mix(in srgb,var(--color-accent) 50%,transparent);text-underline-offset:3px}
.blog-edit-link:hover{background:var(--color-hover)}
.blog-body{color:color-mix(in srgb,var(--color-ink) 72%,transparent);font:400 18px/1.78 var(--font-body);font-kerning:normal}
.blog-body p{margin:0 0 24px;text-wrap:pretty}

/* Editor: laid out like the post it becomes: a title and a plain-text body. */
.blog-editor .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.blog-editor{display:flex;flex-direction:column}
.blog-editor :is(input,textarea){display:block;width:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--color-ink);box-shadow:none;outline:none}
.blog-editor ::placeholder{color:var(--color-muted);opacity:.55}
.blog-editor-head{display:flex;flex-direction:column;gap:16px;padding:0 0 28px;border-bottom:1px solid var(--color-rule)}
.blog-editor-title{font:500 30px/1.25 var(--font-display);letter-spacing:-.01em}
.blog-editor-body{min-height:340px!important;padding-top:40px!important;resize:none;overflow:hidden;color:color-mix(in srgb,var(--color-ink) 72%,transparent)!important;font:400 18px/1.78 var(--font-body)}
.blog-editor-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:24px;padding-top:16px;border-top:1px solid var(--color-rule)}
.blog-editor-actions .button:disabled{opacity:.6;cursor:progress}
.blog-delete{min-height:40px;padding:8px 14px;border:0;border-radius:var(--radius-small,6px);background:transparent;color:var(--color-muted);font-size:13px;cursor:pointer}
.blog-delete:hover{background:var(--color-error-bg);color:var(--color-error)}
.blog-delete:disabled{opacity:.6;cursor:progress}
.blog-editor-status{margin:0 0 0 auto;color:var(--color-muted);font-size:13px}

@media(max-width:540px){
  .blog-post h1,.blog-editor-title{font-size:26px}
  .blog-index{margin-top:40px}
  .blog-index a{gap:16px}
  .blog-entry-title{font-size:18px}
  .blog-body,.blog-editor-body{font-size:17px}
}

/* Keep historical scans in their original proportions, without letterboxed frames.
 * Custom uploaded artwork keeps the app's original cover treatment. */
html :is(.landing, .library-view, .starter-books) .book-cover.uploaded-cover:has(> img[src^="/covers/"]) {
  --scan-ratio: 427 / 640;
  width: auto;
  max-width: 100%;
  aspect-ratio: var(--scan-ratio);
  overflow: hidden;
  background: transparent;
}
html :is(.landing, .library-view, .starter-books) .book-cover.uploaded-cover:has(> img[src="/covers/alice-1865-20261111.jpg"]) {
  --scan-ratio: 413 / 640;
}
html .book-cover.uploaded-cover > img[src^="/covers/"] {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Match each scan's binding, independent of its position in the shelf. */
.book-display:has(img[src="/covers/alice-1865-20261111.jpg"]) {
  background: var(--color-display-rose);
}
.book-display:has(img[src="/covers/pride-1894-20261111.jpg"]) {
  background: var(--color-display-green);
}
.book-display:has(img[src="/covers/sherlock-1892-20261111.jpg"]) {
  background: var(--color-display-blue);
}
:root { --landing-reader-size:30px; --landing-reader-leading:1.5; }
/* Reserve the sample line while its small interactive module loads. */
.landing-passage:empty::before { content:"i love ai slop and bookslop is the best"; display:block; color:transparent; border-radius:4px; background:var(--color-surface-hover,var(--color-muted)); opacity:.25; }
.landing .book-cover.uploaded-cover { background:var(--color-surface); }
