@font-face { font-family: "NMJost"; font-display: swap; font-weight: 400; src: url(/fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "NMJost"; font-display: swap; font-weight: 500; src: url(/fonts/jost-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "NMJost"; font-display: swap; font-weight: 700; src: url(/fonts/jost-latin-700-normal.woff2) format("woff2"); }
/* Brand look of the client report. The first screen is a 16:9 TV board sized in container units, so it fills any wide screen. */
.nmd {
  --nm-bg: #E6E1D2; --nm-card: #FFFFFF; --nm-soft: #ECEDED; --nm-pill: #F0ECDD;
  --nm-gold: #A48A39; --nm-title: #800020; --nm-ink: #1F1F1F; --nm-ink-2: #595959; --nm-body: #404040; --nm-line: #E2D9BE;
  --nm-pos: #548235; --nm-neu: #B89444; --nm-neg: #C00000; --nm-track: #E6E6E6;
  --nm-font: "NMJost", "Futura", "Avenir Next", "Segoe UI", sans-serif;
  container-type: inline-size;
  color-scheme: light; background: var(--nm-bg); color: var(--nm-ink); font-family: var(--nm-font);
  border-radius: 16px; display: flex; flex-direction: column;
}
.nmd * { box-sizing: border-box; }

/* ---------- TV board ---------- */
.tv { aspect-ratio: 16 / 9; width: 100%; padding: 1.6cqw 2cqw; display: grid; grid-template-rows: auto 1fr; gap: 1cqw; overflow: hidden; }
.tv-top { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; border-bottom: 1px solid #D6CBA6; padding-bottom: .8cqw; }
.tv-logo { height: 3.3cqw; width: auto; display: block; }
.tv-period { display: flex; align-items: baseline; gap: 1.2cqw; }
.tv-eyebrow { font-size: .85cqw; letter-spacing: .14em; color: var(--nm-ink-2); font-weight: 500; }
.tv-date { font-size: 1.6cqw; font-weight: 700; color: var(--nm-gold); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tv-upd { font-size: .8cqw; color: var(--nm-ink-2); font-variant-numeric: tabular-nums; }
.tv-h { margin: 0; font-size: 1.75cqw; font-weight: 700; color: var(--nm-gold); text-transform: uppercase; line-height: 1.1; }
.tv-h span { font-weight: 400; }
.tv-row1 { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 1cqw; min-height: 0; }
.tv-card { background: var(--nm-card); border-radius: .8cqw; padding: 1.1cqw 1.3cqw; display: flex; flex-direction: column; gap: .7cqw; min-width: 0; min-height: 0; }
.tv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6cqw; }
.tv-kpi { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15cqw; }
.tv-kpi img { width: 2.2cqw; height: 2.2cqw; }
.tv-kpi-num { font-size: 3.1cqw; color: var(--nm-gold); line-height: 1.05; font-variant-numeric: tabular-nums; }
.tv-kpi-label { font-size: .9cqw; }
.tv-sub-h { margin: 0; font-size: 1cqw; font-weight: 700; letter-spacing: .03em; }
.tv-bar { display: flex; height: 1.1cqw; width: 100%; background: var(--nm-track); }
.tv-bar span { display: block; height: 100%; }
.tv-split { display: grid; grid-template-columns: repeat(3, 1fr); }
.tv-split div { display: flex; flex-direction: column; }
.tv-split small { font-size: .75cqw; font-weight: 700; letter-spacing: .06em; }
.tv-split b { font-size: 1.9cqw; font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tv-narr { margin: 0; font-size: 1.15cqw; line-height: 1.55; color: var(--nm-body); }
.tv-tag { margin-top: auto; align-self: flex-end; font-size: .95cqw; color: var(--nm-gold); letter-spacing: .04em; }
.tv-net { display: flex; align-items: baseline; gap: .8cqw; }
.tv-net b { font-size: 3.6cqw; font-weight: 400; color: var(--nm-gold); line-height: 1; font-variant-numeric: tabular-nums; }
.tv-net span { font-size: .95cqw; color: var(--nm-ink-2); font-variant-numeric: tabular-nums; }
.tv-net .tv-chg { font-weight: 700; }
.tv-spark { flex: 1; min-height: 5cqw; position: relative; }
.tv-spark-cap { font-size: .75cqw; color: var(--nm-ink-2); margin: 0; }
.tv-row2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw; min-height: 0; }
.tv-sent { background: var(--nm-soft); border-radius: .8cqw; padding: 1cqw 1.2cqw; display: flex; flex-direction: column; gap: .7cqw; min-width: 0; min-height: 0; overflow: hidden; }
.tv-sent-head { display: grid; grid-template-columns: 6.2cqw 1fr; gap: 1cqw; align-items: center; }
.tv-donut { width: 6.2cqw; height: 6.2cqw; }
.tv-sent-title { display: flex; flex-direction: column; gap: .25cqw; min-width: 0; }
.tv-sent-title img { width: 1.6cqw; height: 1.6cqw; }
.tv-sent-title h3 { margin: 0; font-size: 1.05cqw; font-weight: 700; letter-spacing: .04em; line-height: 1.2; }
.tv-sent-title span { font-size: .9cqw; color: var(--nm-ink-2); font-variant-numeric: tabular-nums; }
.tv-bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .65cqw; font-size: 1.05cqw; line-height: 1.45; color: var(--nm-body); }
.tv-bullets li { padding-left: .9cqw; position: relative; }
.tv-bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: .32cqw; height: .32cqw; border-radius: 50%; background: var(--nm-gold); }
.nmd .tv-bullets b { font-weight: 700; color: var(--nm-ink); }
.nmd-pos { color: var(--nm-pos); }
.nmd-neu { color: var(--nm-neu); }
.nmd-neg { color: var(--nm-neg); }
.nmd .nmd-up { color: var(--nm-pos); }
.nmd .nmd-down { color: var(--nm-neg); }

/* ---------- below the board: top drivers and reputation ---------- */
.more { padding: 2cqw; display: flex; flex-direction: column; gap: 2.4cqw; border-top: 1px solid var(--nm-line); }
.nmd-h { margin: 0; font-size: clamp(22px, 2.2cqw, 40px); font-weight: 700; color: var(--nm-gold); text-transform: uppercase; line-height: 1.1; }
.nmd-h span { font-weight: 400; }
.nmd-drivers { display: flex; flex-direction: column; }
.nmd-driver { display: grid; grid-template-columns: minmax(64px, 120px) 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--nm-line); }
.nmd-driver:last-child { border-bottom: 1px solid var(--nm-line); }
.nmd-dnum { font-size: clamp(44px, 5cqw, 72px); color: var(--nm-gold); line-height: 1; border-right: 1px solid var(--nm-gold); padding-right: 16px; font-variant-numeric: tabular-nums; }
.nmd-dbody { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nmd-dmeta { font-size: 13px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.nmd-dtitle { margin: 0; font-size: 19px; font-weight: 700; color: var(--nm-gold); text-transform: uppercase; }
.nmd-dtext { margin: 0; font-size: 15px; line-height: 1.6; color: var(--nm-body); max-width: 100ch; }
.nmd-block { display: flex; flex-direction: column; }
.nmd-pill { display: flex; align-items: center; gap: 12px; background: var(--nm-pill); border-radius: 999px; padding: 4px 22px 4px 4px; align-self: flex-start; max-width: 100%; position: relative; z-index: 1; margin-bottom: -10px; }
.nmd-pill i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: var(--nm-gold); color: #fff; display: grid; place-items: center; font-size: 18px; flex: none; }
.nmd-pill span { font-size: 17px; font-weight: 500; }
.nmd-pill .nmd-caps { text-transform: uppercase; }
.nmd-panel { background: var(--nm-card); border-radius: 14px; padding: 28px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.nmd-intro { margin: 0; font-size: 15px; }
.nmd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.nmd-rcard { padding: 4px 16px 8px; border-left: 1px solid var(--nm-line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nmd-rcard:first-child { border-left: 0; padding-left: 0; }
.nmd-rcard h4 { margin: 0; font-size: 15px; font-weight: 700; color: var(--nm-gold); }
.nmd-rcard p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--nm-body); }
.nmd-watch { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--nm-body); }
.nmd-watch li { padding-left: 24px; position: relative; }
.nmd-watch li::before { content: ""; position: absolute; left: 0; top: .35em; width: 11px; height: 11px; border-radius: 50%; background: var(--nm-pill); }
.nmd .nmd-watch b { color: var(--nm-gold); font-weight: 700; }
.nmd-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 20px; align-items: center; }
.nmd-boxes { display: flex; align-items: center; gap: 14px; background: var(--nm-pill); border-radius: 12px; padding: 12px; }
.nmd-box { flex: 1; background: var(--nm-card); border-radius: 10px; padding: 8px 14px; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.nmd-box small { font-size: 12px; letter-spacing: .04em; }
.nmd-box b { font-size: 34px; font-weight: 400; color: var(--nm-gold); font-variant-numeric: tabular-nums; line-height: 1.1; }
.nmd-arrow { color: var(--nm-gold); font-size: 22px; flex: none; }
.nmd-shift { border-left: 1px solid var(--nm-gold); padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.nmd-shift strong { color: var(--nm-gold); font-size: 13px; font-weight: 700; }
.nmd-shift p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--nm-body); }
.nmd-fail { display: flex; align-items: center; gap: 6px; color: var(--nm-ink-2); font-size: 12px; }
.nmd-fail::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: var(--nm-neg); }
.nmd [data-dash-source-state=empty] { color: transparent; }

/* ---------- single-screen board: one grid, everything visible at once ---------- */
.tv-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto 1.15fr 1fr; gap: 1cqw; min-height: 0; }
.tv-grid > .tv-card { overflow: hidden; gap: .45cqw; padding: .9cqw 1.3cqw; }
/* Cards carry their own outline and shadow, so they stand out even on screens that wash out the white-on-cream contrast. */
.tv-grid > .tv-card { border: max(1px, .08cqw) solid #D6CBA6; box-shadow: 0 .2cqw .9cqw rgba(60, 50, 20, .12); }
.g-topics, .g-feed { grid-column: span 2; }
.tv-label { margin: 0; font-size: .9cqw; font-weight: 700; letter-spacing: .08em; color: var(--nm-title); text-transform: uppercase; display: flex; align-items: center; gap: .6cqw; }
.tv-label img { width: 1.5cqw; height: 1.5cqw; }
@keyframes nmIn { from { opacity: 0; transform: translateY(-.4cqw); } to { opacity: 1; transform: none; } }

/* KPI strip */
.tv-grid > .tv-k { padding: .7cqw 1.4cqw; gap: 0; }
.tv-k-num { font-size: 3.9cqw; font-weight: 400; color: var(--nm-gold); line-height: 1.08; font-variant-numeric: tabular-nums; }
.tv-k-sub, .tv-kpi-chg { font-size: .9cqw; min-height: 1.3cqw; color: var(--nm-ink-2); font-variant-numeric: tabular-nums; }
.tv-kpi-chg { font-weight: 700; }
.tv-kpi-chg[data-empty] { visibility: hidden; }
.tv-k-sub .tv-chg { font-weight: 700; }

/* sentiment */
.tv-sentwrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 9.5cqw 1fr; gap: 1.3cqw; align-items: center; }
.tv-sdonut { width: 9.5cqw; height: 9.5cqw; }
.tv-slegend { display: flex; flex-direction: column; gap: .7cqw; min-width: 0; }
.tv-sl { display: grid; grid-template-columns: auto 1fr; column-gap: .6cqw; align-items: baseline; }
.tv-sl b { font-size: 1.9cqw; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.tv-sl small { font-size: .75cqw; font-weight: 700; letter-spacing: .06em; }
.tv-sl span { grid-column: 1 / -1; font-size: .8cqw; color: var(--nm-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* top topics */
.tv-topic-list { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-around; }
.tv-topic { display: grid; grid-template-columns: 4.2cqw 1fr; gap: 1.1cqw; align-items: center; padding: .2cqw 0; border-bottom: 1px solid var(--nm-line); }
.tv-topic:last-child { border-bottom: 0; }
.tv-topic-rank { font-size: 2.8cqw; color: var(--nm-gold); line-height: 1; font-variant-numeric: tabular-nums; border-right: 1px solid var(--nm-gold); }
.tv-topic-body { min-width: 0; display: flex; flex-direction: column; gap: .1cqw; }
.tv-topic-meta { font-size: .8cqw; letter-spacing: .06em; color: var(--nm-ink-2); font-variant-numeric: tabular-nums; }
.tv-topic-meta b { color: var(--nm-gold); font-size: 1.05cqw; font-weight: 700; }
.tv-topic-title { margin: 0; font-size: 1.15cqw; font-weight: 700; color: var(--nm-gold); text-transform: uppercase; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-topic-text { margin: 0; font-size: .92cqw; line-height: 1.35; color: var(--nm-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* trend card: charts take turns inside the card */
.tv-panes { flex: 1; min-height: 0; position: relative; }
.tv-pane { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .5cqw; opacity: 0; transition: opacity .7s ease; }
.tv-pane.is-active { opacity: 1; }
.tv-chart { flex: 1; min-height: 0; }
.tv-def { margin: 0; font-size: .78cqw; line-height: 1.3; color: var(--nm-ink-2); }

/* posts feed: rows take turns when they do not all fit */
.tv-feed, .tv-prlist { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; }
/* The board shows four posts (two by two) and two press items at a time; --cap is read by fit() in app.js. */
.tv-feed { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.8cqw; align-content: start; --cap: 4; }
.tv-prlist { --cap: 2; }
.tv-fi { flex: none; display: grid; grid-template-columns: auto 1fr; gap: .8cqw; align-items: center; padding: .4cqw 0; border-bottom: 1px solid var(--nm-line); text-decoration: none; color: inherit; animation: nmIn .6s ease; }
.tv-fi-tone { width: .35cqw; align-self: stretch; border-radius: 1cqw; background: var(--nm-neu); }
.tv-fi.tone-positive .tv-fi-tone { background: var(--nm-pos); }
.tv-fi.tone-negative .tv-fi-tone { background: var(--nm-neg); }
.tv-fi-body { min-width: 0; display: flex; flex-direction: column; gap: .1cqw; }
.tv-fi-head { display: flex; align-items: baseline; gap: .7cqw; min-width: 0; line-height: 1.25; }
.tv-fi-author { font-size: 1cqw; font-weight: 700; color: var(--nm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-fi-tag { font-size: .7cqw; font-weight: 700; letter-spacing: .08em; flex: none; }
.tv-fi-text { margin: 0; font-size: 1cqw; line-height: 1.35; color: var(--nm-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-fi-foot { display: flex; align-items: baseline; gap: .8cqw; font-size: .75cqw; color: var(--nm-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; line-height: 1.2; }
.tv-fi-foot b { font-size: .95cqw; font-weight: 700; color: var(--nm-gold); }
.tv-fi-foot i { font-style: normal; color: var(--nm-gold); margin-left: auto; overflow: hidden; text-overflow: ellipsis; }

/* press coverage */
.tv-pr { flex: none; display: grid; grid-template-columns: 2.8cqw 1fr; gap: .9cqw; align-items: center; padding: .55cqw 0; border-bottom: 1px solid var(--nm-line); text-decoration: none; color: inherit; animation: nmIn .6s ease; }
.tv-pr-logo { width: 2.8cqw; height: 2.8cqw; min-width: 24px; min-height: 24px; border-radius: .5cqw; object-fit: contain; background: var(--nm-soft); padding: .3cqw; }
.tv-pr-mono { display: grid; place-items: center; font-size: 1.4cqw; font-weight: 700; color: var(--nm-gold); padding: 0; }
.tv-pr-body { min-width: 0; display: flex; flex-direction: column; gap: .1cqw; }
.tv-pr-outlet { font-size: .85cqw; font-weight: 700; color: var(--nm-gold); letter-spacing: .05em; text-transform: uppercase; display: flex; justify-content: space-between; gap: .6cqw; white-space: nowrap; }
.tv-pr-outlet em { font-style: normal; font-weight: 500; color: var(--nm-ink-2); letter-spacing: 0; text-transform: none; }
.tv-pr-head { margin: 0; font-size: 1cqw; line-height: 1.35; color: var(--nm-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tv-pr.is-note { grid-template-columns: 1fr; }

/* daily summary */
.tv-sum-text { margin: 0; flex: 1; min-height: 0; overflow: hidden; font-size: 1.05cqw; line-height: 1.45; color: var(--nm-body); }

/* ---------- header: centered title, live clock, fullscreen, powered by ---------- */
.tv-top { position: relative; }
.tv-title { position: absolute; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .1cqw; text-align: center; pointer-events: none; }
.tv-title .tv-eyebrow { font-size: 1.05cqw; letter-spacing: .18em; color: var(--nm-ink-2); font-weight: 600; }
.tv-title .tv-date { font-size: 1.1cqw; font-weight: 700; color: var(--nm-gold); letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.tv-live { display: flex; flex-direction: column; align-items: flex-end; gap: .2cqw; margin-left: auto; }
.tv-live-row { display: flex; align-items: center; gap: .9cqw; }
.tv-live-dot { width: .7cqw; height: .7cqw; min-width: 8px; min-height: 8px; border-radius: 50%; background: #2EA043; box-shadow: 0 0 0 0 rgba(46,160,67,.55); animation: nmPulse 1.8s ease-out infinite; }
@keyframes nmPulse { 0% { box-shadow: 0 0 0 0 rgba(46,160,67,.55); } 70% { box-shadow: 0 0 0 .8cqw rgba(46,160,67,0); } 100% { box-shadow: 0 0 0 0 rgba(46,160,67,0); } }
@media (prefers-reduced-motion: reduce) { .tv-live-dot { animation: none; } }
.tv-clock { font-size: 1.4cqw; font-weight: 600; color: var(--nm-ink-2); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.tv-tz { font-size: .72cqw; font-weight: 500; color: var(--nm-ink-2); letter-spacing: .18em; }
.tv-fs { display: inline-flex; align-items: center; justify-content: center; width: 2.4cqw; height: 2.4cqw; min-width: 28px; min-height: 28px; padding: 0; border: 1px solid var(--nm-line); border-radius: 8px; background: var(--nm-card); color: var(--nm-gold); cursor: pointer; }
.tv-fs:hover { background: var(--nm-pill); }
.tv-fs svg { width: 55%; height: 55%; }
.tv-powered { font-size: .8cqw; color: var(--nm-ink-2); letter-spacing: .02em; }
.tv-powered b { color: #F05D2A; font-weight: 700; }
.tv-fs .fs-close { display: none; }
/* Full-screen = JS-toggled .fs class (works even if the browser blocks real
   fullscreen); real Fullscreen API also adds it via fullscreenchange. */
#report.fs { position: fixed; inset: 0; width: 100vw; height: 100vh; background: var(--nm-bg); overflow: hidden; display: flex; align-items: center; justify-content: center; z-index: 9999; }
#report.fs .tv { width: min(100vw, calc(100vh * 16 / 9)); height: min(100vh, calc(100vw * 9 / 16)); }
#report.fs .more { display: none; }
#report.fs .tv-fs .fs-open { display: none; }
#report.fs .tv-fs .fs-close { display: block; }
#report:fullscreen::backdrop { background: var(--nm-bg); }
#report:-webkit-full-screen::backdrop { background: var(--nm-bg); }

/* ---------- narrow screens: the board stacks ---------- */
@container (max-width: 900px) {
  .tv { aspect-ratio: auto; overflow: visible; padding: 16px; gap: 14px; grid-template-rows: none; }
  .tv-top { flex-wrap: wrap; }
  .tv-clock { font-size: 18px; } .tv-clock small { font-size: 10px; } .tv-live { gap: 8px; }
  .tv-logo { height: 34px; }
  .tv-period { flex-wrap: wrap; gap: 8px; }
  .tv-eyebrow { font-size: 11px; } .tv-date { font-size: 18px; } .tv-upd { font-size: 11px; }
  .tv-h { font-size: 22px; }
  .tv-row1, .tv-row2 { grid-template-columns: 1fr; gap: 12px; }
  .tv-card, .tv-sent { padding: 16px; gap: 10px; border-radius: 12px; }
  .tv-kpi img { width: 32px; height: 32px; } .tv-kpi-num { font-size: 34px; } .tv-kpi-label { font-size: 12px; }
  .tv-sub-h { font-size: 14px; } .tv-bar { height: 16px; } .tv-split small { font-size: 11px; } .tv-split b { font-size: 24px; }
  .tv-narr { font-size: 15px; } .tv-tag { font-size: 13px; }
  .tv-net b { font-size: 44px; } .tv-net span { font-size: 13px; } .tv-spark { min-height: 90px; } .tv-spark-cap { font-size: 11px; }
  .tv-sent-head { grid-template-columns: 96px 1fr; gap: 14px; } .tv-donut { width: 96px; height: 96px; }
  .tv-sent-title img { width: 26px; height: 26px; } .tv-sent-title h3 { font-size: 14px; } .tv-sent-title span { font-size: 12px; }
  .tv-bullets { font-size: 14px; gap: 8px; } .tv-bullets li { padding-left: 14px; } .tv-bullets li::before { width: 5px; height: 5px; }
  .tv-title { position: static; transform: none; order: 3; width: 100%; gap: 2px; }
  .tv-title .tv-eyebrow { font-size: 11px; } .tv-title .tv-date { font-size: 16px; }
  .tv-powered { font-size: 10px; } .tv-tz { font-size: 9px; }
  .tv-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 12px; }
  .tv-grid > .tv-card { gap: 10px; padding: 16px; }
  .g-topics, .g-feed { grid-column: auto; }
  .tv-feed { grid-template-columns: 1fr; --cap: 0; } .tv-prlist { --cap: 0; }
  .tv-label { font-size: 12px; } .tv-label img { width: 20px; height: 20px; }
  .tv-k-num { font-size: 40px; } .tv-k-sub, .tv-kpi-chg { font-size: 12px; min-height: 0; }
  .tv-kpi-chg[data-empty] { display: none; }
  .tv-sentwrap { grid-template-columns: 120px 1fr; gap: 16px; } .tv-sdonut { width: 120px; height: 120px; }
  .tv-sl b { font-size: 24px; } .tv-sl small { font-size: 11px; } .tv-sl span { font-size: 12px; white-space: normal; }
  .tv-topic { grid-template-columns: 48px 1fr; gap: 12px; padding: 10px 0; }
  .tv-topic-rank { font-size: 32px; } .tv-topic-meta { font-size: 11px; } .tv-topic-meta b { font-size: 14px; }
  .tv-topic-title { font-size: 15px; white-space: normal; } .tv-topic-text { font-size: 14px; white-space: normal; }
  .tv-panes { display: flex; flex-direction: column; gap: 16px; }
  .tv-pane { position: static; opacity: 1; gap: 8px; } .tv-pane[data-empty] { display: none; }
  .tv-chart { flex: none; height: 150px; }
  .tv-def { font-size: 12px; }
  .tv-fi { gap: 10px; padding: 10px 0; } .tv-fi-tone { width: 4px; }
  .tv-fi-author { font-size: 14px; } .tv-fi-tag { font-size: 10px; } .tv-fi-text { font-size: 14px; }
  .tv-fi-foot { font-size: 11px; gap: 10px; } .tv-fi-foot b { font-size: 13px; }
  .tv-pr { grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 0; }
  .tv-pr-logo { width: 36px; height: 36px; border-radius: 8px; padding: 4px; } .tv-pr-mono { font-size: 18px; }
  .tv-pr-outlet { font-size: 11px; } .tv-pr-head { font-size: 14px; }
  .tv-sum-text { font-size: 15px; }
  .more { padding: 16px; }
  .nmd-rcard { border-left: 0; padding-left: 0; border-top: 1px solid var(--nm-line); padding-top: 12px; }
  .nmd-rcard:first-child { border-top: 0; padding-top: 4px; }
  .nmd-driver { grid-template-columns: 1fr; gap: 6px; }
  .nmd-dnum { border-right: 0; padding-right: 0; }
}

html, body { margin: 0; background: #E6E1D2; }
body { min-height: 100vh; display: flex; justify-content: center; }
/* On a wide screen the board keeps 16:9 and fits inside the window, so the whole TV view shows without scrolling. */
.nmd { width: min(100vw, calc(100vh * 16 / 9)); border-radius: 0; }
@media (max-width: 900px) { .nmd { width: 100vw; } }

/* ---------- sign-in gate: replaces the board until the session is valid ---------- */
.nm-gate { display: none; width: 100%; min-height: 100vh; align-items: center; justify-content: center; padding: 24px; }
#report.is-locked .nm-gate { display: flex; }
#report.is-locked .tv { display: none; }
.nm-gate-card { width: min(100%, 380px); background: var(--nm-card); border: 1px solid #D6CBA6; border-radius: 16px; box-shadow: 0 8px 30px rgba(60, 50, 20, .14); padding: 32px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.nm-gate-card img { height: 54px; width: auto; }
.nm-gate-card h1 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .14em; color: var(--nm-title); }
.nm-gate-card p { margin: 0; font-size: 14px; color: var(--nm-ink-2); }
.nm-gate-form { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.nm-gate-input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #D6CBA6; border-radius: 10px; background: #fff; color: var(--nm-ink); text-align: center; outline: none; }
.nm-gate-input:focus { border-color: var(--nm-gold); box-shadow: 0 0 0 3px rgba(164, 138, 57, .2); }
.nm-gate-btn { font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .06em; padding: 12px 14px; border: 0; border-radius: 10px; background: var(--nm-gold); color: #fff; cursor: pointer; }
.nm-gate-btn:disabled { opacity: .6; cursor: default; }
.nm-gate-error { min-height: 18px; font-size: 13px; font-weight: 500; color: var(--nm-neg); }
.nm-gate-foot { font-size: 12px; color: var(--nm-ink-2); }
.nm-gate-foot b { color: #F05D2A; }
