/* ============================================================================
   Junifye — shared UI design system (ONE source of truth)
   A "fine press" surface: deep ink ground, warm gold accent, serif display.
   Every page links this first, then adds only page-specific rules. Do not fork
   the palette here into a template — change tokens HERE and the whole site
   follows. Served immutable at /_ui.css?v=<hash>.
   ========================================================================= */

/* ── Self-hosted core faces (the same woff2 served from /_fonts). Templates may
      re-declare these for the exotic scripts; the browser dedupes by URL. ── */
@font-face{font-family:"Crimson Pro";font-style:normal;font-weight:400;font-display:swap;src:url(/_fonts/CrimsonPro-Regular.woff2) format("woff2")}
@font-face{font-family:"Crimson Pro";font-style:italic;font-weight:400;font-display:swap;src:url(/_fonts/CrimsonPro-Italic.woff2) format("woff2")}
@font-face{font-family:"Crimson Pro";font-style:normal;font-weight:600;font-display:swap;src:url(/_fonts/CrimsonPro-SemiBold.woff2) format("woff2")}
@font-face{font-family:"Crimson Pro";font-style:normal;font-weight:700;font-display:swap;src:url(/_fonts/CrimsonPro-Bold.woff2) format("woff2")}
@font-face{font-family:"Crimson Pro";font-style:italic;font-weight:700;font-display:swap;src:url(/_fonts/CrimsonPro-BoldItalic.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:500;font-display:swap;src:url(/_fonts/CormorantGaramond-Medium.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:600;font-display:swap;src:url(/_fonts/CormorantGaramond-SemiBold.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:700;font-display:swap;src:url(/_fonts/CormorantGaramond-Bold.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:600;font-display:swap;src:url(/_fonts/CormorantGaramond-SemiBoldItalic.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url(/_fonts/Inter-Regular.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url(/_fonts/Inter-Medium.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url(/_fonts/Inter-SemiBold.woff2) format("woff2")}

:root{
  /* ── Ground & surfaces ── */
  --bg:#101216; --bg-2:#15181e; --panel:#1b1f27; --panel-2:#222732;
  --glass:rgba(23,27,35,.72);
  --line:#2b313c; --line-2:#363d4a; --edge:var(--gold);

  /* ── Ink ── */
  --text:#f1ece3; --muted:#9aa2b1; --faint:#6b7384;
  --link:#9ec1ff;

  /* ── Warm gold accent — the one brand colour. --accent is an alias of --gold
        so older rules that reach for --accent all land on gold. ── */
  --gold:#cfa978; --gold-2:#e7c9a0; --gold-3:#f3e3c4; --gold-deep:#a07d4e;
  --accent:#cfa978; --accent-2:#e7c9a0; --accent-3:#f3e3c4;
  --accent-soft:rgba(207,169,120,.16); --accent-line:rgba(207,169,120,.5);
  --deep:#a07d4e;

  /* ── Secondary identity: Darash (Bible source) reads in a calm scholarly
        blue, kept distinct from the gold so provenance is legible. ── */
  --darash:#8fb7e0; --junifye:var(--gold);

  /* ── Semantic status ── */
  --ok:#9be3b4; --warn:#f0c674; --danger:#f2a9a9; --bad:var(--danger);

  /* ── Book-status chips ── */
  --pub:#9be3b4;  --pub-bg:#16341f;
  --perm:#f0d9a6; --perm-bg:rgba(207,169,120,.16);
  --froz:#9cc2ec; --froz-bg:rgba(110,140,210,.14);
  --unl:#c9b48f;  --unl-bg:rgba(207,169,120,.14);

  /* ── Elevation ── */
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.7);
  --book-shadow:0 1px 1px rgba(0,0,0,.55), 0 16px 30px -14px rgba(0,0,0,.8);
  --book-shadow-hi:0 2px 4px rgba(0,0,0,.5), 0 34px 60px -18px rgba(0,0,0,.92);

  /* ── THE NEWSLETTER BOX (nor/anews) ──────────────────────────────────────
     anews ships theme-NEUTRAL: every colour in it routes through an --anews-*
     custom property with an inherit/currentColor fallback, so the box takes
     the host page's palette. These are that palette, written in terms of the
     tokens above so a change up there carries down here.

     JUNIFYE HAS ONE THEME. This file declares no light palette and no
     prefers-color-scheme block — every page is served data-theme="dark" on the
     deep ink ground — so there is one set of values here and no second copy to
     drift from it.

     THE ONE PAIR THE LIBRARY CANNOT GET RIGHT ALONE is the submit button: it
     defaults to #fff on --anews-accent, and our accent is the PALE warm gold
     #cfa978, where white is unreadable. So the label is the ink ground
     (--bg #101216) on gold, which measures 8.93:1 by the WCAG 2.x formula —
     far past AA for normal text. --anews-check-fg is the same pair on the same
     fill (the tick inside a checked pill sits on the accent) and defaults to
     #fff too, so it takes the same correction or the tick disappears.
     internal/web/news_test.go re-derives both ratios, so a future palette
     change cannot quietly drop one below 4.5. */
  --anews-fg:var(--text);
  --anews-heading-fg:var(--text);
  --anews-accent:var(--gold);
  --anews-border:var(--line);
  --anews-input-bg:var(--panel);
  --anews-submit-bg:var(--gold);
  --anews-submit-fg:var(--bg);
  --anews-check-fg:var(--bg);
  /* The accent wash this site already uses for a selected/active surface. */
  --anews-pill-checked-bg:var(--accent-soft);
  --anews-pill-hover-bg:rgba(207,169,120,.08);
  --anews-radius:var(--r-sm);
  --anews-max:820px;

  /* ── Radius & spacing scale ── */
  --r-sm:8px; --r:12px; --r-lg:16px; --r-pill:999px;
  --sp-1:.35rem; --sp-2:.6rem; --sp-3:1rem; --sp-4:1.5rem; --sp-5:2.25rem; --sp-6:3.5rem;

  /* ── Type ── */
  --scripts:"Noto Serif","Ezra SIL","Amiri","Vazirmatn","GFS Didot","Noto Serif Devanagari","Noto Serif Bengali","Noto Serif Tamil","Noto Serif Telugu","Noto Serif Kannada","Noto Serif Malayalam","Noto Serif Gujarati","Noto Sans Gurmukhi","Noto Serif Thai","Noto Serif Ethiopic","Noto Serif SC","Noto Serif TC","Noto Serif JP","Noto Serif KR";
  --ui:"Inter",var(--scripts),system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --serif:"Crimson Pro",var(--scripts),Georgia,"Times New Roman",serif;
  --display:"Cormorant Garamond",var(--scripts),Georgia,"Times New Roman",serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,"DejaVu Sans Mono",Consolas,monospace;

  /* Focus is a NEUTRAL light ring: gold is kept for the one primary button
     and the active menu item, not drawn around every field a reader clicks. */
  --focus-ring:#d6dbe3;
  --focus:0 0 0 2px var(--bg), 0 0 0 4px var(--focus-ring);

  /* ── Typographic placeholder cover tones (.jn-ph-0…3) — quiet dark panels,
        each a step away from the next so a row of them does not repeat. ── */
  --ph-0:#1e232c; --ph-1:#242337; --ph-2:#2a2620; --ph-3:#1b2b2c;
}

/* ── Base ── */
*{box-sizing:border-box}
html{font-size:18px;scroll-behavior:smooth}
body{
  margin:0; color:var(--text); font-family:var(--serif); overflow-x:hidden;
  line-height:1.6; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(207,169,120,.11), transparent 60%),
    radial-gradient(900px 480px at 95% 0%, rgba(110,140,210,.07), transparent 55%),
    var(--bg);
  background-attachment:fixed;
}
a{color:var(--link); text-decoration:none}
a:hover{text-decoration:underline}
::selection{background:rgba(207,169,120,.3); color:#fff}
.wrap{max-width:1260px; margin:0 auto; padding:0 1.25rem 5rem}

/* Per-language refinements for the most common non-Latin scripts (match the
   reader/PDF): the fallback chain prevents tofu, these pick the nicest face. */
:lang(he){font-family:"Ezra SIL",var(--serif)}
:lang(ar),:lang(ur){font-family:"Amiri",var(--serif)}
:lang(fa){font-family:"Vazirmatn","Amiri",var(--serif)}
:lang(el){font-family:"GFS Didot",var(--serif)}

/* Visible keyboard focus everywhere — never removed, only restyled. */
:focus-visible{outline:none; box-shadow:var(--focus); border-radius:var(--r-sm)}

/* ============================================================================
   Primitives — the shared vocabulary. Templates use these directly or extend
   them; a page should rarely need to restyle a button or card from scratch.
   ========================================================================= */

/* ── Buttons ── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  font-family:var(--ui); font-size:.9rem; font-weight:600; line-height:1;
  padding:.62em 1.1em; border-radius:var(--r-sm); border:1px solid var(--line-2);
  background:var(--panel-2); color:var(--text); cursor:pointer;
  text-decoration:none; white-space:nowrap; transition:border-color .15s, background .15s, transform .05s, color .15s;
}
.btn:hover{border-color:var(--muted); background:#272d38; text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.5; cursor:not-allowed; transform:none}
.btn-primary{
  background:linear-gradient(180deg,var(--gold-2),var(--gold));
  border-color:var(--gold-deep); color:#241a0c; font-weight:700;
  box-shadow:0 1px 0 rgba(255,255,255,.2) inset;
}
.btn-primary:hover{background:linear-gradient(180deg,var(--gold-3),var(--gold-2)); border-color:var(--gold); color:#241a0c}
.btn-ghost{background:transparent; border-color:var(--line)}
.btn-ghost{color:var(--text)}
.btn-ghost:hover{background:rgba(255,255,255,.05); border-color:var(--muted)}
.btn-danger:hover{border-color:var(--danger); background:rgba(242,169,169,.12); color:var(--danger)}
.btn-sm{font-size:0.9375rem; padding:.45em .8em}
/* A 44px-tall button for a page's main actions (touch target). */
.btn-lg{min-height:44px; font-size:1rem; padding:.7em 1.3em}

/* ── Card / panel ── */
.card{
  background:linear-gradient(180deg,var(--panel),var(--panel-2));
  border:1px solid var(--line); border-radius:var(--r-lg);
  padding:var(--sp-4); box-shadow:var(--shadow);
}
.card-hd{font-family:var(--display); font-weight:600; font-size:1.5rem; letter-spacing:.2px; margin:0 0 .2em}

/* ── Chip / pill ── */
.chip{
  display:inline-flex; align-items:center; gap:.4em;
  font-family:var(--ui); font-size:0.8125rem; font-weight:600; letter-spacing:.03em;
  padding:.28em .7em; border-radius:var(--r-pill);
  border:1px solid var(--line-2); background:var(--panel-2); color:var(--muted);
  text-transform:uppercase; white-space:nowrap;
}
.chip-gold{color:var(--perm); background:var(--perm-bg); border-color:rgba(207,169,120,.4)}
.chip-ok{color:var(--pub); background:var(--pub-bg); border-color:rgba(155,227,180,.35)}
.chip-froz{color:var(--froz); background:var(--froz-bg); border-color:rgba(110,140,210,.4)}
.chip-unl{color:var(--unl); background:var(--unl-bg); border-color:rgba(207,169,120,.35)}

/* ── Fields ── */
.field{display:block; margin:0 0 var(--sp-3)}
.field > label,.label{display:block; font-family:var(--ui); font-size:.78rem; font-weight:600;
  letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin:0 0 .4em}
.input,input[type=text],input[type=email],input[type=search],input[type=url],input[type=number],select,textarea{
  width:100%; font-family:var(--ui); font-size:.95rem; color:var(--text);
  background:var(--bg-2); border:1px solid var(--line-2); border-radius:var(--r-sm);
  padding:.6em .8em; transition:border-color .15s, box-shadow .15s;
}
/* A field at rest and a focused field keep their neutral border; the focus
   itself is the one :focus-visible ring below — no gold halo. */
.input:focus,input:focus,select:focus,textarea:focus{outline:none; border-color:var(--muted)}
.input::placeholder,input::placeholder,textarea::placeholder{color:var(--faint)}
.hint{font-family:var(--ui); font-size:0.9375rem; color:var(--faint); margin:.35em 0 0}

/* ── Flash / notice — one visual language for every transient message ── */
.flash,.notice{
  font-family:var(--ui); font-size:.9rem; line-height:1.5;
  padding:.75em 1em; border-radius:var(--r-sm);
  border:1px solid var(--line-2); border-left:3px solid var(--gold);
  background:var(--accent-soft); color:var(--text); margin:0 0 var(--sp-3);
}
.flash-ok,.notice-ok{border-left-color:var(--ok); background:rgba(155,227,180,.1)}
.flash-warn,.notice-warn{border-left-color:var(--warn); background:rgba(240,198,116,.1)}
.flash-danger,.flash-error,.notice-danger{border-left-color:var(--danger); background:rgba(242,169,169,.1)}

/* ── Empty state — a calm, centred literary placeholder ── */
.empty{
  text-align:center; padding:var(--sp-6) var(--sp-4); color:var(--muted);
  border:1px dashed var(--line-2); border-radius:var(--r-lg); background:rgba(0,0,0,.14);
}
.empty h2,.empty .empty-hd{font-family:var(--display); font-weight:600; color:var(--text); font-size:1.5rem; margin:0 0 .3em}
.empty p{margin:.3em auto; max-width:44ch}

/* ── Section label — the small gold eyebrow used above headings ── */
.eyebrow{font-family:var(--ui); font-size:0.8125rem; font-weight:600; letter-spacing:.18em;
  text-transform:uppercase; color:var(--gold); margin:0 0 .5em}

/* Reduced motion honoured globally. */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important}
}

/* afaq inherits Junifye's palette and typography on every public surface. */
:root{--lh-accent:var(--gold);--lh-line:var(--line);--lh-card:var(--panel);--ae-muted:var(--muted);--ae-font-sans:var(--ui);--lh-display:var(--display)}
.afaq{max-width:48rem;margin:2.5rem auto;padding-inline:1.25rem}
.afaq h1,.afaq h2{font-family:var(--display);color:var(--gold-3);line-height:1.2}
.afaq h1{font-size:clamp(2rem,5vw,3rem);font-weight:600}
.afaq h2{font-size:1.6rem;font-weight:600}
.faq-page{min-height:55vh;padding-block:1rem 3rem}

/* ============================================================================
   Shared page pieces (first used by the library at /; any page may take them)
   ========================================================================= */

/* ── The top bar's two kinds of pill (nav.go marks them). anav draws every
      pill with a gold outline; on Junifye gold is for the ONE accent button.
      jn-cta = that button (Connect your AI); jn-quiet = Sign in / Sign out. ── */
.anav .jn-cta{background:var(--gold); color:var(--bg); border-color:var(--gold); min-height:44px}
.anav .jn-cta:hover{background:var(--gold-2); border-color:var(--gold-2)}
.anav .jn-quiet{color:var(--text); border-color:var(--line-2); min-height:44px}
.anav .jn-quiet:hover{background:rgba(255,255,255,.06); border-color:var(--muted)}
.anav .anav-acct{min-height:44px; font-size:15px}
@media (min-width:861px){
  .anav .anav-link{display:inline-flex; align-items:center; min-height:44px}
}
/* A phone has room for the mark, the two pills and the menu button — not the
   brand words too, which otherwise shrink to one letter. The mark still links
   home. */
@media (max-width:520px){
  .anav .anav-brand > span:not(.anav-logo){display:none}
  .anav .jn-cta{display:none}
}
/* The Connect entry inside the phone menu (nav.go): only where the button is hidden. */
@media (min-width:521px){
  .anav .anav-list > li:has(> .jn-cta-menu){display:none}
}

/* ── Facts line — "135 titles · 36 languages · free to read online" ── */
.jn-facts{display:flex; flex-wrap:wrap; align-items:baseline; gap:.2rem 0; margin:0;
  font-family:var(--ui); font-size:.9375rem; line-height:1.5; color:var(--muted)}
.jn-facts > span + span::before{content:"·"; margin:0 .55rem; color:var(--faint)}
.jn-facts b{font-weight:600; color:var(--text)}

/* ── Quiet link row above the imprint line (nav.go linkRow) ── */
.jn-links{display:flex; flex-wrap:wrap; justify-content:center; gap:0 .2rem;
  max-width:1260px; margin:3rem auto 0; padding:.9rem 1.25rem 0; border-top:1px solid var(--line);
  font-family:var(--ui); font-size:.9375rem; line-height:1.5}
.jn-links a{display:inline-flex; align-items:center; min-height:44px; padding:0 .75rem; color:var(--muted); border-radius:var(--r-sm)}
.jn-links a:hover{color:var(--text); text-decoration:none}

/* ── Typographic placeholder cover — a book with no cover image: the title
      in the serif on a quiet dark panel, one thin gold rule, the author.
      .jn-ph-0…3 pick the panel tone (bookCard.CoverTone). Size it with the
      element it sits on (aspect-ratio, width). ── */
.jn-ph{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.65rem;
  text-align:center; padding:1.3rem .95rem; background:var(--ph-bg,var(--ph-0));
  border:1px solid var(--line); color:var(--text); text-decoration:none}
.jn-ph:hover{text-decoration:none}
.jn-ph-0{--ph-bg:var(--ph-0)} .jn-ph-1{--ph-bg:var(--ph-1)} .jn-ph-2{--ph-bg:var(--ph-2)} .jn-ph-3{--ph-bg:var(--ph-3)}
.jn-ph-title{font-family:var(--display); font-weight:600; font-size:1.4rem; line-height:1.15; color:var(--text);
  text-wrap:balance; overflow-wrap:anywhere;
  display:-webkit-box; -webkit-line-clamp:4; line-clamp:4; -webkit-box-orient:vertical; overflow:hidden}
.jn-ph-rule{flex:none; width:2rem; height:1px; background:var(--gold)}
.jn-ph-author{font-family:var(--serif); font-style:italic; font-size:.9375rem; line-height:1.35; color:var(--muted);
  display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.jn-ph .cover-logo{max-height:2.6rem; max-width:70%; width:auto; object-fit:contain}
.jn-ph .cover-mono{display:inline-flex; align-items:center; justify-content:center; width:2.3rem; height:2.3rem;
  border-radius:50%; border:1px solid var(--line-2); font-family:var(--display); font-weight:600; font-size:1rem; color:var(--muted)}

/* ── admin ── */
/* The operator pages: /admin, /admin/book/:id, /admin/vet, /admin/system.
   Every rule is scoped under body.adm, so no public page can pick one up.
   Same frame as the owner's "My Library" (/mine): calm masthead, panel cards,
   ui.css chips and buttons. Readable text is --text or --muted (never darker);
   every link and control is at least 44px tall. */
.adm{--adm-sale:#c9b8ff; --adm-sale-bg:rgba(167,139,250,.16); --adm-sale-line:rgba(167,139,250,.38);
  --adm-warn-bg:rgba(240,198,116,.13); --adm-warn-line:rgba(240,198,116,.38);
  --adm-row-hover:rgba(255,255,255,.025); --adm-cover-ph:linear-gradient(168deg,#fcf9f3 0%,#f4eee1 64%,#ece3d2 100%);
  font-family:var(--ui); line-height:1.55}
.adm .adm-wrap{max-width:1280px; margin:0 auto; padding:0 1.25rem 4rem}
.adm .sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
.adm .sep{color:var(--line-2); margin:0 .5em}
.adm .note{display:block; color:var(--muted); font-size:.9375rem; margin-top:.1rem}
.adm .btn{min-height:44px; font-size:.9375rem}
.adm .chips{display:flex; flex-wrap:wrap; gap:.35rem; margin:0}
.adm .chip{font-size:.8125rem; letter-spacing:.04em; text-transform:uppercase}
.adm .adm-chip-sale{color:var(--adm-sale); background:var(--adm-sale-bg); border-color:var(--adm-sale-line)}
.adm .adm-chip-warn{color:var(--warn); background:var(--adm-warn-bg); border-color:var(--adm-warn-line)}
.adm .adm-chip-quiet{background:transparent; color:var(--muted); border-color:var(--line-2)}

/* Header: the /mine masthead — h1, one fact line, a hairline under it. */
.adm .adm-head{margin:2rem 0 1.1rem; padding-bottom:.9rem; border-bottom:1px solid var(--line)}
.adm .adm-head h1{font-family:var(--display); font-weight:600; font-size:2.1rem; line-height:1.15; margin:0; color:var(--text)}
.adm .adm-sub{font-size:.9375rem; color:var(--muted); margin:.25rem 0 0}
.adm .adm-sub a{display:inline-flex; align-items:center; min-height:44px; color:var(--link)}

/* Status tabs. The active one is filled, not coloured: gold stays for the menu. */
.adm .adm-tabs{display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 1rem}
.adm .adm-tab{display:inline-flex; align-items:center; gap:.5rem; min-height:44px; padding:0 1rem;
  border:1px solid var(--line-2); border-radius:var(--r-pill); color:var(--muted); font-size:.9375rem; font-weight:500}
.adm .adm-tab:hover{color:var(--text); border-color:var(--muted); text-decoration:none}
.adm .adm-tab .n{font-variant-numeric:tabular-nums; color:var(--muted); font-weight:600}
.adm .adm-tab.is-active{background:var(--panel-2); border-color:var(--muted); color:var(--text); font-weight:600}
.adm .adm-tab.is-active .n{color:var(--text)}

/* Controls: one row, one height. */
.adm .adm-controls{display:flex; flex-wrap:wrap; align-items:center; gap:.6rem .8rem; margin:0 0 .6rem}
.adm .adm-search{position:relative; flex:1 1 18rem; min-width:13rem; max-width:28rem}
.adm .adm-search svg{position:absolute; left:.85rem; top:50%; transform:translateY(-50%); width:18px; height:18px; stroke:var(--muted); fill:none; pointer-events:none}
.adm .adm-search input{height:44px; padding:0 .9rem 0 2.5rem; background:var(--panel); font-size:.9375rem}
.adm .adm-field{display:flex; align-items:center; gap:.45rem}
.adm .adm-field label{font-size:.9375rem; color:var(--muted); white-space:nowrap}
.adm .adm-field select{width:auto; height:44px; padding:0 .7rem; background:var(--panel); font-size:.9375rem; cursor:pointer}
.adm .adm-count{font-size:.9375rem; color:var(--muted); margin:.2rem 0 .8rem}
.adm .adm-count b{color:var(--text); font-weight:600}
.adm .adm-count a{display:inline-flex; align-items:center; min-height:44px; margin-left:.6rem; color:var(--link)}

/* Tables: real <table>, quiet lines, one row per book. */
.adm .adm-table{width:100%; border-collapse:collapse; font-size:.9375rem}
.adm .adm-table th{text-align:left; font-weight:600; font-size:.8125rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted); padding:.5rem .7rem; border-bottom:1px solid var(--line-2); white-space:nowrap}
.adm .adm-table td{padding:.45rem .7rem; border-bottom:1px solid var(--line); vertical-align:middle}
.adm .adm-table tbody tr:hover{background:var(--adm-row-hover)}
.adm .adm-table a.t{display:inline-flex; align-items:center; min-height:44px; color:var(--text);
  font-family:var(--serif); font-size:1.06rem; font-weight:600; line-height:1.3}
.adm .adm-table a.t:hover{color:var(--link); text-decoration:none}
.adm .adm-table .c-lang{color:var(--muted); white-space:nowrap}
.adm .adm-table .c-lang img{width:14px; height:14px; border-radius:2px; vertical-align:-2px; margin-right:.45rem}
.adm .adm-list .c-cover{width:3rem; padding-right:0}
.adm .adm-list .thumb-link{display:block}
.adm .adm-list .thumb{display:block; width:2.1rem; height:3.05rem; border-radius:2px 3px 3px 2px; overflow:hidden;
  background:var(--panel-2); box-shadow:0 1px 2px rgba(0,0,0,.55)}
.adm .adm-list .thumb img{width:100%; height:100%; object-fit:cover; display:block}
.adm .adm-list .thumb.ph{display:flex; align-items:center; justify-content:center; background:var(--adm-cover-ph);
  color:#7a5f2f; font-family:var(--display); font-weight:700; font-size:.9375rem}
.adm .adm-list .thumb.ph img{object-fit:contain; padding:.25rem}
.adm .adm-list .c-title a.t{display:flex; align-items:flex-end; padding-top:.3rem}
.adm .adm-list .c-title .by{display:block; color:var(--muted); padding:.1rem 0 .3rem}
.adm .adm-list th.c-status{width:18rem}
@media (min-width:1021px){.adm .adm-list .c-status .chips{flex-wrap:nowrap}}
.adm .adm-list .c-open{text-align:right; white-space:nowrap}
.adm .adm-list th.c-open{text-align:right}
.adm .adm-list .c-open a{display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px;
  padding:0 .4rem; color:var(--link)}
.adm .adm-pager{display:flex; gap:.8rem; align-items:center; justify-content:center; margin-top:1.8rem; font-size:.9375rem; color:var(--muted)}
.adm .adm-pager a,.adm .adm-pager .off{display:inline-flex; align-items:center; min-height:44px; padding:0 1rem;
  border:1px solid var(--line-2); border-radius:10px; background:var(--panel); color:var(--text)}
.adm .adm-pager a:hover{border-color:var(--muted); text-decoration:none}
.adm .adm-pager .off{color:var(--muted); opacity:.5}
.adm .adm-empty{margin-top:1rem; padding:2.2rem; text-align:center; color:var(--muted);
  background:var(--panel); border:1px dashed var(--line-2); border-radius:14px}
.adm .adm-empty a{color:var(--link)}

/* Book page: breadcrumb, the /mine book header in small, short sections. */
.adm .adm-crumb{display:flex; flex-wrap:wrap; align-items:center; margin:1.2rem 0 .2rem; font-size:.9375rem; color:var(--muted)}
.adm .adm-crumb a{display:inline-flex; align-items:center; min-height:44px; color:var(--link)}
.adm .adm-crumb [aria-current]{color:var(--text)}
.adm .adm-bookhead{display:grid; grid-template-columns:7.5rem 1fr; gap:1.6rem; align-items:start;
  padding:.6rem 0 1.4rem; border-bottom:1px solid var(--line); margin-bottom:1.4rem}
.adm .adm-cover{aspect-ratio:1/1.46; border-radius:3px 5px 5px 3px; overflow:hidden; background:var(--panel-2); box-shadow:var(--book-shadow)}
.adm .adm-cover img{width:100%; height:100%; object-fit:cover; display:block}
.adm .adm-cover .ph{display:flex; width:100%; height:100%; align-items:center; justify-content:center; background:var(--adm-cover-ph);
  color:#7a5f2f; font-family:var(--display); font-weight:700; font-size:1.6rem}
.adm .adm-cover .ph img{object-fit:contain; padding:1rem}
.adm .adm-bookinfo h1{font-family:var(--display); font-weight:600; font-size:clamp(1.9rem,3.6vw,2.4rem); line-height:1.12;
  margin:0; color:var(--text); text-wrap:balance}
.adm .adm-subtitle{font-family:var(--display); font-style:italic; font-size:1.2rem; color:var(--text); margin:.25rem 0 0}
.adm .adm-byline{display:flex; flex-wrap:wrap; align-items:center; color:var(--muted); font-size:.9375rem; margin:.45rem 0 .7rem}
.adm .adm-byline .flag{width:14px; height:14px; border-radius:2px; margin-right:.4rem}
.adm .adm-sentence{font-size:1rem; color:var(--text); margin:.8rem 0 0; max-width:64ch}
.adm .adm-sec{background:var(--panel); border:1px solid var(--line); border-radius:var(--r); padding:1rem 1.3rem 1.15rem; margin:0 0 1rem}
.adm .adm-sec h2{font-family:var(--ui); font-size:1.05rem; font-weight:600; color:var(--text); margin:0 0 .7rem}
.adm .adm-lead{margin:0 0 .7rem; color:var(--text); font-size:.9375rem}
.adm .adm-open{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.7rem 1rem; align-items:flex-start}
.adm .adm-open li{display:flex; flex-direction:column; align-items:flex-start; max-width:15rem}
.adm .adm-open .note{font-size:.9375rem}
.adm .adm-dl{margin:0; display:grid; grid-template-columns:minmax(9rem,13rem) 1fr; font-size:.9375rem}
.adm .adm-dl > div{display:contents}
.adm .adm-dl dt{color:var(--muted); padding:.5rem 1rem .5rem 0; border-top:1px solid var(--line)}
.adm .adm-dl dd{margin:0; padding:.5rem 0; border-top:1px solid var(--line); color:var(--text)}
.adm .adm-dl > div:first-child dt,.adm .adm-dl > div:first-child dd{border-top:0}
.adm .adm-check{list-style:none; margin:0 0 1rem; padding:0; display:grid; gap:.35rem; font-size:.9375rem}
.adm .adm-check li{display:grid; grid-template-columns:5.6rem 1fr; gap:.8rem; align-items:baseline;
  padding:.45rem .7rem; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--bg-2)}
.adm .adm-check .mark{font-size:.8125rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase}
.adm .adm-check li.done .mark{color:var(--ok)}
.adm .adm-check li.miss{border-color:var(--adm-warn-line)}
.adm .adm-check li.miss .mark{color:var(--warn)}
.adm .adm-check .fix{display:block; color:var(--muted); margin-top:.15rem}
.adm .adm-subfold{margin:0 0 1rem}
.adm .adm-subfold > summary{display:flex; align-items:center; min-height:44px; cursor:pointer; color:var(--muted); font-size:.9375rem}
.adm .adm-subfold > summary:hover,.adm .adm-subfold[open] > summary{color:var(--text)}
.adm .adm-subfold .adm-check{margin-bottom:0}
.adm .adm-fold > summary::before,.adm .adm-subfold > summary::before{content:"▸"; margin-right:.55rem; color:var(--muted)}
.adm .adm-fold[open] > summary::before,.adm .adm-subfold[open] > summary::before{content:"▾"}
.adm .adm-fold > summary::-webkit-details-marker,.adm .adm-subfold > summary::-webkit-details-marker{display:none}
.adm .adm-eds .this{font-family:var(--serif); font-size:1.06rem; font-weight:600}
.adm .adm-eds .this + .note{display:inline; margin-left:.4rem}
.adm .adm-fold{border:1px solid var(--line); border-radius:var(--r); background:var(--panel); margin:0 0 1rem}
.adm .adm-fold > summary{display:flex; align-items:center; min-height:44px; padding:0 1.3rem; cursor:pointer; color:var(--muted); font-size:.9375rem}
.adm .adm-fold > summary:hover{color:var(--text)}
.adm .adm-fold[open] > summary{color:var(--text)}
.adm .adm-fold > .adm-dl{padding:0 1.3rem 1rem}
.adm .adm-ids code{font-family:var(--mono); font-size:.9375rem; color:var(--text); background:var(--bg-2);
  border:1px solid var(--line); border-radius:6px; padding:.1em .45em; user-select:all; word-break:break-all}

@media (max-width:1020px){
  .adm .adm-list th.c-status{width:auto}
  .adm .adm-list td,.adm .adm-list th{padding-left:.45rem; padding-right:.45rem}
  .adm .adm-list .c-open{white-space:normal; text-align:right; width:11rem}
  .adm .adm-list .c-open a{padding:0 .3rem}
}
@media (max-width:640px){
  .adm .adm-head{margin-top:1.4rem}
  .adm .adm-head h1{font-size:1.8rem}
  .adm .adm-list thead{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0)}
  .adm .adm-list,.adm .adm-list tbody{display:block}
  .adm .adm-list tr{display:grid; grid-template-columns:2.6rem 1fr; column-gap:.8rem; padding:.6rem 0; border-bottom:1px solid var(--line)}
  .adm .adm-list td{display:block; padding:0; border:0}
  .adm .adm-list .c-cover{grid-row:1 / span 4; width:auto}
  .adm .adm-list .c-open{text-align:left; white-space:normal; margin-left:-.4rem}
  .adm .adm-list .c-status{padding:.2rem 0}
  .adm .adm-bookhead{grid-template-columns:5.2rem 1fr; gap:1rem}
  .adm .adm-dl{grid-template-columns:1fr}
  .adm .adm-dl dt{padding-bottom:0}
  .adm .adm-dl dd{border-top:0; padding-top:.1rem}
  .adm .adm-check li{grid-template-columns:1fr; gap:.1rem}
  .adm .adm-sec{padding:.9rem 1rem}
}
