/* FORTCALL — pharmacy voice order desk.
 *
 * The design is built from one object: the dispensing label stuck to a medicine
 * box. It is white, printed, ruled, and the type on it is plain — so the
 * console is too, and the label is the only thing on screen allowed to carry
 * colour.
 *
 * COLOUR SEMANTICS ARE INVERTED HERE, DELIBERATELY.
 * On every other desk in this family red means "refused". On this one refusing
 * is the product working: a held confirmation and an honest UNKNOWN are
 * successes, and the SOW makes a wrongly-billed medicine the only real failure.
 * So green is "cleared", amber is "ask the caller", slate is "not recognised" —
 * all three ordinary — and red is reserved for exactly one event: something
 * reached a bill that should not have. Red on this console means a control has
 * failed, and nothing else.
 */

:root {
  /* Counter laminate — cool, slightly green, not cream. */
  --ground:      #EDF0EE;
  --paper:       #FFFFFF;
  --paper-sunk:  #F6F8F7;
  --rule:        #D7DFDB;
  --rule-soft:   #E6ECE9;

  --ink:         #0F1A17;
  --ink-2:       #3D4B46;
  --ink-3:       #6B7A75;

  --pass:        #0B7A5D;
  --pass-wash:   #E6F3EE;
  --ask:         #B45309;
  --ask-wash:    #FDF3E7;
  --unknown:     #5B6B72;
  --unknown-wash:#EDF1F2;
  --breach:      #B42318;
  --breach-wash: #FDF0EF;

  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r:    4px;
  --shadow: 0 1px 2px rgba(15, 26, 23, .05), 0 6px 20px -12px rgba(15, 26, 23, .22);
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--pass);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Sign in ─────────────────────────────────────────────────────────── */

.signin {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  /* A faint ruled grid, like the ledger a Schedule H1 sale is written into. */
  background:
    repeating-linear-gradient(to bottom, transparent 0 27px, var(--rule-soft) 27px 28px),
    var(--ground);
}

.signin__card {
  width: 100%;
  max-width: 360px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--pass);
  border-radius: var(--r);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.signin__mark {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--pass);
}

.signin__title {
  margin: 14px 0 2px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.signin__sub { margin: 0 0 22px; color: var(--ink-3); font-size: 13px; }

.signin__err {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--breach);
}

/* ── Fields ───────────────────────────────────────────────────────────── */

.field { display: block; margin-bottom: 14px; }

.field__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 5px;
}

.field__opt { color: var(--ink-3); font-weight: 400; }

.field__hint {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
}

.field input, .field select, .probe input, .probe select, .whisper input {
  width: 100%;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  transition: border-color .12s;
}

.field input:hover, .field select:hover { border-color: #BFCBC6; }
.field input:focus, .field select:focus { border-color: var(--pass); outline-offset: 1px; }
.field input:disabled, .whisper input:disabled { background: var(--paper-sunk); color: var(--ink-3); }

.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
}
.check input { accent-color: var(--pass); }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  padding: 8px 15px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.btn:hover:not(:disabled) { background: var(--paper-sunk); border-color: #BFCBC6; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn--primary {
  background: var(--pass);
  border-color: var(--pass);
  color: #fff;
}
.btn--primary:hover:not(:disabled) { background: #096348; border-color: #096348; }

.btn--stop { color: var(--breach); border-color: #E5C4C1; }
.btn--stop:hover:not(:disabled) { background: var(--breach-wash); }

.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn--ghost:hover:not(:disabled) { background: rgba(15,26,23,.05); }

.btn--sm { padding: 6px 11px; font-size: 12.5px; }

.btn-row { display: flex; gap: 8px; margin-top: 16px; }
.btn-row .btn { flex: 1; }
.btn-row--wide { align-items: center; margin: 0 0 20px; }
.btn-row--wide .btn { flex: 0 0 auto; }

.pill {
  padding: 5px 11px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.pill:hover { background: var(--paper-sunk); border-color: var(--pass); color: var(--pass); }

.hint { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.45; }

/* ── Chrome ───────────────────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
  height: 52px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 20;
}

.top__brand { display: flex; align-items: baseline; gap: 10px; flex: 0 0 auto; }
.top__mark { font-weight: 700; font-size: 13px; letter-spacing: .13em; color: var(--pass); }
.top__client { font-size: 12.5px; color: var(--ink-3); }

.tabs { display: flex; gap: 2px; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 6px 12px;
  background: none;
  border: 0;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.tab:hover { background: var(--paper-sunk); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }

.top__meta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* ── View shells ──────────────────────────────────────────────────────── */

.view--call {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(340px, 1fr) minmax(300px, 380px);
  gap: 14px;
  padding: 14px;
  align-items: start;
}

.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.view--doc { padding: 24px 18px 64px; }
.doc { max-width: 1080px; margin: 0 auto; }

.doc__head { margin-bottom: 22px; max-width: 68ch; }
.doc__head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.018em;
}
.doc__head p { margin: 0; color: var(--ink-2); line-height: 1.55; }

.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 16px;
}
.panel--flush { padding: 0; overflow: hidden; }

.panel__title { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.panel__note { margin: 0 0 16px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }

.block { margin-top: 34px; }
.block__title { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.block__note { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); max-width: 64ch; line-height: 1.5; }

/* ═══ THE LABEL ══════════════════════════════════════════════════════════
 * The signature element. A dispensing label: white stock, a ruled border, the
 * medicine printed large, and the six gates along the foot where a real pack
 * carries its batch and expiry line.
 */

.label {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  border-left: 3px solid var(--rule);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.label[data-outcome="AUTO_BILL"] { border-left-color: var(--pass); }
.label[data-outcome="CONFIRM"]   { border-left-color: var(--ask); }
.label[data-outcome="UNKNOWN"]   { border-left-color: var(--unknown); }
.label[data-outcome="BREACH"]    { border-left-color: var(--breach); }

.label__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-sunk);
}

.label__rx { font-family: var(--mono); font-size: 15px; color: var(--pass); }

.label__desk {
  font-size: 11px;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
}

.label__stamp {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid currentColor;
}
.label__stamp[data-o="AUTO_BILL"] { color: var(--pass);    background: var(--pass-wash); }
.label__stamp[data-o="CONFIRM"]   { color: var(--ask);     background: var(--ask-wash); }
.label__stamp[data-o="UNKNOWN"]   { color: var(--unknown); background: var(--unknown-wash); }
.label__stamp[data-o="idle"]      { color: var(--ink-3);   background: transparent; border-style: dashed; }

.label__body { padding: 15px 16px 0; }

.label__heard {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  padding: 9px 11px;
  background: var(--paper-sunk);
  border-left: 2px solid var(--rule);
  border-radius: 0 var(--r) var(--r) 0;
  margin-bottom: 15px;
  word-break: break-word;
}

.label__med {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.14;
  margin-bottom: 3px;
}
.label__med--none { color: var(--ink-3); font-weight: 500; font-size: 20px; }

.label__molecule { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }

.label__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 15px;
}

.lf { background: var(--paper); padding: 8px 10px; min-width: 0; }
.lf__k { font-size: 10.5px; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.lf__v { font-family: var(--mono); font-size: 13px; margin-top: 2px; word-break: break-word; }
.lf__v--miss { color: var(--ask); }

/* The gate strip — six cells, where a pack prints its batch line. */
.gates {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  border-top: 1px solid var(--rule-soft);
}

.gate {
  background: var(--paper);
  padding: 9px 7px 10px;
  text-align: center;
  min-width: 0;
}

.gate__n {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  display: block;
}

.gate__lamp {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--rule);
  margin: 5px 0 6px;
}

.gate__k {
  font-size: 10px;
  line-height: 1.25;
  color: var(--ink-3);
  display: block;
  overflow-wrap: anywhere;
}

.gate[data-s="pass"] .gate__lamp { background: var(--pass); }
.gate[data-s="pass"] .gate__k    { color: var(--ink-2); }
.gate[data-s="fail"] .gate__lamp { background: var(--ask); }
.gate[data-s="fail"] .gate__k    { color: var(--ask); font-weight: 500; }
.gate[data-s="fail"]             { background: var(--ask-wash); }
.gate[data-s="na"] .gate__lamp   { background: repeating-linear-gradient(90deg, var(--rule) 0 3px, transparent 3px 6px); }

.label__verdict {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-2);
}

.label__ask {
  margin: 0 16px 16px;
  padding: 11px 13px;
  border-radius: var(--r);
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--ask-wash);
  border-left: 2px solid var(--ask);
  color: #6B3206;
}
.label__ask::before {
  content: 'The agent asks';
  display: block;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ask);
  margin-bottom: 3px;
}
.label[data-outcome="UNKNOWN"] .label__ask {
  background: var(--unknown-wash);
  border-left-color: var(--unknown);
  color: #3B474C;
}
.label[data-outcome="UNKNOWN"] .label__ask::before { color: var(--unknown); }

.label__empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.55;
}

/* ── Evidence: N-best and candidates ─────────────────────────────────── */

.ev { margin-top: 12px; }

.ev__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-sunk);
}
.ev__title { font-size: 12.5px; font-weight: 600; }
.ev__sub { font-size: 11.5px; color: var(--ink-3); }

.ev__caveat {
  margin: 0;
  padding: 9px 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #6B3206;
  background: var(--ask-wash);
  border-bottom: 1px solid var(--rule-soft);
}

.hyp, .cand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 12.5px;
}
.hyp:last-child, .cand:last-child { border-bottom: 0; }

.hyp__r, .cand__r {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  flex: 0 0 16px;
}
.hyp__t { flex: 1 1 auto; font-family: var(--mono); word-break: break-word; }
.hyp__s { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.hyp__tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 100px;
  background: var(--ask-wash);
  color: var(--ask);
  white-space: nowrap;
}

.cand--best { background: var(--pass-wash); }
.cand__n { flex: 1 1 auto; min-width: 0; }
.cand__b { font-weight: 500; }
.cand__m { font-size: 11.5px; color: var(--ink-3); }
.cand__sig { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.cand__s { font-family: var(--mono); font-size: 12px; font-weight: 500; }

.bar {
  display: block;
  height: 2px;
  background: var(--pass);
  border-radius: 2px;
  margin-top: 3px;
  opacity: .5;
}

/* ── Call surface ────────────────────────────────────────────────────── */

.statusbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  font-size: 12.5px;
  color: var(--ink-2);
}

.statusbar__timer { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rule);
  flex: 0 0 auto;
}
.dot[data-live="1"] { background: var(--pass); animation: pulse 2s ease-in-out infinite; }
.dot[data-live="err"] { background: var(--breach); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.transcript {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 12px;
  min-height: 260px;
  max-height: 44vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.line { display: flex; gap: 8px; font-size: 13px; line-height: 1.5; }
.line__who {
  flex: 0 0 46px;
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.line__t { flex: 1 1 auto; word-break: break-word; }
.line--agent .line__who { color: var(--pass); }
.line--sys { font-size: 12px; color: var(--ink-3); font-style: italic; }

.transcript__empty { color: var(--ink-3); font-size: 13px; margin: auto; text-align: center; }

.whisper { display: flex; gap: 7px; }
.whisper input { flex: 1 1 auto; }

.toollog {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  max-height: 200px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 11.5px;
}
.toollog:empty { display: none; }

.tl {
  padding: 6px 11px;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  gap: 7px;
  align-items: baseline;
}
.tl:last-child { border-bottom: 0; }
.tl__n { color: var(--ink); }
.tl__d { color: var(--ink-3); flex: 1 1 auto; word-break: break-word; }
.tl--blocked { background: var(--ask-wash); }
.tl--blocked .tl__n { color: var(--ask); }

/* ── Patient card / basket ───────────────────────────────────────────── */

.pcard { padding: 14px 16px; }
.pcard__n { font-size: 15px; font-weight: 600; }
.pcard__m { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.pcard__note {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--rule-soft);
  line-height: 1.5;
}

.rx {
  display: flex;
  gap: 7px;
  align-items: baseline;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.rx:last-child { border-bottom: 0; }
.rx__m { flex: 1 1 auto; }
.rx__s { font-family: var(--mono); font-size: 11px; }
.rx--live .rx__s { color: var(--pass); }
.rx--dead .rx__s { color: var(--ask); }

.basket__row {
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 13px;
}
.basket__row:last-child { border-bottom: 0; }
.basket__q { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.basket__b { flex: 1 1 auto; }
.basket__p { font-family: var(--mono); font-size: 12.5px; }
.basket__foot {
  padding: 10px 14px;
  background: var(--paper-sunk);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}

/* ── Probe / doc views ───────────────────────────────────────────────── */

.probe { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.probe input { flex: 1 1 320px; font-family: var(--mono); }
.probe select { flex: 0 0 auto; width: auto; }
.probe--search { margin-bottom: 18px; }

.examples { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.examples__lead { font-size: 12px; color: var(--ink-3); margin-right: 3px; }

.statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 22px;
}

.stat { background: var(--paper); padding: 13px 15px; }
.stat__v { font-size: 21px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__k { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.35; }
.stat--pass .stat__v { color: var(--pass); }
.stat--ask .stat__v { color: var(--ask); }
.stat--breach .stat__v { color: var(--breach); }

/* ── Catalogue ───────────────────────────────────────────────────────── */

.cat {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}

.sku {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--rule-soft);
}
.sku:last-child { border-bottom: 0; }

.sku__b { font-weight: 600; font-size: 14px; }
.sku__m { font-size: 12.5px; color: var(--ink-3); grid-column: 1; }
.sku__r { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--ink-3); grid-row: 1; grid-column: 2; }
.sku__tags { grid-column: 1 / -1; display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }

.tag {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--paper-sunk);
  border: 1px solid var(--rule-soft);
  color: var(--ink-3);
}
.tag--h1     { background: var(--breach-wash); border-color: #EFCFCC; color: var(--breach); }
.tag--h      { background: var(--ask-wash);    border-color: #F0DCC0; color: var(--ask); }
.tag--otc    { background: var(--pass-wash);   border-color: #C6E3D8; color: var(--pass); }
.tag--risk   { background: var(--ask-wash);    border-color: #F0DCC0; color: var(--ask); }
.tag--dead   { background: var(--unknown-wash);border-color: #D5DDDF; color: var(--unknown); }
.tag--auto   { background: var(--pass-wash);   border-color: #C6E3D8; color: var(--pass); }

.cat__empty { padding: 34px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ── Queues ──────────────────────────────────────────────────────────── */

.queue {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}

.qrow {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 4px 13px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 13px;
  align-items: baseline;
}
.qrow:last-child { border-bottom: 0; }
.qrow__o { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; }
.qrow__o[data-o="CONFIRM"] { color: var(--ask); }
.qrow__o[data-o="UNKNOWN"] { color: var(--unknown); }
.qrow__u { font-family: var(--mono); font-size: 12.5px; word-break: break-word; }
.qrow__w { grid-column: 2; font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.qrow__m { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: right; white-space: nowrap; }

.queue__empty { padding: 26px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ── Benchmark ───────────────────────────────────────────────────────── */

.verdict {
  padding: 14px 16px;
  border-radius: var(--r);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 20px;
  border-left: 3px solid;
}
.verdict--go    { background: var(--pass-wash);   border-color: var(--pass);   color: #08503C; }
.verdict--block { background: var(--breach-wash); border-color: var(--breach); color: #8A1B12; }
.verdict--flat  { background: var(--paper-sunk);  border-color: var(--rule);   color: var(--ink-2); }

.brk {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 20px;
}

.brk__row {
  display: grid;
  grid-template-columns: 1fr 62px 78px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 15px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 12.5px;
}
.brk__row:last-child { border-bottom: 0; }
.brk__row--h { background: var(--paper-sunk); font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.brk__k { font-weight: 500; }
.brk__v { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.brk__track { height: 4px; background: var(--rule-soft); border-radius: 3px; overflow: hidden; }
.brk__fill { display: block; height: 100%; background: var(--pass); }
.brk__fill--low { background: var(--ask); }

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .view--call { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .col--setup { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .view--call { grid-template-columns: 1fr; }
  .col--setup { grid-column: auto; }
  .gates { grid-template-columns: repeat(3, 1fr); }
  .brk__row { grid-template-columns: 1fr 54px 66px; }
  .brk__track { display: none; }
  .qrow { grid-template-columns: 1fr; }
  .qrow__m { text-align: left; }
  .top { height: auto; flex-wrap: wrap; padding: 8px 12px; gap: 10px; }
  .tabs { order: 3; width: 100%; }
}

@media (max-width: 520px) {
  .label__med { font-size: 21px; }
  .gates { grid-template-columns: repeat(2, 1fr); }
  .view--doc { padding: 18px 12px 48px; }
  .view--call { padding: 10px; }
}
