/* PRIXZI — "Champagne" design system.
   Deep warm black, ivory type and champagne gold, matched to the champagne-chrome
   lockup (owner-requested re-tone of the approved artwork, 2026-11-07). Soft serif
   display type (self-hosted Fraunces, OFL), restrained light, no external requests. */

@font-face {
  font-family: "Fraunces";
  src: url(/fonts/fraunces-latin-full-normal.woff2) format("woff2-variations"), url(/fonts/fraunces-latin-full-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg: #0D0B09;          /* espresso */
  --bg-raised: #110E0B;
  --surface: #16120F;     /* roast */
  --surface-2: #1D1814;
  --surface-3: #26201A;
  --line: rgba(236, 220, 190, .08);
  --line-2: rgba(236, 220, 190, .14);
  --line-3: rgba(236, 220, 190, .24);
  --text: #F3EBDD;        /* cream, ≥13:1 */
  --muted: #BFB3A2;       /* ≥7.9:1 */
  --faint: #A09484;       /* ≥5.3:1, smallest support text */
  --amber: #D6B47A; --gold: #D6B47A; --gold-deep: #B08D57;
  --copper: #B08D57;
  --on-accent: #15100B;   /* espresso ink on amber, ≥6.6:1 */
  --blue: #D6B47A;        /* legacy name used by route stylesheets → amber */
  --blue-hi: #D6B47A;
  --violet: #B08D57;
  --accent: #DCC08E;      /* apricot link/accent text */
  --accent-2: #A9C3A6;    /* sage */
  --success: #A9C3A6;
  --warning: #E2BE72;
  --danger: #EE9C8A;
  --brand-grad: linear-gradient(180deg, #E4C890 0%, #B08D57 100%);
  --brand-text: linear-gradient(100deg, #EAD3A2 0%, #B8925A 100%);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 0 rgba(236, 220, 190, .04) inset, 0 18px 40px -18px rgba(0, 0, 0, .75);
  --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, .85), 0 0 0 1px var(--line-2);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 180ms;
  --page: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  /* Aliases kept for route stylesheets (vision.css, early-access.css). */
  --ink: var(--text); --surface-raised: var(--surface-2); --brand-gradient: var(--brand-grad); --brand-soft: #211A14; --navy: var(--bg-raised); --control: var(--line-3);
  --font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Sitka Display", "Iowan Old Style", Charter, Georgia, serif;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── 2. Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  background:
    radial-gradient(900px 420px at 12% -120px, rgba(176, 141, 87, .086), transparent 70%),
    radial-gradient(800px 380px at 92% -160px, rgba(214, 180, 122, .05), transparent 70%),
    var(--bg);
}
main { flex: 1; width: 100%; max-width: var(--page); margin: 0 auto; padding: 32px var(--gutter) 96px; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
img, svg, video { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text); overflow-wrap: anywhere; text-wrap: balance; }
h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; margin-bottom: 14px; }
h2 { font-size: clamp(21px, 2vw, 26px); line-height: 1.2; letter-spacing: -.02em; font-weight: 650; margin-bottom: 14px; }
h3 { font-size: 17px; line-height: 1.35; letter-spacing: -.01em; font-weight: 650; margin-bottom: 10px; }
p { margin-bottom: 16px; overflow-wrap: anywhere; }
small, .note { font-size: 14px; color: var(--faint); }
strong { font-weight: 650; }
::selection { background: rgba(214, 180, 122, .4); color: #fff; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: -100px; left: 16px; z-index: 50; padding: 12px 16px; background: var(--text); color: var(--bg); border-radius: var(--radius-sm); font-weight: 650; }
.skip:focus { top: 12px; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.prewrap { white-space: pre-wrap; }
.eyebrow { font-size: 14px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.grad { background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── 3. Buttons and links ──────────────────────────────────────────────── */
button, .button {
  position: relative; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--brand-grad); color: var(--on-accent); font-weight: 650; letter-spacing: -.005em; text-decoration: none;
  cursor: pointer; text-align: center; overflow-wrap: anywhere; line-height: 1.25;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 22px -10px rgba(176, 141, 87, .288);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur), background-color var(--dur), border-color var(--dur);
}
button:hover, .button:hover { filter: brightness(1.12); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 28px -10px rgba(176, 141, 87, .342); }
button:active, .button:active { transform: translateY(1px) scale(.99); }
button.secondary, .button.secondary { background: rgba(236, 220, 190, .04); color: var(--text); border-color: var(--line-2); box-shadow: none; }
button.secondary:hover, .button.secondary:hover { background: rgba(236, 220, 190, .08); border-color: var(--line-3); filter: none; box-shadow: none; }
button:disabled { opacity: .6; cursor: wait; transform: none; }
.text-link, .recovery-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover, .recovery-links a:hover { color: #fff; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.actions form { margin: 0; }

/* ── 4. Preview ribbon and header ──────────────────────────────────────── */
.preview { padding: 7px var(--gutter); background: var(--bg-raised); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
.preview a { color: var(--accent); font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(18, 14, 11, .8); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.header-top, .main-nav { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.header-top { display: grid; grid-template-columns: auto minmax(0, 640px) max-content; justify-content: space-between; gap: 28px; align-items: center; min-height: 72px; }
.brand, .footer-brand { display: inline-flex; width: 172px; max-width: 100%; min-height: 44px; padding: 0; gap: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; line-height: 1; flex-shrink: 0; align-items: center; text-decoration: none; }
.brand-identity { position: relative; display: block; width: 100%; aspect-ratio: 1930 / 372; }
.brand-identity img, .brand-identity video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.header-search { position: relative; display: flex; align-items: center; margin: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; transition: border-color var(--dur), box-shadow var(--dur), background-color var(--dur); }
.header-search:focus-within { border-color: rgba(220, 192, 142, .535); box-shadow: 0 0 0 4px rgba(214, 180, 122, .153); background: var(--surface-2); }
.header-search label { flex: 1; min-width: 0; margin: 0; display: block; }
.header-search input { width: 100%; min-height: 46px; padding: 10px 8px 10px 20px; background: transparent; border: 0; outline: none; font-size: 15px; }
.header-search input::placeholder { color: var(--faint); }
.header-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.header-search button { min-height: 38px; width: 38px; padding: 0; margin: 4px; border-radius: 999px; flex: 0 0 38px; }
.header-search :focus-visible { outline-offset: -2px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.sell-link { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(236, 220, 190, .04); color: var(--text); text-decoration: none; font-weight: 650; transition: background-color var(--dur), border-color var(--dur); flex-shrink: 0; }
.sell-link:hover { background: rgba(236, 220, 190, .09); border-color: var(--line-3); }
.sell-link .icon { width: 18px; height: 18px; color: var(--accent); }
.account { display: flex; align-items: center; gap: 6px; }
.account > a:not(.button) { display: inline-flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--muted); }
.account > a:not(.button):hover { color: var(--text); background: rgba(236, 220, 190, .05); }
.account .button { min-height: 42px; border-radius: 999px; padding: 8px 18px; background: var(--text); color: var(--bg); border: 0; box-shadow: none; }
.account .button:hover { filter: none; background: #fff; box-shadow: 0 8px 24px -10px rgba(236, 220, 190, .45); }
.account-menu { position: relative; margin: 0; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 42px; max-width: 220px; padding: 4px 12px 4px 4px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-weight: 600; transition: background-color var(--dur), border-color var(--dur); }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { background: rgba(236, 220, 190, .06); border-color: var(--line-3); }
.account-menu summary > span:not(.avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu summary::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); flex: none; transition: transform var(--dur); }
.account-menu[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-grad); color: var(--on-accent); font-size: 14px; font-weight: 700; text-transform: uppercase; flex: none; }
.account-content { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; display: grid; gap: 2px; min-width: 240px; padding: 8px; background: var(--surface-2); border-radius: var(--radius); box-shadow: var(--shadow-pop); animation: pop 160ms var(--ease); }
.account-content > a { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--muted); }
.account-content > a:hover { background: rgba(236, 220, 190, .06); color: var(--text); }
.account-content form { margin: 6px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.account-content form button { width: 100%; justify-content: flex-start; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.main-nav { display: flex; align-items: stretch; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 46px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; transition: color var(--dur); }
.main-nav a .icon { width: 18px; height: 18px; opacity: .8; }
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current=page] { color: var(--text); }
.main-nav a[aria-current=page]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand-grad); }
#alert-count { color: var(--accent); font-variant-numeric: tabular-nums; }
#connection { max-width: var(--page); margin: 16px auto 0; padding: 12px 16px; border: 1px solid rgba(245, 198, 107, .35); background: rgba(245, 198, 107, .08); color: var(--warning); border-radius: var(--radius-sm); font-size: 14px; }

/* ── 5. Page structure ─────────────────────────────────────────────────── */
.page-heading { max-width: 760px; margin-bottom: 32px; }
.page-heading > p:last-child:not(.eyebrow) { color: var(--muted); font-size: 17px; margin-bottom: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; flex-wrap: wrap; }
.section-head h1, .section-head h2, .section-head h3 { margin: 0; }
.section-head .page-heading { margin: 0; }
.section-head > span:not(.status) { color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.narrow { max-width: 760px; }
.stack { display: grid; gap: 16px; }
.stack > h2 { margin: 8px 0 4px; }

/* ── 6. Forms ──────────────────────────────────────────────────────────── */
form { margin: 0; }
label { display: grid; gap: 8px; margin-bottom: 18px; font-weight: 600; font-size: 15px; color: var(--text); min-width: 0; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; background: var(--bg-raised); border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--text); font-weight: 400; transition: border-color var(--dur), box-shadow var(--dur), background-color var(--dur); }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(220, 192, 142, .612); box-shadow: 0 0 0 4px rgba(214, 180, 122, .17); background: #110E0B; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=date] { color-scheme: dark; }
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--surface-2); color: var(--text); }
textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
input[type=file] { padding: 10px; min-height: 52px; border-style: dashed; cursor: pointer; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--surface-3); color: var(--text); font-weight: 600; cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--blue-hi); flex: none; margin: 2px 0 0; }
fieldset { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 14px; font-weight: 650; font-size: 15px; color: var(--text); }
.fields, .filter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0 18px; }
.form-section { padding: 24px 0 8px; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section legend { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.conditions { display: flex; flex-wrap: wrap; gap: 10px; }
.conditions legend { width: 100%; }
.check { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; min-height: 44px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 500; cursor: pointer; transition: border-color var(--dur), background-color var(--dur); }
.check:hover { border-color: var(--line-3); }
.check:has(input:checked) { border-color: rgba(220, 192, 142, .459); background: rgba(214, 180, 122, .102); }
.check input { margin: 0; }
form > button, form > .button { margin-top: 4px; }

/* ── 7. Disclosure, status, notices ────────────────────────────────────── */
details { margin: 0; }
summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
summary::-webkit-details-marker { display: none; }
details:not(.account-menu) > summary::before { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform var(--dur) var(--ease); flex: none; margin-right: 2px; }
details:not(.account-menu)[open] > summary::before { transform: rotate(45deg); }
details[open] > summary { margin-bottom: 14px; }
summary .icon { color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: 999px; background: rgba(236, 220, 190, .06); border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; font-weight: 600; text-transform: capitalize; white-space: nowrap; line-height: 1.2; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.status.positive { color: var(--success); background: rgba(169, 195, 166, .08); border-color: rgba(169, 195, 166, .28); }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin: 0 0 18px; border-radius: var(--radius-sm); background: rgba(220, 192, 142, .054); border: 1px solid rgba(220, 192, 142, .168); color: var(--text); font-size: 15px; }
.notice .icon { color: var(--accent); margin-top: 1px; }
.notice.success { background: rgba(169, 195, 166, .07); border-color: rgba(169, 195, 166, .28); }
.notice.success .icon { color: var(--success); }
.error-message { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin-bottom: 20px; border-radius: var(--radius-sm); background: rgba(242, 148, 130, .08); border: 1px solid rgba(242, 148, 130, .35); color: #FFDCD2; }
.error-message .icon { color: var(--danger); }
.error-message p { margin: 0; }

/* ── 8. Discovery hero ─────────────────────────────────────────────────── */
.discovery-intro { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(24px, 5vw, 56px) 0 clamp(32px, 5vw, 64px); }
.discovery-intro::before { content: ""; position: absolute; inset: -40px calc(var(--gutter) * -1) 0; z-index: -1; background-image: linear-gradient(rgba(236, 220, 190, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 220, 190, .035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 80% at 30% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 30%, #000 20%, transparent 75%); pointer-events: none; }
.hero-copy h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1; letter-spacing: -.045em; margin-bottom: 22px; }
.hero-copy h1 span { background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { max-width: 540px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); margin-bottom: 28px; }
.hero-lede strong { color: var(--text); font-weight: 600; }
.hero-copy .actions .button { min-height: 50px; padding: 12px 24px; font-size: 16px; }
.hero-note { display: flex; gap: 8px; align-items: center; margin: 22px 0 0; color: var(--faint); font-size: 14px; }
.hero-note .icon { width: 18px; height: 18px; color: var(--accent); }
.hero-steps { position: relative; margin: 0; padding: 28px; list-style: none; background: linear-gradient(180deg, #1D1814, #16120F); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); isolation: isolate; }
.hero-steps::before { content: ""; position: absolute; inset: 18% 10% -6%; z-index: -1; border-radius: inherit; background: var(--brand-grad); opacity: .28; filter: blur(48px); }
.hero-steps-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 14px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-steps-title span { color: var(--success); letter-spacing: 0; text-transform: none; font-weight: 600; }
.hero-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.hero-step:first-of-type { border-top: 0; padding-top: 0; }
.hero-step:last-child { padding-bottom: 0; }
.hero-step b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(214, 180, 122, .119); border: 1px solid rgba(220, 192, 142, .23); color: var(--accent); font-size: 15px; font-variant-numeric: tabular-nums; }
.hero-step h3 { margin: 2px 0 4px; font-size: 16px; }
.hero-step p { margin: 0; color: var(--muted); font-size: 15px; }
.hero-step-sample { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hero-step-sample span { padding: 3px 10px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.hero-step-sample span.lock { color: var(--accent-2); border-color: rgba(169, 195, 166, .35); }

/* ── 9. Categories, filters, cards ─────────────────────────────────────── */
.categories { display: flex; gap: 8px; margin: 0 0 40px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.categories a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(236, 220, 190, .03); color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; transition: color var(--dur), background-color var(--dur), border-color var(--dur); }
.categories a .icon { width: 18px; height: 18px; }
.categories a:hover { color: var(--text); border-color: var(--line-3); background: rgba(236, 220, 190, .06); }
.categories a[aria-current=page] { color: var(--bg); background: var(--text); border-color: var(--text); }
#listings > .section-head h2 { font-size: clamp(24px, 2.4vw, 30px); }
.search { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-disclosure { flex: 1 1 420px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 18px; transition: border-color var(--dur); }
.filter-disclosure:hover { border-color: var(--line-2); }
.filter-disclosure[open] { padding-bottom: 6px; }
.filter-disclosure summary { color: var(--text); }
.filter-fields label { margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.search > .actions { padding-top: 0; }
.search > .actions button { min-height: 48px; }
.clear-filters { min-height: 48px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 8px 4px 14px; border-radius: 999px; background: rgba(214, 180, 122, .102); border: 1px solid rgba(220, 192, 142, .245); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.filter-chip span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--accent); }
.filter-chip:hover { background: rgba(214, 180, 122, .17); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.card { position: relative; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 260ms var(--ease), border-color var(--dur), box-shadow 260ms var(--ease); }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(220, 192, 142, .092); }
.card > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card > a:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-media .card-badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(18, 14, 11, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line-2); color: var(--text); font-size: 14px; font-weight: 600; }
.card-copy { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card-copy .status { align-self: flex-start; }
.card h2 { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--muted); font-size: 14px; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.card-meta span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); margin-left: -8px; margin-right: 2px; }
.card-copy small { margin-top: auto; padding-top: 6px; }
.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; min-height: 180px; padding: 16px; color: var(--faint); text-align: center; font-size: 14px; background: repeating-linear-gradient(135deg, rgba(236, 220, 190, .025) 0 12px, transparent 12px 24px), var(--surface-2); }
.placeholder .icon { width: 32px; height: 32px; color: var(--muted); }
.empty { display: grid; justify-items: center; gap: 4px; padding: clamp(36px, 6vw, 64px) 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }
.empty > .icon { width: 56px; height: 56px; padding: 14px; margin-bottom: 10px; border-radius: 16px; background: rgba(214, 180, 122, .102); color: var(--accent); flex-basis: auto; }
.empty h2 { margin-bottom: 6px; }
.empty p { max-width: 460px; color: var(--muted); }
.empty .actions { justify-content: center; }

/* Wanted invitation: the core differentiator, framed with the brand gradient. */
.wanted-invitation { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: 72px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); border: 1px solid transparent; background: linear-gradient(135deg, #211A14, #16120F 60%) padding-box, linear-gradient(120deg, rgba(214, 180, 122, .68), rgba(169, 195, 166, .6) 50%, rgba(236, 220, 190, .08)) border-box; overflow: hidden; }
.wanted-invitation::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(214, 180, 122, .108), transparent 65%); pointer-events: none; }
.wanted-invitation > div > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(214, 180, 122, .136); color: var(--accent); margin-bottom: 16px; }
.wanted-invitation h2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; }
.wanted-invitation p:last-child { margin: 0; color: var(--muted); max-width: 560px; }
.wanted-invitation > .button { position: relative; z-index: 1; min-height: 52px; padding: 12px 26px; }

/* ── 10. Listing detail ────────────────────────────────────────────────── */
.detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); grid-template-areas: "photo head" "photo actions" "photo facts" "more facts"; grid-template-rows: auto auto 1fr; gap: 0 clamp(24px, 4vw, 56px); margin-top: 12px; align-items: start; }
.detail-heading { grid-area: head; }
.primary-photo { grid-area: photo; position: sticky; top: 140px; }
.detail-actions { grid-area: actions; padding: 20px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.detail-facts { grid-area: facts; }
.more-photos { grid-area: more; margin-top: 16px; }
.detail h1 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 10px; }
.detail-heading .eyebrow { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.price { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; color: var(--muted); }
.detail-summary > span:not(.status) { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.gallery { display: grid; gap: 12px; }
.gallery img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-2); object-fit: cover; aspect-ratio: 4 / 3; }
.primary-photo .placeholder { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.more-photos { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.more-photos img { border-radius: var(--radius); }
.detail-actions > .note { margin-bottom: 14px; }
.detail-actions .actions { margin-bottom: 14px; }
.detail-actions .actions form > button, .detail-actions .actions > a { min-height: 50px; }
.detail-actions .actions form:first-child { flex: 1 1 220px; }
.detail-actions .actions form:first-child > button { width: 100%; }
.detail-actions details { margin-top: 6px; }
.detail-actions details summary, .detail-actions > form button.secondary { font-size: 14px; }
.detail-actions > form button.secondary { margin-top: 6px; min-height: 40px; color: var(--muted); }
.guest-entry { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); }
.guest-entry h2 { font-size: 20px; margin-bottom: 6px; }
.guest-entry > p { color: var(--muted); }
.guest-entry .actions .button:first-child { flex: 1 1 240px; }
dl { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 0; margin: 0 0 14px; }
dt, dd { padding: 12px 0; border-top: 1px solid var(--line); margin: 0; }
dt { color: var(--faint); font-size: 14px; font-weight: 600; padding-right: 16px; }
dd { overflow-wrap: anywhere; }
dl > :nth-child(1), dl > :nth-child(2) { border-top: 0; }
.detail-facts h2 { font-size: 18px; }
.management { margin-top: 48px; }
.management h3 { margin-top: 28px; }
.management figure { margin: 0; padding: 12px; }
.management figure img { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.management figcaption { margin: 10px 0; color: var(--muted); font-size: 14px; }
.management .gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 20px; }
.management > .actions { margin: 4px 0 8px; }
.upload { display: grid; gap: 12px; margin-top: 18px; padding: 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--bg-raised); }
.upload label { margin: 0; }
.upload button { justify-self: start; }
.upload [role=status]:not(:empty) { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(220, 192, 142, .061); color: var(--text); font-size: 14px; }
.upload [role=status]:empty { display: none; }

/* ── 11. Seller flow ───────────────────────────────────────────────────── */
.seller-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 28px; padding: 0; list-style: none; }
.seller-steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.seller-steps li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.seller-steps li:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.seller-steps li + li { border-left: 0; }
.seller-steps strong { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(214, 180, 122, .119); color: var(--accent); font-size: 14px; flex: none; font-variant-numeric: tabular-nums; }

/* ── 12. Account entry ─────────────────────────────────────────────────── */
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; max-width: 1100px; margin: clamp(8px, 3vw, 32px) auto 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); }
.auth { padding: clamp(28px, 4vw, 52px); border: 0; border-radius: 0; box-shadow: none; background: var(--surface); }
.auth .page-heading { margin-bottom: 18px; }
.auth h1 { font-size: clamp(30px, 3vw, 40px); }
.auth > p { color: var(--muted); }
.auth form { margin: 22px 0 10px; }
.auth form > button { width: 100%; min-height: 52px; font-size: 16px; }
.auth > p > a { color: var(--accent); font-weight: 600; }
.auth > a { color: var(--muted); font-size: 15px; }
.auth-benefits { position: relative; padding: clamp(28px, 4vw, 52px); background: radial-gradient(500px 300px at 100% 0%, rgba(214, 180, 122, .116), transparent 70%), radial-gradient(400px 300px at 0% 100%, rgba(176, 141, 87, .135), transparent 70%), var(--bg-raised); border-left: 1px solid var(--line); }
.auth-benefits h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; margin-bottom: 28px; }
.signal-label { display: inline-block; margin-bottom: 18px; font-size: 14px; font-weight: 650; letter-spacing: .08em; color: var(--accent-2); }
.benefit-list { display: grid; gap: 22px; padding: 0; margin: 0; list-style: none; }
.benefit-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.benefit-list .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(236, 220, 190, .06); border: 1px solid var(--line-2); color: var(--accent); }
.benefit-list h2, .benefit-list h3 { font-size: 16px; margin: 2px 0 4px; letter-spacing: -.01em; }
.benefit-list p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── 13. Wanted, alerts, inbox, conversation ───────────────────────────── */
.want-card .section-head { margin-bottom: 10px; }
.want-card h3 { font-size: 19px; }
.private-price { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; border-radius: 999px; background: rgba(169, 195, 166, .08); border: 1px solid rgba(169, 195, 166, .25); color: var(--muted); font-size: 14px; }
.private-price strong { color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.want-card details { margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.want-card .actions { margin-top: 6px; }
.new-want { margin-top: 28px; }
.new-want > summary { display: inline-flex; padding: 0 20px; border: 1px dashed var(--line-3); border-radius: 999px; }
.new-want > summary::before { display: none; }
.new-want[open] > summary { margin-bottom: 18px; }
.preferences { margin-bottom: 20px; padding-top: 14px; padding-bottom: 14px; }
.alert-card .section-head { justify-content: flex-start; gap: 8px; margin-bottom: 12px; }
.alert-card h2 { font-size: 20px; margin-bottom: 6px; }
.alert-card h2 a { text-decoration: none; }
.alert-card h2 a:hover { color: var(--accent); }
.alert-card > p { color: var(--muted); }
.thread-list { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.thread-list > .empty { border: 0; border-radius: 0; }
.thread-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color var(--dur); }
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: rgba(236, 220, 190, .03); }
.thread-row > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: rgba(214, 180, 122, .119); color: var(--accent); }
.thread-row > span:first-of-type { font-weight: 650; overflow-wrap: anywhere; line-height: 1.45; }
.thread-row small { font-weight: 500; }
.thread-row small + br + small { color: var(--warning); font-weight: 600; }
.thread-row > span:last-child { color: var(--faint); font-size: 20px; transition: transform var(--dur), color var(--dur); }
.thread-row:hover > span:last-child { color: var(--accent); transform: translateX(3px); }
.blocked-accounts, .snapshot-history { padding-top: 14px; padding-bottom: 14px; margin: 20px 0; }
.blocked-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.blocked-row:first-child { border-top: 0; }
.conversation { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.messages-panel h2, .proposals-panel h2 { font-size: 18px; }
.message-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.message { max-width: 82%; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; }
.message.outgoing { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, rgba(176, 141, 87, .173), rgba(214, 180, 122, .108)); border-color: rgba(220, 192, 142, .23); }
.message strong { display: block; font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.message p { margin: 0 0 4px; }
.message small { font-size: 14px; }
.proposals-panel { position: sticky; top: 140px; }
.proposal { padding: 16px; margin-bottom: 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-2); }
.proposal-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.proposal-price { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.proposal .actions { margin-top: 12px; }
.proposal .actions > form { flex: 1 1 120px; }
.proposal .actions button { width: 100%; }
.proposal details { margin-top: 10px; }
.fresh-proposal { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.snapshot { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.snapshot h3 { color: var(--text); font-size: 15px; }
.snapshot p { margin-bottom: 6px; }
.recovery .error-message { margin-top: 4px; }
.recovery-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ── 14. Footer ────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); background: var(--bg-raised); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.3fr); gap: 32px; max-width: var(--page); margin: 0 auto; padding: 56px var(--gutter) 40px; }
.footer-brand { width: 168px; margin-bottom: 16px; }
.footer-grid strong { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: -.01em; margin-bottom: 6px; }
.footer-grid p { color: var(--muted); font-size: 15px; }
.footer-grid h2 { font-size: 14px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-links { display: grid; gap: 2px; padding: 0; margin: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-note { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.footer-note p { margin: 0; font-size: 14px; }
.footer-base { max-width: var(--page); margin: 0 auto; padding: 18px var(--gutter) 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }
.footer-base a { color: var(--muted); }

/* ── 15. Motion: reveal on first paint, never hides content ────────────── */
@media (prefers-reduced-motion: no-preference) {
  .discovery-intro .hero-copy > *, .hero-steps { animation: rise 480ms var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-steps { animation-delay: 160ms; }
  .cards > .card { animation: rise 520ms var(--ease) both; }
  .cards > .card:nth-child(2) { animation-delay: 40ms; } .cards > .card:nth-child(3) { animation-delay: 80ms; }
  .cards > .card:nth-child(4) { animation-delay: 120ms; } .cards > .card:nth-child(n+5) { animation-delay: 160ms; }
}
/* Transform-only: content is never hidden, even if an animation is paused or throttled. */
@keyframes rise { from { transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── 16. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid > .footer-note { grid-column: auto; }
}
@media (max-width: 960px) {
  .discovery-intro { grid-template-columns: minmax(0, 1fr); }
  .hero-steps { max-width: 620px; }
  .detail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "photo" "actions" "facts" "more"; grid-template-rows: none; }
  .primary-photo { position: static; margin-top: 20px; }
  .detail-actions { padding-top: 20px; }
  .conversation { grid-template-columns: minmax(0, 1fr); }
  .proposals-panel { position: static; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-benefits { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 170px; }
  .header-top { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand actions" "search search"; gap: 10px 12px; padding-top: 10px; padding-bottom: 12px; min-height: 0; }
  .brand { grid-area: brand; width: 128px; }
  .header-search { grid-area: search; }
  .header-actions { grid-area: actions; gap: 6px; }
  .sell-link { padding: 8px 12px; min-height: 40px; }
  .account > a:not(.button) { padding: 0 8px; }
  .account .button { padding: 8px 14px; min-height: 40px; }
  .account-menu summary { padding-right: 10px; }
  .account-menu summary > span:not(.avatar) { display: none; }
  .main-nav a { padding: 0 12px; min-height: 44px; font-size: 14px; }
  main { padding-top: 20px; }
  .wanted-invitation { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .wanted-invitation > .button { justify-self: start; }
  .seller-steps { grid-template-columns: minmax(0, 1fr); }
  .seller-steps li, .seller-steps li:first-child, .seller-steps li:last-child { border-radius: 0; border-left: 1px solid var(--line); }
  .seller-steps li + li { border-top: 0; }
  .seller-steps li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .seller-steps li:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 40px; }
  .footer-grid > .footer-note { grid-column: 1 / -1; }
  .message { max-width: 92%; }
  .search > .actions { width: 100%; }
}
@media (max-width: 520px) {
  .sell-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sell-link { width: 40px; padding: 0; justify-content: center; }
  .hero-copy h1 { font-size: clamp(36px, 11vw, 46px); }
  .hero-copy .actions .button { flex: 1 1 100%; }
  .hero-steps { padding: 22px 18px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .panel { border-radius: var(--radius); }
  .thread-row { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
  .thread-row > .icon { display: none; }
  dl { grid-template-columns: minmax(0, 1fr); }
  dt { padding-bottom: 0; border-top: 1px solid var(--line); }
  dd { border-top: 0; padding-top: 4px; }
  dl > :nth-child(2) { border-top: 0; }
  .detail-actions .actions > *, .guest-entry .actions > * { flex: 1 1 100%; }
  .detail-actions .actions form > button, .guest-entry .actions .button { width: 100%; }
}
@media (max-width: 400px) {
  .brand { width: 112px; }
  /* Sign in stays visible; registration remains one tap away on the sign-in page. */
  .guest-account .button { display: none; }
}

/* ── 17. Refinements from rendered review ──────────────────────────────── */
.card h2 { text-wrap: pretty; }
.card-meta span:last-child, .area { text-transform: capitalize; }
.footer-note { align-self: start; }
.form-section legend { float: left; width: 100%; }
.form-section legend + * { clear: both; }
.want-card h3 { text-transform: capitalize; }
.sell-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.sell-tips { position: sticky; top: 140px; padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(214, 180, 122, .06), transparent 60%), var(--bg-raised); }
.sell-tips h2 { font-size: 18px; margin-bottom: 18px; }
.sell-tips ul { display: grid; gap: 18px; margin: 0 0 18px; padding: 0; list-style: none; }
.sell-tips li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.sell-tips li .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(214, 180, 122, .102); color: var(--accent); }
.sell-tips h3 { font-size: 15px; margin: 0 0 2px; }
.sell-tips p { margin: 0; color: var(--muted); font-size: 14px; }
.sell-tips > .note { padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .sell-layout { grid-template-columns: minmax(0, 1fr); } .sell-tips { position: static; } }

@media (max-width: 760px) {
  .discovery-intro { padding: 12px 0 28px; gap: 24px; }
  .hero-lede { margin-bottom: 20px; }
  .hero-note { margin-top: 16px; }
  .hero-step-sample { display: none; }
  .hero-step { padding: 12px 0; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .hero-step b { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
  .hero-step p { font-size: 14px; }
  .hero-steps-title { margin-bottom: 12px; }
  .categories { margin-bottom: 28px; }
  .preview { font-size: 14px; padding: 6px 12px; }
}

@media (max-width: 1024px) and (min-width: 761px) {
  .header-top { gap: 16px; }
  .account-menu summary { padding-right: 10px; }
  .account-menu summary > span:not(.avatar) { display: none; }
}

/* ── 18. Ember refinements ─────────────────────────────────────────────── */
/* Fraunces with the SOFT axis on: rounded, friendly serifs for display type. */
h1, h2, .hero-copy h1, .wanted-invitation h2, .auth-benefits h2, .price, .card-price, .proposal-price, .footer-grid strong, .hero-step b {
  font-family: var(--font-display); font-weight: 600; font-variation-settings: "SOFT" 100, "WONK" 0; font-optical-sizing: auto;
}
h1 { letter-spacing: -.022em; }
h2 { letter-spacing: -.012em; }
h3 { font-family: var(--font); }
.hero-copy h1 { font-size: clamp(42px, 5.8vw, 76px); letter-spacing: -.032em; line-height: 1.02; font-weight: 520; }
.hero-copy h1 span { font-weight: 560; }
.card h2 { font-family: var(--font); font-weight: 600; font-variation-settings: normal; text-wrap: pretty; }
.card-price, .price, .proposal-price { font-weight: 600; letter-spacing: -.008em; }
.price { color: var(--text); }
.eyebrow { color: var(--accent); letter-spacing: .12em; }
.signal-label { color: var(--accent-2); }

/* Lamp light: warm glow beneath the hero panel, never painted over its content. */
.hero-steps::before { display: none; }
.hero-steps { background: linear-gradient(180deg, #1C1713, #16120F); box-shadow: 0 1px 0 rgba(236, 220, 190, .06) inset, 0 50px 90px -40px rgba(176, 141, 87, .27), 0 0 0 1px var(--line-2); }
.hero-step b { background: rgba(214, 180, 122, .1); border-color: rgba(220, 192, 142, .252); color: var(--amber); font-size: 18px; }
.hero-steps-title span { color: var(--success); }
.hero-step-sample span.lock { color: var(--success); border-color: rgba(169, 195, 166, .35); background: rgba(169, 195, 166, .07); }

/* Header and ribbon. */
.preview { background: #0A0807; color: var(--faint); }
.preview a { color: var(--accent); }
.site-header { background: rgba(18, 14, 11, .82); }
.header-search button .icon { color: var(--on-accent); }
.main-nav a[aria-current=page]::after { background: var(--brand-grad); }

/* Cards read like product photography on dark velvet. */
.card { background: linear-gradient(180deg, #18140F, #14110D); }
.card-media { background: #26201A; }
.card-badge { color: var(--text); }
.card-price { color: var(--text); }

/* Conversation and status tints. */
.message.outgoing { background: linear-gradient(135deg, rgba(214, 180, 122, .2), rgba(176, 141, 87, .084)); border-color: rgba(220, 192, 142, .252); }
.private-price { background: rgba(169, 195, 166, .07); border-color: rgba(169, 195, 166, .28); }
.thread-row small + br + small { color: var(--warning); }
.notice { background: rgba(214, 180, 122, .07); border-color: rgba(220, 192, 142, .216); }
.notice .icon { color: var(--amber); }

/* Wanted invitation: copper-framed, the page's warm signature moment. */
.wanted-invitation { background: linear-gradient(135deg, #211A14, #16120F 62%) padding-box, linear-gradient(120deg, rgba(228, 200, 144, .675), rgba(176, 141, 87, .27) 50%, rgba(236, 220, 190, .08)) border-box; }
.wanted-invitation::after { background: radial-gradient(circle, rgba(214, 180, 122, .121), transparent 65%); }
.auth-benefits { background: radial-gradient(520px 320px at 100% 0%, rgba(176, 141, 87, .156), transparent 70%), radial-gradient(420px 300px at 0% 100%, rgba(214, 180, 122, .077), transparent 70%), var(--bg-raised); }
.sell-tips { background: linear-gradient(180deg, rgba(214, 180, 122, .07), transparent 60%), var(--bg-raised); }
footer { background: #0A0807; }

/* ── 19. Champagne: quieter, more precise ──────────────────────────────── */
body {
  background:
    radial-gradient(1100px 520px at 50% -260px, rgba(214, 180, 122, .09), transparent 70%),
    var(--bg);
}
h1, h2, .wanted-invitation h2, .auth-benefits h2 { font-weight: 480; font-variation-settings: "SOFT" 50, "WONK" 0; }
h1 { letter-spacing: -.02em; }
.hero-copy h1 { font-weight: 400; letter-spacing: -.03em; font-variation-settings: "SOFT" 50, "WONK" 0; }
.hero-copy h1 span { font-weight: 420; }
.price, .card-price, .proposal-price { font-weight: 500; font-variation-settings: "SOFT" 30; }
.eyebrow { font-size: 14px; letter-spacing: .2em; font-weight: 600; color: var(--gold); }
.signal-label { letter-spacing: .2em; }
.site-header { border-bottom-color: rgba(214, 180, 122, .14); }
.brand { width: 188px; }
.footer-brand { width: 176px; }
button, .button { box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 6px 18px -10px rgba(176, 141, 87, .55); letter-spacing: .005em; }
button:hover, .button:hover { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 10px 26px -12px rgba(214, 180, 122, .6); }
button.secondary, .button.secondary { box-shadow: none; }
.hero-steps { box-shadow: 0 1px 0 rgba(236, 220, 190, .06) inset, 0 50px 90px -50px rgba(214, 180, 122, .3), 0 0 0 1px var(--line-2); }
.hero-step b { font-weight: 500; }
.categories a[aria-current=page] { background: var(--text); color: var(--bg); }
.main-nav a[aria-current=page]::after { height: 1.5px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); }
.card { border-color: rgba(236, 220, 190, .07); }
.card:hover { border-color: rgba(214, 180, 122, .28); box-shadow: 0 28px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(214, 180, 122, .12); }
.card-badge { letter-spacing: .04em; }
.wanted-invitation { background: linear-gradient(135deg, #1C1713, #14110D 62%) padding-box, linear-gradient(120deg, rgba(228, 200, 144, .6), rgba(176, 141, 87, .25) 45%, rgba(236, 220, 190, .06)) border-box; }
.preview { letter-spacing: .02em; }
@media (max-width: 760px) { .brand { width: 140px; } }
@media (max-width: 400px) { .brand { width: 120px; } }

/* ── 20. Seller flow states ────────────────────────────────────────────── */
.seller-steps li.is-done { color: var(--text); }
.seller-steps li.is-done strong { background: rgba(169, 195, 166, .14); color: var(--success); }
.seller-steps li[aria-current=step] { color: var(--text); background: linear-gradient(180deg, rgba(214, 180, 122, .1), rgba(214, 180, 122, .03)), var(--surface); box-shadow: inset 0 -2px 0 var(--gold); }
.seller-steps li[aria-current=step] strong { background: var(--brand-grad); color: var(--on-accent); }
.photo-manager { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.photo-manager h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.photo-manager > p { color: var(--muted); }
.publish-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(90deg, rgba(214, 180, 122, .07), transparent 70%), var(--bg-raised); }
.publish-copy { display: grid; gap: 2px; min-width: 0; flex: 1 1 280px; }
.publish-copy strong { font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.publish-copy span { color: var(--muted); font-size: 14px; }

/* ── 21. Marketplace layout: category tiles, filter sidebar, results ───── */
.categories { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(92px, 1fr); gap: 10px; margin: 8px 0 40px; padding: 4px 2px 8px; overflow-x: auto; scroll-snap-type: x proximity; }
.categories a { display: grid; justify-items: center; gap: 10px; min-height: 0; padding: 14px 8px 12px; border-radius: 16px; border: 1px solid transparent; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; text-align: center; white-space: nowrap; scroll-snap-align: start; transition: color var(--dur), background-color var(--dur), border-color var(--dur); }
.categories a .tile-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(180deg, #221C17, #18140F); border: 1px solid var(--line-2); color: var(--gold); box-shadow: 0 1px 0 rgba(236, 220, 190, .06) inset, 0 10px 24px -16px rgba(0, 0, 0, .9); transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease); }
.categories a .tile-icon .icon { width: 26px; height: 26px; flex-basis: 26px; }
.categories a:hover { color: var(--text); background: rgba(236, 220, 190, .03); }
.categories a:hover .tile-icon { border-color: rgba(214, 180, 122, .45); transform: translateY(-2px); }
.categories a[aria-current=page] { color: var(--text); background: rgba(214, 180, 122, .06); border-color: rgba(214, 180, 122, .22); }
.categories a[aria-current=page] .tile-icon { background: var(--brand-grad); color: var(--on-accent); border-color: transparent; box-shadow: 0 12px 28px -14px rgba(214, 180, 122, .7); }
.results-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters-col { position: sticky; top: 140px; display: grid; gap: 14px; }
.filters-col .search { display: grid; gap: 12px; margin: 0; }
.filters-col .filter-disclosure { flex: none; padding: 4px 18px 8px; border-radius: var(--radius-lg); background: var(--surface); border-color: var(--line-2); }
.filters-col .filter-disclosure > summary { font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.filters-col .filter-disclosure > summary .icon { color: var(--gold); }
.filters-col .filter-fields { grid-template-columns: minmax(0, 1fr); }
.filters-col .search > .actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.filters-col .search > .actions button { width: 100%; }
.filters-alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); border: 1px dashed rgba(214, 180, 122, .35); background: rgba(214, 180, 122, .04); color: var(--muted); font-size: 14px; text-decoration: none; transition: border-color var(--dur), background-color var(--dur); }
.filters-alert:hover { border-color: rgba(214, 180, 122, .6); background: rgba(214, 180, 122, .08); }
.filters-alert .icon { color: var(--gold); margin-top: 1px; }
.filters-alert strong { display: block; color: var(--text); }
.results-head { align-items: flex-end; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.results-head h2 { margin: 0 0 4px; }
.result-count { color: var(--faint); font-size: 14px; }
.sort-control label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.sort-control select { min-width: 196px; min-height: 42px; }
.results-col .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
/* Wide screens keep the filter panel expanded (JS opens it; ::details-content covers supporting browsers). */
@media (min-width: 1024px) {
  .filters-col .filter-disclosure::details-content { content-visibility: visible; block-size: auto; }
  .filters-col .filter-disclosure > summary { pointer-events: none; }
  .filters-col .filter-disclosure > summary::before { display: none; }
}
@media (max-width: 1023px) {
  .results-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .filters-col { position: static; }
  .filters-alert { display: none; }
}
@media (max-width: 600px) {
  .categories { grid-auto-columns: 84px; margin-bottom: 28px; }
  .categories a .tile-icon { width: 54px; height: 54px; border-radius: 16px; }
  .results-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .sort-control select { min-width: 0; flex: 1; }
}

/* ── 22. Item alerts ───────────────────────────────────────────────────── */
.alerts-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
.alerts-layout > aside { position: sticky; top: 140px; }
.want-create h2, .new-want h2 { font-size: 22px; margin-bottom: 4px; }
.want-create > .note, .new-want .panel > .note { margin-bottom: 20px; }
.empty-lead { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 14px 16px; border-radius: var(--radius); background: rgba(214, 180, 122, .06); border: 1px solid rgba(214, 180, 122, .2); color: var(--text); }
.empty-lead .icon { color: var(--gold); }
.legend-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(214, 180, 122, .12); color: var(--gold); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.form-section legend { gap: 10px; }
.field-note { display: flex; gap: 10px; align-items: flex-start; margin: -4px 0 8px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(169, 195, 166, .06); border: 1px solid rgba(169, 195, 166, .22); color: var(--muted); font-size: 14px; }
.field-note .icon { color: var(--success); width: 18px; height: 18px; flex-basis: 18px; margin-top: 1px; }
.field-note strong { color: var(--text); }
.how-alerts { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(214, 180, 122, .06), transparent 55%), var(--bg-raised); }
.how-alerts h2 { font-size: 20px; margin-bottom: 18px; }
.how-alerts ol { display: grid; gap: 18px; margin: 0 0 18px; padding: 0; list-style: none; }
.how-alerts li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.how-alerts b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(214, 180, 122, .1); border: 1px solid rgba(214, 180, 122, .25); color: var(--gold); font-family: var(--font-display); font-weight: 500; }
.how-alerts h3 { margin: 2px 0 2px; font-size: 15px; }
.how-alerts p { margin: 0; color: var(--muted); font-size: 14px; }
.how-privacy { display: flex; gap: 10px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.how-privacy .icon { color: var(--success); }
.want-list > .section-head { margin-bottom: 4px; }
.want-card { padding: 22px 24px; }
.want-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.want-head h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.01em; text-transform: capitalize; }
.want-head h3 span { display: block; margin-top: 2px; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted); text-transform: none; }
.want-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.want-facts li { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.want-facts li .icon { width: 16px; height: 16px; flex-basis: 16px; color: var(--faint); }
.want-facts li.private-price { background: rgba(169, 195, 166, .07); border-color: rgba(169, 195, 166, .28); color: var(--text); }
.want-facts li.private-price .icon { color: var(--success); }
.want-facts li.private-price strong { font-variant-numeric: tabular-nums; }
.want-facts li em { font-style: normal; font-size: 14px; color: var(--success); padding-left: 8px; border-left: 1px solid rgba(169, 195, 166, .3); }
.want-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.want-actions .button, .want-actions button { min-height: 40px; padding: 8px 16px; }
.want-edit { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.want-card .note { margin: 0; }
@media (max-width: 1023px) {
  .alerts-layout { grid-template-columns: minmax(0, 1fr); }
  .alerts-layout > aside { position: static; }
}
.status.as-is { text-transform: none; }
.alert-card.has-preview { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; }
.match-thumb { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-3); }
.match-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.alert-card:hover .match-thumb img { transform: scale(1.04); }
.match-thumb .placeholder { min-height: 0; height: 100%; }
.match-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: -2px 0 8px; color: var(--muted); font-size: 14px; }
.match-meta strong { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .alert-card.has-preview { grid-template-columns: minmax(0, 1fr); } .match-thumb { max-width: 100%; } }

/* ── 23. Listing page: breadcrumbs, specifics, seller, similar items ───── */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 18px; font-size: 14px; color: var(--faint); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); text-decoration: underline; }
.breadcrumbs [aria-current=page] { color: var(--faint); max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-summary > span:not(.status) .icon { width: 16px; height: 16px; flex-basis: 16px; color: var(--faint); }
.detail-facts h2 { margin-bottom: 16px; }
dl.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
dl.specs > div { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
dl.specs dt, dl.specs dd { padding: 0; border: 0; }
dl.specs dt { font-size: 14px; color: var(--faint); font-weight: 600; margin-bottom: 2px; }
dl.specs dd { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
dl.specs > div.cap dd { text-transform: capitalize; }
.defects { margin-bottom: 18px; }
.defects h3 { font-size: 15px; margin-bottom: 6px; }
.defects p { margin: 0; color: var(--muted); }
.seller-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--radius); background: var(--bg-raised); border: 1px solid var(--line); }
.seller-card .avatar { width: 42px; height: 42px; font-size: 16px; }
.seller-card strong { display: block; }
.seller-card span:not(.avatar) { color: var(--faint); font-size: 14px; }
.alert-cta { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgba(214, 180, 122, .3); background: linear-gradient(90deg, rgba(214, 180, 122, .08), transparent 80%), var(--surface); color: var(--muted); font-size: 14px; text-decoration: none; transition: border-color var(--dur), background-color var(--dur); }
.alert-cta:hover { border-color: rgba(214, 180, 122, .6); }
.alert-cta > .icon { color: var(--gold); flex: none; }
.alert-cta strong { display: block; color: var(--text); font-size: 15px; }
.alert-cta-arrow { margin-left: auto; color: var(--gold); font-size: 18px; transition: transform var(--dur); }
.alert-cta:hover .alert-cta-arrow { transform: translateX(3px); }
.similar { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.similar .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (max-width: 600px) { dl.specs { grid-template-columns: minmax(0, 1fr); } .similar { margin-top: 40px; } }

/* ── 24. Confidence features: trust strip, safety row, conversation tools ─ */
.want-head h3 { text-transform: none; }
.safety-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.safety-row details { margin: 0; }
.safety-row details[open] { flex-basis: 100%; }
.safety-row summary { min-height: 36px; font-size: 14px; font-weight: 500; color: var(--faint); }
.safety-row summary:hover { color: var(--text); }
.safety-row form button.secondary, .detail-actions .safety-row > form button.secondary { min-height: 36px; margin: 0; padding: 0; border: 0; background: none; color: var(--faint); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.safety-row form button.secondary:hover { color: var(--text); background: none; }
.trust { margin-top: 64px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-raised); }
.trust h2 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 22px; }
.trust ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.trust li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.trust li .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(214, 180, 122, .1); border: 1px solid rgba(214, 180, 122, .22); color: var(--gold); flex-basis: 40px; }
.trust strong { display: block; margin-bottom: 4px; color: var(--text); }
.trust span { color: var(--muted); font-size: 14px; }
.trust + .wanted-invitation { margin-top: 24px; }
@media (max-width: 1080px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust ul { grid-template-columns: minmax(0, 1fr); } }
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chip-btn { min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); font-size: 14px; font-weight: 500; box-shadow: none; }
.chip-btn:hover { background: var(--surface-3); color: var(--text); border-color: rgba(214, 180, 122, .4); filter: none; box-shadow: none; }
.asking { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.asking strong { color: var(--text); font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.pickup-tips { margin-bottom: 20px; }
.pickup-tips h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.pickup-tips h2 .icon { color: var(--success); }
.pickup-tips ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: var(--muted); }
.pickup-tips li::marker { color: var(--gold); }

/* ── 25. Vehicles ──────────────────────────────────────────────────────── */
.card-specs { margin: -2px 0 0; color: var(--text); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vehicle-fields legend .note { font-weight: 500; }
.vehicle-fields { padding: 20px 18px 8px; margin: 8px 0 18px; border: 1px solid rgba(214, 180, 122, .22); border-radius: var(--radius); background: rgba(214, 180, 122, .04); }
.vehicle-fields legend { float: none; width: auto; padding: 0 8px; margin-bottom: 8px; }
.vehicle-fields legend + * { clear: none; }
.filter-group { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--gold); font-size: 14px; font-weight: 650; letter-spacing: .02em; }
.filter-group .icon { width: 18px; height: 18px; flex-basis: 18px; }
.vehicle-limits { margin: 4px 0 14px; padding: 4px 16px 6px; border-radius: var(--radius); border: 1px dashed rgba(214, 180, 122, .3); background: rgba(214, 180, 122, .03); }
.vehicle-limits > summary { font-size: 14px; color: var(--text); }
.vehicle-limits > summary .icon { color: var(--gold); width: 18px; height: 18px; flex-basis: 18px; }
.vehicle-limits > summary em { font-style: normal; color: var(--faint); font-weight: 500; }
.vehicle-limits > .note { margin: -6px 0 10px; }

/* ── 26. Deals: finish, cancel, sold ───────────────────────────────────── */
.deal-panel { margin-top: 14px; padding: 16px 16px 6px; border-radius: var(--radius-sm); border: 1px solid rgba(214, 180, 122, .28); background: rgba(214, 180, 122, .05); }
.deal-panel h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--text); }
.deal-panel .note { margin: 0 0 12px; }
.deal-panel > form button { width: 100%; }
.deal-panel details { margin: 8px 0 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.deal-panel details > summary { min-height: 40px; font-size: 14px; font-weight: 600; color: var(--muted); }
.deal-panel details[open] > summary { margin-bottom: 6px; }
.deal-panel details form button { width: 100%; }
.thread-row small.deal-label { color: var(--gold); font-weight: 600; }
.thread-row small.deal-label.sold { color: var(--success); }
.deal-note { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; margin: 4px 0 8px; border-radius: var(--radius); border: 1px solid rgba(214, 180, 122, .26); background: rgba(214, 180, 122, .05); }
.deal-note > .icon { width: 40px; height: 40px; flex-basis: 40px; padding: 9px; border-radius: 12px; background: rgba(214, 180, 122, .12); color: var(--gold); }
.deal-note strong { display: block; font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.deal-note p { margin: 4px 0 10px; color: var(--muted); }
.deal-note.sold { border-color: rgba(169, 195, 166, .3); background: rgba(169, 195, 166, .06); }
.deal-note.sold > .icon { background: rgba(169, 195, 166, .12); color: var(--success); }
.seller-summary { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; }
.seller-summary li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface-2); min-width: 0; }
.seller-summary strong { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.seller-summary span { color: var(--muted); font-size: 14px; font-weight: 600; }
.seller-summary small { color: var(--success); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .seller-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .seller-summary li { padding: 12px 14px; }
  .seller-summary strong { font-size: 24px; }
  .deal-note { padding: 14px; gap: 12px; }
  .deal-note > .icon { display: none; }
}

/* ── 27. Account recovery and policies ─────────────────────────────────── */
.recovery-nudge { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 12px 16px; margin: -8px 0 24px; border-radius: var(--radius); border: 1px solid rgba(214, 180, 122, .3); background: rgba(214, 180, 122, .06); }
.recovery-nudge > .icon { color: var(--gold); }
.recovery-nudge p { flex: 1 1 260px; margin: 0; color: var(--muted); font-size: 15px; }
.recovery-nudge strong { color: var(--text); }
.recovery-nudge .text-link { min-height: 36px; white-space: nowrap; }
.security-stack { max-width: 760px; display: grid; gap: 20px; }
.security-stack > .page-heading, .security-stack > .notice, .security-stack > .error-message { margin-bottom: 0; }
.security-panel h2 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; font-size: 24px; }
.security-panel > p { color: var(--muted); }
.recovery-count { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(169, 195, 166, .07); border: 1px solid rgba(169, 195, 166, .28); color: var(--muted); }
.recovery-count .icon { color: var(--success); }
.recovery-count strong { color: var(--text); }
.code-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0 20px; padding: 0; counter-reset: code; }
.code-list li { counter-increment: code; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface-2); }
.code-list li::before { content: counter(code); min-width: 18px; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.code-list code { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 17px; letter-spacing: .04em; color: var(--text); user-select: all; overflow-wrap: anywhere; }
.recovery-codes .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }
.policy-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 32px; align-items: start; }
.policy-nav { position: sticky; top: 24px; display: grid; gap: 4px; }
.policy-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; text-decoration: none; }
.policy-nav a:hover { background: rgba(236, 220, 190, .05); color: var(--text); }
.policy-nav a[aria-current="page"] { background: rgba(214, 180, 122, .1); color: var(--gold); }
.policy section { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.policy h2 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.policy section p, .policy li { color: var(--muted); line-height: 1.6; }
.policy ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.policy li::marker { color: var(--gold); }
.policy-todo { padding: 10px 14px; border-left: 3px solid var(--amber); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: rgba(214, 180, 122, .06); }
.policy-todo strong { color: var(--amber); }
@media (max-width: 860px) {
  .policy-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .policy-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .policy-nav a { min-height: 40px; border: 1px solid var(--line-2); border-radius: 999px; }
}
@media (max-width: 520px) {
  .code-list { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .preview, .site-header, footer, .recovery-codes .actions, .skip { display: none !important; }
  body, .panel { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .code-list li { border-color: #999; background: #fff; }
  .code-list code, .page-heading h1, .page-heading p, .recovery-codes .note, .recovery-codes .notice { color: #000 !important; }
}
/* Footer: a fifth column for Help and policies. */
.footer-grid { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .7fr)) minmax(0, 1.2fr); }
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > .footer-note { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 28. Your data and account deletion ────────────────────────────────── */
.danger-zone { border-color: rgba(238, 156, 138, .32); }
.danger-zone h2 { color: var(--danger); }
.delete-list { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.delete-list strong { color: var(--text); }
.danger-zone .confirm-delete { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; color: var(--text); font-weight: 500; }
.danger-zone .confirm-delete input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--danger); }
button.danger { background: rgba(238, 156, 138, .1); color: var(--danger); border-color: rgba(238, 156, 138, .5); box-shadow: none; }
button.danger:hover { background: rgba(238, 156, 138, .18); filter: none; box-shadow: none; }
.open-deals { margin: 6px 0 0; padding-left: 18px; }
.open-deals .text-link { min-height: 32px; }

/* ── 29. Inbox updates ─────────────────────────────────────────────────── */
#inbox-count { color: var(--accent); font-variant-numeric: tabular-nums; }
.thread-row:has(.update-label) { background: rgba(214, 180, 122, .05); }
.thread-row:has(.update-label) > span:first-of-type { font-weight: 700; }
.thread-row small.update-label { color: var(--gold); font-weight: 650; }
.thread-row small.update-label::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--gold); vertical-align: 1px; }
.updates-notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin: 0 0 18px; border-radius: var(--radius-sm); border: 1px solid rgba(214, 180, 122, .38); background: rgba(214, 180, 122, .08); }
.updates-notice > .icon { color: var(--gold); margin-top: 1px; }
.updates-notice strong { color: var(--text); }
.updates-notice ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
