/* =====================================================================
   AS Computers design system
   1. Tokens  2. Base  3. Layout  4. Header/nav  5. Buttons  6. Forms
   7. Cards & components  8. Page sections  9. Account  10. Footer  11. Utilities
   ===================================================================== */

/* 1. Tokens ----------------------------------------------------------- */
:root {
  --ink: #0b1120;
  --ink-2: #151d33;
  --ink-3: #222c47;
  --text: #182033;
  --muted: #5a6478;
  --subtle: #8a93a6;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --border: #e1e5ee;
  --border-strong: #c9cfdc;

  --brand: #3355ff;
  --brand-600: #2542e0;
  --brand-700: #1c33b8;
  --brand-50: #eef1ff;
  --brand-100: #dde3ff;
  --accent: #00c2a8;
  --accent-50: #e3faf6;

  --success: #11845a;  --success-50: #e7f6ef;
  --warning: #a86200;  --warning-50: #fff4e0;
  --danger:  #cc2f27;  --danger-50:  #fdeceb;
  --info:    #2458d6;  --info-50:    #eaf0fe;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-md: 1rem; --fs-lg: 1.125rem;
  --fs-xl: 1.375rem; --fs-2xl: 1.75rem; --fs-3xl: clamp(2rem, 4vw, 2.75rem); --fs-hero: clamp(2.25rem, 5.5vw, 3.75rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 6rem;

  --radius-sm: 6px; --radius: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11,17,32,.06);
  --shadow: 0 1px 3px rgba(11,17,32,.06), 0 6px 16px rgba(11,17,32,.06);
  --shadow-lg: 0 12px 40px rgba(11,17,32,.14);
  --ring: 0 0 0 3px rgba(51,85,255,.35);

  --container: 1200px;
  --header-h: 68px;
}

/* 2. Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--space-3); color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: var(--fs-3xl); font-weight: 800; }
h2 { font-size: var(--fs-2xl); font-weight: 750; }
h3 { font-size: var(--fs-xl); font-weight: 700; }
h4 { font-size: var(--fs-lg); font-weight: 650; }
p { margin: 0 0 var(--space-4); }
a { color: var(--brand-600); text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-3); color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 768px) { .container { padding-inline: var(--space-5); } }
.container-narrow { max-width: 760px; }
.container-form { max-width: 480px; }
.section { padding-block: var(--space-8); }
.section-sm { padding-block: var(--space-6); }
.section-head { max-width: 640px; margin-bottom: var(--space-6); }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: var(--space-2);
}
.lead { font-size: var(--fs-lg); color: var(--muted); }
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.stack > * + * { margin-top: var(--space-4); }
.row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.page-head { padding-block: var(--space-6) var(--space-5); }
.page-head p { color: var(--muted); margin: 0; }

/* 4. Header & navigation ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--space-5); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 36px; height: 36px; }
.logo-text { font-weight: 800; font-size: 1.125rem; letter-spacing: -.02em; }
.logo-text span { color: var(--brand); }

.main-nav { flex: 1; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); }
.nav-list a {
  display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  color: var(--text); font-weight: 550; font-size: var(--fs-sm); text-decoration: none;
}
.nav-list a:hover { background: var(--surface-2); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--brand-600); background: var(--brand-50); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--radius); color: var(--text); background: transparent; border: 0; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .count {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; color: #fff;
  background: var(--brand); border-radius: var(--radius-pill);
}
.nav-toggle { display: none; }

.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu .menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--space-2);
}
.account-menu .menu a, .account-menu .menu button {
  display: block; width: 100%; text-align: left; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font: inherit; font-size: var(--fs-sm); background: none; border: 0; cursor: pointer;
}
.account-menu .menu a:hover, .account-menu .menu button:hover { background: var(--surface-2); }
.account-menu .menu .menu-head { padding: var(--space-2) var(--space-3); font-size: var(--fs-xs); color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: var(--space-1); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--surface); padding: var(--space-4);
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
    overflow-y: auto; border-top: 1px solid var(--border);
  }
  .main-nav.open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; gap: var(--space-1); }
  .nav-list a { padding: var(--space-3) var(--space-4); font-size: var(--fs-lg); }
  .hide-mobile { display: none !important; }
  body.nav-open { overflow: hidden; }
}

/* 5. Buttons ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: .625rem 1.125rem; font: inherit; font-weight: 650; font-size: var(--fs-sm); line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-border); border-radius: var(--radius);
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { --btn-bg: var(--brand); --btn-fg: #fff; --btn-border: var(--brand); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-border: var(--ink); }
.btn-dark:hover { background: var(--ink-3); }
.btn-accent { --btn-bg: var(--accent); --btn-fg: var(--ink); --btn-border: var(--accent); }
.btn-accent:hover { background: #00ad96; }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-border: var(--danger); }
.btn-danger:hover { background: #b0261f; }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; }
.btn-on-dark { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-border: rgba(255,255,255,.25); }
.btn-on-dark:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: var(--fs-md); }
.btn-sm { min-height: 36px; padding: .4rem .8rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::before {
  content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite;
}
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-600); text-decoration: underline; cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 6. Forms ------------------------------------------------------------ */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow); }
@media (max-width: 520px) { .form-card { padding: var(--space-5) var(--space-4); } }
.field { margin-bottom: var(--space-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
label, .label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--space-1); color: var(--ink); }
.hint { font-size: var(--fs-xs); color: var(--muted); margin: var(--space-1) 0 0; }
.optional { font-weight: 400; color: var(--subtle); }
.input, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"],
input[type="search"], input[type="url"], select, textarea {
  display: block; width: 100%; min-height: 46px; padding: .625rem .875rem; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: var(--fs-xs); font-weight: 600; margin: var(--space-1) 0 0; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 400; font-size: var(--fs-sm); color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--brand); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 76px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 34px; padding: 0 .6rem;
  background: var(--surface-2); border: 0; border-radius: var(--radius-sm); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; color: var(--text);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: var(--space-5); text-align: center; font-size: var(--fs-sm); color: var(--muted); }

/* 7. Cards & components ----------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.card-title { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.card-link { text-decoration: none; color: inherit; display: block; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card-link:hover { color: inherit; box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }

.alert { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius); border: 1px solid; font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.alert p { margin: 0; flex: 1; }
.alert-success { background: var(--success-50); border-color: #b8e3cf; color: #0a5a3d; }
.alert-error   { background: var(--danger-50); border-color: #f4c4c1; color: #8f1f19; }
.alert-warning { background: var(--warning-50); border-color: #f3d49b; color: #6e4000; }
.alert-info    { background: var(--info-50); border-color: #c4d4fb; color: #183d98; }
.alert-close { background: none; border: 0; font-size: 1.25rem; line-height: 1; cursor: pointer; color: inherit; opacity: .7; padding: 0 var(--space-1); }
.flash-stack { padding-top: var(--space-4); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 650; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.badge-brand { background: var(--brand-50); color: var(--brand-700); }
.badge-success { background: var(--success-50); color: var(--success); }
.badge-warning { background: var(--warning-50); color: var(--warning); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-accent { background: var(--accent-50); color: #007a6a; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 650; color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

.empty-state { text-align: center; padding: var(--space-7) var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto var(--space-3); color: var(--subtle); }
.empty-state h3 { font-size: var(--fs-lg); }
.empty-state p { color: var(--muted); max-width: 420px; margin-inline: auto; }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, #e7eaf1 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* PC listing card */
.pc-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.pc-card-media { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; color: var(--subtle); overflow: hidden; }
.pc-card-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-card-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.pc-card-title { font-size: var(--fs-md); font-weight: 700; margin: 0; color: var(--ink); }
.pc-card-specs { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.pc-card-price { font-size: var(--fs-xl); font-weight: 800; color: var(--ink); margin-top: auto; }

/* 8. Page sections ---------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: #dfe4f2; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(51,85,255,.45), transparent 60%),
    radial-gradient(40% 60% at 10% 100%, rgba(0,194,168,.22), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-7); align-items: center; padding-block: var(--space-9) var(--space-8); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; padding-block: var(--space-7); gap: var(--space-6); } }
.hero h1 { font-size: var(--fs-hero); color: #fff; letter-spacing: -.03em; line-height: 1.05; margin-bottom: var(--space-4); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7d95ff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #b7c0d6; max-width: 540px; }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-6); padding: 0; list-style: none; font-size: var(--fs-sm); color: #aab4cc; }
.hero-trust li { display: flex; align-items: center; gap: var(--space-2); }
.hero-trust svg { width: 18px; height: 18px; color: var(--accent); }

.hero-panel { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: var(--space-5); backdrop-filter: blur(6px); }
.hero-panel h2 { color: #fff; font-size: var(--fs-lg); margin-bottom: var(--space-4); }
.hero-choice { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4); border-radius: var(--radius); text-decoration: none; color: #e6eaf5; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); transition: background .15s, border-color .15s; }
.hero-choice + .hero-choice { margin-top: var(--space-3); }
.hero-choice:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.25); color: #fff; }
.hero-choice strong { display: block; color: #fff; }
.hero-choice small { color: #9ea8c0; font-size: var(--fs-xs); }
.hero-choice .ico { width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; flex-shrink: 0; background: rgba(51,85,255,.25); color: #b4c2ff; }
.hero-choice .ico svg { width: 22px; height: 22px; }
.hero-choice .arrow { margin-left: auto; opacity: .6; }

.service-card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--space-4); background: var(--brand-50); color: var(--brand-600); }
.service-card .ico svg { width: 26px; height: 26px; }
.service-card.teal .ico { background: var(--accent-50); color: #008f7c; }
.service-card.ink .ico { background: var(--ink); color: #fff; }
.service-card p { color: var(--muted); font-size: var(--fs-sm); }
.service-card ul { padding-left: 1.1rem; margin: 0 0 var(--space-4); font-size: var(--fs-sm); color: var(--text); }
.service-card ul li { margin-bottom: var(--space-1); }
.service-card .more { font-weight: 650; text-decoration: none; }

.steps { counter-reset: step; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: var(--space-7); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-size: var(--fs-2xl); font-weight: 800; color: var(--brand); }
.steps h3 { font-size: var(--fs-lg); }
.steps p { color: var(--muted); font-size: var(--fs-sm); }

.band { background: var(--surface); border-block: 1px solid var(--border); }
.band-dark { background: var(--ink-2); color: #c8d0e3; }
.band-dark h2, .band-dark h3 { color: #fff; }
.cta { background: linear-gradient(120deg, var(--brand-700), var(--brand) 60%, #4b6bff); color: #e8ecff; border-radius: var(--radius-lg); padding: var(--space-7) var(--space-6); display: grid; grid-template-columns: 1fr auto; gap: var(--space-5); align-items: center; }
.cta h2 { color: #fff; margin-bottom: var(--space-2); }
.cta p { margin: 0; color: #d6ddff; }
@media (max-width: 720px) { .cta { grid-template-columns: 1fr; padding: var(--space-6) var(--space-5); } }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.feature-list li { display: flex; gap: var(--space-3); }
.feature-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.feature-list strong { display: block; color: #fff; }
.feature-list span { font-size: var(--fs-sm); }

/* 9. Account ---------------------------------------------------------- */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-6); align-items: start; padding-block: var(--space-6) var(--space-8); }
@media (max-width: 860px) { .account-layout { grid-template-columns: 1fr; gap: var(--space-4); } }
.account-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-2); position: sticky; top: calc(var(--header-h) + var(--space-4)); }
.account-nav ul { list-style: none; margin: 0; padding: 0; }
.account-nav a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 550; }
.account-nav a:hover { background: var(--surface-2); }
.account-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }
.account-nav svg { width: 18px; height: 18px; opacity: .8; }
.account-nav .soon { margin-left: auto; font-size: 10px; color: var(--subtle); font-weight: 600; text-transform: uppercase; }
@media (max-width: 860px) {
  .account-nav { position: static; overflow-x: auto; }
  .account-nav ul { display: flex; gap: var(--space-1); }
  .account-nav a { white-space: nowrap; }
  .account-nav .soon { display: none; }
}
.stat-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: var(--space-6); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); text-decoration: none; color: inherit; }
a.stat:hover { border-color: var(--border-strong); color: inherit; }
.stat .label { color: var(--muted); font-weight: 550; font-size: var(--fs-xs); margin: 0; }
.stat .value { font-size: var(--fs-2xl); font-weight: 800; color: var(--ink); line-height: 1.2; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: var(--space-5); }
.panel-head { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.panel-head h2 { font-size: var(--fs-lg); margin: 0; }
.panel-body { padding: var(--space-5); }
.panel-danger { border-color: #f1c3c0; }
.address-card { position: relative; }
.address-card address { font-style: normal; color: var(--text); font-size: var(--fs-sm); line-height: 1.7; margin-bottom: var(--space-4); }

/* 10. Footer ---------------------------------------------------------- */
.site-footer { background: var(--ink); color: #9aa4bb; font-size: var(--fs-sm); margin-top: auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-6); padding-block: var(--space-8) var(--space-6); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.site-footer .logo { color: #fff; }
.site-footer h2 { font-size: var(--fs-sm); color: #fff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: var(--space-2); }
.site-footer a { color: #c3cbdd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: var(--space-5); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--fs-xs); }
.pay-badges { display: flex; gap: var(--space-2); align-items: center; }
.pay-badges span { border: 1px solid rgba(255,255,255,.18); border-radius: 4px; padding: 1px 6px; font-weight: 700; font-size: 10px; letter-spacing: .04em; color: #c3cbdd; }

/* 11. Utilities ------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); }
.w-full { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .account-nav, .btn, .skip-link { display: none !important; }
  body { background: #fff; }
}
.show-mobile-only { display: none; }
@media (max-width: 960px) { .show-mobile-only { display: block; } }
.h3 { font-size: var(--fs-xl); }
[data-center] { justify-content: center; }
.debug-trace { text-align: left; background: var(--ink); color: #e3e8f5; padding: var(--space-4); border-radius: var(--radius); overflow-x: auto; font-size: 12px; margin-top: var(--space-6); font-family: var(--mono); }
.nav-list a { white-space: nowrap; }
.band-dark .eyebrow, .hero .eyebrow { color: #7fe3d4; }
@media (min-width: 961px) and (max-width: 1100px) { .nav-list a { padding-inline: var(--space-2); } .header-inner { gap: var(--space-3); } }
/* backdrop-filter creates a containing block that traps the fixed mobile menu, so drop it on small screens */
@media (max-width: 960px) { .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; } }

/* =====================================================================
   Phase 2: marketplace, listings, messaging, admin, invoices
   ===================================================================== */

/* Marketplace layout */
.market-head { padding-block: var(--space-6) var(--space-4); }
.market-search { display: flex; gap: var(--space-2); max-width: 720px; }
.market-search input { flex: 1; }
.market-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-6); align-items: start; padding-bottom: var(--space-8); }
@media (max-width: 900px) { .market-layout { grid-template-columns: 1fr; gap: var(--space-4); } }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); position: sticky; top: calc(var(--header-h) + var(--space-4)); max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto; }
.filters summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; font-size: 1.25rem; color: var(--muted); }
.filters[open] summary::after { content: "\2212"; }
@media (min-width: 901px) { .filters summary { pointer-events: none; } .filters summary::after { display: none; } }
@media (max-width: 900px) { .filters { position: static; max-height: none; } }
.filter-group { border-top: 1px solid var(--border); padding-top: var(--space-3); margin-top: var(--space-3); }
.filter-group legend, .filter-group .label { font-weight: 650; font-size: var(--fs-sm); margin-bottom: var(--space-2); padding: 0; }
fieldset.filter-group { border-left: 0; border-right: 0; border-bottom: 0; margin-inline: 0; padding-inline: 0; min-width: 0; }
.filter-group .check { margin-bottom: var(--space-1); font-size: var(--fs-sm); }
.filter-group .check input { width: 18px; height: 18px; margin-top: 3px; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.filters select, .filters input[type="number"] { min-height: 40px; font-size: var(--fs-sm); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.results-bar select { width: auto; min-height: 40px; font-size: var(--fs-sm); }
.results-bar p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.active-filters { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 12px; background: var(--brand-50); color: var(--brand-700); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; }
.chip:hover { background: var(--brand-100); color: var(--brand-700); }
.chip span { font-size: 1rem; line-height: 1; }

/* Listing cards */
.pc-card { position: relative; }
.pc-card .save-form { position: absolute; top: 10px; right: 10px; z-index: 2; }
.save-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); border: 1px solid var(--border); cursor: pointer; color: var(--text); box-shadow: var(--shadow-sm); }
.save-btn svg { width: 20px; height: 20px; }
.save-btn[aria-pressed="true"] { color: #e0245e; }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }
.pc-card-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); color: var(--muted); }
.pc-card-media { position: relative; }
.pc-card-media .badge { position: absolute; left: 10px; top: 10px; }
.pc-card-title a { color: inherit; text-decoration: none; }
.pc-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pc-card:focus-within { box-shadow: var(--ring); }

/* Pagination */
.pagination { display: flex; gap: var(--space-1); justify-content: center; margin-top: var(--space-6); flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 var(--space-3); display: inline-grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 600; font-size: var(--fs-sm); }
.pagination a:hover { border-color: var(--border-strong); }
.pagination [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Listing detail page */
.breadcrumb { font-size: var(--fs-sm); color: var(--muted); padding-top: var(--space-5); }
.breadcrumb a { color: var(--muted); }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-4) var(--space-7); align-items: start; }
@media (max-width: 900px) { .listing-layout { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 4 / 3; background: var(--surface-2); border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery-main svg { width: 64px; height: 64px; color: var(--subtle); }
.gallery-thumbs { display: flex; gap: var(--space-2); margin-top: var(--space-3); overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs a { flex: 0 0 76px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; background: var(--surface-2); }
.gallery-thumbs a[aria-current="true"] { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
@media (max-width: 900px) { .buy-box { position: static; } }
.buy-box h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--space-2); }
.price-lg { font-size: 2rem; font-weight: 800; color: var(--ink); margin: var(--space-2) 0; letter-spacing: -.02em; }
.meta-list { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: var(--space-2); font-size: var(--fs-sm); }
.meta-list li { display: flex; gap: var(--space-2); align-items: center; }
.meta-list svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.spec-table th { width: 38%; text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); color: var(--muted); background: transparent; font-weight: 600; }
.spec-table td { font-weight: 550; }
.description { white-space: pre-line; overflow-wrap: anywhere; }
.seller-card { display: flex; gap: var(--space-3); align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); font-weight: 800; flex-shrink: 0; }
.avatar-brand { background: var(--ink); color: #fff; }
.safety { background: var(--accent-50); border: 1px solid #b7eee4; border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-size: var(--fs-sm); color: #075e52; }
.safety strong { color: #04463d; }
.owner-bar { background: var(--ink-2); color: #dfe4f2; border-radius: var(--radius); padding: var(--space-3) var(--space-4); display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: var(--space-4); }
.owner-bar p { margin: 0; }
details.disclosure { border-top: 1px solid var(--border); padding-top: var(--space-3); margin-top: var(--space-4); }
details.disclosure summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); color: var(--muted); }

/* Listing form & photos */
.form-section { margin-bottom: var(--space-5); }
.form-section h2 { font-size: var(--fs-lg); margin-bottom: var(--space-1); }
.form-section > p { color: var(--muted); font-size: var(--fs-sm); }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 700px) { .field-row-3 { grid-template-columns: 1fr; } }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.input-prefix input { padding-left: 28px; }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: var(--fs-sm); pointer-events: none; }
.steps-nav { display: flex; gap: var(--space-2); list-style: none; padding: 0; margin: 0 0 var(--space-5); flex-wrap: wrap; font-size: var(--fs-sm); }
.steps-nav li { display: flex; align-items: center; gap: var(--space-2); color: var(--muted); }
.steps-nav li + li::before { content: ""; width: 24px; height: 1px; background: var(--border-strong); }
.steps-nav .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); font-weight: 700; font-size: 12px; }
.steps-nav [aria-current="step"] { color: var(--ink); font-weight: 650; }
.steps-nav [aria-current="step"] .num { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps-nav .done .num { background: var(--success-50); border-color: var(--success); color: var(--success); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.photo-tile { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.photo-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-tile .actions { display: flex; gap: 4px; padding: 6px; justify-content: space-between; align-items: center; }
.photo-tile form { margin: 0; }
.dropzone { border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-4); text-align: center; background: var(--surface); }
.dropzone svg { width: 40px; height: 40px; margin: 0 auto var(--space-2); color: var(--brand); }
.dropzone input[type="file"] { display: block; margin: var(--space-3) auto; max-width: 100%; font: inherit; font-size: var(--fs-sm); }
.listing-row { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4); border-bottom: 1px solid var(--border); }
.listing-row:last-child { border-bottom: 0; }
.listing-row .thumb { width: 96px; height: 72px; border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; display: grid; place-items: center; color: var(--subtle); }
.listing-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-row .thumb svg { width: 28px; height: 28px; }
.listing-row h3 { font-size: var(--fs-md); margin: 0 0 4px; }
.listing-row .meta { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.listing-row .row-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: flex-end; }
.listing-row .row-actions form { margin: 0; }
.listing-row .note { grid-column: 2 / -1; margin: 0; }
@media (max-width: 700px) {
  .listing-row { grid-template-columns: 72px 1fr; }
  .listing-row .thumb { width: 72px; height: 56px; }
  .listing-row .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .listing-row .note { grid-column: 1 / -1; }
}
.limit-meter { height: 8px; background: var(--surface-2); border-radius: var(--radius-pill); overflow: hidden; margin-top: var(--space-2); }
.limit-meter span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }

/* Sell page comparison */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-5); }
.compare .card { display: flex; flex-direction: column; padding: var(--space-6); }
.compare .card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.compare .price-note { font-size: var(--fs-2xl); font-weight: 800; color: var(--ink); margin: var(--space-2) 0; }
.tick-list { list-style: none; padding: 0; margin: var(--space-4) 0 var(--space-5); display: grid; gap: var(--space-2); font-size: var(--fs-sm); flex: 1; }
.tick-list li { display: flex; gap: var(--space-2); }
.tick-list svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 3px; }

/* Messaging */
.inbox-item { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.inbox-item:last-child { border-bottom: 0; }
.inbox-item:hover { background: var(--surface-2); color: inherit; }
.inbox-item .thumb { width: 64px; height: 48px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.inbox-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.inbox-item h3 { font-size: var(--fs-sm); margin: 0; }
.inbox-item p { margin: 0; font-size: var(--fs-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52ch; }
.inbox-item.unread h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 6px; vertical-align: middle; }
.thread { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); max-height: 60vh; overflow-y: auto; background: var(--surface-2); }
.bubble { max-width: 78%; padding: var(--space-3) var(--space-4); border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); white-space: pre-line; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); border-bottom-right-radius: 4px; }
.bubble.theirs { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble time { display: block; font-size: 11px; opacity: .75; margin-top: 4px; }
.reply-box { display: flex; gap: var(--space-2); padding: var(--space-4); border-top: 1px solid var(--border); align-items: flex-end; }
.reply-box textarea { min-height: 52px; height: 52px; flex: 1; }

/* Admin */
.admin-bar { background: var(--ink); color: #c8d0e3; font-size: var(--fs-xs); padding: 6px 0; }
.admin-bar strong { color: #fff; }
.review-actions { display: grid; gap: var(--space-4); }
.count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; margin-left: auto; }
.tabs { display: flex; gap: var(--space-1); flex-wrap: wrap; margin-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.tabs a { padding: var(--space-2) var(--space-3); text-decoration: none; color: var(--muted); font-weight: 600; font-size: var(--fs-sm); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--brand-700); border-color: var(--brand); }
.audit-list { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.audit-list li { padding: var(--space-2) 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: var(--space-3); }
.audit-list li:last-child { border-bottom: 0; }
.audit-list code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.line-row { display: grid; grid-template-columns: 1fr 80px 130px; gap: var(--space-3); margin-bottom: var(--space-2); }
@media (max-width: 600px) { .line-row { grid-template-columns: 1fr 70px 100px; gap: var(--space-2); } }

/* Printable invoice */
.invoice-page { max-width: 820px; margin: var(--space-6) auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-7); box-shadow: var(--shadow); }
@media (max-width: 700px) { .invoice-page { padding: var(--space-5) var(--space-4); margin: var(--space-4) var(--space-3); } }
.invoice-top { display: flex; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-6); }
.invoice-top h1 { font-size: var(--fs-2xl); margin: 0; }
.invoice-meta { text-align: right; font-size: var(--fs-sm); }
.invoice-meta dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 2px var(--space-3); }
.invoice-meta dt { color: var(--muted); }
.invoice-meta dd { margin: 0; font-weight: 600; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-bottom: var(--space-6); font-size: var(--fs-sm); }
.invoice-parties h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: var(--space-2); }
.invoice-parties address { font-style: normal; white-space: pre-line; }
.invoice-table td.num, .invoice-table th.num { text-align: right; white-space: nowrap; }
.invoice-totals { margin-left: auto; width: min(100%, 320px); margin-top: var(--space-4); font-size: var(--fs-sm); }
.invoice-totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.invoice-totals .grand { border-top: 2px solid var(--ink); font-size: var(--fs-lg); font-weight: 800; margin-top: 4px; padding-top: 10px; }
.invoice-foot { margin-top: var(--space-7); font-size: var(--fs-xs); color: var(--muted); border-top: 1px solid var(--border); padding-top: var(--space-4); }
.print-toolbar { max-width: 820px; margin: var(--space-5) auto 0; display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding: 0 var(--space-3); }
.print-toolbar form { margin: 0; }
@media print {
  .print-toolbar { display: none !important; }
  .invoice-page { border: 0; box-shadow: none; margin: 0; padding: 0; max-width: none; }
}
/* Phase 2 visual fixes */
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-lg svg { width: 20px; height: 20px; }
.pc-card-media > svg { width: 56px; height: 56px; }
fieldset.filter-group { border: 0; border-top: 1px solid var(--border); }
fieldset.filter-group legend { float: left; width: 100%; }
fieldset.filter-group legend + * { clear: both; }
@media (min-width: 901px) { .filters { position: static; max-height: none; overflow: visible; } }
@media (max-width: 480px) {
  .header-inner { gap: var(--space-2); }
  .header-actions { gap: 0; }
  .icon-btn { width: 38px; height: 38px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-text { font-size: 1rem; }
}
@media (max-width: 350px) { .logo-text { display: none; } }
.bubble { white-space: normal; }
.bubble .msg-text { white-space: pre-line; }
.pay-badges { flex-wrap: wrap; }
.account-layout > *, .listing-layout > *, .market-layout > * { min-width: 0; }
@media (max-width: 860px) { .account-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .listing-layout, .market-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .invoice-parties { grid-template-columns: 1fr; } .invoice-meta { text-align: left; } }
.inbox-item { grid-template-columns: 64px minmax(0, 1fr) auto; }
.inbox-item > * { min-width: 0; }
.inbox-item p { max-width: none; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }
.listing-layout { grid-template-areas: "gallery buy" "details buy"; row-gap: var(--space-5); }
.listing-gallery { grid-area: gallery; }
.listing-details { grid-area: details; }
.listing-layout .buy-box { grid-area: buy; }
@media (max-width: 900px) { .listing-layout { grid-template-areas: "gallery" "buy" "details"; } }
/* Fixed-width columns so a single PC doesn't stretch across the whole row */
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   Phase 3: Buy a PC, custom PC builder, selling services, payouts
   ===================================================================== */
.container-mid { max-width: 820px; }
.hero-compact .hero-inner { padding-block: var(--space-8) var(--space-7); }
@media (max-width: 900px) { .hero-compact .hero-inner { padding-block: var(--space-6); } }
.mini-steps { margin: 0; padding-left: 1.25rem; display: grid; gap: var(--space-2); color: #cfd6e8; font-size: var(--fs-sm); }
.mini-steps strong { color: #fff; }
.align-center { align-items: center; }
.align-start { align-items: start; }
.row-center { justify-content: center; }
.mono { font-family: var(--mono); }
.stat .value.value-sm { font-size: var(--fs-lg); }
.success-ico { width: 56px; height: 56px; margin: 0 auto var(--space-4); border-radius: 50%; background: var(--success-50); color: var(--success); display: grid; place-items: center; }
.success-ico svg { width: 28px; height: 28px; }

/* Choice cards (radio / checkbox buttons) */
fieldset.field { border: 0; padding: 0; margin: 0 0 var(--space-5); min-width: 0; }
fieldset.field legend { font-weight: 600; margin-bottom: var(--space-2); padding: 0; }
fieldset.field legend .optional { font-weight: 400; }
fieldset.field > .hint { margin-top: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: var(--space-2); }
.choice { position: relative; display: block; cursor: pointer; margin: 0; font-weight: 500; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; min-height: 48px; height: 100%; padding: var(--space-3) var(--space-4); border: 1.5px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); font-size: var(--fs-sm); line-height: 1.35; transition: border-color .15s, background .15s; }
.choice:hover span { border-color: var(--brand); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input:focus-visible + span { box-shadow: var(--ring); }
.choice input[type="checkbox"] + span::before, .choice input[type="radio"] + span::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-right: var(--space-3); border: 1.5px solid var(--border-strong); background: #fff; }
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input[type="checkbox"] + span::before { border-radius: 4px; }
.choice input[type="radio"]:checked + span::before { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 45%, #fff 50%); }
.choice input[type="checkbox"]:checked + span::before { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.builder-form .form-section[hidden] { display: none; }
.budget-input { max-width: 240px; }
.budget-range { width: 100%; max-width: 520px; margin-top: var(--space-3); accent-color: var(--brand); }

/* Recommendation page */
.build-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
@media (max-width: 900px) { .build-layout { grid-template-columns: minmax(0, 1fr); } }
.build-layout .panel { margin-bottom: 0; }
.build-layout .panel-head .price-lg { margin: 0; }
.chip-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-list li { padding: 4px 12px; border-radius: var(--radius-pill); background: var(--surface-2); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
.parts-table { width: 100%; font-size: var(--fs-sm); }
.parts-table th[scope="row"] { color: var(--muted); font-weight: 500; white-space: nowrap; width: 1%; padding-right: var(--space-4); }
.parts-table td.num, .parts-table th.num, table .num { text-align: right; white-space: nowrap; }
.parts-table tr.extra td, .parts-table tr.extra th { background: var(--surface-2); }
.parts-table tfoot th, .parts-table tfoot td { font-weight: 800; font-size: var(--fs-md); color: var(--ink); border-top: 2px solid var(--border-strong); }
@media (max-width: 560px) {
  .parts-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .parts-table tbody th[scope="row"] { grid-column: 1 / -1; width: auto; padding-bottom: 0; border-bottom: 0; font-size: var(--fs-xs); }
  .parts-table tfoot tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
}
.alt-build .price-note { font-size: var(--fs-xl); font-weight: 800; color: var(--ink); }
.request-panel { max-width: 760px; }
.quote-box { border: 2px solid var(--brand-100); background: linear-gradient(180deg, var(--brand-50), var(--surface) 70%); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-4); }
.quote-box .row { margin-top: var(--space-4); }

/* Money summaries */
.sum-list { margin: var(--space-3) 0 0; display: grid; gap: 0; }
.sum-list > div { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.sum-list dt { color: var(--muted); }
.sum-list dd { margin: 0; font-weight: 600; text-align: right; }
.sum-list .grand { border-bottom: 0; padding-top: var(--space-3); }
.sum-list .grand dt, .sum-list .grand dd { color: var(--ink); font-weight: 800; font-size: var(--fs-lg); }
.bank-box { background: var(--surface-2); border-radius: var(--radius); padding: var(--space-2) var(--space-4); }
.bank-box dd { font-size: var(--fs-lg); }
.example-card { max-width: 440px; justify-self: end; width: 100%; }
@media (max-width: 760px) { .example-card { justify-self: stretch; } }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* Managed sale progress tracker */
.progress-track { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); counter-reset: none; }
.progress-track li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); font-size: var(--fs-xs); color: var(--muted); position: relative; }
.progress-track li + li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--border-strong); z-index: -1; }
.progress-track li.done + li::before, .progress-track li.done + li.current::before { background: var(--brand); }
.progress-track .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-strong); font-weight: 700; color: var(--muted); }
.progress-track .dot svg { width: 16px; height: 16px; }
.progress-track .done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.progress-track .current .dot { border-color: var(--brand); color: var(--brand); box-shadow: var(--ring); }
.progress-track .current { color: var(--ink); font-weight: 700; }
@media (max-width: 600px) {
  .progress-track { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .progress-track li { flex-direction: row; text-align: left; }
  .progress-track li + li::before { display: none; }
}

/* Admin bits */
details.inline-form { position: relative; }
details.inline-form summary { list-style: none; }
details.inline-form summary::-webkit-details-marker { display: none; }
details.inline-form[open] form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--space-4); }
@media (max-width: 700px) { details.inline-form[open] form { position: static; width: 100%; margin-top: var(--space-2); box-shadow: none; } }
.price-inline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.price-inline .input-prefix { width: 130px; }
.price-inline .check { margin: 0; }
.components-table tr.inactive td { color: var(--subtle); }
.components-table tr.inactive a { color: var(--muted); }
textarea.mono { font-size: var(--fs-xs); }
.payout-layout { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
.payout-layout > .panel { margin-bottom: 0; }
.markup-input { width: 90px; }

/* =====================================================================
   Phase 4: basket, checkout, orders, reviews
   ===================================================================== */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: minmax(0, 1fr); } }
.checkout-layout > * { min-width: 0; }
.order-summary { position: sticky; top: 90px; }
@media (max-width: 900px) { .order-summary { position: static; } }
.listing-row.unavailable { opacity: .6; }
.fulfilment-choice { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-2); font-size: var(--fs-sm); }
.fulfilment-choice .check { margin: 0; }
.order-lines { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.order-lines li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.order-lines li:last-child { border-bottom: 0; }
.new-address[hidden] { display: none; }
.item-actions { border-top: 1px solid var(--border); }
.tracking-input { width: auto; min-width: 180px; max-width: 100%; }
.stars { color: #f5a524; letter-spacing: 1px; white-space: nowrap; }
.stars span { color: var(--border-strong); }
.stars span.on { color: #f5a524; }
.stars span.half { background: linear-gradient(90deg, #f5a524 50%, var(--border-strong) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.9rem; line-height: 1; color: var(--border-strong); cursor: pointer; margin: 0; padding: 2px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a524; }
.star-input input:focus-visible + label { outline: 3px solid rgba(51,85,255,.35); border-radius: 4px; }
.hint svg, .text-sm > svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; color: var(--success); }

/* ---- Private seller: send / hand over a sold PC ---- */
.text-danger { color: var(--danger); }
.row.align-end { align-items: flex-end; }
.sale-row h3 { font-size: var(--fs-base); margin-bottom: var(--space-1); }
.ship-steps { counter-reset: ship; list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-4); }
.ship-steps > li { counter-increment: ship; margin: 0; }
.ship-steps > li > .panel-body { position: relative; padding-left: calc(var(--space-5) + 44px); }
.ship-steps > li > .panel-body::before { content: counter(ship); position: absolute; left: var(--space-5); top: var(--space-5); width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: var(--fs-sm); }
.ship-steps h2 { font-size: var(--fs-lg); margin: 4px 0 var(--space-2); }
.ship-steps .tick-list { margin: var(--space-3) 0 0; }
.copy-box { display: flex; gap: var(--space-4); align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); margin-bottom: var(--space-3); }
.copy-box address { font-style: normal; font-weight: 600; line-height: 1.5; }
.courier-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); margin: var(--space-3) 0; }
.courier-card { display: grid; gap: var(--space-1); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.courier-card:hover, .courier-card:focus-visible { border-color: var(--brand); box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.08)); }
.courier-card span { font-size: var(--fs-xs); color: var(--muted); }
.code-input { font-size: var(--fs-xl); letter-spacing: .3em; font-variant-numeric: tabular-nums; width: 11ch; text-align: center; }
.code-box { display: inline-block; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: .25em; padding: var(--space-2) var(--space-4); border: 2px dashed var(--brand); border-radius: var(--radius); background: var(--brand-50); color: var(--brand-700); font-variant-numeric: tabular-nums; }
.cancel-sale summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.cancel-sale[open] summary { border-bottom: 1px solid var(--border); }
@media (max-width: 640px) {
  .ship-steps > li > .panel-body { padding-left: var(--space-4); padding-top: calc(var(--space-4) + 40px); }
  .ship-steps > li > .panel-body::before { left: var(--space-4); top: var(--space-4); }
  .sale-row { grid-template-columns: 72px 1fr; }
  .sale-row > div:last-child { grid-column: 1 / -1; }
}

/* ---- Admin (phase 5) ---- */
.filter-bar { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; margin-bottom: var(--space-4); }
.filter-bar .grow { flex: 1 1 220px; }
.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.simple-list li:last-child { border-bottom: 0; }
.simple-list li > span:last-child { margin-left: auto; color: var(--muted); }
.settings-grid { display: grid; gap: var(--space-2) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.input-short { max-width: 160px; }
.input-prefix:has(.input-short), .input-suffix:has(.input-short) { max-width: 160px; }
.sticky-save { position: sticky; bottom: 0; padding: var(--space-4) 0; background: linear-gradient(to top, var(--bg, #f4f5f9) 70%, transparent); z-index: 5; }
.perm-table th, .perm-table td { text-align: center; }
.perm-table th:first-child, .perm-table td:first-child { text-align: left; }
.perm-table input[type="checkbox"] { width: 20px; height: 20px; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li a { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--border); text-decoration: none; color: var(--ink); font-weight: 600; }
.todo-list li:last-child a { border-bottom: 0; }
.todo-list li a:hover { background: var(--surface-2); }
.todo-list .count-pill { position: static; }
.bar-chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 140px; padding-top: var(--space-2); }
.bar-chart .bar { background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bar-chart .bar:hover, .bar-chart .bar:focus { background: var(--brand-700); outline: none; }
.bar-labels { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; font-size: 10px; color: var(--muted); text-align: center; margin-top: 4px; }
.audit-details { font-size: var(--fs-xs); color: var(--muted); word-break: break-word; }
form.inline-form { display: inline-block; margin: 0; }
.nowrap { white-space: nowrap; }

/* ---- Information & legal pages ---- */
.page-intro { padding-block: var(--space-7) var(--space-5); }
.page-intro h1 { margin-bottom: var(--space-2); }
.legal-layout { display: grid; gap: var(--space-7); grid-template-columns: 230px minmax(0, 1fr); align-items: start; padding-bottom: var(--space-8); }
.legal-toc { position: sticky; top: var(--space-4); font-size: var(--fs-sm); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); }
.legal-toc h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 var(--space-2); }
.legal-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--space-1); }
.legal-toc a { text-decoration: none; color: var(--text); }
.legal-toc a:hover { color: var(--brand-600); }
.prose { max-width: 72ch; line-height: 1.7; }
.prose h2 { font-size: var(--fs-xl); margin: var(--space-7) 0 var(--space-3); scroll-margin-top: var(--space-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-lg); margin: var(--space-5) 0 var(--space-2); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: var(--space-1); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; font-size: var(--fs-sm); }
.prose th, .prose td { border: 1px solid var(--border); padding: var(--space-2) var(--space-3); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose .table-scroll { overflow-x: auto; }
.summary-box { background: var(--brand-50); border: 1px solid #d6ddff; border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-6); }
.summary-box h2 { margin-top: 0 !important; font-size: var(--fs-lg) !important; }
.summary-box ul { margin-bottom: 0; }
mark.placeholder { background: #fff3c4; color: #6e4000; padding: 0 4px; border-radius: 4px; }
.faq-group + .faq-group { margin-top: var(--space-7); }
.contact-grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; padding-bottom: var(--space-8); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) {
  .legal-layout, .contact-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* ---- Cookie choice banner ---- */
.cookie-banner { position: fixed; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); z-index: 100; max-width: 640px; margin-inline: auto; background: var(--ink); color: #dde3f2; border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.cookie-banner h2 { color: #fff; font-size: var(--fs-lg); margin: 0 0 var(--space-2); }
.cookie-banner p { font-size: var(--fs-sm); margin: 0 0 var(--space-4); }
.cookie-banner a { color: #fff; }
.cookie-banner .row { gap: var(--space-2); }
.cookie-choice-status { font-weight: 650; }
.pt-0 { padding-top: 0 !important; }

/* ---- Blog ---- */
.h4 { font-size: var(--fs-md); margin-bottom: var(--space-3); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-row .chip { padding: 6px 14px; font-size: var(--fs-sm); background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.chip-row .chip:hover { border-color: var(--brand); color: var(--brand-700); background: var(--surface); }
.chip.is-active, .chip-row .chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.post-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-bottom: var(--space-6); }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-img { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-50), var(--accent-50)); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-img span { display: grid; place-items: center; height: 100%; color: var(--brand); }
.post-card-img svg { width: 48px; height: 48px; opacity: .6; }
.post-card-body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; flex: 1; }
.post-card-body > .text-xs:last-child { margin-top: auto !important; padding-top: var(--space-3); }
.post-card-title { font-size: var(--fs-lg); line-height: 1.3; margin: 0 0 var(--space-2); }
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { color: var(--brand-600); }
.post-card-title a::after { content: ''; }
.post-meta { font-size: var(--fs-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 var(--space-2); }
.post-meta a { color: var(--brand-700); text-decoration: none; }
.post { max-width: 820px; margin-inline: auto; padding-bottom: var(--space-6); }
.post-head { padding-block: var(--space-5) var(--space-5); }
.post-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin-bottom: var(--space-3); }
.post-hero { margin: 0 0 var(--space-6); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.post-hero img { width: 100%; max-height: 460px; object-fit: cover; }
.post-body { max-width: 72ch; margin-inline: auto; font-size: 1.0625rem; }
.post-body img { border-radius: var(--radius); max-width: 100%; height: auto; }
.post-body figure { margin: var(--space-5) 0; }
.post-body figcaption { font-size: var(--fs-sm); color: var(--muted); text-align: center; margin-top: var(--space-2); }
.post-body blockquote { margin: var(--space-5) 0; padding: var(--space-2) var(--space-5); border-left: 4px solid var(--brand); color: var(--ink-3); font-size: var(--fs-lg); }
.post-body pre { background: var(--ink); color: #e6ebf5; padding: var(--space-4); border-radius: var(--radius); overflow-x: auto; font-size: var(--fs-sm); }
.post-body :not(pre) > code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.post-body hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }
.post-box { border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin: var(--space-5) 0; border-left: 4px solid; }
.post-box p { margin: 0; }
.post-box-tip { background: var(--success-50); border-color: var(--success); }
.post-box-tip p::before { content: 'Tip: '; font-weight: 700; }
.post-box-note { background: var(--brand-50); border-color: var(--brand); }
.post-box-note p::before { content: 'Note: '; font-weight: 700; }
.post-box-warning { background: var(--warning-50); border-color: var(--warning); }
.post-box-warning p::before { content: 'Warning: '; font-weight: 700; }
.post-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-6); }
.prose .post-toc h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 var(--space-2); }
.post-toc ol { margin: 0; }
.post-toc a { text-decoration: none; }
.post-cta { background: var(--ink); color: #dde3f2; border-radius: var(--radius-lg); padding: var(--space-6); margin: var(--space-7) 0 var(--space-5); }
.prose .post-cta h2 { color: #fff; margin: 0 0 var(--space-2); font-size: var(--fs-xl); }
.post-cta .btn:not(.btn-primary) { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-border: rgba(255,255,255,.25); }
.post-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.share-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; border-top: 1px solid var(--border); padding-top: var(--space-4); margin-top: var(--space-5); }
.section-end { padding-bottom: var(--space-7); }

/* Blog editor (admin) */
.blog-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-5); align-items: start; }
.blog-main, .blog-side { min-width: 0; }
.blog-side .panel { margin-bottom: var(--space-4); }
.input-lg { font-size: var(--fs-lg) !important; font-weight: 650; min-height: 52px; }
.editor-panel { overflow: hidden; }
.editor-tabs { display: flex; align-items: center; gap: var(--space-1); border-bottom: 1px solid var(--border); padding: 0 var(--space-3); background: var(--surface-2); }
.editor-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: var(--space-3) var(--space-3); font: inherit; font-weight: 650; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.editor-tabs button[aria-selected="true"] { color: var(--brand-700); border-color: var(--brand); }
.editor-tabs button:focus-visible { outline: none; box-shadow: var(--ring); }
.editor-stats { margin-left: auto; }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border); }
.md-toolbar button, .md-upload { min-height: 32px; padding: 2px 10px; border: 1px solid var(--border); background: var(--surface); border-radius: 6px; font: inherit; font-size: var(--fs-xs); font-weight: 600; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; }
.md-toolbar button:hover, .md-upload:hover { background: var(--surface-2); border-color: var(--border-strong); }
.md-toolbar button:focus-visible, .md-upload:focus-within { outline: none; box-shadow: var(--ring); }
.md-select select { min-height: 32px; padding: 2px 28px 2px 8px; font-size: var(--fs-xs); width: auto; max-width: 190px; }
.md-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.editor-textarea { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.65; min-height: 520px; resize: vertical; padding: var(--space-4) var(--space-5) !important; }
.editor-textarea:focus { background: #fcfdff; }
.editor-panel .field-error, .editor-status { padding: 0 var(--space-5) var(--space-3); margin: 0; }
.editor-status:empty { display: none; }
.editor-preview { padding: var(--space-5); min-height: 520px; max-width: none; }
.md-help td { padding: 6px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.md-help td:first-child { white-space: nowrap; }
.seo-head { display: flex; gap: var(--space-3); align-items: center; margin-bottom: var(--space-3); }
.score-ring { --score: 0; --c: var(--danger); width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; display: grid; place-content: center; text-align: center; position: relative;
  background: conic-gradient(var(--c) calc(var(--score) * 1%), var(--surface-2) 0); }
.score-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.score-ring span, .score-ring small { position: relative; line-height: 1; }
.score-ring span { font-size: 1.3rem; font-weight: 800; color: var(--c); }
.score-ring small { font-size: 10px; color: var(--muted); }
.score-good { --c: var(--success); }
.score-ok { --c: var(--warning); }
.score-bad { --c: var(--danger); }
.seo-stats { margin: 0 0 var(--space-3); }
.seo-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); font-size: var(--fs-sm); max-height: 460px; overflow-y: auto; }
.seo-checks li { display: flex; gap: var(--space-2); align-items: flex-start; line-height: 1.4; }
.seo-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; background: var(--danger); }
.seo-ok .seo-dot { background: var(--warning); }
.seo-good .seo-dot { background: var(--success); }
.seo-tip { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.counter-good { color: var(--success); font-weight: 600; }
.counter-bad { color: var(--warning); font-weight: 600; }
.input-prefix-wide input { padding-left: 58px; }
.serp { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); background: #fff; font-family: Arial, sans-serif; margin-top: var(--space-1); overflow-wrap: anywhere; }
.serp p { margin: 0; }
.serp-url { font-size: 12px; color: #4d5156; }
.serp-title { font-size: 18px; color: #1a0dab; line-height: 1.3; margin: 2px 0 !important; }
.serp-desc { font-size: 13px; color: #4d5156; line-height: 1.5; }
.featured-thumb { width: 100%; border-radius: var(--radius); margin-bottom: var(--space-3); aspect-ratio: 16 / 9; object-fit: cover; }
.editor-templates summary, .blog-main details.panel summary { cursor: pointer; }
@media (max-width: 1180px) { .blog-editor { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .editor-textarea { min-height: 380px; padding: var(--space-3) !important; } .editor-preview { padding: var(--space-3); } .editor-stats { display: none; } }

/* ---- Account security / two-step login ---- */
.setup-steps { list-style: none; counter-reset: step; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-5); }
.setup-steps > li { counter-increment: step; position: relative; padding-left: 44px; }
.setup-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: var(--fs-sm); }
.setup-steps h3 { font-size: var(--fs-md); margin: 3px 0 var(--space-2); }
.qr-wrap { display: inline-block; padding: var(--space-2); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); line-height: 0; }
.qr-wrap svg { width: 200px; height: 200px; max-width: 100%; }
.setup-key { font-size: 1rem; letter-spacing: .08em; word-break: break-all; }
.code-input { font-size: 1.4rem !important; letter-spacing: .3em; font-variant-numeric: tabular-nums; max-width: 240px; text-align: center; }
.recovery-box { background: var(--warning-50); border: 1px solid #f0d9a8; border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-5); }
.recovery-box h3 { margin-top: 0; font-size: var(--fs-lg); }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--space-2) var(--space-5); padding-left: 1.4rem; margin: var(--space-3) 0 var(--space-4); }
.recovery-codes code { font-size: 1rem; letter-spacing: .06em; }
.table-flush { border: 0; border-radius: 0; }
@media print {
  body:has(.recovery-box) .site-header, body:has(.recovery-box) .site-footer, body:has(.recovery-box) .account-nav,
  body:has(.recovery-box) .panel:not(#two-step), body:has(.recovery-box) .page-head p, .recovery-box .row { display: none !important; }
}

/* ---- Admin analytics (charts: thin marks, recessive grid, text in text colours) ---- */
.analytics { --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --viz-grid: #e8ebf1; }
.viz-filters { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-bottom: var(--space-2); }
.viz-custom { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: var(--fs-sm); }
.viz-custom input[type="date"] { width: auto; min-height: 36px; padding: 4px 8px; font-size: var(--fs-sm); }
.viz-custom label { font-weight: 600; color: var(--muted); }
.viz-period { margin: 0 0 var(--space-4); }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-5); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); }
.kpi-label { font-size: var(--fs-xs); font-weight: 650; color: var(--muted); margin: 0 0 var(--space-1); }
.kpi-value { font-size: 1.6rem; font-weight: 700; line-height: 1.15; margin: 0 0 var(--space-2); color: var(--text); }
.kpi-foot { font-size: var(--fs-xs); margin: 0; }
.kpi-hint { font-size: 11px; color: var(--subtle); margin: var(--space-1) 0 0; }
.kpi-delta { font-weight: 700; color: var(--muted); }
.kpi-delta.is-up { color: var(--success); }
.kpi-delta.is-down { color: var(--danger); }
.viz-card .panel-body { padding-top: var(--space-4); }
.viz-plot { position: relative; overflow-x: auto; outline: none; border-radius: var(--radius); }
.viz-plot:focus-visible { box-shadow: var(--ring); }
.viz-plot svg { display: block; width: 100%; min-width: 520px; height: auto; font-family: var(--font); }
.viz-grid { stroke: var(--viz-grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.viz-tick { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.viz-stroke { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.viz-area { stroke: none; opacity: .1; }
.viz-dot { stroke: var(--surface); stroke-width: 2; }
.viz-cross { stroke: var(--border-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.viz-stroke.s1 { stroke: var(--series-1); } .viz-area.s1, .viz-dot.s1 { fill: var(--series-1); }
.viz-stroke.s2 { stroke: var(--series-2); } .viz-area.s2, .viz-dot.s2 { fill: var(--series-2); }
.viz-tip { position: absolute; top: 8px; z-index: 5; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-2) var(--space-3); font-size: var(--fs-xs); pointer-events: none; min-width: 150px; }
.viz-tip p { margin: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.viz-tip .viz-tip-label { color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.viz-tip strong { color: var(--text); font-variant-numeric: tabular-nums; }
.viz-legend { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--fs-sm); color: var(--text); }
.viz-legend li { display: flex; align-items: center; gap: 6px; }
.viz-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.viz-key-line { width: 14px; height: 3px; border-radius: 2px; }
.viz-key.s1 { background: var(--series-1); } .viz-key.s2 { background: var(--series-2); } .viz-key.s3 { background: var(--series-3); }
.viz-note { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.viz-hbars { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: var(--space-3); }
.viz-hbars li { display: grid; gap: 4px; }
.viz-hbar-label { font-size: var(--fs-sm); color: var(--text); }
.viz-hbar-track { display: flex; align-items: center; gap: var(--space-2); min-height: 18px; }
.viz-hbar { display: block; height: 18px; width: 0; min-width: 0; border-radius: 0 4px 4px 0; transition: width .4s ease; }
.viz-hbar.s1 { background: var(--series-1); }
.viz-hbar-value { font-size: var(--fs-sm); font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.viz-stack { display: flex; gap: 2px; height: 22px; border-radius: 4px; overflow: hidden; background: var(--surface-2); margin-bottom: var(--space-3); }
.viz-seg { display: block; height: 100%; width: 0; }
.viz-seg.s1 { background: var(--series-1); } .viz-seg.s2 { background: var(--series-2); } .viz-seg.s3 { background: var(--series-3); }
.viz-path { max-width: 280px; overflow-wrap: anywhere; }
.viz-subhead { border-top: 1px solid var(--border); }
.viz-subhead h3 { font-size: var(--fs-md); margin: 0; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-4); margin: 0; }
.mini-stats dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.mini-stats dd { margin: 2px 0 0; font-size: var(--fs-xl); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .viz-hbar { transition: none; } }
@media (forced-colors: active) { .viz-hbar, .viz-seg, .viz-key { background: CanvasText; } .viz-stroke { stroke: CanvasText; } }
.viz-plot svg [hidden] { display: none; }
@media (max-width: 480px) { .kpi-row { grid-template-columns: 1fr 1fr; } .kpi { padding: var(--space-3); } .kpi-value { font-size: 1.3rem; } }

/* ---- PC category landing pages ---- */
.cat-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.cat-intro { max-width: 820px; }
.cat-guide { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-7); align-items: start; padding-bottom: var(--space-8); border-top: 1px solid var(--border); padding-top: var(--space-6); }
.cat-side .panel { margin-bottom: var(--space-4); }
.cat-links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); font-size: var(--fs-sm); }
.justify-center { justify-content: center; }
@media (max-width: 860px) { .cat-guide { grid-template-columns: 1fr; gap: var(--space-5); } }

/* ---- Phones & touch screens: thumb-sized tap targets, no zoom-on-tap, readable small print ---- */
@media (max-width: 860px), (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
  .site-footer li + li { margin-top: 0; }
  .site-footer li a { display: inline-block; padding: 10px 0; }
  .footer-bottom a { display: inline-block; padding: 10px 2px; }
  .btn-sm { min-height: 40px; }
  label.check { min-height: 40px; align-items: center; }
  .md-toolbar button, .md-upload { min-height: 40px; min-width: 40px; justify-content: center; }
  .md-select select, .editor-textarea, .viz-custom input[type="date"], .code-input { font-size: 16px !important; }
  .count-pill { font-size: 12px; }
  .pay-badges span { font-size: 12px; padding: 2px 6px; }
  .score-ring small { font-size: 12px; }
}
/* Keep wide content (tables, code) scrolling inside its own box instead of pushing the page sideways */
.table-wrap, .table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.grid > *, .legal-layout > *, .contact-grid > *, .cat-guide > *, .blog-editor > *, .panel { min-width: 0; }
.prose { overflow-wrap: break-word; }
@media (max-width: 860px), (pointer: coarse) {
  .filter-group input, .filter-group select, .price-row input, .market-layout select { font-size: 16px; }
  .legal-toc a, .cat-links a { display: inline-block; padding: 8px 0; }
  .legal-toc ol { gap: 0; }
  .kpi-hint, .bar-labels { font-size: 12px; }
  .site-header .logo { min-height: 44px; display: inline-flex; align-items: center; }
}
/* Whole card is tappable (the title link stretches over it); other controls sit above it */
.pc-card-title a::after, .post-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card { position: relative; }
.post-card .post-meta a, .post-card-img { position: relative; z-index: 2; }
.pc-card:focus-within { box-shadow: var(--ring); }
.pc-card-title a:focus-visible, .post-card-title a:focus-visible { outline: none; }
@media (max-width: 860px), (pointer: coarse) {
  .market-layout input, .market-layout select { font-size: 16px !important; }
  .save-btn { width: 44px; height: 44px; }
  .password-toggle { min-height: 40px; min-width: 44px; }
  .alert-close { min-width: 40px; min-height: 40px; }
  .chip { min-height: 36px; padding: 6px 12px; }
  .chip-row .chip { min-height: 40px; }
  details.disclosure summary, .filters summary, .blog-main details.panel summary { padding-block: 10px; }
  a.more { display: inline-block; padding-block: 10px; }
  .md-select select { min-height: 40px; }
}
@media (max-width: 860px), (pointer: coarse) { .footer-brand .logo { min-height: 44px; } }

/* Phones: data tables become stacked cards (labels added by app.js) */
@media (max-width: 640px) {
  .stackable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stackable, .stackable tbody, .stackable tr, .stackable td, .stackable tfoot { display: block; width: 100%; }
  .stackable tr { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
  .stackable tbody tr:last-child { border-bottom: 0; }
  .stackable td, .stackable th[scope="row"] { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); border: 0 !important; padding: 3px 0 !important; text-align: right; background: none; white-space: normal; }
  .stackable td::before { content: attr(data-label); font-size: var(--fs-xs); font-weight: 650; color: var(--muted); text-align: left; flex-shrink: 0; max-width: 45%; }
  .stackable td[data-label=""]::before { display: none; }
  .stackable td[data-label=""] { justify-content: flex-end; }
  .stackable td:first-child { display: block; text-align: left; font-weight: 600; padding-bottom: 6px !important; }
  .stackable td:first-child::before { display: none; }
  .stackable td.num { font-variant-numeric: tabular-nums; }
  .stackable .nowrap { white-space: normal; }
  .table-wrap:has(> .stackable) { overflow-x: visible; }
  .stackable tfoot tr { display: flex; justify-content: space-between; }
}
/* Sideways-scrolling account/admin menu: fade the edge that has more items */
@media (max-width: 860px) {
  .account-nav { scrollbar-width: none; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav.has-more-right { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .account-nav.has-more-left { -webkit-mask-image: linear-gradient(to left, #000 85%, transparent); mask-image: linear-gradient(to left, #000 85%, transparent); }
  .account-nav.has-more-left.has-more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
  .account-nav a { min-height: 44px; }
}
/* Icons sitting inside a line of text stay text-sized */
svg.i { flex-shrink: 0; }
h1 > svg.i, h2 > svg.i, h3 > svg.i, p > svg.i, .more > svg.i, a > svg.i:only-child + span, span > svg.i { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; }
.panel-head h2 { display: flex; align-items: center; gap: var(--space-2); }

/* 404 page search */
.err-search { margin: var(--space-6) auto 0; }

/* ---- Trust line on PC cards (seller rating / sales) ---- */
.pc-card-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-xs); margin-bottom: var(--space-2); }
.rating-mini { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink); }
.rating-mini .star { color: #f5a524; }
.trust-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--success-50); color: var(--success); font-weight: 600; }
.trust-chip svg { width: 13px; height: 13px; }
.trust-chip.trust-shop { background: var(--brand-50); color: var(--brand-700); }
.trust-chip.trust-new { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.pc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: auto; }
.pc-card-foot .pc-card-price { margin-top: 0; }

/* ---- Compare PCs ---- */
.compare-toggle { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.compare-toggle svg { width: 14px; height: 14px; opacity: .25; }
.compare-toggle.is-on { background: var(--brand-50); border-color: var(--brand); color: var(--brand-700); }
.compare-toggle.is-on svg { opacity: 1; }
.compare-toggle:disabled { opacity: .5; cursor: not-allowed; }
.compare-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: var(--space-3); padding: 10px 12px 10px 18px; background: var(--ink); color: #fff; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); max-width: calc(100% - 32px); }
.compare-bar[hidden] { display: none; }
.compare-bar .btn:not(.btn-primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.compare-bar .is-disabled { pointer-events: none; opacity: .55; }
.compare-table { min-width: 640px; }
.compare-table th[scope="row"] { width: 160px; color: var(--muted); font-weight: 600; font-size: var(--fs-sm); vertical-align: top; }
.compare-table thead th { vertical-align: top; text-align: left; }
.compare-table td { vertical-align: top; }
.compare-pc { display: grid; gap: var(--space-2); text-decoration: none; color: var(--ink); font-weight: 700; margin-bottom: var(--space-2); }
.compare-pc img { width: 100%; max-width: 220px; height: auto; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px), (pointer: coarse) {
  .compare-toggle { min-height: 40px; }
  .compare-bar { bottom: 12px; padding: 8px 8px 8px 14px; gap: var(--space-2); font-size: var(--fs-xs); }
}

.compare-table th { text-transform: none; letter-spacing: normal; }
.compare-table thead th { font-size: var(--fs-sm); background: var(--surface); }
.compare-table th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--bg); }
@media (max-width: 640px) {
  .compare-table { min-width: 0; }
  .compare-table th[scope="row"] { width: 96px; min-width: 96px; font-size: var(--fs-xs); }
  .compare-table td, .compare-table thead th { min-width: 150px; }
}

/* Marketplace intro + buying guide (SEO copy) */
.market-lead { max-width: 820px; margin-block: var(--space-2) var(--space-4); }
.market-guide { padding-bottom: var(--space-8); }
.buy-guide { max-width: 820px; }
