@font-face {
  font-family: Iosevka;
  src: url('/assets/fonts/Iosevka-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Iosevka;
  src: url('/assets/fonts/Iosevka-SemiBold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Iosevka;
  src: url('/assets/fonts/Iosevka-SemiBoldItalic.woff2') format('woff2');
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/CormorantGaramond.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --paper: #f5f3eb;
  --surface: #fffdf8;
  --surface-deep: #eeece2;
  --ink: #20352e;
  --muted: #616b60;
  --jade: #245646;
  --jade-dark: #153b32;
  --jade-light: #e7efe6;
  --gold: #b7a06b;
  --gold-light: #e9d9ab;
  --line: #dedfd3;
  --error: #963d32;
  --error-bg: #fbede7;
  --radius: 10px;
  --sidebar: 234px;
  --shadow: 0 12px 38px rgb(22 44 34 / 10%);
  font-family: Iosevka, 'Noto Sans CJK SC', 'Microsoft YaHei', 'Yu Gothic', monospace;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  accent-color: var(--jade);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scrollbar-gutter: stable; }
body { margin: 0; line-height: 1.6; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { border: 0; background: none; }
a { color: var(--jade); text-underline-offset: 4px; }
button, a, input, select { transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
:focus-visible { outline: 3px solid #97752e; outline-offset: 4px; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .55; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
form { margin: 0; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { line-height: 1.2; text-wrap: pretty; }
h1 { font-size: clamp(2rem, 3.2vw, 2.7rem); letter-spacing: -.05em; font-weight: 750; }
h2 { font-size: 1.2rem; letter-spacing: -.025em; font-weight: 750; }
h3 { font-size: 1.16rem; letter-spacing: -.02em; }
strong { font-weight: 750; }
input:not([type='checkbox'], [type='color'], [type='file']), select {
  width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #c8cdc0;
  background: var(--surface); border-radius: 7px; line-height: 1.4;
}
input::placeholder { color: #737b70; opacity: 1; }
input:hover, select:hover { border-color: #8c9e8d; }
input:focus, select:focus { border-color: var(--jade); }
input[type='number'] { appearance: textfield; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
input[type='number']::-webkit-inner-spin-button, input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type='search']::-webkit-search-cancel-button { cursor: pointer; }
label { display: block; font-size: .9rem; font-weight: 700; }
select { padding-right: 32px; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 20; padding: 12px 20px; background: var(--surface); border: 1px solid var(--jade); }
.skip-link:focus { top: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; padding: 11px 18px; border: 1px solid transparent; border-radius: 7px; text-decoration: none; font-weight: 750; font-size: .91rem; line-height: 1.4; white-space: nowrap; }
.button.primary { color: #fffdf7; background: var(--jade); border-color: var(--jade); }
.button.primary:hover:not(:disabled) { background: var(--jade-dark); border-color: var(--jade-dark); }
.button.secondary { background: var(--surface); border-color: #cbd0c3; color: var(--ink); }
.button.secondary:hover:not(:disabled) { background: #eaf0e6; border-color: #9eae9b; }
.button.quiet { color: var(--jade); padding-inline: 12px; }
.button.quiet:hover:not(:disabled) { background: var(--jade-light); }
.button.small { font-size: .85rem; padding: 8px 13px; min-height: 42px; }
.icon-button { width: 44px; height: 44px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-button:hover { background: var(--jade-light); }
.text-button { color: var(--jade); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; min-height: 44px; }
.muted, .field-hint, .section-footnote { color: var(--muted); }
.eyebrow { font-size: .68rem; font-weight: 800; letter-spacing: .16em; color: var(--jade); }
.notice { padding: 14px 17px; border: 1px solid #d5cfb7; border-radius: 7px; background: #f5efde; color: #615632; font-size: .9rem; margin-block: 16px; }
.notice.error { background: var(--error-bg); color: var(--error); border-color: #e5c2b9; }
.collector-status { margin-block: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: .92rem; overflow-wrap: anywhere; }
.collector-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
.collector-heading h2 { margin-top: 5px; font-size: 1.2rem; }
.collector-status[data-health="warning"] .collector-heading h2 { color: #8b4825; }
.collector-status > p { margin-top: 12px; }
.collector-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; margin-block: 20px; padding-block: 18px; border-block: 1px solid var(--line); }
.collector-counts dt, .collector-timing dt { color: var(--muted); font-size: .83rem; }
.collector-counts dd { margin: 4px 0 0; font-size: 1.6rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.collector-timing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-block: 18px; }
.collector-timing dd { margin: 4px 0 0; }
.collector-history { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.collector-history summary { cursor: pointer; color: var(--jade); font-weight: 700; }
.collector-history p { margin-top: 10px; color: var(--muted); }
@media (max-width: 600px) {
  .collector-status { padding: 16px; }
  .collector-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .collector-timing { grid-template-columns: minmax(0, 1fr); }
}
.error-text { color: var(--error); }
.form-message { font-size: .88rem; margin-top: 16px; }
.loading-line { color: var(--muted); font-size: .92rem; padding: 26px 0; }
.loading-line::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border: 2px solid #bbcabc; border-top-color: var(--jade); border-radius: 50%; animation: spin 900ms linear infinite; vertical-align: -1px; }
textarea { font: inherit; color: inherit; width: 100%; padding: 12px; border: 1px solid #c8cdc0; border-radius: 7px; background: var(--surface); resize: vertical; }
.review-dialog { width: min(760px, calc(100vw - 32px)); }
.review-entries { margin-top: 20px; }
.opinion-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 9px; }
.public-opinion { padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
#review-form legend { font-weight: 700; margin-bottom: 16px; }
#review-form .field + .field { margin-top: 14px; }
.work-actions { display: flex; flex-direction: column; gap: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-banner { position: sticky; top: 0; z-index: 15; min-height: 34px; padding: 7px 20px; background: var(--gold-light); color: #443d28; font-size: .77rem; font-weight: 800; text-align: center; line-height: 1.5; }
.demo-banner span { margin-left: 12px; font-weight: 500; }
body.is-demo { --demo-height: 34px; }
.app-shell { min-height: 100vh; }
.sidebar { width: var(--sidebar); position: fixed; top: var(--demo-height, 0px); bottom: 0; left: 0; background: var(--jade-dark); color: #dfebde; padding: 29px 18px 0; display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; gap: 11px; padding: 3px 9px; color: #f6efd9; text-decoration: none; }
.brand-mark { width: 38px; height: 45px; border: 1px solid #9f9166; display: grid; place-items: center; border-radius: 15px 15px 2px 2px; color: var(--gold-light); flex-shrink: 0; }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-wordmark { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.75rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.brand-wordmark > span { display: block; font-family: Iosevka, 'Noto Sans CJK SC', 'Microsoft YaHei', 'Yu Gothic', monospace; font-size: .48rem; letter-spacing: .18em; color: #b7c6af; margin-top: 9px; font-weight: 600; }
.sidebar-label { font-size: .59rem; letter-spacing: .15em; color: #a9bfaf; padding-left: 15px; margin: 47px 0 14px; font-weight: 800; }
.primary-nav { display: flex; flex-direction: column; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 49px; padding: 12px 14px; border-radius: 7px; color: #bdcfbf; text-decoration: none; font-weight: 650; font-size: .94rem; }
.nav-link:hover { background: #21473b; color: #fff8e5; }
.nav-link[aria-current='page'] { background: #2e5846; color: #fcf6e5; }
.nav-link[aria-current='page'] .icon { color: #d6c593; }
.nav-link .icon { width: 20px; height: 20px; }
.nav-count { margin-left: auto; font-size: .75rem; font-weight: 800; color: #e1d8b7; font-variant-numeric: tabular-nums; }
kbd { margin-left: auto; font-family: inherit; min-width: 21px; text-align: center; border: 1px solid #476455; border-radius: 4px; color: #acc0ae; font-size: .8rem; line-height: 1.7; }
.sidebar-bottom { margin-top: auto; }
.sidebar-landscape { height: 153px; margin: 28px -18px 0; background: url('/assets/landscape.webp') center 49% / cover; opacity: .8; border-block: 1px solid #496049; }
.discord-link { color: #d4ddc5; padding: 15px 10px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; font-size: .85rem; }
.discord-link .icon { width: 17px; height: 17px; }
.discord-link:hover { color: #fff8e3; }
.sidebar-account { margin: 0 -18px; padding: 18px 13px 20px 20px; border-top: 1px solid #355447; display: flex; align-items: center; gap: 10px; }
.account-initials { border: 1px solid #8f8c61; color: #efdfac; background: #284d3e; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; font-size: .77rem; font-weight: 700; flex-shrink: 0; }
.account-copy { min-width: 0; flex: 1; }
.account-copy strong, .account-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { color: #eee9d9; font-size: .8rem; }
.account-copy span { color: #adc2af; font-size: .7rem; }
.sidebar-account .icon-button { width: 30px; color: #bfceb7; }
.sidebar-account .icon-button:hover { background: #2a5040; }
.sidebar-account .icon { width: 17px; height: 17px; }
.sidebar :focus-visible { outline-color: var(--gold-light); }
.workspace { margin-left: var(--sidebar); }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 40px; border-bottom: 1px solid var(--line); }
.guild-name { font-size: .86rem; font-weight: 750; letter-spacing: -.01em; }
.connection-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; }
.status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #47795a; }
.mobile-account { display: none; }
main { padding: 37px 40px 0; max-width: 1450px; margin: 0 auto; }
main:focus { outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading .eyebrow { margin-bottom: 9px; }
.page-heading .button { align-self: center; }
.page-intro { color: var(--muted); font-size: .98rem; margin-top: 9px; }
.page-panel { min-height: calc(100vh - 207px); }
.stats-strip { display: grid; grid-template-columns: .85fr 1.65fr 1fr 1fr; padding: 18px 0 23px; margin-bottom: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-strip > div { padding: 0 23px; border-right: 1px solid var(--line); }
.stats-strip > div:first-child { padding-left: 0; }
.stats-strip > div:last-child { padding-right: 0; border-right: 0; }
.stats-strip dt { font-size: .76rem; color: var(--muted); margin-bottom: 5px; }
.stats-strip dd { margin: 0; font-size: 1.23rem; line-height: 1.3; font-weight: 800; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.stats-strip #stat-realm { font-size: 1.06rem; }
.stat-detail { font-size: .74rem; font-weight: 600; margin-left: 10px; color: var(--muted); white-space: nowrap; letter-spacing: 0; }
.current-read { border: 1px solid #cdd5c5; background: var(--surface); border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 1fr) 25%; overflow: hidden; margin-bottom: 34px; }
.current-content { padding: 25px 28px 23px; min-width: 0; }
.current-label { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; letter-spacing: .12em; }
.current-content h2 { font-size: clamp(1.5rem, 2.1vw, 1.85rem); font-weight: 750; margin-bottom: 5px; overflow-wrap: anywhere; letter-spacing: -.045em; }
.current-content > .muted { font-size: .83rem; }
.current-progress { margin-top: 14px; font-size: .8rem; color: var(--muted); }
.progress-track { display: block; width: 100%; max-width: 200px; height: 4px; overflow: hidden; appearance: none; border: 0; border-radius: 3px; background: #e1e5d8; margin-top: 9px; }
.progress-track::-webkit-progress-bar { background: #e1e5d8; border-radius: 3px; }
.progress-track::-webkit-progress-value { background: #52785b; border-radius: 3px; }
.progress-track::-moz-progress-bar { background: #52785b; border-radius: 3px; }
.current-progress .progress-track { max-width: 340px; }
.current-art { background: url('/assets/landscape.webp') 32% center / cover; border-left: 1px solid #bac7ad; min-height: 230px; }
.quick-controls { display: flex; align-items: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.quick-input label { font-size: .73rem; margin-bottom: 6px; }
.stepper { display: flex; align-items: stretch; border: 1px solid #bac7b6; border-radius: 7px; background: var(--surface); width: 164px; }
.stepper input[type='number'] { width: 100%; min-width: 0; padding: 9px 12px; min-height: 44px; border: 0; background: none; border-radius: 7px; font-weight: 750; }
.increment { min-width: 45px; min-height: 44px; font-size: .88rem; font-weight: 750; color: var(--jade); border-left: 1px solid #d7ddcf; }
.increment:hover { background: var(--jade-light); }
.quick-controls .button { min-height: 46px; }
.quick-controls .quiet { font-size: .79rem; padding-inline: 8px; }
.shelf-heading, .results-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.shelf-heading h2 { font-size: 1.24rem; }
.count-label { color: var(--muted); font-weight: 500; font-size: .82rem; margin-left: 9px; letter-spacing: 0; }
.shelf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.segmented { display: inline-flex; background: #e8eade; padding: 4px; gap: 3px; border-radius: 7px; flex-shrink: 0; }
.segmented button { min-height: 36px; padding: 7px 13px; font-size: .81rem; font-weight: 750; color: var(--muted); border: 1px solid transparent; border-radius: 5px; }
.segmented button[aria-pressed='true'] { color: var(--jade); background: var(--surface); border-color: #d9decf; box-shadow: 0 1px 2px rgb(33 55 34 / 4%); }
.segmented button:hover { color: var(--jade); }
.search-field { position: relative; display: flex; align-items: center; }
.search-field > .icon { position: absolute; left: 14px; color: #6b7c65; pointer-events: none; width: 19px; height: 19px; }
.search-field input[type='search'] { padding-left: 42px; }
.shelf-search { width: 256px; max-width: 40%; }
.shelf-search input[type='search'] { font-size: .83rem; min-height: 44px; }
.table-wrap { border-block: 1px solid var(--line); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: #687362; font-size: .69rem; font-weight: 750; letter-spacing: .05em; padding: 12px 16px; background: #eeeee4; }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { padding-right: 15px; }
td { padding: 18px 16px; border-top: 1px solid var(--line); vertical-align: middle; font-size: .87rem; }
tbody tr:first-child td { border-top: 0; }
tbody tr:hover { background: #f0f1e7; }
.library-table td:first-child { width: 43%; }
.library-table td:nth-child(2) { width: 27%; min-width: 162px; }
.library-table td:nth-child(3) { width: 17%; white-space: nowrap; }
.library-table td:last-child { text-align: right; }
.work-name { display: block; font-size: .99rem; line-height: 1.5; font-weight: 750; color: var(--ink); overflow-wrap: anywhere; }
.work-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; font-size: .74rem; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.work-id { font-size: .67rem; color: #6b7567; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.work-author { overflow-wrap: anywhere; }
.current-badge { display: inline-block; color: #356244; font-size: .65rem; font-weight: 800; background: #e0ead9; border: 1px solid #cddac4; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.progress-count { font-size: .88rem; font-variant-numeric: tabular-nums; font-weight: 750; white-space: nowrap; }
.progress-total { font-weight: 500; color: var(--muted); font-size: .77rem; }
.unknown-total { display: block; color: var(--muted); font-weight: 500; font-size: .73rem; margin-top: 2px; }
.status-label { display: inline-flex; font-size: .74rem; color: var(--muted); gap: 6px; align-items: center; }
.status-label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #8c987f; }
.status-label.finished { color: #3f6240; }
.status-label.finished::before { background: #497349; }
.publication-label { display: block; color: #697363; font-size: .69rem; margin-top: 4px; }
.result-count { color: var(--muted); font-size: .75rem; margin-top: 12px; }
.section-footnote { font-size: .76rem; line-height: 1.8; margin-top: 17px; }
.empty-state { border: 1px dashed #cbd1bf; border-radius: var(--radius); text-align: center; padding: 40px 24px; margin: 8px 0 20px; }
.empty-icon { width: 30px; height: 30px; color: #687c5d; margin-bottom: 15px; }
.empty-state h3 { margin-bottom: 9px; }
.empty-state p { color: var(--muted); font-size: .91rem; max-width: 390px; margin: 0 auto; }
.empty-state .button { margin-top: 19px; }
.catalogue-search { display: flex; gap: 10px; max-width: 800px; }
.catalogue-search .search-field { flex: 1; }
.catalogue-search input[type='search'] { min-height: 54px; font-size: 1.02rem; padding-left: 47px; }
.catalogue-search .search-field > .icon { left: 16px; width: 22px; height: 22px; }
.catalogue-search .button { padding-inline: 26px; }
.field-hint { margin-top: 7px; font-size: .79rem; line-height: 1.65; }
.results-heading { margin-top: 40px; padding-bottom: 16px; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.results-heading h2 { font-size: 1.15rem; }
.catalogue-results { padding: 0; margin: 0; list-style: none; }
.catalogue-result { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 17px; padding: 24px 6px; border-bottom: 1px solid var(--line); }
.catalogue-result > .icon { color: #7c8b70; height: 27px; width: 27px; }
.catalogue-result .work-name { font-size: 1.12rem; }
.catalogue-result .work-byline { font-size: .83rem; margin-top: 5px; }
.catalogue-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; color: var(--muted); font-size: .76rem; margin-top: 10px; }
.catalogue-meta a { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; }
.catalogue-meta .icon { height: 13px; width: 13px; }
.catalogue-meta .work-id { font-size: .72rem; }
.search-empty { border: 0; border-radius: 0; padding-block: 64px; border-bottom: 1px solid var(--line); }
.catalogue-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 32px; padding: 22px 24px; background: #ebece1; border-radius: 8px; }
.catalogue-foot strong { font-size: .9rem; }
.catalogue-foot p { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.leaderboard-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 35px 0 20px; gap: 20px; }
.inline-field { display: flex; align-items: center; gap: 12px; }
.inline-field label { white-space: nowrap; font-size: .78rem; color: var(--muted); }
.inline-field select { min-width: 168px; font-size: .86rem; }
.leaderboard-table td { padding-block: 23px; }
.leaderboard-table th:first-child { width: 70px; }
.leaderboard-table .reader-name { font-size: 1rem; font-weight: 750; }
.reader-identity { display: flex; align-items: center; gap: 13px; }
.reader-details { min-width: 0; }
.reader-avatar { position: relative; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #cfbc89; border-radius: 50%; overflow: hidden; background: #e8dcb8; color: #665226; font-size: .85rem; font-weight: 700; }
.reader-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reader-username { font-size: .8rem; font-style: italic; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.reader-title { font-size: .74rem; color: #796437; margin-top: 4px; }
.rank-number { display: grid; place-items: center; width: 30px; height: 34px; font-variant-numeric: tabular-nums; font-weight: 750; }
.rank-number.rank-1, .rank-number.rank-2, .rank-number.rank-3 { background: #e8dcb8; border: 1px solid #cfbc89; color: #665226; border-radius: 16px 16px 5px 5px; }
.rank-number.rank-2 { background: #e7e7db; border-color: #cecebd; color: #5e6455; }
.rank-number.rank-3 { background: #ebdfcd; border-color: #d3bfa1; color: #7d5939; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
td.numeric { font-weight: 750; }
.realm-name { font-size: .82rem; }
.level-label { display: block; color: var(--muted); font-size: .72rem; margin-top: 4px; }
.mobile-realm { display: none; }
.pagination { display: flex; justify-content: flex-end; gap: 17px; align-items: center; margin-top: 22px; }
.pagination > span { font-size: .81rem; color: var(--muted); min-width: 80px; text-align: center; }
.profile-summary { display: flex; align-items: center; gap: 18px; margin: 8px 0 28px; padding: 23px 26px; background: #e9ece0; border: 1px solid #d8dece; border-radius: 9px; }
.profile-monogram { display: grid; place-items: center; width: 61px; height: 61px; flex-shrink: 0; border: 1px solid #adb596; border-radius: 50%; color: var(--jade); background: #f0f0e3; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.9rem; font-weight: 600; }
.profile-summary h2 { font-size: 1.46rem; overflow-wrap: anywhere; }
.profile-summary p { font-size: .82rem; margin-top: 5px; }
.equipped-label { display: inline-block; font-size: .7rem; color: #715d2e; font-weight: 800; margin-bottom: 5px; }
.profile-tabs { display: flex; gap: 30px; border-bottom: 1px solid #cdd3c1; }
.profile-tabs button { padding: 14px 2px; min-height: 49px; font-size: .91rem; font-weight: 750; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.profile-tabs button[aria-selected='true'] { color: var(--jade); border-bottom-color: var(--jade); }
.settings-section { display: grid; grid-template-columns: minmax(180px, .72fr) minmax(0, 1.35fr); gap: 48px; padding-block: 33px 35px; border-bottom: 1px solid var(--line); }
.settings-description h2 { font-size: 1.04rem; margin-bottom: 12px; }
.settings-description p { font-size: .84rem; color: var(--muted); line-height: 1.85; max-width: 270px; }
.settings-description p + p { margin-top: 10px; }
.settings-form { max-width: 610px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field > label { margin-bottom: 7px; }
.field + .field, .settings-form .field + .form-grid, .settings-form .form-grid + .field { margin-top: 20px; }
.settings-form .field-hint + .form-grid { margin-top: 23px; }
.optional { color: var(--muted); font-size: .77rem; font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 15px; margin-top: 25px; }
.draft-label { margin-right: auto; color: #7e642e; font-size: .78rem; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.compact-section > div > .muted { font-size: .86rem; }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.preset { display: flex; align-items: center; gap: 8px; border: 1px solid #c9d0c0; border-radius: 6px; padding: 9px 13px; min-height: 44px; font-size: .83rem; background: var(--surface); font-weight: 650; }
.preset:hover { border-color: var(--jade); background: var(--jade-light); }
.swatch { width: 17px; height: 17px; border: 1px solid rgb(0 0 0 / 15%); border-radius: 50%; }
.swatch-jade { background: #69ccb0; }
.swatch-ink { background: #28483f; }
.swatch-mist { background: #c7dac9; }
.swatch-dawn { background: linear-gradient(135deg, #e9c687, #ae8469); }
.color-field { display: flex; align-items: center; gap: 8px; }
.color-field input[type='color'] { height: 45px; width: 45px; flex-shrink: 0; padding: 4px; border: 1px solid #c6cdbe; background: var(--surface); border-radius: 7px; cursor: pointer; }
.color-field input[type='text'] { font-variant-numeric: tabular-nums; font-size: .86rem; }
.background-sample { display: flex; gap: 15px; align-items: center; padding-bottom: 22px; }
.background-sample img { width: 113px; height: 73px; object-fit: cover; border: 1px solid #c6cdbb; border-radius: 6px; }
.background-sample strong { font-size: .87rem; }
.background-sample p { font-size: .79rem; color: var(--muted); margin-top: 3px; }
input[type='file'] { width: 100%; border: 1px dashed #b8c3ac; padding: 15px; border-radius: 7px; font-size: .8rem; background: #eeefe5; }
input[type='file']::file-selector-button { font: inherit; font-weight: 750; margin-right: 12px; border: 1px solid #bdc6b4; padding: 10px 12px; background: var(--surface); color: var(--jade); border-radius: 5px; cursor: pointer; }
.inline-confirm { margin-top: 17px; background: #efedde; padding: 15px; border-radius: 7px; }
.inline-confirm p { font-size: .87rem; margin-bottom: 13px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 43px; padding: 19px 0 24px; color: #6b7463; font-size: .67rem; }
.workspace-footer > span:first-child { font-weight: 750; }
dialog { border: 1px solid #cbd2c0; border-radius: 13px; background: var(--surface); color: var(--ink); padding: 28px; box-shadow: 0 28px 90px rgb(8 30 19 / 25%); max-width: calc(100vw - 32px); max-height: calc(100dvh - 40px); overflow-y: auto; }
dialog::backdrop { background: rgb(13 33 24 / 48%); }
.reading-dialog { width: 500px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: -7px -8px 13px 0; }
.reading-dialog h2 { font-size: 1.7rem; letter-spacing: -.035em; overflow-wrap: anywhere; }
.reading-dialog > .muted { font-size: .86rem; margin-top: 8px; }
.identity-reference { font-size: .65rem; margin: 6px 0 24px; color: var(--muted); overflow-wrap: anywhere; }
.dialog-stepper { width: 100%; margin-top: 8px; }
.dialog-stepper input[type='number'] { text-align: center; font-size: 1.42rem; min-height: 58px; }
.dialog-stepper .increment { min-width: 60px; }
.dialog-stepper .increment:first-child { border-left: 0; border-right: 1px solid #d7ddcf; }
.checkbox-field { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; font-size: .9rem; cursor: pointer; padding-block: 3px; }
.checkbox-field input { width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; }
.checkbox-field small { display: block; font-size: .79rem; font-weight: 500; color: var(--muted); margin-top: 5px; line-height: 1.7; }
.dialog-actions { margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.card-dialog { width: 1040px; }
.card-dialog .dialog-heading h2 { margin-top: 7px; font-size: 1.4rem; }
.rendered-card { width: 100%; height: auto; display: block; border-radius: 5px; border: 1px solid #a3af99; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 17px; }
.card-footer p { color: var(--muted); font-size: .79rem; }
.toast { position: fixed; bottom: 24px; left: calc(var(--sidebar) + (100% - var(--sidebar)) / 2); transform: translateX(-50%); z-index: 18; min-width: 260px; max-width: min(620px, calc(100vw - 32px)); padding: 11px 12px 11px 19px; display: flex; align-items: center; gap: 10px; background: var(--jade-dark); color: #fff8e8; border: 1px solid #638269; box-shadow: var(--shadow); border-radius: 8px; font-size: .88rem; }
.toast > .icon { color: #c6ddb3; }
.toast .icon-button { margin-left: auto; width: 34px; height: 34px; }
.toast .icon-button:hover { background: #315641; }
.gate { max-width: 1000px; margin: max(50px, 9vh) auto; display: grid; grid-template-columns: 38% 1fr; min-height: 510px; border: 1px solid #bdc9b5; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.gate-art { background: url('/assets/landscape.webp') 31% center / cover; }
.gate-content { padding: 48px; }
.gate-brand { display: block; font-weight: 800; text-decoration: none; font-size: .68rem; letter-spacing: .1em; color: #657653; margin-bottom: 54px; }
.gate-content > .eyebrow { margin-bottom: 12px; }
.gate h1 { font-size: 2.35rem; letter-spacing: -.045em; }
.gate-message { font-size: .99rem; line-height: 1.9; color: var(--muted); margin-top: 19px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.gate-foot { font-size: .78rem; line-height: 1.9; color: var(--muted); margin-top: 35px; }
.ticket-confirmation { margin-top: 24px; }
.ticket-confirmation h2 { font-size: 1.15rem; margin-bottom: 18px; }
.ticket-identity { padding: 15px 18px; border: 1px solid #c8d1bc; border-radius: 7px; background: #eef0e4; }
.ticket-identity > div + div { margin-top: 11px; }
.ticket-identity dt { color: var(--muted); font-size: .77rem; }
.ticket-identity dd { margin: 3px 0 0; font-weight: 600; font-size: .94rem; overflow-wrap: anywhere; }
.noscript { position: fixed; inset: auto 0 0; z-index: 30; padding: 20px; text-align: center; background: #f3dfb9; color: #40371f; }
@media (min-width: 1500px) {
  main { padding-top: 46px; padding-inline: 60px; }
  .topbar { padding-inline: 60px; }
  .current-content { padding: 29px 32px; }
  .current-art { background-position: 35% center; }
}
@media (max-width: 1180px) {
  :root { --sidebar: 215px; }
  main { padding-inline: 28px; }
  .topbar { padding-inline: 28px; }
  .brand { gap: 9px; padding-inline: 2px; }
  .brand-wordmark { font-size: 1.6rem; }
  .current-read { grid-template-columns: minmax(0, 1fr) 23%; }
  .current-content { padding: 22px; }
  .quick-controls .quiet { width: 100%; justify-content: flex-start; min-height: 30px; padding: 3px 0; }
  .stats-strip > div { padding-inline: 16px; }
  .stat-detail { display: block; margin-left: 0; margin-top: 4px; }
  .settings-section { gap: 27px; grid-template-columns: minmax(160px, .75fr) minmax(0, 1.5fr); }
  th, td { padding-inline: 10px; }
  .library-table td:first-child { width: 42%; }
}
@media (max-width: 960px) {
  :root { --sidebar: 190px; }
  .sidebar { padding-inline: 11px; }
  .sidebar-landscape { margin-inline: -11px; }
  .sidebar-account { margin-inline: -11px; padding-left: 14px; gap: 7px; }
  .brand-mark { width: 31px; height: 38px; }
  .brand-wordmark { font-size: 1.4rem; }
  .brand-wordmark > span { font-size: .43rem; letter-spacing: .12em; }
  .nav-link { font-size: .84rem; padding-inline: 12px; gap: 10px; }
  .sidebar-label { font-size: .54rem; padding-left: 12px; }
  main { padding-inline: 24px; }
  .topbar { padding-inline: 24px; }
  .page-heading { gap: 15px; }
  .page-heading .button { padding-inline: 13px; }
  .current-read { grid-template-columns: minmax(0, 1fr) 20%; }
  .current-content { padding: 23px; }
  .shelf-toolbar { flex-wrap: wrap; gap: 13px; }
  .shelf-search { width: 100%; max-width: none; }
  .settings-section { grid-template-columns: 1fr; gap: 22px; }
  .settings-description p { max-width: 560px; }
  .settings-description p + p { margin-top: 4px; }
  .realm-column { display: none; }
  .mobile-realm { display: block; margin-top: 4px; font-size: .72rem; color: var(--muted); }
  .library-table td:nth-child(2) { min-width: 135px; }
  .library-table td:nth-child(3) { display: none; }
  .library-table th:nth-child(3) { display: none; }
  .work-byline .mobile-status { display: inline; }
  .stats-strip dd { font-size: 1.1rem; }
  .stats-strip > div { padding-inline: 12px; }
  .stats-strip #stat-realm { font-size: .9rem; }
  .stats-strip dt { font-size: .72rem; }
  .gate { margin-inline: 24px; }
}

/* Integrated reading ratings and registered-reader discovery. */
.your-rating { margin-top: 12px; }
.rating-caption { display: block; color: var(--muted); font-size: .8rem; }
.rating-buttons, .star-options { display: flex; gap: 2px; flex-wrap: nowrap; }
.rating-star { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; font-size: 1.65rem; color: var(--jade); border-radius: 6px; }
.rating-star.is-filled { color: #86621e; }
.rating-star:hover:not(:disabled) { background: var(--jade-light); }
.star-picker { margin-block: 16px; }
.star-option { position: relative; display: grid; place-items: center; width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; color: var(--muted); }
.star-option input[type='radio'] { position: absolute; opacity: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; cursor: pointer; }
.star-option > span[aria-hidden] { font-size: 1.8rem; pointer-events: none; }
.star-option:has(input:checked), .star-option:has(~ .star-option input:checked) { background: var(--gold-light); color: #604718; border-color: #ae945b; }
.star-option:focus-within { outline: 3px solid #97752e; outline-offset: 3px; }
.star-picker:disabled .star-option { opacity: .55; cursor: not-allowed; }
#current-rating { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 18px; }
.reader-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 24px; }
.reader-card { display: flex; flex-direction: column; align-items: start; justify-content: space-between; gap: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
#reader-form { margin-top: 18px; }
#reader-form .search-field { min-width: 0; }
#reader-query { padding-left: 13px; }
.comparison-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.comparison-heading h2 { flex: 1 1 100%; overflow-wrap: anywhere; }
#common-entries .public-opinion { margin-block: 14px; overflow-wrap: anywhere; }
#common-entries .public-opinion > p { margin-top: 10px; }
.shelf-heading { flex-wrap: wrap; gap: 12px; }
.shelf-heading > div { display: flex; flex-wrap: wrap; gap: 6px; }
.reader-details > .button { margin-top: 10px; white-space: normal; text-align: left; }
@media (max-width: 760px) {
  .primary-nav { grid-template-columns: repeat(5, 1fr); }
  .nav-link { font-size: .61rem; text-align: center; line-height: 1.25; min-width: 0; }
}
@media (max-width: 560px) {
  #reader-form { flex-wrap: wrap; }
  #reader-form .search-field { flex-basis: 100%; }
  .reader-card .button { white-space: normal; }
  .leaderboard-table .reader-identity { align-items: start; }
  .leaderboard-table .reader-avatar { display: none; }
  .review-dialog .dialog-actions { flex-wrap: wrap; }
}

@media (min-width: 961px) { .mobile-status { display: none; } }
@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .button.small { min-height: 44px; }
  .catalogue-meta a { min-height: 44px; }
  .sidebar { top: auto; bottom: 0; width: 100%; padding: 0 8px env(safe-area-inset-bottom, 0px); height: auto; background: var(--surface); border-top: 1px solid #cbd2bf; }
  .brand, .sidebar-label, .sidebar-bottom, .nav-count, .nav-link kbd { display: none; }
  .primary-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
  .nav-link { flex-direction: column; min-height: 66px; gap: 3px; justify-content: center; border-radius: 0; padding: 10px 5px 7px; color: #63765c; font-size: .66rem; border-top: 2px solid transparent; margin-top: -1px; }
  .nav-link .icon { width: 21px; height: 21px; }
  .nav-link[aria-current='page'] { color: var(--jade-dark); background: #eaf0e4; border-color: var(--jade); }
  .nav-link[aria-current='page'] .icon { color: var(--jade); }
  .nav-link:hover { color: var(--jade); background: #eaf0e4; }
  .sidebar :focus-visible { outline-color: #97752e; outline-offset: -4px; }
  .workspace { margin: 0; }
  .topbar { height: 60px; padding: 0 24px; gap: 10px; }
  .guild-name { font-size: .8rem; }
  .connection-label { display: none; }
  .mobile-account { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; }
  main { padding: 29px 24px 0; }
  .page-panel { min-height: calc(100dvh - 276px); }
  .page-heading { align-items: flex-end; }
  h1 { font-size: 2.14rem; }
  .page-heading .eyebrow { font-size: .61rem; }
  .page-heading .button { font-size: .82rem; padding: 10px 13px; }
  .page-heading .button .icon { height: 18px; width: 18px; }
  .page-intro { font-size: .9rem; }
  .current-read { grid-template-columns: minmax(0, 1fr) 25%; }
  .current-content { padding: 23px; }
  .current-content h2 { font-size: 1.6rem; }
  .quick-controls .quiet { width: auto; min-height: 44px; padding-inline: 4px; }
  .stats-strip { grid-template-columns: .85fr 1.35fr 1fr 1fr; }
  .stats-strip > div { padding-inline: 13px; }
  .shelf-toolbar { flex-wrap: nowrap; }
  .shelf-search { max-width: 40%; }
  .segmented button { min-height: 44px; }
  .leaderboard-table .realm-column { display: table-cell; }
  .leaderboard-table .mobile-realm { display: none; }
  .settings-section { grid-template-columns: .78fr 1.35fr; gap: 25px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .workspace-footer { margin-top: 34px; padding-bottom: 21px; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); left: 50%; }
  .gate { margin: 28px 22px; grid-template-columns: 1fr; min-height: 0; }
  .gate-art { height: 150px; background-position: center 44%; }
  .gate-content { padding: 32px; }
  .gate-brand { margin-bottom: 32px; }
  .gate h1 { font-size: 2rem; }
}
@media (max-width: 560px) {
  input, select { font-size: 16px !important; }
  .demo-banner { padding: 6px 10px; font-size: .67rem; }
  .demo-banner span { margin-left: 6px; }
  .topbar { padding-inline: 18px; }
  main { padding: 25px 18px 0; }
  .page-heading { gap: 16px; flex-wrap: wrap; margin-bottom: 23px; }
  .page-heading .button { align-self: auto; }
  #library-panel .page-heading { flex-wrap: nowrap; gap: 10px; }
  #library-panel .page-heading .button { font-size: .77rem; padding-inline: 10px; margin-top: 12px; }
  #library-panel .page-heading .button .icon { display: none; }
  #library-panel .page-intro { font-size: .8rem; }
  h1 { font-size: 1.95rem; }
  .stats-strip { grid-template-columns: 1fr 1.45fr; padding: 0; margin-bottom: 22px; }
  .stats-strip > div { padding: 13px 12px 14px 0; }
  .stats-strip > div:nth-child(2n) { padding-left: 18px; padding-right: 0; border-right: 0; }
  .stats-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats-strip dd { font-size: 1.19rem; }
  .stats-strip #stat-realm { font-size: .99rem; }
  .stat-detail { display: inline-block; margin-left: 7px; }
  .current-read { display: flex; flex-direction: column-reverse; margin-bottom: 27px; }
  .current-art { min-height: 0; height: 83px; border-left: 0; border-bottom: 1px solid #bac7ad; background-position: center 41%; }
  .current-content { padding: 20px; }
  .current-content h2 { font-size: 1.52rem; }
  .current-label { margin-bottom: 10px; }
  .quick-controls { column-gap: 10px; row-gap: 3px; }
  .quick-input { flex: 1; min-width: 120px; }
  .stepper { width: 100%; }
  .quick-controls .primary { font-size: .84rem; padding-inline: 13px; }
  .quick-controls .quiet { width: 100%; justify-content: flex-start; min-height: 44px; padding: 9px 0 0; }
  .shelf-toolbar { flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; min-height: 44px; padding-inline: 8px; }
  .shelf-search { max-width: none; }
  .shelf-heading { margin-bottom: 11px; }
  .shelf-heading h2 { font-size: 1.14rem; }
  .count-label { font-size: .75rem; }
  .library-table thead { display: none; }
  .library-table tbody { display: block; }
  .library-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 18px 0; gap: 12px 16px; border-bottom: 1px solid var(--line); }
  .library-table tr:last-child { border-bottom: 0; }
  .library-table td { padding: 0; border: 0; min-width: 0; }
  .library-table td:first-child { grid-column: 1 / -1; width: auto; padding: 0; }
  .library-table td:nth-child(2) { width: auto; min-width: 0; }
  .library-table td:last-child { padding: 0; display: flex; align-items: center; }
  .library-table td .button { min-height: 44px; font-size: .8rem; padding-inline: 20px; }
  .work-name { font-size: 1.02rem; }
  .work-byline { font-size: .77rem; }
  .progress-track { max-width: 180px; }
  .empty-state { padding: 31px 18px; }
  .empty-state h3 { font-size: 1.08rem; }
  .catalogue-search { gap: 8px; }
  .catalogue-search .button { padding-inline: 16px; }
  .catalogue-search input[type='search'] { font-size: .86rem; min-height: 49px; padding-left: 38px; }
  .catalogue-search .search-field > .icon { width: 18px; left: 12px; }
  .results-heading { margin-top: 30px; align-items: baseline; }
  .results-heading h2 { font-size: 1.05rem; }
  .catalogue-result { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 21px 0; align-items: start; }
  .catalogue-result > .icon { display: none; }
  .catalogue-result .work-name { font-size: 1.03rem; }
  .catalogue-result .work-byline { font-size: .79rem; }
  .catalogue-meta { gap: 5px 11px; font-size: .72rem; }
  .catalogue-result .button { padding-inline: 12px; font-size: .79rem; }
  .catalogue-result .button .icon { display: none; }
  .catalogue-foot { flex-direction: column; align-items: flex-start; padding: 20px; gap: 15px; }
  .catalogue-foot .button { min-height: 44px; }
  .leaderboard-toolbar { flex-wrap: wrap; gap: 12px; margin-top: 27px; }
  .leaderboard-toolbar > p { font-size: .83rem; }
  .inline-field { margin-left: auto; }
  .inline-field select { min-width: 142px; }
  .inline-field label { display: none; }
  .leaderboard-table .realm-column { display: none; }
  .leaderboard-table .mobile-realm { display: block; }
  .leaderboard-table .metric-xp, .leaderboard-table .metric-chapters, .leaderboard-table .metric-finished { display: none; }
  .leaderboard-table[data-sort='exp'] .metric-xp, .leaderboard-table[data-sort='chapters'] .metric-chapters, .leaderboard-table[data-sort='finished'] .metric-finished { display: table-cell; }
  .leaderboard-table th { font-size: .66rem; }
  .leaderboard-table th:first-child { width: 44px; padding-left: 3px; }
  .leaderboard-table td { padding: 20px 9px; }
  .leaderboard-table td:first-child { padding-left: 2px; }
  .leaderboard-table td:last-child, .leaderboard-table th:last-child { padding-right: 3px; }
  .reader-identity { gap: 9px; }
  .reader-avatar { flex-basis: 36px; width: 36px; height: 36px; }
  .leaderboard-table .reader-name { font-size: .93rem; overflow-wrap: anywhere; }
  .leaderboard-table .numeric { white-space: nowrap; }
  .rank-number { width: 28px; }
  .pagination { justify-content: space-between; gap: 8px; }
  .pagination .button { min-height: 44px; }
  .profile-summary { padding: 19px; margin-bottom: 20px; gap: 13px; }
  .profile-summary h2 { font-size: 1.25rem; }
  .profile-monogram { width: 51px; height: 51px; font-size: 1.6rem; }
  .profile-tabs { gap: 27px; }
  .profile-tabs button { font-size: .86rem; }
  .settings-section { grid-template-columns: 1fr; gap: 23px; padding-block: 27px; }
  .settings-description p { font-size: .85rem; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .form-grid #country { font-size: .86rem; }
  .field label { font-size: .85rem; }
  .optional { font-size: .7rem; }
  .preset { padding-inline: 10px; font-size: .8rem; gap: 7px; }
  .color-field { gap: 6px; }
  .color-field input[type='text'] { padding-inline: 8px; font-size: .81rem; }
  .color-field input[type='color'] { width: 38px; }
  .form-actions .button { padding-inline: 14px; font-size: .84rem; }
  .draft-label { font-size: .73rem; }
  .workspace-footer { font-size: .62rem; gap: 12px; }
  dialog { padding: 23px; max-width: calc(100vw - 22px); max-height: calc(100dvh - 24px); }
  .reading-dialog { margin: auto; }
  .reading-dialog h2 { font-size: 1.5rem; }
  .dialog-actions .button { flex: 1; }
  .card-footer { flex-direction: column; align-items: flex-start; gap: 13px; }
  .toast { font-size: .82rem; min-width: 0; width: calc(100% - 28px); padding-left: 14px; }
  .gate-content { padding: 28px; }
  .gate { margin-inline: 15px; }
  .gate-actions { flex-direction: column; }
  .gate-actions .button { width: 100%; }
}
@media (max-height: 720px) and (min-width: 761px) { .sidebar-landscape { height: 86px; } .sidebar-label { margin-top: 29px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .sidebar, .topbar, .button, .workspace-footer, .toast, .demo-banner { display: none !important; } .workspace { margin: 0; } main { padding: 0; } body { background: white; } }
