/* SecretPicture — reveal.css (Team D). Upload → analyzing → classified report. All classes use the tv- prefix. */

[data-home-hero], [data-tv-intake] {
  --tv-ink: #101313; --tv-paper: #ECE3CF; --tv-paper-2: #F6F1E4; --tv-red: #E3412F; --tv-green: #35F08C;
  --tv-deep: #0B3B2E; --tv-mustard: #F2C14E; --tv-white: #FDFDFD;
  --tv-mono: var(--font-mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
}

/* ---------- state switching (markup is not edited, we only hide/show) ---------- */
[data-tv-intake][data-state="analyzing"] [data-hero-input] > :not(.tv-scan):not(.tv-reveal-status) { display: none !important; }
[data-tv-intake][data-state="revealed"] > :not(.tv-report) { display: none !important; }
[data-tv-intake][data-state="revealed"] { display: block; }
[data-tv-intake][data-tv-dragging] [data-file-dropzone] { outline: 2px dashed var(--tv-green); outline-offset: 4px; }

.tv-reveal-status { margin: 10px 2px 0; min-height: 0; font: 500 13px/1.45 var(--tv-mono); color: var(--tv-red); }
.tv-reveal-status:not(.tv-reveal-status--visible) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-tv-intake][data-state="analyzing"] .tv-reveal-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.tv-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 2px solid currentColor; border-radius: 10px;
  background: transparent; color: var(--tv-ink); cursor: pointer;
  font: 700 14px/1 var(--font-sans, system-ui, sans-serif); letter-spacing: .01em; text-decoration: none;
  transition: background-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.tv-btn:hover { transform: translateY(-1px); box-shadow: 3px 3px 0 currentColor; }
.tv-btn:active { transform: translateY(1px); box-shadow: none; }
.tv-btn:focus-visible { outline: 3px solid var(--tv-red); outline-offset: 3px; }
.tv-btn:disabled { opacity: .55; cursor: progress; }
.tv-btn--primary { background: var(--tv-ink); border-color: var(--tv-ink); color: var(--tv-paper); }
.tv-btn--primary:hover { background: var(--tv-red); border-color: var(--tv-red); color: var(--tv-white); box-shadow: 3px 3px 0 var(--tv-ink); }
.tv-btn--ghost { border-style: dashed; }

/* ---------- analyzing panel (CRT surveillance screen; always dark) ---------- */
.tv-scan {
  position: relative; display: grid; gap: 10px; padding: 14px;
  border: 1px solid color-mix(in srgb, var(--tv-green) 35%, transparent); border-radius: var(--home-surface-radius, 20px);
  background: radial-gradient(120% 100% at 50% 0%, #10201a 0%, #0a0d0c 70%); color: var(--tv-green);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .4), 0 24px 60px rgb(0 0 0 / .35), inset 0 0 40px rgb(53 240 140 / .06);
  animation: tv-in .35s cubic-bezier(.2, .8, .2, 1) both;
}
.tv-scan__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; max-height: min(42svh, 400px); width: 100%; border-radius: 10px; background: #050706; isolation: isolate; }
.tv-scan__pix { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; filter: saturate(.35) contrast(1.15) brightness(.9); transition: filter .6s; }
.tv-scan--done .tv-scan__pix { filter: none; image-rendering: auto; }
.tv-scan .tv-scan__media > .tv-scan__fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .9; }
.tv-scan__fx > canvas { width: 100% !important; height: 100% !important; display: block; }
/* CSS fallback for the `decode` preset (used when effects.js is absent) */
.tv-scan__fx[data-tv-fx-fallback] {
  background:
    repeating-linear-gradient(0deg, rgb(53 240 140 / .10) 0 1px, transparent 1px 3px),
    radial-gradient(60% 60% at 50% 50%, rgb(53 240 140 / .16), transparent 70%);
  animation: tv-flicker 2.4s steps(8) infinite;
}
.tv-scan__grid { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgb(53 240 140 / .18) 1px, transparent 1px), linear-gradient(90deg, rgb(53 240 140 / .18) 1px, transparent 1px);
  background-size: 12.5% 20%; }
.tv-scan__sweep { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgb(53 240 140 / .0) 40%, rgb(53 240 140 / .35) 49%, rgb(214 255 232 / .8) 50%, transparent 51%);
  background-size: 100% 220%; animation: tv-sweep 2.2s cubic-bezier(.45, 0, .55, 1) infinite; }
.tv-scan--done .tv-scan__sweep { animation: none; opacity: 0; transition: opacity .3s; }
.tv-scan__reticle { position: absolute; inset: 12%; z-index: 4; pointer-events: none; animation: tv-hunt 3.6s ease-in-out infinite; }
.tv-scan__reticle i { position: absolute; width: 22px; height: 22px; border: 2px solid var(--tv-green); }
.tv-scan__reticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.tv-scan__reticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.tv-scan__reticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.tv-scan__reticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.tv-scan--done .tv-scan__reticle { animation: none; inset: 4%; border-color: var(--tv-red); transition: inset .4s; }
.tv-scan--done .tv-scan__reticle i { border-color: var(--tv-red); }
.tv-scan__rec { position: absolute; z-index: 5; top: 10px; left: 12px; font: 700 11px/1 var(--tv-mono); letter-spacing: .12em; color: var(--tv-red); animation: tv-blink 1s steps(2) infinite; }
.tv-scan__meta { display: flex; justify-content: space-between; gap: 12px; font: 600 12px/1.2 var(--tv-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.tv-scan__pct { font-variant-numeric: tabular-nums; }
.tv-scan__bar { height: 4px; border-radius: 4px; background: rgb(53 240 140 / .15); overflow: hidden; }
.tv-scan__bar i { display: block; height: 100%; background: var(--tv-green); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--tv-green); }
.tv-scan__line { margin: 2px 0 0; min-height: 2.9em; font: 500 15px/1.45 var(--tv-mono); color: #d6ffe8; text-shadow: 0 0 10px rgb(53 240 140 / .55); }
.tv-scan__line::before { content: "> "; color: var(--tv-green); }
.tv-scan__line--in { animation: tv-type .45s steps(14) both; }
.tv-scan__line--final { color: var(--tv-mustard); text-shadow: 0 0 10px rgb(242 193 78 / .5); }
.tv-scan__cancel { justify-self: start; color: var(--tv-green); min-height: 40px; font-size: 13px; }
.tv-scan__cancel:hover { box-shadow: 3px 3px 0 rgb(53 240 140 / .5); }

/* ---------- report card ---------- */
.tv-report {
  --tv-card: var(--tv-paper); --tv-card-2: var(--tv-paper-2); --tv-text: var(--tv-ink); --tv-muted: rgb(16 19 19 / .62);
  --tv-line: rgb(16 19 19 / .22); --tv-dot: rgb(16 19 19 / .09); --tv-maxh: min(68svh, 640px);
  grid-column: 1 / -1; position: relative; isolation: isolate; overflow: hidden;
  width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(18px, 3vw, 40px);
  border-radius: 6px; background: var(--tv-card); color: var(--tv-text);
  box-shadow: 0 1px 0 rgb(255 255 255 / .4) inset, 0 2px 4px rgb(0 0 0 / .18), 0 30px 80px rgb(0 0 0 / .45);
  scroll-margin-top: calc(var(--home-hero-chrome, 80px) + 12px);
  font-family: var(--font-sans, system-ui, sans-serif); text-align: left;
  animation: tv-file-in .6s cubic-bezier(.2, .9, .25, 1) both;
}
.tv-report::after { /* paper edge + fold line */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent calc(50% - 1px), rgb(16 19 19 / .05) 50%, transparent calc(50% + 1px)),
              radial-gradient(140% 90% at 0% 0%, rgb(255 255 255 / .35), transparent 55%);
}
.tv-report > .tv-report__fx { position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .55; mix-blend-mode: multiply; border-radius: inherit; }
.tv-report > .tv-report__fx.tvfx-host { opacity: 1; mix-blend-mode: normal; } /* effects.js paints the whole paper */
.tv-report__fx > canvas { width: 100% !important; height: 100% !important; display: block; }
.tv-report__fx[data-tv-fx-fallback] { /* CSS fallback for the `halftone` preset */
  background-image: radial-gradient(circle at center, var(--tv-dot) 0 2.2px, transparent 2.6px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(120% 110% at 100% 0%, #000 0%, transparent 62%);
          mask-image: radial-gradient(120% 110% at 100% 0%, #000 0%, transparent 62%);
}
.tv-report__tape { position: absolute; top: -10px; left: 50%; width: 120px; height: 30px; translate: -50% 0; rotate: -2deg; background: rgb(242 193 78 / .55); box-shadow: 0 1px 2px rgb(0 0 0 / .15); }

.tv-report__head { display: grid; gap: 12px; margin-bottom: clamp(16px, 2.4vw, 28px); }
.tv-report__classified { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0; padding: 10px 14px; border-radius: 3px;
  background: var(--tv-ink); color: var(--tv-green); font: 700 12px/1.2 var(--tv-mono); letter-spacing: .14em; text-transform: uppercase; }
.tv-report__declass { color: var(--tv-red); }
.tv-report__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font: 500 12px/1.3 var(--tv-mono); letter-spacing: .04em; }
.tv-report__meta > div { display: flex; gap: 6px; }
.tv-report__meta dt { color: var(--tv-muted); text-transform: uppercase; }
.tv-report__meta dd { margin: 0; font-weight: 700; }
.tv-report__verdictRow dd { color: var(--tv-red); }

.tv-report__body { display: grid; gap: clamp(20px, 3vw, 44px); align-items: start; }
@media (min-width: 900px) { .tv-report__body { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }

.tv-report__evidence { margin: 0; }
.tv-report__photo {
  position: relative; aspect-ratio: var(--tv-ratio, 4 / 3); width: min(100%, calc(var(--tv-maxh) * var(--tv-ar, 1.333)));
  margin-inline: auto; padding: 0; border: 6px solid var(--tv-ink); border-radius: 2px; background: var(--tv-ink);
  box-shadow: 0 2px 0 rgb(0 0 0 / .1), 6px 8px 0 rgb(16 19 19 / .12); rotate: -.6deg;
}
.tv-report__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-report__cap { margin-top: 10px; text-align: center; font: 500 12px/1.4 var(--tv-mono); color: var(--tv-muted); letter-spacing: .04em; }

/* evidence markers */
.tv-marks { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.tv-mark { position: absolute; left: calc(var(--tv-x) * 100%); top: calc(var(--tv-y) * 100%); width: 0; height: 0; }
.tv-mark__dot {
  position: absolute; left: 0; top: 0; translate: -50% -50%; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--tv-red); color: var(--tv-white);
  font: 800 12px/1 var(--tv-mono); box-shadow: 0 0 0 2px var(--tv-white), 0 2px 8px rgb(0 0 0 / .4);
  animation: tv-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.55s + var(--tv-i) * .22s);
}
.tv-mark__dot::after { content: ""; position: absolute; inset: -12px; border: 2.5px solid var(--tv-red); border-radius: 50%;
  animation: tv-ring 1.8s ease-out infinite; animation-delay: calc(1s + var(--tv-i) * .22s); opacity: 0; }
.tv-mark__label {
  position: absolute; top: 0; translate: 0 -50%; max-width: min(42vw, 220px); width: max-content;
  padding: 5px 8px; border-radius: 2px; background: var(--tv-ink); color: var(--tv-paper);
  font: 700 12px/1.25 var(--font-sans, system-ui, sans-serif); box-shadow: 2px 2px 0 var(--tv-red);
  animation: tv-label .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.75s + var(--tv-i) * .22s);
}
.tv-mark[data-side="right"] .tv-mark__label { left: 22px; }
.tv-mark[data-side="left"] .tv-mark__label { right: 22px; }
.tv-mark__label::before { content: ""; position: absolute; top: 50%; width: 10px; height: 2px; background: var(--tv-ink); }
.tv-mark[data-side="right"] .tv-mark__label::before { right: 100%; }
.tv-mark[data-side="left"] .tv-mark__label::before { left: 100%; }

/* verdict stamp */
.tv-stamp { position: absolute; right: 4%; bottom: 6%; z-index: 2; rotate: -14deg; pointer-events: none;
  animation: tv-stamp .5s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(1.1s + var(--tv-n, 3) * .22s); }
.tv-stamp__inner {
  display: block; padding: .32em .6em .28em; border: .12em solid var(--tv-red); border-radius: .14em;
  outline: .05em solid var(--tv-red); outline-offset: -.24em;
  color: var(--tv-red); font: 900 clamp(26px, 4.6vw, 52px)/1 var(--font-sans, system-ui, sans-serif); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: rgb(236 227 207 / .14); mix-blend-mode: multiply;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 160px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 160px;
}
.tv-report__photo .tv-stamp__inner { background: rgb(236 227 207 / .78); mix-blend-mode: normal; }

/* image mode (src/shared/config/reveal-mode.ts): black-and-white evidence; the color truth shows only inside
   the loupe, at the same scale, like the hero. The loupe script writes --loupe-x/y and data-active/zoomed/cue. */
.tv-truth {
  --tv-loupe-h: calc(100cqw / var(--tv-ar, 1)); --tv-loupe-r: calc(min(100cqw, var(--tv-loupe-h)) * .23);
  --tv-loupe-ease: cubic-bezier(.33, 1, .68, 1);
  container-type: inline-size; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none;
}
@media (hover: hover) and (pointer: fine) { .tv-truth { cursor: none; } }
.tv-truth:focus-visible { outline: 2px solid var(--tv-red); outline-offset: 3px; }
.tv-truth__clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tv-truth__loupe {
  position: absolute; left: calc(var(--loupe-x) * 100cqw - var(--tv-loupe-r)); top: calc(var(--loupe-y) * var(--tv-loupe-h) - var(--tv-loupe-r));
  width: calc(2 * var(--tv-loupe-r)); height: calc(2 * var(--tv-loupe-r)); overflow: hidden; border-radius: 50%; background: var(--tv-ink);
  box-shadow: 0 0 0 3px var(--tv-paper), 0 0 0 4px rgb(0 0 0 / .25), 0 10px 28px rgb(0 0 0 / .3);
  opacity: 0; scale: .6; transition: opacity .22s var(--tv-loupe-ease), scale .32s var(--tv-loupe-ease);
}
.tv-truth[data-zoomed="true"] .tv-truth__loupe { opacity: 1; scale: 1; }
.tv-truth .tv-truth__color {
  inset: auto; left: calc(var(--tv-loupe-r) - var(--loupe-x) * 100cqw); top: calc(var(--tv-loupe-r) - var(--loupe-y) * var(--tv-loupe-h));
  width: 100cqw; max-width: none; height: var(--tv-loupe-h); object-fit: fill;
}
.tv-truth .tv-marks, .tv-truth .tv-stamp { transition: opacity .2s; }
.tv-truth[data-active="true"] .tv-marks, .tv-truth[data-active="true"] .tv-stamp { opacity: .22; }
.tv-truth__cue {
  position: absolute; left: 50%; top: 50%; z-index: 3; translate: -50% -50%; padding: 8px 12px; border-radius: 10px;
  background: rgb(16 19 19 / .88); color: var(--tv-paper); font: 600 13px/1.2 var(--font-sans, system-ui, sans-serif); white-space: nowrap;
  box-shadow: 0 6px 20px rgb(0 0 0 / .25); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.tv-truth[data-cue="on"] .tv-truth__cue { opacity: 1; visibility: visible; }
.tv-truth__cueTouch { display: none; }
@media (hover: none), (pointer: coarse) { .tv-truth__cueHover { display: none; } .tv-truth__cueTouch { display: inline; } }
.tv-truth__tag {
  position: absolute; z-index: 3; left: clamp(40px, var(--loupe-x) * 100cqw, 100cqw - 40px); padding: 5px 10px; border-radius: 999px;
  background: var(--tv-ink); color: var(--tv-paper); box-shadow: 2px 2px 0 var(--tv-red);
  font: 700 11px/1 var(--tv-mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .22s;
}
.tv-truth[data-zoomed="true"] .tv-truth__tag { opacity: 1; }
.tv-truth__tag--below { top: calc(var(--loupe-y) * var(--tv-loupe-h) + var(--tv-loupe-r) + 10px); translate: -50% 0; }
.tv-truth__tag--above { top: calc(var(--loupe-y) * var(--tv-loupe-h) - var(--tv-loupe-r) - 10px); translate: -50% -100%; }
@media (prefers-reduced-motion: reduce) { .tv-truth__loupe { transition: opacity .15s; scale: 1; } }

/* text column */
.tv-report__text { display: grid; gap: 16px; min-width: 0; animation: tv-in .5s ease both; animation-delay: .25s; }
.tv-report__title { margin: 0; font: 900 clamp(26px, 3.1vw, 40px)/1.12 var(--reel-display, var(--font-sans, system-ui, sans-serif)); letter-spacing: -.015em; word-break: keep-all; overflow-wrap: anywhere; }
.tv-report__title:focus { outline: none; }
.tv-report__title:focus-visible { outline: none; }
.tv-threat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1.5px solid var(--tv-text); border-radius: 4px; background: var(--tv-card-2); }
.tv-threat__k { font: 700 11px/1 var(--tv-mono); letter-spacing: .12em; text-transform: uppercase; }
.tv-threat__bars { display: inline-flex; gap: 3px; }
.tv-threat__bars i { width: 10px; height: 16px; background: var(--tv-line); transform-origin: 50% 100%; animation: tv-bar .3s ease both; animation-delay: calc(.6s + var(--tv-b, 0) * .08s); }
.tv-threat__bars i:nth-child(2) { --tv-b: 1; } .tv-threat__bars i:nth-child(3) { --tv-b: 2; } .tv-threat__bars i:nth-child(4) { --tv-b: 3; } .tv-threat__bars i:nth-child(5) { --tv-b: 4; }
.tv-threat[data-level="1"] i:nth-child(-n+1), .tv-threat[data-level="2"] i:nth-child(-n+2), .tv-threat[data-level="3"] i:nth-child(-n+3),
.tv-threat[data-level="4"] i:nth-child(-n+4), .tv-threat[data-level="5"] i:nth-child(-n+5) { background: var(--tv-red); }
.tv-threat__v { font: 700 14px/1.35 var(--font-sans, system-ui, sans-serif); }
.tv-report__story { display: grid; gap: 10px; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.62; word-break: keep-all; overflow-wrap: anywhere; }
.tv-report__story p { margin: 0; }
.tv-report__story p:first-child::first-letter { font-weight: 900; }
.tv-redact { display: inline-block; padding: 0 .15em; background: var(--tv-redact, var(--tv-ink)); color: transparent; border-radius: 1px; line-height: 1.1; user-select: none; }
.tv-report__legendWrap { display: grid; gap: 6px; padding-top: 12px; border-top: 1.5px dashed var(--tv-line); }
.tv-report__legendK { margin: 0; font: 700 11px/1 var(--tv-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tv-muted); }
.tv-report__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; counter-reset: ev; font: 600 13px/1.3 var(--font-sans, system-ui, sans-serif); }
.tv-report__legend li { counter-increment: ev; display: inline-flex; align-items: center; gap: 6px; }
.tv-report__legend li::before { content: counter(ev); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--tv-red); color: var(--tv-white); font: 800 10px/1 var(--tv-mono); }
.tv-report__disclaimer { margin: 0; font: 500 12px/1.5 var(--tv-mono); color: var(--tv-muted); word-break: keep-all; }
.tv-report__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.tv-report__actions .tv-btn { color: var(--tv-text); }
.tv-report__actions .tv-btn--primary { color: var(--tv-card); background: var(--tv-text); border-color: var(--tv-text); }
.tv-report__actions .tv-btn--primary:hover { color: var(--tv-white); background: var(--tv-red); border-color: var(--tv-red); }
.tv-report__toast { min-height: 1.4em; margin: 0; font: 600 12px/1.4 var(--tv-mono); color: var(--tv-deep); }

/* dark mode: night dossier (matches effects.js halftone dark paper #1C1A15) */
[data-color-mode="dark"] .tv-report {
  --tv-card: #1C1A15; --tv-card-2: #26231C; --tv-text: #ECE3CF; --tv-muted: rgb(236 227 207 / .62);
  --tv-line: rgb(236 227 207 / .22); --tv-dot: rgb(236 227 207 / .10); --tv-redact: #ECE3CF;
  box-shadow: 0 0 0 1px rgb(236 227 207 / .08), 0 30px 90px rgb(0 0 0 / .65);
}
@media (prefers-color-scheme: dark) {
  html:not([data-color-mode]) [data-design]:not([data-color-mode]) .tv-report {
    --tv-card: #1C1A15; --tv-card-2: #26231C; --tv-text: #ECE3CF; --tv-muted: rgb(236 227 207 / .62);
    --tv-line: rgb(236 227 207 / .22); --tv-dot: rgb(236 227 207 / .10); --tv-redact: #ECE3CF;
  }
}
[data-color-mode="dark"] .tv-report::after { background: linear-gradient(90deg, transparent calc(50% - 1px), rgb(236 227 207 / .05) 50%, transparent calc(50% + 1px)); }
[data-color-mode="dark"] .tv-report__classified { box-shadow: inset 0 0 0 1px rgb(53 240 140 / .25); }
[data-color-mode="dark"] .tv-report__toast { color: var(--tv-green); }
[data-color-mode="dark"] .tv-report__photo { border-color: #000; box-shadow: 6px 8px 0 rgb(0 0 0 / .35); }

/* mobile */
@media (max-width: 640px) {
  .tv-report { --tv-maxh: 56svh; padding: 16px 14px 18px; border-radius: 4px; }
  .tv-report__meta { gap: 4px 14px; font-size: 11px; }
  .tv-report__classified { font-size: 10.5px; letter-spacing: .1em; padding: 8px 10px; }
  .tv-report__photo { border-width: 4px; rotate: 0deg; }
  .tv-mark__dot { width: 22px; height: 22px; font-size: 11px; }
  .tv-mark__dot::after { inset: -8px; }
  .tv-mark__label { font-size: 11px; padding: 4px 6px; max-width: 38vw; }
  .tv-mark[data-side="right"] .tv-mark__label { left: 17px; }
  .tv-mark[data-side="left"] .tv-mark__label { right: 17px; }
  .tv-stamp__inner { font-size: 24px; }
  .tv-report__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .tv-report__actions .tv-btn--primary { grid-column: 1 / -1; }
  .tv-scan { padding: 10px; }
  .tv-scan__media { aspect-ratio: 4 / 3; }
  .tv-scan__line { font-size: 13.5px; }
}

/* ---------- keyframes ---------- */
@keyframes tv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tv-file-in { from { opacity: 0; transform: translateY(28px) rotate(.8deg) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes tv-sweep { from { background-position: 0 120%; } to { background-position: 0 -120%; } }
@keyframes tv-flicker { 0%, 100% { opacity: .9; } 30% { opacity: .65; } 60% { opacity: 1; } }
@keyframes tv-hunt { 0%, 100% { inset: 12% 30% 34% 14%; } 33% { inset: 40% 12% 10% 44%; } 66% { inset: 20% 46% 26% 8%; } }
@keyframes tv-blink { 50% { opacity: 0; } }
@keyframes tv-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tv-pop { from { opacity: 0; scale: 0; } to { opacity: 1; scale: 1; } }
@keyframes tv-ring { 0% { opacity: .9; scale: .5; } 100% { opacity: 0; scale: 1.5; } }
@keyframes tv-label { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes tv-stamp { 0% { opacity: 0; scale: 2.6; } 60% { opacity: 1; scale: .92; } 100% { opacity: 1; scale: 1; } }
@keyframes tv-bar { from { transform: scaleY(0); } to { transform: none; } }

.tv-report--instant, .tv-report--instant * { animation-delay: 0s !important; animation-duration: 0s !important; }
.tv-report--instant .tv-mark__dot::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .tv-scan, .tv-scan *, .tv-report, .tv-report * { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .tv-mark__dot::after, .tv-scan__sweep, .tv-scan__reticle { animation: none !important; }
}
