/* The public deals site. Dark first, light when the system asks for it. No web fonts, no third-party files. */
:root {
  --bg: #0b0f14;
  --bg-2: #0f141b;
  --panel: #121922;
  --panel-2: #172030;
  --line: #222d3b;
  --ink: #e7edf4;
  --muted: #8d9aab;
  --accent: #3ee08f;
  --accent-2: #2bb3ff;
  --accent-ink: #04140c;
  --good: #3ee08f;
  --bad: #ff7a70;
  --warn: #ffbf47;
  --series-1: #7aa7ff; --series-3: #fbbf24; --series-4: #c084fc;    /* the admins' price chart */
  --seg-1: #3987e5; --seg-2: #d95926; --seg-3: #199e70;              /* GPU segments on the home page chart */
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -18px rgba(0, 0, 0, .8);
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fa; --bg-2: #eef2f6; --panel: #ffffff; --panel-2: #f3f6fa; --line: #dde3ea;
    --ink: #0e1621; --muted: #5b6878; --accent: #0c9f5d; --accent-2: #0a7fd1; --accent-ink: #ffffff;
    --good: #0c8a52; --bad: #c8382d; --warn: #9a6400;
    --series-1: #1d5fd1; --series-3: #d97706; --series-4: #9333ea;
    --seg-1: #2a78d6; --seg-2: #eb6834; --seg-3: #1baf7a;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -16px rgba(15, 23, 42, .25);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "tnum" 1;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { width: min(1720px, 100% - 32px); margin-inline: auto; }   /* wide: the GPU table has 14 columns */
[hidden], .filtered, .unmatched { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.good { color: var(--good); font-weight: 600; }
.bad { color: var(--bad); font-weight: 600; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 1.125rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.top nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.top nav a { color: var(--muted); padding: 6px 10px; border-radius: 999px; font-size: .9rem; white-space: nowrap; }
.top nav a:hover { color: var(--ink); background: var(--panel); text-decoration: none; }
.top nav a[aria-current] { color: var(--ink); background: var(--panel-2); }
@media (max-width: 560px) { .brand span { display: none; } }
/* five sections: tighter on a phone, so Account stays in view */
@media (max-width: 440px) { .top-in { gap: 8px; } .top nav { gap: 0; } .top nav a { padding: 6px 7px; font-size: .8125rem; } }
/* the accessories table on a phone: the name says the type and socket */
@media (max-width: 640px) { #acc .narrow-hide { display: none; } }

.stale-banner { background: var(--warn); color: #1b1300; text-align: center; padding: 10px 16px; font-weight: 600; }

/* hero */
.hero { position: relative; padding: 56px 0 28px; overflow-x: clip; }   /* its glow mustn't widen a phone's page */
.hero::before { content: ""; position: absolute; inset: -40px -200px auto; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 220px at 25% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
              radial-gradient(520px 220px at 75% 10%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: color-mix(in srgb, var(--panel) 70%, transparent); color: var(--muted); font-size: .875rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.hero h1 { margin: 0; font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 1.0625rem; max-width: 62ch; margin: 14px 0 0; }
.search { margin-top: 26px; max-width: 640px; }
.search input { width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); font-size: 1.0625rem; box-shadow: var(--shadow); }
.search input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 22%, transparent); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .875rem; background: var(--bg-2); }
.quick a:hover { border-color: var(--accent); text-decoration: none; }

/* page head */
.ph { padding: 34px 0 6px; }
.ph h1 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -.025em; line-height: 1.12; }
.crumbs { padding-top: 22px; color: var(--muted); font-size: .875rem; }
.crumbs + .ph { padding-top: 8px; }

/* panels: eBay content lives in .panel.ebay, apart from specs and other shops */
.panel { margin: 22px 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: var(--shadow); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel h2 { margin: 0; font-size: 1.125rem; letter-spacing: -.01em; }
.src { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.panel-note { margin: 12px 0 0; color: var(--muted); font-size: .8125rem; }
.panel.other { background: var(--bg-2); }
.howto video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; }
.vids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.vid { margin: 0; min-width: 0; }
.vid figcaption { margin: 0 0 8px; }
.vids .vid:only-child { max-width: 800px; margin: 0 auto; width: 100%; }
.home-guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px 26px; }
.home-guides li { min-width: 0; }
.empty { color: var(--muted); margin: 6px 0; }

/* deal cards */
.deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.deal { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
  color: var(--ink); transition: border-color .15s, transform .15s; min-width: 0; }
.deal:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .deal, .deal:hover { transition: none; transform: none; } }
.th { width: 84px; height: 84px; flex: none; object-fit: contain; border-radius: 10px; background: #fff; }
.th.sm { width: 52px; height: 52px; border-radius: 8px; }
.th-none { display: inline-block; background: var(--panel-2); }
.deal-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.deal-m { font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); }
.deal-t { font-size: .875rem; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.deal-p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.deal-p b { font-size: 1.375rem; letter-spacing: -.02em; }
.deal-u { font-size: .8125rem; color: var(--muted); }
.deal-s { font-size: .8125rem; color: var(--muted); }
.off { font-size: .8125rem; font-weight: 800; color: var(--accent-ink); background: var(--accent); padding: 1px 7px; border-radius: 6px; margin-left: 6px; }
.cond { font-size: .75rem; font-weight: 650; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.cond.c-new { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); color: var(--accent-2); }
.cond.c-refurb, .cond.c-open_box { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); color: var(--warn); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stats > div > span { display: block; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.stats b { display: block; font-size: 1.5rem; letter-spacing: -.02em; margin-top: 2px; }

/* tables */
.tbl { overflow-x: auto; margin: 0 -6px; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; }
th[data-sort] { cursor: pointer; user-select: none; }
/* a sortable header's button (ui.js sortHeader): it looks like the header's text, and takes the keyboard focus */
.th-sort { all: unset; cursor: pointer; }
.th-sort:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
/* nothing to show (ui.js emptyState), in a table or on its own */
.empty { padding: 28px 16px; text-align: center; }
.empty-t { margin: 0; font-weight: 650; color: var(--ink); }
.empty-h { margin: 6px auto 0; max-width: 46ch; color: var(--muted); font-size: .9375rem; }
.empty .btn { margin-top: 14px; }
.empty-error .empty-t { color: var(--bad); }
tr.empty-row:hover { background: none; }
tr.empty-row > td { white-space: normal; }
/* content on its way (ui.js skeleton) */
.skel { display: grid; gap: 10px; padding: 14px 0; }
.skel-l { display: block; height: 14px; border-radius: 6px; background: var(--panel-2); animation: skel 1.2s ease-in-out infinite alternate; }
.skel-l:nth-child(3n + 2) { width: 82%; }
.skel-l:nth-child(3n) { width: 64%; }
@keyframes skel { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .skel-l { animation: none; } }
/* a table wider than its box can be scrolled from the keyboard (ui.js scrollRegion) */
.tbl[role="region"]:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 8px; }
th[data-sort]:hover { color: var(--ink); }
th[aria-sort="ascending"]::after { content: " ↑"; }
th[aria-sort="descending"]::after { content: " ↓"; }
tbody tr:hover { background: color-mix(in srgb, var(--panel-2) 60%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.hi { color: var(--accent); font-weight: 700; }
td .sub, .sub { display: block; font-size: .8125rem; color: var(--muted); font-weight: 400; }
/* the flex box is inside the cell: a flex td isn't a table cell, so it wouldn't fill a taller row */
.t-in { display: flex; align-items: center; gap: 12px; min-width: 300px; }
td.t a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
td.t a:hover { color: var(--accent-2); }
.kit { display: block; font-size: .8125rem; color: var(--accent); font-weight: 650; }
.left { font-weight: 700; }
.left.soon { color: var(--warn); }

/* filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.filters input[data-find] { font: inherit; font-size: .875rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink); min-width: 0; flex: 0 1 220px; }
.chip { font: inherit; font-size: .875rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--muted); cursor: pointer; }
.chip:hover { color: var(--ink); }
.chip.on { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-2)); }
.find { margin-left: auto; font: inherit; font-size: .9375rem; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink); min-width: 220px; }
@media (max-width: 640px) { .find { margin-left: 0; width: 100%; } }

/* specs, prose, buttons */
.spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 18px; margin: 0; }
.spec dt { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.spec dd { margin: 2px 0 0; font-weight: 600; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-weight: 600; }
.btn:hover { border-color: var(--accent-2); text-decoration: none; }
.prose { max-width: 820px; }
.prose h2 { margin: 18px 0 6px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }

/* footer */
.foot { margin-top: 48px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-in { display: grid; gap: 10px; padding: 26px 0 34px; color: var(--muted); font-size: .9375rem; }
.foot b { color: var(--ink); }
.foot .small { font-size: .8125rem; }

/* explorers: filter bars and the tables the page script draws */
.ctl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 0 0 14px; }
.sel { display: flex; flex-direction: column; gap: 4px; font-size: .75rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sel.grow { flex: 1 1 220px; }
.sel select, .sel input { font: inherit; font-size: .9375rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; min-height: 38px; }
.sel select:focus, .sel input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 22%, transparent); }
.sel input[type="search"] { width: 100%; }
.range { display: flex; gap: 6px; }
.range input { width: 92px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--muted); min-height: 38px; cursor: pointer; }
.chk input { accent-color: var(--accent); width: 16px; height: 16px; }
.ctl .reset { min-height: 38px; padding: 7px 14px; font-size: .875rem; font-weight: 600; }
.ctl .reset[hidden] { display: none; }
.xt td .chip { margin-left: 6px; font-size: .6875rem; padding: 1px 7px; vertical-align: 1px; }
.callout { max-width: 78ch; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; line-height: 1.5;
  border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, var(--panel)); }
.callout b { color: var(--warn); }

.chip.warn { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); color: var(--warn); }
.xt .t-in > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xt td.t .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
a.model { font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); }
.xt th[data-sort] { cursor: pointer; }
.xt tbody tr td { padding-top: 9px; padding-bottom: 9px; }
@media (max-width: 640px) { .sel { flex: 1 1 calc(50% - 6px); } .sel select, .sel input { width: 100%; } .range input { width: 100%; } }
#gx td:first-child { min-width: 230px; }
.tip { text-decoration: underline dotted color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; cursor: help; }

/* the last part page of each kind the visitor opened, right after its section in the menu */
/* joined to its section: no pill gap between "GPUs" and "› RTX 4060 Ti 16" */
.top nav a:has(+ a.part:not([hidden])) { padding-right: 2px; }
.top nav a.part { flex: none; max-width: 170px; overflow: hidden; text-overflow: ellipsis; margin-left: -2px; padding-left: 2px; }
/* the parts you follow (site.js, app/pergb/web.py): a menu after the main one */
.top nav { margin-left: auto; }
.fol { position: relative; flex: none; margin-left: -10px; }
.fol > summary { list-style: none; cursor: pointer; color: var(--muted); padding: 6px 10px; border-radius: 999px; font-size: .9rem; white-space: nowrap; }
.fol > summary::-webkit-details-marker { display: none; }
.fol > summary:hover, .fol[open] > summary { color: var(--ink); background: var(--panel); }
.fol-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: max-content; min-width: 260px; max-width: min(380px, calc(100vw - 32px));
  max-height: 70vh; overflow-y: auto; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .35); }
.fol-list a { display: flex; justify-content: space-between; gap: 16px; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: .9375rem; }
.fol-list a:hover, .fol-list a[aria-current] { background: var(--panel-2); text-decoration: none; }
.fol-list a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fol-list a b { font-weight: 600; white-space: nowrap; color: var(--muted); }
.fol-list a.fol-all { color: var(--accent-2); font-size: .8125rem; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
@media (max-width: 440px) { .fol { margin-left: -8px; } .fol > summary { padding: 6px 7px; font-size: .8125rem; } .fol-t { display: none; } }
.top nav a.part::before { content: "›\00a0"; opacity: .55; }

/* accounts (app/pergb): Alert me / Follow on part pages, and the account pages */
.btn { font: inherit; cursor: pointer; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-danger { border-color: var(--bad); color: var(--bad); }
.btn:disabled { opacity: .6; cursor: default; }
button.link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent-2); cursor: pointer; }
button.link:hover { text-decoration: underline; }
form.inline { display: inline; }
/* the seller takes offers: beside the price, so the row stays two lines */
.obo { margin-left: 5px; font-size: .75rem; font-weight: 400; color: var(--muted); }

/* "too good to be true" (public.risky) */
.risk { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .75rem; font-weight: 650;
  color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); cursor: help; white-space: nowrap; }
.sub.warn { color: var(--warn); }
.run-need { margin: 4px 0 10px; }
dl.homelab { grid-template-columns: 1fr; }
/* the memory chart on the home page (public.memory_chart, site.js memChart): six stick sizes, the dataviz palette's first six
   slots (checked against these panels, light and dark); the shape carries the generation */
:root { --mc-0: #3987e5; --mc-1: #d95926; --mc-2: #199e70; --mc-3: #c98500; --mc-4: #d55181; --mc-5: #9085e9; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --mc-0: #2a78d6; --mc-1: #eb6834; --mc-2: #1baf7a; --mc-3: #eda100; --mc-4: #e87ba4; --mc-5: #6250d6; }
}
:root[data-theme="light"] { --mc-0: #2a78d6; --mc-1: #eb6834; --mc-2: #1baf7a; --mc-3: #eda100; --mc-4: #e87ba4; --mc-5: #6250d6; }
#memory-chart, #gpu-chart { scroll-margin-top: 76px; }
.mc-wrap { position: relative; margin: 6px 0 4px; }
.mc-svg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; cursor: grab; }
.mc-svg:active { cursor: grabbing; }
.mc-pt { stroke: var(--panel); stroke-width: 2; }
.mc-pt.on { stroke-width: 2.5; }
.mc-c0 { fill: var(--mc-0); } .mc-c1 { fill: var(--mc-1); } .mc-c2 { fill: var(--mc-2); }
.mc-c3 { fill: var(--mc-3); } .mc-c4 { fill: var(--mc-4); } .mc-c5 { fill: var(--mc-5); }
i.mc-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
i.mc-key.mc-c0 { background: var(--mc-0); } i.mc-key.mc-c1 { background: var(--mc-1); } i.mc-key.mc-c2 { background: var(--mc-2); }
i.mc-key.mc-c3 { background: var(--mc-3); } i.mc-key.mc-c4 { background: var(--mc-4); } i.mc-key.mc-c5 { background: var(--mc-5); }
i.mc-shape { font-style: normal; color: var(--muted); margin-right: 5px; }
.mc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--muted); margin: 4px 0; }
.gc-front.mc-front { fill: none; stroke-dasharray: none; }
.mc-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; pointer-events: none; }
.mc-tip { position: absolute; z-index: 3; max-width: 320px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2);
  border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); font-size: .8125rem; pointer-events: none; }
.mc-tip b { display: block; margin-bottom: 2px; }
.mc-reset { position: absolute; top: 6px; right: 6px; }
.cc-wrap { position: relative; }                       /* its Reset zoom and tooltip sit over the chart, not the page */
.gc-mark { fill: none; stroke: var(--accent); stroke-width: 2.5; pointer-events: none; }
.xt tr.picked > td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.xt tr.flash > td { animation: rowflash 1.8s ease-out; }
@keyframes rowflash { 0%, 34%, 68% { background: color-mix(in srgb, var(--accent) 34%, transparent); } 17%, 51%, 85% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .xt tr.flash > td { animation: none; } }
.mc-sum { margin: 2px 0 6px; }
.mc-table { margin-top: 8px; }
.mc-table summary { cursor: pointer; color: var(--accent-2); font-size: .875rem; }
.ctl .mc-ai { display: contents; }
.ctl .mc-ai[hidden] { display: none; }

/* a memory's stick sizes, each its own page (public._sizes_line) */
.filters.sizes { margin: 10px 0 0; align-items: center; }
.filters.sizes .chip .muted { font-weight: 400; }

/* owner reviews (public.reviews_panel, site.js reviewBox) */
.stars { color: var(--warn); letter-spacing: .05em; white-space: nowrap; }
.rv-sum { margin: 0 0 10px; }
.rv-write { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.rv-form .ctl { margin: 6px 0; }
.rv-form textarea { font: inherit; font-size: .9375rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; resize: vertical; }
.rv-text { margin: 6px 0; }
.rv-list { list-style: none; margin: 0; padding: 0; }
.rv { padding: 12px 0; border-top: 1px solid var(--line); }
.rv p { margin: 6px 0 0; }
.rv-d { color: var(--muted); font-size: .875rem; }
td.rv-body { max-width: 520px; white-space: pre-line; }
.watch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.watch-form { flex-basis: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.watch-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0; }
.watch-fields select, .watch-fields input[type=number] { font: inherit; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.watch-fields input[type=number] { width: 7.5em; }
.watch-row { display: inline-flex; align-items: center; gap: 6px; }
.watch-row[hidden] { display: none; }
.watch-list { flex-basis: 100%; margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: .875rem; }
.acct-link { margin-left: auto; }
.acct .acct-top { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.acct .acct-top form, .acct .acct-inline { display: inline; }
.acct-signin { max-width: 440px; display: grid; gap: 12px; }
.acct-signin .or { text-align: center; color: var(--muted); margin: 0; }
.acct-form { display: grid; gap: 10px; justify-items: start; }
.acct-form label:not(.chk) { display: grid; gap: 4px; width: 100%; }
.acct-form input[type=email] { font: inherit; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); width: 100%; }
.acct-err { color: var(--bad); margin: 0; }
.acct table { width: 100%; border-collapse: collapse; }
.acct th, .acct td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.acct td.num, .acct th.num { text-align: right; }
.acct tr.off td { opacity: .55; }
.acct td.acts { white-space: nowrap; }
.acct td.acts form { display: inline; margin-left: 10px; }
.acct-push { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* the price chart on part pages, admins only (app/pergb/static/charts.js) */
.hist .range { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.hist .range button { font: inherit; font-size: .8125rem; padding: 4px 11px; margin-left: -1px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--muted); cursor: pointer; }
.hist .range button:first-child { border-radius: 8px 0 0 8px; }
.hist .range button:last-child { border-radius: 0 8px 8px 0; }
.hist .range button.on { position: relative; color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-2)); }
.hist canvas[hidden] { display: none !important; }
.hist td.when { white-space: nowrap; }
/* admins: reclassify a listing (app/pergb/static/charts.js) */
button.rcl { display: block; align-self: flex-start; text-align: left; margin-top: 2px; padding: 0; font: inherit; font-size: .75rem; color: var(--accent-2); background: none; border: 0; cursor: pointer; }
button.rcl:hover { text-decoration: underline; }
.rcl-chip { display: block; margin-top: 2px; font-size: .75rem; font-weight: 650; color: var(--warn); }
.rcl-dlg { width: min(560px, calc(100vw - 32px)); padding: 20px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.rcl-dlg::backdrop { background: rgb(0 0 0 / .5); }
.rcl-dlg h2 { margin: 0 0 8px; font-size: 1.125rem; }
.rcl-dlg label.sel { display: block; margin: 0 0 10px; }
.rcl-dlg label.sel span { display: block; margin-bottom: 3px; }
.rcl-dlg input, .rcl-dlg select { width: 100%; box-sizing: border-box; font: inherit; padding: 7px 10px; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; }
.rcl-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rcl-acts .btn { padding: 7px 12px; font-size: .875rem; }
.hist[hidden] { display: none; }
.hist .chart-hint { min-height: 1.4em; margin: 8px 0 0; font-size: .8125rem; color: var(--ink); }

/* the home page's GPU chart: performance against price (public.gpu_chart, site.js gpuChart) */
.gc-wrap { position: relative; overflow-x: auto; }
.gchart { display: block; width: 100%; min-width: 720px; height: auto; }   /* phones scroll it sideways, like the tables */
.gchart:focus, .mc-svg:focus { outline: none; }                            /* a click focuses the chart itself: its dots have their own ring */
.gchart.fit { min-width: 0; }                                             /* the page script draws it at its own size */
.gchart.touchzoom { touch-action: pan-y; }   /* the page scrolls; pinches and moves are the chart's */
.gc-grid { stroke: var(--line); stroke-width: 1; }
.gc-tick, .gc-axis { fill: var(--muted); font-size: 12px; }
.gc-tick { font-variant-numeric: tabular-nums; }
.gc-front { fill: none; stroke: var(--ink); stroke-opacity: .5; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gc-front:not(.pcie) { stroke-dasharray: 6 5; }
.gc-trend { stroke: var(--warn); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 6; pointer-events: none; }
.gc-fname { fill: var(--ink); font-size: 12px; font-weight: 700; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.gc-f.off { display: none; }
.gc-forms { margin: 0 0 6px; }
.gc-zoom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
/* for admins: the day whose prices are shown */
.gc-time { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 8px; }
.gc-time .btn { padding: 5px 12px; font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.gc-out { font-size: .8125rem; font-variant-numeric: tabular-nums; min-width: 9.5em; }
.gc-admin { font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.gc-day { flex: 0 1 280px; min-width: 180px; accent-color: var(--accent); }
@media (max-width: 640px) { .gc-day { flex: 1 1 100%; } }
.gc-vram { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; }
.gc-vram select { max-width: 220px; }
.gc-vram select { font: inherit; font-size: .8125rem; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); }
.gchart.zoomable { cursor: crosshair; user-select: none; -webkit-user-select: none; }
.gchart.zoomable a { cursor: pointer; }
.gchart.zoomable.can-pan { cursor: grab; }
.gchart.zoomable.panning, .gchart.zoomable.panning a { cursor: grabbing; }
.gc-cross { pointer-events: none; }
.gc-cross line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.gc-cross rect { fill: var(--ink); }
.gc-cross text { fill: var(--bg); font-size: 11px; font-variant-numeric: tabular-nums; }
.gc-cross text.gc-cross-note { fill: var(--muted); paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }
.gc-zoombox { fill: var(--accent); fill-opacity: .08; stroke: var(--accent); stroke-width: 1; }
.gc-hit { fill: transparent; }
.gc-dot { stroke: var(--panel); stroke-width: 2; }
.gc-dot.s1 { fill: var(--seg-1); } .gc-dot.s2 { fill: var(--seg-2); } .gc-dot.s3 { fill: var(--seg-3); }
.gc-dot.sxm { fill: var(--panel); stroke-width: 2.5; }
.gc-dot.sxm.s1 { stroke: var(--seg-1); } .gc-dot.sxm.s2 { stroke: var(--seg-2); } .gc-dot.sxm.s3 { stroke: var(--seg-3); }
.gc-pt:hover .gc-dot, .gc-pt:focus .gc-dot { r: 7px; }
.gc-pt:focus { outline: none; }
.gc-pt:focus-visible .gc-dot { stroke: var(--ink); }
.gc-label { fill: var(--ink); font-size: 12px; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.gc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 6px; font-size: .8125rem; color: var(--muted); }
.gc-key { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.gc-key.s1 { background: var(--seg-1); } .gc-key.s2 { background: var(--seg-2); } .gc-key.s3 { background: var(--seg-3); }
.gc-key.sxm { border: 2px solid var(--muted); }
.gc-key.trend { width: 18px; height: 0; border-radius: 0; border-top: 3px dotted var(--warn); vertical-align: 3px; }
.gc-key.front { width: 18px; height: 2px; border-radius: 1px; background: var(--ink); opacity: .5; vertical-align: 3px; }
.gc-tip { position: absolute; z-index: 2; max-width: 280px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-2); color: var(--ink); box-shadow: var(--shadow); font-size: .8125rem; pointer-events: none; }
.gc-tip b { display: block; margin-bottom: 2px; }
.gc-tip span { display: block; color: var(--muted); }
/* seo.py: a GPU's "how it compares", the comparison and the best-GPU pages */
.facts, .alts { margin: 6px 0 12px; padding-left: 20px; }
.facts li, .alts li { margin: 4px 0; }
.panel h3 { margin: 14px 0 4px; font-size: 1rem; }
.cols { columns: 2 320px; column-gap: 32px; margin: 0; padding-left: 20px; }
.cols li { margin: 4px 0; break-inside: avoid; }
/* "Compare with" on a GPU's page (site.js gpuCompare) */
.cmp-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-top: 14px; }
.cmp-pick .sel { flex: 0 1 380px; min-width: 240px; }
.cmp-pick .btn { padding: 7px 12px; font-size: .875rem; }
.cmp-pick input { width: 100%; box-sizing: border-box; }
.cmp-spec, .cmp-price { margin-top: 10px; }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 14px 28px; align-items: start; }
.cmp-grid > * { min-width: 0; }
.cmp-say { margin: 0 0 6px; font-size: .875rem; font-weight: 600; line-height: 1.35; }
.cmp-note { margin: 6px 0 0; font-size: .75rem; line-height: 1.35; }
.cmp-ai-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; font-size: .875rem; }
.cmp-ai-ctl select { font: inherit; font-size: .8125rem; padding: 3px 6px; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px; }
.cmp-ai-tabs { display: inline-flex; gap: 4px; }
.cmp-ai-tabs .chip { padding: 2px 9px; font-size: .75rem; }
table.cmp.tight { font-size: .8125rem; }
table.cmp.tight th, table.cmp.tight td { padding: 3px 6px; line-height: 1.3; min-width: 0; }
table.cmp.tight thead th { font-size: .6875rem; }
table.cmp.tight tbody th { font-size: .75rem; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: normal; }
table.cmp.tight td.good .muted { font-weight: 400; }
table.cmp.tight td { overflow-wrap: anywhere; }
.cmp-n { white-space: nowrap; }
table.cmp td.good { font-weight: 700; }
table.cmp th { text-align: left; color: var(--muted); font-weight: 600; }
table.cmp td { min-width: 120px; }
@media (max-width: 640px) { table.cmp th { width: 40%; font-size: .75rem; } table.cmp td { min-width: 0; } table.cmp.tight th { width: 28%; } }
/* the admin page's analytics (app/pergb/web.py) */
.abars { display: block; width: 100%; height: 80px; margin: 6px 0 0; }
.abars rect { fill: var(--accent-2); }
.abars rect:hover { fill: var(--accent); }
.abars-x { display: flex; justify-content: space-between; margin: 2px 0 10px; }
.acols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 8px 24px; }
.acols > div { min-width: 0; }
@media (max-width: 440px) { .panel-h .src { white-space: normal; text-align: right; } }
.acols td:first-child { max-width: min(360px, 60vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-table summary { margin-top: 10px; color: var(--muted); cursor: pointer; }


/* AI workstations: the specs are columns; keep the machine name readable */
#ai td:first-child{min-width:210px}
