/* The interview's pages: the framework's, the same for every app.

   THE LOOK IS THE APP'S. Every colour, radius and typeface below is a
   variable; an app's `theme.css`, beside its profile, sets them and is
   loaded after this file. Nothing here names a firm. */

:root {
  /* the framework's own look, for an app with no theme.css */
  --bg: #f6f5f1;
  --page-bg: var(--bg);
  --surface: #ffffff;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e2e0d9;
  --brand: #2f4b7c;
  --brand-ink: #ffffff;
  --accent: #b5541f;        /* fills: buttons, logo, marks */
  --accent-ink: #a5501f;    /* text and icons on light backgrounds */
  --soft: #eef2f8;
  --good: #2e7d4f;
  --warn: #9a5b00;
  --bad: #b3261e;
  --btn-bg: var(--brand);
  --btn-ink: var(--brand-ink);
  --logo-bg: var(--brand);
  --logo-ink: var(--brand-ink);
  --stage: #1d2433;
  --stage-ink: #ffffff;
  --stage-muted: #c4cad6;
  --radius: 12px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
  --head-weight: 700;
  --head-tracking: 0;
  --wordmark-size: 17px;
}

/* ======================================================================
   FRAMEWORK: the same for every app
   ====================================================================== */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); background: var(--page-bg); color: var(--ink);
  font: 16px/1.55 var(--font-body);
  min-height: 100vh; display: flex; flex-direction: column;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--brand); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

header.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in {
  max-width: 1180px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--logo-bg); color: var(--logo-ink);
  display: grid; place-items: center; font-weight: 800; flex: none;
}
.brand-text { line-height: 1.15; min-width: 0; }
.brand-text b { display: block; font-family: var(--font-head); font-size: var(--wordmark-size); font-weight: var(--head-weight); letter-spacing: var(--head-tracking); }
.brand-text b .dot { color: var(--accent); }
.brand-text span { color: var(--muted); font-size: 13px; }
.progress { display: flex; align-items: center; gap: 10px; }
.steps { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
.steps li { width: 24px; height: 6px; border-radius: 3px; background: var(--line); }
.steps li.done { background: var(--brand); opacity: .45; }
.steps li.now { background: var(--brand); }
.step-label { color: var(--muted); font-size: 13px; white-space: nowrap; }
.step-label .short { display: none; }

main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 16px 40px; }
.page { display: none; }
.page.on { display: block; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.narrow { max-width: 660px; margin: 0 auto; }
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
}
.eyebrow::before { content: ""; width: 40px; height: 2px; background: currentColor; }
h1 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking); font-size: clamp(28px, 4.4vw, 40px); line-height: 1.1; margin: 0 0 12px; }
h1:focus { outline: none; }
h1 em { font-style: normal; color: var(--accent-ink); }
h2 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking); font-size: 20px; margin: 0 0 10px; }
.lede { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.note { font-size: 14px; color: var(--muted); }
.error { color: var(--bad); font-size: 14px; margin: 8px 0 0; min-height: 1.4em; }

ol.plan { margin: 0; padding: 0; list-style: none; counter-reset: p; }
ol.plan li {
  counter-increment: p; display: grid; grid-template-columns: 34px 1fr; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
ol.plan li:last-child { border-bottom: 0; }
ol.plan li::before {
  content: counter(p); width: 28px; height: 28px; border-radius: 50%;
  background: var(--soft); color: var(--brand); display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
ol.plan b { display: block; }
ol.plan span { color: var(--muted); font-size: 14px; }

.actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.btn {
  border: 0; border-radius: var(--radius); padding: 12px 22px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; min-height: 44px;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--brand); border: 1px solid var(--line); }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: 14px; }
.btn.danger { background: var(--bad); color: #fff; }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; text-decoration: underline; padding: 0; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.field small { color: var(--muted); font-weight: 400; }
.field input {
  width: 100%; padding: 11px 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
}
.field input[aria-invalid="true"] { border-color: var(--bad); }

.kept { margin-top: 16px; border-left: 4px solid var(--accent); }
.kept ul { margin: 8px 0 12px; padding-left: 20px; }
.kept ul:last-child { margin-bottom: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { margin-top: 5px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }

/* ---------------- interview room: a call ---------------- */
.call {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas: "stage transcript" "compose transcript" "bar bar";
  grid-template-rows: minmax(440px, 1fr) auto auto;
  gap: 14px;
}
.stage {
  grid-area: stage; position: relative; background: var(--stage); color: var(--stage-ink);
  border-radius: calc(var(--radius) + 6px); min-height: 440px; height: 100%; overflow: hidden;
  display: grid; place-items: center; padding: 64px 20px 128px;
}
.stage .phases { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.topicline { position: absolute; top: 50px; left: 16px; font-size: 13px; color: var(--stage-muted); }
.topicline b { color: var(--stage-ink); font-weight: 700; }
.phase {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: var(--stage-muted); border: 1px solid rgba(255,255,255,.14);
}
.phase.done { color: var(--stage-ink); }
.phase.now { background: var(--accent); color: var(--btn-ink); border-color: var(--accent); font-weight: 700; }
.recpill {
  position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(179,38,30,.9); color: #fff;
}
.recpill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.agent-big { text-align: center; }
.avatar {
  width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 14px; position: relative;
  background: var(--logo-bg); color: var(--logo-ink);
  display: grid; place-items: center; font: 800 40px/1 var(--font-head); letter-spacing: -.02em;
}
.avatar::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 3px solid var(--accent); opacity: 0;
}
.talking .avatar::after { animation: ring 1.1s infinite ease-out; }
@keyframes ring { 0% { opacity: .9; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.18); } }
.agent-big .name { font-weight: 700; font-size: 18px; }
.agent-big .status { color: var(--stage-muted); font-size: 14px; min-height: 1.5em; }

.stage-scores { width: min(520px, 100%); text-align: center; }
.stage-scores .site { font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.score { padding: 14px 6px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.score b { display: block; font-size: 30px; line-height: 1.1; }
.score span { font-size: 12px; color: var(--stage-muted); }
.score.good b { color: #7ee2a8; } .score.mid b { color: #ffd27a; } .score.low b { color: #ff9f97; }
.stage-scores .note { color: var(--stage-muted); margin: 10px 0 0; font-size: 13px; }

.tile {
  position: absolute; bottom: 14px; width: 150px; padding: 12px; border-radius: var(--radius);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); text-align: center;
}
.tile.you { left: 14px; }
/* THE VISITOR ON CAMERA: their cut-out on white, as it is recorded */
.tile.you.video { width: 208px; padding: 0; overflow: hidden; background: #fff; border-color: rgba(255,255,255,.5); }
.tile.you.video .mini-av { display: none; }
.tile.you .cam { display: none; }
.tile.you.video .cam { display: block; width: 100%; aspect-ratio: 4 / 3; background: #fff; }
.tile.you.video .who {
  position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px;
  background: rgba(14,16,72,.75); color: #fff; font-size: 12px;
}
.camoff { position: absolute; inset: 0; display: grid; place-items: center; color: #5f6475; font-size: 12px; background: #fff; }
.paused {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; text-align: center;
  background: rgba(10,12,40,.82); color: #fff; padding: 20px;
}
.paused b { display: block; font-size: 22px; margin-bottom: 6px; }
.paused p { margin: 0 0 14px; color: var(--stage-muted); }
.tile.mini { right: 14px; }
.tile .mini-av {
  width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; background: rgba(255,255,255,.16);
}
.tile.mini .mini-av { background: var(--logo-bg); color: var(--logo-ink); }
.tile .who { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.bars i { width: 3px; height: 4px; background: currentColor; border-radius: 1px; }
.live .bars i { animation: bar .8s infinite ease-in-out; }
.live .bars i:nth-child(2) { animation-delay: .12s; } .live .bars i:nth-child(3) { animation-delay: .24s; }
@keyframes bar { 0%,100% { height: 3px; } 50% { height: 12px; } }
.muted-ico { width: 14px; height: 14px; }

/* WHOSE TURN IT IS: one cue, always in the same place */
.turnbox {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
}
.turn {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px;
  font-weight: 800; font-size: 17px; white-space: nowrap;
  background: rgba(255,255,255,.12); color: var(--stage-ink); border: 1px solid rgba(255,255,255,.2);
}
.turn svg { width: 20px; height: 20px; flex: none; }
/* WAIT: the accent, the same whether the interviewer is thinking or speaking */
.turn.wait { background-color: var(--accent); border-color: var(--accent); color: var(--btn-ink); }
/* THE STRIPES DARKEN, NEVER LIGHTEN: the words on them keep their contrast */
.turn.busy {
  background-image: repeating-linear-gradient(-45deg, rgba(0,0,0,.12) 0 10px, transparent 10px 20px);
  background-size: 28px 28px; animation: stripes .9s linear infinite;
}
@keyframes stripes { to { background-position: 28px 0; } }
/* AND THE WHOLE STAGE SAYS IT: a green ring to talk, amber to wait */
.stage { transition: box-shadow .25s; }
.stage.go { animation: ringgo 1.6s infinite; }
@keyframes ringgo {
  0% { box-shadow: inset 0 0 0 5px #3fbf7f, 0 0 0 0 rgba(63,191,127,.55); }
  100% { box-shadow: inset 0 0 0 5px #3fbf7f, 0 0 0 14px rgba(63,191,127,0); }
}
.stage.hold { box-shadow: inset 0 0 0 5px var(--accent); }
.turn .dots i { display: inline-block; width: 5px; height: 5px; margin: 0 1px; border-radius: 50%; background: currentColor; animation: dot 1s infinite; }
.turn .dots i:nth-child(2) { animation-delay: .15s; } .turn .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.turn.you { background: var(--good); border-color: var(--good); color: #fff; box-shadow: 0 0 0 0 rgba(31,122,77,.6); animation: go 1.6s infinite; }
@keyframes go { 0% { box-shadow: 0 0 0 0 rgba(46,160,100,.55); } 100% { box-shadow: 0 0 0 14px rgba(46,160,100,0); } }
.tile.you.yourturn { border-color: #5fd39a; box-shadow: 0 0 0 3px rgba(95,211,154,.45); }
.compose textarea.yourturn { border-color: var(--good); box-shadow: 0 0 0 3px rgba(31,122,77,.18); }
.coach {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 118px; z-index: 3;
  width: min(360px, calc(100% - 24px)); background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 14px;
}
.coach::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px;
  background: var(--surface); transform: translateX(-50%) rotate(45deg);
}
.coach b { display: block; margin-bottom: 4px; }
.coach .btn { margin-top: 10px; }

.transcript {
  grid-area: transcript; background: var(--surface); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px); display: flex; flex-direction: column; min-height: 0; max-height: 640px;
}
.transcript h2 { font-size: 16px; text-align: center; margin: 0; padding: 14px; border-bottom: 1px solid var(--line); }
.feed { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; }
.msg { max-width: 88%; }
.msg .who { font-size: 12px; font-weight: 700; color: var(--muted); display: block; margin: 0 2px 3px; }
.msg .text { padding: 9px 12px; border-radius: var(--radius); background: var(--soft); display: inline-block; }
.msg.you { align-self: flex-end; text-align: right; }
.msg.you .text { background: var(--brand); color: var(--brand-ink); text-align: left; }
.msg.typed .who::after { content: " · typed"; font-weight: 400; }
.msg.sys { align-self: center; font-size: 13px; color: var(--muted); text-align: center; max-width: 100%; }
.times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.compose { grid-area: compose; display: flex; gap: 10px; align-items: flex-end; }
.compose textarea {
  flex: 1; min-height: 52px; max-height: 140px; resize: vertical; padding: 13px 14px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
}

.bar {
  grid-area: bar; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 10px 14px;
}
.bar .title { font-size: 14px; color: var(--muted); }
.bar .title b { color: var(--ink); }
.ctrls { display: flex; gap: 8px; flex-wrap: wrap; }
.ctrl {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 600;
}
.ctrl svg { width: 18px; height: 18px; flex: none; }
.ctrl:not(.mute):not(.pause)[aria-pressed="false"] { background: var(--soft); color: var(--muted); }
.ctrl.mute[aria-pressed="true"], .ctrl.pause[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ctrl:disabled { opacity: .45; cursor: not-allowed; }
.ctrl.end { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.send { display: inline-flex; align-items: center; gap: 8px; }
.btn.send svg { width: 18px; height: 18px; flex: none; }

/* ON A PHONE, ICONS ONLY — by what the device is, not only by how wide it
   is: a phone held sideways is wider than the 900px break below, and its
   controls came back with their words. The words stay for screen readers. */
@media (hover: none) and (pointer: coarse) {
  .ctrl .lbl, .btn.send .lbl {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .ctrl { padding: 8px 10px; }
  .ctrls { gap: 6px; }
  .btn.send { padding-left: 14px; padding-right: 14px; }
  .bar .title { display: none; }
  .bar { justify-content: center; }
}

/* ---------------- check page: inline editing ---------------- */
.saved { font-size: 13px; color: var(--good); min-height: 20px; }
.kv { display: grid; grid-template-columns: 140px 1fr; }
.kv dt { color: var(--muted); font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv dd { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-start; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.ed {
  display: block; flex: 1; padding: 3px 8px; margin: 0 -8px; border-radius: 6px;
  cursor: text; min-height: 1.6em; border: 1px solid transparent;
}
.ed:hover { background: var(--soft); }
.ed:focus { background: var(--surface); border-color: var(--brand); outline: none; }
.ed:empty::before { content: attr(data-ph); color: var(--muted); }
.ed[aria-invalid="true"] { border-color: var(--bad); }
.topic { margin-top: 18px; }
.topic h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; align-items: flex-start; gap: 8px; padding: 2px 0; }
.facts li::before { content: "•"; color: var(--accent-ink); padding-top: 4px; font-weight: 700; }
.tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--brand);
  white-space: nowrap; margin-top: 6px; border: 0; cursor: pointer;
}
.facts li.removed .ed { text-decoration: line-through; color: var(--muted); cursor: default; }
.facts li.removed .ed:hover { background: none; }
.link.back { font-size: 14px; white-space: nowrap; padding-top: 3px; }
.add { margin-top: 4px; font-size: 14px; }
.ro { color: var(--muted); font-size: 14px; }

.stars { display: flex; gap: 6px; }
.stars button {
  width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); font-size: 22px; cursor: pointer; color: var(--muted);
}
.stars button.on { color: var(--accent-ink); border-color: var(--accent-ink); }
textarea.comment {
  width: 100%; min-height: 90px; padding: 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); margin-top: 12px;
}
.disclaimer { border-left: 4px solid var(--brand); }
.done-mark {
  width: 64px; height: 64px; border-radius: 50%; background: var(--soft); color: var(--good);
  display: grid; place-items: center; font-size: 32px; margin-bottom: 16px;
}

dialog {
  border: 0; border-radius: calc(var(--radius) + 4px); padding: 22px; max-width: 480px; width: calc(100% - 32px);
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
dialog::backdrop { background: rgba(10, 12, 40, .55); }
dialog .actions { margin-top: 18px; }

footer.powered {
  border-top: 1px solid var(--line); background: var(--surface);
  text-align: center; font-size: 13px; color: var(--muted); padding: 14px 16px;
}
footer.powered b { color: var(--ink); }

@media (max-width: 900px) {
  .call { grid-template-columns: 1fr; grid-template-areas: "stage" "transcript" "compose" "bar"; grid-template-rows: auto; gap: 10px; }
  .stage { min-height: 300px; padding: 54px 12px 78px; }
  .avatar { width: 88px; height: 88px; font-size: 28px; }
  .tile { width: 112px; padding: 8px; }
  .tile .mini-av { width: 34px; height: 34px; }
  .score b { font-size: 22px; }
  .transcript { max-height: none; }
  .feed { height: 38vh; min-height: 0; }
  .compose { position: sticky; bottom: 0; background: var(--bg); padding: 8px 0; z-index: 2; }
  .bar { justify-content: center; }
  .bar .title { display: none; }
  .ctrl .lbl, .btn.send .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ctrl { padding: 8px 9px; }
  .ctrls { gap: 6px; }
  .bar { padding: 10px 8px; }
}
@media (max-width: 640px) {
  .form, .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .steps li { width: 12px; }
  .step-label .long { display: none; }
  .step-label .short { display: inline; }
  .stage-scores + .tile.mini { display: none; }
  .stage { min-height: 240px; height: auto; padding: 74px 10px 118px; }
  .turnbox { left: auto; right: 10px; transform: none; align-items: flex-end; }
  .turn { font-size: 15px; padding: 9px 14px; }
  .coach { left: 10px; right: 10px; width: auto; transform: none; bottom: 112px; }
  .topicline { top: 46px; left: 12px; }
  .coach::after { left: auto; right: 40px; }
  .stage .phases { right: 80px; }
  .phase:not(.now) { display: none; }
  .phase.now::after { content: attr(data-of); font-weight: 400; margin-left: 6px; opacity: .8; }
  .stage-scores .site { font-size: 15px; margin-bottom: 8px; }
  .stage-scores .note { display: none; }
  .scores { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .score { padding: 8px 2px; }
  .score b { font-size: 20px; }
  .score span { font-size: 10px; }
  .tile.you { width: auto; padding: 8px 12px; display: flex; align-items: center; gap: 8px; }
  .tile.you .mini-av { display: none; }
  .tile.you.video { width: 112px; padding: 0; display: block; }
}

/* ---------------- the real pages ---------------- */
.loading { color: var(--muted); }
.notice { border-left: 4px solid var(--warn); }
.notice b { display: block; margin-bottom: 4px; }
.msg.sys .btn { margin-top: 6px; }
.msg .text.cleaned { font-style: italic; }
.working { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); }
.working::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tile.you.video canvas.cam { display: block; width: 100%; aspect-ratio: 4 / 3; background: #fff; }
