:root {
  color-scheme: dark;
  --bg: #0f1114; --surface: #171a1f; --raised: #20242b; --hover: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .18);
  --ink: #f1f2f4; --ink-2: #bcc0c8; --ink-3: #8f949e;
  --accent: #e8b44c; --accent-ink: #1d1505; --accent-wash: rgba(232, 180, 76, .13);
  --gold: #f2c14e; --silver: #c9ced6; --copper: #dd9566;
  --series-1: #3987e5; --series-2: #9ec5f4; --grid: #2a2d33;   /* lowest, and near-lowest a lighter step of the same blue */
  --up: #ec835a; --down: #6da7ec;
  --radius: 12px; --radius-s: 8px; --shadow: 0 12px 40px rgba(0, 0, 0, .55);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.muted { color: var(--ink-3); margin: 0; }
.small { font-size: .85rem; margin-top: 10px; }

main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 56px; }
h1 { font-size: 1.75rem; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; margin: 0 0 6px; overflow-wrap: anywhere; }
h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: .9rem; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; }
section { margin-top: 32px; }
section.page-head { margin-top: 0; margin-bottom: 24px; }
.h-region { color: var(--ink-3); font-weight: 500; }

/* Page header */
.top { background: rgba(15, 17, 20, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-inner { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand img { display: block; width: 24px; height: 24px; }
.search { position: relative; display: flex; flex: 1 1 240px; max-width: 520px; }
.search input { width: 100%; height: 38px; padding: 0 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-s); font: inherit; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.search button { margin-left: 8px; padding: 0 14px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius-s); font: inherit; font-weight: 600; cursor: pointer; }
.nav-link { margin-left: auto; color: var(--ink-2); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--ink); }

/* Prices: each unit wears its coin's colour, as in the game */
.coins { white-space: nowrap; font-variant-numeric: tabular-nums; }
.coins i { font-style: normal; font-weight: 500; margin-left: .5px; }
.coins .g { color: var(--gold); }
.coins .s { color: var(--silver); }
.coins .c { color: var(--copper); }
.coins.none { color: var(--ink-3); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
thead th { font-size: .8rem; color: var(--ink-3); font-weight: 500; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.selected { background: var(--accent-wash); }

/* A whole row is one big link on tables of items */
tr.row-link { position: relative; }
tr.row-link:hover { background: var(--hover); }
.row-link .item-link::after { content: ""; position: absolute; inset: 0; }
.item-cell { white-space: normal; min-width: 150px; }
.item-link { font-weight: 500; text-decoration: none; }
.item-link:hover { text-decoration: underline; }
.item-kind { display: block; color: var(--ink-3); font-size: .8rem; }

.q-poor { color: #a3a3a3; }
.q-common { color: #f1f2f4; }
.q-uncommon { color: #4fd24a; }
.q-rare { color: #5aa9f0; }
.q-epic { color: #c07df0; }
.q-legendary { color: #f39a3a; }
.q-artifact, .q-heirloom { color: #e6cc80; }

/* Charts */
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.chart-head h2 { margin: 0; }
.h-sub { margin-left: 6px; font-weight: 450; color: var(--ink-3); }
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); }
.segmented a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 6px; color: var(--ink-2); font-size: .88rem; text-decoration: none; white-space: nowrap; }
.segmented a:hover { color: var(--ink); background: var(--hover); }
.segmented a[aria-current] { background: var(--raised); color: var(--ink); font-weight: 600; }
.segmented button { min-width: 42px; height: 28px; padding: 0 10px; background: none; border: 0; border-radius: 6px; color: var(--ink-2); font: inherit; font-size: .85rem; cursor: pointer; }
.segmented button:hover:not(:disabled) { color: var(--ink); background: var(--hover); }
.segmented button[aria-pressed="true"] { background: var(--raised); color: var(--ink); font-weight: 600; }
.segmented button:disabled { color: var(--ink-3); opacity: .55; cursor: not-allowed; }
.chart-card { padding: 14px 10px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.readout { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; min-height: 26px; padding: 0 6px 10px; font-size: .88rem; color: var(--ink-2); }
.readout b { margin-left: 3px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.readout-item { white-space: nowrap; }
.readout-time { margin-left: auto; color: var(--ink-3); font-size: .82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.line-key { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; border-radius: 1px; }
.line-key.dashed { background: repeating-linear-gradient(90deg, var(--ink-3) 0 3px, transparent 3px 6px); }
/* A legend entry that shows or hides its line */
.series-toggle { display: inline-flex; align-items: center; margin: -3px 0; padding: 2px 9px; background: none; border: 1px dashed var(--line-strong); border-radius: 999px; color: var(--ink-3); font: inherit; cursor: pointer; }
.series-toggle .line-key { opacity: .4; }
.series-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.series-toggle[aria-pressed="true"] { color: var(--ink-2); border-style: solid; border-color: var(--line); }
.series-toggle[aria-pressed="true"] .line-key { opacity: 1; }
.link-button { padding: 0; background: none; border: 0; color: var(--ink-2); font: inherit; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--ink); }
.chart { min-height: 300px; }
.chart-small { min-height: 130px; }
.u-over { touch-action: pan-y; }
.u-cursor-x { border-right: 1px solid var(--line-strong) !important; }

footer { max-width: 1180px; margin: 0 auto; padding: 20px 20px 36px; color: var(--ink-3); font-size: .8rem; border-top: 1px solid var(--line); }
footer a { color: var(--ink-2); }

/* Data check */
.tiles { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.tile { flex: 1 1 150px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tile-value { font-size: 1.45rem; font-weight: 650; letter-spacing: -.01em; }
.tile-label { color: var(--ink-3); font-size: .8rem; }
.st-missing-ink { color: #ec6a6a; }
.st-mismatch-ink { color: #fab219; }
.key { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--ink-3); font-size: .85rem; margin: 12px 0 20px; }
.ranges { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.ranges a { padding: 3px 8px; border-radius: 6px; color: var(--ink-3); text-decoration: none; }
.ranges a[aria-current] { background: var(--raised); color: var(--ink); }

table.grid { width: auto; border-collapse: separate; border-spacing: 2px; }
table.grid th, table.grid td { border: 0; }
table.grid .sticky { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 0 0 0 2px var(--surface); min-width: 118px; font-weight: 600; font-size: .85rem; color: var(--ink); }
table.grid .hour { text-align: center; padding: 4px 2px; min-width: 42px; vertical-align: bottom; }
table.grid .hour small { display: block; font-weight: 400; font-size: .68rem; white-space: nowrap; }
.cell { display: inline-block; text-align: center; padding: 3px 4px; border-radius: 4px; font-size: .78rem; font-variant-numeric: tabular-nums; }
td.cell { display: table-cell; cursor: default; }
.st-ok { background: #1f3a2b; color: #d7efdf; }
.st-empty { background: #24272d; color: var(--ink-3); }
.st-pending { background: transparent; color: var(--ink-3); border: 1px dashed var(--line-strong); }
.st-before { background: transparent; color: var(--ink-3); }
.st-skipped { background: transparent; color: var(--ink-2); border: 1px dashed var(--ink-3); }
.st-blizzard { background: transparent; color: var(--ink-2); border: 1px solid var(--ink-3); }
.st-missing { background: #d03b3b; color: #fff; font-weight: 700; }
.st-mismatch { background: #fab219; color: #0b0b0b; font-weight: 700; }
tr.totals th, tr.totals td { color: var(--ink-3); font-weight: 600; }

@media (max-width: 640px) {
  main { padding: 20px 16px 40px; }
  .top { position: static; backdrop-filter: none; }
  .top-inner { padding: 10px 16px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .search kbd, .nav-link { display: none; }
  .search input { font-size: 16px; }   /* stops iOS zooming in on focus */
  h1 { font-size: 1.45rem; }
  th, td { padding: 9px 10px; }
  .ranges { margin-left: 0; }
  .chart { min-height: 220px; }
  .chart-small { min-height: 110px; }
  .chart-card { padding: 12px 4px 4px; }
  .readout-time { flex-basis: 100%; margin-left: 0; order: -1; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .market { flex: 1 1 0; }
  .market summary { justify-content: space-between; }
}

/* Market picker */
.market + .nav-link { margin-left: 0; }
.market { position: relative; margin-left: auto; min-width: 0; }
.market summary { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); font-weight: 550; font-size: .92rem; cursor: pointer; list-style: none; user-select: none; }
.market summary::-webkit-details-marker { display: none; }
.market summary:hover { border-color: var(--line-strong); }
.market[open] summary { border-color: var(--accent); }
.market summary svg { flex: none; color: var(--ink-3); transition: transform .12s; }
.market[open] summary svg { transform: rotate(180deg); }
.market-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-panel { position: absolute; z-index: 30; right: 0; top: calc(100% + 6px); width: min(400px, calc(100vw - 32px)); padding: 16px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.choice + .choice { margin-top: 14px; }
.choice-label { margin-bottom: 7px; font-size: .8rem; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .88rem; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.chip:hover { background: var(--hover); color: var(--ink); }
.chip[aria-current] { background: var(--accent-wash); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.market-hint { margin: 14px 0 0; font-size: .8rem; color: var(--ink-3); }
.market-apply { width: 100%; height: 40px; margin-top: 12px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius-s); font: inherit; font-weight: 600; cursor: pointer; }
.market-apply:hover { filter: brightness(1.08); }
body.navigating main { opacity: .55; transition: opacity .15s; }

/* Search dropdown */
.search-icon { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 34px; padding-right: 34px; }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 9px; top: 9px; min-width: 20px; height: 20px; line-height: 18px; text-align: center; font: inherit; font-size: .75rem; color: var(--ink-3); border: 1px solid var(--line-strong); border-radius: 5px; pointer-events: none; }
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { display: none; }
.suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: min(440px, 70vh); overflow-y: auto; padding: 6px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.suggest.loading { opacity: .75; }
.suggest-head { padding: 6px 10px; font-size: .78rem; color: var(--ink-3); }
.suggest a { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; min-height: 36px; padding: 7px 10px; border-radius: 7px; text-decoration: none; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: rgba(255, 255, 255, .08); }
.suggest-name { min-width: 0; font-weight: 500; }
.suggest-name mark { background: none; color: inherit; font-weight: 800; }
.suggest-price { flex: none; font-size: .9rem; }
.suggest-all { margin-top: 4px; color: var(--ink-2); font-size: .88rem; border-top: 1px solid var(--line); border-radius: 0 0 7px 7px !important; }

/* Item page: the numbers people came for */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.stat-label { font-size: .82rem; color: var(--ink-3); }
.stat-value { margin: 2px 0 1px; font-size: 1.55rem; line-height: 1.25; font-weight: 650; letter-spacing: -.015em; overflow-wrap: anywhere; }
.stat-value .coins { font-variant-numeric: normal; white-space: normal; }
.stat-value .coins i { font-weight: 600; margin-left: 1px; }
.delta { display: block; font-size: .82rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.delta.none { color: var(--ink-3); }
.delta i { font-style: normal; font-size: .7em; margin-right: 4px; vertical-align: 1px; }
.delta .up { color: var(--up); }
.delta .down { color: var(--down); }
.late { display: block; margin-top: 2px; font-size: .82rem; color: #fab219; }
.insights { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 16px; }
.insight { padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .84rem; color: var(--ink-2); }
.insight-strong { border-color: var(--accent); color: var(--accent); }
.notice { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2); }

/* Compare houses */
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 24px; align-items: start; }
.split-one { grid-template-columns: minmax(0, 1fr); }
.house-grid { table-layout: fixed; }
.house-grid th, .house-grid td { white-space: normal; }
.house-grid thead th:first-child, .house-grid tbody th { width: 21%; }
.house-grid tbody th { font-weight: 500; font-size: .88rem; color: var(--ink-2); }
.house-grid td { padding: 0; }
.house-grid td a { display: block; padding: 9px 14px; text-decoration: none; }
.house-grid td a:hover { background: var(--hover); }
.house-grid small { display: block; color: var(--ink-3); font-size: .76rem; line-height: 1.35; }
.house-grid .is-selected { background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent); }
.cheapest { color: var(--accent); font-weight: 600; }
.cheapest::before { content: " · "; color: var(--ink-3); font-weight: 400; }

/* Market depth */
.depth { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.depth-row + .depth-row { margin-top: 14px; }
.depth-text { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.depth-under { font-size: .82rem; }
.depth-track { height: 6px; margin-top: 6px; background: rgba(255, 255, 255, .06); border-radius: 3px; }
.depth-track i { display: block; height: 100%; background: var(--series-1); border-radius: 3px; }

/* Long tables stay folded until someone wants them */
.fold { margin-top: 16px; }
.fold summary { padding: 10px 2px; font-weight: 600; cursor: pointer; }
.fold summary::marker { color: var(--ink-3); }
.fold .small { margin-top: 10px; }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .stat { padding: 12px; }
  .stat-value { font-size: 1.25rem; }
  .house-grid, .house-grid thead, .house-grid tbody { display: block; }
  .house-grid tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .house-grid thead th:first-child { display: none; }
  .house-grid thead th, .house-grid tbody th { width: auto; padding: 8px 10px; }
  .house-grid tbody th { grid-column: 1 / -1; padding-bottom: 2px; border-bottom: 0; }
  .house-grid td a { padding: 6px 10px 9px; }
  .cheapest { display: block; }
  .cheapest::before { content: none; }
}

/* Home page */
.filters { display: grid; gap: 10px; margin-bottom: 14px; }
td.empty { padding: 28px 14px; white-space: normal; text-align: center; }
.items td .delta { font-size: .88rem; white-space: nowrap; }
.show-s { display: none; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.pager a { padding: 7px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; font-size: .9rem; }
.pager a:hover { border-color: var(--line-strong); }
.pager .next { margin-left: auto; }
@media (max-width: 640px) {
  .hide-s { display: none; }
  .show-s { display: block; }
  .segmented.wide { display: flex; }
  .segmented.wide a { flex: 1; justify-content: center; padding: 0 6px; }
  .pager .num-page { display: none; }
}

/* Watchlist */
.title-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.star { position: relative; z-index: 1; background: none; border: 0; color: var(--ink-3); font: inherit; font-size: 1.1rem; line-height: 1; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.star:hover { color: var(--ink); background: var(--hover); }
.star[aria-pressed="true"] { color: var(--accent); }
.star-labelled { flex: none; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); font-size: .88rem; color: var(--ink-2); }
.star-labelled[aria-pressed="true"] { border-color: var(--accent); }
.star-cell { width: 1%; padding-left: 0; }

/* Item and category pages: breadcrumbs, the across-regions overview, a heading per region in Compare houses */
.crumbs { margin-bottom: 12px; font-size: .84rem; color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-3); }
.overview { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 6px 0 8px; font-size: 1.02rem; color: var(--ink); }
.intro { max-width: 68ch; margin: 6px 0 8px; color: var(--ink-2); }
.house-head { margin: 0 0 14px; font-size: 1.05rem; }
.grid-region { margin: 14px 0 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.grid-region:first-of-type { margin-top: 0; }

/* Category browser, like the in-game Auction House's: a sidebar on wide screens, a menu above the list on narrow ones */
.browse { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 0 28px; align-items: start; }
.cat-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 12px; }
.cat-head { margin: 6px 0 8px 10px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cats, .cat-subs { margin: 0; padding: 0; list-style: none; }
.cat-row { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; }
.cat-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; padding: 4px 10px; border-radius: 6px; color: var(--ink-2); font-size: .9rem; line-height: 1.3; text-decoration: none; }
.cat-link span { min-width: 0; overflow-wrap: anywhere; }
.cat-link small { flex: none; color: var(--ink-3); font-size: .76rem; font-variant-numeric: tabular-nums; }
.cat-link:hover { background: var(--hover); color: var(--ink); }
.cat-link.is-parent { color: var(--ink); font-weight: 600; }
.cat-link[aria-current] { background: var(--accent-wash); color: var(--accent); font-weight: 600; }
.cat-link[aria-current] small { color: inherit; opacity: .75; }
.cat-toggle { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; background: none; border: 0; border-radius: 6px; color: var(--ink-3); cursor: pointer; }
.cat-toggle[hidden] { display: none; }
.cat-toggle:hover { background: var(--hover); color: var(--ink); }
.cat-toggle svg { transition: transform .12s; }
.cat-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.cat-subs { margin: 2px 0 6px 12px; padding-left: 4px; border-left: 1px solid var(--line); }
.cat-subs .cat-link { min-height: 30px; font-size: .86rem; }
.cat-pick { display: none; }
.browse-main > .cat-pick { margin-bottom: 14px; }
.cat-pick summary { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); font-size: .92rem; cursor: pointer; list-style: none; user-select: none; }
.cat-pick summary::-webkit-details-marker { display: none; }
.cat-pick summary:hover { border-color: var(--line-strong); }
.cat-pick[open] summary { border-color: var(--accent); }
.cat-pick-label { flex: none; color: var(--ink-3); }
.cat-pick-place { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cat-pick summary svg { flex: none; margin-left: auto; color: var(--ink-3); transition: transform .12s; }
.cat-pick[open] summary svg { transform: rotate(180deg); }
.cat-pick-panel { margin-top: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 900px) {
  .browse { display: block; }
  .cat-side { display: none; }
  .cat-pick { display: block; }
  .cat-pick .cat-row { grid-template-columns: minmax(0, 1fr) 40px; }
  .cat-pick .cat-link { min-height: 40px; }
  .cat-pick .cat-toggle { width: 40px; height: 40px; }
}

/* Privacy policy */
.policy { max-width: 68ch; color: var(--ink-2); }
.policy h2 { color: var(--ink); margin: 24px 0 6px; }
.policy p { margin: 0 0 10px; }
.policy ul { margin: 0 0 10px; padding-left: 20px; }
.policy li { margin-bottom: 6px; }
.policy-todo { padding: 10px 12px; color: var(--ink); background: var(--accent-wash); border: 1px solid var(--accent); border-radius: var(--radius-s); }
