@font-face {
  font-family: 'Saira Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/saira-semi-condensed-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Saira Semi Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/saira-semi-condensed-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/red-hat-text-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/red-hat-text-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* What Can It Emulate: deals-catalog layout, dark like a handheld's bezel.
   Navy from the logo deepened into the page, shell grey for text, A/B-button pink as the single accent.
   Signature element stays the 13-segment capability meter. Tier colors carry meaning only. */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  --bg: #15172A; --surface: #1D2036; --panel: #252945; --raise: #2E3354; --ink: #ECEBF2; --muted: #ADAECB; --line: rgba(236, 235, 242, .11);
  --accent: #F29BC0; --accent-ink: #1B0A12; --good: #ECEBF2; --watch: #F0B44A; --replace: #F29BC0;
  --price: #FFD36B; --meter-on: #ECEBF2;
  --font-display: 'Saira Semi Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Red Hat Text', system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent: #F29BC0; } }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); }
.wrap { max-width: 1240px; }
a { color: var(--accent); }
h1, h2, h3 { font-weight: 800; letter-spacing: -.005em; }
h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.04; }
h2 { font-size: 26px; margin-top: 40px; }
.lede { color: var(--muted); max-width: 64ch; }
.small, .muted { color: var(--muted); }
footer.site { border-top: 1px solid var(--line); }
footer.site, footer.site a { color: var(--muted); }

/* Header: one dense bar with search on the right. */
header.site { background: #0F1122; border-bottom: 1px solid var(--line); }
header.site .wrap { min-height: 60px; gap: 10px 22px; justify-content: flex-start; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); }
.logo b { color: var(--accent); }
nav.top a { color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: 16px; }
nav.top a:hover { color: var(--ink); }
nav.top a[aria-current="page"] { color: var(--ink); text-decoration: underline 3px var(--accent); text-underline-offset: 8px; }
.hsearch { margin-left: auto; position: relative; display: flex; align-items: center; }
.hsearch input { width: 230px; min-height: 38px; padding: 6px 64px 6px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font: inherit; font-size: 15px; }
.hsearch input::placeholder { color: var(--muted); opacity: 1; }
.hsearch kbd { position: absolute; right: 8px; font: 600 12px var(--font-body); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; pointer-events: none; }

/* Section heads: bold condensed title on a thin rule, like a catalog band. */
.band { font-family: var(--font-display); font-size: 27px; line-height: 1.1; margin: 34px 0 12px; padding-bottom: 6px; border-bottom: 3px solid var(--raise); position: relative; }
.band::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 64px; height: 3px; background: var(--accent); }
.sub-h { font-size: 18px; margin: 18px 0 6px; }

/* Home: main column + sidebar. */
.hub { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.hub-h1 { font-size: clamp(26px, 3.4vw, 34px); margin: 4px 0 8px; max-width: 30ch; }
.feat .band { margin-top: 20px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tiles .tile-0 { grid-column: span 2; }
.tiles .tile-0 .tile-art, .tiles .tile-1 .tile-art { min-height: 260px; }
.tiles .tile-0 .tile-art .art { max-height: 240px; }
.tile-art .art { max-height: 150px; }
.tile { display: flex; flex-direction: column; background: var(--panel); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--ink); }
.tile:hover { background: var(--raise); }
.tile:hover .tile-name { text-decoration: underline; }
.tile-art { display: grid; place-items: center; flex: 1 0 auto; min-height: 190px; padding: 14px 10px 6px; background: radial-gradient(ellipse at 50% 60%, rgba(242, 155, 192, .16), transparent 70%); flex: 1; }
.tile-art .art { width: 100%; max-width: 220px; height: auto; object-fit: contain; }
.tile-art .photo { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.tile-foot { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "n" "d"; gap: 3px; padding: 9px 12px 11px; background: rgba(0, 0, 0, .22); flex: none; }
.tile-kicker { grid-area: k; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-name { grid-area: n; font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.1; }
.tile-0 .tile-name { font-size: 26px; }
.tile-deal { grid-area: d; display: flex; align-items: center; gap: 8px; margin-top: 3px; }

/* The "deal" pair: emulation ceiling badge (tier-colored edge) + price in gold. */
.ceil { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 14px; line-height: 1; padding: 4px 7px 4px 9px; background: #ECEBF2; color: #15172A; border-radius: 3px; border-left: 5px solid; white-space: nowrap; }
.row-price { font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--price); white-space: nowrap; }
.t-S { border-color: #FF7F7F; } .t-A { border-color: #FFBF7F; } .t-B { border-color: #FFDF7F; } .t-C { border-color: #BFFF7F; } .t-D { border-color: #7FBFFF; } .t-E { border-color: #BF7FBF; }

/* Dense list rows. */
.rows { display: flex; flex-direction: column; gap: 3px; }
.row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto 140px; grid-template-areas: "art name meter deal"; align-items: center; gap: 4px 16px; background: var(--panel); border-radius: 4px; padding: 6px 12px 6px 6px; position: relative; }
.row:hover { background: var(--raise); }
.row.pick { box-shadow: inset 3px 0 0 var(--accent); }
.row-art { grid-area: art; display: grid; place-items: center; width: 92px; height: 58px; padding: 3px; background: rgba(0, 0, 0, .25); border-radius: 3px; line-height: 0; }
.row-art .art { width: 86px; height: 52px; object-fit: contain; }
.row-name { grid-area: name; min-width: 0; }
.row-name a { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; }
.row-name a::after { content: ''; position: absolute; inset: 0; } /* whole row clickable */
.row-name a:hover { text-decoration: underline; }
.row-name a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.row-name a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.row-meta { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meter { grid-area: meter; }
.row-deal { grid-area: deal; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.row .cmp { grid-area: cmp; position: relative; z-index: 1; justify-self: end; margin: 0; padding: 6px 4px; }
.row:has(.cmp) { grid-template-columns: 92px minmax(0, 1fr) auto 140px 92px; grid-template-areas: "art name meter deal cmp"; }

/* Sidebar widgets. */
.hub-side { display: flex; flex-direction: column; gap: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.stats p { margin: 0; background: var(--panel); border-radius: 6px; padding: 10px 10px 9px; font-size: 13px; color: var(--muted); line-height: 1.2; }
.stats b { display: block; font-family: var(--font-display); font-size: 30px; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.widget .band { font-size: 24px; margin-top: 24px; }
.minis { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; }
.mini { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; background: var(--panel); border-radius: 4px; padding: 4px 10px 4px 4px; text-decoration: none; color: var(--ink); }
.mini:hover { background: var(--raise); }
.mini-art { display: grid; place-items: center; width: 74px; height: 46px; padding: 2px; background: rgba(0, 0, 0, .25); border-radius: 3px; line-height: 0; }
.mini-art .art { width: 70px; height: 42px; object-fit: contain; }
.mini-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.15; }
.mini-name span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--muted); }
.mini-price { font-family: var(--font-display); font-weight: 800; color: var(--price); }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pills a { display: inline-block; background: var(--panel); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; padding: 6px 12px; border-radius: 4px; }
.pills a:hover { background: var(--raise); color: var(--accent); }
.promo p { color: var(--muted); margin: 0 0 8px; }

/* Finder as a filter bar above the list. */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.tool.finder { background: transparent; border: 0; padding: 0; }
.tool.finder > form { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px 12px; }
.tool.finder > .out { border-top: 0; margin-top: 10px; padding-top: 0; }
.tool select, .tool input { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.field label, .serial-label { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--muted); margin: 0 0 6px; }
details.more { background: transparent; border: 0; padding: 6px 0 0; }
details.more summary { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--muted); }
.systems { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--font-display); font-weight: 600; font-size: 15px; min-height: 36px; padding: 0 12px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip:hover { filter: none; background: var(--raise); }
.chip[aria-pressed="true"]:hover { background: var(--accent); }
.count { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 4px 0 8px; color: var(--muted); }
.cmp { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.cmp input { width: auto; min-height: 0; accent-color: var(--accent); }
.cmp-bar { position: sticky; bottom: 14px; margin-top: 12px; z-index: 2; }
.cta { background: var(--accent); color: var(--accent-ink); border-radius: 6px; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--panel); border-radius: 6px; font-family: var(--font-display); font-weight: 600; }
.btn-ghost:hover { background: var(--raise); }

/* Device page */
.crumbs { color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
.dp-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; margin-bottom: 14px; }
.dp-head h1 { margin: 0; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { font-family: var(--font-display); font-weight: 600; color: var(--ink); text-decoration: none; background: var(--panel); padding: 7px 16px; border-radius: 4px 4px 0 0; border-bottom: 3px solid var(--raise); }
.tabs a:hover { border-bottom-color: var(--accent); }
.dp { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "main side"; gap: 26px; align-items: start; }
.dp-main { grid-area: main; min-width: 0; }
.dp-side { grid-area: side; background: var(--surface); border-radius: 8px; overflow: hidden; }
.dp-art { padding: 22px 18px 10px; background: radial-gradient(ellipse at 50% 60%, rgba(242, 155, 192, .18), transparent 70%), var(--panel); border-bottom: 3px solid var(--accent); line-height: 0; }
.dp-art .art { width: 100%; height: auto; max-height: 280px; object-fit: contain; }
.dp-art .photo { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 14px 0; margin: 0; }
.tags li { background: var(--raise); font-size: 13px; padding: 3px 8px; border-radius: 3px; }
.tags a { color: var(--ink); }
.dp-intro { padding: 0 14px; font-size: 15px; color: var(--muted); }
.tierbox { display: flex; align-items: center; gap: 12px; margin: 0 14px 14px; padding: 8px 12px 8px 8px; background: var(--panel); border-radius: 6px; text-decoration: none; color: var(--ink); border-left: 0; }
.tierbox b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 4px; font-family: var(--font-display); font-size: 28px; color: #1C1D3A; }
.tierbox.t-S b { background: #FF7F7F; } .tierbox.t-A b { background: #FFBF7F; } .tierbox.t-B b { background: #FFDF7F; } .tierbox.t-C b { background: #BFFF7F; } .tierbox.t-D b { background: #7FBFFF; } .tierbox.t-E b { background: #BF7FBF; }
.tierbox span { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.tierbox small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--muted); }
.tierbox:hover small { text-decoration: underline; }
.panels { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
.panel { background: var(--panel); border-radius: 6px; padding: 10px 14px; }
.lrow { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lrow:last-of-type { border-bottom: 0; }
.lrow span small { display: block; font-size: 12px; color: var(--muted); }
.lstore { font-size: 13px; color: var(--muted); }
.lrow b, .cur { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--price); }
.lnote { font-size: 13px; color: var(--muted); margin: 4px 0 2px; }
.ceilbox { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.ceilbox > span { font-size: 14px; color: var(--muted); }
.ceil-big { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; padding: 6px 12px 6px 12px; background: #ECEBF2; color: #15172A; border-radius: 4px; border-left: 8px solid; align-self: flex-start; }
table.shops { width: 100%; }
table.shops th[scope="row"] { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
table.shops th small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--muted); }
table.shops tbody tr { background: var(--panel); }
table.shops tbody tr:nth-child(even) { background: var(--surface); }
table.shops th, table.shops td { padding: 9px 12px; border-bottom: 2px solid var(--bg); vertical-align: middle; }
table.shops tbody th { border-left: 4px solid var(--raise); }
table.shops .st-official th { border-left-color: var(--accent); }
.go { text-align: right; white-space: nowrap; }
.go a { display: inline-block; background: var(--raise); color: var(--ink); font-family: var(--font-display); font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 4px; }
.go a:hover { background: var(--accent); color: var(--accent-ink); }
.cmp-add { margin-top: 10px; }
.vs { padding-left: 18px; }

/* Capability meter (signature). */
.meter { display: inline-grid; grid-auto-flow: column; gap: 3px; vertical-align: middle; }
.meter .m { display: block; width: 10px; height: 18px; border-radius: 2px; }
.m0 { box-shadow: inset 0 0 0 1.5px rgba(236, 235, 242, .22); }
.m1 { background: rgba(236, 235, 242, .2); }
.m2 { background: rgba(236, 235, 242, .45); }
.m3 { background: rgba(236, 235, 242, .75); }
.m4 { background: var(--meter-on); }
.meter .hl { outline: 2px solid var(--accent); outline-offset: 2px; }
.meter-wrap { margin: 10px 0 6px; max-width: 680px; }
.meter-lg { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; width: 100%; }
.meter-lg .m { width: auto; height: 38px; }
.meter-labels { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; margin-top: 6px; font-size: 11px; line-height: 1.15; color: var(--muted); text-align: center; word-break: break-word; }

/* Rating words */
.rt { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 14px; padding: 1px 8px; border-radius: 3px; white-space: nowrap; }
.rt-great { background: var(--meter-on); color: var(--bg); }
.rt-good { background: rgba(236, 235, 242, .75); color: var(--bg); }
.rt-some { box-shadow: inset 0 0 0 1.5px var(--meter-on); color: var(--ink); }
.rt-barely { color: var(--muted); }
.rt-no { color: var(--muted); opacity: .85; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 28px; margin: 6px 0 10px; }
.rcell { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* Tables, lists, details */
table.data th { color: var(--muted); }
th, td { border-bottom-color: var(--line); }
.linklist { list-style: none; padding: 0; columns: 2 220px; column-gap: 28px; }
.linklist li { padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.linklist a { font-family: var(--font-display); font-weight: 600; font-size: 18px; text-decoration: none; }
.linklist a:hover { text-decoration: underline; }
.brand-grid a { color: var(--accent); }
details { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; }
summary { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
label.check { display: inline-flex; gap: 8px; align-items: center; margin: 8px 16px 0 0; font-size: 15px; }
label.check input { width: auto; min-height: 0; accent-color: var(--accent); }
.checks { margin-top: 6px; }

/* Tier list */
.tier { margin-top: 30px; }
.tier h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 4px; }
.tier-badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 4px; font-weight: 800; font-size: 30px; color: #1C1D3A; border: 0; }
.tier-badge.t-S { background: #FF7F7F; } .tier-badge.t-A { background: #FFBF7F; } .tier-badge.t-B { background: #FFDF7F; } .tier-badge.t-C { background: #BFFF7F; } .tier-badge.t-D { background: #7FBFFF; } .tier-badge.t-E { background: #BF7FBF; }
.tier-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; }
.tier-dev { display: block; padding: 8px 10px; background: var(--panel); border-radius: 4px; text-decoration: none; color: var(--ink); }
.tier-dev:hover { background: var(--raise); }
.tier-dev strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.tier-dev span { font-size: 13px; color: var(--muted); }

/* Compare table */
.cmp-table th a { color: var(--ink); }

@media (max-width: 1020px) {
  .hsearch { margin-left: 0; width: 100%; padding-bottom: 10px; }
  .hsearch input { width: 100%; }
  .hub, .dp { grid-template-columns: minmax(0, 1fr); }
  .dp { grid-template-areas: "side" "main"; }
  .dp-side { display: grid; grid-template-columns: minmax(0, 220px) 1fr; }
  .dp-art { grid-row: span 3; border-bottom: 0; border-right: 3px solid var(--accent); }
  .dp-intro { margin: 8px 0; }
}
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tiles .tile-0 { grid-column: span 2; }
  .tiles .tile-0 .tile-art .art { max-height: 150px; }
  .tile-art .art { max-height: 84px; }
  .tile-art { padding: 10px 6px 2px; }
  .tile-foot { padding: 6px 10px 8px; }
  .tile-name { font-size: 16px; }
  .tile-0 .tile-name { font-size: 21px; }
  .tile-kicker { font-size: 12px; }
  .row, .row:has(.cmp) { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "art name deal" "art meter cmp"; padding: 6px 10px 6px 6px; gap: 2px 10px; }
  .row .cmp { padding: 0; }
  .row-art { width: 72px; height: 46px; }
  .row-art .art { width: 66px; height: 40px; }
  .row-deal { gap: 6px; }
  .tile-art, .tiles .tile-0 .tile-art, .tiles .tile-1 .tile-art { min-height: 120px; }
  .tiles .tile-0 .tile-art { min-height: 170px; }
  .row-name a { font-size: 16px; }
  .meter .m { width: 8px; height: 14px; }
  .panels { grid-template-columns: 1fr; }
  .dp-side { display: block; }
  .dp-art { border-right: 0; border-bottom: 3px solid var(--accent); }
  .meter-labels { font-size: 9px; }
}
@media (max-width: 420px) {
  .stats b { font-size: 24px; }
  .meter .m { width: 6px; height: 12px; gap: 2px; }
}

/* Reading width for prose pages; the catalog layouts (.hub, .dp, rows, tables) stay full width. */
main .wrap > p, main .wrap > ul, main .wrap > ol, main .wrap > details, main .wrap > h1, .lede { max-width: 72ch; }
main .wrap > .table-scroll { max-width: 980px; }
.cta { display: inline-block; width: auto; padding: 10px 20px; text-decoration: none; }
/* Upscaler results: same panel rows as the handheld list. */
.tool .out > .dev { background: var(--panel); border-radius: 6px; padding: 12px 14px; margin: 0 0 6px; border: 0; }
.tool .out > .dev.pick { box-shadow: inset 3px 0 0 var(--accent); }
.dev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.dev-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); }
.dev-price { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--price); white-space: nowrap; }
.dev .tag { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--accent); margin: 2px 0 4px; }
.dev p { margin: 6px 0; max-width: 72ch; }
.dev-meta { color: var(--muted); font-size: 14px; }
.go a { white-space: nowrap; }
table.shops td.num { white-space: nowrap; }
@media (max-width: 760px) { table.shops th small { font-size: 12px; } table.shops th, table.shops td { padding: 8px; } }

/* Voice: friendly aside in the accent color. */
.hello { color: var(--ink); border-left-color: var(--accent); font-size: 17px; }

/* Price history chart (shared/pricechart.js). Series colors: validated categorical slots 1-3 for the dark panel. */
#history { --pc-s1: #338ced; --pc-s2: #e76624; --pc-s3: #00a888; }
.pc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.pc-stat { background: var(--panel); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pc-stat span { color: var(--muted); font-size: 13px; }
.pc-stat b { color: var(--price, #FFD36B); font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.pc-stat small { color: var(--muted); font-size: 12px; }
.pc { margin: 0; background: var(--panel); border-radius: 8px; padding: 12px 14px 14px; }
.pc-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 6px; font-size: 13px; color: var(--ink); }
.pc-legend li { display: flex; align-items: center; gap: 6px; }
.pc-key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: currentColor; }
.pc-key.pc-s1 { color: var(--pc-s1); } .pc-key.pc-s2 { color: var(--pc-s2); } .pc-key.pc-s3 { color: var(--pc-s3); }
.pc-wrap { position: relative; }
.pc-svg { width: 100%; height: auto; display: block; overflow: visible; }
.pc-svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.pc-grid { stroke: rgba(236, 235, 242, .10); stroke-width: 1; }
.pc-axis { fill: var(--muted); font-size: 11px; font-family: inherit; }
.pc-end { fill: var(--ink); font-size: 12px; font-family: inherit; }
.pc-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pc-line.pc-s1 { stroke: var(--pc-s1); } .pc-line.pc-s2 { stroke: var(--pc-s2); } .pc-line.pc-s3 { stroke: var(--pc-s3); }
.pc-dot { stroke: var(--panel); stroke-width: 2; } .pc-dot.pc-s1 { fill: var(--pc-s1); } .pc-dot.pc-s2 { fill: var(--pc-s2); } .pc-dot.pc-s3 { fill: var(--pc-s3); }
.pc-low { fill: none; stroke: var(--price, #FFD36B); stroke-width: 2; }
.pc-cross { stroke: rgba(236, 235, 242, .45); stroke-width: 1; stroke-dasharray: 3 3; }
.pc-tip { position: absolute; top: 4px; width: 170px; background: #15172A; border: 1px solid rgba(236, 235, 242, .18); border-radius: 6px; padding: 8px 10px; font-size: 12px; color: var(--ink); pointer-events: none; display: flex; flex-direction: column; gap: 3px; }
.pc-tip[hidden] { display: none; }
.pc-tip i.pc-key { margin-right: 6px; vertical-align: middle; }
.pc figcaption { margin-top: 6px; }
.pc-table summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-top: 6px; }
.pc-narrow { display: none; }
@media (max-width: 640px) { .pc-wide { display: none; } .pc-narrow { display: block; } }
