/* AdVault marketing site.
   Concept: an intelligence report printed on engineering paper and marked up
   in pen. Red is not decoration — in this product red means dead/killed, blue
   means live/verified. The annotations are the analyst's voice. */

:root {
  --paper:  #F1F3F4;
  --card:   #FFFFFF;
  --ink:    #0E1013;
  --dim:    #666E7A;
  --grid:   #DDE1E5;
  --rule:   #C7CDD4;
  --red:    #D6242C;
  --blue:   #1B4DB8;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

a { color: var(--ink); text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- shared feature nav (every app page) ---------- */
.topnav {
  border-bottom: 1.5px solid var(--ink); background: var(--card);
  position: sticky; top: 0; z-index: 50;
}
.topnav-in {
  max-width: 1560px; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 26px; height: 52px;
}
.tn-brand {
  font: 700 15px var(--mono); text-transform: uppercase; letter-spacing: -.5px;
  color: var(--ink); flex: 0 0 auto;
}
.tn-brand b { color: var(--red); }
.tn-brand:hover { text-decoration: none; }

.tn-links { display: flex; gap: 2px; flex-wrap: wrap; }
.tn-links a {
  font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .7px;
  color: var(--dim); padding: 7px 11px; border: 1.5px solid transparent;
  white-space: nowrap;
}
.tn-links a:hover { color: var(--ink); text-decoration: none; }
.tn-links a.on { color: var(--ink); border-color: var(--ink); background: var(--paper); }

.tn-links a.admin { color: var(--red); }
.tn-links a.admin.on { border-color: var(--red); }

.tn-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.tn-stat { font: 11px var(--mono); color: var(--dim); white-space: nowrap; }
.tn-stat b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tn-who {
  font: 11.5px var(--mono); color: var(--ink); white-space: nowrap;
  padding-left: 16px; border-left: 1px solid var(--rule);
}
.tn-who i {
  font-style: normal; text-transform: uppercase; letter-spacing: .6px;
  font-size: 9px; color: var(--paper); background: var(--ink);
  padding: 2px 5px; margin-left: 5px;
}
.tn-out {
  font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .6px;
  color: var(--dim); white-space: nowrap;
}
.tn-out:hover { color: var(--red); text-decoration: none; }
@media (max-width: 1180px) { .tn-stat { display: none; } }
@media (max-width: 760px) { .tn-who { display: none; } }
@media (max-width: 700px) {
  .topnav-in { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 10px; }
}

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
  position: sticky; top: 0; z-index: 40;
}
/* Brand | page sections | product. The middle zone takes the slack so the
   two ends stay put, and nothing is allowed to wrap mid-label. */
.masthead .wrap {
  display: flex; align-items: center; gap: 34px; height: 62px;
}
.logo {
  font: 700 16px var(--mono); letter-spacing: -.5px; text-transform: uppercase;
  color: var(--ink); flex: 0 0 auto;
}
.logo b { color: var(--red); font-weight: 700; }
.logo:hover { text-decoration: none; }

.mastnav { display: flex; align-items: center; gap: 26px; }
.mastnav a {
  font: 500 12px var(--mono); color: var(--dim); text-transform: uppercase;
  letter-spacing: .5px; white-space: nowrap;
}
.mastnav a:hover { color: var(--ink); }

.mastnav.sections { margin-right: auto; }
.mastnav.tools { gap: 22px; flex: 0 0 auto; }
.mastnav.tools a:not(.cta) { color: var(--ink); font-weight: 600; }
.mastnav a.cta {
  color: var(--paper); background: var(--ink); padding: 9px 15px;
  font-weight: 600;
}
.mastnav a.cta:hover { background: var(--red); color: #fff; }

/* Under ~1000px the section anchors are the least useful thing in the bar —
   the page is right there to scroll. The product links stay. */
@media (max-width: 1000px) {
  .masthead .wrap { gap: 18px; }
  .mastnav.sections { display: none; }
  .logo { margin-right: auto; }
}
@media (max-width: 620px) {
  .mastnav.tools a:not(.cta) { display: none; }
}

/* ---------- live counters in the masthead ---------- */
.tick { display: flex; align-items: center; gap: 16px; margin-left: 26px; }
.tick .t { font: 11px var(--mono); color: var(--dim); white-space: nowrap; }
.tick .t b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tick .t.red b { color: var(--red); }
@media (max-width: 1180px) { .tick { display: none; } }

/* ---------- monthly activity block ---------- */
.month {
  border: 1.5px solid var(--ink); background: var(--card);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.month .cell { padding: 16px 18px; border-right: 1px solid var(--rule); }
.month .cell:last-child { border-right: none; }
.month .cell .v {
  font: 700 26px var(--mono); letter-spacing: -1.3px;
  font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px;
}
.month .cell .k {
  font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: 1px;
  color: var(--dim); margin-top: 3px;
}
.month .cell.up .v { color: var(--blue); }
.month .cell.down .v { color: var(--red); }
.month .cell .sign { font-size: 15px; opacity: .75; }
@media (max-width: 700px) { .month .cell { border-right: none; border-bottom: 1px solid var(--rule); } }

.monthbar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 12px;
}
.monthbar .when {
  font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--dim);
}

/* ---------- billing toggle ---------- */
.billing { display: inline-flex; border: 1.5px solid var(--ink); margin-bottom: 24px; }
.billing button {
  font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .9px;
  padding: 9px 18px; border: 0; background: transparent; color: var(--dim);
  cursor: pointer;
}
.billing button + button { border-left: 1.5px solid var(--ink); }
.billing button.on { background: var(--ink); color: var(--paper); }
.billing .save { color: var(--red); margin-left: 6px; font-weight: 700; }
.billing button.on .save { color: #ff9a9e; }

.plan .per { display: block; font: 11.5px var(--mono); color: var(--dim); margin-top: 5px; min-height: 17px; }
.plan.pick .per { color: #98A1AD; }

/* ---------- morphing market line ----------
   Concept from 21st.dev "morphing-text" by @dillionverma, rebuilt in plain
   CSS/JS and re-tinted to this design system (the site isn't React/Tailwind).

   The gooey merge is not a cross-fade: both words are blurred, then an SVG
   alpha threshold (feColorMatrix 255 / -140) hard-cuts the result, so the
   blurred edges fuse into liquid shapes instead of ghosting past each other. */
.marketline { padding: 6px 0 40px; text-align: center; }
.marketline .lead {
  font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 2px;
  color: var(--red); margin-bottom: 10px;
}
.mm-stage {
  position: relative;
  height: clamp(48px, 8.4vw, 108px);
  filter: url(#mmThreshold) blur(.55px);
}
.mm-word {
  position: absolute; inset: 0; margin: auto;
  display: inline-block; width: 100%;
  font: 700 clamp(40px, 7.6vw, 98px)/1 var(--mono);
  letter-spacing: -3.5px; text-transform: uppercase; color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  animation: mmCycle 12.5s linear infinite;
  /* animation-delay is set per word in the template. It has to be phased so
     the first word is already mid-hold on load — an even stagger leaves every
     word at opacity 0 at t=0 and the hero flashes empty. */
}

/* Each word owns 20% of the cycle. It blurs in, holds, blurs out; the
   container's alpha threshold fuses its blur with the next word's, which is
   what produces the liquid morph rather than a cross-fade. */
@keyframes mmCycle {
  0%   { opacity: 0; filter: blur(10px); }
  6%   { opacity: 1; filter: blur(0px); }
  15%  { opacity: 1; filter: blur(0px); }
  26%  { opacity: 0; filter: blur(10px); }
  100% { opacity: 0; filter: blur(10px); }
}
/* Marker-pen highlight. The previous treatment was 11.5px under a 98px word —
   technically rendered, visually a whisper. This is the same red pen used for
   the column ring and the margin notes, so the page keeps one annotation
   language instead of borrowing a second one. */
.marketline .under {
  display: inline-block; position: relative; isolation: isolate;
  margin-top: 20px; padding: 4px 12px 5px;
  font: 600 clamp(11px, 2.9vw, 16px) var(--mono);
  text-transform: uppercase; letter-spacing: .085em;
  color: var(--ink);
  /* Must stay on one line: the band is a single tilted stroke, so a wrapped
     line would render it as one tall rectangle across both rows. The vw-based
     size keeps the phrase inside any viewport instead. */
  white-space: nowrap;
}
.marketline .under::before {
  content: ""; position: absolute; z-index: -1;
  left: 0; right: 0; top: 10%; bottom: 8%;
  background: rgba(214, 36, 44, .22);
  /* Uneven radii + a slight tilt so it reads as a hand stroke, not a box. */
  border-radius: 3px 7px 4px 6px;
  transform: rotate(-.7deg) skewX(-9deg);
  transform-origin: left center;
  animation: mmHighlight 12.5s ease-in-out infinite;
}

/* Wipes in left-to-right, holds most of the cycle, wipes off the same way. */
@keyframes mmHighlight {
  0%   { clip-path: inset(0 100% 0 0); }
  9%   { clip-path: inset(0 0 0 0); }
  86%  { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}
.mm-filters { position: absolute; width: 0; height: 0; overflow: hidden; }

/* No motion: show every market at once rather than a frozen single word. */
@media (prefers-reduced-motion: reduce) {
  .mm-stage { filter: none; height: auto; display: flex; flex-wrap: wrap;
              justify-content: center; gap: 0 18px; }
  .mm-word {
    position: static; opacity: 1; animation: none; filter: none;
    width: auto; font-size: clamp(19px, 3.4vw, 34px); letter-spacing: -1px;
  }
  /* Keep the highlight, drop the wipe — the mark is the point, not the motion. */
  .marketline .under::before { animation: none; clip-path: none; }
}

/* ---------- hero: writing left, live table right ---------- */
.hero-split { display: grid; grid-template-columns: 1fr 560px; gap: 46px; align-items: center; }
@media (max-width: 1120px) { .hero-split { grid-template-columns: 1fr; gap: 34px; } }

/* One small real creative per row — the ad itself, next to its numbers. */
.thumb {
  width: 42px; height: 42px; object-fit: cover; display: block;
  border: 1px solid var(--rule); background: var(--paper); flex: 0 0 auto;
}
.thumb-empty {
  background: repeating-linear-gradient(45deg, transparent, transparent 4px,
              var(--grid) 4px, var(--grid) 8px);
}
.who-cell { display: flex; gap: 10px; align-items: flex-start; }
.who-cell .name { min-width: 0; }
.who-cell .name strong { display: block; }

/* ---------- split: writing on the left, live data on the right ---------- */
.split { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.split .lcol { position: sticky; top: 80px; }
.split .lcol h2 { font-size: clamp(21px, 2.4vw, 27px); }
.split .rcol > .sheet { margin-bottom: 20px; }
.split .rcol > .sheet:last-child { margin-bottom: 0; }
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split .lcol { position: static; }
}

.pairs { border: 1.5px solid var(--ink); background: var(--card); }
.pair { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.pair:last-child { border-bottom: none; }
.pair > div { padding: 18px 20px; }
.pair .p {
  border-right: 1px solid var(--rule);
  background: repeating-linear-gradient(45deg, transparent, transparent 7px,
              rgba(214,36,44,.035) 7px, rgba(214,36,44,.035) 14px);
}
.pair .p .lab, .pair .s .lab {
  font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: 1.3px;
  margin-bottom: 7px; display: block;
}
.pair .p .lab { color: var(--red); }
.pair .s .lab { color: var(--blue); }
.pair .p p, .pair .s p { margin: 0; font-size: 14.5px; }
.pair .p p { color: var(--ink); font-weight: 600; }
.pair .s p { color: var(--dim); }
@media (max-width: 760px) {
  .pair { grid-template-columns: 1fr; }
  .pair .p { border-right: none; border-bottom: 1px solid var(--rule); }
}

.minibar { height: 5px; background: var(--paper); border: 1px solid var(--rule); min-width: 46px; }
.minibar > i { display: block; height: 100%; background: var(--blue); }
.minibar > i.red { background: var(--red); }

/* ---------- section scaffolding ---------- */
.band { padding: 74px 0; border-bottom: 1.5px solid var(--ink); }
.band.tight { padding: 52px 0; }

.eyebrow {
  font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--red); margin-bottom: 14px; display: flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--red); }

h1 {
  font: 700 clamp(34px, 5.6vw, 62px)/1.04 var(--mono);
  letter-spacing: -2.6px; margin: 0 0 20px; text-transform: uppercase;
  max-width: 15ch;
}
h2 {
  font: 700 clamp(23px, 3vw, 33px)/1.15 var(--mono);
  letter-spacing: -1.3px; margin: 0 0 12px; text-transform: uppercase;
}
h3 { font: 700 15px var(--mono); letter-spacing: -.4px; margin: 0 0 7px; }
.lede { font-size: 17.5px; color: var(--dim); max-width: 60ch; margin: 0 0 26px; }
.note-body { color: var(--dim); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font: 600 13px var(--mono); text-transform: uppercase;
  letter-spacing: .6px; padding: 13px 22px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper);
}
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); }

/* ---------- data table (the hero artifact) ---------- */
.sheet { background: var(--card); border: 1.5px solid var(--ink); }
.sheet > .cap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 15px; border-bottom: 1.5px solid var(--ink);
  font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 1px;
}
.sheet > .cap .live { color: var(--blue); display: flex; align-items: center; gap: 6px; }
.sheet > .cap .live::before {
  content: ""; width: 7px; height: 7px; background: var(--blue); border-radius: 50%;
  animation: blip 2.2s ease-in-out infinite;
}
@keyframes blip { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

.scroller { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font: 13px var(--mono); }
table.data th {
  text-align: left; padding: 9px 15px; border-bottom: 1px solid var(--rule);
  font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: 1px;
  color: var(--dim); white-space: nowrap;
}
table.data td { padding: 11px 15px; border-bottom: 1px solid var(--grid); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data td.n { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; white-space: nowrap; }
table.data td.txt { color: var(--dim); font: 12.5px/1.5 var(--sans); max-width: 340px; }
table.data th.hot { color: var(--red); }
table.data td.hot { color: var(--red); }

.tag {
  display: inline-block; font: 600 10px var(--mono); text-transform: uppercase;
  letter-spacing: .7px; padding: 2px 6px; border: 1px solid currentColor; white-space: nowrap;
}
.tag.op  { color: var(--blue); }
.tag.aff { color: var(--dim); }
.tag.warn{ color: var(--red); }

/* ---------- red pen annotation ---------- */

/* The ring is drawn over the real Days-live column, measured from the cells
   themselves at runtime, so it stays on target when the data or type changes. */
.sheet { position: relative; }
.col-ring {
  position: absolute; pointer-events: none; z-index: 5; overflow: visible;
  opacity: 0; transition: opacity .5s ease .25s;
}
.col-ring.on { opacity: 1; }
.col-ring path {
  fill: none; stroke: var(--red); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .col-ring { transition: none; }
}

.pen {
  position: relative; display: block; color: var(--red);
  font: 600 12.5px/1.45 var(--mono); max-width: 30ch;
}
.pen .mark { display: block; margin-bottom: 3px; }
.pen svg { display: block; overflow: visible; }
.pen-inline { color: var(--red); font: 600 12.5px var(--mono); }

.annot-row { display: grid; grid-template-columns: 1fr 240px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .annot-row { grid-template-columns: 1fr; } }

/* ---------- stat blocks ---------- */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); border: 1.5px solid var(--ink); background: var(--card); }
.fig { padding: 18px; border-right: 1px solid var(--rule); }
.fig:last-child { border-right: none; }
.fig .v { font: 700 30px var(--mono); letter-spacing: -1.6px; font-variant-numeric: tabular-nums; }
.fig .k { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--dim); margin-top: 3px; }
.fig.red .v { color: var(--red); }
.fig.blue .v { color: var(--blue); }
@media (max-width: 700px) { .fig { border-right: none; border-bottom: 1px solid var(--rule); } }

/* ---------- comparison bars ---------- */
.cmp { background: var(--card); border: 1.5px solid var(--ink); padding: 22px; }
.cmp .row { margin-bottom: 20px; }
.cmp .row:last-child { margin-bottom: 0; }
.cmp .lbl { display: flex; justify-content: space-between; font: 600 11.5px var(--mono);
            text-transform: uppercase; letter-spacing: .8px; margin-bottom: 7px; }
.cmp .track { height: 22px; background: var(--paper); border: 1px solid var(--rule); }
.cmp .track > i { display: block; height: 100%; }
.cmp .track > i.blue { background: var(--blue); }
.cmp .track > i.red  { background: var(--red); }
.cmp .foot { font: 11.5px var(--mono); color: var(--dim); margin-top: 6px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); border: 1.5px solid var(--ink); background: var(--card); }
.stepcell { padding: 22px; border-right: 1px solid var(--rule); }
.stepcell:last-child { border-right: none; }
.stepcell .idx { font: 700 11px var(--mono); color: var(--red); letter-spacing: 1.4px; margin-bottom: 11px; }
.stepcell p { margin: 0; color: var(--dim); font-size: 13.5px; }
@media (max-width: 760px) { .stepcell { border-right: none; border-bottom: 1px solid var(--rule); } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); border: 1.5px solid var(--ink); background: var(--card); }
.plan { padding: 26px 24px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.plan:last-child { border-right: none; }
.plan.pick { background: var(--ink); color: var(--paper); }
.plan.pick .price, .plan.pick h3 { color: var(--paper); }
.plan.pick li { color: #B9C0CA; border-bottom-color: #2A2F38; }
.plan.pick .btn { background: var(--red); border-color: var(--red); color: #fff; }
.plan.pick .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

.plan .tier { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: 1.4px; color: var(--red); margin-bottom: 12px; }
.plan .price { font: 700 38px var(--mono); letter-spacing: -2px; line-height: 1; }
.plan .price small { font: 500 12px var(--mono); color: var(--dim); letter-spacing: 0; }
.plan.pick .price small { color: #98A1AD; }
.plan .who { font: 12.5px var(--sans); color: var(--dim); margin: 9px 0 18px; min-height: 38px; }
.plan.pick .who { color: #98A1AD; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.plan li { font: 12.5px var(--mono); padding: 8px 0; border-bottom: 1px solid var(--grid); color: var(--dim); }
.plan li b { color: inherit; font-weight: 700; }
.plan li.no { text-decoration: line-through; opacity: .45; }

/* ---------- source table ---------- */
.srcrow td:first-child { font-weight: 700; }
.free { color: var(--blue); font-weight: 700; }
.paid { color: var(--red); font-weight: 700; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); background: var(--card); }
.faq summary { cursor: pointer; padding: 16px 18px; font: 600 14px var(--mono); list-style: none;
               display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 18px 18px; color: var(--dim); font-size: 14px; max-width: 72ch; }

/* ---------- footer ---------- */
.foot { padding: 40px 0; font: 12px var(--mono); color: var(--dim); }
.foot .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }

/* ================= customer panel ================= */
.panelwrap { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

.filterbar {
  border-bottom: 1.5px solid var(--ink); background: var(--paper);
  position: sticky; top: 58px; z-index: 30; padding: 12px 0;
}
.filterbar form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld > label {
  font: 600 9.5px var(--mono); text-transform: uppercase; letter-spacing: 1.1px;
  color: var(--dim);
}
.fld select, .fld input {
  font: 12.5px var(--mono); padding: 8px 10px; border: 1.5px solid var(--ink);
  background: var(--card); color: var(--ink); min-width: 118px;
}
.fld input.wide { min-width: 230px; }
.filterbar .btn { padding: 9px 16px; font-size: 12px; cursor: pointer; }
.filterbar .clear { font: 12px var(--mono); color: var(--dim); align-self: center; }

.panelgrid { display: grid; grid-template-columns: 1fr 316px; gap: 26px;
             align-items: start; padding: 24px 0 60px; }
@media (max-width: 1060px) { .panelgrid { grid-template-columns: 1fr; } }
.rail { position: sticky; top: 128px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1060px) { .rail { position: static; } }

.countbar {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; gap: 14px; flex-wrap: wrap;
}
.countbar .n { font: 700 15px var(--mono); }
.countbar .hint { font: 11.5px var(--mono); color: var(--dim); }

/* --- ad cards --- */
.adlist { display: flex; flex-direction: column; gap: 12px; }
.adcard {
  border: 1.5px solid var(--ink); background: var(--card);
  display: grid; grid-template-columns: 92px 1fr 152px;
}
@media (max-width: 700px) { .adcard { grid-template-columns: 68px 1fr; } }
.adcard .shot { border-right: 1px solid var(--rule); background: var(--paper); }
.adcard .shot img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.adcard .shot .none {
  width: 100%; aspect-ratio: 1;
  background: repeating-linear-gradient(45deg, transparent, transparent 5px,
              var(--grid) 5px, var(--grid) 10px);
}
.adcard .mid { padding: 13px 15px; min-width: 0; }
.adcard .who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adcard .who strong { font: 700 14px var(--mono); }
.adcard .lic { font: 11px var(--mono); color: var(--dim); margin-top: 3px; }
.adcard .body {
  font: 13px/1.5 var(--sans); color: var(--dim); margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.adcard .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; align-items: center; }
.adcard .lp { font: 11.5px var(--mono); color: var(--blue); }
.adcard .right {
  border-left: 1px solid var(--rule); padding: 13px 14px; text-align: right;
}
@media (max-width: 700px) {
  .adcard .right { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule);
                   text-align: left; }
}
.adcard .days { font: 700 26px var(--mono); letter-spacing: -1.4px; line-height: 1;
                font-variant-numeric: tabular-nums; }
.adcard .days.win { color: var(--red); }
.adcard .dayslabel { font: 9.5px var(--mono); text-transform: uppercase;
                     letter-spacing: 1px; color: var(--dim); margin-top: 3px;
                     white-space: nowrap; }
.adcard.dead { opacity: .68; }
.adcard.dead .days { color: var(--dim); }

.railcard { border: 1.5px solid var(--ink); background: var(--card); }
.railcard > h4 {
  margin: 0; padding: 10px 13px; border-bottom: 1.5px solid var(--ink);
  font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: 1.1px;
}
.railrow {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 9px 13px; border-bottom: 1px solid var(--grid);
  font: 12px var(--mono); color: var(--ink); text-decoration: none;
}
.railrow:last-child { border-bottom: none; }
.railrow:hover { background: rgba(74,158,237,.05); text-decoration: none; }
.railrow.on { background: rgba(214,36,44,.07); font-weight: 700; }
.railrow .v { color: var(--dim); font-variant-numeric: tabular-nums; }
.railrow .v.hot { color: var(--red); font-weight: 700; }

.emptybox {
  border: 1.5px dashed var(--rule); background: var(--card);
  padding: 46px 22px; text-align: center; color: var(--dim);
  font: 13px var(--mono);
}

/* ---------- signed-out teaser cut-off ----------
   The public table stops short and says what's behind the account, rather
   than pretending the list simply ended there. */
tr.locked td {
  background: repeating-linear-gradient(45deg, transparent, transparent 8px,
              rgba(214,36,44,.05) 8px, rgba(214,36,44,.05) 16px);
  border-top: 1.5px solid var(--ink);
  font: 12.5px var(--mono); color: var(--dim); text-align: center;
  padding: 15px 12px;
}
tr.locked strong { color: var(--ink); }
tr.locked a { color: var(--red); font-weight: 700; margin-left: 8px; }

/* Trial countdown in the nav badge. Red once it's nearly out — the point is
   that they see it coming, not that they discover it at the door. */
.tn-who a { text-decoration: none; }
.tn-who i.warn { background: var(--red); color: #fff; }

/* A filter the current plan can't reach. Greyed, but still a link — it goes to
   the plan page, so the answer to "why can't I click this" is one click away. */
.snav.lock { opacity: .5; }
.snav.lock:hover { opacity: 1; }
.snav.lock .c {
  background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase; padding: 2px 5px;
}

/* ---------- market-led masthead ----------
   Each market is a button carrying its live ad count, not a page anchor. The
   count is the argument: "Casino 136" says more than the word "Markets" did. */
.mastnav.markets { margin-right: auto; gap: 2px; }
.mastnav.markets a {
  display: flex; align-items: baseline; gap: 6px;
  padding: 7px 11px; border: 1.5px solid transparent;
  font: 600 12px var(--mono); color: var(--ink);
  text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
}
.mastnav.markets a:hover { border-color: var(--ink); background: var(--card); }
.mastnav.markets .n {
  font-size: 10.5px; font-weight: 700; color: var(--red);
  font-variant-numeric: tabular-nums;
}

/* Below ~1150px the counts are the first thing to go, then the market names —
   the product links and CTA have to survive to the smallest width. */
@media (max-width: 1150px) { .mastnav.markets .n { display: none; } }
@media (max-width: 900px)  { .mastnav.markets { display: none; } .logo { margin-right: auto; } }

/* ---------- tutorials ---------- */
.tut-head { border-bottom: 1.5px solid var(--ink); padding: 46px 0 38px; }
.tut-h1 { font: 700 46px/1.05 var(--mono); letter-spacing: -2.4px; margin: 8px 0 14px;
          text-transform: uppercase; }
.tut-lede { font: 15px/1.7 var(--sans); color: var(--dim); max-width: 56ch; margin: 0 0 28px; }
.tut-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
             gap: 0; border: 1.5px solid var(--ink); background: var(--card); }
.tut-index a { display: flex; align-items: baseline; gap: 9px; padding: 13px 15px;
               border-right: 1px solid var(--rule); }
.tut-index a:last-child { border-right: none; }
.tut-index a:hover { background: var(--paper); }
.tut-index .i { font: 700 11px var(--mono); color: var(--red); }
.tut-index .ti { font: 12.5px/1.4 var(--mono); flex: 1; }
.tut-index .tm { font: 10.5px var(--mono); color: var(--dim); white-space: nowrap; }
@media (max-width: 620px) { .tut-h1 { font-size: 32px; letter-spacing: -1.4px; }
  .tut-index a { border-right: none; border-bottom: 1px solid var(--rule); } }

.tut { border-bottom: 1.5px solid var(--ink); padding: 44px 0; }
.tut:nth-child(even) { background: var(--card); }
.tut-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .tut-grid { grid-template-columns: 1fr; gap: 26px; } }
.tut-num { font: 700 12px var(--mono); color: var(--red); letter-spacing: 1.4px; }
.tut-body h2 { font: 700 27px/1.15 var(--mono); letter-spacing: -1.3px; margin: 6px 0 10px;
               text-transform: uppercase; }
.tut-meta { display: flex; gap: 14px; margin-bottom: 18px; }
.tut-meta span { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: 1px;
                 color: var(--dim); }
.tut-meta .where { color: var(--paper); background: var(--ink); padding: 3px 7px; }
.tut-goal { font: 14px/1.7 var(--sans); margin: 0 0 8px; }
.tut-goal b { font-family: var(--mono); font-size: 12.5px; }
.tut-why { font: 14px/1.7 var(--sans); color: var(--dim); margin: 0 0 22px; max-width: 62ch; }

.tut-steps { list-style: none; counter-reset: s; margin: 0; padding: 0;
             border-top: 1.5px solid var(--ink); }
.tut-steps li { counter-increment: s; padding: 14px 0 14px 40px; position: relative;
                border-bottom: 1px solid var(--grid); }
.tut-steps li::before { content: counter(s); position: absolute; left: 0; top: 14px;
  font: 700 11px var(--mono); color: var(--paper); background: var(--ink);
  width: 22px; height: 22px; display: grid; place-items: center; }
.tut-steps b { display: block; font: 600 13.5px var(--mono); margin-bottom: 4px; }
.tut-steps span { font: 13.5px/1.65 var(--sans); color: var(--dim); }

.tut-note { margin-top: 20px; border-left: 3px solid var(--red);
            background: rgba(214,36,44,.05); padding: 13px 16px;
            font: 13.5px/1.65 var(--sans); }
.tut-note .lab { display: block; font: 600 9.5px var(--mono); text-transform: uppercase;
                 letter-spacing: 1.2px; color: var(--red); margin-bottom: 4px; }

.tut-media { position: sticky; top: 74px; }
.tut-media video, .ytwrap { width: 100%; border: 1.5px solid var(--ink);
                            background: var(--ink); display: block; }
.ytwrap { position: relative; aspect-ratio: 16/9; }
.ytwrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tut-soon { border: 1.5px dashed var(--rule); background: var(--paper);
            aspect-ratio: 16/9; display: flex; flex-direction: column;
            align-items: center; justify-content: center; text-align: center;
            padding: 22px; gap: 7px; }
.tut-soon .mark { font-size: 26px; color: var(--rule); }
.tut-soon b { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 1.2px; }
.tut-soon span { font: 11.5px/1.6 var(--mono); color: var(--dim); max-width: 34ch; }
.tut-go { display: block; margin-top: 12px; text-align: center; padding: 12px;
          border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
          font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .8px; }
.tut-go:hover { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 900px) { .tut-media { position: static; } }

.tut-end { padding: 46px 0 60px; text-align: center; }
.tut-end h2 { font: 700 30px var(--mono); letter-spacing: -1.5px; margin: 0 0 10px;
              text-transform: uppercase; }
.tut-end p { font: 14px var(--sans); color: var(--dim); margin: 0 0 22px; }

/* ---------- learn strip on the marketing page ---------- */
.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
              border: 1.5px solid var(--ink); background: var(--card); }
.lcard { padding: 18px 17px 16px; border-right: 1px solid var(--rule);
         display: flex; flex-direction: column; gap: 7px; }
.lcard:last-child { border-right: none; }
.lcard:hover { background: var(--paper); }
.lc-top { display: flex; justify-content: space-between; align-items: baseline; }
.lc-top .n { font: 700 11px var(--mono); color: var(--red); letter-spacing: 1px; }
.lc-top .m { font: 10px var(--mono); color: var(--dim); text-transform: uppercase;
             letter-spacing: .9px; }
.lcard h3 { font: 600 14px/1.3 var(--mono); margin: 0; }
.lcard p { font: 12.5px/1.6 var(--sans); color: var(--dim); margin: 0; flex: 1; }
.lc-go { font: 600 11px var(--mono); color: var(--ink); text-transform: uppercase;
         letter-spacing: .8px; }
.lcard:hover .lc-go { color: var(--red); }
.learn-foot { margin: 16px 0 0; }
.learn-foot a { font: 600 12px var(--mono); color: var(--red); text-transform: uppercase;
                letter-spacing: .8px; }
@media (max-width: 700px) { .lcard { border-right: none; border-bottom: 1px solid var(--rule); } }

/* ---------- in-dashboard view help ---------- */
.vhelp { border: 1.5px solid var(--ink); background: var(--card); margin-bottom: 14px; }
.vhelp summary { list-style: none; cursor: pointer; padding: 10px 14px;
                 display: flex; align-items: center; gap: 9px; }
.vhelp summary::-webkit-details-marker { display: none; }
.vhelp summary:hover { background: var(--paper); }
.vhelp .q { width: 17px; height: 17px; display: grid; place-items: center;
            background: var(--ink); color: var(--paper); font: 700 10px var(--mono); }
.vhelp summary b { font: 600 12.5px var(--mono); }
.vhelp .hint { font: 10.5px var(--mono); color: var(--dim); text-transform: uppercase;
               letter-spacing: .9px; margin-left: auto; }
.vhelp[open] .hint::after { content: " — hide"; }
.vhelp-in { padding: 4px 14px 14px 40px; border-top: 1px solid var(--grid); }
.vhelp-in p { font: 13px/1.6 var(--sans); margin: 12px 0 10px; max-width: 74ch; }
.vhelp-in ul { margin: 0 0 12px; padding-left: 16px; }
.vhelp-in li { font: 12.5px/1.6 var(--sans); color: var(--dim); margin-bottom: 6px; }
.vhelp-in a { font: 600 11.5px var(--mono); color: var(--red); text-transform: uppercase;
              letter-spacing: .7px; }

/* The done-with-you tier reads differently from the self-serve ones: red rule
   on top so it's clearly a different kind of thing, not just a bigger number. */
.plan.done { border-top: 4px solid var(--red); }
.plan.done .tier { color: var(--red); }

/* ---------- the morning pipeline ----------
   One grid row carries everything; two background panes sit in the same row
   underneath, so the shaded "automated" region and the white "you" region are
   sized by the grid itself rather than by a percentage that drifts whenever a
   station's width changes. */
.pipe {
  margin-top: 30px;
  display: grid;
  grid-template-columns:
    155px 46px 1fr 46px 1fr 46px 1fr 52px 1fr;   /* src, conn, stn ×4 */
  grid-template-rows: auto 1fr;
  align-items: stretch;
  border: 1.5px solid var(--ink);
}

.pipe-lab { grid-row: 1; padding: 7px 12px; border-bottom: 1.5px solid var(--ink); }
.pipe-lab span {
  font: 600 9.5px var(--mono); text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--dim); white-space: nowrap;
}
.pipe-lab.auto { grid-column: 1 / 8; background: #E4E8EA; }
.pipe-lab.you  { grid-column: 8 / 10; background: var(--card);
                 border-left: 1.5px solid var(--ink); }
.pipe-lab.you span { color: var(--red); }

.pipe-bg { grid-row: 2; z-index: 0; }
.pipe-bg.auto { grid-column: 1 / 8; background: #E4E8EA; }
.pipe-bg.you  { grid-column: 8 / 10; background: var(--card);
                border-left: 1.5px solid var(--ink); }

/* Every content cell is placed explicitly. Auto-placement can't be used here:
   the two background panes already occupy row 2, so an auto-placed item skips
   past them and lands in whatever column is left — which shoved the whole
   pipeline to the right and collapsed the middle columns to 0px. */
.pipe > .src, .pipe > .conn, .pipe > .stn { grid-row: 2; z-index: 1; }
.pipe > .src { grid-column: 1; }
.pipe > .c1  { grid-column: 2; }
.pipe > .s1  { grid-column: 3; }
.pipe > .c2  { grid-column: 4; }
.pipe > .s2  { grid-column: 5; }
.pipe > .c3  { grid-column: 6; }
.pipe > .s3  { grid-column: 7; }
.pipe > .c4  { grid-column: 8; }
.pipe > .s4  { grid-column: 9; }

/* --- feeds --- */
.src { padding: 16px 12px; display: flex; flex-direction: column;
       justify-content: center; gap: 9px; }
.feed { border: 1.5px solid var(--rule); background: var(--paper); padding: 8px 10px; }
.feed b { display: block; font: 600 11px var(--mono); }
.feed span { font: 9.5px var(--mono); color: var(--dim); text-transform: uppercase;
             letter-spacing: .7px; }

/* --- connectors --- */
.conn { position: relative; }
.conn::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0;
  height: 1.5px; background: var(--rule);
}
/* Arrowhead at the receiving end. */
.conn::after {
  content: ""; position: absolute; top: 50%; right: 0;
  width: 0; height: 0; transform: translate(0, -50%);
  border-left: 6px solid var(--rule);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.conn.cross::before, .conn.cross::after { background: var(--red); }
.conn.cross::after { border-left-color: var(--red); }

/* The travelling payload. Each connector runs the same 4.8s loop offset by
   1.2s, so a dot is always somewhere on the line and the four segments read as
   one continuous run rather than four separate blinks. */
.conn i {
  position: absolute; top: 50%; left: 0; width: 6px; height: 6px;
  margin-top: -3px; background: var(--blue); border-radius: 50%;
  animation: pipeflow 4.8s linear infinite;
}
.conn.c2 i { animation-delay: -1.2s; }
.conn.c3 i { animation-delay: -2.4s; }
.conn.c4 i { animation-delay: -3.6s; background: var(--red); }

@keyframes pipeflow {
  0%   { transform: translateX(0); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(calc(100% + 40px)); opacity: 0; }
}

/* --- stations --- */
.stn { padding: 16px 14px; display: flex; flex-direction: column; gap: 7px;
       border-left: 1px dashed var(--rule); }
.stn.s1 { border-left: none; }
.stn .sn { font: 700 10px var(--mono); letter-spacing: 1.3px; color: var(--red); }
.stn .st { font: 600 13.5px/1.35 var(--mono); }
.stn .sout {
  margin-top: auto; align-self: flex-start;
  font: 9.5px var(--mono); text-transform: uppercase; letter-spacing: .8px;
  color: var(--paper); background: var(--ink); padding: 3px 7px;
}
.stn.mine { border-left: none; }
.stn.mine .sout { background: var(--red); }

.pipe-foot { font: 12px/1.6 var(--mono); color: var(--dim); margin: 12px 0 0; }

/* Vertical below 860px: the row grid becomes a single column, the connectors
   turn into short drops, and nothing has to shrink to stay on one line. */
@media (max-width: 860px) {
  .pipe { grid-template-columns: 1fr; grid-template-rows: none; }
  /* Specificity matters here: `.pipe-lab.auto` is 0,2,0, so a plain
     `.pipe-lab` override loses to it no matter how late it appears and the two
     band labels stay side by side in their original columns. */
  .pipe-lab.auto, .pipe-lab.you, .pipe-bg.auto, .pipe-bg.you,
  .pipe > .src, .pipe > .conn, .pipe > .stn {
    grid-column: 1 / -1; grid-row: auto;
  }
  /* Stacked, a separate "You" band label would sit at the top next to the
     other one and describe nothing. It becomes a marker on step 04 instead. */
  .pipe-lab.you { display: none; }
  .stn.mine { position: relative; padding-top: 30px; }
  .stn.mine::before {
    content: "You"; position: absolute; top: 9px; left: 14px;
    font: 600 9.5px var(--mono); text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--red);
  }
  .pipe-bg { display: none; }        /* bands can't span a stacked column */
  .pipe-lab.auto, .pipe-lab.you { border-left: none; }
  .pipe-lab.you { border-top: 1.5px solid var(--ink); }
  .src { background: #E4E8EA; }
  .stn { border-left: none; border-top: 1px dashed var(--rule); }
  .stn.s1, .stn.s2, .stn.s3 { background: #E4E8EA; }
  .conn { height: 26px; background: #E4E8EA; }
  .conn.cross { background: transparent; }
  .conn::before { top: 0; bottom: 0; left: 50%; right: auto;
                  width: 1.5px; height: auto; }
  .conn::after { top: auto; bottom: 0; right: 50%; transform: translate(50%, 0);
                 border-left: 4px solid transparent;
                 border-right: 4px solid transparent;
                 border-top: 6px solid var(--rule); border-bottom: none; }
  .conn.cross::after { border-top-color: var(--red); }
  .conn i { left: 50%; top: 0; margin: 0 0 0 -3px; }
  @keyframes pipeflow {
    0%   { transform: translateY(0); opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translateY(26px); opacity: 0; }
  }
}

/* ================= LAST 24 HOURS =================
   Techniques lifted from the 21st.dev library (animated-counter, marquee) and
   rebuilt in CSS. The originals are React + motion/react + Tailwind; this app
   is Jinja and a stylesheet, so what carries over is the mechanic, not the
   code. rAF is avoided deliberately — it does not fire in the preview pane. */
.live24 { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
          background: var(--ink); color: var(--paper); padding: 26px 0 0; }
.live24 .wrap { padding-bottom: 24px; }

.l24-head { display: flex; align-items: baseline; justify-content: space-between;
            gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.l24-title { display: flex; align-items: center; gap: 9px; }
.l24-title b { font: 700 15px var(--mono); text-transform: uppercase; letter-spacing: -.3px; }
.l24-sub { font: 11.5px var(--mono); color: #98A1AD; }
.l24-when { font: 11px var(--mono); color: #98A1AD; }

/* Breathing dot. Two rings so it reads as a signal, not a bullet. */
.pulse { position: relative; width: 8px; height: 8px; background: var(--red);
         border-radius: 50%; flex: 0 0 auto; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%;
                border: 1.5px solid var(--red); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; }
                  100% { transform: scale(1.9); opacity: 0; } }

.l24-grid { display: grid; grid-template-columns: repeat(6, 1fr);
            border: 1.5px solid #2A2F37; }
.l24-cell { padding: 15px 16px; border-right: 1px solid #2A2F37; }
.l24-cell:last-child { border-right: none; }
.l24-cell .v { font: 700 30px var(--mono); letter-spacing: -1.5px; line-height: 1;
               display: flex; align-items: baseline; }
.l24-cell.up .v { color: #6FD08C; }
.l24-cell.down .v { color: #FF6B70; }
.l24-cell .x { font-size: 17px; color: #98A1AD; letter-spacing: -.5px; }
.l24-cell .k { font: 600 10px var(--mono); text-transform: uppercase;
               letter-spacing: 1px; margin-top: 9px; }
.l24-cell .n { font: 10.5px var(--mono); color: #98A1AD; margin-top: 2px; }
@media (max-width: 1000px) { .l24-grid { grid-template-columns: repeat(3, 1fr); }
  .l24-cell:nth-child(3n) { border-right: none; }
  .l24-cell:nth-child(-n+3) { border-bottom: 1px solid #2A2F37; } }
@media (max-width: 560px) { .l24-grid { grid-template-columns: repeat(2, 1fr); }
  .l24-cell { border-right: 1px solid #2A2F37; }
  .l24-cell:nth-child(2n) { border-right: none; } }

/* --- odometer ---
   Each digit is a 0-9 column shifted up by its value. `--d` comes from the
   template; the keyframe reads it, so one rule animates every digit. */
.odo { display: inline-flex; }
.od { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.od i { display: block; font-style: normal;
        animation: roll 1.1s cubic-bezier(.16, 1, .3, 1) both; }
.od b { display: block; height: 1em; font-weight: 700;
        font-variant-numeric: tabular-nums; }
.sep { display: inline-block; }
@keyframes roll {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(var(--d) * -1em)); }
}
@media (prefers-reduced-motion: reduce) {
  .od i { animation: none; transform: translateY(calc(var(--d) * -1em)); }
  .pulse::after { animation: none; }
}

/* --- per-market bars --- */
.l24-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 9px 26px; margin-top: 18px; }
.bar { display: flex; align-items: center; gap: 9px; }
.bar .bl { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .8px;
           color: #98A1AD; width: 74px; flex: 0 0 auto; }
.bar .bt { flex: 1; height: 5px; background: #2A2F37; }
.bar .bt i { display: block; height: 100%; background: var(--red);
             animation: grow 1.2s cubic-bezier(.16,1,.3,1) both; }
.bar .bv { font: 700 11px var(--mono); font-variant-numeric: tabular-nums;
           width: 44px; text-align: right; }
@keyframes grow { from { transform: scaleX(0); transform-origin: left; } }

.l24-warn { font: 11.5px/1.6 var(--mono); color: #FFC98B; margin: 14px 0 0;
            border-left: 3px solid #FFC98B; padding-left: 11px; max-width: 78ch; }

/* --- just-captured strip (marquee) --- */
.strip { border-top: 1px solid #2A2F37; background: #0A0C0F;
         position: relative; overflow: hidden; }
.strip-lab { position: absolute; top: 0; left: 0; z-index: 2;
             background: var(--red); padding: 4px 10px; }
.strip-lab span { font: 700 9px var(--mono); text-transform: uppercase;
                  letter-spacing: 1.3px; color: #fff; }
.strip-track { display: flex; width: max-content;
               animation: slide 70s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-run { display: flex; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

.shot { margin: 0; width: 132px; flex: 0 0 auto; padding: 14px 7px;
        border-right: 1px solid #1A1E24; }
.shot img { width: 100%; height: 86px; object-fit: cover; display: block;
            background: #1A1E24; filter: grayscale(.35); }
.shot:hover img { filter: none; }
.shot figcaption { margin-top: 6px; }
.shot figcaption b { display: block; font: 600 10px var(--mono); color: var(--paper);
                     white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot figcaption span { font: 9px var(--mono); color: #6B7482;
                        text-transform: uppercase; letter-spacing: .7px; }

/* ---------- last-24h strip inside the dashboard ----------
   Same information as the public panel, sized for a working screen rather
   than a landing page: one row, no odometer, no marquee. */
.d24 { border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
       margin-bottom: 14px; }
.d24-head { display: flex; align-items: center; gap: 8px; padding: 8px 13px;
            border-bottom: 1px solid #2A2F37; }
.d24-head b { font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: 1.1px; }
.d24-when { font: 10px var(--mono); color: #98A1AD; margin-left: auto; }
.d24-row { display: grid; grid-template-columns: repeat(6, 1fr); }
.d24-cell { padding: 9px 13px; border-right: 1px solid #2A2F37; }
.d24-cell:last-child { border-right: none; }
.d24-cell .v { display: block; font: 700 18px var(--mono); letter-spacing: -.8px;
               font-variant-numeric: tabular-nums; }
.d24-cell.up .v { color: #6FD08C; }
.d24-cell.down .v { color: #FF6B70; }
.d24-cell .k { font: 9.5px var(--mono); color: #98A1AD; text-transform: uppercase;
               letter-spacing: .8px; }
@media (max-width: 1100px) { .d24-row { grid-template-columns: repeat(3, 1fr); }
  .d24-cell:nth-child(-n+3) { border-bottom: 1px solid #2A2F37; }
  .d24-cell:nth-child(3n) { border-right: none; } }
