/* films.css -- the product films II. to VI. (sprint landing-next-2,
   2026-10-17). assets/js/film-*.js move each section's static card into a
   .film-col beside a device and a payoff line. While the film LOOPS the card
   steps aside; in the still mode (prefers-reduced-motion, a render that
   failed) the card shows again, with the payoff's final frame. Without JS
   none of these classes exist, so the page is the static page.

   Inside a device the sizes are the canvas's own px (1280 x 800 for the
   laptop, scaled to the frame by scene.js), which is why they are large. */

/* ---------- the column ---------- */
.film-host,
.film-payoff { display: none; }
.film-col[data-scene-mode="loop"] .film-host { display: block; }
.film-col[data-scene-mode="loop"] > aside { display: none; }
.film-col.scene-on .film-payoff {
  display: block;
  margin-top: 28px;
  font-family: var(--mono);
  font-weight: var(--fw-medium);
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.film-payoff > span,
.ty-w { white-space: nowrap; }
/* A payoff that wraps keeps no word alone on its last line (GO 3). */
.film-col.scene-on .film-payoff { text-wrap: balance; }
/* From 900px the laptop takes the wider column (the lede reflows beside it). */
@media (min-width: 900px) {
  .am-grid:has(> .film-col[data-scene-mode="loop"]) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}

/* ---------- shared pieces ---------- */
.odo { display: inline-flex; line-height: 1.1; font-variant-numeric: tabular-nums; }
.odo-col { position: relative; display: inline-block; }
.odo-col::before { content: "0"; visibility: hidden; }   /* in-flow: the cell's width and baseline */
.odo-col > span { position: absolute; left: 0; top: 0; transform: scale(0.001); }
.ty { position: relative; }
.ty-c { opacity: 0; }
.ty-caret { position: absolute; left: 0; top: 0; width: 2px; height: 1.1em; background: var(--green-dark); opacity: 0; }
.film-pointer { position: absolute; left: 0; top: 0; width: 44px; height: 44px; opacity: 0; z-index: 2; }
.film-pointer svg { display: block; width: 100%; height: 100%; }
.film-pointer path { fill: var(--charcoal); stroke: var(--white); stroke-width: 1.4; stroke-linejoin: round; }
.film-host .dc-head { padding-bottom: 12px; margin-bottom: 18px; }
.film-host .dc-sub:empty { display: none; }

/* ---------- III. Argus AM (laptop) ---------- */
.fa { position: relative; font-family: var(--mono); color: var(--charcoal); }
.fa-id { display: flex; align-items: baseline; gap: 26px; margin-bottom: 14px; }
.fa-ticker { font-size: 72px; font-weight: var(--fw-semibold); line-height: 1; letter-spacing: -0.02em; }
.fa-sector { font-size: 30px; color: var(--slate); }
.fa-date { margin-left: auto; font-size: 24px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-dark); }
.fa-date.is-stale { color: var(--stale); }
.fa-label { font-size: 32px; letter-spacing: 0.02em; color: var(--slate); }
.fa-pillar { display: grid; grid-template-columns: 250px minmax(0, 1fr) 120px; align-items: center; gap: 26px; height: 52px; }
.fa-track { height: 24px; background: var(--border); border-radius: 3px; overflow: hidden; }
.fa-fill { display: block; height: 100%; background: var(--green-dark); transform-origin: 0 50%; transform: scaleX(0); }
.fa-val { font-size: 36px; text-align: right; font-variant-numeric: tabular-nums; opacity: 0; }
.fa-comp { display: flex; align-items: center; gap: 30px; margin-top: 16px; padding-top: 16px; border-top: 3px solid var(--border); }
.fa-odo { font-size: 88px; font-weight: var(--fw-medium); letter-spacing: -0.03em; }
.fa-badge { font-size: 30px; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 20px; border-radius: 6px; background: var(--green-dark); color: var(--white); opacity: 0; }
.fa-pos { position: relative; display: flex; align-items: center; gap: 24px; margin-top: 16px; height: 72px; padding: 0 26px; border: 3px solid var(--border); border-radius: 10px; }
.fa-pos > * { position: relative; }
.fa-pos > .fa-press { position: absolute; inset: 0; border-radius: 7px; background: var(--green-pale); opacity: 0; }
.fa-plus { display: inline-block; font-size: 40px; line-height: 1; color: var(--green-dark); }
.fa-line { font-size: 32px; color: var(--charcoal); opacity: 0; }

/* ---------- IV. Argus Flow (laptop) ---------- */
.ff { font-family: var(--mono); color: var(--charcoal); }
.ff-head { display: flex; justify-content: space-between; font-size: 24px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ff-date { color: var(--green-dark); }
.ff-date.is-stale { color: var(--stale); }
.ff-basis { font-size: 30px; margin: 10px 0 20px; color: var(--slate); }
.ff-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(6, auto); gap: 10px 48px; }
.ff-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
.ff-name { font-size: 28px; line-height: 1.15; white-space: nowrap; color: var(--slate); }
.ff-tag { font-size: 22px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; }
.ff-track { grid-column: 1 / -1; height: 18px; }
.ff-bar { display: block; height: 100%; border-radius: 3px; background: var(--border); transform-origin: 0 50%; transform: scaleX(0.5); }
.ff-tint { display: block; height: 100%; border-radius: inherit; opacity: 0; }
.ff-row.is-into .ff-tint { background: var(--green-dark); }
.ff-row.is-into .ff-tag { color: var(--green-dark); }
.ff-row.is-out .ff-tint { background: var(--muted); }
.ff-row.is-out .ff-tag { color: var(--muted); }

/* ---------- compact laptop, under 900px (GO 2) ----------
   Only the useful panel of the view: no top bar, no sidebar, no view head.
   The canvas is 480 x 360 on a 4:3 screen (scaled 0.658 at 390), so every
   size below is at least 17 canvas px = 11.2 CSS px. film-kit.js
   compactLaptop() switches data-fit and .dc-compact on the same query. */
@media (max-width: 899px) {
  .film-host .device-laptop .device-screen { aspect-ratio: 4 / 3; }
}
.dc.dc-compact { width: 480px; height: 360px; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.dc-compact .dc-top,
.dc-compact .dc-side,
.dc-compact .dc-head { display: none; }
.dc-compact .dc-main { padding: 14px; }
.dc-compact .film-pointer { width: 26px; height: 26px; }

.dc-compact .fa-id { gap: 12px; margin-bottom: 8px; }
.dc-compact .fa-ticker { font-size: 36px; }
.dc-compact .fa-sector { font-size: 17px; }
.dc-compact .fa-date { font-size: 17px; letter-spacing: 0.04em; }
.dc-compact .fa-label { font-size: 17px; letter-spacing: 0; }
.dc-compact .fa-pillar { grid-template-columns: 96px minmax(0, 1fr) 50px; gap: 10px; height: 28px; }
.dc-compact .fa-track { height: 10px; border-radius: 2px; }
.dc-compact .fa-val { font-size: 18px; }
.dc-compact .fa-comp { gap: 14px; margin-top: 8px; padding-top: 8px; border-top-width: 2px; }
.dc-compact .fa-odo { font-size: 44px; }
.dc-compact .fa-badge { font-size: 17px; padding: 3px 10px; border-radius: 4px; }
.dc-compact .fa-pos { flex-wrap: wrap; height: auto; gap: 2px 10px; margin-top: 8px; padding: 6px 10px; border-width: 2px; border-radius: 6px; }
.dc-compact .fa-pos > .fa-press { border-radius: 4px; }
.dc-compact .fa-plus { font-size: 22px; }
.dc-compact .fa-line { flex-basis: 100%; font-size: 17px; }

.dc-compact .ff-head { font-size: 17px; letter-spacing: 0.04em; }
.dc-compact .ff-basis { font-size: 17px; margin: 4px 0 10px; }
.dc-compact .ff-grid { gap: 6px 12px; }
.dc-compact .ff-row { row-gap: 3px; }
.dc-compact .ff-name { font-size: 17px; letter-spacing: -0.02em; }
.dc-compact .ff-tag { font-size: 17px; letter-spacing: 0.04em; }
.dc-compact .ff-track { height: 7px; }

/* ---------- the phone films (II., VI.) ----------
   A 320px canvas on a 286px screen (0.89 at 390 and at 1440), so 13 canvas
   px is the smallest size: 11.6 CSS px. */
.film-host .device-phone { width: min(300px, 78vw); margin: 0 auto; }
.film-col.scene-on .film-payoff .badge { font-size: 0.62em; vertical-align: 0.25em; }

/* ---------- II. Equity Scanner (phone) ---------- */
.fs { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--off-white); font-family: var(--sans); color: var(--charcoal); }
.fs-top { display: flex; align-items: baseline; justify-content: space-between; padding: 26px 18px 12px; background: var(--panel); border-bottom: var(--hairline); }
.fs-top b { font-size: 18px; font-weight: var(--fw-semibold); }
.fs-sample { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fs-feed { padding: 12px 12px 0; }
.fs-post { position: relative; padding: 12px 14px 14px; margin-bottom: 10px; background: var(--panel); border: var(--hairline); border-radius: 12px; }
.fs-post > * { position: relative; }
.fs-post > .fs-hl { position: absolute; inset: -1px; border: 2px solid var(--green-dark); border-radius: 12px; background: color-mix(in srgb, var(--green-pale) 45%, var(--panel)); opacity: 0; }
.fs-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fs-av { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--border); font-family: var(--mono); font-size: 13px; color: var(--slate); }
.fs-who { font-family: var(--mono); font-size: 13px; color: var(--slate); }
.fs-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fs-tag { font-family: var(--mono); font-size: 14px; font-weight: var(--fw-semibold); color: var(--green-dark); }
.fs-sk { display: block; flex: 1 1 60%; height: 9px; border-radius: 5px; background: var(--border); }
.fs-sk.is-short { flex: 0 0 55%; }
.fs-count { padding: 10px 16px 0; font-family: var(--mono); font-size: 14px; color: var(--charcoal); opacity: 0; }
.fs-alert { position: absolute; left: 10px; right: 10px; bottom: 14px; padding: 14px 16px; background: var(--panel); border: var(--hairline); border-radius: 14px; font-family: var(--mono); font-size: 13px; transform: translateY(105%); }
.fs-alert-tag { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; margin-bottom: 10px; border-bottom: var(--hairline); }
.fs-stamp { color: var(--green-dark); }
.fs-stamp.is-stale { color: var(--stale); }
.fs-ticker { font-size: 24px; font-weight: 600; line-height: 1; margin-bottom: 4px; }
.fs-name { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.fs-line { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: var(--hairline); color: var(--muted); }
.fs-line:last-child { border-bottom: none; }
.fs-line span:last-child:not(.badge) { color: var(--charcoal); }
.fs-line .badge { font-size: 13px; }

/* ---------- VI. Pentagon Pizza (phone) ---------- */
.fp { height: 100%; display: flex; flex-direction: column; background: var(--off-white); font-family: var(--sans); color: var(--charcoal); }
.fp-top { padding: 28px 20px 16px; background: var(--panel); border-bottom: var(--hairline); }
.fp-meta, .fp-stamp { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fp-top b { display: block; font-size: 22px; font-weight: var(--fw-semibold); margin: 4px 0 8px; }
.fp-stamp { color: var(--green-dark); }
.fp-stamp.is-stale { color: var(--stale); }
.fp-dial { padding: 26px 8px 0; }
.fp-dial svg { display: block; width: 100%; height: auto; }
.fp-seg { fill: var(--border); }
.fp-seg.is-on { fill: var(--green-dark); opacity: 0; }
.fp-dial text { font-family: var(--mono); font-size: 15px; text-anchor: middle; fill: var(--slate); }
.fp-needle { transform-box: view-box; transform-origin: 160px 150px; transform: rotate(-90deg); }
.fp-needle path, .fp-needle circle { fill: var(--charcoal); }
.fp-level { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 6px 0 22px; opacity: 0; }
.fp-dc { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; color: var(--muted); }
.fp-n { font-family: var(--mono); font-size: 52px; font-weight: var(--fw-medium); line-height: 1; }
.fp-level .badge { font-size: 13px; }
.fp-rows { margin: 0 16px; padding: 4px 16px; background: var(--panel); border: var(--hairline); border-radius: 12px; }
.fp-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: var(--hairline); font-size: 14px; color: var(--slate); }
.fp-row:last-child { border-bottom: none; }
.fp-v { font-family: var(--mono); font-size: 22px; color: var(--charcoal); opacity: 0; }

/* ---------- V. Argus Credit (laptop) ---------- */
.fc { position: relative; font-family: var(--mono); color: var(--charcoal); }
.fc-sample { padding: 8px 18px; margin-bottom: 16px; border: 3px dashed var(--border); border-radius: 8px; font-size: 24px; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; color: var(--stale); }
.fc-ctl { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 16px; }
.fc-field { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.fc-k { font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fc-box { padding: 10px 18px; border: 3px solid var(--border); border-radius: 8px; font-size: 26px; color: var(--slate); background: var(--panel); }
.fc-btn { position: relative; padding: 10px 28px; border-radius: 8px; background: var(--green-dark); color: var(--white); font-family: var(--sans); font-size: 26px; font-weight: var(--fw-semibold); }
.fc-btn > span { position: relative; }
.fc-btn > .fc-press { position: absolute; inset: 0; border-radius: inherit; background: var(--charcoal); opacity: 0; }
.fc-h { font-family: var(--sans); font-size: 26px; font-weight: var(--fw-semibold); margin-bottom: 4px; }
.fc-table { margin-bottom: 16px; }
.fc-tr { display: grid; grid-template-columns: minmax(0, 1fr) 200px; padding: 6px 0; border-bottom: 2px solid var(--border); font-size: 28px; }
.fc-th { font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fc-tr > span:last-child { text-align: right; }
.fc-v { opacity: 0; }
.fc-rep .fc-k { margin-bottom: 8px; opacity: 0; }
.fc-para { font-size: 26px; line-height: 1.4; color: var(--slate); }
.wp { position: relative; }
.wp-line { position: relative; white-space: pre; }
.wp-mask { position: absolute; top: 0; bottom: 0; left: 0; right: -4px; background: var(--off-white); transform-origin: 100% 50%; }

.dc-compact .fc-sample { padding: 4px 10px; margin-bottom: 8px; border-width: 2px; font-size: 17px; letter-spacing: 0.1em; }
.dc-compact .fc-ctl { gap: 10px; margin-bottom: 8px; }
.dc-compact .fc-field { flex-direction: row; align-items: center; gap: 8px; }
.dc-compact .fc-k { font-size: 17px; letter-spacing: 0.06em; }
.dc-compact .fc-box { flex: 1; padding: 3px 8px; border-width: 2px; font-size: 17px; }
.dc-compact .fc-btn { padding: 4px 12px; font-size: 17px; border-radius: 5px; }
.dc-compact .fc-h { font-size: 18px; margin-bottom: 2px; }
.dc-compact .fc-table { margin-bottom: 8px; }
.dc-compact .fc-tr { grid-template-columns: minmax(0, 1fr) 90px; padding: 3px 0; font-size: 17px; border-bottom-width: 1px; }
.dc-compact .fc-th { display: none; }   /* two rows read without a header; the room goes to the report */
.dc-compact .fc-rep .fc-k { margin-bottom: 2px; }
.dc-compact .fc-para { font-size: 17px; line-height: 1.3; }

/* ===== UNDER 900px THE SECTIONS ARE OPEN (sprint landing-next-4, E) =====
   The folds of landing-next-2 are gone (product decision, 2026-10-18): every
   product section is open, a film mounts when its section comes near
   (scene.js whenNear). An off-screen section is not rendered (it has been
   once, so `auto` keeps its real height and nothing moves); landing-next-2
   measured the hero at 4.08 ms a frame without this, under 4 with it. */
@media (max-width: 899px) {
  section.product { content-visibility: auto; contain-intrinsic-size: auto 1400px; }
}

/* ===== VII. to X. (sprint landing-next-3) =====
   Same rules as II. to VI.: canvas px, 22 or more on the 1280 laptop (about
   10 to 12 CSS px at 1440), 17 or more on the 480 compact panel (11.2 CSS px
   at 390), 13 or more on VIII's 220 phone (0.91 scale: 11.8 CSS px). */

/* ---------- VII. Golden Mine (laptop) ---------- */
.gm { position: relative; font-family: var(--mono); color: var(--charcoal); }
.gm-search { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.gm-k { font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.gm-field { position: relative; flex: 1; display: flex; align-items: center; height: 48px; padding: 0 18px; border: 3px solid var(--border); border-radius: 8px; background: var(--panel); font-size: 26px; }
.gm-field > * { position: relative; }
.gm-field > .gm-press { position: absolute; inset: 0; border-radius: 5px; background: var(--green-pale); opacity: 0; }
.gm-hint { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.gm-id { display: flex; align-items: baseline; gap: 22px; margin-bottom: 8px; }
.gm-name { font-family: var(--sans); font-size: 34px; font-weight: var(--fw-semibold); letter-spacing: -0.01em; }
.gm-tk { font-size: 24px; color: var(--slate); }
.gm-sample { margin-left: auto; padding: 4px 14px; border: 3px dashed var(--border); border-radius: 8px; font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stale); }
.gm-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 10px 20px; }
.gm-flow { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.gm-b { padding: 8px 16px; background: var(--panel); border: 2px solid var(--border); border-radius: 8px; }
/* The wide laptop shows each block's title as the dashboard's h2 reads; its
   meta line (Key facts, Argus AM...) shows on the compact panel only, where
   a block has the panel to itself. */
.gm-meta { display: none; font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-dark); }
.gm-h { font-family: var(--sans); font-size: 24px; font-weight: var(--fw-semibold); }
.gm-flow > .gm-b { display: flex; align-items: baseline; gap: 18px; white-space: nowrap; }
.gm-plot { position: relative; height: 100px; margin-top: 8px; }
.gm-plot svg { display: block; width: 100%; height: 100%; }
.gm-plot polyline { stroke: var(--green-dark); stroke-width: 2.5; stroke-linejoin: round; }
.gm-wipe { position: absolute; top: 0; bottom: 0; left: 0; right: -4px; background: var(--panel); transform-origin: 100% 50%; }
.gm-t { display: grid; align-items: center; gap: 0 14px; margin-top: 4px; font-size: 24px; line-height: 30px; }
.gm-t4 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.9fr) 72px; }
.gm-t2 { grid-template-columns: minmax(0, 1fr) auto; }
.gm-t > span { white-space: nowrap; opacity: 0; }
.gm-t > .gm-th { font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); opacity: 1; }
.gm-v { text-align: right; font-variant-numeric: tabular-nums; }
.gm-src { color: var(--slate); }
.gm-date { display: block; height: 14px; border-radius: 7px; background: var(--border); }
.gm-p { display: grid; grid-template-columns: 170px minmax(0, 1fr) 46px; align-items: center; gap: 14px; height: 28px; font-size: 24px; }
.gm-track { height: 14px; background: var(--border); border-radius: 3px; overflow: hidden; }
.gm-fill { display: block; height: 100%; background: var(--green-dark); transform-origin: 0 50%; transform: scaleX(0); }
.gm-p .gm-v { opacity: 0; }
.gm-line { font-size: 24px; color: var(--slate); }

.dc-compact .gm-search { gap: 10px; margin-bottom: 8px; }
.dc-compact .gm-k { font-size: 17px; letter-spacing: 0.06em; }
.dc-compact .gm-field { height: 34px; padding: 0 10px; border-width: 2px; font-size: 18px; }
.dc-compact .gm-hint { left: 10px; }
.dc-compact .gm-id { gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.dc-compact .gm-name { font-size: 22px; }
.dc-compact .gm-tk { display: none; }   /* the ticker is in the field above */
.dc-compact .gm-sample { padding: 2px 8px; border-width: 2px; font-size: 17px; letter-spacing: 0.06em; }
/* Under 900px one block at a time fills the panel (film-mine.js SLOT). */
.dc-compact .gm-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.dc-compact .gm-grid > * { grid-area: 1 / 1; }
.dc-compact .gm-flow { grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; }
.dc-compact .gm-b { padding: 8px 12px; border-width: 2px; }
.dc-compact .gm-meta { display: block; font-size: 17px; letter-spacing: 0.06em; }
.dc-compact .gm-flow > .gm-b { display: block; }
.dc-compact .gm-h { display: block; font-size: 18px; }
.dc-compact .gm-plot { height: 150px; }
.dc-compact .gm-t { font-size: 17px; line-height: 28px; gap: 0 10px; }
.dc-compact .gm-t > .gm-th { font-size: 17px; letter-spacing: 0.02em; }
.dc-compact .gm-t4 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.9fr) 44px; }
.dc-compact .gm-date { height: 10px; }
.dc-compact .gm-p { grid-template-columns: 104px minmax(0, 1fr) 30px; gap: 10px; height: 30px; font-size: 17px; }
.dc-compact .gm-track { height: 10px; }
.dc-compact .gm-line { font-size: 17px; }

/* ---------- VIII. Argus Macro (laptop, then phone) ----------
   One host, two devices on the same spot: the laptop in flow and centred,
   the phone absolutely centred over it at the host's full height. The host's
   aspect leaves the phone at 0.91 of its 220px canvas at both widths. */
.film-col[data-scene-mode="loop"] .film-host.mf-host { position: relative; display: flex; align-items: center; aspect-ratio: 16 / 12; }
.mf-host > .device-laptop { width: 100%; }
.mf-host > .device-phone { position: absolute; top: 0; bottom: 0; left: 0; right: 0; width: fit-content; height: 100%; margin: 0 auto; display: flex; }
.mf-host > .device-phone .device-screen { height: 100%; width: auto; }
@media (max-width: 899px) {
  .film-col[data-scene-mode="loop"] .film-host.mf-host { aspect-ratio: 4 / 5; }
}
.mf { display: grid; grid-template-columns: 500px minmax(0, 1fr); gap: 32px; align-items: center; font-family: var(--mono); color: var(--charcoal); }
.mf-globe { position: relative; width: 500px; height: 500px; }
.mf-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mf-flat { display: none; }
.mf-no-gl .mf-flat { display: block; }
.mf-no-gl .mf-gl { display: none; }
.mf-side { display: flex; flex-direction: column; gap: 18px; }
.mf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mf-chips span { padding: 4px 12px; border: 2px solid var(--border); border-radius: 999px; font-size: 22px; color: var(--slate); }
.mf-chips span.on { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.mf-ey { font-size: 22px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mf-h { font-family: var(--sans); font-size: 40px; font-weight: var(--fw-semibold); }
.mf-cells { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 6px 28px; margin-top: 8px; font-size: 24px; }
.mf-cells span { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.mf-bin { display: inline-block; width: 30px; height: 16px; }
.mf-bin0 { background: var(--map-0); }
.mf-bin1 { background: var(--map-1); }
.mf-bin2 { background: var(--map-2); }
.mf-bin3 { background: var(--map-3); }
.mf-bin4 { background: var(--map-4); }
.mf-bin5 { background: var(--map-5); }
.mf-src { font-size: 22px; line-height: 1.35; color: var(--muted); }
.dc-compact .mf { grid-template-columns: 200px minmax(0, 1fr); gap: 12px; }
.dc-compact .mf-globe { width: 200px; height: 200px; }
.dc-compact .mf-side { gap: 8px; }
.dc-compact .mf-chips,
.dc-compact .mf-head .mf-ey,
.dc-compact .mf-legend > .mf-ey { display: none; }
.dc-compact .mf-h { font-size: 22px; }
.dc-compact .mf-cells { gap: 4px 10px; margin-top: 0; font-size: 17px; }
.dc-compact .mf-bin { width: 18px; height: 12px; }
.dc-compact .mf-cells span { gap: 6px; }
.dc-compact .mf-src { font-size: 17px; line-height: 1.25; }

.mg { position: relative; height: 100%; display: flex; flex-direction: column; gap: 7px; padding: 0 8px 10px; background: var(--off-white); font-family: var(--sans); font-size: 14px; color: var(--charcoal); }
.mg-top { margin: 0 -8px; padding: 22px 8px 8px; background: var(--panel); border-bottom: var(--hairline); font-size: 15px; }
.mg-row { display: flex; align-items: center; gap: 8px; }
.mg-k { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mg-chip { display: inline-block; white-space: nowrap; padding: 2px 9px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 14px; color: var(--slate); background: var(--panel); }
.mg-chip.on { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.mg-chart { position: relative; height: 112px; background: var(--panel); border: var(--hairline); border-radius: 6px; }
.mg-chart svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.mg-wipe { position: absolute; inset: 4px -2px 4px 4px; background: var(--panel); transform-origin: 100% 50%; }
.mf-s1 { stroke: var(--series-cpi); background: var(--series-cpi); }
.mf-s2 { stroke: var(--series-policy); background: var(--series-policy); }
.mg-chart polyline { fill: none; stroke-width: 2; stroke-linejoin: round; }
.mg-legend { display: flex; flex-direction: column; gap: 2px; min-height: 36px; }
.mg-lg { display: flex; align-items: center; gap: 6px; font-size: 14px; opacity: 0; white-space: nowrap; }
.mg-lg i { width: 12px; height: 3px; border-radius: 2px; flex: 0 0 auto; }
.mg-list { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.mg-src { margin-top: auto; font-size: 14px; line-height: 1.3; color: var(--muted); }
.mg .film-pointer { width: 30px; height: 30px; }

/* ---------- IX. Argus chat (phone) ---------- */
.ch { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--off-white); font-family: var(--sans); color: var(--charcoal); }
.ch-top { display: flex; align-items: center; gap: 10px; padding: 28px 16px 12px; background: var(--panel); border-bottom: var(--hairline); font-size: 17px; }
.ch-back { font-size: 26px; line-height: 1; color: var(--green-dark); }
.ch-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--green-dark); }
.ch-sample { align-self: center; padding: 3px 12px; border-radius: 999px; background: var(--panel); border: var(--hairline); font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stale); }
.ch-feed { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px 14px; }
.ch-q { align-self: flex-end; max-width: 82%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--green-dark); color: var(--white); font-size: 16px; line-height: 1.4; }
.ch-slot { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; align-items: start; }
.ch-slot > * { grid-area: 1 / 1; }
.ch-dots { display: flex; gap: 5px; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: var(--hairline); }
.ch-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.ch-a { position: relative; width: 88%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--panel); border: var(--hairline); }
.ch-para { position: relative; font-size: 16px; line-height: 1.4; color: var(--charcoal); }
.ch-para .wp-mask { background: var(--panel); }
.ch-compose { margin: 0 12px 14px; padding: 10px 16px; border-radius: 20px; background: var(--panel); border: var(--hairline); font-size: 15px; color: var(--muted); }

/* ---------- X. Betting Lab (laptop) ---------- */
.fl { position: relative; font-family: var(--mono); color: var(--charcoal); }
.fl-sample { padding: 6px 18px; margin-bottom: 14px; border: 3px dashed var(--border); border-radius: 8px; font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; color: var(--stale); }
.fl-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.fl-book { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 3px solid var(--border); border-radius: 10px; background: var(--panel); }
.fl-book > * { position: relative; }
.fl-book > .fl-hit { position: absolute; inset: 0; border-radius: 7px; background: var(--green-pale); opacity: 0; }
.fl-book b { font-size: 30px; letter-spacing: 0.06em; }
.fl-k { font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fl-sub { font-size: 22px; color: var(--slate); }
.fl-tag { font-size: 22px; color: var(--green-dark); opacity: 0; }
.fl-match { display: flex; align-items: baseline; gap: 22px; margin-bottom: 12px; font-size: 28px; }
.fl-odds { display: grid; gap: 10px; margin-bottom: 14px; }
.fl-row { display: grid; grid-template-columns: 300px minmax(0, 1fr) 90px; align-items: center; gap: 20px; }
.fl-track { height: 22px; }
.fl-bar { display: block; height: 100%; border-radius: 3px; transform-origin: 0 50%; transform: scaleX(0); }
.is-fair .fl-bar { background: var(--green-dark); }
.is-mkt .fl-bar { background: var(--slate); }
.fl-num { font-size: 30px; text-align: right; font-variant-numeric: tabular-nums; opacity: 0; }
.fl-edge { display: flex; align-items: baseline; gap: 12px; font-size: 30px; }
.fl-odo { font-size: 56px; font-weight: var(--fw-medium); letter-spacing: -0.03em; }
.fl-plus,
.fl-pct { font-size: 40px; }
.fl-check { margin-left: 18px; font-size: 24px; color: var(--green-dark); }
.fl-chip { position: absolute; right: 0; bottom: 6px; padding: 8px 18px; border-radius: 8px; background: var(--green-dark); color: var(--white); font-size: 24px; opacity: 0; }
.dc-compact .fl-sample { padding: 3px 8px; margin-bottom: 8px; border-width: 2px; font-size: 17px; letter-spacing: 0.08em; }
.dc-compact .fl-books { gap: 8px; margin-bottom: 8px; }
.dc-compact .fl-book { padding: 6px 8px; border-width: 2px; gap: 0; }
.dc-compact .fl-book b { font-size: 18px; letter-spacing: 0.02em; }
.dc-compact .fl-k { font-size: 17px; letter-spacing: 0.02em; }
.dc-compact .fl-sub { display: none; }
.dc-compact .fl-tag { font-size: 17px; }
.dc-compact .fl-match { gap: 10px; margin-bottom: 6px; font-size: 18px; flex-wrap: wrap; }
.dc-compact .fl-odds { gap: 6px; margin-bottom: 6px; }
.dc-compact .fl-row { grid-template-columns: 178px minmax(0, 1fr) 48px; gap: 8px; }
.dc-compact .fl-row .fl-k { white-space: nowrap; }
.dc-compact .fl-track { height: 12px; }
.dc-compact .fl-num { font-size: 18px; }
.dc-compact .fl-edge { gap: 6px; font-size: 18px; flex-wrap: wrap; }
.dc-compact .fl-odo { font-size: 32px; }
.dc-compact .fl-plus,
.dc-compact .fl-pct { font-size: 24px; }
.dc-compact .fl-check { margin-left: 4px; font-size: 17px; }
.dc-compact .fl-chip { padding: 3px 10px; border-radius: 5px; font-size: 17px; }

/* ---------- the static cards of VIII and IX ---------- */
.mf-card-globe-box { display: none; margin: 4px auto 14px; max-width: 240px; }
.mf-card-globe-box.is-drawn { display: block; }
.mf-card-globe { display: block; width: 100%; aspect-ratio: 1; }
.mf-card-src { margin-top: 10px; font-size: 10.5px; color: var(--muted); }
.tg-mock .chat-q {
  margin: 0 0 12px auto;
  max-width: 85%;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 12px 12px 3px 12px;
  background: var(--green-dark);
  color: var(--white);
  font-family: var(--sans);
  font-size: var(--fs-small);
  line-height: 1.4;
}

/* ---------- the dashboard section's stills (sprint landing-next-3, C) ----------
   dash-stills.js: the compact panel at every width, 440 x 330, its head shown;
   17 px or more (11 CSS px or more in a card at 390 and at 1440). */
.dash-frame .device-laptop .device-screen { aspect-ratio: 4 / 3; }
.dash-frame .device-laptop::after { margin: 0 -3%; }
.dc.dc-still { width: 440px; height: 330px; }
/* The head keeps the view's number and name (I. Overview...); its title
   and sub-line would leave the panel too short. */
.dc-still .dc-head { display: block; padding-bottom: 6px; margin-bottom: 10px; border-bottom-width: 2px; }
.dc-still .dc-meta { font-size: 17px; letter-spacing: 0.04em; margin-bottom: 0; }
.dc-still .dc-h1,
.dc-still .dc-sub { display: none; }
.dc-still .mf { grid-template-columns: 168px minmax(0, 1fr); gap: 12px; align-items: start; }
.dc-still .mf-globe { width: 168px; height: 168px; margin-top: 24px; }
.dc-still .mf-side { gap: 6px; }
.dc-still .mf-h { font-size: 20px; }
.dc-still .mf-cells { gap: 3px 10px; }
.dc-still .mf-src { line-height: 1.2; }
.dc-still .gm-search { display: none; }
.dc-still .gm-grid > :not(.gm-pillars) { display: none; }
.ov { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); color: var(--charcoal); }
.ov-b { padding: 6px 12px; background: var(--panel); border: 2px solid var(--border); border-radius: 8px; }
.ov-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ov-h { font-family: var(--sans); font-size: 19px; font-weight: var(--fw-semibold); }
.ov-stamp { font-size: 17px; color: var(--muted); white-space: nowrap; }
.ov-v { font-size: 18px; }
.ov-sample { font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stale); }
