/* ==========================================================================
   ARBY — revision 2 · core product styles
   Register: dealer's black book × trading terminal. Dark is the product.
   One green owns every margin number; amber owns "move now".
   Numbers are mono + tabular; the badge is the first thing the eye hits.
   ========================================================================== */

/* ─── 1. tokens ────────────────────────────────────────────────────────── */
:root {
  /* dark — the default */
  --bg: #0D1117;
  --bg-2: #111722;
  --surface: #1A1F2B;
  --surface-2: #232B3A;
  --surface-3: #2C3547;
  --fg: #E9EDF5;
  --fg-2: #C3CBD9;
  --muted: #97A1B2;
  --faint: #6B7488;
  --border: #2A3345;
  --border-soft: #212936;
  --margin: #22C55E;
  --margin-ink: #22C55E;
  --margin-bright: #4ADE80;
  --on-margin: #06130A;
  --hot: #F59E0B;
  --hot-ink: #F59E0B;
  --danger: #F87171;
  --ok-wash: #12291C;
  --caution-wash: #2C2110;
  --danger-wash: #2E1618;
  --track: #2A3345;
  --scrim: rgba(3, 6, 11, 0.72);
  --photo-scrim: rgba(4, 6, 10, 0.52);
  --glow-hot: rgba(245, 158, 11, 0.30);
  --glow-fresh: rgba(34, 197, 94, 0.34);
  --focus: 0 0 0 3px rgba(34, 197, 94, 0.45);
  --shadow-pop: 0 24px 70px rgba(0, 0, 0, 0.55);

  /* photo overlays — theme-independent, always on a photograph */
  --badge-bg: rgba(6, 8, 12, 0.86);
  --badge-line: rgba(255, 255, 255, 0.12);
  --badge-ink-1: #4ADE80;
  --badge-ink-2: #22C55E;
  --badge-hot-1: #FBBF24;
  --badge-hot-2: #F59E0B;
  --badge-grey-1: #A6B0C2;
  --badge-grey-2: #8B94A7;
  --chip-ink: #E9EDF5;

  /* third-party flag colours — quarantined here, the only place outside the
     core set. Flags are CSS-drawn because Windows renders flag emoji as
     letter pairs. */
  --flag-de-1: #17181a; --flag-de-2: #d21f26; --flag-de-3: #f2c21c;
  --flag-nl-1: #ae1c28; --flag-nl-3: #21468b;
  --flag-be-1: #1b1b1b; --flag-be-2: #f5c518; --flag-be-3: #c8102e;
  --flag-fr-1: #0f3b8c; --flag-fr-3: #d21f26;
  --flag-it-1: #148a4c; --flag-it-3: #c8102e;
  --flag-at-1: #c8102e; --flag-at-3: #c8102e;
  --flag-white: #ffffff;

  /* type */
  --font-display: Inter, "Segoe UI Variable Display", "Helvetica Neue", system-ui, sans-serif;
  --font-body: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --text-xs: 11px;
  --text-sm: 12.5px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 28px;
  --text-3xl: 40px;
  --tracking-display: -0.03em;

  /* geometry */
  --radius-card: 8px;
  --radius-ctl: 6px;
  --radius-pill: 999px;
  --gutter: 28px;
  --container: 1210px;
  --appbar-h: 56px;
  --controls-h: 98px;
  --motion: 160ms cubic-bezier(0.22, 1, 0.36, 1);

  /* chrome — the presentation surface around the app */
  --chrome-bg: #05070C;
  --chrome-bg-2: #0C111A;
  --chrome-line: rgba(233, 237, 245, 0.12);
  --chrome-fg: #E9EDF5;
  --chrome-muted: #7E8AA0;
}

[data-theme="light"] {
  --bg: #F6F7F9;
  --bg-2: #EEF1F5;
  --surface: #FFFFFF;
  --surface-2: #F3F5F8;
  --surface-3: #E9ECF2;
  --fg: #101828;
  --fg-2: #364152;
  --muted: #5B6577;
  --faint: #98A2B3;
  --border: #E3E7EE;
  --border-soft: #EDF0F5;
  --margin: #22C55E;
  --margin-ink: #15803D;
  --margin-bright: #16A34A;
  --hot: #F59E0B;
  --hot-ink: #B45309;
  --danger: #DC2626;
  --ok-wash: #E8F7EE;
  --caution-wash: #FEF3E2;
  --danger-wash: #FDECEC;
  --track: #E3E7EE;
  --scrim: rgba(16, 24, 40, 0.52);
  --glow-hot: rgba(245, 158, 11, 0.22);
  --glow-fresh: rgba(34, 197, 94, 0.22);
  --focus: 0 0 0 3px rgba(21, 128, 61, 0.38);
  --shadow-pop: 0 24px 70px rgba(16, 24, 40, 0.24);
}

/* ─── 2. base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chrome-bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.45;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--margin-ink); text-decoration: none; }
a:hover { color: color-mix(in oklab, var(--margin-ink) 84%, var(--fg)); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-ctl); }
::selection { background: color-mix(in oklab, var(--margin) 34%, transparent); }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.micro {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.sep { color: var(--faint); }

/* ─── 3. presentation chrome ───────────────────────────────────────────── */
.proto {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 9px 20px;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-line);
  color: var(--chrome-fg);
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.proto-brand {
  display: flex; align-items: center; gap: 9px;
  letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
}
.proto-brand i { width: 8px; height: 8px; background: var(--margin); }
.proto-brand small { letter-spacing: 0.06em; text-transform: none; color: var(--chrome-muted); }
.proto-screens { display: flex; gap: 2px; flex-wrap: wrap; }
.proto-screens a {
  padding: 5px 10px; border-radius: var(--radius-pill); color: var(--chrome-muted);
  transition: color var(--motion), background var(--motion);
}
.proto-screens a:hover { color: var(--chrome-fg); background: rgba(233, 237, 245, 0.08); }
.proto-screens a[aria-current="page"] { background: rgba(233, 237, 245, 0.94); color: var(--chrome-bg); }
.proto-group { display: flex; align-items: center; gap: 8px; }
.proto-group > span { color: var(--chrome-muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; }
.proto-seg { display: flex; background: var(--chrome-bg-2); border: 1px solid var(--chrome-line); border-radius: var(--radius-pill); padding: 2px; }
.proto-seg button {
  padding: 4px 11px; border-radius: var(--radius-pill); color: var(--chrome-muted);
  font-size: 11px; transition: background var(--motion), color var(--motion);
}
.proto-seg button:hover { color: var(--chrome-fg); background: rgba(233, 237, 245, 0.08); }
.proto-seg button[aria-pressed="true"] { background: var(--margin); color: var(--on-margin); }
.proto select {
  background: var(--chrome-bg-2); border: 1px solid var(--chrome-line); color: var(--chrome-fg);
  border-radius: var(--radius-ctl); padding: 4px 8px; font-size: 11px;
}
.proto-spacer { margin-left: auto; }
.proto-note { color: var(--chrome-muted); letter-spacing: 0.04em; }
.proto-note b { color: var(--margin-bright); font-weight: 500; }

/* ─── 4. stage / frame / viewport ──────────────────────────────────────── */
.stage { max-width: 1520px; margin: 0 auto; padding: 14px 24px 90px; }
.stage-caption {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--chrome-muted); margin-bottom: 10px;
}
.frame {
  width: 1440px; height: 900px;
  transform-origin: top left;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  background: var(--bg);
  position: relative;
}
.frame[data-bp="mobile"] { width: 390px; height: 844px; }
.vp-body {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: var(--bg); color: var(--fg);
}

/* ─── 5. app shell ─────────────────────────────────────────────────────── */
.app { display: flex; flex-direction: column; height: 100%; }
.appbar {
  flex: none; height: var(--appbar-h); z-index: 30;
  background: color-mix(in oklab, var(--bg) 88%, var(--bg-2));
  border-bottom: 1px solid var(--border);
}
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.appbar-in { display: flex; align-items: center; gap: 22px; height: var(--appbar-h); }
.logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 17px; font-weight: 750;
  letter-spacing: 0.12em; color: var(--fg);
}
.logo i { width: 9px; height: 9px; background: var(--margin); }
.logo-tag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 2px 7px;
}
.appnav { display: flex; align-items: center; gap: 4px; }
.appnav a {
  padding: 7px 12px; border-radius: var(--radius-ctl);
  color: var(--muted); font-size: 13.5px; font-weight: 520;
  transition: color var(--motion), background var(--motion);
}
.appnav a:hover { color: var(--fg); background: var(--surface-2); }
.appnav a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
.appnav a[aria-current="page"]::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px;
  background: var(--margin); vertical-align: 1px;
}
.appbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.appbar-search { display: none; }
.sync {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted); white-space: nowrap;
}
.sync b { color: var(--fg-2); font-weight: 500; }

.live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-2);
}
.live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--danger);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--danger) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .live i, .fresh[data-tier="new"] i, .deal[data-fresh="new"] { animation: none !important; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-ctl);
  border: 1px solid transparent; font-size: 13.5px; font-weight: 560;
  letter-spacing: -0.005em; transition: background var(--motion), border-color var(--motion), color var(--motion);
  white-space: nowrap;
}
.btn--primary { background: var(--margin); color: var(--on-margin); border-color: var(--margin); }
.btn--primary:hover { background: color-mix(in oklab, var(--margin) 88%, var(--fg)); border-color: color-mix(in oklab, var(--margin) 88%, var(--fg)); }
.btn--secondary { background: var(--surface-2); color: var(--fg); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--faint); background: var(--surface-3); }
.btn--ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn--ghost:hover { color: var(--fg); background: var(--surface-2); }
.btn--sm { padding: 7px 12px; font-size: 12.5px; }
.btn--block { width: 100%; }
.iconbtn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: var(--radius-ctl); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--fg-2);
  transition: color var(--motion), border-color var(--motion), background var(--motion);
}
.iconbtn:hover { color: var(--fg); border-color: var(--faint); background: var(--surface-3); }
.iconbtn svg { width: 15px; height: 15px; }
.iconbtn[aria-pressed="true"] { color: var(--margin-ink); border-color: color-mix(in oklab, var(--margin) 55%, var(--border)); }
.iconbtn--ghost { background: transparent; border-color: transparent; }
.iconbtn--ghost:hover { background: var(--surface-2); }

/* ─── 6. pipeline header ──────────────────────────────────────────────── */
.app-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden; position: relative;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.app-scroll::-webkit-scrollbar { width: 10px; }
.app-scroll::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; border: 3px solid var(--bg); }

.feedhead { padding-top: 26px; }
.feedhead-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pipe-kicker { display: flex; align-items: center; gap: 10px; }
.pipe-title { font-size: var(--text-md); font-weight: 560; color: var(--muted); margin-top: 4px; }
.pipe-title b { color: var(--fg); font-weight: 600; }
.pipe-count {
  font-family: var(--font-mono); font-size: var(--text-3xl); font-weight: 700;
  letter-spacing: var(--tracking-display); color: var(--fg); line-height: 1.05;
}
.pipe-count .unit { font-size: 18px; font-weight: 560; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.pipe-sub { margin-top: 9px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: var(--text-sm); }
.pipe-sub b { color: var(--fg-2); font-weight: 560; }
.feedhead-side { text-align: right; flex: none; }
.feedhead-side .micro { display: block; margin-bottom: 6px; }

/* today's catch */
.catch {
  margin-top: 20px; display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  overflow: hidden; position: relative;
}
.catch::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--hot), var(--margin)); z-index: 2;
}
.catch-media { position: relative; min-height: 176px; }
.catch-media img { width: 100%; height: 100%; object-fit: cover; }
.catch-body { padding: 16px 20px 16px 22px; display: flex; align-items: center; gap: 24px; }
.catch-info { min-width: 0; flex: 1; }
.catch-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--hot-ink);
}
.catch-label i { width: 6px; height: 6px; background: var(--hot); }
.catch-title { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; margin-top: 7px; }
.catch-meta { margin-top: 5px; color: var(--muted); font-size: var(--text-sm); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.catch-margin { text-align: right; flex: none; }
.catch-margin .pct {
  font-family: var(--font-mono); font-size: 34px; font-weight: 750;
  color: var(--margin-ink); letter-spacing: -0.03em; line-height: 1;
}
.catch-margin .eur { font-family: var(--font-mono); font-size: 13px; color: var(--fg-2); margin-top: 5px; }
.catch-cta { flex: none; }

/* ─── 7. controls (sticky) ─────────────────────────────────────────────── */
.controls {
  position: sticky; top: 0; z-index: 25; margin-top: 18px;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.controls-in { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.qfield {
  display: flex; align-items: center; gap: 8px; width: 240px; flex: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-ctl);
  padding: 0 10px; height: 34px;
}
.qfield svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.qfield input {
  border: 0; background: none; outline: none; width: 100%; font-size: 13px;
  color: var(--fg);
}
.qfield input::placeholder { color: var(--muted); }
.qfield:focus-within { border-color: color-mix(in oklab, var(--margin) 60%, var(--border)); box-shadow: var(--focus); }
.sortset { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-ctl); padding: 3px; }
.sortset button {
  padding: 6px 11px; border-radius: 4px; font-size: 12.5px; font-weight: 540;
  color: var(--muted); transition: background var(--motion), color var(--motion);
  white-space: nowrap;
}
.sortset button:hover { color: var(--fg); background: var(--surface-2); }
.sortset button[aria-pressed="true"] { background: var(--surface-3); color: var(--fg); }
.sortset button[aria-pressed="true"]::before {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--margin); margin-right: 7px; vertical-align: 1px;
}
.controls-in .spacer { margin-left: auto; }
.chiprow { display: flex; gap: 7px; padding: 0 0 9px; overflow-x: auto; scrollbar-width: none; }
.chiprow::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  font-size: 12.5px; font-weight: 520; white-space: nowrap;
  transition: background var(--motion), color var(--motion), border-color var(--motion);
}
.chip:hover { color: var(--fg); border-color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip .n { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.chip[aria-pressed="true"] .n { color: color-mix(in oklab, var(--bg) 62%, var(--fg)); }

/* ─── 8. layout: rail + feed ───────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: 258px 1fr; gap: 24px; padding-top: 18px; }
.layout[data-filters="closed"] { grid-template-columns: 1fr; }
.layout[data-filters="closed"] .rail { display: none; }

.rail { align-self: start; position: sticky; top: calc(var(--controls-h) + 18px); }
.rail, .drawer {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.rail-head, .drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--border-soft);
}
.rail-head h2, .drawer-head h2 { font-size: 14px; font-weight: 620; letter-spacing: -0.01em; }
.rail-head button, .drawer-head button { font-size: 12px; color: var(--muted); }
.rail-head button:hover, .drawer-head button:hover { color: var(--margin-ink); }
.rail-scroll { padding: 4px 16px 14px; max-height: calc(100vh - 260px); overflow-y: auto; }
.rail-foot { padding: 12px 16px 14px; border-top: 1px solid var(--border-soft); }
.fgroup { padding: 14px 0 12px; }
.fgroup + .fgroup { border-top: 1px solid var(--border-soft); }
.fgroup > .micro { display: block; margin-bottom: 11px; letter-spacing: 0.16em; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11.5px; color: var(--muted); }
.input, .select {
  width: 100%; height: 34px; padding: 0 10px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-ctl);
  color: var(--fg); font-size: 13px;
}
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.input:focus, .select:focus { outline: none; border-color: color-mix(in oklab, var(--margin) 60%, var(--border)); box-shadow: var(--focus); }
.range { display: flex; align-items: center; gap: 12px; }
.range input[type="range"] { flex: 1; accent-color: var(--margin); }
.range-out { font-family: var(--font-mono); font-size: 13px; color: var(--margin-ink); min-width: 44px; text-align: right; }
.switchrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.switchrow p { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.switch {
  flex: none; width: 38px; height: 22px; border-radius: var(--radius-pill);
  background: var(--surface-3); border: 1px solid var(--border); position: relative;
  transition: background var(--motion), border-color var(--motion);
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--muted); transition: transform var(--motion), background var(--motion);
}
.switch[aria-checked="true"] { background: color-mix(in oklab, var(--margin) 30%, var(--surface-2)); border-color: color-mix(in oklab, var(--margin) 60%, var(--border)); }
.switch[aria-checked="true"]::after { transform: translateX(16px); background: var(--margin); }
.formake { display: flex; flex-wrap: wrap; gap: 6px; }
.route-label { display: flex; align-items: center; gap: 6px; margin: 12px 0 7px; }
.route-label:first-child { margin-top: 0; }
.route-label b { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; }
.route-label span { font-size: 10.5px; color: var(--faint); }

.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(318px, 1fr)); gap: 14px; align-content: start; }

/* ─── 9. deal card ─────────────────────────────────────────────────────── */
.deal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  transition: border-color var(--motion), transform var(--motion);
}
.deal:hover { border-color: color-mix(in oklab, var(--faint) 60%, var(--border)); }
.deal[data-fresh="new"] { box-shadow: inset 3px 0 0 var(--margin); border-color: color-mix(in oklab, var(--margin) 38%, var(--border)); }

.deal-hit { position: absolute; inset: 0; z-index: 0; }
.deal-media, .deal-body { position: relative; z-index: 1; pointer-events: none; }
.deal-body a, .deal-body button, .deal-media a, .deal-media button { pointer-events: auto; }
.deal-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); flex: none; }
.deal-media img { width: 100%; height: 100%; object-fit: cover; }
.deal-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 56%; background: linear-gradient(180deg, transparent, var(--photo-scrim)); pointer-events: none; }

.src {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 8px; border-radius: var(--radius-ctl);
  background: var(--badge-bg); border: 1px solid var(--badge-line);
  color: var(--chip-ink); font-size: 11px; font-weight: 520;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.flag { width: 14px; height: 10px; border-radius: 1.5px; flex: none; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22); }
.flag--de { background: linear-gradient(180deg, var(--flag-de-1) 33.3%, var(--flag-de-2) 33.3% 66.6%, var(--flag-de-3) 66.6%); }
.flag--nl { background: linear-gradient(180deg, var(--flag-nl-1) 33.3%, var(--flag-white) 33.3% 66.6%, var(--flag-nl-3) 66.6%); }
.flag--be { background: linear-gradient(90deg, var(--flag-be-1) 33.3%, var(--flag-be-2) 33.3% 66.6%, var(--flag-be-3) 66.6%); }
.flag--fr { background: linear-gradient(90deg, var(--flag-fr-1) 33.3%, var(--flag-white) 33.3% 66.6%, var(--flag-fr-3) 66.6%); }
.flag--it { background: linear-gradient(90deg, var(--flag-it-1) 33.3%, var(--flag-white) 33.3% 66.6%, var(--flag-it-3) 66.6%); }
.flag--at { background: linear-gradient(180deg, var(--flag-at-1) 33.3%, var(--flag-white) 33.3% 66.6%, var(--flag-at-3) 66.6%); }

.badge-margin {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  transform: rotate(2deg);
  background: var(--badge-bg); border: 1px solid var(--badge-line);
  border-radius: var(--radius-ctl); padding: 5px 9px 6px; text-align: right;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  min-width: 74px;
}
.badge-pct { display: block; font-family: var(--font-mono); font-size: 19px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--badge-ink-1); }
.badge-eur { display: block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 620; margin-top: 3px; color: var(--badge-ink-2); }
.badge-margin[data-tier="grey"] .badge-pct { color: var(--badge-grey-1); }
.badge-margin[data-tier="grey"] .badge-eur { color: var(--badge-grey-2); }
.badge-margin[data-tier="green"] .badge-pct { color: var(--badge-ink-1); }
.badge-margin[data-tier="bright"] .badge-pct { color: var(--badge-ink-1); font-size: 21px; }
.badge-margin[data-tier="bright"] .badge-eur { color: var(--badge-ink-2); }
.badge-margin[data-tier="hot"] { border-color: color-mix(in oklab, var(--hot) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in oklab, var(--hot) 25%, transparent), 0 0 20px var(--glow-hot); }
.badge-margin[data-tier="hot"] .badge-pct { color: var(--badge-hot-1); }
.badge-margin[data-tier="hot"] .badge-eur { color: var(--badge-hot-2); }

.deal-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.deal-head { display: flex; align-items: flex-start; gap: 8px; }
.deal-title { font-size: var(--text-md); font-weight: 620; letter-spacing: -0.015em; line-height: 1.25; overflow-wrap: anywhere; }
.deal-head .qa-mini { margin-left: auto; display: flex; gap: 2px; flex: none; }
.deal-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--muted); font-size: var(--text-sm); }
.deal-meta .flag { box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18); }
.fresh { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; }
.fresh i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.fresh[data-tier="new"] { color: var(--margin-ink); }
.fresh[data-tier="new"] i { background: var(--margin); animation: pulse 2s ease-out infinite; }
.fresh[data-tier="recent"] { color: var(--fg-2); }
.fresh[data-tier="recent"] i { background: var(--fg-2); }
.fresh[data-tier="old"] { color: var(--muted); }
.fresh[data-tier="old"] i { background: var(--faint); }

.math { display: grid; gap: 4px; padding-top: 2px; }
.math-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.math-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.math-v { font-family: var(--font-mono); font-size: var(--text-md); font-weight: 620; color: var(--fg); }
.math-v--ro { color: var(--muted); font-weight: 560; text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in oklab, var(--muted) 70%, transparent); }

.margin-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--border-soft);
}
.margin-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.margin-v { font-family: var(--font-mono); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--margin-ink); line-height: 1; margin-right: auto; padding-left: 8px; }
.margin-v b { font-weight: 700; font-size: 15px; }
.dots { display: flex; gap: 4px; flex: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--track); }
.dot[data-on="1"] { background: var(--margin); }
.deal[data-tier="hot"] .dots .dot[data-on="1"] { background: var(--hot); box-shadow: 0 0 6px var(--glow-hot); }
.deal[data-tier="bright"] .dots .dot[data-on="1"] { background: var(--margin-bright); }

.ref-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.ref-line b { font-family: var(--font-mono); font-weight: 600; color: var(--fg-2); }
.ref-approx { color: var(--hot-ink); font-weight: 560; }
.ref-stale { color: var(--hot-ink); }
.ref-stale::before { content: "⚠ "; }

.deal-foot { margin-top: auto; display: flex; gap: 8px; padding-top: 2px; }
.deal-open {
  flex: 1; height: 40px; border-radius: var(--radius-ctl);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 14px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: color-mix(in oklab, var(--margin) 12%, var(--surface-2));
  border: 1px solid color-mix(in oklab, var(--margin) 34%, var(--border));
  color: var(--margin-ink);
  transition: background var(--motion), color var(--motion), border-color var(--motion);
}
.deal-open:hover { background: var(--margin); border-color: var(--margin); color: var(--on-margin); }
.deal-open svg { width: 14px; height: 14px; }
.qa { display: flex; gap: 6px; flex: none; }
.qa .iconbtn { height: 40px; width: 40px; }

/* passed / excluded notice */
.passnote {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border: 1px dashed var(--border); border-radius: var(--radius-card);
  color: var(--muted); font-size: 12.5px;
}
.passnote button { color: var(--margin-ink); font-weight: 560; }

/* ─── 10. digest + strip ───────────────────────────────────────────────── */
.digest {
  grid-column: 1 / -1;
  margin-top: 22px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 18px 20px; border-radius: var(--radius-card);
  background: var(--bg-2); border: 1px solid var(--border);
}
.digest-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--margin-ink); }
.digest-h { font-size: var(--text-md); font-weight: 560; margin-top: 6px; }
.digest-h b { font-family: var(--font-mono); font-weight: 650; color: var(--fg); }
.digest-h .hot { color: var(--hot-ink); }
.digest .spacer { margin-left: auto; }
.strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 22px; padding: 14px 2px 26px; border-top: 1px solid var(--border-soft);
  color: var(--muted); font-size: 12.5px;
}
.strip b { font-family: var(--font-mono); font-weight: 600; color: var(--fg-2); }
.strip a { font-weight: 520; }

/* ─── 11. states ───────────────────────────────────────────────────────── */
.statepanel {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 48px 28px; border: 1px dashed var(--border); border-radius: var(--radius-card);
  background: color-mix(in oklab, var(--surface) 55%, transparent);
}
.statemark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-ctl);
  font-family: var(--font-mono); font-size: 17px; color: var(--muted);
}
.statepanel h2 { font-size: 20px; font-weight: 640; letter-spacing: -0.02em; }
.statepanel p { color: var(--muted); max-width: 52ch; font-size: 13.5px; }
.statepanel .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.skel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.skel-media { aspect-ratio: 16 / 9; background: var(--surface-2); position: relative; overflow: hidden; }
.skel-body { padding: 14px; display: grid; gap: 10px; }
.skel-line, .skel-price, .skel-margin { height: 11px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.skel-line.w88 { width: 88%; } .skel-line.w60 { width: 60%; } .skel-line.w45 { width: 45%; } .skel-line.w70 { width: 70%; }
.skel-price { height: 18px; width: 40%; }
.skel-margin { height: 20px; width: 62%; }
.skel-media::after, .skel-line::after, .skel-price::after, .skel-margin::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--fg) 7%, transparent), transparent);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.scanline {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--bg-2); font-size: 13px; color: var(--fg-2);
}
.scanline b { font-family: var(--font-mono); color: var(--margin-ink); font-weight: 600; }
.scanbar { margin-left: auto; width: 180px; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; flex: none; }
.scanbar i { display: block; width: 40%; height: 100%; background: var(--margin); border-radius: 99px; animation: scan 1.5s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }

.firstvisit {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 76px 28px; text-align: center;
}
.firstvisit .logo { font-size: 21px; }
.firstvisit h2 { font-size: 24px; font-weight: 650; letter-spacing: -0.03em; margin-top: 8px; }
.firstvisit p { color: var(--muted); font-size: 13.5px; }
.loadbar { width: 220px; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.loadbar i { display: block; width: 36%; height: 100%; background: var(--margin); animation: scan 1.4s ease-in-out infinite; }

/* ─── 12. overlays ─────────────────────────────────────────────────────── */
.drawer-scrim {
  position: absolute; inset: 0; z-index: 40; background: var(--scrim);
  opacity: 0; visibility: hidden; transition: opacity var(--motion), visibility var(--motion);
}
.drawer-scrim[data-open="true"] { opacity: 1; visibility: visible; }
.drawer {
  position: absolute; z-index: 41; inset: auto 0 0 0; max-height: 78%;
  display: flex; flex-direction: column; border-radius: var(--radius-card) var(--radius-card) 0 0;
  border-bottom: 0; transform: translateY(102%); transition: transform var(--motion);
  visibility: hidden;
}
.drawer[data-open="true"] { transform: translateY(0); visibility: visible; }
.drawer-grab { padding: 9px 0 3px; display: grid; place-items: center; }
.drawer-grab i { width: 34px; height: 4px; border-radius: 99px; background: var(--surface-3); }
.drawer-body { overflow-y: auto; padding: 4px 18px 12px; }
.drawer-foot { display: flex; gap: 10px; padding: 12px 18px 18px; border-top: 1px solid var(--border-soft); }

.overlay {
  position: absolute; inset: 0; z-index: 50; display: grid; place-items: center;
  padding: 28px; background: var(--scrim); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity var(--motion), visibility var(--motion);
}
.overlay[data-open="true"] { opacity: 1; visibility: visible; }
.modal {
  width: min(640px, 100%); max-height: 86%; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 22px 24px 24px;
  box-shadow: var(--shadow-pop);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.modal-head h2 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.modal-head p { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 52ch; }
.modal-note {
  margin-top: 18px; padding: 12px 14px; border-radius: var(--radius-ctl);
  background: var(--caution-wash); color: var(--hot-ink); font-size: 12.5px; line-height: 1.55;
}
.modal-note b { font-weight: 640; }
.steps { display: grid; gap: 14px; margin-top: 20px; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.step-n {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid color-mix(in oklab, var(--margin) 45%, var(--border)); border-radius: var(--radius-ctl);
  font-family: var(--font-mono); font-size: 13px; color: var(--margin-ink); font-weight: 620;
}
.step h3 { font-size: 14.5px; font-weight: 620; }
.step p { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.55; }
.src-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: var(--radius-ctl);
  border: 1px solid var(--border); color: var(--muted); font-size: 11.5px;
}
.tag--ok { background: var(--ok-wash); border-color: color-mix(in oklab, var(--margin) 40%, var(--border)); color: var(--margin-ink); }
.tag--approx { background: var(--caution-wash); border-color: color-mix(in oklab, var(--hot) 45%, var(--border)); color: var(--hot-ink); }

/* share card — 1200 × 630 rendered scaled inside modals */
.sharewrap { margin-top: 18px; }
.sharecard {
  width: 600px; max-width: 100%; aspect-ratio: 1200 / 630;
  display: grid; grid-template-columns: 46% 1fr; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card);
  position: relative;
}
.sharecard-media { position: relative; }
.sharecard-media img { width: 100%; height: 100%; object-fit: cover; }
.sharecard-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.sharecard-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.sharecard-brand i { width: 8px; height: 8px; background: var(--margin); }
.sharecard-title { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.sharecard-margin { margin-top: auto; }
.sharecard-margin .pct { font-family: var(--font-mono); font-size: 38px; font-weight: 800; letter-spacing: -0.035em; color: var(--margin-ink); line-height: 1; }
.sharecard-margin .line { font-family: var(--font-mono); font-size: 13px; color: var(--fg-2); margin-top: 8px; }
.sharecard-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.sharecard-foot .micro { font-size: 10px; }

/* action sheet (mobile long-press) */
.sheet-list { display: grid; gap: 8px; margin-top: 16px; }
.sheet-list button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-ctl);
  background: var(--surface-2); color: var(--fg); font-size: 14px; font-weight: 540; text-align: left;
}
.sheet-list button:hover { border-color: var(--faint); background: var(--surface-3); }
.sheet-list button[data-danger="true"]:hover { border-color: color-mix(in oklab, var(--hot) 55%, var(--border)); color: var(--hot-ink); }
.sheet-list svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.sheet-list button:hover svg { color: inherit; }

/* snackbar */
.snack {
  position: absolute; z-index: 55; left: 50%; bottom: 22px; transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-radius: var(--radius-ctl);
  background: var(--surface-3); border: 1px solid var(--border); color: var(--fg);
  font-size: 13px; box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transition: opacity var(--motion), transform var(--motion), visibility var(--motion);
  max-width: calc(100% - 32px);
}
.snack[data-open="true"] { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.snack .ico { color: var(--margin-ink); font-family: var(--font-mono); }
.snack button { color: var(--margin-ink); font-weight: 600; white-space: nowrap; }

/* pull to refresh */
.ptr {
  position: absolute; top: 0; left: 0; right: 0; z-index: 35;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; margin-top: -44px; color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: opacity var(--motion), transform var(--motion); opacity: 0;
}
.ptr[data-visible="true"] { opacity: 1; transform: translateY(44px); }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--surface-3); border-top-color: var(--margin); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── 13. mobile viewport ──────────────────────────────────────────────── */
.bottomnav { display: none; }
.frame[data-bp="mobile"] .appbar { height: 52px; }
.frame[data-bp="mobile"] .appbar-in { height: 52px; gap: 10px; padding-inline: 16px; }
.frame[data-bp="mobile"] .appnav { display: none; }
.frame[data-bp="mobile"] .logo { font-size: 15px; }
.frame[data-bp="mobile"] .logo-tag, .frame[data-bp="mobile"] .sync { display: none; }
.frame[data-bp="mobile"] .appbar-search { display: grid; }
.frame[data-bp="mobile"] .appbar-actions { gap: 8px; }
.frame[data-bp="mobile"] .appbar .btn { display: none; }
.frame[data-bp="mobile"] .wrap { padding-inline: 16px; }
.frame[data-bp="mobile"] .bottomnav {
  display: grid; grid-template-columns: repeat(4, 1fr); flex: none; height: 56px;
  background: var(--bg-2); border-top: 1px solid var(--border);
}
.frame[data-bp="mobile"] .bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 10px; font-weight: 560; letter-spacing: 0.02em;
}
.frame[data-bp="mobile"] .bottomnav svg { width: 18px; height: 18px; }
.frame[data-bp="mobile"] .bottomnav a[aria-current="page"] { color: var(--fg); }
.frame[data-bp="mobile"] .bottomnav form.bottomnav-out { display: contents; }
.frame[data-bp="mobile"] .bottomnav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 10px; font-weight: 560; letter-spacing: 0.02em;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit;
}
.frame[data-bp="mobile"] .bottomnav button svg { width: 18px; height: 18px; }
.frame[data-bp="mobile"] .bottomnav a[aria-current="page"] svg { color: var(--margin-ink); }
.frame[data-bp="mobile"] .feedhead { padding-top: 16px; }
.frame[data-bp="mobile"] .feedhead-top { flex-direction: column; align-items: flex-start; gap: 10px; }
.frame[data-bp="mobile"] .feedhead-side { display: none; }
.frame[data-bp="mobile"] .pipe-count { font-size: 32px; }
.frame[data-bp="mobile"] .catch { grid-template-columns: 1fr; margin-top: 14px; }
.frame[data-bp="mobile"] .catch-media { min-height: 148px; aspect-ratio: 2.5 / 1; }
.frame[data-bp="mobile"] .catch-body { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 16px 16px; }
.frame[data-bp="mobile"] .catch-margin { text-align: left; }
.frame[data-bp="mobile"] .catch-cta { width: 100%; }
.frame[data-bp="mobile"] .catch-cta .btn { width: 100%; }
.frame[data-bp="mobile"] .controls { margin-top: 12px; }
.frame[data-bp="mobile"] .controls-in { gap: 8px; padding: 8px 0; }
.frame[data-bp="mobile"] .qfield { display: none; }
.frame[data-bp="mobile"] .sortset { overflow-x: auto; scrollbar-width: none; flex: 1; }
.frame[data-bp="mobile"] #sortNote { display: none; }
.frame[data-bp="mobile"] .chiprow { padding-bottom: 8px; }
.frame[data-bp="mobile"] .layout { grid-template-columns: 1fr; padding-top: 12px; }
.frame[data-bp="mobile"] .rail { display: none; }
.frame[data-bp="mobile"] .feed { grid-template-columns: 1fr; gap: 10px; }
.frame[data-bp="mobile"] .deal { touch-action: pan-y; -webkit-touch-callout: none; user-select: none; }
.frame[data-bp="mobile"] .deal-media { aspect-ratio: 2.7 / 1; }
.frame[data-bp="mobile"] .deal-body { padding: 11px 12px 12px; gap: 8px; }
.frame[data-bp="mobile"] .deal-title { font-size: 14.5px; }
.frame[data-bp="mobile"] .margin-v { font-size: 18px; }
.frame[data-bp="mobile"] .deal-open { height: 48px; }
.frame[data-bp="mobile"] .deal-head .qa-mini { display: none; }
.frame[data-bp="mobile"] .digest { margin-top: 14px; padding: 14px 16px; gap: 12px; }
.frame[data-bp="mobile"] .digest .spacer { display: none; }
.frame[data-bp="mobile"] .strip { padding-bottom: 20px; }
.frame[data-bp="mobile"] .overlay { padding: 14px; align-items: end; }
.frame[data-bp="mobile"] .modal { width: 100%; max-height: 88%; }
.frame[data-bp="mobile"] .sharecard { grid-template-columns: 1fr; }
.frame[data-bp="mobile"] .sharecard-media { aspect-ratio: 2.4 / 1; }
.frame[data-bp="mobile"] .snack { bottom: 74px; }
