/* Quality Tracker (assets/service/quality-tracker/quality-tracker.js) —
   the widget's styles. The DS tokens, the fonts and the active theme come
   from the page (bundle.css; `dark-mode` on the host). */
.quality-tracker {
  --m__fingerprint-captions-top: calc(75% + 1.4em);
}

.quality-tracker-embed { width: 100%; }

.quality-tracker-frame { width: 100%; margin: 0; box-sizing: border-box; container-type: inline-size; }

@container (width <= 992px) {
.quality-tracker { font-size: 14px; }
}

/* Translucent inks use the active theme roles over colored clips. */
.quality-tracker { --m__fingerprint-emotion-delay: 0s; --m__fingerprint-emotion-duration: var(--m__duration-slow); --vf-white: var(--m__color-white); --vf-text: var(--m__text); --vf-text-caption: var(--m__text-caption); --vf-border: var(--m__border); --vf-ink-text: color-mix(in srgb, var(--m__text) 90%, transparent); --vf-ink-caption: color-mix(in srgb, var(--m__text-caption) 90%, transparent); --vf-ink-border: color-mix(in srgb, var(--m__border) 90%, transparent); --vf-surface: var(--m__bg-surface); --vf-separator: color-mix(in srgb, var(--m__border) 40%, transparent); font-family: var(--m__font-family-sans); font-size: 16px; line-height: 1.45; color: var(--vf-text); --vf-plate-bg: var(--m__bg); background-color: var(--vf-plate-bg); position: relative; border-radius: var(--m__radius-xl); overflow: hidden; cursor: pointer; transition: background-color var(--m__duration-base) var(--m__easing-base); }

/* No plate hover: the widget is the whole page, so the ground stays put. */

/* The DS caps buttons (components/caps.css) in the tracker's see-through
   inks: over a colored clip they tint with it. */


/* (Medium, as the tabs that share its line — DS caps, components/caps.css.) */
.quality-tracker .vf-panel-head { font-family: var(--m__font-family-semi-mono); font-weight: var(--m__font-weight-medium); text-transform: uppercase; letter-spacing: 0.06em; color: var(--vf-text-caption); }

/* `--vf-top-reserve`: room on the right for the host page's studio
   buttons laid over the top bar (set by app.js). */
/* The call line midway between the title row and the plate: 1.5px more
   over it (its margin), as much less under (this padding). */
.quality-tracker .vf-top { padding: var(--m__gap-s) var(--vf-top-reserve, 1.1em) var(--m__gap-s) var(--m__gap-l); }

.quality-tracker .vf-top__title { margin: 0px; font-size: var(--m__font-size-xl); font-weight: var(--m__font-weight-bold); line-height: var(--m__line-height-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The title links home: no underline; under the cursor it takes the DS
   dark link hover (white), instant in, eased out. */
.quality-tracker .vf-top__home {
  color: inherit; text-decoration: none; cursor: pointer; transition: color var(--m__duration-base) var(--m__easing-base);
  &:hover { color: var(--m__text-link-hover); transition-duration: var(--m__duration-instant); }
}
/* …or, on a list's call (a dashboard conversation), the way back before
   the call's title: the DS secondary outline button (S), set as the
   feed's segmented control beside it — 12px medium caps in the column
   tabs' semi-mono, its height (the pills' 2.283em), the arrow leading. */
.quality-tracker a.vf-top__back { flex: none; }



/* The call line under the title: semi-mono caps labels and their
   values, semi-mono too, all in the caption grey, at xs (the call
   list's date line's size) — the line is the call's small print. */
.quality-tracker .vf-top__call {
  display: flex; flex-wrap: wrap; gap: var(--m__gap-xxxxs) var(--m__gap-xl); margin: var(--m__gap-s) 0 0; font-size: var(--m__font-size-xs); line-height: var(--m__line-height-base); color: var(--vf-text-caption); transition: opacity var(--m__duration-slow) var(--m__easing-base);
  & .vf-top__call-item { display: flex; align-items: baseline; gap: var(--m__gap-xxs); white-space: nowrap; }
  & dt { font-family: var(--m__font-family-semi-mono); font-size: var(--m__font-size-xs); text-transform: uppercase; letter-spacing: 0.06em; }
  & dd { margin: 0; font-family: var(--m__font-family-semi-mono); font-size: var(--m__font-size-xs); font-variant-numeric: tabular-nums; color: var(--vf-text-caption); }
}

/* ── Zen / Science ─────────────────────────────────────────────────────── */

/* The title and the view switch share the first row, the switch right
   after the title; the title gives way (ellipsis) before the switch does. */
.quality-tracker .vf-top__row { display: flex; align-items: center; gap: var(--m__gap-xxs); }
/* Centered in the row, the title's capitals still stand 0.75px over the
   pills' caps (the big sans against the small mono); it drops by that,
   their middles on one line. Not by the tagline (baseline, below). */
.quality-tracker .vf-top__row .vf-top__title { flex: 0 1 auto; min-width: 0; position: relative; top: 0.034em; }
.quality-tracker .vf-top__row--tagline .vf-top__title { top: 0; }
/* The flavor's tagline (/sf: "Powered by Modulate Velma"): the title's
   size and face, regular, in caption grey dimmed as a disabled control, on its baseline (the two a
   baseline group of their own, the row's other items still centered). */
.quality-tracker .vf-top__row--tagline > :is(.vf-top__title, .vf-top__tagline) { align-self: baseline; }
.quality-tracker .vf-top__tagline { flex: 0 1 auto; min-width: 0; color: color-mix(in srgb, var(--vf-text-caption) 55%, transparent); font-size: 1.4em; font-weight: var(--m__font-weight-regular); line-height: var(--m__line-height-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.quality-tracker .vf-dropdown { flex: none; transition: opacity var(--m__duration-slow) var(--m__easing-base); }
/* Switching views is instant: what it reveals skips its entry animation. */
.quality-tracker.vf-switching * { transition: none !important; }

/* The fingerprint is the DS component (fingerprint.js, its playground
   style, components/fingerprint.css): the reply waits only in Science. Its
   playhead line is the streaming "now" line too, down the whole player;
   a finished call shows it once played, and not parked on the last frame
   (a line on the edge). The strip's canon position markers (line and
   caption) are left out — the times sit in the strip itself. */
.quality-tracker:not(.vf-science) :is(.m__fingerprint__latency, .m__fingerprint__latency-figures) { display: none; }
.quality-tracker .vf-player:not(.vf-live):is(.vf-at-end, :not([data-playback-started="true"])) .m__fingerprint__heard-line { display: none; }
.quality-tracker .vf-player :is(.m__fingerprint__position-indicator, .m__fingerprint__hover-position-indicator, .m__fingerprint__status-caption) { display: none; }
/* LATENCY badges in the signal stream (Science): their usual outline,
   faint stripes in the badge's own color, the text in that color too —
   orange from 2.5 s (red past 5 s comes with the alarm row). */
.quality-tracker.vf-science .vf-sig[data-wait] .m__signal__type { background: repeating-linear-gradient(-45deg, color-mix(in srgb, currentColor 22%, transparent) 0 3px, transparent 3px 6px); }
.quality-tracker .vf-sig[data-wait="watch"] .m__signal__type { color: var(--m__color-orange-400); border-color: color-mix(in srgb, var(--m__color-orange-400) 60%, transparent); }
/* Raw figures under the signal labels and the rows that stayed under
   threshold: Science only. A row under threshold reads like any other —
   its raw line says "not signalled"; it's never red. */
.quality-tracker:not(.vf-science) .vf-sig.vf-sig--muted { display: none; }

/* Zen keeps only the reading: no call line over the player, no
   timestamps in the transcript or the signal stream, no confidences, no
   small print under the tile figures. */
/* The call line and the tiles' small print keep their room in Zen —
   hidden, not removed — so the player and the right column stay put on
   the switch and only the text itself appears. */
.quality-tracker:not(.vf-science) :is(.vf-top__call, .m__metric-card__note) { visibility: hidden; }
.quality-tracker:not(.vf-science) :is(.m__transcript-bubble__time, .m__transcript-bubble__confidence, .m__transcript-bubble__raw, .m__signal__time, .m__signal__at, .m__signal__num) { display: none; }
.quality-tracker:not(.vf-science) .vf-sig { grid-template-columns: var(--vf-tag-col, 6.8em) minmax(0px, 1fr) auto; }

.quality-tracker .vf-player {
  --m__fingerprint-strip-height: 3em; --vf-strip-bg: color-mix(
    in srgb,
    var(--m__fingerprint-bg-surface, rgb(50, 50, 85)) 30%,
    var(--m__bg-surface)
  ); margin: 0px var(--m__gap-l);
  --m__fingerprint-padding: 0.2em;
  & .m__fingerprint__player {
  background-color: var(--vf-strip-bg); color: var(--m__text); overflow: hidden;
  & .m__fingerprint__controls { height: 100%; padding-top: 0px; }
  & .m__fingerprint__control-center { padding-top: 0px; }
  & .m__fingerprint__control-center:hover { background-color: transparent; }
}
  & .m__fingerprint__start-clock, & .m__fingerprint__total-clock { position: absolute; top: 50%; bottom: auto; transform: translateY(-50%); pointer-events: none; color: var(--m__text-caption); z-index: 3; }
  & .m__fingerprint__start-clock { left: calc(var(--m__fingerprint-padding) + 0.6em); }
  & .m__fingerprint__total-clock { right: calc(var(--m__fingerprint-padding) + 0.6em); }
  & .m__fingerprint__play-icon { transition: transform var(--m__duration-base) var(--m__easing-base); }
  & .m__fingerprint__control-center:hover .m__fingerprint__play-icon { transform: scale(1.15); transition-duration: var(--m__duration-instant); }
  /* Both times one size: the canon pins the total to 0.8em/0.5 inside
     .m__fingerprint__total-clock, so it needs the heavier selector (DS 6866aea). */
  & .m__fingerprint__start-clock .m__fingerprint__start-time, & .m__fingerprint__total-time, & .m__fingerprint__total-clock .m__fingerprint__total-time { font-size: var(--m__font-size-s); opacity: 1; color: inherit; }
  & .m__fingerprint__text-caption span { font-size: var(--m__font-size-s); }
  & .m__fingerprint__position-indicator { right: 0px; z-index: 3; }
  &[data-playback-started="true"] .m__fingerprint__position-line { opacity: 1; visibility: visible; }
  & .m__fingerprint__text-caption {
  top: 50%; bottom: auto; transform: translateY(-50%); left: 3.2em; width: 34%; color: var(--m__text-caption);
}
  & .m__fingerprint__total-clock { display: flex; align-items: baseline; gap: var(--m__gap-xs); }
  & .m__fingerprint__emotion-caption {
  font-size: var(--m__font-size-s); opacity: 0; transition: opacity var(--m__duration-xslow) var(--m__easing-base);
  &.visible { opacity: 1; transition: opacity var(--m__duration-instant) var(--m__easing-base); }
}
}

.quality-tracker .vf-quality {
  --vf-good: var(--m__color-green-400);
  box-sizing: border-box; height: 21em; padding: var(--m__gap-l); border-left: 1px solid var(--vf-border); color: var(--vf-text-caption); transition: color var(--m__duration-medium) var(--m__easing-base);
  &.vf-good { color: var(--vf-good); }
  &.vf-watch { color: var(--m__color-orange-400); }
  &.vf-poor { color: var(--vf-white); }
  &.vf-poor .vf-quality__plate { background-color: var(--m__color-red-600); }
}

.quality-tracker .vf-quality__plate { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; overflow: hidden; border-radius: var(--m__radius-s); cursor: pointer; transition: background-color var(--m__duration-xslow) var(--m__easing-base); }

/* The plate opens the details panel: under the cursor its whole ground
   lifts a step, whatever its verdict color — instant in, eased out. */
.quality-tracker .vf-quality__plate:hover { background-color: color-mix(in srgb, var(--m__border) 35%, var(--vf-quality-ground, var(--m__bg))); transition-duration: var(--m__duration-instant); }
.quality-tracker .vf-quality.vf-poor .vf-quality__plate:hover { background-color: var(--m__error); }
.quality-tracker .vf-quality.vf-poor.vf-quality--folded .vf-quality__plate:hover { background-color: color-mix(in srgb, var(--m__color-white) 22%, var(--m__error)); }

.quality-tracker .vf-quality__head { position: relative; z-index: 1; padding: var(--m__gap-xs) var(--m__gap-xs) 0px; font-size: var(--m__font-size-l); font-weight: var(--m__font-weight-bold); line-height: var(--m__line-height-base); text-align: center; color: var(--vf-text); }

/* On a colored ground the head reads white — Needs attention keeps the plain head (its fill sits low, the head stays on the dark plate). */
.quality-tracker .vf-quality.vf-good .vf-quality__head { color: var(--m__text-accent); }
.quality-tracker .vf-quality.vf-poor :is(.vf-quality__head, .vf-quality__value) { color: var(--vf-white); }

.quality-tracker .vf-quality__fill { position: absolute; left: 0px; right: 0px; bottom: 0px; height: 0px; background-color: color-mix(in srgb, currentcolor 22%, transparent); transition: height var(--m__duration-base) linear,
    background-color var(--m__duration-medium) var(--m__easing-base); }

.quality-tracker .vf-quality__threshold { position: absolute; left: 0px; right: 0px; border-top: 1px dashed color-mix(in srgb, var(--m__text) 55%, transparent); }
.quality-tracker .vf-quality.vf-poor .vf-quality__threshold { border-top-color: color-mix(in srgb, var(--m__color-white) 55%, transparent); }

.quality-tracker .vf-quality__value { position: relative; z-index: 1; margin: auto 0px; font-size: var(--m__font-size-l); font-weight: var(--m__font-weight-bold); font-variant-numeric: tabular-nums; line-height: 1; color: var(--m__text-accent); transition: font-size var(--m__duration-base) var(--m__easing-base); }

.quality-tracker .vf-quality:is(.vf-good, .vf-watch, .vf-poor) .vf-quality__value { font-size: var(--m__font-size-xxxl); }
/* Fraud risk is a percent from the start (0% until the caller is heard) —
   the small size only for "Not checked". */
.quality-tracker .vf-fraud:not(.vf-unchecked) .vf-quality__value { font-size: var(--m__font-size-xxxl); }

.quality-tracker .vf-quality__tags { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: var(--m__gap-xxxs); padding: 0px var(--m__gap-s) var(--m__gap-l); text-align: center; }

.quality-tracker .vf-quality__verdict {
  display: none; font-size: var(--m__font-size-s); line-height: var(--m__line-height-base); opacity: 0; transform: translateY(0.3em); transition: opacity var(--m__duration-slow) var(--m__easing-base),
    transform var(--m__duration-slow) var(--m__easing-base);
  &.vf-visible {
  display: block; opacity: 1; transform: none;
  @starting-style {
  opacity: 0; transform: translateY(0.3em);
}
}
}

.quality-tracker .vf-issue {
  display: none; font-size: 0.8em; opacity: 0; transform: translateY(0.4em); transition: opacity var(--m__duration-slow) var(--m__easing-base),
    transform var(--m__duration-slow) var(--m__easing-base);
  &.vf-visible {
  display: inline-flex; opacity: 1; transform: none;
  @starting-style {
  opacity: 0; transform: translateY(0.4em);
}
}
}

.quality-tracker .vf-main {
  display: grid;
  /* Three columns: transcript, signal stream, and Quality — the score
     over the metric tiles. */
  grid-template-columns: minmax(0px, 2.5fr) minmax(0px, 2.5fr) minmax(0px, 1.3fr);
  grid-template-rows: 21em;
  grid-template-areas: "transcript signals quality";
}
/* A flavor's longer kind names (words: "synthetic voice") on one line. */
.quality-tracker.vf-wide-tags { --vf-tag-col: 9.4em; }

/* Zen without the score column (the flavor's zenScore: false): two. */
.quality-tracker.vf-zen-noscore:not(.vf-science) .vf-main { grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr); grid-template-areas: "transcript signals"; }
.quality-tracker.vf-zen-noscore:not(.vf-science) .vf-scorecol { display: none; }
/* A clip with actions (/sf Clip 2): one table — each signal with the
   agent's actions beside it, a step a line; in Science under its label.
   Only what bears on the verdict is colored: an alarm's actions red (the
   step up from its magenta), the rest in the stream's grey. */
.quality-tracker .vf-acts { grid-column: 3 / -1; display: flex; flex-direction: column; gap: var(--m__gap-xxxxs); margin-top: var(--m__gap-xxxxs); font-size: 0.8em; line-height: 1.25; color: var(--vf-text); transition: color var(--m__duration-base) var(--m__easing-base); }
.quality-tracker.vf-sig-actions:not(.vf-science) .vf-sig { grid-template-columns: var(--vf-tag-col, 6.8em) minmax(0px, 0.75fr) minmax(0px, 1fr) auto; }
.quality-tracker.vf-sig-actions:not(.vf-science) .vf-acts { grid-column: 3; margin-top: 0; }
.quality-tracker .vf-sig:hover .vf-acts { color: var(--m__text-link-hover); transition-duration: var(--m__duration-instant); }
.quality-tracker .vf-sig[data-alarm] .vf-acts { color: var(--m__color-red-500); }
/* (A red step a step heavier, as its red signal's words.) */
.quality-tracker .vf-sig[data-alarm] .vf-acts__step { font-weight: var(--m__font-weight-medium); }
.quality-tracker .vf-sig[data-alarm]:hover .vf-acts { color: var(--m__error-hover); }
/* The steps in the tiles' semi-mono (science-lab.css .m__evidence-button), a
   list, at the signals' size to the eye (the semi-mono runs larger, so a
   step down). */
.quality-tracker .vf-acts__step { font-family: var(--m__font-family-semi-mono); font-size: 0.9em; font-weight: var(--m__font-weight-regular, 400); }
/* Its head: the table's second column named over it. */
.quality-tracker .vf-acts-head { display: none; }
/* (The head's type is 3/4 of the rows' — 12px to 16px — so its em
   columns and gap are the rows' over 3/4.) */
.quality-tracker.vf-sig-actions:not(.vf-science) .vf-signals-col > .vf-lens-head { display: grid; grid-template-columns: calc(var(--vf-tag-col, 6.8em) * 4 / 3) minmax(0px, 0.75fr) minmax(0px, 1fr); column-gap: 0.8em; }
/* (All on one row, the head's strut — its ::before — among them.) */
.quality-tracker.vf-sig-actions:not(.vf-science) .vf-signals-col > .vf-lens-head::before { grid-area: 1 / 1; }
.quality-tracker.vf-sig-actions:not(.vf-science) .vf-signals-col > .vf-lens-head > .vf-lens-title { grid-area: 1 / 1 / 2 / 3; }
.quality-tracker.vf-sig-actions:not(.vf-science) .vf-acts-head { display: block; grid-area: 1 / 3; white-space: nowrap; }
.quality-tracker .vf-transcript { grid-area: transcript; }
.quality-tracker .vf-quality { grid-area: quality; }
.quality-tracker .vf-signals { grid-area: signals; }

@container (width <= 768px) {
.quality-tracker .vf-main { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "transcript" "signals" "quality"; }
}

/* Equal top and bottom: pinned, the head is a band of its own. */
.quality-tracker .vf-panel-head { font-size: var(--m__font-size-xs); padding: var(--m__gap-s) var(--m__gap-l); }

/* The feed heads stay pinned while their column scrolls, on the plate's
   own ground — one line each, alike, so the feeds' rows run level (the
   Science filters sit under the stream's head and scroll away). */
.quality-tracker :is(.vf-transcript, .vf-signals) > .vf-panel-head { position: sticky; top: 0; z-index: 2; background-color: var(--vf-plate-bg); }
/* Stacked columns are short: their heads scroll away with them. */
@container (width <= 768px) {
  .quality-tracker :is(.vf-transcript, .vf-signals) > .vf-panel-head { position: static; }
}

/* The feeds scroll natively (wheel, trackpad); the scrollbars show only
   under the cursor — switched, not transitioned: the browser animates
   scrollbar-color through a dark flash. */
.quality-tracker .vf-transcript, .quality-tracker .vf-signals { height: 21em; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: transparent transparent; }

.quality-tracker :is(.vf-transcript, .vf-signals):hover { scrollbar-color: color-mix(in srgb, var(--m__text-caption) 55%, transparent) transparent; }


.quality-tracker .vf-signals { border-left: 1px solid var(--vf-border); }

@container (width <= 768px) {
.quality-tracker .vf-transcript { height: 17em; border-bottom: 1px solid var(--vf-border); }
.quality-tracker .vf-signals { height: 15em; border-left: 0px; }
.quality-tracker .vf-quality { height: auto; border-left: 0px; border-top: 1px solid var(--vf-border); }
}

/* Bubble geometry, metadata, states and entry motion are the DS component
   (components/transcript-bubble.css); only Studio view policy lives here. */

.quality-tracker .vf-signal-list { padding: 0px var(--m__gap-l) var(--m__gap-l); }
/* The empty stream's line, in the captions' grey: only once the call is
   over (streaming, a stream is empty only so far); hidden while a row of
   its stream is on screen. With it the empty Signals' filter row goes
   too, so it stands where the first row would. */
.quality-tracker .vf-signal-list__empty { display: none; margin: var(--m__gap-xxs) 0 0; font-size: var(--m__font-size-s); color: var(--vf-text-caption); }
.quality-tracker.vf-completed .vf-signal-list__empty { display: block; }
.quality-tracker.vf-completed .vf-signals:not(:has(.vf-sig.vf-visible:not([data-stream="behaviors"]))) .vf-lab-filters { display: none; }
.quality-tracker .vf-signal-list:has(.vf-sig.vf-visible:not(.vf-lab-hidden)) > .vf-signal-list__empty:not([data-stream]),
.quality-tracker .vf-signal-list:has(.vf-sig.vf-visible[data-stream="signals"]) > .vf-signal-list__empty[data-stream="signals"],
.quality-tracker .vf-signal-list:has(.vf-sig.vf-visible[data-stream="behaviors"]) > .vf-signal-list__empty[data-stream="behaviors"],
.quality-tracker .vf-signals[data-stream="signals"] .vf-signal-list__empty[data-stream="behaviors"],
.quality-tracker .vf-signals[data-stream="behaviors"] .vf-signal-list__empty[data-stream="signals"] { display: none; }

/* Two streams (/sf): the panel shows one, Signals or Behaviors; the
   Signals' filter chips stay with them. */
.quality-tracker .vf-signals[data-stream="signals"] .vf-sig[data-stream="behaviors"],
.quality-tracker .vf-signals[data-stream="behaviors"] .vf-sig[data-stream="signals"],
.quality-tracker .vf-signals[data-stream="behaviors"] .vf-lab-filters,
.quality-tracker .vf-signals[data-stream] .vf-lab-chip--type[data-kind="behavior"] { display: none; }
/* Feeds with their heads over the panels (/sf, widget.js feedColumn): a
   column holds the head and the scrolling panel under it — the scrollbar
   stays off the head. The column takes the panel's place and sizes. */
.quality-tracker .vf-feed-col { display: flex; flex-direction: column; height: 21em; min-height: 0; }
.quality-tracker .vf-transcript-col { grid-area: transcript; }
.quality-tracker .vf-signals-col { grid-area: signals; border-left: 1px solid var(--vf-border); }
.quality-tracker .vf-feed-col > :is(.vf-transcript, .vf-signals) { flex: 1 1 0; height: auto; min-height: 0; border: 0; }
.quality-tracker .vf-feed-col > .vf-panel-head { flex: none; background-color: var(--vf-plate-bg); }
.quality-tracker .vf-transcript-col > .vf-panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--m__gap-s); }
/* Beside tab bars its words sit on the tabs' line — a tab's middle 0.5em
   + 13.7px down, the words' 1.29px under it, less half the 1.45em line;
   the words and Show PII/PHI on one baseline (the button sets it) — and
   its foot is theirs (the tabs' 27.4px under the 0.5em over them): the
   three heads alike, content scrolling under them. As much room under
   the words as over them: the call line's at the top (its gaps to the
   title and to the player). */
.quality-tracker .vf-main--tabbar :is(.vf-transcript-col, .vf-signals-col, .vf-scorecol) > .vf-panel-head:not(.vf-tabbar) { display: flex; align-items: baseline; padding-block: calc(14.99px - 0.225em); }
/* The content's right inset less the scrollbar's width (--vf-scrollbar,
   widget.js feedColumn): the same on both sides, the scrollbar ignored. */
.quality-tracker .vf-feed-col :is(.vf-utterances, .vf-signal-list) { padding-right: max(0px, calc(1.1em - var(--vf-scrollbar, 0px))); }
.quality-tracker.vf-science .vf-feed-col .vf-lab-filters { padding-right: max(0px, calc(1.467em - var(--vf-scrollbar, 0px))); }
@container (width <= 768px) {
  .quality-tracker .vf-transcript-col { height: 17em; border-bottom: 1px solid var(--vf-border); }
  .quality-tracker .vf-signals-col { height: 15em; border-left: 0; }
}
@media (width > 768px) {
  .quality-tracker .vf-feed-col { height: auto; }
}
/* Tabs (the stream's, Quality / Fraud's — .vf-tabbar on their head):
   0.5em over the tabs, the tabs down to the head's foot, the room under
   their words in them (--vf-tabbar-foot more than the pills' 27.4px).
   No room at their sides: the first tab's words on the content's edge,
   the tabs as far apart as that edge is from the column's (the head's
   --m__gap-l);
   the transcript's head as tall — all three heads alike, and a clip
   brought up from the timeline lands at one height in each. The tabs'
   words sit as the lens tabs' do, on the feed heads' line. Under the
   head, out of it, a hairline in the rows' see-through separator color,
   edge to edge of the column, over the content scrolling in under it. */
.quality-tracker .vf-panel-head.vf-tabbar {
  --vf-tabbar-foot: var(--m__gap-xxxs);
  gap: var(--m__gap-l);
  position: relative; z-index: 3; box-sizing: border-box; height: calc(0.5em + 27.4px + var(--vf-tabbar-foot)); padding-top: var(--m__gap-xxxs); padding-bottom: 0; background-color: var(--vf-plate-bg);
  /* (The heads' line holder keeps out of the gap.) */
  &::before { margin-right: calc(-1 * var(--m__gap-l)); }
  &::after { content: ""; position: absolute; top: 100%; left: 0; right: var(--vf-tabbar-line-end, 0px); height: 1px; background-color: var(--vf-separator); pointer-events: none; }
}
/* (Over the lens tabs' rules, which come later.) Each tab is the top
   bar's pills' height (.vf-dropdown__trigger, 27.4px), standing on the
   line: as the DS code block's tabs (components/code-block.css
   .m__code-block__tabs) — words only, the one shown in the text color
   with a 2px underline as wide as its words, its lower pixel over
   the line; the others caption grey, lighting under the cursor. */
.quality-tracker .vf-tabbar .vf-lens-tab {
  position: relative; align-self: flex-end; box-sizing: border-box; height: calc(27.4px + var(--vf-tabbar-foot)); margin: 0; padding: 0 0 var(--vf-tabbar-foot); border: 0; border-radius: 0; background: none;
  &:hover { background: none; }
  &[aria-pressed="true"] { background: none; color: var(--m__text); }
  &[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: currentColor; }
}
/* The score column is the plate's edge: its line stops at the head's
   right padding. Its tabs as wide as their words, as the stream's — not
   the plate's halves. */
.quality-tracker .vf-scorecol > .vf-tabbar { --vf-tabbar-line-end: 1.467em; }
/* Tabs never run their line to the screen's edge: in the last column on
   screen (Zen without the score column) it stops at the padding too. */
.quality-tracker.vf-zen-noscore:not(.vf-science) .vf-signals-col > .vf-tabbar { --vf-tabbar-line-end: 1.467em; }
.quality-tracker .vf-scorecol .vf-tabbar .vf-lens-tab { flex: none; text-align: left; }
/* Under a tab bar the read is not pulled up under the tabs
   (--vf-tabs-pull): the head holds the gap. */
/* (No gap off the head: a verdict's page starts, and cuts, at its foot,
   as the overview's widgets and the feeds do.) */
.quality-tracker .vf-scorecol.vf-scorecol--tabbar > .vf-quality { margin-top: 0; }
/* Under the heads, before the first row (the chips, the first bubble):
   the same room in all three columns. It scrolls with the rows, which
   then pass under the head. */
.quality-tracker .vf-feed-col > .vf-panel-head + :is(.vf-signals, .vf-transcript) { padding-top: var(--m__gap-xs); }
/* (No tabs over the stream now, no line under its head: every column's
   first entry right under its head, the cut its top.) */
.quality-tracker .vf-feed-col > .vf-panel-head + :is(.vf-signals, .vf-transcript) { padding-top: 0; }

/* A view switched (zen ↔ science): what it shows comes in at once, no
   stream fade-ins (quality-tracker.js setMode). */
.quality-tracker.vf-instant :is(.vf-sig, .vf-issue, .vf-quality__verdict, .m__transcript-bubble__raw-pair, .m__transcript-bubble__behavior, .m__transcript-bubble__word) {
  transition: none;
}

.quality-tracker .vf-sig {
  display: none; opacity: 0; transform: translateY(0.4em); transition: opacity var(--m__duration-slow) var(--m__easing-base),
    transform var(--m__duration-slow) var(--m__easing-base);
  &.vf-visible {
  display: grid; opacity: 1; transform: none;
  @starting-style {
  opacity: 0; transform: translateY(0.4em);
}
}
}

/* A completed call keeps the whole feed; what lies past the playhead dims.
   A clicked signal row stays lit while its evidence is highlighted. */
.quality-tracker .vf-sig.vf-visible.vf-ahead { opacity: 0.4; }


/* A clicked signal the call plays up to from its evidence: lit, not
   dimmed as ahead, until it is heard (quality-tracker.js focusEvidence). */
.quality-tracker .vf-sig.vf-visible.vf-ahead.is-selected { opacity: 1; }

.quality-tracker .vf-sig--static { cursor: default; }

}

/* Call metrics — a light neutral strip under the dark widget (its own
   layer, the LLM Battle card grey), one row of columns. A column with a
   verdict takes a light wash of the verdict color; its title and issue tag
   take the color itself. */
.vf-metrics {
  /* The DS palette (tokens/palette.css) in the light-theme roles. The DS
     has no light red/orange shades, so the verdict washes mix its colors
     into the surface grey, the way its own tags tint borders. */
  --m__metric-bg: var(--m__color-gray-50);
  --m__metric-text: var(--m__color-gray-800);
  --m__metric-caption: var(--m__color-gray-400);
}

.vf-metrics {
  display: grid;
  /* Two rows of separate tiles. */
  grid-template-columns: repeat(var(--m__metric-columns, 5), minmax(0, 1fr));
  gap: var(--m__gap-xxs);
  margin-top: var(--m__gap-xxs);
  font-family: var(--m__font-family-sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--m__metric-text);
}

@container (width <= 992px) {
  .vf-metrics { font-size: 14px; }
}

@container (width <= 768px) {
  .vf-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The player eases when its strips change height. */
.quality-tracker .vf-player .m__fingerprint__dataviz,
.quality-tracker .vf-player .m__fingerprint__player { transition: height var(--m__duration-medium) var(--m__easing-base); }

.quality-tracker .vf-player { transition: margin-bottom var(--m__duration-medium) var(--m__easing-base); }

/* ── Full page ─────────────────────────────────────────────────────────── */

/* The widget fills its embed (the page gives the embed its height — the
   viewport, or what the site header leaves of it): no plate rounding,
   everything pressed to the edges. On a wide screen it fits that height
   exactly — the top bar and the player keep their size, the columns take
   the rest and scroll inside; stacked (phones) it keeps its natural
   height and the page scrolls. */
.quality-tracker { border-radius: 0; }

@media (width > 768px) {
  .quality-tracker-embed { height: 100%; }
  .quality-tracker-frame { height: 100%; container-type: size; }
  .quality-tracker { display: flex; flex-direction: column; height: 100%; }
  .quality-tracker .vf-main { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .quality-tracker :is(.vf-transcript, .vf-signals, .vf-quality) { height: auto; min-height: 0; }
}

/* ── Quality column: score + the metric tiles ──────────────────────────── */

/* The third column in two rows: the four tiles at their own height at
   the bottom, the score plate taking the rest above them; in the dark
   theme; two by two when the columns stack. (Stretched tiles spread
   their lines apart.) */
.quality-tracker .vf-quality {
  display: grid;
  /* The plate stands 20em tall in both reads (the dashed 80% line clear
     of the head), never taking the room the tiles leave: Fraud's fewer
     tiles would grow it past Quality's, and a switch would jump it. When
     the column runs short (a low window, the Science lanes open) it
     scrolls instead of the plate riding over the tiles — with no
     scrollbar, so the column keeps its width whatever the system's
     scrollbar style. */
  grid-template-rows: 20em auto;
  align-content: start;
  gap: var(--m__gap-xxxs);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;

  &::-webkit-scrollbar { display: none; }
}

.quality-tracker .vf-quality__plate { height: auto; min-height: 20em; border-radius: var(--m__radius-l); }

/* Folding on scroll (foldQuality clips the plate to what's left of it,
   sets --vf-fold 0…1 on it and the cap, and draws its parts in). */
.quality-tracker :is(.vf-quality__cap, .vf-quality__head-value) { display: none; }
.quality-tracker .vf-quality--fold {
  .vf-quality__plate { grid-row: 1; grid-column: 1; position: sticky; top: 0; z-index: 2; }
  /* As the plate gets shorter its parts close in by themselves: the head
     at the top, the verdict at the foot, the big score held in the
     middle out of the flow (so it never pushes the verdict out). */
  .vf-quality__value { position: absolute; top: 50%; left: 0; right: 0; margin: 0; text-align: center; translate: 0 -50%; }
  /* …and the plate's own room closes up with them: the head's top padding
     kept at --m__gap-s, the verdict's foot 1 → 0.45em (foldQuality's bar height
     counts on these ends). */
  .vf-quality__tags { margin-top: auto; padding-bottom: calc(1em - var(--vf-fold, 0) * 0.55em); }
  .vf-quality__head { padding-top: var(--m__gap-s); }
  /* Once the big score is gone, the plate's ground fades into the fill's
     color — over the plate's own ground (the column's, or the poor red);
     the fill stays on it, a shade lighter, still showing the score. */
  &.vf-quality--folded .vf-quality__plate { background-color: color-mix(in srgb, currentcolor 22%, var(--vf-quality-ground, var(--m__bg))); }
  /* With no verdict yet the bar holds one line: centred in it. */
  &.vf-quality--folded .vf-quality__plate:not(.vf-quality__plate--verdict) {
    justify-content: center;
    .vf-quality__head { padding-top: 0; }
    /* (the small score rides the head's top padding: none here either) */
    .vf-quality__head-value { top: 0; }
    .vf-quality__tags { display: none; }
  }
  &.vf-quality--folded.vf-poor .vf-quality__plate { background-color: color-mix(in srgb, currentcolor 22%, var(--m__color-red-600)); }
  /* One after the other, never both at once: the big score fades out
     (0.35–0.6 of the fold, the 80% line with it),
     then a small one fades in beside "Quality" (0.7–0.95) — whole, just
     fading — "Quality" sliding left by half its width to keep the pair
     centred, and turning white with it. */
  .vf-quality__plate { --vf-fold-late: clamp(0, (var(--vf-fold, 0) - 0.7) / 0.25, 1); }
  .vf-quality__value { opacity: calc(1 - clamp(0, (var(--vf-fold, 0) - 0.35) / 0.25, 1)); }
  .vf-quality__head {
    color: var(--m__text-accent);
    transform: translateX(calc(var(--vf-fold-late) * -0.5 * (var(--vf-small-w, 0px) + 0.3em)));
  }
  .vf-quality__head-value {
    display: block; position: absolute; top: var(--m__gap-s); left: calc(100% - 0.1em); white-space: nowrap; color: inherit;
    opacity: var(--vf-fold-late);
  }
  /* The 80% line goes with the big score. */
  .vf-quality__threshold { opacity: calc(1 - clamp(0, (var(--vf-fold, 0) - 0.35) / 0.25, 1)); }
  /* Over the column's top padding and behind the bar's top corners only
     (its 1em radius; the bottom ones open onto the tiles, no gap, no fade
     for now): what scrolls on past the folded bar goes under the column's
     ground. Only once the plate is down to the bar. */
  .vf-quality__cap {
    --vf-cap-solid: calc(1.1em + 1em);
    display: block; position: sticky; top: -1.1em; z-index: 1; grid-row: 1; grid-column: 1 / -1; align-self: start; height: var(--vf-cap-solid); margin-top: calc(-1 * var(--m__gap-l));
    background-color: var(--vf-quality-ground, var(--m__bg));
    opacity: clamp(0, (var(--vf-fold, 0) - 0.9) * 10, 1); pointer-events: none;
  }
}

.quality-tracker .vf-metrics {
  --m__metric-bg: var(--m__bg-surface);
  --m__metric-text: var(--vf-text);
  --m__metric-caption: var(--vf-text-caption);
  grid-template-columns: minmax(0, 1fr);
  /* The column's one step between its plates (.vf-quality's gap). */
  gap: var(--m__gap-xxxs);
  margin: 0;
  font-size: var(--m__font-size-s);
}

@container (width <= 768px) {
  /* Stacked: the score plate on the left, as tall as the tiles stacked
     on the right. */
  .quality-tracker .vf-quality { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
  .quality-tracker .vf-quality__plate { min-height: 10em; }
}

/* ── Mid widths (769–1100px) ──────────────────────────────────────────── */

/* Three columns squeeze Quality into a sliver: the transcript and the
   signal stream share the top, Quality runs full width under them — the
   score plate on the left, the tiles two by two on the right. */
@container (768px < width <= 1100px) {
  .quality-tracker .vf-main {
    grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr);
    grid-template-rows: 21em auto;
    grid-template-areas: "transcript signals" "quality quality";
  }
  .quality-tracker .vf-quality {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-rows: auto;
    height: auto;
    border-left: 0;
    border-top: 1px solid var(--vf-border);
  }
  .quality-tracker .vf-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (width > 768px) {
  @container (768px < width <= 1100px) {
    .quality-tracker .vf-main { grid-template-rows: minmax(0, 1fr) auto; }
  }
}

/* Only the player plays, pauses and seeks — the rest of the plate is no
   button (bubbles, signals and tiles keep their own). */
.quality-tracker { cursor: default; }
.quality-tracker .vf-player { cursor: pointer; }

/* No issue tags on the plate: the tiles under it name the same issues
   (Reply time, Voice glitches, Agent interrupts), each in its verdict color. The plate keeps the score
   and the one-line verdict. */
.quality-tracker .vf-quality__tags .vf-issue.vf-visible { display: none; }

/* Record id — the standard DS UUID barcode (components/uuid.css): in the call line on one line, at the line's size; stacked, a size
   up, in the sheet "All details" opens (.m__detail-panel, on the host page). A
   click copies it ("Copied!"). */
:is(.quality-tracker, .m__detail-panel) .m__uuid {
  cursor: copy; outline: none;
  &:focus-visible { outline: 0.06rem solid currentColor; outline-offset: 0.12rem; border-radius: var(--m__radius-xs); }
  & .m__uuid__value { transition: color var(--m__duration-xslow) var(--m__easing-base); }
  & .m__uuid__barcode { transition: filter var(--m__duration-xslow) var(--m__easing-base); }
  &:is(:hover, :focus-visible, [data-copied]) {
    & .m__uuid__value::after { padding-inline-end: var(--m__gap-xxs); color: var(--m__text); }
    & .m__uuid__barcode { transition-duration: var(--m__duration-instant); }
  }
}
.m__detail-panel .m__uuid {
  --m__uuid-bg: var(--m__bg); --m__uuid-size: 1rem; --m__uuid-overlap: -0.4rem; --m__uuid-overlap-open: -0.32rem;
  display: inline-flex; gap: var(--m__gap-xxxs); font-family: var(--m__font-family-sans); font-size: var(--m__font-size-m); color: var(--m__text);
}
/* In the call line: dots and id on one line, on the page ground. The line
   sits on its text's baseline: the id gives it, the dots (no text, so no
   baseline of their own) are centered beside it. */
/* Under the cursor the dots fan out left to right and the whole id
   unfolds over the line, but nothing beside it moves: the fan is drawn
   with translate (dot i moves i × 0.06rem — the 0.3 → 0.24rem overlap),
   the id shifting by the fan's 11 × 0.06rem, so the layout keeps its
   packed width. */
.quality-tracker .vf-top__uuid {
  --m__uuid-bg: var(--vf-plate-bg); --m__uuid-size: 0.75rem; --m__uuid-overlap-open: -0.3rem;
  display: inline-flex; flex-direction: row; align-items: baseline; gap: var(--m__gap-xxxs); font-family: var(--m__font-family-semi-mono); font-size: var(--m__font-size-xs); color: var(--vf-text-caption);
  /* centred on the line's caps, not its box (the caps sit 0.05em above the box's middle) */
  & .m__uuid__barcode { align-self: center; translate: 0 -0.05em; }
  & .m__uuid__barcode > span { transition: translate var(--m__duration-base) var(--m__easing-base); }
  & .m__uuid__value { transition: translate var(--m__duration-base) var(--m__easing-base); }
  &:is(:hover, :focus-visible, [data-copied]) {
    & .m__uuid__barcode > span + span { translate: calc(var(--vf-uuid-i, 0) * 0.06rem) 0; transition: translate var(--m__duration-instant) var(--m__easing-base); }
    & .m__uuid__value { translate: 0.66rem 0; transition-duration: var(--m__duration-instant); }
    /* The unfolded id ends in a wider margin that fades into the line. */
    & .m__uuid__value::after {
      /* The inline barcode fans into the gap before the value. Keep the
         overlay on the value's edge so its ground cannot cover those dots. */
      inset-inline-start: 0;
      padding-inline-start: 0;
      padding-inline-end: 2rem;
      background: linear-gradient(to right, var(--m__uuid-bg) calc(100% - 2rem), transparent);
    }
  }
}

/* The PII/PHI spoiler itself (.vf-pii) is styled from widget.js
   (PII_CSS), the one copy for this frame and the host page's sheets. */

/* The switch rides the transcript's head at its right end, a button like
   the top bar's menus (the DS pill's look, science-lab.css);
   its padding and border hang into the head's own, so the head stays one
   line, level with the stream's. */
.quality-tracker .vf-transcript > .vf-panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--m__gap-l); }
.quality-tracker .vf-pii-toggle { margin: calc(-0.3em - 1px) 0; }

/* ── Fraud lens ─────────────────────────────────────────────────────────── */

/* The lens swaps the third column only: Quality reads the agent, Fraud
   risk the caller — a layer over the same call. The player, transcript
   and signal stream show the same data in both, the fraud behaviors
   (stream rows, transcript tags, timeline glyphs) included. */
.quality-tracker:not(.vf-lens-fraud) .vf-fraud,
.quality-tracker.vf-lens-fraud .vf-quality:not(.vf-fraud) { display: none !important; }
/* The overview (the column's first page with two reads or more): the
   reads' pages out of sight until a widget opens one. */
.quality-tracker.vf-lens-overview .vf-quality,
.quality-tracker:not(.vf-lens-overview) .vf-overview { display: none !important; }

/* The feed is a DS segmented control (secondary, S) at the bar's right
   end, by the studio menu, as the DS draws it; no margin of its own. The
   burger takes its height (quality-tracker-studio.js). */
.quality-tracker .vf-top__row :is(.vf-dropdown, .vf-segmented) { margin-left: auto; }
/* Its weight and padding the DS's; its words in the column tabs' caps
   (semi-mono, 0.06em: SIGNALS / BEHAVIORS), as Back's; its height the
   DS pills' (2.283em at the same 12px), its words centred. */
.quality-tracker .vf-segmented {
  flex: none; box-sizing: border-box; height: calc(var(--m__font-size-xs) * 2.283); margin-block: 0; min-inline-size: 0;
  & label { display: flex; align-items: center; padding-block: 0; font-family: var(--m__font-family-semi-mono); letter-spacing: 0.06em; text-transform: uppercase; }
  /* The caps centred by their own height, as Back's. */
  & label > span { text-box: trim-both cap alphabetic; }
}
/* The feed's menu right after the views' (xxxs apart, not the row's xxs). */
.quality-tracker .vf-top__row .vf-dropdown + .vf-dropdown { margin-left: calc(var(--m__gap-xxxs) - var(--m__gap-xxs)); }
/* The menus' pills are DS pills (components/caps.css) at a fixed 12px,
   the studio burger's twin (quality-tracker-page.css
   .quality-tracker-studio__toggle): its 27.4px height whatever the
   tracker's size. */
.quality-tracker .vf-dropdown__trigger { flex: none; font-size: var(--m__font-size-xs); }
.quality-tracker .vf-dropdown__trigger .m__button__icon { align-self: center; }
/* The list is the DS menu list (m__menu-button-list / -item), the mode
   shown in bold, checked at its right. menu-button.js moves it to <body>
   while open — hence unscoped, inheriting the body theme. */
.vf-dropdown__list .m__menu-button-item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--m__gap-xxl);
  &[aria-checked="true"] { font-weight: var(--m__font-weight-bold); }
  /* (The sprite's check is a thin polygon; stroked in its own color it
     reads as the DS checkbox's 2px mark.) */
  & .vf-dropdown__check { flex: none; width: 15px; height: 15px; fill: currentColor; stroke: currentColor; stroke-width: 0.9; stroke-linejoin: round; visibility: hidden; }
  &[aria-checked="true"] .vf-dropdown__check { visibility: visible; }
}

/* Caps labels in a box sit on their cap height, not the font's line: the
   Semi Mono's line keeps room for descenders a caps label never has, so
   the text rode high in its badge. Trimmed to cap height and baseline, the
   padding gives back what the trim took (0.135em a side: the line's 1em
   less the 0.73em cap height, halved), keeping each box its height. The
   trim takes on a block box only (not on a flex one, nor on a button
   left to its default), hence inline-block; the modes' pill keeps its flex
   row for the chevron, its label trimmed inside it. */


/* The agent's action (/sf, agent-actions.json): the row's last line, under
   the raw figures — the signal, why, then what to do — on a plate across
   the whole row, time column and all, its words centred (the DS menu items' corner): the page's
   surface (the transcript bubbles' grey), or a wash of the alarm's red
   with an alarm — the plate carries the color, the words are white. At the
   raw line's size (.m__signal__raw). Its ink is the stream's text, a step
   heavier, white under the cursor as the label (.m__signal__label) — and
   not red with an alarm: the alarm is the signal's, the plate alone sets
   the action apart, and a second red line read as a second alarm. Its word
   ACTION in the panel heads' caps; the instruction runs on after it and
   wraps under it as one paragraph, its last line never one word. */

.quality-tracker .m__signal-action-label,
.m__detail-panel__sig-action-label { margin-right: var(--m__gap-xxxs); font-size: 0.911em; text-transform: uppercase; letter-spacing: 0.06em; }
/* Under the cursor the row's ground lifts (the bubbles' hover mix); the
   plate steps up with it to stay a plate. */
/* Alarm actions keep their red ink, including hovered and selected rows. */

/* The third column: its head (the read shown, a link to the other),
   then that read, which scrolls under it; the column's frame moves from
   the panels to it. */
.quality-tracker .vf-scorecol {
  /* Its head is a feed column head (.vf-panel-head): on their line. */
  grid-area: quality; display: flex; flex-direction: column; box-sizing: border-box; min-height: 0; border-left: 1px solid var(--vf-border);
  & > .vf-quality { flex: 1 1 0; min-height: 0; height: auto; border: 0; padding-top: 0; }
}
@container (width <= 768px) { .quality-tracker .vf-scorecol { border-left: 0; border-top: 1px solid var(--vf-border); } }
/* Mid widths (Quality under the feeds, its row as tall as it is — see
   above): the read keeps its own height, not a share of the column's
   (which would close it to nothing), up to half the plate; past that it
   scrolls inside. */
@container (768px < width <= 1100px) {
  .quality-tracker .vf-scorecol { max-height: 50cqh; }
  .quality-tracker .vf-scorecol > .vf-quality { flex: 0 1 auto; }
}

/* The column head: the two reads as text tabs in the feed heads' type,
   each in Show PII/PHI's box (.vf-pii-toggle: its padding, 0.46em
   corners, the label trimmed to cap height) — the one shown on the view
   modes' menu ground (filled, no border), in white; the other bare, in
   caption grey, white under the cursor. Negative block margins keep the
   head at the feed heads' height and line; the first tab's box lines up
   with the cards' left edge. */
.quality-tracker .vf-lens-head { display: flex; align-items: center; gap: var(--m__gap-xxxxs); flex: none; }
/* One read or stream: a heading (widget.js headingHead), the transcript
   head's caption grey, its figure beside it. */
.quality-tracker .vf-lens-title { white-space: nowrap; }
.quality-tracker .vf-lens-title .vf-lens-tab__num { opacity: 1; }
/* The feed heads' text line (1.45) holds the head's height — the tabs,
   like Show PII/PHI, ride on it. */
.quality-tracker .vf-lens-head::before { content: ""; width: 0; height: 1.45em; margin-right: calc(-1 * var(--m__gap-xxxxs)); }
/* The DS caps tab (components/caps.css) at the head's size. */
.quality-tracker .vf-lens-tab { margin: calc(-0.3em - 1px) 0; font-size: inherit; }
/* Each read's figure after its name — the other one's a shade quieter,
   lit in that read's verdict color while it has news: gone worse than
   when last seen. */
.quality-tracker .vf-lens-tab__num {
  margin-left: var(--m__gap-xxxs); font-variant-numeric: tabular-nums; opacity: 0.7; transition: color var(--m__duration-xslow) var(--m__easing-base), opacity var(--m__duration-xslow) var(--m__easing-base);
  &:empty { display: none; }
}
.quality-tracker .vf-lens-tab[aria-pressed="true"] .vf-lens-tab__num { opacity: 1; }
/* …and turns white with the name under the cursor, on the tab's timing. */
.quality-tracker .vf-lens-tab:hover .vf-lens-tab__num { transition-duration: var(--m__duration-instant); }
.quality-tracker .vf-lens-tab[data-state="watch"] .vf-lens-tab__num { color: var(--m__color-orange-400); opacity: 1; }
.quality-tracker .vf-lens-tab[data-state="poor"] .vf-lens-tab__num { color: var(--m__error); opacity: 1; }
/* The name takes its figure's verdict color too, the tab reading as one. */
.quality-tracker .vf-lens-tab[data-state="watch"] { color: var(--m__color-orange-400); }
.quality-tracker .vf-lens-tab[data-state="poor"] { color: var(--m__error); }

/* The tabs share the plate's width half and half (--vf-tabs-w, set by
   widget.js), each at least as wide as its words. The plate sits on a
   ground of its own — the tab shown's (red for Poor handling / Threat),
   folded taking a wash of its verdict color (the fill's 22%). */
.quality-tracker .vf-scorecol {
  --vf-plate-ground: var(--m__bg-surface);
  & .vf-quality__plate { background-color: var(--vf-plate-ground); }
  & .vf-quality--fold.vf-quality--folded .vf-quality__plate { background-color: color-mix(in srgb, currentcolor 22%, var(--vf-plate-ground)); }
  & .vf-lens-tab { flex: 0 0 calc((var(--vf-tabs-w, 100%) - 0.3em) / 2); text-align: center; }
  /* Up under the tabs to the tiles' gap (--vf-tabs-pull, set by widget.js). */
  & > .vf-quality { margin-top: calc(-1 * var(--vf-tabs-pull, 0px)); }
}
/* "Verdicts": the column's heading, set as the transcript's (the
   panel head's caps, caption grey); on a read's page the way back, an
   arrow before it (the top bar's Back's, at the caps' size), lighting
   under the cursor. The reads' tabs aren't shown: the widgets lead in. */
.quality-tracker .vf-lens-all {
  display: inline-flex; align-items: baseline; gap: var(--m__gap-xxxs); margin: 0; padding: 0; border: 0; background: none;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: default;
  transition: color var(--m__duration-base) var(--m__easing-base);
  /* (Centred on the caps, not the line: they sit high in it.) */
  & .vf-lens-all__back { display: none; align-self: center; width: 1.1em; height: 1.1em; translate: 0 -0.1em; fill: currentColor; }
  &[aria-pressed="false"] { cursor: pointer; }
  &[aria-pressed="false"] .vf-lens-all__back { display: block; }
  /* "All verdicts" on a page, "Verdicts" over them. */
  &[aria-pressed="true"] .vf-lens-all__all { display: none; }
  &[aria-pressed="false"]:hover { color: var(--m__text-link-hover); transition-duration: var(--m__duration-instant); }
}
.quality-tracker .vf-scorecol__head > .vf-lens-tab { display: none !important; }
/* The verdicts: the tiles' plates (.m__metric-card: ground, corner, padding,
   the column's one gap), one a read — its name in the tiles' caps title,
   its figure at the plate's headline size, its verdict under it — in its
   page's plate's colors (.vf-quality): Poor on the plate's red, all
   white; Watch on the tiles' orange wash; Good in green. Under the cursor
   the ground lifts as the plate's (brightness), in at once, out eased. */
.quality-tracker .vf-overview {
  flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: var(--m__gap-xxxs);
  /* (No gap off the head: the widgets start, and cut, at its foot, as
     the transcript's and the signals' do.) */
  padding: 0 var(--m__gap-l) var(--m__gap-l); overflow-y: auto; scrollbar-width: none;
}
/* Mid widths (the column a band under the feeds): the widgets in a row
   of three, as the tiles there. */
@container (768px < width <= 1100px) {
  .quality-tracker .vf-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; }
}
/* The verdicts' Add, on their head's right (Show PII/PHI's pill, as
   Filter on the stream's): the overview's only. */
.quality-tracker .vf-scorecol__head { justify-content: space-between; }
.quality-tracker .vf-scorecol__add { text-decoration: none; }
.quality-tracker:not(.vf-lens-overview) .vf-scorecol__add { display: none; }
/* A widget's grip: six dots at its top right, in its title's ink, shown
   with the widget's hover (a room round them to catch). Held, the widget
   lifts (lighter, a shadow) and the cursor grabs everywhere. */
/* A model's page: the Quality page's plate and tiles (.vf-quality), on
   the plain plate ground whatever Quality's verdict, the word at the
   plate's headline size; nothing to open under it. */
.quality-tracker:not(.vf-lens-model) .vf-model,
.quality-tracker.vf-lens-model .vf-quality:not(.vf-model),
.quality-tracker .vf-model[hidden] { display: none !important; }
.quality-tracker .vf-model {
  --vf-plate-ground: var(--m__bg-surface);
  & .vf-quality__plate { cursor: default; &:hover { filter: none; } }
  & .vf-quality__value { font-size: var(--m__font-size-xxxl); }
  /* Its card at its own height, as the lab's deck sets them. */
  & .vf-lab-card { flex: none; height: auto; overflow: visible; font-size: var(--m__font-size-xs); }
  & .vf-lab-card[hidden] { display: none; }
  /* The hairline under the sides' names, across the table, where the
     Talk balance card has its share bar. */
  /* More voices than two (a supervisor in): the label first, left, and
     a column a voice, each at its edge. */
  & .vf-model__table--voices {
    /* The labels whole; the voices' columns one width, sharing the rest
       (a name too long for its column cut short, in full on hover). */
    grid-template-columns: max-content repeat(var(--vf-voices), minmax(0, 1fr)); column-gap: var(--m__gap-xs);
    & .vf-lab-table__label { white-space: nowrap; text-align: left; }
    & :is(.vf-lab-table__agent, .vf-lab-table__caller) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    /* (The voices' names in plain type at the head's size, not its caps:
       three of them leave the labels room.) */
    & .vf-lab-table__row:first-child > * { font-family: inherit; letter-spacing: normal; text-transform: none; }
    & :is(.vf-lab-table__agent, .vf-lab-table__caller) { text-align: right; }
  }
  & .vf-model__rule { grid-column: 1 / -1; height: 1px; margin: var(--m__gap-xxxxs) 0 var(--m__gap-xxxs); background-color: var(--vf-border); }
}
/* (Its line kept with no verdict yet: the widgets stay one height.) */

.quality-tracker:not(.vf-lens-fraud) .vf-scorecol--quality-poor,
.quality-tracker.vf-lens-fraud .vf-scorecol--fraud-poor { --vf-plate-ground: var(--m__color-red-600); }


/* A tag's glyph (DS caps tag icon): the timeline's mark for that kind.
   The robot centres on its head, not its box: the antenna takes the top
   fifth, so the head sits low in it (its middle 3.6 of 32 units down); a
   size smaller, so the antenna stays inside a filled tag. */
:is(.quality-tracker .m__signal__type, .m__detail-panel__sig-type) .vf-tag-icon--voice { left: 0.42em; width: 1.05em; height: 1.05em; transform: translateY(calc(-50% - 1.05em * 3.6 / 32)); }
.quality-tracker .vf-sig[data-alarm="high"] .vf-tag-count { color: var(--vf-stream-alarm); }

/* ── Details panel ─────────────────────────────────────────────────────
   The tile's sheet (quality-tracker.js buildDetails), on <body>: the DS
   side popover (`m__popover m__rounded`, the idea preview on the Voice AI
   Intelligence tool page), inheriting the active theme; the DS modal's close button pinned in the corner. */
/* The signal stream's Filter: the DS table filter (table-filters.js, the
   Review Queue's), its parts restyled for the studio — the button the
   head's caps (Show PII/PHI's), the menu and its values on the plate's
   surface, the conditions picked over the stream with Reset. (The
   dashboard's review-filter styles stay out of this page's bundle.) */
/* (A plain heading now, as the transcript's: the title at the left, not
   over the rows' columns.) */
.quality-tracker.quality-tracker :is(.vf-signals-col, .vf-signals) > .vf-panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--m__gap-s); }
.quality-tracker :is(.vf-signals-col, .vf-signals) > .vf-panel-head > .vf-lens-title { flex: 1 1 auto; text-align: left; }
/* (Blocks, not flex boxes: the button's caps sit on the head's baseline,
   as Show PII/PHI's do; the head no taller than the transcript's.) */
.quality-tracker .vf-lab-filter { position: relative; display: block; text-transform: none; letter-spacing: normal; }
.quality-tracker .vf-lab-filter .review-filter-builder { position: relative; display: block; }
.quality-tracker .vf-signals-col > .vf-panel-head::before { display: none; }
.quality-tracker .vf-lab-filter [data-filter-open] { text-transform: uppercase; letter-spacing: 0.06em; }
.quality-tracker .vf-lab-filter [data-filter-open][aria-expanded="true"] { color: var(--m__text-link-hover); }
/* The menu and its values: the DS menu list's (m__menu-button-list /
   -item, as the studio's own menu), each value list opening to the
   right of its category. */
.quality-tracker :is(.review-filter-popup, .review-filter-options) {
  position: absolute; z-index: 20; box-sizing: border-box; padding: 0.25rem;
  border: var(--m__border-width-s) solid var(--m__border); border-radius: var(--m__widget-radius);
  background-color: var(--m__bg); box-shadow: 0 4px 20px color-mix(in srgb, #000 22%, transparent);
  color: var(--m__text); font-family: var(--m__font-family-sans); font-size: var(--m__font-size-m); font-weight: var(--m__font-weight-regular); line-height: 1.45;
}
.quality-tracker .review-filter-popup { top: calc(100% + var(--m__gap-xxxs)); right: 0; width: 9rem; }
.quality-tracker .review-filter-options { top: calc(-1 * var(--m__border-width-s)); left: calc(100% + 0.35rem); width: 12rem; max-height: 18rem; overflow-y: auto; scrollbar-width: none; }
.quality-tracker .review-filter-popup[hidden], .quality-tracker .review-filter-options[hidden], .quality-tracker .review-filter-strip[hidden] { display: none; }
.quality-tracker .review-filter-options-title { display: none; }
.quality-tracker .review-filter-popup.is-direct-filter { width: 12rem; }
.quality-tracker .review-filter-popup.is-direct-filter .review-filter-categories { display: none; }
.quality-tracker .review-filter-popup.is-direct-filter .review-filter-options { position: static; width: auto; padding: 0; border: 0; box-shadow: none; }
.quality-tracker .review-filter-popup button {
  display: flex; align-items: center; justify-content: space-between; gap: var(--m__gap-xs); box-sizing: border-box; width: 100%; padding: 0.45rem 0.65rem;
  border: 0; border-radius: var(--m__radius-m); background: none; color: var(--m__text); font: inherit; text-align: left; cursor: pointer;
  transition: background-color var(--m__duration-base) var(--m__easing-base), color var(--m__duration-base) var(--m__easing-base);
}
.quality-tracker .review-filter-popup button:hover,
.quality-tracker .review-filter-popup button.is-active,
.quality-tracker .review-filter-popup button[aria-pressed="true"] { background-color: var(--m__bg-surface); color: var(--m__text-link-hover); transition-duration: var(--m__duration-instant); }
.quality-tracker .review-filter-popup svg { flex: none; width: 0.65rem; height: 0.65rem; fill: currentColor; }
/* (The chevron points to the values it opens: right.) */
.quality-tracker .review-filter-categories svg { transform: rotate(-90deg); }
.quality-tracker .review-filter-popup button[aria-pressed="false"] .moderation-sort-check { visibility: hidden; }
.quality-tracker .vf-lab-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--m__gap-xxs); padding: var(--m__gap-xxxs) var(--m__gap-l) var(--m__gap-xs); }
/* A condition picked: Filter's pill (Show PII/PHI's, science-lab.css),
   its name in the caption grey, its value in white, its × in it; Reset
   bare caps at the same size, right after the last one. */

.quality-tracker.vf-overview-dragging, .quality-tracker.vf-overview-dragging * { cursor: grabbing !important; user-select: none; }

.quality-tracker { --vf-stream-alarm: var(--m__error); }

/* Science lab (science-lab.js) — experimental Science-mode layers over
   the Quality Tracker. Everything here shows only under `.vf-science`
   but the RAW buttons: Zen keeps those (the inspector). Tokens come from the page (bundle.css, the root's
   dark theme). */

.quality-tracker {
  --vf-lab-link: var(--m__color-blue-500); /* the brush, the compare overlay */
  --vf-lab-alarm: var(--m__color-red-400);
  --vf-lab-watch: var(--m__color-orange-400);
  /* Agent uses the theme-aware first chart series; caller uses text grey. */
  --vf-lab-agent: var(--m__chart-model-1);
  --vf-lab-caller: var(--vf-text);
}

/* Anything the lab hides. */
.quality-tracker .vf-lab-hidden { display: none !important; }

/* ── Chips (the signal badge look, pressed = white outline, no fill) ─ */

/* The DS caps button (components/caps.css) as a toggle chip, a size
   smaller and a little tighter. */
.quality-tracker .vf-lab-chip { font-size: var(--m__font-size-xxxs); padding-inline: var(--m__gap-xxxs); }
.quality-tracker .vf-lab-chip.m__button-caps--icon { padding-block: var(--m__gap-xxxxs); }
/* A filter chip waits for its first row in the stream (a catalog kind,
   /sf, for its first row over threshold), then fades in. */
/* (!important: the chips' cap-trim rule further down sets their display
   at the same weight and would bring an unheard chip back.) */
.quality-tracker .vf-lab-chip.vf-lab-unheard { display: none !important; }
.quality-tracker .vf-lab-filters .vf-lab-chip { animation: vf-lab-chip-in var(--m__duration-base) var(--m__easing-base); }
@keyframes vf-lab-chip-in { from { opacity: 0; } }

/* ── Layers: one menu in the fingerprint's corner ─────────────────── */


/* The fingerprint's corner (components/fingerprint.css .m__fingerprint__corner): Mute
   in every mode, Layers in Science only; the lab fills Layers' list. */
.quality-tracker:not(.vf-science) .m__fingerprint__layers-button { display: none; }

/* The list's rows (components/fingerprint.css .m__fingerprint__layer: the mark, the
   name, the check at the right while the layer is on). */
/* Here the glyphs in the tracker's white, as on the fingerprint. */
.quality-tracker .m__fingerprint__layer-swatch.glyph { color: var(--vf-white); }

/* The layers, switched off: the fingerprint's own pieces (fingerprint.js)
   hidden — the waits, the stars and the signal circles in Science, the
   robots and the static in every view. */
.quality-tracker.vf-science:not(.vf-lab-latency) :is(.m__fingerprint__latency, .m__fingerprint__latency-figures) { display: none; }
.quality-tracker.vf-science:not(.vf-lab-events) .m__fingerprint__indicator:not(.m__fingerprint__mark) { display: none; }
.quality-tracker.vf-science:not(.vf-lab-signals) .m__fingerprint__mark.signal { display: none; }
.quality-tracker:not(.vf-lab-voice) .deepfake,
.quality-tracker:not(.vf-lab-line) .noisy { display: none; }
.quality-tracker.vf-science:not(.vf-lab-emotions) .m__fingerprint__clip .m__fingerprint__clip-visualization::after { opacity: 0 !important; }
/* With the emotions off the clips are grey, and so are the outlines the
   glyphs take from them. */
.quality-tracker.vf-science:not(.vf-lab-emotions) .m__fingerprint__indicator .m__fingerprint__icon .m__fingerprint__icon-outline { fill: rgba(var(--emotion-neutral-RGB), 1) !important; }
.quality-tracker.vf-science:not(.vf-lab-emotions) .m__fingerprint__indicator { --m__fingerprint-mark-ring: rgba(var(--emotion-neutral-RGB), 1) !important; --m__fingerprint-ring: rgba(var(--emotion-neutral-RGB), 1) !important; }

/* ── Hover tip ─────────────────────────────────────────────────────── */

/* The DS tooltip (components/tooltip.css), placed by bindTips inside the
   widget, from its corner (not centred on a point); its line breaks kept. */
.quality-tracker .vf-lab-tip { position: absolute; transform: none; white-space: pre-line; }

/* The m__fingerprint__behaviour glyphs a filter takes out go faint. */
.quality-tracker.vf-science .m__fingerprint__indicator.vf-lab-dim { opacity: 0.18 !important; }

/* ── Signal stream filters in the head ─────────────────────────────── */

.quality-tracker .vf-lab-filters { display: none; letter-spacing: 0; text-transform: none; }
/* In Science the chips wrap in a row of their own under the pinned
   heading, set like it (its size, its side padding), and scroll away. */
.quality-tracker.vf-science .vf-lab-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--m__gap-xxxxs);
  padding: 0 var(--m__gap-l) var(--m__gap-s); font-family: var(--m__font-family-semi-mono); font-size: var(--m__font-size-xs); color: var(--vf-text-caption);
}
/* The filters read as the signal rows' tags (caps.css .m__tag-caps): the
   rows' tag size, its padding and corner. */
.quality-tracker .vf-lab-filters .vf-lab-chip { font-size: var(--m__font-size-xs); border-radius: 0.46em; }
.quality-tracker .vf-lab-filters .vf-lab-chip:not(.m__button-caps--icon) { padding: 0.335em 0.45em; }

/* ── Brush ─────────────────────────────────────────────────────────── */

.quality-tracker .vf-lab-brush {
  position: absolute; top: 0; bottom: 0; z-index: 4; box-sizing: border-box; background-color: color-mix(in srgb, var(--vf-lab-link) 12%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--vf-lab-link) 80%, transparent); border-right: 1px solid color-mix(in srgb, var(--vf-lab-link) 80%, transparent); pointer-events: none;
}
.quality-tracker:not(.vf-science) .vf-lab-brush { display: none; }
.quality-tracker .vf-lab-brush__label { position: absolute; left: 0; top: 0; padding: var(--m__gap-xxxxs); font-family: var(--m__font-family-semi-mono); font-size: 0.65em; letter-spacing: 0.04em; white-space: nowrap; color: var(--vf-white); background-color: color-mix(in srgb, var(--vf-lab-link) 70%, var(--m__bg)); border-radius: 0 0 var(--m__radius-xs) 0; }
.quality-tracker .vf-lab-brush__clear { position: absolute; right: 0; top: 0; width: 1.4em; height: 1.4em; padding: 0; border: 0; border-radius: 0 0 0 var(--m__radius-xs); background-color: color-mix(in srgb, var(--vf-lab-link) 70%, var(--m__bg)); color: var(--vf-white); font-size: 0.9em; line-height: 1; cursor: pointer; pointer-events: auto; }
.quality-tracker .vf-lab-brush__clear:hover { background-color: var(--vf-lab-link); }
.quality-tracker.vf-science .vf-utt.vf-lab-out { opacity: 0.3; }
/* The brush is off for now (science-lab.js BRUSH): no crosshair either.
.quality-tracker.vf-science.vf-completed .m__fingerprint__dataviz { cursor: crosshair; } */

/* ── Jump chips on the tiles ───────────────────────────────────────── */

/* A tile's dot axis, under its figures (Science only). */
.quality-tracker .vf-lab-jumps { display: none; margin-top: var(--m__gap-xs); }
.quality-tracker.vf-science .vf-lab-jumps:not(:empty) { display: block; }
/* The counting tiles' chips: a wrapping row. */
.quality-tracker.vf-science .vf-lab-jumps--chips:not(:empty) { display: flex; flex-wrap: wrap; gap: var(--m__gap-xxxs); }
/* A jump has the RAW buttons' small caps size and padding (.vf-lab-inspect)
   and the tags' tracking and corner, outlined as the signal tags are: it
   is a signal's moment, not a control's fill. */
/* On a tile the chips take the tile's own color, whatever their item's
   level: its accent when it's watch or fail, the quiet grey otherwise. */
.quality-tracker .m__metric-card .m__evidence-button:not(:hover) { color: var(--vf-text-caption); border-color: var(--vf-border); }
.quality-tracker .m__metric-card:is([data-status="watch"], [data-status="fail"]) .m__evidence-button:not(:hover) { color: var(--m__metric-accent); border-color: color-mix(in srgb, var(--m__metric-accent) 55%, transparent); }
/* Hover: the outline and the content go white at once, easing back (the DS's base); the time keeps its lighter share. */
.quality-tracker .m__evidence-button:hover { border-color: var(--m__text-link-hover); color: var(--m__text-link-hover); transition-duration: var(--m__duration-instant); }
/* Under a hovered tile its chips go white with the rest of it, the
   outline a lighter share (the chip under the cursor takes it full). The
   words light at once, with the tile's; the outline eases (the DS's
   base), so leaving a chip for its tile dims it back, not snaps. */

/* Clip inspectors use the DS transcript bubble's __action slot. */
/* In a signal row: after its value, in the row's flow, a size smaller —
   on the row's baseline, then lifted so its plate centres on the kind's
   tag beside the label (sat on the baseline, its smaller box hangs low).
   Its word flush with the cell's right edge, as the other columns' text:
   the plate, there only under the cursor, hangs out by its padding. */
.quality-tracker .vf-lab-inspect--sig { display: inline-block; position: relative; inset: -0.15em auto auto auto; translate: none; margin-left: var(--m__gap-xxxs); margin-right: calc(-1 * var(--m__gap-xxxxs)); font-size: var(--m__font-size-xxxs); vertical-align: baseline; }
/* RAW uses the shared subtle caps action's resting and hover colors. */
/* Hovering the containing row first hints at its inspector action. Direct
   hover and keyboard focus keep the stronger blue treatment from the DS. */
.quality-tracker .vf-sig:hover .vf-lab-inspect--sig:not(:hover, :focus-visible):not(:disabled) {
  background-color: color-mix(in srgb, var(--m__text-accent) 5%, transparent);
  transition-duration: var(--m__duration-instant);
}
/* Show PII/PHI at the corner's buttons' size and side padding
   (components/fingerprint.css .m__fingerprint__corner), in their full colors. */


/* ── Deck of derived cards: under the Quality tiles ─────────────────── */

/* (spaced like the tiles above them: the column's 0.4em) */
.quality-tracker .vf-lab-deck { display: none; flex-direction: column; gap: var(--m__gap-xxxs); cursor: default; }
.quality-tracker.vf-science .vf-lab-deck { display: flex; }
.quality-tracker .vf-lab-deck .vf-lab-card { flex: 0 0 auto; width: auto; height: auto; overflow: visible; }
.quality-tracker .vf-lab-deck .vf-lab-card__body { overflow: visible; }

.quality-tracker .vf-lab-card { flex: 0 0 22em; display: flex; flex-direction: column; box-sizing: border-box; height: 17.5em; padding: var(--m__gap-s); border-radius: var(--m__radius-l); background-color: var(--vf-surface); overflow: hidden; }
.quality-tracker .vf-lab-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--m__gap-xxs); margin-bottom: var(--m__gap-xxs); }
.quality-tracker .vf-lab-card__title { font-family: var(--m__font-family-semi-mono); font-size: var(--m__font-size-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--vf-text-caption); }
.quality-tracker .vf-lab-card__hint { font-size: 0.65em; color: color-mix(in srgb, var(--vf-text-caption) 70%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quality-tracker .vf-lab-card__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--m__text-caption) 40%, transparent) transparent; font-size: var(--m__font-size-xs); }
.quality-tracker .vf-lab-card__empty { margin: var(--m__gap-xxxs) 0 0; font-size: 0.85em; color: var(--vf-text-caption); }


/* Caller waits: a dot strip. */
.quality-tracker .vf-lab-dots { display: block; width: 100%; height: auto; overflow: visible; }
.quality-tracker .vf-lab-dots__axis { stroke-width: 1; }
.quality-tracker .vf-lab-dots__axis--ok { stroke: color-mix(in srgb, var(--m__text-accent) 45%, transparent); }
.quality-tracker .vf-lab-dots__axis--watch { stroke: var(--vf-lab-watch); }
.quality-tracker .vf-lab-dots__axis--fail { stroke: var(--vf-lab-alarm); }
.quality-tracker .vf-lab-dots__word { font-family: var(--m__font-family-semi-mono); font-size: var(--m__font-size-xxxs); letter-spacing: 0.06em; text-transform: uppercase; cursor: help; }
.quality-tracker .vf-lab-dots__word--ok { fill: var(--vf-text-caption); }
.quality-tracker .vf-lab-dots__word--watch { fill: var(--vf-lab-watch); }
.quality-tracker .vf-lab-dots__word--fail { fill: var(--vf-lab-alarm); }
/* Ringed in the ground under it — the tile's (with its verdict tint and
   hover lift) or the card's — so overlapping dots stand apart. */
.quality-tracker .m__metric-card .vf-lab-dots__dot { stroke: var(--m__metric-ring-surface, var(--m__metric-surface)); transition: stroke var(--m__duration-xslow) var(--m__easing-base); }
.quality-tracker .m__metric-card:hover .vf-lab-dots__dot { transition-duration: var(--m__duration-instant); stroke: var(--m__metric-ring-hover-surface, var(--m__metric-hover-surface)); }
.quality-tracker .vf-lab-card .vf-lab-dots__dot { stroke: var(--vf-surface); }
.quality-tracker .vf-lab-dots__dot { stroke-width: 1.5; opacity: 1; cursor: pointer; }
.quality-tracker .vf-lab-dots__dot--ok { fill: color-mix(in srgb, var(--m__text-accent) 80%, transparent); }
.quality-tracker .vf-lab-dots__dot--watch { fill: var(--vf-lab-watch); }
.quality-tracker .vf-lab-dots__dot--fail { fill: var(--vf-lab-alarm); }
.quality-tracker .vf-lab-dots__tick { fill: var(--vf-text-caption); font-family: var(--m__font-family-semi-mono); font-size: var(--m__font-size-xxxs); }
.quality-tracker .vf-lab-dots__tickmark { stroke: var(--vf-text-caption); stroke-width: 1; }
/* A threshold's value beside its zone word takes the zone's color. */
.quality-tracker .vf-lab-dots__tick.vf-lab-dots__value--ok { fill: var(--vf-text-caption); }
.quality-tracker .vf-lab-dots__tick.vf-lab-dots__value--watch { fill: var(--vf-lab-watch); }
.quality-tracker .vf-lab-dots__tick.vf-lab-dots__value--fail { fill: var(--vf-lab-alarm); }
/* The pace axis (Talk balance): the zones out of the norm stay quiet —
   no orange there to mix with the dots; the dots take their speaker's
   color, agent purple and caller grey. */
.quality-tracker .vf-lab-dots__axis--dim { stroke: color-mix(in srgb, var(--m__text-accent) 14%, transparent); }
.quality-tracker .vf-lab-dots__word--dim, .quality-tracker .vf-lab-dots__tick.vf-lab-dots__value--dim { fill: color-mix(in srgb, var(--vf-text-caption) 70%, transparent); }
.quality-tracker .vf-lab-dots__dot--agent { fill: color-mix(in srgb, var(--vf-lab-agent) 85%, transparent); }
.quality-tracker .vf-lab-dots__dot--caller { fill: var(--vf-lab-caller); }
/* From the counters to the axis the room the Reply time tile keeps under its note (10px). */
.quality-tracker .vf-lab-pace { margin: var(--m__gap-xs) 0 var(--m__gap-xxxxs); }
/* A counter set like the tiles': the value at their 22.4px (1.4em of the
   16px base; the card body is 0.8em), its note right under it. */
.quality-tracker .vf-lab-card__value { font-size: var(--m__font-size-l); font-weight: var(--m__font-weight-medium); line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--m__text-accent); }
.quality-tracker .vf-lab-card__value { white-space: nowrap; }
/* The unit at the value's own size, as the tiles' seconds. */
.quality-tracker .vf-lab-card__unit { font-size: inherit; }
.quality-tracker .vf-lab-pace__counters { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: var(--m__gap-s); }
.quality-tracker .vf-lab-pace__counter--agent .vf-lab-card__value { color: var(--vf-lab-agent); }
.quality-tracker .vf-lab-pace__counter--caller .vf-lab-card__value { color: var(--vf-lab-caller); }
.quality-tracker .vf-lab-pace__name { margin-top: var(--m__gap-xxxxs); font-size: var(--m__font-size-xs); }
.quality-tracker .vf-lab-legend__agent { color: var(--vf-lab-agent); }
.quality-tracker .vf-lab-legend__caller { color: var(--vf-lab-caller); }

/* Topics. */
/* (at the dot axes' words' rendered 9.8px: their 8.5px scaled up 1.15) */
.quality-tracker .vf-lab-topics__axis { display: flex; justify-content: space-between; margin: var(--m__gap-xxxxs) 0 0; font-family: var(--m__font-family-semi-mono); font-size: var(--m__font-size-xxs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--vf-text-caption); cursor: help; }
.quality-tracker .vf-lab-topic { padding: var(--m__gap-xxxxs) 0 var(--m__gap-xxxxs); }
.quality-tracker .vf-lab-topic__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--m__gap-xxs); margin-bottom: var(--m__gap-xxxxs); }
.quality-tracker .vf-lab-topic__name { min-width: 0; color: var(--vf-text-caption); line-height: 1.25; }
/* A bare line from −1 to +1, the 0 a taller tick: no colored ground to
   judge for the dots — where they sit is the reading. */
.quality-tracker .vf-lab-topic__track { position: relative; height: 0.7em; background: linear-gradient(color-mix(in srgb, var(--m__text-accent) 22%, transparent), color-mix(in srgb, var(--m__text-accent) 22%, transparent)) center / 100% 1px no-repeat; }
.quality-tracker .vf-lab-topic__zero { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background-color: color-mix(in srgb, var(--m__text-accent) 40%, transparent); }
.quality-tracker .vf-lab-topic__dot { position: absolute; top: 50%; width: 0.7em; height: 0.7em; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 1.5px var(--vf-surface); cursor: default; transition: transform var(--m__duration-xslow) var(--m__easing-base), filter var(--m__duration-xslow) var(--m__easing-base), opacity var(--m__duration-slow) var(--m__easing-base); }
/* Until the call is done the lines stand empty (science-lab.js: the scores are the whole call's). */
.quality-tracker .vf-lab-topics--pending .vf-lab-topic__dot { opacity: 0; pointer-events: none; }
/* Under the cursor, as on the dot axes: grown at once (back over 0.5s),
   lit, its reading over it in its color, set like theirs. */
.quality-tracker .vf-lab-topic__dot:hover { z-index: 1; transform: translate(-50%, -50%) scale(1.6); filter: brightness(1.2); transition-duration: var(--m__duration-instant); }
.quality-tracker .vf-lab-topic__label { position: absolute; bottom: calc(50% + 0.75em); transform: translateX(-50%); font-family: var(--m__font-family-semi-mono); font-size: var(--m__font-size-xxs); font-weight: var(--m__font-weight-medium); white-space: nowrap; padding: 0 var(--m__gap-xxxxs); border-radius: var(--m__radius-xs); background-color: var(--vf-surface); pointer-events: none; opacity: 0; transition: opacity var(--m__duration-xslow) var(--m__easing-base); }
.quality-tracker .vf-lab-topic__dot:hover + .vf-lab-topic__label { opacity: 1; transition-duration: var(--m__duration-instant); }
.quality-tracker .vf-lab-topic__label--agent { color: var(--vf-lab-agent); }
.quality-tracker .vf-lab-topic__label--caller { color: var(--vf-lab-caller); }
.quality-tracker .vf-lab-topic__dot--agent { background-color: var(--vf-lab-agent); }
.quality-tracker .vf-lab-topic__dot--caller { background-color: var(--vf-lab-caller); }
/* The gap between the two sides (science-lab.js): a thick bar under the
   dots, one color by how wide it is — grey, Watch orange, Poor red, the
   tiles' — solid, over the scale's line and its 0 mark; its size over it on hover, its
   word (Watch, Poor) right of the topic's name. */
.quality-tracker .vf-lab-topic { --vf-gap-color: color-mix(in srgb, var(--m__text-accent) 45%, var(--vf-surface)); }
.quality-tracker .vf-lab-topic[data-gap="watch"] { --vf-gap-color: var(--vf-lab-watch); }
.quality-tracker .vf-lab-topic[data-gap="poor"] { --vf-gap-color: var(--m__color-red-400); }
.quality-tracker .vf-lab-topic__gap {
  position: absolute; top: 50%; height: 0.36em; border-radius: var(--m__radius-xs); transform: translateY(-50%);
  /* A wash of its color on the card, like a verdict tile's ground; the dots and the words keep the full color. */
  background-color: color-mix(in srgb, var(--vf-gap-color) 32%, var(--vf-surface));
  transition: opacity var(--m__duration-slow) var(--m__easing-base), filter var(--m__duration-xslow) var(--m__easing-base);
}
.quality-tracker .vf-lab-topic__status { flex: none; line-height: 1.25; color: var(--vf-gap-color); }
.quality-tracker .vf-lab-topics--pending .vf-lab-topic__status { opacity: 0; }
.quality-tracker .vf-lab-topics--pending .vf-lab-topic__gap { opacity: 0; pointer-events: none; }
.quality-tracker .vf-lab-topic__gap:hover { filter: brightness(1.2); transition-duration: var(--m__duration-instant); }
.quality-tracker .vf-lab-topic__gap:hover + .vf-lab-topic__label { opacity: 1; transition-duration: var(--m__duration-instant); }
/* The gap's size in the bar's own color (grey, Watch orange, Poor red). */
.quality-tracker .vf-lab-topic__label--gap { color: var(--vf-gap-color); }

/* Talk balance. */
.quality-tracker .vf-lab-share { grid-column: 1 / -1; display: flex; gap: var(--m__gap-xxxxs); height: 4px; margin: var(--m__gap-xxxxs) 0 var(--m__gap-xxxxs); cursor: help; }
.quality-tracker .vf-lab-share__agent { flex: 0 0 auto; background-color: var(--vf-lab-agent); transition: width 0.7s cubic-bezier(0.33, 1, 0.68, 1); } /* slides as the counts do (700 ms, ease-out) */
.quality-tracker .vf-lab-share__caller { flex: 1 1 auto; background-color: var(--vf-lab-caller); }
/* The sides never narrower than their words ("Caller" in its caps ran
   past the card's edge in a narrow column): the label between them wraps
   instead. */
.quality-tracker .vf-lab-table { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr); column-gap: var(--m__gap-m); row-gap: var(--m__gap-xxxxs); margin: var(--m__gap-xxxs) 0 var(--m__gap-xxxs); }
.quality-tracker .vf-lab-table__row { display: contents; }
.quality-tracker .vf-lab-table__row[data-tip] > * { cursor: help; }
.quality-tracker .vf-lab-table__label { color: var(--vf-text-caption); text-align: center; }
.quality-tracker .vf-lab-table__agent, .quality-tracker .vf-lab-table__caller { font-family: var(--m__font-family-semi-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quality-tracker .vf-lab-table__agent { text-align: left; }
.quality-tracker .vf-lab-table__caller { text-align: right; }
.quality-tracker .vf-lab-table__agent { color: var(--vf-lab-agent); }
.quality-tracker .vf-lab-table__caller { color: var(--vf-lab-caller); }
.quality-tracker .vf-lab-table__row:first-child > * { font-family: var(--m__font-family-semi-mono); font-size: var(--m__font-size-xxs); letter-spacing: 0.06em; text-transform: uppercase; }

/* Text flags. */
.quality-tracker .vf-lab-flag { display: grid; grid-template-columns: 2em 1fr auto; align-items: center; gap: var(--m__gap-xxxs); padding: var(--m__gap-xxxxs) 0; border-bottom: 1px solid var(--vf-separator); }
.quality-tracker .vf-lab-flag:last-child { border-bottom: 0; }
.quality-tracker .vf-lab-flag__n { font-weight: var(--m__font-weight-bold); font-variant-numeric: tabular-nums; color: var(--vf-text); }
.quality-tracker .vf-lab-flag[data-zero="true"] .vf-lab-flag__n { color: var(--vf-text-caption); }
.quality-tracker .vf-lab-flag__label { color: var(--vf-text); }
.quality-tracker .vf-lab-flag__jumps { display: flex; gap: var(--m__gap-xxxxs); }
/* The chips the tiles' size (10.88px) in the 0.8em card body. */
.quality-tracker .vf-lab-flag__jumps .m__evidence-button { font-size: 0.85em; }

/* ── Call summary at the head of the transcript ────────────────────── */

/* The API's picks on the call line: an item like the others, its
   confidence after the name in the caption grey; reasoning on hover. */
.quality-tracker .vf-lab-pick { cursor: help; }
/* The call line in one row: the items in a strip that runs to the
   "Summary and info" button, fading out over its last 1.5em when clipped.
   The button is the Layers button's look (no arrow — it opens a sheet),
   out into the room the top bar keeps for the studio menu so its right
   edge lines up with the burger's (the bar's 1.1em inset, in the line's
   0.75em type); one text line tall, it hangs over the line either way. */
.quality-tracker .vf-top__call:has(> .vf-lab-meta) { flex-wrap: nowrap; }
.quality-tracker .vf-lab-meta { display: flex; align-items: baseline; gap: var(--m__gap-xxxxs) var(--m__gap-xl); min-width: 0; flex: 0 1 auto; overflow: hidden; }
.quality-tracker .vf-lab-meta > .vf-top__call-item { flex-shrink: 0; }
.quality-tracker .vf-lab-meta--clipped { margin-right: calc(-1 * var(--m__gap-xs)); mask-image: linear-gradient(to right, black calc(100% - 1.5em), transparent); }
.quality-tracker .vf-top__call .vf-lab-meta__more {
  /* Right after the line's last item; the strip before it gives way
     (and fades) only when the line runs out of room — then it stands at
     the line's right end, its edge on the burger's above (the reserve
     the studio keeps). */
  flex: 0 0 auto; margin: 0 calc(1.1em / 0.75 - var(--vf-top-reserve, 1.1em / 0.75) - var(--m__border-width-s)) 0 0; padding: 0; border: 0; background: none;
  /* The DS link (text.css a) in the line's labels' type (its dt: the
     semi-mono caps). */
  font: inherit; font-family: var(--m__font-family-semi-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--m__text-link); cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-skip-ink: none;
  /* Caps have no descenders to sit the DS 0.2em under: lower, clear of
     the letters. */
  text-underline-offset: 0.4em;
  text-decoration-color: color-mix(in srgb, var(--m__text-link) 20%, transparent);
  transition: color var(--m__duration-base) var(--m__easing-base), text-decoration-color var(--m__duration-base) var(--m__easing-base);
  &:hover { color: var(--m__text-link-hover); text-decoration-color: color-mix(in srgb, var(--m__text-link-hover) 20%, transparent); transition-duration: var(--m__duration-instant); }
}
.quality-tracker .vf-lab-pick__conf { margin-left: var(--m__gap-xxxs); font-variant-numeric: tabular-nums; color: var(--vf-text-caption); }

/* ── Streaming feed (widget.js `demo`, `vf-demo`) ───────────────────
   Either view, kept live while the call streams: what reads the whole call
   waits for its end — the role and call-type picks on the call line, the
   topics (their names too, sorted by the final gap), and a clip's RAW
   until the clip has been judged (its figures line is in). */
.quality-tracker.vf-demo:not(.vf-completed) .vf-lab-pick { display: none; }
.quality-tracker.vf-demo .vf-lab-topics--pending :is(.vf-lab-topic, .vf-lab-topics__axis) { display: none; }
.quality-tracker.vf-demo .vf-lab-topics--pending .vf-lab-topics::before { content: "Topics come in when the call is over."; display: block; padding: var(--m__gap-xxxxs) 0; color: var(--vf-text-caption); }

/* Caps labels trimmed to their cap height (see widget.css), the padding
   giving back the 0.135em a side the trim takes. A chip with a swatch
   keeps its flex row and its line. */
.quality-tracker .vf-lab-chip:not(.m__button-caps--icon) { padding-block: var(--m__gap-xxxxs); }

/* Stronger secondary text on the light studio, including body-level sheets.
   The fingerprint's own dark-mode scope retains its dark palette. */
body.conversation-studio-page:not(.dark-mode) {
  --m__text-caption: var(--m__color-gray-600);
  --m__text-code: var(--m__color-gray-600);
  --m__metric-watch-wash: 6%;
}

/* A conversation's page (prototypes/conversations/quality-tracker.html):
   the tracker on a full-bleed themed stage, the whole viewport (no site
   header — the tracker's own title is the way back to the list), the
   studio menu over its top bar. */
.quality-tracker-page__stage {
  position: relative;
  min-height: 100dvh;
  background-color: var(--m__bg);
  color-scheme: light;
}
.dark-mode .quality-tracker-page__stage { color-scheme: dark; }
/* On a wide screen the call fits the viewport (its columns scroll inside);
   stacked (phones) it keeps its natural height and the page scrolls. */
@media (width > 768px) {
  .quality-tracker-page__stage { height: 100dvh; }
}

/* The studio menu: the DS icon menu button (components/menu-button.css,
   m__menu-button-icon — no outline, the plate shows only on hover or
   while open) and the DS menu list as it is (m__menu-button-list / -item).
   The button's hover is the tracker's own — the transcript bubble's: the
   ground lifts toward the border grey, the icon turns white. Top right
   over the tracker's top bar: right edge flush with the player, on the
   view modes' menu (quality-tracker-studio.js sets both; the list's place
   is set on open). */
.quality-tracker-studio {
  /* Until the tracker has mounted: its own figures, as the studio script
     sets them then (quality-tracker-studio.js), so nothing moves. */
  --qt-studio-right: 16.98px;
  --qt-studio-top: 14.53px;
  --qt-studio-size: calc(var(--m__font-size-xs) * 2.283); /* the feed switch's height */
  position: absolute;
  top: var(--qt-studio-top);
  right: var(--qt-studio-right);
  z-index: 1;
}
.quality-tracker-studio__toggle {
  width: var(--qt-studio-size);
  height: var(--qt-studio-size);
}
/* The list is a popover: out of the UA's centred box, placed under the
   button. */
.quality-tracker-studio__menu {
  inset: var(--qt-menu-top, 0) var(--qt-menu-right, 0) auto auto;
  margin: 0;
  color: var(--m__text);
}
.quality-tracker-studio__menu fieldset { display: contents; }

/* The skeleton is an explicit prototype state, never an arrival delay. */
.qt-skeleton {
  --qt-sk-block: var(--m__bg-surface);
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  color: var(--m__text);
  font-family: var(--m__font-family-sans);
  font-size: 16px;
}
.quality-tracker-page[data-prototype-state="loading"] {
  & .qt-skeleton { display: flex; }
  & .quality-tracker-embed,
  & .quality-tracker-studio { visibility: hidden; }
}

/* The blocks pulse as the DS skeleton (components/skeleton.css, its
   keyframes and beat). The player doesn't: it stands in its own colors,
   only empty. */
.qt-skeleton :is(.qt-skeleton__line, .qt-skeleton__pill, .qt-skeleton__bubble, .qt-skeleton__chips > span, .qt-skeleton__tag, .qt-skeleton__card) {
  background-color: var(--qt-sk-block);
  animation: m__skeleton-pulse var(--m__skeleton-duration) var(--m__easing-base) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .qt-skeleton * { animation: none !important; }
}

.qt-skeleton__line {
  display: block;
  height: 0.55em;
  border-radius: var(--m__radius-s);
}

/* Top bar: the tracker's own padding and type. */
.qt-skeleton__top { flex: none; box-sizing: border-box; padding: var(--m__gap-s) calc(16.98px + 28.02px + 7px) var(--m__gap-s) var(--m__gap-l); }
/* The title's line tall, as the tracker's row. */
.qt-skeleton__row { display: flex; align-items: center; gap: var(--m__gap-xxs); height: calc(var(--m__font-size-xl) * 1.3); }
/* The tracker's way back (quality-tracker.css .vf-top__back). */
/* (Over the DS button's own a.m__button-… rules: they set font and alignment.) */
.qt-skeleton a.qt-skeleton__back { flex: none; box-sizing: border-box; align-items: center; height: calc(var(--m__font-size-xs) * 2.283); padding: 0 0.6rem; border-color: color-mix(in srgb, currentColor 15%, transparent); font-family: var(--m__font-family-semi-mono); font-size: var(--m__font-size-xs); font-weight: var(--m__font-weight-medium); letter-spacing: 0.06em; text-transform: uppercase; }
.qt-skeleton__back-icon { width: 1.1em; height: 1.1em; fill: currentColor; }
.qt-skeleton__back > span { text-box: trim-both cap alphabetic; }
.qt-skeleton__title { position: relative; top: 0.034em; flex: 0 1 auto; min-width: 0; margin: 0 auto 0 0; font-size: var(--m__font-size-xl); font-weight: var(--m__font-weight-bold); line-height: var(--m__line-height-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Corners: the DS pill's 0.667em at the pills' xs type (caps.css). */
.qt-skeleton__pill { flex: none; display: inline-block; width: 8.25em; height: 27.4px; border-radius: calc(var(--m__font-size-xs) * 0.667); }
/* The feed's switch (Batch | Streaming, the DS segmented control, S):
   its width, the pills' height and its corners. */
.qt-skeleton__pill--feed { width: 9.02em; height: calc(var(--m__font-size-xs) * 2.283); border-radius: var(--m__radius-s); }
.qt-skeleton__call { display: flex; gap: var(--m__gap-s); margin-top: var(--m__gap-s); overflow: hidden; }
/* Each bar one call-line tall (its xs type at 1.3), on the line's box. */
.qt-skeleton__call .qt-skeleton__line { flex: none; height: calc(var(--m__font-size-xs) * 1.3); }

/* Player: the fingerprint's plate over the strip's, one 144px block as
   it lands, in the player's own colors (the plate the lanes' grey, the
   strip quality-tracker.css --vf-strip-bg) — only nothing on them yet. */
.qt-skeleton__player { flex: none; margin: 0 var(--m__gap-xl); }
.qt-skeleton__plate { height: 96px; background-color: var(--m__border); }
.qt-skeleton__strip { height: 48px; background: color-mix(in srgb, var(--m__fingerprint-bg-surface, rgb(50, 50, 85)) 30%, var(--m__bg-surface)); }

/* The columns, as the tracker's grid (transcript, signals, score). */
.qt-skeleton__main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.52fr);
  min-height: 0;
}
.qt-skeleton__col { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.qt-skeleton__col + .qt-skeleton__col { border-left: 0.75px solid var(--m__border); }
/* As tall as the columns' heads (quality-tracker.css: their 1.45em line
   and as much room over and under it, 14.99px less 0.225em). */
.qt-skeleton__head { flex: none; display: flex; align-items: center; gap: var(--m__gap-l); height: calc(29.98px + var(--m__font-size-xs)); padding: 0 var(--m__gap-l); }
.qt-skeleton__head .qt-skeleton__line { height: 0.7em; }
/* No room under the heads, as the tracker's (quality-tracker.css): each
   column's first entry right at its head's foot. */
.qt-skeleton__body { display: flex; flex-direction: column; padding: 0 var(--m__gap-l); }

/* Transcript: bubbles, plain, the caller's on the left, the agent's on
   the right. */
.qt-skeleton__bubble {
  flex: none;
  /* The tracker's bubble: 2em at its 16px, a squircle. */
  border-radius: 2em;
  corner-shape: squircle;

  & + & { margin-top: var(--m__gap-m); }

  &.qt-skeleton__bubble--agent { align-self: flex-end; }
}

/* Signals: the filter chips, then rows — time, kind tag, one line. */
.qt-skeleton__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--m__gap-xxxs);
  margin: 0 0 var(--m__gap-s) calc(-1 * var(--m__gap-l));
  padding-left: var(--m__gap-l);

  /* The DS caps' 0.46em at the chips' xs type. */
  & > span { height: 1.4em; border-radius: calc(var(--m__font-size-xs) * 0.46); }
}
.qt-skeleton__signal { box-sizing: border-box; height: 2.75em; display: grid; grid-template-columns: 2.4em 5.5em 1fr; align-items: start; gap: var(--m__gap-m); padding-top: var(--m__gap-xxs); }
.qt-skeleton__line--time { width: 100%; opacity: 0.6; }
.qt-skeleton__tag { height: 1.2em; border-radius: calc(var(--m__font-size-xs) * 0.46); margin-top: calc(-1 * var(--m__gap-xxxs)); }
.qt-skeleton__text { display: block; }

/* Score: the verdicts (quality-tracker.css .vf-overview), at
   their gap. */
.qt-skeleton__col--score .qt-skeleton__body { gap: var(--m__gap-xxxs); padding: 0 var(--m__gap-l); }
/* The plate's and the tiles' corners (quality-tracker.css, --m__radius-l). */
.qt-skeleton__card { flex: none; border-radius: var(--m__radius-l); }
.qt-skeleton__card--score { height: 20em; }
/* A widget as it stands (px): its padding, title, figure and verdict. */
.qt-skeleton__card--widget { height: 109.6px; }

/* Mid widths, as the tracker (quality-tracker.css, 768–1100px): the two
   feeds side by side, Quality a band under them — as tall as it is, up
   to half the page — its plate on the left, the tiles two by two. */
@media (768px < width <= 1100px) {
  .qt-skeleton__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .qt-skeleton__col--score {
    grid-column: 1 / -1;
    max-height: 50vh;
    border-left: 0 !important;
    border-top: 0.75px solid var(--m__border);
  }
  .qt-skeleton__col--score .qt-skeleton__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--m__gap-xxxs);
    padding-bottom: var(--m__gap-l);
  }
  .qt-skeleton__card--score { grid-row: span 2; height: 20em; }
  .qt-skeleton__card:not(.qt-skeleton__card--score, .qt-skeleton__card--widget) { height: 9.8em !important; }
}

/* Stacked (phones): the columns one under the other, as the tracker. */
@media (width <= 768px) {
  .qt-skeleton { position: fixed; }
  .qt-skeleton__top { padding-right: 1.1em; }
  .qt-skeleton__row > .qt-skeleton__pill { display: none; }
  .qt-skeleton__main { grid-template-columns: minmax(0, 1fr); }
  .qt-skeleton__col + .qt-skeleton__col { display: none; }
}

