/* panel-kit — the styles every operator panel shares (ADR-0049 п. 4, owner:
   the desk «в стиле админки»). Moved verbatim out of clients/admin/styles.css:
   fonts, the five-colour palette and layout tokens, the frame/header/sidebar
   shell, buttons, fields, notices, cards, tags, tables, the sign-in form, the
   chart classes, tabs, the one-time-secret modal and the chat bubbles.
   Styles and structure from the owner's Figma mockup («Razgrom» → «Admin»,
   Desktop-1/2/3, 1440×1024). No radii, no shadows, five colours. Every number
   that came from the mockup is a token. A panel links this sheet FIRST and its
   own sheet after it. */

@font-face {
  font-family: "Jersey 25";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/jersey25-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jersey 25";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/jersey25-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* palette — the whole of it */
  --black: #000000;
  --white: #ffffff;
  --red: #ff0000;
  --green: #00ff00;
  --blue: #0000ff;

  /* layout */
  --header-h: 122px;
  --header-pad-x: 40px;
  --sidebar-w: 246px;
  --control-h: 46px;
  --border-w: 5px;
  --pad: 10px;
  --gap: 10px;
  --search-w: 464px;
  --logo-w: 150px;
  --logo-h: 92px;
  --info-pad: 12px 18px;

  /* type */
  --font: "Jersey 25", system-ui, sans-serif;
  --fs-control: 24px;   /* search, domain tabs, buttons */
  --fs-nav: 36px;       /* sidebar items */
  --fs-profile: 32px;   /* ADMIN */
  --fs-info: 14px;      /* version / contour */
  --fs-body: 20px;

  /* the active domain's colour; app.js sets --c per element from data-color */
  --c: var(--red);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--white);
  color: var(--black);
  font: 400 var(--fs-body) / 1.2 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8em; }

/* ------------------------------------------------------------- frame --- */

.frame {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 1100px;
  background: var(--white);
  border: 1px solid var(--black);
}

/* ------------------------------------------------------------ header --- */

.top {
  flex: none;
  height: var(--header-h);
  padding: 0 var(--header-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--black);
  color: var(--white);
}

.logo { display: block; flex: none; }
.logo img { display: block; width: var(--logo-w); height: var(--logo-h); object-fit: contain; }

.search {
  flex: 0 1 var(--search-w);
  min-width: 200px;
  height: var(--control-h);
  padding: var(--pad);
  display: flex;
  align-items: center;
  gap: var(--gap);
  background: var(--white);
  color: var(--black);
  cursor: text;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--black);
  font: inherit;
  font-size: var(--fs-control);
  line-height: 1;
  outline: none;
}

.search input::placeholder { color: var(--black); opacity: 1; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.domains { display: flex; gap: var(--gap); flex: none; }

.domain {
  height: var(--control-h);
  padding: var(--pad);
  display: flex;
  align-items: center;
  gap: var(--gap);
  border: var(--border-w) solid var(--c);
  color: var(--c);
  background: transparent;
  font-size: var(--fs-control);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.domain.is-active { background: var(--c); color: var(--black); }
.domain:focus-visible, .side-item:focus-visible { outline: 3px dashed var(--white); outline-offset: 2px; }

.profile {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--gap);
  font-size: var(--fs-profile);
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}

/* ------------------------------------------------------------- icons --- */

.icon { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-24 { width: 24px; height: 24px; }
.icon-32 { width: 32px; height: 32px; }
.icon svg { display: block; }

/* -------------------------------------------------------------- main --- */

.main { display: flex; flex: 1; min-height: 0; }

.side {
  flex: none;
  width: var(--sidebar-w);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--c);
}

.side-nav { display: flex; flex-direction: column; gap: var(--gap); }

.side-item {
  height: var(--control-h);
  padding: var(--pad);
  display: flex;
  align-items: center;
  gap: var(--gap);
  border: var(--border-w) solid var(--c);
  color: var(--white);
  font-size: var(--fs-nav);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.side-item .label { overflow: hidden; text-overflow: clip; }
.side-item.is-active { background: var(--white); border-color: var(--white); color: var(--c); }

.info {
  padding: var(--info-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  font-size: var(--fs-info);
  line-height: 1;
  color: var(--white);
}

.info-inline { flex-direction: row; padding: 0; }
.info-inline .env[data-env="dev"] { border: 1px solid var(--white); }

/* contour marker: prod is plain text; dev is a black chip plus a warning line,
   so a dev tab can never be mistaken for the production one */
.env { text-transform: lowercase; }
.env[data-env="dev"] { background: var(--black); color: var(--white); padding: 4px 8px; }
.env-warn { text-transform: uppercase; }
.frame[data-env="dev"] .info { border-top: 3px solid var(--black); }
.content .env[data-env="dev"] { color: var(--white); }
.content .env[data-env="prod"] { border: 1px solid var(--black); padding: 4px 8px; }

/* ----------------------------------------------------------- content --- */

.content {
  flex: 1;
  min-width: 0;
  padding: 20px var(--header-pad-x) 60px;
  overflow: auto;
  color: var(--black);
}

.page-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .btn { margin-left: auto; }
.page-title { margin: 0; font-size: var(--fs-nav); line-height: 1; font-weight: 400; text-transform: uppercase; }
.page-fresh { font-size: var(--fs-body); }
.section-title { margin: 30px 0 10px; font-size: 28px; line-height: 1; font-weight: 400; text-transform: uppercase; }
.summary, .lead { margin: 0 0 12px; }
.hint { margin: 12px 0 0; font-size: 16px; }
.empty { margin: 0; font-size: var(--fs-control); }
.error, .err { color: var(--red); }
.strong { font-size: 1.1em; }
.cell-note { font-size: 15px; margin-top: 2px; }
ul.plain { margin: 0 0 12px; padding-left: 24px; }

.btn {
  height: var(--control-h);
  padding: var(--pad);
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  border: var(--border-w) solid var(--black);
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: var(--fs-control);
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.btn.is-primary { background: var(--black); color: var(--white); }
.btn.is-danger { border-color: var(--red); color: var(--red); }
.btn.is-small { height: 36px; padding: 6px 8px; border-width: 3px; font-size: 20px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:focus-visible, .field:focus-visible { outline: 3px dashed var(--black); outline-offset: 2px; }

.field {
  height: var(--control-h);
  padding: var(--pad);
  border: var(--border-w) solid var(--black);
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: var(--fs-control);
  line-height: 1;
  min-width: 0;
}

.field.is-small { height: 36px; padding: 6px 8px; border-width: 3px; font-size: 20px; width: 220px; }
.field::placeholder { color: var(--black); opacity: 0.5; }

/* the save-path editor (INGEST review, M7j): globs live one per line, so the
   control is monospace and as wide as its column -- neither the 320px-tall
   document editor (.is-code) nor a fixed 220px single-line field. */
.field.is-cell {
  height: auto;
  min-height: 44px;
  width: 100%;
  max-width: 100%;
  resize: vertical;
  padding: 6px 8px;
  border-width: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  line-height: 1.3;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

/* the root picker is a <select>, and a select ignores rows/resize: give it a
   line box tall enough not to clip its own text. */
select.field.is-cell { line-height: 1.4; white-space: normal; padding: 8px; }

.inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.notice {
  margin: 0 0 20px;
  padding: var(--pad);
  border: var(--border-w) solid var(--black);
  font-size: var(--fs-control);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notice.is-error { border-color: var(--red); color: var(--red); }
.notice.is-ok { border-color: var(--green); }
.notice-detail { font-size: 16px; }

.cards { display: flex; flex-wrap: wrap; gap: var(--gap); margin: 0 0 12px; }
.card { min-width: 160px; padding: var(--pad); border: var(--border-w) solid var(--black); }
.card .num { font-size: 48px; line-height: 1; }
.card .cap { font-size: var(--fs-body); text-transform: uppercase; }
.card .card-note { font-size: 15px; margin-top: 4px; }
/* alert card: a non-zero number an operator must not scroll past (failed, unconfirmed saves) */
.card.is-alert { border-color: var(--red); }
.card.is-alert .num { color: var(--red); }

/* filter chips + the cards-window toggle (SESSIONS) */
.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.chips-label { font-size: var(--fs-body); text-transform: uppercase; }
.chips-sep { margin-left: 24px; }
.btn.is-on { background: var(--black); color: var(--white); }

/* cursor pagination under the table */
.pager { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; }
.pager-label { font-size: var(--fs-body); text-transform: uppercase; margin-right: 8px; }

.tag {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--black);
  font-size: 15px;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag.is-ok { background: var(--green); }
.tag.is-bad { background: var(--red); }
.tag.is-warn { background: var(--blue); color: var(--white); }

.scroll { overflow-x: auto; }

table.grid { border-collapse: collapse; width: 100%; font-size: var(--fs-body); line-height: 1.2; }
.grid th, .grid td { border: 1px solid var(--black); padding: 8px 10px; text-align: left; vertical-align: top; }
.grid th { background: var(--black); color: var(--white); font-weight: 400; text-transform: uppercase; white-space: nowrap; }
.grid td.actions { white-space: nowrap; }

/* the save-path editor's grid (INGEST review, M7j): fixed columns so the
   REMOVE button cannot be pushed off the right edge by a long glob, and the
   controls fill their cell instead of the .field default width. */
table.grid.is-savepaths { table-layout: fixed; }
.grid.is-savepaths th:nth-child(1), .grid.is-savepaths td:nth-child(1) { width: 24%; }
.grid.is-savepaths th:nth-child(2), .grid.is-savepaths td:nth-child(2) { width: 34%; }
.grid.is-savepaths th:nth-child(3), .grid.is-savepaths td:nth-child(3) { width: 24%; }
.grid.is-savepaths th:nth-child(4), .grid.is-savepaths td:nth-child(4) { width: 18%; }
.grid.is-savepaths th { white-space: normal; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 20px; }
.facts dt { text-transform: uppercase; }
.facts dd { margin: 0; }

/* ------------------------------------------------------------- login --- */

.login-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 60px 40px; }
.login-form { width: var(--search-w); display: flex; flex-direction: column; gap: var(--gap); }
.login-form .page-title { margin-bottom: 10px; }
.lbl { font-size: var(--fs-body); text-transform: uppercase; margin-top: 10px; }
.lbl-note { text-transform: none; font-size: 15px; display: block; }
.login-form .btn { align-self: flex-start; margin-top: 10px; }
.login-form .error { margin: 0; font-size: var(--fs-body); }
.login-form .hint { margin: 0; }

/* ------------------------------------------------ session detail + charts ---
   Same five colours as everything else. Chart lines: blue/red are the two
   categorical hues (they pass the CVD and contrast checks on white); black is
   ink and appears only as a REFERENCE series, always dashed or stepped so
   identity never rests on colour alone. Grid = recessive dashed hairlines. */

.back { margin: 0 0 4px; }
.back-link { font-size: var(--fs-body); text-transform: uppercase; color: var(--black); }
.row-link { color: var(--black); text-decoration: underline; }
.row-link:hover { background: var(--black); color: var(--white); }

.chart-block { margin: 0 0 18px; }
.chart-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 6px; }
.chart-title { font-size: var(--fs-body); font-weight: 400; text-transform: uppercase; margin: 0; }
.chart-legend { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.lg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lg-val { margin-left: 2px; }
.sw { display: inline-block; width: 20px; height: 0; border-top: 3px solid var(--black); }
.sw.is-blue { border-top-color: var(--blue); }
.sw.is-red { border-top-color: var(--red); }
.sw.is-black { border-top-color: var(--black); }
.sw.is-dashed { border-top-style: dashed; }

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--black);
  background: var(--white);
  cursor: crosshair;
  touch-action: none;       /* the drag IS the gesture — no scroll fight */
  user-select: none;
}
.chart-svg text { font-family: var(--font); }
.c-grid { stroke: var(--black); stroke-width: 1; stroke-dasharray: 2 7; fill: none; }
.c-axis { stroke: var(--black); stroke-width: 1; fill: none; }
.c-lbl { font-size: 13px; fill: var(--black); }
.c-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-line.c-blue { stroke: var(--blue); }
.c-line.c-red { stroke: var(--red); }
.c-line.c-black { stroke: var(--black); }
.c-dashed { stroke-dasharray: 6 5; }
.c-dot { r: 3px; }
.c-dot.c-blue { fill: var(--blue); }
.c-dot.c-red { fill: var(--red); }
.c-dot.c-black { fill: var(--black); }
/* switch markers: ink triangles + a hairline down to the axis */
.c-mark { fill: var(--black); }
.c-mark-line { stroke: var(--black); stroke-width: 1; stroke-dasharray: 1 5; }
/* the bridge's own warn threshold (status red — reserved semantics) */
.c-warn { stroke: var(--red); stroke-width: 1; stroke-dasharray: 5 4; }
.c-warn-lbl { fill: var(--red); }
/* ------------------------------------------------- chart interactivity ---
   app.js drives these with delegated pointer events: the crosshair hairline
   lives inside each SVG (hidden until hover), the brush rectangle appears
   during a drag-zoom, the tooltip is one body-level fixed <div> positioned
   through the CSSOM (CSP allows that; inline style= attributes stay banned). */
.c-cursor { stroke: var(--black); stroke-width: 1; pointer-events: none; }
.c-brush { fill: var(--blue); fill-opacity: 0.12; stroke: var(--blue); stroke-width: 1; pointer-events: none; }

/* `el.hidden` alone loses to the author `display: flex` below (author rules
   beat the UA [hidden] rule regardless of specificity) — restate it. */
.chart-tip[hidden] {
  display: none;
}
.chart-tip {
  position: fixed;
  z-index: 10;
  max-width: 360px;
  padding: 8px 10px;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  line-height: 1.35;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tip-time { text-transform: uppercase; }
.tip-row { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tip-val { font-size: 1.15em; min-width: 72px; }
.tip-lbl { opacity: 0.85; }

/* the zoom strip above the charts */
.zoombar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; }
.zoombar-label { font-size: var(--fs-body); text-transform: uppercase; }
.chart-hint { margin: 0 0 10px; font-size: 15px; }
.zoombar .chart-hint { margin: 0; }

/* ---------------------------------------- title detail: tabs + workbench ---
   The research/36 Д3 wave: OVERVIEW / BUILDS / ROLLOUT / COVERAGE / AUDIT.
   Same language as the domain tabs — hard borders, uppercase, ink-on-white
   inverted for the active one. */

.tabs { display: flex; flex-wrap: wrap; gap: var(--gap); margin: 0 0 20px; }
.tab {
  display: inline-block;
  padding: 8px 14px;
  border: 3px solid var(--black);
  color: var(--black);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.tab.is-active { background: var(--black); color: var(--white); }
.tab:focus-visible { outline: 3px dashed var(--black); outline-offset: 2px; }

/* One-time secrets: a dialog that only its own CLOSE button dismisses. No
   backdrop click, no Escape — the value exists in exactly one place. */
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.modal-box {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: var(--pad);
  border: var(--border-w) solid var(--black);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }
.modal-title { font-size: var(--fs-body); text-transform: uppercase; }
.modal-box .lead, .modal-box .hint { margin: 0; }

/* chat bubbles (admin PRODUCT / SUPPORT, desk CHATS): player bubbles are
   outlined, operator bubbles inverted, read marks are text. */
.chat { display: flex; flex-direction: column; gap: var(--gap); padding: var(--pad); border: var(--border-w) solid var(--black); max-height: 60vh; overflow-y: auto; }
.bubble { max-width: 78%; padding: var(--pad); border: var(--border-w) solid var(--black); font-size: var(--fs-body); white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.is-user { align-self: flex-start; background: var(--white); color: var(--black); }
.bubble.is-op { align-self: flex-end; background: var(--black); color: var(--white); }
.bubble.is-sys { align-self: center; max-width: 90%; border-style: dashed; font-size: var(--fs-info); }
.bubble-meta { display: block; margin-top: 4px; font-size: var(--fs-info); opacity: 0.8; }
.chat-empty { padding: var(--pad); font-size: var(--fs-info); }
.reply-box { display: flex; flex-direction: column; gap: var(--gap); }
.reply-box textarea.field { min-height: 92px; resize: vertical; font-family: var(--font); }
.badge { display: inline-block; min-width: 1.6em; padding: 0 6px; border: var(--border-w) solid var(--black); background: var(--black); color: var(--white); text-align: center; font-size: var(--fs-info); }

/* ------------------------------------ session screenshots (M7i wave 4; admin + desk) ---
   The strip next to the QoE charts and the viewer over it. Same language as
   everything else: 5 px black borders, uppercase captions, no radii, the five
   colours — and the pictures themselves letterboxed on black, which is both
   the mockup's palette and the only honest background for a screenshot whose
   aspect ratio is the guest's, not ours.

   Links come from the broker as short-lived presigned GETs (research/41
   §4.4 — a player's screen is never publicly addressable), so each panel
   site's CSP `img-src` must include the S3/R2 endpoint host; without it every
   cell degrades to its alt text inside the same black box, and the layout
   holds. */

.shot-strip {
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  overflow-x: auto;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--black);
}
.shot {
  flex: 0 0 auto;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.shot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 113px; /* 16:9 of 200px — the guest's usual shape, letterboxed anyway */
  border: 3px solid var(--black);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.shot.is-bad .shot-frame { border-color: var(--red); }
.shot:hover .shot-frame, .shot:focus-visible .shot-frame { border-color: var(--blue); }
.shot-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shot-blank { padding: 6px; font-size: 15px; text-transform: uppercase; text-align: center; }
.shot-blank.is-big { color: var(--white); font-size: var(--fs-body); }
.shot-stamp { font-size: 18px; text-transform: uppercase; }
.shot-mark {
  align-self: flex-start;
  padding: 1px 5px;
  border: 2px solid var(--black);
  font-size: 15px;
  text-transform: uppercase;
}
.shot-mark.is-bad { border-color: var(--red); color: var(--red); }
.shot-mark.is-warn { border-color: var(--blue); color: var(--blue); }
/* The cadence divider: where the owner's schedule steps down (30 s → 1 min →
   5 min → 10 min). The cells are evenly spaced on purpose, so THIS is what
   carries the timeline's shape. */
.shot-gap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 113px; /* the height of a frame box, so the rule runs beside them */
  padding: 0 2px;
  border-left: 1px dashed var(--black);
  /* Set along the rule rather than across it: a horizontal label costs ~90 px
     of strip per divider, which is half a frame's worth of screen spent on a
     caption. */
  writing-mode: vertical-rl;
  font-size: 15px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.75;
}

/* the fullscreen viewer */
.shot-viewer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
}
.sv-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
  max-height: 100%;
  padding: var(--pad);
  border: var(--border-w) solid var(--white);
  background: var(--black);
  color: var(--white);
}
.sv-head, .sv-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.sv-head { justify-content: space-between; }
.sv-title { font-size: var(--fs-body); text-transform: uppercase; }
.sv-head .btn.is-small { border-color: var(--white); background: var(--black); color: var(--white); }
.sv-body { display: flex; align-items: center; gap: 8px; min-height: 0; }
.sv-img { max-width: 100%; max-height: 72vh; object-fit: contain; display: block; }
.sv-step {
  flex: 0 0 auto;
  width: 44px;
  height: 88px;
  border: 3px solid var(--white);
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.sv-step:hover, .sv-step:focus-visible { background: var(--white); color: var(--black); }
.sv-foot { font-size: 16px; }
.sv-foot .shot-mark { border-color: var(--white); }
.sv-foot .shot-mark.is-bad { border-color: var(--red); color: var(--red); }
.sv-foot .shot-mark.is-warn { border-color: var(--blue); color: var(--blue); }
.sv-foot .chart-hint { margin: 0; }
.sv-digest { opacity: 0.8; }
