:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --line: #dfe3e9;
  --text: #1c2027;
  --muted: #6b7280;
  --accent: #2563eb;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #9ca3af;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 650; letter-spacing: .2px; }

.tabs { display: flex; gap: 4px; }

.tab {
  padding: 6px 12px; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted);
  font: inherit; cursor: pointer;
}
.tab:hover { background: var(--surface-2); color: var(--text); }
.tab.is-active { background: var(--surface-2); color: var(--text); }

.search {
  margin-left: auto; width: 280px;
  padding: 7px 11px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit;
}
.search:focus { outline: 0; border-color: var(--accent); }

/* ---------- filter row ---------- */

.filters {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.filters .spacer { flex: 1; }

.filters select, .ghost {
  padding: 6px 10px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 7px;
  font: inherit; cursor: pointer;
}
.ghost:hover { border-color: var(--accent); }
.count { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- grid ---------- */

main { padding: 20px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.card { cursor: pointer; }

.art {
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid; place-items: center;
}
.card:hover .art { border-color: var(--accent); }
/* contain, not cover, so the whole box shows without cropping the edges */
.art img { width: 100%; height: 100%; object-fit: contain; }

/* Fallback shown until artwork is fetched. */
.art .initials {
  font-size: 28px; font-weight: 700; color: var(--muted);
  padding: 10px; text-align: center; line-height: 1.2;
}

.badge {
  position: absolute; top: 6px; left: 6px;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(0,0,0,.72); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: .3px;
}
.badge.copies { left: auto; right: 6px; background: var(--accent); }

.dot {
  position: absolute; bottom: 6px; right: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
}
.dot.Completed { background: var(--ok); }
.dot.Playedenough { background: var(--accent); }
.dot.Playedbutnotended { background: var(--warn); }
.dot.NotStarted { background: var(--muted); }
.dot.Dontwanttoplay { background: var(--bad); }

.card h3 {
  margin: 8px 0 2px;
  font-size: 12.5px; font-weight: 550;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card .sub { color: var(--muted); font-size: 11px; display: flex; align-items: baseline; gap: 6px; }
.card .sub .price { margin-left: auto; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- list ---------- */

table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 550; font-size: 12px; position: sticky; top: 105px; background: var(--bg); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--surface-2); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- detail panel ---------- */

.panel {
  position: fixed; top: 0; right: 0; z-index: 40;
  width: 380px; max-width: 100vw; height: 100vh;
  overflow-y: auto; padding: 22px;
  background: var(--surface);
  border-left: 1px solid var(--line);
}
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.5); }

.panel .hero {
  width: 150px; aspect-ratio: 3/4;
  object-fit: contain; background: var(--surface-2); border: 1px solid var(--line);
}
.panel h2 { margin: 14px 0 4px; font-size: 18px; }
.panel .sub { color: var(--muted); margin-bottom: 16px; }
.panel label { display: block; margin: 12px 0 5px; color: var(--muted); font-size: 12px; }
.panel input, .panel select, .panel textarea {
  width: 100%; padding: 7px 9px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 7px; font: inherit;
}
.panel textarea { min-height: 66px; resize: vertical; }
.panel .summary { color: var(--muted); font-size: 12.5px; margin: 12px 0; }

/* value block */
.value {
  margin: 14px 0; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.value.unpriced { color: var(--muted); font-size: 12px; }
.value code, .note code { font-size: 11.5px; background: var(--line); padding: 1px 5px; border-radius: 4px; }
.value .est { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.value .est-lbl { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.value .grades { display: flex; gap: 14px; margin-top: 8px; }
.value .grade { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.value .grade.is-est { color: var(--text); font-weight: 600; }
.value .g-lbl { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.value .range { white-space: nowrap; }
.value a { color: var(--accent); text-decoration: none; }
.value a:hover { text-decoration: underline; }

.paid {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: -6px 0 14px; padding: 8px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.paid-amt { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.paid-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.paid-delta { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.paid-delta.up { color: var(--good, #4ade80); }
.paid-delta.down { color: var(--bad, #f87171); }

.paid-edit { display: grid; grid-template-columns: 1.2fr .7fr 1.4fr; gap: 6px; }
.paid-edit input { min-width: 0; }

/* ---- Hardware tab ---- */
.hw-grid {
  display: grid; gap: 18px; padding: 0 16px 20px;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}
/* Collector's tile: big product hero on top, details at the bottom. */
.hw-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.hw-card:hover {
  box-shadow: 0 14px 30px rgba(16, 24, 40, .13);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.hw-hero {
  position: relative; height: 176px; padding: 20px 20px 16px;
  display: flex; align-items: center; justify-content: center;
  /* pure white so white-background product shots blend seamlessly */
  background: #ffffff;
  box-shadow: inset 0 -40px 40px -40px rgba(16, 24, 40, .05);
  border-bottom: 1px solid var(--line);
}
.hw-hero-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(16, 24, 40, .16));
}
.hw-hero-icon { font-size: 58px; opacity: .8; filter: saturate(.9); }
.hw-hero-brand {
  position: absolute; top: 12px; left: 12px; width: 28px; height: 28px; z-index: 2;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(16, 24, 40, .25);
}
/* gallery slider controls */
.hw-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .92); backdrop-filter: blur(2px);
  font-size: 19px; line-height: 1; color: var(--text); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(16, 24, 40, .16); opacity: 0; transition: opacity .12s;
}
.hw-nav.prev { left: 8px; } .hw-nav.next { right: 8px; }
.hw-card:hover .hw-nav { opacity: 1; }
.hw-nav:hover { border-color: var(--accent); color: var(--accent); }
.hw-dots { position: absolute; bottom: 9px; left: 0; right: 0; z-index: 3; display: flex; gap: 6px; justify-content: center; }
.hw-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(16, 24, 40, .22); cursor: pointer; transition: background .12s; }
.hw-dot.on { background: var(--accent); }

.hw-body { padding: 12px 15px 15px; display: flex; flex-direction: column; gap: 5px; }
.hw-name { font-weight: 700; font-size: 15px; line-height: 1.25; letter-spacing: -.1px; }
.hw-ed { font-size: 12px; color: var(--accent); font-weight: 600; }
.hw-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.hw-chip {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hw-chip.val { background: rgba(34, 197, 94, .12); border-color: transparent; color: #16a34a; font-weight: 700; }
.hw-chip.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hw-chip.boxed { font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.hw-chip.boxed.cib { background: rgba(34, 197, 94, .14); border-color: transparent; color: #16a34a; }
.hw-chip.boxed.sealed { background: rgba(96, 165, 250, .16); border-color: transparent; color: #2563eb; }
.hw-chip.boxed.loose { background: var(--surface-2); color: var(--muted); }
.hw-notes { margin-top: 7px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.hw-act {
  position: absolute; top: 10px; right: 10px; display: none; gap: 4px; z-index: 2;
}
.hw-card:hover .hw-act { display: flex; }
.hw-act button {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .92); backdrop-filter: blur(2px);
  border-radius: 7px; padding: 3px 7px; font: inherit; font-size: 12px; cursor: pointer;
  color: var(--text); box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}
.hw-act button:hover { border-color: var(--accent); }
.hw-act button.danger { color: #ef4444; }

.flags { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.flag {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 8px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 6px; font-size: 12px;
}
.flag button {
  border: 0; border-radius: 4px; padding: 1px 7px;
  font: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
  background: var(--line); color: var(--muted);
}
.flag button[data-v="Y"]  { background: var(--ok); color: #fff; }
.flag button[data-v="NA"] { background: var(--line); color: var(--muted); }

.row { display: flex; gap: 8px; margin-top: 18px; }
.row button { flex: 1; padding: 8px; border-radius: 7px; border: 1px solid var(--line);
              background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.row button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.row button.danger:hover { border-color: #dc2626; color: #dc2626; }

/* ---------- stats ---------- */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 14px; margin-bottom: 26px; }
.stat { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat .n { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat .k { color: var(--muted); font-size: 12px; }
.stat.val { background: var(--accent); border-color: var(--accent); }
.stat.val .n, .stat.val .k { color: #fff; }
.note { color: var(--muted); font-size: 12.5px; margin: -12px 0 26px; }

.bars { max-width: 620px; margin-bottom: 26px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 46px; align-items: center; gap: 10px; margin-bottom: 7px; }
.bar-row .k { color: var(--muted); font-size: 12.5px; }
.bar { height: 9px; border-radius: 5px; background: var(--accent); min-width: 2px; }
.bar-row .v { text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; }

h2.section { font-size: 14px; margin: 0 0 12px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.muted { color: var(--muted); font-size: 12.5px; }
.psn-empty { max-width: 460px; margin: 0 auto; }
.psn-empty code { font-size: 11.5px; background: var(--line); padding: 1px 5px; border-radius: 4px; }

/* ---------- PSN trophies ---------- */

/* progress bar + grade pips, shared by the panel block and the Trophies view */
.plat-badge { color: #7c93b8; font-weight: 600; font-size: 11px; }
.pbar { height: 8px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.pbar-fill { height: 100%; background: linear-gradient(90deg, #6ea8fe, var(--accent)); }
.pips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pip { color: var(--text); }
.pip .of { color: var(--muted); }
.troph-pct { color: var(--muted); font-variant-numeric: tabular-nums; }

/* card corner badge */
.troph-badge {
  position: absolute; bottom: 6px; right: 6px;
  padding: 1px 6px; border-radius: 5px; font-size: 10px; font-weight: 600;
  background: rgba(17,20,26,.72); color: #fff; font-variant-numeric: tabular-nums;
}
.troph-badge.done { background: var(--accent); }

/* panel trophy block */
.trophies { margin: 14px 0; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.troph-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.troph-title { font-weight: 600; font-size: 13px; }
.troph-toggle { margin-top: 10px; width: 100%; cursor: pointer; }
.troph-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.troph-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; }
.troph-row img, .troph-row .ticon {
  width: 34px; height: 34px; border-radius: 6px; object-fit: cover;
  display: grid; place-items: center; background: var(--surface); font-size: 18px;
}
.troph-row.locked { opacity: .5; }
.tr-name { font-size: 12.5px; font-weight: 550; }
.tr-detail { font-size: 11.5px; color: var(--muted); }
.tr-meta { text-align: right; font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.tr-rarity { color: var(--accent); font-variant-numeric: tabular-nums; }

/* Trophies view */
.psn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 26px; }
.psn-title { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.psn-icon { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.psn-name { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.psn-plat { color: var(--muted); font-weight: 400; font-size: 11px; margin-left: 6px; }
.psn-title .trophies { margin: 0; padding: 0; background: none; border: 0; }

/* ---------- wishlist ---------- */

.wl-head { margin-bottom: 18px; }
.wl-head button.primary {
  padding: 8px 14px; border-radius: 7px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
table.wl tr { cursor: default; }
.wl .wl-plat { width: 130px; color: var(--muted); }
.wl .wl-act { width: 210px; text-align: right; white-space: nowrap; }
.wl-act button {
  margin-left: 6px; padding: 3px 9px; font: inherit; font-size: 12px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface-2); color: var(--text); cursor: pointer;
}
.wl-act button:hover { border-color: var(--accent); }
.wl-act button.danger:hover { border-color: #dc2626; color: #dc2626; }

/* ---------- stats dashboard (st-) ---------- */

.st-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 22px;
}
.st-tile {
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.st-tile.val { background: var(--accent); border-color: var(--accent); }
.st-tile.val .st-n, .st-tile.val .st-k { color: #fff; }
.st-tile.muted .st-n { color: var(--muted); }
.st-n { font-size: 27px; font-weight: 680; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.st-k { color: var(--muted); font-size: 12px; margin-top: 2px; }

.st-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px; align-items: start;
}
.st-panel {
  padding: 16px 18px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.st-panel h3 {
  margin: 0 0 14px; font-size: 13px; font-weight: 650;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.st-sub { color: var(--muted); font-size: 11px; font-weight: 400; text-align: right; }

.st-bars { display: flex; flex-direction: column; gap: 8px; }
.st-row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; }
.st-lbl { font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-track { height: 8px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.st-fill { display: block; height: 100%; background: var(--accent); border-radius: 5px; min-width: 2px; }
.st-val { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text); text-align: right; min-width: 34px; }
.st-pct { color: var(--muted); margin-left: 6px; font-size: 11px; }

/* completion colours mirror the cover dots */
.st-fill.s-Completed { background: var(--ok); }
.st-fill.s-Playedenough { background: var(--accent); }
.st-fill.s-Playedbutnotended { background: var(--warn); }
.st-fill.s-NotStarted { background: var(--muted); }
.st-fill.s-Dontwanttoplay { background: var(--bad); }
.st-fill.s-Unlogged { background: var(--line); }

.st-facts { display: flex; flex-direction: column; gap: 12px; }
.st-facts > div { display: flex; flex-direction: column; }
.st-facts b { font-size: 20px; font-weight: 680; font-variant-numeric: tabular-nums; }
.st-facts span { color: var(--muted); font-size: 12px; }

.st-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.st-list li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px;
}
.st-list li:last-child { border-bottom: 0; }
.st-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-list li em { color: var(--muted); font-style: normal; font-size: 11.5px; white-space: nowrap; flex-shrink: 0; }
.st-empty { color: var(--muted); font-size: 12px; padding: 8px 0; }

/* ---------- Discover tab (dc-) ---------- */

.dc-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.dc-tab {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--muted); font: inherit; cursor: pointer;
}
.dc-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.dc-h2 { font-size: 15px; margin: 22px 0 12px; }
.dc-lead { color: var(--muted); font-size: 13px; margin: 0 0 14px; }

/* Play next */
.dc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.dc-chip {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer;
}
.dc-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.dc-roll { border-radius: 20px; }

.dc-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.dc-pick {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.dc-pick:hover { border-color: var(--accent); }
.dc-pick img { width: 40px; height: 54px; object-fit: contain; background: var(--surface-2); border-radius: 4px; flex-shrink: 0; }
.dc-pick-body { min-width: 0; flex: 1; }
.dc-pick-title { font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-pick-plat { color: var(--muted); font-size: 11px; flex-shrink: 0; }
.dc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dc-tags span { font-size: 10.5px; color: var(--muted); background: var(--surface-2); border-radius: 4px; padding: 1px 6px; }

.dc-hero {
  display: flex; gap: 18px; align-items: center; margin-bottom: 18px; padding: 16px;
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); cursor: pointer;
}
.dc-hero img { width: 90px; height: 120px; object-fit: contain; background: var(--surface-2); border-radius: 6px; }
.dc-hero-k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.dc-hero-title { font-size: 22px; font-weight: 680; margin: 2px 0 8px; }
.dc-hero-plat { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* Franchises */
.dc-fr-bar { margin-bottom: 12px; }
.dc-fr-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; }
.dc-fr-list li {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding: 5px 0; font-size: 12.5px; border-bottom: 1px solid var(--line);
}
.dc-fr-list li:last-child { border-bottom: 0; }
.dc-fr-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-fr-list li.miss { color: var(--muted); }
.dc-fr-list li.have span { color: var(--text); }
.dc-fr-list li em { font-style: normal; color: var(--muted); font-size: 11px; flex-shrink: 0; }
.dc-sub { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 10px; }

/* Timeline */
.dc-tl { display: flex; flex-direction: column; gap: 7px; }
.dc-tl-row { display: grid; grid-template-columns: 52px 1fr 34px; align-items: center; gap: 10px; }
.dc-tl-yr { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dc-tl-track { display: flex; height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.dc-tl-g { background: var(--accent); height: 100%; }
.dc-tl-m { background: var(--warn); height: 100%; }
.dc-tl-n { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.dc-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }
.dc-key.g { background: var(--accent); }
.dc-key.m { background: var(--warn); }

/* ---------- mode switch ---------- */
.mode-switch {
  display: inline-flex; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px;
}
.mode-btn {
  padding: 7px 16px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.mode-btn.on { background: var(--accent); color: #fff; }
.mode-btn:not(.on):hover { color: var(--text); }

/* ---------- trackers (tk-) ---------- */
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tk-chip {
  padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer;
}
.tk-chip em { font-style: normal; color: var(--muted); margin-left: 5px; font-variant-numeric: tabular-nums; }
.tk-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.tk-chip.on em { color: var(--bg); opacity: .7; }

.tk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.tk-head h2 { margin: 0; font-size: 18px; }
.tk-src { color: var(--muted); font-size: 12px; margin-top: 2px; }
.tk-score { text-align: right; flex-shrink: 0; }
.tk-pct { font-size: 26px; font-weight: 680; font-variant-numeric: tabular-nums; }
.tk-frac { color: var(--muted); font-size: 12px; }
.tk-bar { margin-bottom: 18px; height: 10px; }

.tk-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.tk-list li {
  display: grid; grid-template-columns: 28px 18px 1fr auto; gap: 8px; align-items: baseline;
  padding: 5px 0; font-size: 13px; break-inside: avoid; border-bottom: 1px solid var(--line);
}
.tk-list li.miss { color: var(--muted); }
.tk-list li.have .tk-mark { color: var(--ok); font-weight: 700; }
.tk-list li.miss .tk-mark { color: var(--bad); }
.tk-rank { color: var(--muted); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.tk-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-year { color: var(--muted); font-size: 11px; }
@media (max-width: 720px) { .tk-list { columns: 1; } }

/* ---------- buy list (bl-) ---------- */
.bl-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.bl-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.bl-item {
  display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 16px;
  padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.bl-item:hover { border-color: var(--accent); }
.bl-main { min-width: 0; }
.bl-title { font-size: 13.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.bl-price { font-size: 16px; font-weight: 680; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
.bl-noprice { color: var(--muted); font-weight: 400; }
.bl-buy { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bl-src {
  font-size: 11px; padding: 3px 9px; border-radius: 6px; text-decoration: none;
  background: var(--surface-2); color: var(--accent); border: 1px solid var(--line); white-space: nowrap;
}
.bl-src:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.bl-act { display: flex; gap: 4px; }
.bl-act button {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap;
}
.bl-act button:hover { color: var(--text); border-color: var(--accent); }
.bl-act button.danger:hover { color: #dc2626; border-color: #dc2626; }
@media (max-width: 720px) {
  .bl-item { grid-template-columns: 1fr auto; }
  .bl-buy, .bl-act { grid-column: 1 / -1; justify-content: flex-start; }
}

.bl-priceLink { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.bl-priceLink:hover { color: var(--accent); border-color: var(--accent); }
.dc-chip.cur { background: var(--surface); border-color: var(--accent); color: var(--accent); font-variant-numeric: tabular-nums; }
.dc-chip.cur:hover { background: var(--accent); color: #fff; }

/* ---------- wishlist / buy-list planner + cards ---------- */
.wl-plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.wl-plan-h { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.wl-plan-h h2 { margin: 0; font-size: 17px; }
.wl-plan-budget { color: var(--accent); font-weight: 600; }
.wl-plan-note { color: var(--muted); font-size: 12.5px; }
.wl-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.wl-scn { padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.wl-scn.best { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--surface-2)); }
.wl-scn.save { border-color: var(--accent); }
.wl-scn-k { font-size: 11.5px; color: var(--muted); }
.wl-scn-v { font-size: 22px; font-weight: 680; font-variant-numeric: tabular-nums; margin: 3px 0; }
.wl-scn-d { font-size: 11.5px; color: var(--muted); }
.wl-plan-tip { margin: 14px 0 0; font-size: 12.5px; color: var(--text); background: var(--surface-2); padding: 10px 12px; border-radius: 8px; }

.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 16px; }
.wl-card { position: relative; }
.wl-art {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.wl-art img { width: 100%; height: 100%; object-fit: contain; }
.wl-art .initials { font-size: 26px; font-weight: 700; color: var(--muted); text-align: center; padding: 8px; }
.wl-score {
  position: absolute; top: 6px; right: 6px; min-width: 24px; text-align: center;
  padding: 2px 6px; border-radius: 5px; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--bad); box-shadow: 0 0 0 2px #fff;
}
.wl-score.hi { background: var(--ok); }
.wl-score.mid { background: var(--accent); }
.wl-score.lo { background: var(--warn); }
.wl-hover {
  position: absolute; inset: auto 0 0 0; display: flex; gap: 4px; justify-content: center;
  padding: 6px; background: linear-gradient(transparent, rgba(0,0,0,.72));
  opacity: 0; transition: opacity .12s;
}
.wl-card:hover .wl-hover { opacity: 1; }
.wl-hover button { border: 0; border-radius: 5px; padding: 4px 7px; font-size: 11px; cursor: pointer; background: #fff; color: #1c2027; }
.wl-hover button.danger:hover { background: #dc2626; color: #fff; }
.wl-name { margin: 8px 0 2px; font-size: 12.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-row { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.wl-buy { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.wl-buy .bl-src { font-size: 10px; padding: 2px 6px; }

/* ---------- wishlist deals strip ---------- */
.wl-deals { background: color-mix(in srgb, var(--warn) 8%, var(--surface)); border: 1px solid var(--warn); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; }
.wl-deals h2 { margin: 0 0 12px; font-size: 15px; }
.wl-deals-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.wl-deal { display: block; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); }
.wl-deal:hover { border-color: var(--warn); }
.wl-deal-t { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-ce { font-size: 9px; background: var(--accent); color: #fff; padding: 1px 4px; border-radius: 3px; vertical-align: middle; }
.wl-deal-p { font-size: 14px; font-weight: 680; margin: 3px 0; font-variant-numeric: tabular-nums; }
.wl-deal-u { font-size: 11px; font-weight: 500; color: var(--ok); margin-left: 4px; }
.wl-deal-s { font-size: 11px; color: var(--muted); }

/* ---------- intake modal (ik-) ---------- */
.ik-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 20px; }
.ik-modal { width: 520px; max-width: 100%; max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.ik-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 0; }
.ik-tabs { display: flex; gap: 4px; }
.ik-tabs button { padding: 7px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.ik-tabs button.on { background: var(--accent); color: #fff; }
.ik-x { border: 0; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px 8px; }
.ik-body { padding: 6px 18px 4px; }
.ik-body label { display: block; margin: 12px 0 5px; color: var(--muted); font-size: 12px; }
.ik-body input, .ik-body select, .ik-body textarea {
  width: 100%; padding: 8px 10px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; font: inherit;
}
.ik-body textarea { resize: vertical; min-height: 60px; }
.ik-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.ik-3 { display: grid; grid-template-columns: 1fr .7fr 1.1fr; gap: 10px; align-items: end; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { padding: 6px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; }
.ik-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 18px; }
.ik-msg { color: #dc2626; font-size: 12.5px; }
.ik-foot .primary { padding: 9px 18px; border-radius: 9px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.ik-body .muted { color: var(--muted); font-weight: 400; }

/* ---------- hardware resale value + PC components ---------- */
.hw-total { font-size: 15px; font-weight: 680; font-variant-numeric: tabular-nums; }
.hw-total .muted { font-weight: 400; font-size: 12px; }
.hw-chip.val { background: color-mix(in srgb, var(--ok) 14%, var(--surface-2)); color: var(--ok); font-weight: 650; border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.hw-comps { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.hw-comp { display: grid; grid-template-columns: 68px 1fr auto auto; align-items: baseline; gap: 8px; font-size: 12px; }
.hw-comp-kind { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .4px; }
.hw-comp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-comp-name em { color: var(--muted); font-style: normal; font-size: 11px; }
.hw-comp-val { font-variant-numeric: tabular-nums; font-weight: 600; }
.hw-comp-edit { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; padding: 0 2px; }
.hw-comp-edit:hover { color: var(--accent); }
.hw-comp-add { font-size: 11px; padding: 3px 8px; align-self: start; margin-top: 2px; }

/* ---------- hardware v2: PC detail + accessories ---------- */
/* ---- Home dashboard ---- */
.dash { max-width: 1100px; margin: 0 auto; padding: 4px 2px 40px; }
.dash-hero {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: stretch;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface-2)), var(--surface-2));
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; margin-bottom: 18px;
}
.dash-hero-main { flex: 2 1 320px; }
.dash-hero-want { flex: 1 1 200px; border-left: 1px solid var(--line); padding-left: 20px; }
.dash-hero-want { align-self: center; }
.dash-hero-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dash-hero-val { font-size: 40px; font-weight: 800; line-height: 1.1; margin-top: 4px; }
.dash-hero-val.small { font-size: 26px; }
.dash-hero-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.dash-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.dash-cat {
  text-align: left; cursor: pointer; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font: inherit; color: var(--text);
  transition: border-color .12s, transform .12s;
}
.dash-cat:hover { border-color: var(--accent); transform: translateY(-2px); }
.dash-cat-h { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; }
.dash-cat-ic { font-size: 18px; }
.dash-cat-v { font-size: 24px; font-weight: 800; margin-top: 8px; }
.dash-cat-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dash-cat-top { font-size: 11.5px; color: var(--muted); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash-panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.dash-h2 { font-size: 14px; font-weight: 700; margin: 2px 0 10px; }
.dash-mv-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.dash-mv-head .dash-h2 { margin: 2px 0; }
.dash-mv-tabs { display: flex; gap: 4px; }
.dash-mv-tab { border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 20px; padding: 3px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.dash-mv-tab.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.dash-mv { margin-top: 8px; }
.dash-empty { color: var(--muted); font-size: 13px; padding: 14px 2px; }
.dash-mv-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.dash-mv-row:first-child { border-top: 0; }
.dash-mv-rank { width: 18px; color: var(--muted); font-size: 12px; text-align: center; }
.dash-mv-ic { font-size: 15px; }
.dash-mv-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.dash-mv-cat { font-size: 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1px 9px; }
.dash-mv-val { font-weight: 700; font-size: 13.5px; min-width: 74px; text-align: right; }
.dash-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; }

.brand-ic { width: 15px; height: 15px; border-radius: 50%; vertical-align: -3px; margin-right: 5px; }
/* Buyer shopping list modal */
.buyer-modal { width: 560px; max-width: 100%; }
.buyer-chips { display: flex; gap: 14px; flex-wrap: wrap; padding: 6px 18px 4px; font-size: 13px; }
.buyer-chips label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.buyer-text {
  width: calc(100% - 36px); margin: 8px 18px; height: 340px; resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.5;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  background: var(--surface-2); color: var(--text);
}
.hw-card.pc { cursor: pointer; }
.hw-notes.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hw-open { margin-top: 8px; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 2px 0; text-align: left; }
.hw-chip.bad { background: color-mix(in srgb, #dc2626 12%, var(--surface-2)); color: #dc2626; }
.hw-chip.warn { background: color-mix(in srgb, var(--warn) 14%, var(--surface-2)); color: var(--warn); }

.pcd-modal { width: 820px; max-width: 100%; }
/* PC build as its own drill-down page */
.pcpage { max-width: 980px; margin: 0 auto; padding: 2px 2px 40px; }
.pcpage-back { border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  border-radius: 7px; padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.pcpage-back:hover { border-color: var(--accent); color: var(--accent); }
.pcpage-head { margin: 14px 2px 4px; }
.pcpage-head h2 { margin: 0; font-size: 20px; }
.pcpage-head .muted { font-size: 12.5px; margin-top: 2px; }
.pcpage .pcd-cols { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }

/* Hardware/accessory detail page */
.hwp { max-width: 1000px; margin: 0 auto; padding: 2px 2px 44px; }
.hwp-main { display: grid; grid-template-columns: minmax(0, 1.05fr) 1fr; gap: 26px; margin-top: 14px; align-items: start; }
.hwp-media .hw-hero {
  height: 360px; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: inset 0 -60px 60px -60px rgba(16, 24, 40, .06);
}
.hwp-media .hw-hero .hw-nav { opacity: 1; }        /* always show arrows on the page */
.hwp-media .hw-hero-img { filter: drop-shadow(0 12px 20px rgba(16, 24, 40, .2)); }
.hwp-photobar { display: flex; gap: 8px; margin-top: 12px; }
.hwp-photobar .dc-chip { cursor: pointer; }
.hwp-info { padding-top: 4px; }
.hwp-title { font-size: 26px; margin: 0; letter-spacing: -.3px; }
.hwp-sub { color: var(--accent); font-weight: 600; margin-top: 4px; font-size: 14px; }
.hwp-info .hw-meta { margin: 12px 0; }
.hwp-desc { font-size: 14px; line-height: 1.6; color: var(--text); margin-top: 12px; }
.hwp-descedit { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.hwp-descedit:hover { color: var(--accent); }
.hwp-notes { margin-top: 14px; font-size: 13px; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; line-height: 1.5; }
.hwp .pcd-cols { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; margin-top: 22px; }
@media (max-width: 720px) { .hwp-main { grid-template-columns: 1fr; } .hwp-media .hw-hero { height: 280px; } }
.pcd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 8px 18px 20px; }
.pcd-cols h3 { font-size: 13px; margin: 0 0 10px; display: flex; justify-content: space-between; }
.pcd-cols section:last-child { border-left: 1px solid var(--line); padding-left: 18px; }
.pcd-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.pcd-row { display: grid; grid-template-columns: 82px 1fr auto auto; gap: 10px; align-items: baseline; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pcd-row.upg { align-items: start; }
.pcd-kind { color: var(--muted); font-size: 9.5px; text-transform: uppercase; letter-spacing: .3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcd-name { overflow: hidden; text-overflow: ellipsis; }
.pcd-name em { color: var(--muted); font-style: normal; font-size: 11px; }
.pcd-val { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.pcd-edit, .pcd-uedit { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.pcd-edit:hover, .pcd-uedit:hover { color: var(--accent); }
.pcd-links { display: flex; gap: 5px; margin: 4px 0; }
.pcd-net { font-size: 11px; color: var(--muted); }
.pcd-net b { color: var(--ok); }
.pcd-addpart, .pcd-addupg { cursor: pointer; }
.bl-src.price { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); border-color: transparent; color: var(--ok); font-weight: 700; }
.pcd-tier { margin-bottom: 12px; }
.pcd-tier-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; color: var(--accent); padding: 6px 0 4px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
@media (max-width: 680px) {
  .pcd-cols { grid-template-columns: 1fr; }
  .pcd-cols section:last-child { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
}
