/* ==========================================================================
   VulnShop — one stylesheet, no network assets.

   Two rooms, one type system:
     shop floor  — warm paper, grape/melon retail palette, rounded shelves
     back room   — hazard tape, mono labels, square edges (the lab)
   Crossing between them should be visible.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* front of house */
  --bg:          #FFFCF6;
  --bg-tint:     #FAF4E8;
  --surface:     #FFFFFF;
  --line:        #E7E0D2;
  --line-soft:   #F1EBDF;
  --fg:          #221E2E;
  --fg-mute:     #635C79;
  --brand:       #4A2FBD;
  --brand-ink:   #FFFFFF;
  --brand-soft:  #EDE7FF;
  --accent:      #FF6B4A;
  --accent-soft: #FFE9E2;
  --ok:          #0E8F6E;
  --ok-soft:     #E2F5EF;
  --danger:      #BF3326;
  --danger-soft: #FCE7E3;

  /* back room */
  --tape-a:      #FFC93C;
  --tape-b:      #221E2E;
  --tape-ink:    #221E2E;
  --warn-soft:   #FFF4D9;

  --font-ui:   "Trebuchet MS", "Segoe UI", Candara, Optima, system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;

  --shadow:      0 1px 0 rgba(34, 30, 46, .04), 0 8px 20px -14px rgba(34, 30, 46, .40);
  --shadow-lift: 0 2px 0 rgba(34, 30, 46, .05), 0 20px 36px -20px rgba(34, 30, 46, .50);

  --tape: repeating-linear-gradient(135deg,
            var(--tape-a) 0 12px, var(--tape-b) 12px 24px);

  --page: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #15131C;
    --bg-tint:     #1B1826;
    --surface:     #201D2B;
    --line:        #322D42;
    --line-soft:   #2A2637;
    --fg:          #F3F0EA;
    --fg-mute:     #A29BB8;
    --brand:       #A38CFF;
    --brand-ink:   #1A1524;
    --brand-soft:  #2C2444;
    --accent:      #FF8A6B;
    --accent-soft: #3A2620;
    --ok:          #3CC79C;
    --ok-soft:     #17322B;
    --danger:      #FF7A69;
    --danger-soft: #3A1F1C;
    --tape-a:      #FFD05C;
    --tape-b:      #15131C;
    --tape-ink:    #15131C;
    --warn-soft:   #33291A;
    --shadow:      0 1px 0 rgba(0, 0, 0, .30), 0 8px 20px -14px rgba(0, 0, 0, .80);
    --shadow-lift: 0 2px 0 rgba(0, 0, 0, .35), 0 20px 36px -20px rgba(0, 0, 0, .90);
  }
}

/* --------------------------------------------------------------- base ---- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); letter-spacing: -.018em; }
h3 { font-size: 1.1rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

code, kbd, pre, samp { font-family: var(--font-mono); font-size: .875em; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

img, svg { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 50; padding: .6rem 1rem; background: var(--brand); color: var(--brand-ink);
  border-radius: 0 0 var(--r-sm) var(--r-sm); text-decoration: none; font-weight: 700;
}
.skip:focus { transform: translate(-50%, 0); }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 1.25rem; }

.mono { font-family: var(--font-mono); font-size: .8125rem; }
.mute { color: var(--fg-mute); }
.lede { max-width: 62ch; font-size: 1.0625rem; color: var(--fg-mute); }

/* spacing utilities — used sparingly, so templates stay free of inline styles */
.mt-s { margin-top: .75rem; }
.mt-m { margin-top: 1.25rem; }
.mt-l { margin-top: 2rem; }
.mb-s { margin-bottom: .75rem; }
.mb-m { margin-bottom: 1.25rem; }
.mb-l { margin-bottom: 2rem; }

/* the sticky header must not cover anchor targets */
[id] { scroll-margin-top: 6.5rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-mute); margin: 0 0 .75rem;
}

/* ------------------------------------------------------------- header ---- */

.notice {
  background: var(--warn-soft);
  border-bottom: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--fg);
}
.notice__in { display: flex; gap: .6rem; align-items: baseline; padding: .5rem 1.25rem; }
.notice strong { letter-spacing: .01em; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: .85rem 1.25rem;
  max-width: var(--page); margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.brand__mark {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; flex: none;
  background: var(--brand); color: var(--brand-ink);
  border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 700;
  letter-spacing: .02em;
}
.brand__name {
  font-size: 1.2rem; font-weight: 700; letter-spacing: -.03em;
  text-transform: uppercase;
}
.brand__name span { color: var(--accent); }
.brand__tag {
  display: none;
  padding-left: .75rem; margin-left: .15rem;
  border-left: 1px solid var(--line);
  font-size: .75rem; color: var(--fg-mute);
}
@media (min-width: 1080px) { .brand__tag { display: inline-block; } }

.searchbar { display: flex; min-width: 0; }
.searchbar input {
  flex: 1 1 auto; min-width: 0;
  padding: .55rem .8rem;
  font: inherit; font-size: .9375rem;
  color: var(--fg); background: var(--surface);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}
.searchbar input::placeholder { color: var(--fg-mute); }
.searchbar button {
  flex: none;
  padding: .55rem 1rem;
  font: inherit; font-size: .875rem; font-weight: 700;
  color: var(--brand-ink); background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  cursor: pointer;
}
.searchbar button:hover { background: color-mix(in srgb, var(--brand) 85%, var(--fg)); }

.acct { display: flex; align-items: center; gap: .85rem; font-size: .875rem; }
.acct a { color: var(--fg); text-decoration: none; }
.acct a:hover { color: var(--brand); text-decoration: underline; }
.acct .who { font-family: var(--font-mono); font-size: .8125rem; color: var(--fg-mute); }

.shelfnav {
  display: flex; align-items: stretch; gap: .25rem;
  max-width: var(--page); margin: 0 auto;
  padding: 0 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.shelfnav::-webkit-scrollbar { display: none; }
.shelfnav a {
  flex: none;
  padding: .55rem .8rem;
  font-size: .875rem; font-weight: 600;
  color: var(--fg-mute); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.shelfnav a:hover { color: var(--fg); }
.shelfnav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.shelfnav__lab {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-mono); font-size: .75rem !important;
  text-transform: uppercase; letter-spacing: .1em;
}
.shelfnav__lab::before {
  content: ""; width: 1.5rem; height: .6rem;
  background: var(--tape); border-radius: 1px;
}

/* --------------------------------------------------------------- shell ---- */

main { display: block; padding-bottom: 2.5rem; }

.section { padding: 2.5rem 0 0; }
.section__head {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  align-items: baseline; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section__head h2 { margin: 0; }
.section__head .link { font-size: .875rem; font-weight: 600; }

/* ---------------------------------------------------------------- hero ---- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 2.5rem;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 1.75rem; } }

.hero h1 { max-width: 20ch; text-transform: uppercase; }
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: .12em;
  text-underline-offset: .12em;
}
.hero__lede { max-width: 46ch; font-size: 1.0625rem; color: var(--fg-mute); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* the receipt: what this range actually stocks */
.receipt {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
}
.receipt__head {
  text-align: center; padding-bottom: .75rem; margin-bottom: .75rem;
  border-bottom: 1px dashed var(--line);
  letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
.receipt ul { list-style: none; margin: 0; padding: 0; }
.receipt li {
  display: flex; gap: .5rem; align-items: baseline;
  padding: .18rem 0;
  color: var(--fg-mute);
}
.receipt li b { color: var(--fg); font-weight: 700; }
.receipt li .dots {
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-.25em);
}
.receipt__total {
  margin-top: .75rem; padding-top: .75rem;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.receipt__total span:last-child { color: var(--accent); }

/* -------------------------------------------------------------- buttons ---- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem;
  font: inherit; font-size: .9375rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--brand); color: var(--brand-ink);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--brand) 86%, var(--fg)); }
.btn:active { transform: none; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-tint); border-color: var(--fg-mute); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #2A1008; }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 88%, var(--fg)); }
.btn--sm { padding: .4rem .7rem; font-size: .8125rem; }
.btn--block { width: 100%; justify-content: center; }

/* --------------------------------------------------------------- cards ---- */

.grid { display: grid; gap: 1.25rem; }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); }
.grid--lab { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

/* product */
.prod {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.prod:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.prod:focus-visible { outline-offset: 3px; }
.prod__art { aspect-ratio: 5 / 4; border-bottom: 1px solid var(--line); }
.prod__body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1 1 auto; }
.prod__sku {
  font-family: var(--font-mono); font-size: .6875rem;
  letter-spacing: .08em; color: var(--fg-mute);
}
.prod__name { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.prod__desc { font-size: .8125rem; color: var(--fg-mute); line-height: 1.45; flex: 1 1 auto; }
.prod__foot { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }
.prod__price { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; }
.prod__go { font-size: .8125rem; font-weight: 700; color: var(--brand); }

/* shelf art — deterministic per product id, no image files */
.art {
  background-color: var(--art-bg);
  background-image: var(--art-img);
  background-size: var(--art-size);
  background-position: center;
}
@media (prefers-color-scheme: dark) { .art { filter: saturate(.85) brightness(.82); } }
.art-0 { --art-bg: #EDE7FF; --art-img: radial-gradient(circle at 50% 50%, #4A2FBD 21%, transparent 22%); --art-size: 20px 20px; }
.art-1 { --art-bg: #FFE9E2; --art-img: repeating-linear-gradient(135deg, #FF6B4A 0 6px, transparent 6px 16px); --art-size: auto; }
.art-2 { --art-bg: #FFF4D9; --art-img: linear-gradient(#221E2E 1px, transparent 1px), linear-gradient(90deg, #221E2E 1px, transparent 1px); --art-size: 22px 22px; }
.art-3 { --art-bg: #E2F5EF; --art-img: repeating-radial-gradient(circle at 50% 50%, #0E8F6E 0 1px, transparent 1px 12px); --art-size: auto; }
.art-4 { --art-bg: #EDE7FF; --art-img: linear-gradient(45deg, #4A2FBD 25%, transparent 25% 75%, #4A2FBD 75%), linear-gradient(45deg, #4A2FBD 25%, transparent 25% 75%, #4A2FBD 75%); --art-size: 26px 26px; }
.art-5 { --art-bg: #FAF4E8; --art-img: repeating-linear-gradient(90deg, #221E2E 0 2px, transparent 2px 9px), repeating-linear-gradient(90deg, #FF6B4A 0 1px, transparent 1px 5px); --art-size: auto; }

/* ------------------------------------------------------- product detail ---- */

.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; padding-top: 2.5rem; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 1.75rem; } }
.pdp__art { aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; }

/* the one flourish: a real price sticker, stuck on slightly crooked */
.sticker {
  position: absolute; right: -.85rem; bottom: -.85rem;
  display: grid; place-items: center; gap: 0;
  width: 6.5rem; height: 6.5rem;
  transform: rotate(-7deg);
  background: var(--accent); color: #2A1008;
  border-radius: 50%;
  box-shadow: var(--shadow-lift);
  font-family: var(--font-mono); font-weight: 700;
  text-align: center;
}
.sticker::before {
  content: ""; position: absolute; inset: .4rem;
  border: 1px dashed rgba(42, 16, 8, .45); border-radius: 50%;
}
.sticker b { font-size: 1.35rem; letter-spacing: -.03em; }
.sticker small { font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

.pdp__crumbs { font-size: .8125rem; color: var(--fg-mute); margin-bottom: .75rem; }
.pdp__crumbs a { color: var(--fg-mute); }
.pdp__price { font-family: var(--font-mono); font-size: 1.75rem; font-weight: 700; margin: .25rem 0 1rem; }
.pdp__stock { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--ok); font-weight: 700; }
.pdp__stock::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); }

.buy { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin: 1.5rem 0 1rem; }
.buy__total { font-family: var(--font-mono); font-size: .875rem; color: var(--fg-mute); }

/* --------------------------------------------------------------- forms ---- */

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field > label { font-size: .8125rem; font-weight: 700; }
.field .hint { font-size: .75rem; color: var(--fg-mute); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .9375rem;
  padding: .6rem .7rem;
  color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  width: 100%;
}
.field textarea { font-family: var(--font-mono); font-size: .8125rem; min-height: 8.5rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--fg-mute); }

.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline-form input, .inline-form select {
  font: inherit; font-size: .875rem;
  padding: .5rem .6rem; min-width: 0; flex: 1 1 9rem;
  color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-mono);
}

.chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .85rem; }
.chips__label { flex: none; }
.chip {
  display: inline-block;
  padding: .28rem .55rem;
  font-family: var(--font-mono); font-size: .75rem;
  background: var(--bg-tint); color: var(--fg);
  border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }

/* -------------------------------------------------------------- alerts ---- */

.alert {
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--fg-mute);
  border-radius: var(--r-sm);
  background: var(--bg-tint);
  font-size: .9375rem;
  margin-bottom: 1.25rem;
}
.alert--ok { background: var(--ok-soft); border-left-color: var(--ok); }
.alert--bad { background: var(--danger-soft); border-left-color: var(--danger); }
.alert--warn { background: var(--warn-soft); border-left-color: var(--tape-a); }
.alert h3 { margin-bottom: .2rem; font-size: .9375rem; }
.alert p:last-child { margin-bottom: 0; }

.empty {
  padding: 3rem 1.5rem; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--r);
  background: var(--bg-tint);
}
.empty h3 { margin-bottom: .35rem; }
.empty p { color: var(--fg-mute); max-width: 44ch; margin-inline: auto; }

/* -------------------------------------------------------------- tables ---- */

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .9375rem; }
table.data th, table.data td { padding: .7rem .9rem; text-align: left; }
table.data thead th {
  font-family: var(--font-mono); font-size: .6875rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-mute); background: var(--bg-tint);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data tbody tr + tr td { border-top: 1px solid var(--line-soft); }
table.data tbody tr:hover td { background: var(--bg-tint); }
table.data td.num, table.data th.num { text-align: right; font-family: var(--font-mono); font-size: .875rem; }
table.data td .id { font-family: var(--font-mono); font-size: .8125rem; color: var(--fg-mute); }

.badge {
  display: inline-block;
  padding: .1rem .45rem;
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px;
  background: var(--bg-tint); color: var(--fg-mute);
  border: 1px solid var(--line);
}
.badge--admin { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.badge--get { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.badge--post { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.1rem 1.2rem;
}
.stat dt {
  font-family: var(--font-mono); font-size: .6875rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--fg-mute);
}
.stat dd { margin: .3rem 0 0; font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; }

/* ------------------------------------------------------------ back room ---- */

.band {
  height: 14px;
  background: var(--tape);
  border-radius: 2px;
}

.threshold {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.threshold__tape {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.threshold__tape .band { flex: 1 1 auto; }
.threshold__tape span {
  flex: none;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}

.lab-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--tape-a);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: 1.2rem 1.25rem 1.35rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.lab-card__top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lab-card__top h3 { margin: 0; font-size: 1rem; }
.lab-card__what { font-size: .875rem; color: var(--fg-mute); margin: 0; }
.lab-card__path {
  display: block;
  font-family: var(--font-mono); font-size: .78125rem;
  padding: .45rem .6rem;
  background: var(--bg-tint); border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  color: var(--fg); text-decoration: none;
  overflow-x: auto; white-space: nowrap;
}
.lab-card__path:hover { border-color: var(--brand); }
.lab-card form { margin: 0; }
.lab-card textarea { min-height: 7rem; }
.lab-card__foot { margin-top: auto; padding-top: .2rem; }

/* found by reading the source, not by scanning: dashed tape, no run button */
.lab-card--quiet {
  border-top: 3px dashed color-mix(in srgb, var(--tape-a) 70%, var(--line));
  background: var(--bg-tint);
}

.lab-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.lab-out {
  margin: 0;
  padding: .7rem .8rem;
  background: var(--bg-tint);
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  font-size: .75rem; line-height: 1.5;
  max-height: 15rem; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
  scrollbar-width: thin;
}
.lab-out[hidden] { display: none; }
.lab-out b { display: block; color: var(--fg-mute); font-weight: 700; }

.lab-code {
  margin: 0;
  padding: .6rem .75rem;
  background: var(--bg-tint);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--tape-a);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .75rem; line-height: 1.55;
  overflow-x: auto;
}
.lab-code .c { color: var(--fg-mute); }

.lab-note {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .85rem 1rem;
  background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--tape-a) 55%, var(--line));
  border-radius: var(--r-sm);
  font-size: .8125rem;
}
.lab-note::before {
  content: ""; flex: none;
  width: 3px; align-self: stretch;
  background: var(--tape); border-radius: 1px;
}

/* -------------------------------------------------------------- footer ---- */

footer.foot {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
  padding: 2.25rem 0 3rem;
  font-size: .875rem;
}
.foot__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.75rem;
}
.foot h4 {
  font-family: var(--font-mono); font-size: .6875rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-mute); margin-bottom: .7rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: .16rem 0; }
.foot a { color: var(--fg); text-decoration: none; }
.foot a:hover { color: var(--brand); text-decoration: underline; }
.foot .mono a, .foot a.mono { font-family: var(--font-mono); font-size: .78125rem; }
.foot__legal {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--fg-mute); font-size: .8125rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}

/* ------------------------------------------------------------ narrower ---- */

@media (max-width: 880px) {
  .topbar__in { grid-template-columns: 1fr auto; gap: .75rem 1rem; }
  .searchbar { grid-column: 1 / -1; order: 3; }
  .brand__name { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .prod:hover, .btn:hover { transform: none; }
}
