/* ══════════════════════════════════════════════════════════════════════════
   FISHKO — design tokens and components.
   Ported from the Modernist prototype: flat surfaces, 2px ink rules, no radii.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-300: #ffc4b8;
  --color-accent-400: #ff9783;
  --color-accent-500: #ff563c;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  --font-heading: "Archivo", system-ui, -apple-system, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;

  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
  --rule: 2px solid var(--color-text);
  --max: 1280px;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent); text-decoration: underline; }
button { font-family: var(--font-body); cursor: pointer; border-radius: 0; }
input, select { border-radius: 0; font-family: var(--font-body); }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
::selection { background: var(--color-accent-200); }
[hidden] { display: none !important; }

@keyframes fk-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fk-slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { max-width: var(--max); margin: 0 auto; width: 100%; }
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-accent-700);
}
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-neutral-700);
}
.muted { color: var(--color-neutral-700); }
.grayscale { filter: grayscale(1); }

/* ─────────────────────────────── buttons ─────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: none; background: var(--color-accent); color: #fff;
  padding: 14px 20px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; min-height: 44px;
}
.btn:hover { background: var(--color-accent-600); color: #fff; text-decoration: none; }
.btn--ink { background: var(--color-text); color: var(--color-bg); }
.btn--ink:hover { background: var(--color-accent); }
.btn--ghost {
  background: none; color: var(--color-text); border: var(--rule);
  padding: 12px 20px;
}
.btn--ghost:hover { background: var(--color-accent-100); color: var(--color-accent-700); border-color: var(--color-accent-700); }
.btn--block { width: 100%; justify-content: space-between; }
.btn--sm { padding: 9px 14px; font-size: 12px; letter-spacing: 0.08em; min-height: 0; }
.btn--tiny {
  padding: 6px 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; background: none; color: var(--color-text);
  border: 1px solid var(--color-text); min-height: 0;
}
.btn--tiny:hover { background: var(--color-accent-100); }
.btn--danger { border-color: var(--color-accent-700); color: var(--color-accent-700); }
.btn:disabled { background: var(--color-neutral-400); cursor: not-allowed; }
.link-btn {
  background: none; border: none; padding: 4px 0;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-accent-700);
}
.link-btn:hover { text-decoration: underline; }

.chip {
  background: transparent; color: var(--color-text);
  border: 2px solid var(--color-neutral-400);
  padding: 6px 9px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.chip.is-on { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.chip--thin { border-width: 1px; padding: 4px 7px; font-size: 10px; }

.field {
  width: 100%; background: var(--color-bg); border: var(--rule);
  padding: 12px; font-size: 16px; color: var(--color-text);
}
.field--thin { border: 1px solid var(--color-neutral-400); padding: 5px 7px; font-size: 12px; }
.field--num {
  border: 1px solid var(--color-text); font-family: var(--font-heading);
  font-weight: 800; font-size: 13px; padding: 5px 7px;
}

/* ─────────────────────────────── header ─────────────────────────────── */

.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--color-bg); border-bottom: var(--rule);
}
.header__in {
  display: flex; align-items: center; gap: 20px;
  padding: 8px 24px; min-height: 42px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; padding: 0; cursor: pointer;
}
.brand__logo { height: 28px; width: auto; display: block; }
.brand__word {
  font-family: var(--font-heading); font-weight: 900; font-size: 21px;
  letter-spacing: -0.02em; color: var(--color-text);
}
.brand__city {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-neutral-600);
}
.nav { display: flex; gap: 18px; }
.nav__link {
  background: none; border: none; padding: 3px 0;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-text);
  border-bottom: 2px solid transparent;
}
.nav__link.is-on { border-bottom-color: var(--color-accent); }
.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--color-accent); color: #fff; border: none;
  padding: 7px 12px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cart-btn:hover { background: var(--color-accent-600); }

/* ─────────────────────────────── ticker ─────────────────────────────── */

.ticker { border-bottom: var(--rule); background: var(--color-neutral-200); }
.ticker__in {
  display: flex; align-items: center; gap: 18px;
  padding: 9px 24px; overflow: hidden;
}
.ticker__label {
  display: flex; align-items: center; gap: 7px; flex: none;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-accent-700);
}
.dot-live { width: 7px; height: 7px; background: var(--color-accent); animation: fk-pulse 1.4s ease-in-out infinite; }
.ticker__list { display: flex; gap: 20px; overflow: hidden; white-space: nowrap; }
.ticker__item { display: inline-flex; align-items: baseline; gap: 7px; font-size: 12px; }
.ticker__name { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ticker__rate { font-family: var(--font-heading); font-weight: 800; }
.move { font-weight: 700; }
.move--up { color: var(--color-accent-700); }
.move--down { color: var(--color-neutral-800); }
.move--flat { color: var(--color-neutral-600); }

/* ──────────────────────────────── hero ─────────────────────────────── */

.hero { border-bottom: var(--rule); }
.hero__grid { display: grid; grid-template-columns: 1.05fr minmax(0, 1fr); }
.hero__copy {
  padding: 56px 24px 40px; border-right: var(--rule); min-height: 450px;
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
}
.hero__title {
  font-weight: 900; font-size: clamp(40px, 5.2vw, 72px); line-height: 0.94;
  letter-spacing: -0.03em; margin: 20px 0 0; text-wrap: balance;
}
.hero__lede { max-width: 44ch; margin: 20px 0 0; font-size: 17px; color: var(--color-neutral-800); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__side { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.hero__media {
  position: relative; min-height: 320px; overflow: hidden;
  border-bottom: var(--rule); background: var(--color-neutral-200);
}
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px;
  text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-neutral-600);
}
.badge-live {
  position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 7px;
  background: var(--color-accent); color: #fff; padding: 6px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  pointer-events: none;
}
.badge-live span { width: 7px; height: 7px; background: #fff; animation: fk-pulse 1.4s ease-in-out infinite; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; min-width: 0; }
.stats > div { padding: 20px 16px; border-right: var(--rule); min-width: 0; }
.stats > div:last-child { border-right: none; }
.stats dt {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.stats dd {
  margin: 4px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--color-neutral-700); overflow-wrap: anywhere;
}

/* ──────────────────────────── today's catch ────────────────────────── */

.catch { max-width: var(--max); margin: 0 auto; padding: 0 24px; width: 100%; }
.catch__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px;
  padding: 36px 0 20px; border-bottom: var(--rule);
}
.catch__title { font-weight: 900; font-size: 34px; }
.catch__meta {
  margin: 6px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-neutral-700);
}
.catch__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.segmented { display: flex; flex-wrap: wrap; border: var(--rule); }
.segmented button {
  background: transparent; color: var(--color-text); border: none;
  border-right: var(--rule); padding: 11px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.segmented button:last-child { border-right: none; }
.segmented button.is-on { background: var(--color-text); color: var(--color-bg); }
.toggle {
  background: transparent; color: var(--color-text); border: var(--rule);
  padding: 11px 16px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.toggle.is-on { background: var(--color-text); color: var(--color-bg); }

.group__head {
  display: flex; align-items: baseline; gap: 14px;
  padding: 26px 0 12px; border-bottom: var(--rule);
}
.group__name { font-weight: 900; font-size: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }

.card {
  border-right: var(--rule); border-bottom: var(--rule);
  display: flex; flex-direction: column; background: var(--color-bg);
}
.card__media {
  position: relative; height: 168px; background: var(--color-neutral-200);
  border-bottom: var(--rule); overflow: hidden;
}
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; }
.card__ghost {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-heading); font-weight: 900; font-size: 44px; line-height: 0.9;
  letter-spacing: -0.03em; color: var(--color-neutral-400); text-transform: uppercase;
}
.card__tag {
  position: absolute; top: 0; right: 0; padding: 6px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--color-neutral-300); color: var(--color-neutral-800);
}
.card__tag--prime { background: var(--color-accent); color: #fff; }
.card__tag--limited { background: var(--color-text); color: #fff; }
.card__dots { position: absolute; left: 0; bottom: 0; display: flex; }
.card__dots button {
  width: 26px; height: 22px; border: none; border-right: 1px solid var(--color-bg);
  background: var(--color-text); color: #fff; font-size: 9px; font-weight: 700;
}
.card__dots button.is-on { background: var(--color-accent); }
.card__body { padding: 16px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__name { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.card__note { margin: 4px 0 0; font-size: 13px; color: var(--color-neutral-700); }
.card__rate {
  margin: 8px 0 0; display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-heading); font-weight: 800; font-size: 16px;
}
.card__rate .move { font-family: var(--font-body); font-size: 12px; }
.card__was {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  color: var(--color-neutral-600); text-decoration: line-through;
}
.card__stock {
  margin: 6px 0 0; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-neutral-700);
}
.card__stock.is-low, .card__stock.is-out { color: var(--color-accent-700); }
.card__options { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.card__row { display: flex; flex-wrap: wrap; gap: 6px; }
.card__add {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; background: var(--color-text); color: var(--color-bg); border: none;
  padding: 13px 14px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; min-height: 44px;
}
.card__add:hover { background: var(--color-accent); }
.card__add:disabled { background: var(--color-neutral-400); }
.card__add strong { font-family: var(--font-heading); font-weight: 900; }

/* ─────────────────────────── poster & footer ───────────────────────── */

.poster {
  background: var(--color-accent); color: #fff; margin-top: 64px;
  border-top: var(--rule); border-bottom: var(--rule);
}
.poster__in {
  max-width: var(--max); margin: 0 auto; padding: 64px 24px;
  display: grid; grid-template-columns: 1.4fr minmax(0, 1fr); gap: 40px; align-items: end;
}
.poster__line {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(32px, 4.4vw, 60px); line-height: 0.98; letter-spacing: -0.03em;
}
.poster__side { display: flex; flex-direction: column; gap: 14px; }
.poster a {
  align-self: flex-start; background: #fff; color: var(--color-accent-700);
  padding: 13px 18px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.poster a:hover { background: var(--color-accent-900); color: #fff; text-decoration: none; }

.footer {
  max-width: var(--max); margin: 0 auto; padding: 40px 24px 56px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; width: 100%;
}
.footer__brand { display: flex; align-items: center; gap: 8px; }
.footer__mark { height: 30px; width: auto; display: block; }
.footer__word {
  font-family: var(--font-heading); font-weight: 900; font-size: 22px;
  letter-spacing: -0.02em; color: var(--color-text);
}
.footer p { margin: 8px 0 0; font-size: 13px; }
.footer__admin {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  background: none; border: none; padding: 2px 0;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-neutral-600);
}
.footer__admin:hover { color: var(--color-accent-700); }

/* ──────────────────────────── cart drawer ─────────────────────────── */

.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: color-mix(in srgb, #201e1d 42%, transparent);
  display: flex; justify-content: flex-end;
}
.drawer__scrim { position: absolute; inset: 0; border: none; background: none; cursor: default; }
.drawer__panel {
  position: relative; width: min(460px, 100%); background: var(--color-bg);
  border-left: var(--rule); display: flex; flex-direction: column;
  animation: fk-slide 180ms ease-out;
}
.drawer__head {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-bottom: var(--rule);
}
.drawer__head h3 { font-weight: 900; font-size: 22px; margin-right: auto; }
.icon-btn {
  background: none; border: var(--rule); width: 36px; height: 36px;
  display: grid; place-items: center; color: var(--color-text); flex: none;
}
.icon-btn:hover { background: var(--color-accent-100); border-color: var(--color-accent-700); color: var(--color-accent-700); }
.drawer__body { flex: 1; overflow: auto; }
.drawer__foot {
  border-top: var(--rule); padding: 16px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.line {
  padding: 16px 20px; border-bottom: 2px solid var(--color-divider);
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
}
.line__name { font-family: var(--font-heading); font-weight: 800; font-size: 16px; }
.line__spec {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-neutral-700); margin-top: 4px;
}
.line__amount { text-align: right; font-family: var(--font-heading); font-weight: 900; font-size: 16px; }
.stepper { display: flex; align-items: center; border: var(--rule); width: max-content; }
.stepper button {
  background: none; border: none; width: 36px; height: 36px;
  font-size: 18px; font-weight: 700; color: var(--color-text);
}
.stepper button:hover { background: var(--color-accent-100); }
.stepper span {
  width: 34px; text-align: center; font-weight: 700; line-height: 36px;
  border-left: var(--rule); border-right: var(--rule);
}
.line .link-btn { justify-self: end; align-self: center; }
.inline-input { display: flex; margin-top: 6px; }
.inline-input .field { border-right: none; flex: 1; padding: 11px 12px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.inline-input button {
  background: var(--color-text); color: var(--color-bg); border: none;
  padding: 11px 16px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.inline-input button:hover { background: var(--color-accent); }
.totals { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.totals > div { display: flex; justify-content: space-between; }
.totals dt { color: var(--color-neutral-700); }
.totals dd { margin: 0; font-weight: 700; }
.totals .is-total {
  border-top: var(--rule); padding-top: 10px; margin-top: 4px;
  font-family: var(--font-heading); font-size: 20px; font-weight: 900;
}
.totals .is-total dt { color: var(--color-text); }
.msg { font-size: 12px; font-weight: 600; min-height: 16px; color: var(--color-neutral-700); }
.msg.is-good { color: var(--color-accent-700); }
.msg.is-bad { color: var(--color-accent-700); }

/* ─────────────────────────────── modal ────────────────────────────── */

.modal {
  position: fixed; inset: 0; z-index: 70;
  background: color-mix(in srgb, #201e1d 48%, transparent);
  display: grid; place-items: center; padding: 20px;
}
.modal__panel {
  width: min(520px, 100%); background: var(--color-bg); border: var(--rule);
  box-shadow: var(--shadow-lg); animation: fk-in 160ms ease-out;
  max-height: 92vh; overflow: auto;
}
.modal__head {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-bottom: var(--rule);
}
.modal__head h3 { font-weight: 900; font-size: 22px; margin: 4px 0 0; letter-spacing: -0.01em; }
.modal__kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-neutral-700);
}
.modal__body { padding: 20px; }
.radio {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: transparent; color: var(--color-text);
  border: 2px solid var(--color-neutral-400); padding: 14px;
  margin-bottom: 8px; text-align: left; min-height: 48px;
}
.radio.is-on {
  background: var(--color-accent-100); color: var(--color-accent-800);
  border-color: var(--color-accent-700);
}
.radio__dot { width: 14px; height: 14px; border: 2px solid currentColor; flex: none; }
.radio.is-on .radio__dot { background: var(--color-accent); }
.radio__label { font-weight: 700; font-size: 15px; margin-right: auto; }
.radio__note { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.phone-row { display: flex; }
.phone-row span {
  border: var(--rule); border-right: none; padding: 12px;
  font-weight: 700; background: var(--color-neutral-200);
}
.otp-input {
  display: block; margin-top: 6px; width: 140px;
  font-family: var(--font-heading); font-weight: 900; font-size: 24px; letter-spacing: 0.4em;
}
.paid { font-family: var(--font-heading); font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.amount-row {
  display: flex; justify-content: space-between; border-bottom: var(--rule);
  padding-bottom: 12px; font-family: var(--font-heading); font-weight: 900; font-size: 24px;
}

/* ─────────────────────────────── track ───────────────────────────── */

.view { flex: 1; max-width: var(--max); margin: 0 auto; padding: 48px 24px 80px; width: 100%; }
.view__title { font-weight: 900; font-size: clamp(32px, 4vw, 54px); letter-spacing: -0.03em; margin: 12px 0 0; }
.view__sub { margin: 10px 0 0; font-size: 16px; color: var(--color-neutral-800); max-width: 52ch; }
.track { margin-top: 36px; border-top: var(--rule); }
.track__steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: var(--rule);
}
.track__step { padding: 22px 20px; border-right: 2px solid var(--color-divider); color: var(--color-neutral-700); }
.track__step.is-done { background: var(--color-accent-100); color: var(--color-accent-800); }
.track__step.is-current { background: var(--color-accent); color: #fff; }
.track__step-time { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.track__step-label { font-family: var(--font-heading); font-weight: 800; font-size: 19px; margin-top: 8px; letter-spacing: -0.01em; }
.track__step-detail { font-size: 13px; margin-top: 6px; }
.track__cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: var(--rule);
}
.track__cols > div { padding: 24px 20px; }
.track__cols > div:first-child { border-right: var(--rule); }
.track__line {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--color-neutral-300); font-size: 14px;
}
.track__paid {
  display: flex; justify-content: space-between; padding-top: 12px;
  font-family: var(--font-heading); font-weight: 900; font-size: 18px;
}
.lookup { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; align-items: flex-end; }
.lookup label { display: block; }
.lookup .field { width: 200px; }

/* ─────────────────────────────── admin ──────────────────────────── */

.admin-lock { margin-top: 24px; border: var(--rule); padding: 20px; max-width: 420px; }
.admin-stats {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0;
  border-top: var(--rule); border-bottom: var(--rule);
}
/* border-top on every cell, not just row 2+: at row 1 it lands exactly on the
   container's own border-top (no visible doubling), and it means the row
   divider works at any column count without nth-child math tied to a
   specific breakpoint's column total. */
.admin-stats > div {
  padding: 12px 16px;
  border-right: 2px solid var(--color-divider);
  border-top: 2px solid var(--color-divider);
  min-width: 0;
}
.admin-stats dt {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(17px, 1.6vw, 24px); line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.admin-stats dd {
  margin: 3px 0 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--color-neutral-700); overflow-wrap: anywhere; line-height: 1.3;
}
.admin-bar { display: flex; align-items: center; gap: 16px; padding: 22px 0 10px; flex-wrap: wrap; }
.admin-bar h3 { font-weight: 900; font-size: 22px; margin-right: auto; }
.admin-bulk { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; }
.table-scroll { overflow-x: auto; border-top: var(--rule); }
table.board { width: 100%; min-width: 1180px; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
table.board thead tr { border-bottom: var(--rule); }
/* .table-scroll is its own scroll container, so `top` is measured from its
   scrollport — 0 keeps the header off the first row. */
table.board th {
  position: sticky; top: 0; z-index: 5; background: var(--color-bg);
  text-align: left; padding: 8px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-700);
}
table.board tbody tr { border-bottom: 1px solid var(--color-neutral-300); }
table.board tbody tr.is-out { background: var(--color-neutral-200); }
table.board td { padding: 6px 8px; vertical-align: middle; }
.cell-name { font-family: var(--font-heading); font-weight: 800; font-size: 14px; line-height: 1.2; }
.cell-local { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-neutral-600); }
.pill {
  background: none; border: 1px solid var(--color-neutral-400); padding: 4px 7px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--color-text);
}
.pill:hover { border-color: var(--color-accent-700); color: var(--color-accent-700); }
.pill.is-on { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.pill.is-off { background: transparent; color: var(--color-accent-700); border-color: var(--color-accent-700); }
.media-cell { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.file-btn {
  border: var(--rule); padding: 4px 6px; font-size: 10px; font-weight: 700;
  cursor: pointer; line-height: 1;
}
.file-btn:hover { background: var(--color-accent-100); }
.file-btn.is-busy { opacity: 0.4; pointer-events: none; }
.tiny-note { font-size: 10px; font-weight: 700; color: var(--color-neutral-600); }

/* Media upload feedback: a real thumbnail plus an explicit ✓ count, so
   "did that upload?" has a visible answer right in the cell — not just a
   bare digit, and not only a message banner that can scroll out of view. */
.media-status {
  font-size: 10px; font-weight: 700; color: var(--color-neutral-600);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.media-status.is-busy { color: var(--color-accent-700); }
.media-thumb { display: inline-flex; align-items: center; gap: 5px; }
.media-thumb img {
  width: 26px; height: 26px; object-fit: cover; border: var(--rule); flex-shrink: 0;
}
.media-thumb__novideo {
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  border: var(--rule); font-size: 10px; flex-shrink: 0;
}
.media-thumb__badge {
  font-size: 10px; font-weight: 700; color: var(--color-neutral-700); white-space: nowrap;
}
.spinner {
  width: 9px; height: 9px; border: 2px solid var(--color-accent-100);
  border-top-color: var(--color-accent-700); border-radius: 50%;
  animation: fk-spin 700ms linear infinite; flex-shrink: 0;
}
@keyframes fk-spin { to { transform: rotate(360deg); } }
.opts-row { background: var(--color-neutral-200); }
.opts-line { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ── Save column pinned to the right edge: it is the primary action, so it
      must stay reachable however far the board is scrolled ── */
table.board thead th:last-child,
table.board tbody tr:not(.opts-row) td:last-child {
  position: sticky; right: 0; z-index: 6;
  background: var(--color-bg);
  box-shadow: -8px 0 8px -7px color-mix(in srgb, #201e1d 40%, transparent);
}
table.board tbody tr.is-out:not(.opts-row) td:last-child { background: var(--color-neutral-200); }
table.board tbody tr.is-dirty:not(.opts-row) td:last-child { background: var(--color-accent-100); }

/* ── unsaved rows ── */
table.board tbody tr.is-dirty { background: var(--color-accent-100); }
table.board tbody tr.is-dirty td:first-child { box-shadow: inset 3px 0 0 var(--color-accent); }
.row-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.btn.is-quiet {
  background: transparent; color: var(--color-neutral-600);
  border: 1px solid var(--color-neutral-400);
}
.btn.is-quiet:hover { background: transparent; color: var(--color-neutral-600); }

/* ── rate / cost sub-labels ── */
.rate-meta {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 2px 6px; margin-top: 3px; line-height: 1.3;
}
.was {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--color-neutral-600); text-decoration: line-through;
}
.tiny-label {
  display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-neutral-600); margin-bottom: 3px;
}

/* ── stock intake panel ── */
.intake { margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--color-text); }
.intake__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.intake__head h4 { font-family: var(--font-heading); font-weight: 900; font-size: 16px; margin: 0; }
.intake__grid {
  display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)) auto;
  gap: 10px; align-items: end; margin-top: 10px;
}
.intake__grid--writeoff {
  grid-template-columns: 120px minmax(160px, 1fr) auto;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--color-neutral-400);
}
.intake__grid label {
  display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-neutral-600); margin-bottom: 4px;
}
.field--sm { padding: 8px 10px; font-size: 13px; border: 2px solid var(--color-text); }
.intake__hint { margin-top: 8px; font-size: 11px; }
.intake__lots { margin-top: 16px; }

table.lots {
  width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px;
  background: var(--color-bg);
}
table.lots th {
  position: static; text-align: left; padding: 6px 8px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-neutral-700); border-bottom: 2px solid var(--color-text); background: var(--color-bg);
}
table.lots td { padding: 6px 8px; border-bottom: 1px solid var(--color-neutral-300); white-space: nowrap; }
table.lots tbody tr.is-done { color: var(--color-neutral-600); }
table.lots tbody tr.is-done td strong { font-weight: 400; }
.opts-meta {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--color-neutral-400);
}
.opts-meta label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-600); display: block; }
.opts-meta .field--num, .opts-meta .field--thin { margin-top: 4px; }
.panel { margin-top: 28px; border: var(--rule); padding: 20px; }
.panel h3 { font-weight: 900; font-size: 20px; margin: 0 0 14px; }
.cat-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.cat-item { display: flex; align-items: center; gap: 10px; border: var(--rule); padding: 8px 10px; }
.cat-item__name { font-family: var(--font-heading); font-weight: 800; font-size: 14px; }
.draft-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.7fr 0.7fr 0.7fr 0.8fr 0.7fr auto;
  gap: 10px; align-items: end;
}
.draft-grid label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); }
.draft-grid .field { margin-top: 6px; padding: 10px; font-size: 14px; }
.orders-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.orders-table th { text-align: left; padding: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-700); border-bottom: var(--rule); }
.orders-table td { padding: 8px; border-bottom: 1px solid var(--color-neutral-300); vertical-align: top; }

/* ─────────────────────────────── toast ──────────────────────────── */

.toast {
  position: fixed; left: 24px; bottom: 24px; z-index: 80;
  background: var(--color-text); color: var(--color-bg);
  padding: 14px 18px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; animation: fk-in 160ms ease-out;
  max-width: min(420px, calc(100vw - 48px));
}

/* ───────────────────────────── responsive ─────────────────────────── */

@media (max-width: 1100px) {
  .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero__grid, .poster__in, .track__cols { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { border-right: none; border-bottom: var(--rule); padding-top: 36px; min-height: 0; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track__cols > div:first-child { border-right: none; border-bottom: var(--rule); }
  .track__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .draft-grid { grid-template-columns: minmax(0, 1fr); }
  .intake__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intake__grid--writeoff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div { border-right: none; border-bottom: 2px solid var(--color-divider); }
  .admin-stats > div { border-right: none; }
  .footer, .track__steps, .admin-stats { grid-template-columns: minmax(0, 1fr); }
  .header__in { gap: 12px; }
  .nav { order: 3; width: 100%; }
  .poster__in { padding: 40px 24px; }
}
