/* Motorsporttorget — paddock utility, "Verkstad" palette (chosen 2026-09-16).
   Soft white ground #F6F6F4, oxblood accent #8B1E2D, ink #1A1A1A.
   Mobile first: base = 390px, then 720, 1080. */
@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  /* Surfaces */
  --ground: #f6f6f4;            /* the page itself */
  --panel: #ecece8;             /* filled blocks: seller, empty, filter panel */
  --surface: #ffffff;           /* controls and plates that sit on the ground */

  /* Ink */
  --ink: #1a1a1a;
  --muted: #5a5955;
  --on-ink: #f6f6f4;            /* text on an ink fill */
  --rule: #1a1a1a;

  /* Accent — oxblood */
  --accent: #8b1e2d;            /* fills: primary buttons, tape, checked radio */
  --on-accent: #ffffff;         /* text on an accent fill */
  --accent-on-ink: #e9909b;     /* accent as text on an ink fill (hover states) */
  --focus: var(--accent);       /* focus ring and focus fill */

  /* Status */
  --danger: #8b1e2d;            /* the accent doubles as the warning colour */
  --on-danger: #ffffff;         /* text on a danger fill */
  --ok: #1f5f3a;

  /* Current-page markers */
  --nav-current: var(--accent); /* underline under the current desktop nav link */
  --tab-current-bg: var(--ink); /* filled current tab on mobile */
  --tab-current-fg: var(--on-ink);

  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;

  --rule-1: 1px solid var(--rule);
  --rule-2: 2px solid var(--rule);
  --tap: 44px;               /* minimum touch target */
  --tabbar-h: 56px;          /* mobile bottom bar */
  --measure: 62ch;
}

/* Condensed display: use font-stretch, not a second family. */
.display { font-family: var(--font-ui); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.95; }
.mono    { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Swedish thousands separators are spaces; a full mono advance splits a price
   in two, so every mono run is pulled back a touch. */
.mono, .index__count, .index__no, .section-head__meta, .page-meta, .pager__status,
.pager__page, .row__price, .price, .spec__value, .convo__time, .gallery__counter,
.thread__meta .mono, .msg__meta, .field__unit-label { word-spacing: -0.18em; }
.row__price small, .price__note { word-spacing: normal; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); font: 16px/1.4 var(--font-ui); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

@media (min-width: 720px) { body { padding-bottom: 0; } .tabbar { display: none; } }

/* ===========================================================================
   1. Type scale and base elements
   Scale: 11 · 12 · 13 · 15 · 16 · 20 · 28 · 40 · 56  (mono holds 11–28)
   =========================================================================== */

h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding-left: 1.1em; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
::selection { background: var(--accent); color: var(--on-accent); }

/* The accent never sits as bare text on the ground: where a link takes focus we
   fill the accent behind --on-accent text instead of ringing it. */
a:focus-visible,
summary:focus-visible { outline-offset: 0; background: var(--accent); color: var(--on-accent); }
.button:focus-visible,
.field__input:focus-visible,
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 0; }

.skip { position: absolute; left: var(--space-3); top: -80px; display: inline-flex; align-items: center; min-height: var(--tap); z-index: 100; background: var(--accent); color: var(--on-accent); border: var(--rule-2); padding: var(--space-2) var(--space-3); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 13px; }
.skip:focus { top: var(--space-2); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 720px)  { .wrap { padding-inline: var(--space-5); } }
@media (min-width: 1080px) { .wrap { padding-inline: var(--space-6); } }
/* Every page starts a clear step below the topbar rule; the blocks that used
   to carry their own top space (search, crumbs) no longer do. */
main.wrap { padding-top: var(--space-5); }
@media (min-width: 1080px) { main.wrap { padding-top: var(--space-6); } }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ===========================================================================
   2. Top bar and bottom tab bar
   =========================================================================== */

.topbar { position: sticky; top: 0; z-index: 40; background: var(--ground); border-bottom: var(--rule-2); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 52px; }
.wordmark { display: inline-flex; align-items: center; min-height: var(--tap); font-family: var(--font-ui); font-stretch: 62%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.004em; line-height: 1; font-size: clamp(22px, 6.2vw, 30px); text-decoration: none; white-space: nowrap; }
.topbar__nav { display: none; }
@media (min-width: 720px) {
  .topbar__inner { min-height: 60px; }
  .topbar__nav { display: flex; align-items: stretch; gap: var(--space-5); }
  .topbar__link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap); text-decoration: none; font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; border-bottom: 2px solid transparent; }
  .topbar__link:hover { border-bottom-color: var(--nav-current); }
  .topbar__link--current { border-bottom-color: var(--nav-current); }
  .topbar__link--primary { background: var(--accent); color: var(--on-accent); border: var(--rule-2); padding-inline: var(--space-3); }
  .topbar__link--primary:hover { background: var(--ink); color: var(--accent-on-ink); }
}

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ground); border-top: var(--rule-2); padding-bottom: env(safe-area-inset-bottom); }
.tabbar__item { position: relative; display: flex; align-items: center; justify-content: center; gap: var(--space-1); min-height: var(--tabbar-h); padding-inline: 3px; border-left: var(--rule-1); text-decoration: none; text-align: center; font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: 0.01em; }
.tabbar__item:first-child { border-left: 0; }
.tabbar__item--primary { background: var(--accent); color: var(--on-accent); }
.tabbar__item--current { background: var(--tab-current-bg); color: var(--tab-current-fg); }
.tabbar__badge { position: absolute; top: 7px; right: 6px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 10px; line-height: 1; min-width: 15px; height: 15px; display: inline-grid; place-items: center; padding-inline: 2px; background: var(--ink); color: var(--on-ink); }
.tabbar__item--current .tabbar__badge { background: var(--tab-current-fg); color: var(--tab-current-bg); }

/* Restated after the component block: the hide rule near the top of the file is
   overridden by .tabbar's own display, so it has to come last. */
@media (min-width: 720px) { .tabbar { display: none; } }

/* ===========================================================================
   3. Search
   =========================================================================== */

.search { display: flex; align-items: stretch; border: var(--rule-2); background: var(--surface); }
.search__input { flex: 1 1 auto; min-width: 0; height: 50px; border: 0; background: transparent; padding-inline: var(--space-3); font-size: 16px; }
.search__input::placeholder { color: var(--muted); }
.search__input:focus-visible { outline: none; }
.search__button { flex: 0 0 auto; height: 50px; border: 0; border-left: var(--rule-2); background: var(--accent); color: var(--on-accent); padding-inline: var(--space-5); cursor: pointer; font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: 0.04em; }
.search__button:hover { background: var(--ink); color: var(--accent-on-ink); }

.search-block { padding-block: 0 var(--space-5); }

/* ===========================================================================
   4. Discipline index
   Ragged by design: the three mains hold 6 / 5 / 4 disciplines and the
   columns are never padded out to match.
   =========================================================================== */

.index { padding-bottom: var(--space-4); }
.index__main { border-top: var(--rule-2); padding-block: var(--space-3) var(--space-6); }
.index__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2); }
.index__title { font-family: var(--font-ui); font-stretch: 70%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.9; font-size: 40px; }
.index__title a { text-decoration: none; }
.index__count { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); white-space: nowrap; }
.index__list { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--rule-1); }
.index__discipline { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--tap); padding-block: var(--space-2); border-bottom: var(--rule-1); text-decoration: none; font-size: 15px; font-weight: 600; }
.index__discipline:nth-child(odd) { border-right: var(--rule-1); padding-right: var(--space-3); }
.index__discipline:nth-child(even) { padding-left: var(--space-3); }
.index__discipline:hover .index__name { text-decoration: underline; text-underline-offset: 3px; }
.index__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.index__no { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 500; color: var(--muted); }

@media (min-width: 720px) {
  .index__list { grid-template-columns: repeat(3, 1fr); }
  .index__discipline:nth-child(odd),
  .index__discipline:nth-child(even) { border-right: var(--rule-1); padding-right: var(--space-3); padding-left: var(--space-3); }
  .index__discipline:nth-child(3n+1) { padding-left: 0; }
  .index__discipline:nth-child(3n) { border-right: 0; padding-right: 0; }
}
@media (min-width: 1080px) {
  .index__main { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-4) var(--space-7); }
  .index__head { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--space-2); margin-bottom: 0; }
  .index__title { font-size: 56px; }
  .index__list { grid-template-columns: repeat(4, 1fr); }
  .index__discipline:nth-child(3n+1) { padding-left: var(--space-3); }
  .index__discipline:nth-child(3n) { border-right: var(--rule-1); padding-right: var(--space-3); }
  .index__discipline:nth-child(4n+1) { padding-left: 0; }
  .index__discipline:nth-child(4n) { border-right: 0; padding-right: 0; }
}
/* The board is allowed to end ragged, but never with a rule hanging into air. */
.index__discipline:last-child { border-right: 0; }

/* ===========================================================================
   5. Result rows
   =========================================================================== */

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); border-bottom: var(--rule-2); padding-bottom: var(--space-2); margin-top: var(--space-5); margin-bottom: var(--space-2); }
.section-head__title { font-family: var(--font-ui); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; font-size: 20px; }
.section-head__meta { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); white-space: nowrap; }

.rows { border-top: var(--rule-1); }
.row { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); padding-block: var(--space-2); border-bottom: var(--rule-1); text-decoration: none; align-items: start; }
.row:hover .row__title { text-decoration: underline; text-underline-offset: 3px; }
.row__thumb { position: relative; aspect-ratio: 4 / 3; border: var(--rule-1); background: var(--panel); }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.row__noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.row__plate { position: absolute; top: -5px; left: -5px; background: var(--surface); border: var(--rule-2); padding: 1px 3px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 11px; line-height: 1.1; letter-spacing: -0.03em; }
.row__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row__title { font-size: 16px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row__price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 16px; line-height: 1.2; }
.row__price small { font-family: var(--font-ui); font-weight: 400; font-size: 13px; color: var(--muted); }
.row__meta { font-size: 13px; color: var(--muted); line-height: 1.2; }
.row__meta .mono { font-size: 12px; }
.row--sold .row__thumb img { filter: grayscale(1); opacity: 0.6; }
.row--sold .row__price { color: var(--muted); text-decoration: line-through; }
.row .tape { position: absolute; left: -6px; bottom: 6px; z-index: 2; }

@media (min-width: 720px) {
  .rows { display: grid; grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 120px minmax(0, 1fr); padding-block: var(--space-3); }
  .rows > .row:nth-child(odd) { border-right: var(--rule-1); padding-right: var(--space-5); }
  .rows > .row:nth-child(even) { padding-left: var(--space-5); }
  .row__title { font-size: 17px; }
}

/* ===========================================================================
   6. Tape labels — the one deliberate irregularity
   =========================================================================== */

.tape { display: inline-block; background: var(--accent); color: var(--on-accent); border: var(--rule-1); padding: 2px 8px; font-family: var(--font-ui); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 12px; line-height: 1.15; letter-spacing: 0.05em; transform: rotate(-2deg); }
.tape--new  { background: var(--ink); color: var(--on-ink); transform: rotate(-2.6deg); }
.tape--sold { background: var(--danger); color: var(--on-danger); transform: rotate(1.6deg); }
.tape--cut  { background: var(--surface); color: var(--ink); transform: rotate(1deg); }

/* ===========================================================================
   7. Crumbs, page head, pager
   =========================================================================== */

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); padding-block: 0; font-stretch: 75%; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 2px; }
.crumbs__sep { color: var(--muted); }
.crumbs__dead { color: var(--muted); }

.page-title { font-family: var(--font-ui); font-stretch: 70%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.9; font-size: 40px; }
.page-meta { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); margin-top: var(--space-2); }
.page-head { border-bottom: var(--rule-2); padding-bottom: var(--space-3); margin-bottom: var(--space-4); }
@media (min-width: 1080px) { .page-title { font-size: 56px; } }

.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); border-top: var(--rule-2); padding-block: var(--space-4); margin-top: -1px; }
.pager__status { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.pager__page { display: inline-grid; place-items: center; min-width: 36px; min-height: var(--tap); padding-inline: var(--space-2); border: var(--rule-1); background: var(--surface); text-decoration: none; font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.pager__page--current { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pager__prev,
.pager__next { display: inline-flex; align-items: center; min-height: var(--tap); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding-inline: var(--space-3); border: var(--rule-1); background: var(--surface); text-decoration: none; font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; }
.chip:hover { background: var(--ink); color: var(--on-ink); }
.chip:has(input:checked) { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.chips--radio { border: 0; margin: 0 0 var(--space-3); padding: 0; align-items: center; }
.chips__legend { float: left; margin-right: var(--space-2); padding: 0; font-size: 12px; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); line-height: 36px; }
.search-block .chips--radio:first-of-type { margin-top: var(--space-3); }

/* ===========================================================================
   8. Buttons and form controls
   =========================================================================== */

.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--tap); padding-inline: var(--space-4); border: var(--rule-2); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; font-family: var(--font-ui); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: 0.04em; line-height: 1; }
.button:hover { background: var(--ink); color: var(--on-ink); }
.button--primary { background: var(--accent); color: var(--on-accent); }
.button--primary:hover { background: var(--ink); color: var(--accent-on-ink); }
.button--ghost { background: transparent; }
.button--danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.button--danger:hover { background: var(--danger); color: var(--on-danger); }
.button--block { width: 100%; }
.button--lg { min-height: 52px; font-size: 15px; }

.field { display: block; margin-bottom: var(--space-4); }
.field__label { display: block; margin-bottom: var(--space-1); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; }
.field__hint { display: block; margin-top: var(--space-1); font-size: 13px; color: var(--muted); }
.field__input { width: 100%; min-height: var(--tap); border: var(--rule-1); background: var(--surface); padding: 10px var(--space-3); font-size: 16px; line-height: 1.3; }
.field__input::placeholder { color: var(--muted); }
.field__input[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
textarea.field__input { min-height: 140px; resize: vertical; }
select.field__input { appearance: none; padding-right: 34px; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); align-items: end; }
.field__unit { display: flex; align-items: stretch; }
.field__unit .field__input { border-right: 0; }
.field__unit-label { display: inline-grid; place-items: center; min-width: 44px; padding-inline: var(--space-3); border: var(--rule-1); background: var(--panel); font-family: var(--font-mono); font-size: 14px; }

.select { position: relative; display: block; }
.select::after { content: ""; position: absolute; right: 13px; top: 50%; width: 11px; height: 7px; transform: translateY(-50%); background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); pointer-events: none; }

.radio-set { display: flex; border: var(--rule-2); background: var(--surface); }
.radio { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: var(--tap); padding: var(--space-2); border-left: var(--rule-1); cursor: pointer; text-align: center; font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; }
.radio:first-child { border-left: 0; }
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio:has(input:checked) { background: var(--accent); color: var(--on-accent); }
.radio:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }

/* ===========================================================================
   9. Filter drawer
   =========================================================================== */

.filters { margin-bottom: var(--space-4); }
.filters__summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--tap); padding-inline: var(--space-3); border: var(--rule-2); background: var(--surface); cursor: pointer; list-style: none; font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: 0.04em; }
.filters__summary::-webkit-details-marker { display: none; }
.filters__summary-count { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 500; color: var(--muted); }
.filters__close-label { display: none; }
.filters[open] .filters__summary { position: fixed; top: 0; left: 0; right: 0; z-index: 81; border: 0; border-bottom: var(--rule-2); background: var(--ink); color: var(--on-ink); }
.filters[open] .filters__open-label,
.filters[open] .filters__summary-count { display: none; }
.filters[open] .filters__close-label { display: block; }
.filters__dismiss { display: none; font-family: var(--font-ui); font-weight: 400; font-size: 22px; line-height: 1; }
.filters[open] .filters__dismiss { display: block; }
.filters__panel { position: fixed; inset: 0; z-index: 80; overflow: auto; background: var(--panel); padding: calc(var(--tap) + var(--space-4)) var(--space-4) 0; display: flex; flex-direction: column; }
.filters__body { flex: 1 1 auto; }
.filters__group { border-top: var(--rule-1); padding-top: var(--space-3); margin-bottom: var(--space-4); }
.filters__group:first-child { border-top: 0; padding-top: 0; }
.filters__footer { position: sticky; bottom: 0; margin-inline: calc(var(--space-4) * -1); padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); border-top: var(--rule-2); background: var(--panel); }
.filters__actions { display: flex; align-items: stretch; gap: var(--space-3); }
.filters__actions .button--block { flex: 1 1 auto; width: auto; }

@media (min-width: 1080px) {
  .filters { margin-bottom: 0; }
  .filters__summary { display: none; }
  .filters::details-content { content-visibility: visible; block-size: auto; }
  .filters__panel,
  .filters[open] .filters__panel { position: static; display: block; overflow: visible; padding: 0; background: transparent; }
  .filters__footer { position: static; margin-inline: 0; padding: var(--space-3) 0 0; background: transparent; }
}

.browse { display: block; }
@media (min-width: 1080px) {
  .browse { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
  .browse__aside { position: sticky; top: 76px; border-right: var(--rule-1); padding-right: var(--space-5); }
}

/* ===========================================================================
   10. Gallery
   =========================================================================== */

.gallery { position: relative; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border: var(--rule-1); background: var(--panel); scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__counter { position: absolute; right: 0; bottom: 0; z-index: 2; padding: 4px var(--space-2); background: var(--ink); color: var(--on-ink); font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; }

/* ===========================================================================
   11. Listing detail
   =========================================================================== */

.detail { display: flex; flex-direction: column; gap: var(--space-5); }
.detail__aside { display: contents; }
.detail__gallery { order: 1; }
.detail__price  { order: 2; }
.detail__spec   { order: 3; }
.detail__prose  { order: 4; }
.detail__seller { order: 5; }

.price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 28px; line-height: 1; }
.price__note { display: block; margin-top: var(--space-1); font-family: var(--font-ui); font-weight: 400; font-size: 13px; color: var(--muted); }
.listing-title { font-size: 20px; font-weight: 700; line-height: 1.25; }
.listing-meta { margin-top: var(--space-2); font-size: 13px; color: var(--muted); }

.spec { border-top: var(--rule-2); }
.spec__row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: var(--space-3); padding-block: var(--space-2); border-bottom: var(--rule-1); }
.spec__label { font-stretch: 75%; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); align-self: center; }
.spec__value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; overflow-wrap: anywhere; }

.prose p { max-width: var(--measure); margin-bottom: var(--space-3); line-height: 1.55; }
.prose p:last-child { margin-bottom: 0; }

.seller { border: var(--rule-2); background: var(--panel); padding: var(--space-4); }
.seller__name { font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 16px; letter-spacing: 0.02em; }
.seller__meta { margin-top: var(--space-1); font-size: 13px; color: var(--muted); }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 60; background: var(--ground); border-top: var(--rule-2); padding: var(--space-2) var(--space-4); }
body.has-cta { padding-bottom: calc(var(--tabbar-h) + 78px + env(safe-area-inset-bottom)); }

@media (min-width: 720px) {
  .listing-title { font-size: 24px; }
  body.has-cta { padding-bottom: 0; }
  .sticky-cta { position: static; border-top: 0; padding: 0; margin-top: var(--space-3); }
}
@media (min-width: 1080px) {
  .detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "gallery aside" "prose aside"; column-gap: var(--space-7); row-gap: var(--space-5); align-items: start; }
  .detail__aside { display: block; grid-area: aside; position: sticky; top: 76px; }
  .detail__gallery { grid-area: gallery; max-width: 720px; }
  .detail__prose { grid-area: prose; }
  .detail__spec { margin-top: var(--space-4); }
  .detail__seller { margin-top: var(--space-4); }
}

/* ===========================================================================
   12. New listing form
   =========================================================================== */

.form-section { border-top: var(--rule-2); padding-block: var(--space-4) var(--space-6); }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-section__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.form-section__no { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border: var(--rule-2); background: var(--surface); font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 16px; }
.form-section__title { font-family: var(--font-ui); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; font-size: 20px; }
.form-section__body { max-width: 640px; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); border-top: var(--rule-2); padding-block: var(--space-4); }
.form-actions .button { flex: 1 1 auto; }
@media (min-width: 720px) {
  .form-actions { justify-content: flex-end; }
  .form-actions .button { flex: 0 0 auto; min-width: 170px; }
}

.dropzone { display: block; border: 2px dashed var(--rule); background: var(--surface); padding: var(--space-5) var(--space-4); text-align: center; cursor: pointer; }
.dropzone__label { display: block; font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: 0.04em; }
.dropzone__hint { display: block; margin-top: var(--space-1); font-size: 13px; color: var(--muted); }

.thumbstrip { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }
.thumbstrip__item { position: relative; width: 96px; }
.thumbstrip__item img { aspect-ratio: 4 / 3; object-fit: cover; border: var(--rule-1); width: 100%; }
.thumbstrip__no { position: absolute; left: -4px; bottom: -4px; background: var(--surface); border: var(--rule-1); padding: 0 4px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.thumbstrip__remove { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 30px; height: 30px; border: var(--rule-2); background: var(--surface); cursor: pointer; font-size: 17px; line-height: 1; padding: 0; }
.thumbstrip__remove::before { content: ""; position: absolute; inset: -8px; }
.thumbstrip__remove:hover { background: var(--danger); color: var(--on-danger); }

/* ===========================================================================
   13. Inbox
   =========================================================================== */

.inbox { display: block; }
.convos { border-top: var(--rule-1); }
.convo { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--space-3); padding-block: var(--space-3); border-bottom: var(--rule-1); text-decoration: none; align-items: start; }
.convo__thumb { aspect-ratio: 4 / 3; border: var(--rule-1); }
.convo__thumb img { width: 100%; height: 100%; object-fit: cover; }
.convo__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.convo__name { font-size: 15px; font-weight: 700; }
.convo__title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; font-stretch: 75%; font-weight: 700; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo__excerpt { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo__side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
.convo__time { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); white-space: nowrap; }
.convo__dot { width: 11px; height: 11px; background: var(--accent); border: var(--rule-1); }
.convo--unread .convo__excerpt { color: var(--ink); font-weight: 600; }

.thread { display: none; }
@media (min-width: 1080px) {
  .inbox { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 0; align-items: start; }
  .inbox__list { border-right: var(--rule-1); padding-right: var(--space-5); }
  .thread { display: block; padding-left: var(--space-5); position: sticky; top: 76px; }
  .convo { padding-inline: var(--space-2); }
  .convo--active { background: var(--panel); }
  .convo--active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ink); }
}
.thread__head { border-bottom: var(--rule-2); padding-bottom: var(--space-3); margin-bottom: var(--space-4); }
.thread__title { font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 18px; letter-spacing: 0.02em; }
.thread__meta { margin-top: var(--space-1); font-size: 13px; color: var(--muted); }
.thread__msgs { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.msg { max-width: 78%; border: var(--rule-1); background: var(--surface); padding: var(--space-3); font-size: 15px; line-height: 1.45; }
.msg--mine { margin-left: auto; background: var(--panel); border: var(--rule-2); }
.msg__meta { margin-top: var(--space-2); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.thread__compose { display: flex; flex-direction: column; gap: var(--space-2); border-top: var(--rule-2); padding-top: var(--space-3); }
.thread__compose .button { align-self: flex-start; }

/* ===========================================================================
   14. Empty state
   =========================================================================== */

.empty { border: var(--rule-2); background: var(--panel); padding: var(--space-5) var(--space-4); }
.empty__code { font-size: 12px; color: var(--muted); margin-bottom: var(--space-2); }
.empty__title {font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 20px; letter-spacing: 0.02em; line-height: 1; }
.empty__text { margin-top: var(--space-2); max-width: 46ch; color: var(--muted); }
.empty__actions { margin-top: var(--space-4); }

/* ===========================================================================
   15. Notices and nav forms (plan 2)
   =========================================================================== */

.notice { border: var(--rule-2); background: var(--panel); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-4); font-weight: 600; }
.notice--error { border-color: var(--danger); }
.topbar__form { display: contents; }
button.topbar__link {
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  /* The <button> UA default otherwise wins over .topbar__link's font
     properties at equal-or-higher specificity, so mirror them explicitly
     rather than resetting with `font: inherit` (which would also wipe out
     the weight/size/stretch .topbar__link sets). */
  font-family: var(--font-ui); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px;
}

/* Auth pages (plan 2) */
.auth { max-width: 480px; }
.auth__form .field { margin-bottom: var(--space-4); }
.field__error { display: block; margin-top: var(--space-1); color: var(--danger); font-weight: 600; font-size: 14px; }
.form-help { margin-top: var(--space-4); color: var(--muted); }
.account__admin { margin-bottom: var(--space-6); }

/* Owner views (plan 2) */
.my-rows { border-top: var(--rule-2); }
.my-row { border-bottom: var(--rule-1); padding-bottom: var(--space-3); margin-bottom: var(--space-3); }
.my-row .row { border-bottom: 0; }
.my-row__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.my-row__actions .button { min-height: var(--tap); }
.status-tag { font-family: var(--font-ui); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 12px; padding: 2px 6px; border: 1px solid var(--ink); }
.status-tag--published { background: var(--ink); color: var(--ground); }
.status-tag--sold { background: var(--danger); color: var(--on-accent); border-color: var(--danger); }
.status-tag--expired, .status-tag--draft { background: var(--panel); }
.status-tag--removed { background: var(--panel); color: var(--muted); border-color: var(--muted); }
.owner-bar { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; border: 2px solid var(--ink); background: var(--panel); padding: var(--space-3); margin-bottom: var(--space-4); }
.owner-bar > span { flex: 1 1 100%; font-weight: 600; }
@media (min-width: 720px) { .owner-bar > span { flex: 1 1 auto; } }

/* ---- Plan 3: unread badge and the thread page ---- */
.topbar__badge { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 6px; padding-inline: 3px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 10px; line-height: 1; background: var(--accent); color: var(--on-accent); vertical-align: 2px; }
.inbox--thread .inbox__list { display: none; }
.inbox--thread .thread { display: block; }
.thread__back { display: inline-block; margin-bottom: var(--space-2); font-size: 13px; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.04em; }
.msg__body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.thread__compose .field__error { order: -1; }
@media (min-width: 1080px) {
  .inbox--thread .inbox__list { display: block; }
  .thread__back { display: none; }
}

/* ---- Plan 3: admin ---- */
.subnav { display: flex; flex-wrap: nowrap; gap: var(--space-2); padding-bottom: var(--space-3); margin-bottom: var(--space-4); border-bottom: var(--rule-1); overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav__link { flex: 0 0 auto; white-space: nowrap; }
.page-back { display: inline-block; margin-bottom: var(--space-2); font-size: 13px; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.04em; }
.subnav__link { display: inline-flex; align-items: center; min-height: 36px; padding-inline: var(--space-3); border: var(--rule-2); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.04em; }
.subnav__link--current { background: var(--ink); color: var(--on-ink); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-6); }
.stat { display: block; border: var(--rule-2); padding: var(--space-3); text-decoration: none; color: inherit; }
a.stat:hover { background: var(--ink); color: var(--on-ink); }
a.stat:hover .stat__label { color: var(--on-ink); }
.admin__h2 { margin: var(--space-2) 0 var(--space-3); }
.stat__no { display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 28px; line-height: 1; }
.stat__label { display: block; margin-top: var(--space-2); font-size: 12px; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.table-wrap { overflow-x: auto; border-top: var(--rule-2); margin-bottom: var(--space-5); }
.page-head + .table-wrap { border-top: 0; margin-top: calc(-1 * var(--space-4)); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: var(--space-2) var(--space-3) var(--space-2) 0; border-bottom: var(--rule-1); font-size: 12px; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.table td { padding: var(--space-2) var(--space-3) var(--space-2) 0; border-bottom: var(--rule-1); vertical-align: top; }
.table__item { display: flex; gap: var(--space-2); align-items: flex-start; text-decoration: none; min-width: 200px; }
.table__item:hover .table__title { text-decoration: underline; text-underline-offset: 3px; }
.table__thumb { flex: 0 0 56px; aspect-ratio: 4 / 3; border: var(--rule-1); background: var(--panel); overflow: hidden; }
.table__thumb img { width: 100%; height: 100%; object-fit: cover; }
.table__item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.table__title { font-weight: 600; }
.table__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.table--stack th { display: none; }
@media (max-width: 719px) {
  /* Each row becomes a card: label on the left, value on the right. */
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; }
  .table--stack tr { border-bottom: var(--rule-2); padding-block: var(--space-3); }
  .table--stack td { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: var(--space-2); border-bottom: 0; padding: var(--space-1) 0; }
  .table--stack td::before { content: attr(data-label); font-size: 11px; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-top: 3px; }
  .table--stack .table__item { min-width: 0; }
  .table--stack td > .status-tag { justify-self: start; }
}
@media (min-width: 720px) { .table--stack th { display: table-cell; } }
.inline-form { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.inline-form .field__input { width: auto; min-height: 36px; padding-block: 4px; font-size: 14px; }
.inline-form { align-items: flex-end; row-gap: var(--space-3); }
.inline-form--add { margin-bottom: var(--space-5); width: 100%; }
.inline-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inline-field--grow { flex: 1 1 12em; }
.inline-field--grow .field__input { width: 100%; }
.inline-field__label { font-size: 10px; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); line-height: 1.2; }
.inline-field .check { min-height: 0; line-height: 1.3; }
.inline-field--checks { min-height: 36px; justify-content: center; }
.inline-form .field__hint { flex-basis: 100%; }
.inline-form .button { min-height: 36px; padding-block: 0; }
.check { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 36px; font-size: 14px; }
.chip input[type="radio"] { margin: 0; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.tree { list-style: none; margin: 0 0 var(--space-6); padding: 0; border-top: var(--rule-2); }
.tree__node { border-bottom: var(--rule-1); }
.tree__node--l1 { border-bottom: var(--rule-2); }
.tree__node--hidden > .tree__summary { color: var(--muted); }
.tree__summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); padding-block: var(--space-3); cursor: pointer; list-style: none; }
.tree__summary::-webkit-details-marker { display: none; }
.tree__summary--leaf { cursor: default; padding-bottom: var(--space-2); }
details > .tree__summary::before { content: ""; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; align-self: center; transition: transform 120ms; }
details[open] > .tree__summary::before { transform: rotate(90deg); }
.tree__summary:hover .tree__name { text-decoration: underline; text-underline-offset: 3px; }
.tree__name { font-weight: 700; }
.tree__node--l1 > .tree__summary { position: sticky; top: 52px; z-index: 1; background: var(--ground); }
.tree__node--l1 > .tree__summary .tree__name { font-size: 20px; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.02em; }
.tree__node--l2 > .tree__summary .tree__name { font-size: 16px; }
.tree__node--l3 > .tree__summary .tree__name { font-size: 15px; font-weight: 600; }
.tree__slug { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.tree__count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.tree__set { font-size: 12px; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 6px; border: 1px solid var(--muted); color: var(--muted); }
.tree__body { display: flex; flex-direction: column; gap: var(--space-3); padding-bottom: var(--space-3); }
.tree__forms { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.tree__forms > .inline-form:first-child { flex: 1 1 auto; }
.tree__forms > .inline-form:last-child { flex: none; }
.setcats-wrap > summary { cursor: pointer; font-weight: 600; font-size: 14px; margin-bottom: var(--space-2); }
.tree__body > .inline-form--add { margin-bottom: 0; }
.tree__kids { border-left: 2px solid var(--ink); padding-left: var(--space-3); margin-top: var(--space-2); }
.tree__node--l3 { padding-bottom: var(--space-3); }
.tree__node--l3 > .inline-form { padding-bottom: var(--space-2); }
.tree__node--l3:last-child { border-bottom: 0; }
.option-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding-block: var(--space-2); border-bottom: var(--rule-1); }
.option-row .tree__summary { padding: 0; flex: 1 1 auto; }
.option-row .button { min-height: 32px; font-size: 12px; }
.setcats { columns: 2 18em; gap: var(--space-5); padding-left: 1.1em; font-size: 14px; }
.setcats li { break-inside: avoid; }
.owner-bar--admin { border-color: var(--accent); }
@media (min-width: 720px) { .tree__node--l1 > .tree__summary { top: 60px; } }
.inline-form .tree__sort { width: 5.5em; flex: none; }

/* Footer */
.footer { margin-top: var(--space-8); border-top: var(--rule-2); padding-block: var(--space-6) var(--space-7); font-size: 14px; }
.footer__inner { display: grid; gap: var(--space-5); }
.footer__group { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__title { font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.footer__link { color: var(--ink); text-decoration: none; }
.footer__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
@media (min-width: 720px) { .footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Information pages */
.content { max-width: 720px; }
.prose h2 { margin-top: var(--space-6); margin-bottom: var(--space-2); font-family: var(--font-ui); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; font-size: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { max-width: var(--measure); margin: 0 0 var(--space-3) var(--space-4); line-height: 1.55; }
.prose li { margin-bottom: var(--space-1); }

/* Contact form */
.contact-form { max-width: 560px; margin-top: var(--space-5); }
.contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.report-link { display: inline-block; margin-top: var(--space-3); font-size: 13px; color: var(--muted); }

/* Checkbox */
.checkbox { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-2); align-items: start; }
.checkbox__input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.checkbox__input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 1px; }
.checkbox__label { font-size: 14px; line-height: 1.4; }
.checkbox .field__error { grid-column: 2; }

/* Admin inbox */
.message { border: var(--rule-2); background: var(--panel); padding: var(--space-4); margin-block: var(--space-4); max-width: var(--measure); white-space: pre-wrap; line-height: 1.55; }

/* Admin page editor */
.editor { max-width: 800px; }
.editor__help { border: var(--rule-1); background: var(--panel); padding: var(--space-3); font-size: 13px; line-height: 1.5; margin-bottom: var(--space-4); }
.editor__help code { font-family: var(--font-mono); background: var(--surface); padding: 0 4px; }
.editor__input { font-family: var(--font-mono); font-size: 14px; line-height: 1.5; }
.editor__preview { margin-top: var(--space-6); }
.editor__preview:has(#preview:empty) { display: none; }
#preview { margin-top: var(--space-3); }
