/* The Inkhorn Manager: the book team's tool, in the app's style. Light, neutral, Schibsted Grotesk,
   Inkhorn's teal, gold and cream as accents, rounded pills and cards, the site's own controls throughout.
   The approved prototype's styles (November 10, 2026), with what the real manager adds at the end. */
@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/schibsted-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/schibsted-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/schibsted-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/schibsted-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/schibsted-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --teal: #073C4D; --teal-hover: #0B4F66; --teal-tint: #E7EFF1;
  --gold: #DFA14C; --gold-text: #875812; --gold-tint: #FBF2E4;
  --cream: #F4EFE6; --cream-2: #FAF8F3;
  --paper: #F4F4F4; --paper-2: #EBEBEB; --card: #FFFFFF;
  --ink: #111111; --ink-2: #5C5C5C; --ink-3: #7A7A7A;
  --line: rgba(17,17,17,.08); --line-2: rgba(17,17,17,.14);
  --danger: #B42318; --danger-tint: #FDECEA;
  --side: 264px;
  --gap: 20px; /* the one space between cards, across and down (Gift, November 10) */
  --shadow-card: 0 1px 2px rgba(0,0,0,.04);
  --shadow-pop: 0 20px 60px -20px rgba(10,30,40,.35), 0 2px 8px rgba(0,0,0,.06);
  --shadow-book: 0 1px 1px rgba(0,0,0,.08), 0 10px 22px -8px rgba(0,0,0,.32), 0 2px 6px -2px rgba(0,0,0,.16);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- the sample-data note (the mock build only) ---------- */
.note { background: var(--gold-tint); color: var(--gold-text); font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 16px; text-align: center; flex-wrap: wrap; position: relative; z-index: 45; }
.note button { white-space: nowrap; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--gold-text); }

/* ---------- the shell: sidebar, rail, phone tab bar ---------- */
.shell { min-height: 100vh; }
.side { position: fixed; top: 0; bottom: 0; left: 0; width: var(--side); padding: 20px 14px 16px; display: flex; flex-direction: column; gap: 6px; z-index: 40; }
.has-note .side { top: var(--note-h, 37px); }
.side__brand { display: flex; align-items: center; gap: 10px; padding: 6px 12px 18px; }
.side__brand img { height: 23px; width: auto; }
.side__brand .logo-mark { display: none; }
/* The tag centres on the wordmark's lowercase letters rather than on the logo's box, which also holds the quill and
   the tall letters (Gift, November 10). In logo.svg the letters run from 180 to 391 of 445 units, so their middle is
   14.2% of the logo's height below the box's middle. text-box centres the capitals inside the pill. */
.side__tag { font-size: 11.5px; line-height: 1; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); background: var(--gold-tint); padding: 6px 9px; border-radius: 999px; text-box: trim-both cap alphabetic; transform: translateY(calc(23px * .142)); }
.side__nav { display: flex; flex-direction: column; gap: 2px; }
.side__nav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s; }
.side__nav a:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.side__nav a.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 16px -10px rgba(0,0,0,.25); }
.side__nav a.is-on .icon { color: var(--teal); }
.side__nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 22px; background: var(--gold); color: #1B1408; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.side__label { display: inline; }
.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.side__store { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.side__store:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.me { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-card); text-align: left; }
.me:hover { box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 18px -12px rgba(0,0,0,.3); }
.me__t { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.me__s { font-size: 12.5px; color: var(--ink-2); }
.me .grow { flex: 1; min-width: 0; }
.avatar { width: 36px; height: 36px; border-radius: 36px; background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.avatar--soft { background: var(--cream); color: var(--teal); }
.avatar--lg { width: 56px; height: 56px; font-size: 20px; }
.main { margin-left: var(--side); padding: 28px 40px 96px; min-height: 100vh; }
.page { max-width: 1180px; margin: 0 auto; }
.topbar { display: none; }
.tabbar { display: none; }

@media (max-width: 1099px) {
  :root { --side: 88px; }
  .side { padding: 16px 8px; align-items: center; }
  .side__brand { padding: 4px 0 14px; }
  .side__brand .logo-full { display: none; }
  .side__brand .logo-mark { display: block; height: 36px; width: 36px; border-radius: 10px; }
  .side__tag, .side__store span, .me .grow, .me .icon { display: none; }
  .side__nav a { flex-direction: column; justify-content: center; gap: 3px; width: 72px; height: 60px; padding: 0; border-radius: 18px; font-size: 11.5px; position: relative; }
  .side__nav .count { position: absolute; top: 4px; right: 8px; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
  .side__store { justify-content: center; width: 52px; padding: 0; }
  .me { width: auto; padding: 4px; border-radius: 40px; }
  .main { padding: 24px 28px 96px; }
}
@media (max-width: 759px) {
  .side { display: none; }
  .main { margin-left: 0; padding: 0 18px 120px; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; height: 58px; margin: 0 -18px 4px; padding: 0 18px; background: rgba(244,244,244,.9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
  .topbar img { height: 21px; width: auto; }
  .tabbar { display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50; width: min(440px, calc(100% - 24px)); padding: 6px; border-radius: 999px; background: rgba(252,252,252,.72); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 0 .5px rgba(0,0,0,.1), 0 14px 34px -14px rgba(0,0,0,.35); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 54px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); position: relative; }
  .tabbar .is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
  .tabbar .is-on .icon { color: var(--teal); }
  .tabbar .count { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 17px; background: var(--gold); color: #1B1408; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
}

/* ---------- page heads ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 8px 0 24px; }
.head h1 { margin: 0; font-size: 34px; line-height: 1.04; font-weight: 760; letter-spacing: -.035em; }
.head p { margin: 6px 0 0; color: var(--ink-2); }
.head__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 6px 0 10px; }
.back:hover { color: var(--ink); }
@media (max-width: 759px) { .head { padding: 10px 0 18px; } .head h1 { font-size: 28px; } }

/* ---------- buttons, chips, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .15s, transform .1s, border-color .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-hover); }
.btn--secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--secondary:hover { background: var(--cream-2); }
.btn--quiet { color: var(--teal); padding: 0 12px; }
.btn--quiet:hover { background: var(--teal-tint); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger-quiet { color: var(--danger); padding: 0 12px; }
.btn--danger-quiet:hover { background: var(--danger-tint); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; gap: 6px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.iconbtn { width: 36px; height: 36px; border-radius: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); flex: none; }
.iconbtn:hover { background: var(--paper); color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.chip:hover { color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--paper); color: var(--ink-2); white-space: nowrap; }
.tag .icon { width: 13px; height: 13px; }
.tag--live { background: var(--teal-tint); color: var(--teal); }
.tag--gold { background: var(--gold-tint); color: var(--gold-text); }
.tag--danger { background: var(--danger-tint); color: var(--danger); }
.dot { width: 7px; height: 7px; border-radius: 7px; background: currentColor; }
.link { color: var(--teal); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.seg { display: inline-flex; padding: 4px; background: var(--paper-2); border-radius: 999px; flex: none; }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg button.is-on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg--block { display: flex; width: 100%; }
.seg--block button { flex: 1 1 0; min-width: 0; }
@media (max-width: 559px) {
  .seg--block { border-radius: 16px; }
  .seg--block button { white-space: normal; height: auto; min-height: 40px; padding: 6px 10px; line-height: 1.25; border-radius: 12px; }
}
.switch { position: relative; width: 46px; height: 28px; border-radius: 28px; background: var(--paper-2); transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 22px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--teal); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.check { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-2); display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; color: #fff; }
.check .icon { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; }
[aria-checked="true"] > .check, .check.is-on { background: var(--teal); box-shadow: none; }
[aria-checked="true"] > .check .icon, .check.is-on .icon { opacity: 1; }

/* ---------- cards, rows, tables ---------- */
.card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(0,0,0,.04); padding: 22px 24px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card__head h2 { margin: 0; font-size: 19px; font-weight: 690; letter-spacing: -.01em; }
.card__head p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.card + .card, .stack > * + * { margin-top: var(--gap); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.grid2 > .card + .card { margin-top: 0; }
@media (max-width: 1099px) { .grid2 { grid-template-columns: minmax(0, 1fr); } .grid2 > * + * { margin-top: 0; } }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.tools .grow { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); min-width: 220px; }
.search input { border: 0; outline: 0; background: none; flex: 1; width: 0; min-width: 0; font-size: 14.5px; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--teal), 0 0 0 4px var(--teal-tint); }
.search .icon { color: var(--ink-3); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14.5px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr.is-link { cursor: pointer; }
.tbl tbody tr.is-link:hover { background: var(--cream-2); }
.tbl .r { text-align: right; }
.tbl td:first-child, .tbl th:first-child { padding-left: 4px; }
.tbl td .hint { overflow-wrap: break-word; }
.book { display: flex; align-items: center; gap: 12px; min-width: 0; }
.book img { width: 36px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; box-shadow: 0 4px 10px -6px rgba(0,0,0,.45); flex: none; background: var(--cream); }
.book__t { font-weight: 600; line-height: 1.3; }
.book__s { font-size: 13px; color: var(--ink-2); }
.covers { display: flex; }
.covers img { width: 26px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; outline: 1.5px solid #fff; margin-right: -8px; box-shadow: 0 3px 8px -4px rgba(0,0,0,.5); }
.fmt { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.fmt .icon { width: 15px; height: 15px; }
.fmts { display: flex; flex-direction: column; gap: 2px; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.empty .icon { width: 28px; height: 28px; color: var(--ink-3); margin: 0 auto 10px; }
.empty h3 { margin: 0 0 4px; color: var(--ink); font-size: 18px; }
@media (max-width: 759px) {
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { padding: 12px 4px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td { padding: 0; border: 0; }
  .tbl td.hide-sm { display: none; }
  .tbl td.r { text-align: right; }
  .tbl td.full { grid-column: 1 / -1; }
  .tbl td.c1-sm { grid-row: 1; grid-column: 1; }
  .tbl td.c2-sm { grid-row: 1; grid-column: 2; }
  .tbl td.row2-sm { grid-row: 2; grid-column: 1 / -1; }
  .card { padding: 18px; border-radius: 20px; }
  .search { min-width: 0; flex: 1; }
}

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field + .field { margin-top: 16px; }
.field label, .field__label { font-size: 14px; font-weight: 600; }
.field .hint { margin-top: -2px; }
.hint { font-size: 13.5px; color: var(--ink-2); }
.input { height: 46px; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); background: #fff; padding: 0 14px; font-size: 15.5px; outline: none; width: 100%; transition: box-shadow .15s; }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--teal), 0 0 0 4px var(--teal-tint); }
textarea.input { height: 120px; padding: 12px 14px; resize: none; line-height: 1.5; }
.money { position: relative; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-weight: 500; }
.money .input { padding-left: 28px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 559px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.toggle { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.toggle:first-child { border-top: 0; padding-top: 4px; }
.toggle .grow { flex: 1; min-width: 0; }
.toggle__t { font-weight: 600; }
.toggle__s { font-size: 13.5px; color: var(--ink-2); }
/* the ebook and audiobook together: worked out from the two prices (Gift, November 10) */
.together .toggle__s { max-width: 460px; }
.together__p { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 130px; text-align: right; }
.together__p strong { font-size: 17px; }
.together__p small { font-size: 13px; color: var(--teal); font-weight: 600; }
/* discounts (Gift, November 10) */
.code { font-weight: 700; letter-spacing: .04em; font-size: 14.5px; }
.code--sm { font-size: 13px; padding: 2px 7px; border-radius: 6px; background: var(--paper); }
.tex-list { display: flex; flex-direction: column; }
.tex { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); }
.tex img { width: 30px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; }
.tex__t { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tex__s { display: block; font-size: 13px; color: var(--ink-2); }
.tex__p { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.tex__p strong { font-size: 15.5px; }
.tex__p small { font-size: 12.5px; color: var(--teal); font-weight: 600; }
.money--pct span { left: auto; right: 14px; }
.money--pct .input { padding-left: 14px; padding-right: 30px; }
.codeform { display: flex; flex-direction: column; gap: 16px; }
.codeform .field + .field { margin-top: 0; }
.input--code { text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.checklist { max-height: 260px; overflow: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-2); padding: 6px; margin-top: -6px; }
.checkrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 10px; text-align: left; font-size: 14px; }
.checkrow:hover { background: var(--paper); }
.checkrow img { width: 22px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; }
.checkrow .check { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-2); display: flex; align-items: center; justify-content: center; color: transparent; flex: none; }
.checkrow .check .icon { width: 14px; height: 14px; }
.checkrow[aria-checked="true"] .check { background: var(--teal); box-shadow: none; color: #fff; }
.sentence { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--cream-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
.codeform__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kv-stats { display: flex; gap: 22px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--paper); }
.kv-stats strong { display: block; font-size: 18px; }
.kv-stats span { font-size: 12.5px; color: var(--ink-2); }
.kv-stats > div:last-child { margin-left: auto; }
.error { font-size: 14px; color: var(--danger); }
.charcount { font-size: 12.5px; color: var(--ink-3); text-align: right; }

/* ---------- the site's own dropdowns ---------- */
.dd { position: relative; flex: none; }
.dd__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.dd__btn--field { height: 46px; border-radius: 14px; width: 100%; justify-content: space-between; font-weight: 500; font-size: 15.5px; padding: 0 12px 0 14px; }
.dd__btn:hover, .dd.is-open > .dd__btn { background: var(--cream-2); }
.dd__k { color: var(--ink-3); font-weight: 500; }
.dd__btn .icon--chev { width: 16px; height: 16px; color: var(--ink-2); transition: transform .2s; }
.dd.is-open > [data-act="dd"] .icon--chev { transform: rotate(180deg); }
.dd__menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; max-height: 340px; overflow-y: auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow-pop), inset 0 0 0 1px rgba(0,0,0,.05); padding: 6px; z-index: 70; animation: ddIn .16s cubic-bezier(.2,.9,.3,1); }
.dd__menu--right { left: auto; right: 0; }
.dd__menu--up { top: auto; bottom: calc(100% + 8px); }
.dd__menu--full { width: 100%; }
.dd__menu a, .dd__menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-align: left; }
.dd__menu a:hover, .dd__menu button:hover, .dd__menu a:focus-visible, .dd__menu button:focus-visible { background: var(--paper); outline: none; }
.dd__opt .icon--tick { margin-left: auto; color: var(--teal); visibility: hidden; }
.dd__opt[aria-selected="true"] { font-weight: 600; }
.dd__opt[aria-selected="true"] .icon--tick { visibility: visible; }
.dd__opt small { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 400; }
.dd__sep { height: 1px; background: var(--line); margin: 4px 6px; }
.dd__menu--flip { top: auto; bottom: calc(100% + 8px); }
.dd__search { position: sticky; top: -6px; background: #fff; padding: 2px 2px 6px; z-index: 1; }
.dd__search .search { min-width: 0; height: 38px; }
.dd__danger { color: var(--danger) !important; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* ---------- sign in ---------- */
.signin { min-height: calc(100vh - 37px); display: grid; place-items: center; padding: 40px 20px; }
.signin__card { width: 100%; max-width: 420px; background: #fff; border-radius: 28px; box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(0,0,0,.04); padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.signin__card img { height: 26px; width: auto; align-self: flex-start; }
.signin__card h1 { margin: 10px 0 0; font-size: 28px; font-weight: 760; letter-spacing: -.03em; line-height: 1.1; }
.signin__card .lead { margin: -6px 0 6px; color: var(--ink-2); }
.provider { height: 50px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.provider:hover { background: var(--cream-2); }
.provider svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13.5px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.codebox { display: flex; gap: 8px; }
.codebox input { width: 100%; height: 56px; text-align: center; font-size: 24px; font-weight: 700; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); outline: none; }
.codebox input:focus { box-shadow: inset 0 0 0 1.5px var(--teal), 0 0 0 4px var(--teal-tint); }
.fine { font-size: 13.5px; color: var(--ink-3); text-align: center; margin: 0; }
.spinner { width: 20px; height: 20px; border-radius: 20px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.spinner--dark { border-color: var(--teal-tint); border-top-color: var(--teal); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- overview ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
@media (max-width: 1099px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { background: #fff; border-radius: 20px; box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(0,0,0,.04); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.tile__label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.tile__value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.tile__delta { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.tile__delta .icon { width: 14px; height: 14px; }
.todo { display: flex; flex-direction: column; }
.todo a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 6px; border-top: 1px solid var(--line); border-radius: 12px; }
.todo a:first-child { border-top: 0; padding-top: 2px; }
.todo a:hover { background: var(--cream-2); }
.todo__icon { width: 34px; height: 34px; border-radius: 34px; background: var(--gold-tint); color: var(--gold-text); display: flex; align-items: center; justify-content: center; flex: none; }
.todo__icon .icon { width: 17px; height: 17px; }
.todo__t { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.todo__s { font-size: 13.5px; color: var(--ink-2); }
.rank { display: flex; flex-direction: column; gap: 12px; }
.rank__row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 46px; gap: 12px; align-items: center; }
.rank__row img { width: 30px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; box-shadow: 0 3px 8px -4px rgba(0,0,0,.5); }
.rank__t { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank__bar { display: block; height: 8px; border-radius: 4px; background: var(--paper); margin-top: 6px; overflow: hidden; }
.rank__bar > span { border-radius: 0 4px 4px 0 !important; }
.rank__bar div { height: 100%; border-radius: 8px; background: var(--teal); }
.rank__n { text-align: right; font-weight: 700; font-size: 14.5px; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: 220px; overflow: visible; }
.chart .grid line { stroke: var(--paper-2); stroke-width: 1; shape-rendering: crispEdges; }
.chart .ax text { font-size: 11.5px; fill: var(--ink-3); font-family: inherit; }
.chart .bar { fill: var(--teal); transition: fill .12s; }
.chart .hit { fill: transparent; cursor: default; outline: none; }
.chart .hit:hover + .bar, .chart .hit:focus + .bar, .chart .bar.is-on { fill: #2A6377; }
.chart .hit:focus-visible { stroke: var(--teal); stroke-width: 2; }
.tip { position: fixed; z-index: 95; pointer-events: none; background: #fff; border-radius: 12px; box-shadow: var(--shadow-pop), inset 0 0 0 1px rgba(0,0,0,.05); padding: 8px 12px; font-size: 13px; color: var(--ink-2); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }
.tip strong { display: block; color: var(--ink); font-size: 15px; }
.minitbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.minitbl td, .minitbl th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.minitbl td:last-child, .minitbl th:last-child { text-align: right; }
.minitbl-wrap { max-height: 220px; overflow: auto; }
.orderline { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); }
.orderline:first-child { border-top: 0; padding-top: 2px; }
.orderline .grow { flex: 1; min-width: 0; }
.orderline__t { font-weight: 600; font-size: 14.5px; }
.orderline__s { font-size: 13px; color: var(--ink-2); }

/* ---------- covers, the fan, the store card preview ---------- */
.fan { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; }
.fan img { width: 31%; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; margin: 0 -5%; position: relative; box-shadow: var(--shadow-book); transform: rotate(var(--r)) translateY(var(--y)); }
.fan--1 img { width: 36%; margin: 0; }
.fan--2 img { width: 33%; margin: 0 -3%; }
.fan--4 img { width: 27%; margin: 0 -4.4%; }
.fan--0 { color: var(--ink-3); font-size: 14px; }
.colls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1099px) { .colls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .colls { grid-template-columns: minmax(0, 1fr); } }
.coll { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(0,0,0,.04); transition: box-shadow .15s; }
.coll:hover { box-shadow: 0 18px 36px -26px rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,0,0,.06); }
.coll__art { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--cream); padding: 20px 26px; overflow: hidden; }
.coll__body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.coll__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.coll__name { margin: 2px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.coll__name a::after { content: ''; position: absolute; inset: 0; border-radius: 24px; }
.coll__blurb { margin: 0; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coll--new { align-items: center; justify-content: center; text-align: center; min-height: 280px; box-shadow: inset 0 0 0 1.5px var(--line-2); background: transparent; border: 0; color: var(--ink-2); gap: 10px; font-weight: 600; }
.coll--new:hover { background: #fff; color: var(--ink); }
.coll--new .plus { width: 48px; height: 48px; border-radius: 48px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; }
.preview { position: sticky; top: 24px; }
.preview__label { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.preview--book .preview__label { height: 42px; margin-bottom: 16px; }
.preview > .card { margin-top: var(--gap); }
.preview .coll { pointer-events: none; }
.preview .coll__blurb { -webkit-line-clamp: 3; }
.menu-preview { margin-top: var(--gap); background: #fff; border-radius: 18px; box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(0,0,0,.04); padding: 10px; }
.menu-preview__row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.menu-preview__row.is-new { background: var(--gold-tint); }
.menu-preview__row strong { display: block; font-size: 14.5px; }
.menu-preview__row small { font-size: 12.5px; color: var(--ink-2); }
.mini { display: flex; flex: none; width: 62px; }
.mini img { width: 26px; aspect-ratio: 2/3; border-radius: 3px; object-fit: cover; box-shadow: 0 3px 8px -3px rgba(0,0,0,.45); margin-right: -9px; outline: 1.5px solid #fff; }

/* ---------- editors ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start; }
@media (max-width: 1099px) { .editor { grid-template-columns: minmax(0, 1fr); } .preview { position: static; } }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tabs button:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.tabs button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 14px -10px rgba(0,0,0,.25); }
.tabs .flag { width: 8px; height: 8px; border-radius: 8px; background: var(--gold); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.stage { background: var(--cream); border-radius: 22px; padding: 28px; display: flex; justify-content: center; position: relative; }
.stage__cover { position: relative; width: min(240px, 70%); }
.stage__cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 5px; box-shadow: var(--shadow-book); }
.stage__safe { position: absolute; inset: 5%; border: 1.5px dashed rgba(223,161,76,.95); border-radius: 2px; pointer-events: none; }
.checks { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.checks .ok, .checks .no, .checks .eye { width: 24px; height: 24px; border-radius: 24px; display: flex; align-items: center; justify-content: center; flex: none; }
.checks .ok { background: var(--teal-tint); color: var(--teal); }
.checks .no { background: var(--gold-tint); color: var(--gold-text); }
.checks .eye { background: var(--paper); color: var(--ink-2); }
.checks .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.checks small { display: block; color: var(--ink-2); font-size: 13px; }
.drop { margin-top: 16px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line-2); background-image: none; padding: 22px; display: flex; align-items: center; gap: 16px; transition: background .15s, box-shadow .15s; }
.drop.is-over { background: var(--teal-tint); box-shadow: inset 0 0 0 2px var(--teal); }
.drop__icon { width: 46px; height: 46px; border-radius: 46px; background: var(--paper); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: none; }
.drop .grow { flex: 1; min-width: 0; }
.drop__t { font-weight: 700; }
.drop__s { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 559px) { .drop { flex-wrap: wrap; } }
.filerow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--line); font-size: 14.5px; }
.filerow:first-child { border-top: 0; }
.filerow__n { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.filerow__t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filerow__s { font-size: 13px; color: var(--ink-2); }
.filerow__end { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13.5px; white-space: nowrap; }
.filelist { max-height: 460px; overflow: auto; }
.progress { height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; margin-top: 6px; }
.progress div { height: 100%; background: var(--teal); border-radius: 6px; transition: width .3s; }
.ready { display: flex; flex-direction: column; gap: 2px; }
.ready a, .ready div { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; font-size: 14.5px; }
.ready a:hover { background: var(--paper); }
.ready .ok, .ready .no { width: 22px; height: 22px; border-radius: 22px; display: flex; align-items: center; justify-content: center; flex: none; }
.ready .ok { background: var(--teal-tint); color: var(--teal); }
.ready .no { background: var(--gold-tint); color: var(--gold-text); }
.ready .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.storecard { background: #fff; border-radius: 22px; box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(0,0,0,.04); padding: 18px; display: flex; gap: 14px; }
.storecard img { width: 86px; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-book); flex: none; }
.storecard__t { font-weight: 700; line-height: 1.25; }
.storecard__s { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.storecard__p { margin-top: 10px; font-weight: 700; }
.storecard__p small { font-weight: 500; color: var(--ink-2); }
.savebar { position: sticky; bottom: 16px; z-index: 20; margin-top: var(--gap); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(17,17,17,.92); color: #fff; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); animation: up .25s ease; }
.savebar span { font-size: 14.5px; }
.savebar .btn--secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.savebar .btn--secondary:hover { background: rgba(255,255,255,.08); }
.savebar .btn--primary { background: #fff; color: var(--teal); }
@media (max-width: 759px) { .savebar { bottom: calc(88px + env(safe-area-inset-bottom)); border-radius: 20px; } }
.chapterrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); }
.chapterrow:first-child { border-top: 0; }
.chapterrow__k { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.chapterrow__t { font-weight: 600; font-size: 14.5px; }

/* ---------- the books in a collection, in order (drag or arrows) ---------- */
.order { display: flex; flex-direction: column; gap: 8px; }
.orow { display: grid; grid-template-columns: 30px 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 10px 10px 6px; background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s, transform .18s; touch-action: pan-y; }
.orow img { width: 38px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; box-shadow: 0 4px 10px -6px rgba(0,0,0,.45); }
.orow.is-drag { transition: none; z-index: 5; position: relative; box-shadow: 0 18px 36px -14px rgba(0,0,0,.35), inset 0 0 0 1.5px var(--teal); }
.orow__handle { width: 30px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); cursor: grab; border-radius: 10px; touch-action: none; }
.orow__handle:hover { color: var(--ink); background: var(--paper); }
.orow.is-drag .orow__handle { cursor: grabbing; }
.orow__n { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.orow__t { font-weight: 600; line-height: 1.3; }
.orow__s { font-size: 13px; color: var(--ink-2); }
.orow__end { display: flex; gap: 2px; }
@media (max-width: 559px) {
  .orow { grid-template-columns: 26px 34px minmax(0, 1fr); gap: 2px 10px; padding: 10px 10px 6px 4px; }
  .orow > :nth-child(1), .orow > :nth-child(2) { grid-row: span 2; }
  .orow img { width: 34px; }
  .orow__end { grid-column: 3; margin-left: -8px; }
}
.picker { width: min(420px, calc(100vw - 48px)); }
.picker .dd__opt { gap: 12px; }
.picker .dd__opt img { width: 28px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; }
.picker .dd__opt .grow { flex: 1; min-width: 0; }
.picker .dd__opt .t { font-weight: 600; font-size: 14px; line-height: 1.3; }
.picker .dd__opt .s { font-size: 12.5px; color: var(--ink-2); }
.bundle { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--cream-2); box-shadow: inset 0 0 0 1px var(--line); }
.bundle__save { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.bundle__save strong { color: var(--teal); }

/* ---------- reviews ---------- */
.review { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 4px; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; padding-top: 4px; }
.review img { width: 44px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; box-shadow: 0 4px 10px -6px rgba(0,0,0,.45); }
.review__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.review__who { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.review__book { font-size: 13.5px; color: var(--ink-2); margin-top: 1px; }
.review__text { margin: 8px 0 0; line-height: 1.6; }
.review.is-hidden .review__text, .review.is-hidden img { opacity: .5; }
.review__report { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--danger); background: var(--danger-tint); padding: 8px 12px; border-radius: 12px; }
.review__reply { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--cream-2); font-size: 14.5px; }
.review__reply strong { display: block; font-size: 13px; color: var(--teal); }
.review__actions { margin-top: 10px; display: flex; gap: 4px; flex-wrap: wrap; margin-left: -10px; }
.stars { display: inline-flex; gap: 2px; color: #D9D4CA; }
.stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.stars .icon.is-on { color: var(--gold); }

/* ---------- drawer, modal, toast ---------- */
.drawer { position: fixed; inset: 0; z-index: 78; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(17,17,17,.4); animation: fade .2s ease; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: var(--paper); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: slide .28s cubic-bezier(.2,.9,.3,1); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px 24px; }
.drawer__head h2 { margin: 0; font-size: 21px; font-weight: 720; letter-spacing: -.015em; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 28px; }
.drawer__body .card { padding: 18px 20px; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 14px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(17,17,17,.42); animation: fade .2s ease; }
.modal__box { position: relative; width: 100%; max-width: 500px; max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 28px; box-shadow: var(--shadow-pop); padding: 26px; animation: pop .22s cubic-bezier(.2,.9,.3,1.1); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal__head h2 { margin: 0; font-size: 22px; font-weight: 720; letter-spacing: -.015em; }
.modal__body { display: flex; flex-direction: column; gap: 14px; }
.x { width: 36px; height: 36px; border-radius: 36px; background: var(--paper); display: flex; align-items: center; justify-content: center; flex: none; }
.x:hover { background: var(--paper-2); }
.push { border-radius: 22px; padding: 12px 14px; background: rgba(245,245,245,.95); box-shadow: 0 10px 30px -14px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.05); display: flex; gap: 12px; align-items: flex-start; }
.push img { width: 38px; height: 38px; border-radius: 9px; }
.push strong { font-size: 14px; }
.push p { margin: 1px 0 0; font-size: 14px; line-height: 1.35; }
.push small { margin-left: auto; color: var(--ink-3); font-size: 12px; }
@media (max-width: 640px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal__box { max-width: none; border-radius: 26px 26px 0 0; max-height: 92vh; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); animation: up .26s cubic-bezier(.2,.9,.3,1); }
}
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 500; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 96; display: flex; gap: 8px; align-items: center; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 759px) { .toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes up { from { transform: translateY(30px); opacity: .4; } }
@keyframes slide { from { transform: translateX(48px); opacity: .5; } }

/* ---------- team and activity ---------- */
.people { display: flex; flex-direction: column; }
.person { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; padding-top: 2px; }
.person__t { font-weight: 700; }
.person__s { font-size: 13.5px; color: var(--ink-2); }
.feed { display: flex; flex-direction: column; }
.feed__row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 14.5px; }
.feed__row:first-child { border-top: 0; padding-top: 2px; }
.feed__row .avatar { width: 32px; height: 32px; font-size: 13px; }
.feed__row small { display: block; color: var(--ink-3); font-size: 12.5px; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.roles div { padding: 12px 14px; border-radius: 14px; background: var(--paper); font-size: 13.5px; color: var(--ink-2); }
.roles strong { display: block; color: var(--ink); font-size: 14.5px; }
@media (max-width: 559px) { .roles { grid-template-columns: minmax(0, 1fr); } }
.posts { display: flex; flex-direction: column; }
.post { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; padding-top: 2px; }
.post img { width: 36px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; }
.post .grow { flex: 1; min-width: 0; }
.post__t { font-weight: 700; }
.post__s { font-size: 14px; color: var(--ink-2); }

/* ---------- placeholders and small helpers ---------- */
.nocover { display: inline-flex; align-items: center; justify-content: center; width: 36px; aspect-ratio: 2/3; border-radius: 3px; background: var(--paper-2); color: var(--ink-3); flex: none; }
.nocover--lg { width: 86px; border-radius: 4px; }
.nocover--xl { width: 100%; border-radius: 5px; flex-direction: column; text-align: center; font-size: 13.5px; font-weight: 600; gap: 6px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.08); }
.rank__row { color: inherit; }
.rank__row:hover .rank__t { text-decoration: underline; text-underline-offset: 3px; }
.only-sm-inline, .only-sm { display: none; }
@media (max-width: 1099px) {
  .note .hide-sm-inline { display: none; }
  .note .only-sm-inline { display: inline; }
}
.only-md-inline { display: none; }
@media (max-width: 759px) { :root { --gap: 16px; } }
@media (min-width: 760px) and (max-width: 1099px) {
  .hide-md { display: none; }
  .only-md-inline { display: inline; }
}
@media (max-width: 759px) {
  .only-sm-inline { display: inline; }
  .only-sm { display: block; }
  .hide-sm-inline { display: none; }
  .note { font-size: 12.5px; gap: 10px; padding: 7px 12px; flex-wrap: nowrap; }
  .note > span { min-width: 0; }
  .tools .search { flex: 1 1 100%; }
  .sold-sm { margin-top: 6px; font-size: 13px; color: var(--ink-2); text-align: right; }
}
.orderline:hover { background: var(--cream-2); border-radius: 12px; }
button.orderline { font: inherit; }

/* ---------- sales (Gift, November 10) ---------- */
.tex-list--sale .tex { grid-template-columns: 30px minmax(0, 1fr); }
.tex-list--sale .tex:first-child { border-top: 0; padding-top: 2px; }
.tex-list--sale .tex__s { white-space: normal; }
.tex-list--sale .tex__s s, .fmt s, .storecard__p s, .orderline s { color: var(--ink-3); font-weight: 500; }
.tex-list--sale .tex__s strong { color: var(--teal); font-weight: 700; }
.storecard__p s { font-size: 13px; }
.salenote { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--teal-tint); color: var(--teal); font-size: 14px; }
.salenote .icon { flex: none; margin-top: 2px; }
.salenote .link { font-weight: 600; }

/* ---------- the real manager (November 11, 2026) ---------- */
.boot { display: flex; align-items: center; justify-content: center; min-height: 120px; }
.signin .boot .spinner { width: 28px; height: 28px; }
.samplers { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.samplers .hint { flex: 1 1 100%; margin: 6px 0 0; }
.samplers .chip { height: 32px; font-size: 13.5px; }
.link[disabled] { color: var(--ink-3); pointer-events: none; }
.dd__btn[disabled] { opacity: .55; pointer-events: none; }
.input[disabled], .input[readonly] { background: var(--cream-2); color: var(--ink-2); }
.switch[disabled], .chip[disabled], .iconbtn[disabled], .seg button[disabled] { opacity: .45; pointer-events: none; }
.readonly { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); color: var(--ink-2); font-size: 14px; }
.readonly .icon { flex: none; margin-top: 1px; }
.empty .spinner { margin: 0 auto; }
.ladder { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--cream-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
.ladder .grow { flex: 1 1 260px; min-width: 0; }
.ladder strong { color: var(--ink); }
.later { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--paper); font-size: 14px; color: var(--ink-2); }
.later .icon { color: var(--teal); flex: none; margin-top: 1px; }
.later strong { color: var(--ink); }
.group-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 14px 4px 6px; }
.group-label:first-child { margin-top: 0; }
.order .group-label + .orow { margin-top: 0; }
.daterow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 559px) { .daterow { grid-template-columns: minmax(0, 1fr); } }
input[type="date"].input, input[type="time"].input { -webkit-appearance: none; appearance: none; min-height: 46px; }
.pill-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.kv dd .tag { vertical-align: middle; }
.who-cell { display: flex; flex-direction: column; min-width: 0; }
.who-cell .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orow--fixed .orow__handle { visibility: hidden; }
.card__note { margin: -4px 0 14px; font-size: 13.5px; color: var(--ink-2); }
.datepick { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1fr); gap: 8px; }
.datepick .dd__menu { min-width: 0; }
.field .datepick + .hint { margin-top: 2px; }
.tools .search { flex: 0 1 340px; }
