/* =====================================================================
   Interview Lab - styles

   TABLE OF CONTENTS
    1. Colours (light + dark mode variables)
    2. Base page (reset, body, headings, layout width)
    3. Form controls and buttons
    4. Small building blocks (cards, tags, bars, lists, spinner, table)
    5. Warning banner
    6. Start page (hero, source cards, settings, summary)
    7. Question and evaluation screens
    8. Report (header + identification photo, scores, question cards,
       identity section, timeline)
    9. Live camera preview (top-right) and status badge
   10. Popup (candidate verification, system check)
   11. Responsive rules (tablet / phone)   <- always AFTER the rules above
   12. Print rules
   ===================================================================== */

/* ---------- 1. COLOURS ---------- */
:root {
  --bg: #f3f2fc;
  --card: #fff;
  --tx: #161d3d;
  --mu: #5b6485;
  --br: #e0e2f2;
  --fld: #f7f8fd;
  --ac: #6c47ff;
  --or: #f47b00;
  --orbg: #fff0dc;
  --ok: #0f8a5f;
  --bad: #d63a52;
  --wa: #b86a00;
  --okbg: #e0f6ee;
  --badbg: #ffe8ec;
  --wabg: #fff3d9;
  --acbg: #ece8ff;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f2c;
    --card: #141a46;
    --tx: #eef0ff;
    --mu: #a9b1d8;
    --br: #2a3370;
    --fld: #0e1339;
    --ac: #8f78ff;
    --orbg: #3a2508;
    --ok: #4ade80;
    --bad: #f87171;
    --wa: #fbbf24;
    --okbg: #0c3a30;
    --badbg: #42172a;
    --wabg: #3d2f0c;
    --acbg: #2a2470;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f2c;
  --card: #141a46;
  --tx: #eef0ff;
  --mu: #a9b1d8;
  --br: #2a3370;
  --fld: #0e1339;
  --ac: #8f78ff;
  --orbg: #3a2508;
  --ok: #4ade80;
  --bad: #f87171;
  --wa: #fbbf24;
  --okbg: #0c3a30;
  --badbg: #42172a;
  --wabg: #3d2f0c;
  --acbg: #2a2470;
}

/* ---------- 2. BASE PAGE ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font:
    16px/1.55 "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}
.w {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 16px 56px;
}
h1 {
  font-size: 1.7rem;
  margin: 0.2em 0;
}
h2 {
  font-size: 1.25rem;
  margin: 1.6em 0 0.5em;
}
h3 {
  font-size: 1.02rem;
  margin: 0.9em 0 0.4em;
}
.sep {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mu);
  margin-left: 8px;
}
.sub {
  color: var(--mu);
  margin: 0 0 18px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  align-items: center;
}
.sp {
  flex: 1;
}
.err {
  color: var(--bad);
  margin-top: 10px;
}
.mu {
  color: var(--mu);
  font-size: 0.9rem;
}
body.live .w {
  max-width: 820px;
}

/* ---------- 3. FORM CONTROLS AND BUTTONS ---------- */
label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 12px 0 4px;
}
textarea,
input,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--br);
  border-radius: 12px;
  background: var(--fld);
  color: var(--tx);
  font: inherit;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
:is(button, input, select, textarea):focus-visible {
  outline: 3px solid var(--ac);
  outline-offset: 2px;
}
button {
  font: inherit;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 12px;
  border: 0;
  background: var(--ac);
  color: #fff;
  cursor: pointer;
}
button.g {
  background: transparent;
  color: var(--tx);
  border: 1px solid var(--br);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
select.ph {
  color: var(--mu);
}
.req {
  color: var(--bad);
}

/* ---------- 4. SMALL BUILDING BLOCKS ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--br);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--fld);
  border: 1px solid var(--br);
  color: var(--mu);
  margin-right: 6px;
}
.bar {
  height: 9px;
  background: var(--br);
  border-radius: 9px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--ac);
  border-radius: 9px;
}
.bd2 {
  color: #fff;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}
ul {
  margin: 0.3em 0;
  padding-left: 20px;
}
li {
  margin: 6px 0;
}
.ok li::marker {
  color: var(--ok);
}
.bd li::marker {
  color: var(--bad);
}
.im li::marker {
  color: var(--wa);
}
.ok {
  border-left: 6px solid var(--ok);
}
.bd {
  border-left: 6px solid var(--bad);
}
.im {
  border-left: 6px solid var(--wa);
}
.ok h3,
.bd h3,
.im h3 {
  margin-top: 0;
}
.act {
  color: var(--tx);
  font-size: 0.92rem;
  margin-top: 2px;
}
.sp2 {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid var(--br);
  border-top-color: var(--ac);
  border-radius: 50%;
  animation: r 1s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes r {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp2 {
    animation: none;
  }
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
td,
th {
  border-bottom: 1px solid var(--br);
  padding: 7px;
  text-align: left;
}

/* ---------- 5. WARNING BANNER ---------- */
#wn {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: calc(8px + env(safe-area-inset-top, 0px));
  background: #dc2626;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  z-index: 9;
  display: none;
  max-width: 90%;
}

/* ---------- 6. START PAGE ---------- */
.hero,
.rhero {
  border-radius: 26px;
  color: #fff;
  padding: 32px;
  background: linear-gradient(125deg, #0f1653, #3a2bc4 65%, #f47b00 140%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.hero h1,
.rhero h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 8px;
}
.hero h1 span {
  color: #ffb14a;
}
.hero p,
.rhero p {
  margin: 0;
  opacity: 0.92;
  max-width: 540px;
}
.perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.perks span {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
}
.logo {
  display: block;
  height: 150px; /* change the logo size here */
  width: auto;
  margin-bottom: 14px;
}
.mic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 52px;
  box-shadow:
    0 0 0 14px rgba(255, 255, 255, 0.07),
    0 0 0 28px rgba(255, 255, 255, 0.04);
}
.sec {
  background: var(--card);
  border: 1px solid var(--br);
  border-radius: 20px;
  padding: 22px;
  margin-top: 16px;
}
.sh {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.sh h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}
.sh p {
  margin: 0;
  color: var(--mu);
  font-size: 0.9rem;
}
.no {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--or);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.src {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-weight: 400;
  background: var(--fld);
  border: 2px solid var(--br);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
}
.sc-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.sc-card:has(input:focus-visible) {
  outline: 3px solid var(--ac);
  outline-offset: 2px;
}
.sc-card .ic {
  font-size: 28px;
}
.sc-card b {
  margin-top: 4px;
}
.sc-card small {
  color: var(--mu);
}
.sc-card:after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--br);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: transparent;
}
.sc-card.on {
  border-color: var(--or);
  background: var(--orbg);
}
.sc-card.on:after {
  background: var(--or);
  border-color: var(--or);
  color: #fff;
}
.panel {
  background: var(--fld);
  border: 1px solid var(--br);
  border-radius: 16px;
  padding: 16px;
  margin-top: 10px;
}
.set,
.g3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.box {
  background: var(--fld);
  border: 1px solid var(--br);
  border-radius: 16px;
  padding: 16px;
}
.box h3 {
  margin: 0 0 8px;
}
.box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.92rem;
}
.sum {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.sum div {
  background: var(--fld);
  border: 1px solid var(--br);
  border-radius: 14px;
  padding: 12px;
}
.sum small {
  display: block;
  color: var(--mu);
  font-size: 0.75rem;
}
.sum b {
  font-size: 0.95rem;
}
.sum .empty {
  color: var(--bad);
}
.start {
  width: 100%;
  margin-top: 14px;
  font-size: 1.1rem;
  padding: 16px;
  border-radius: 16px;
  background: var(--or);
}
.start:disabled {
  background: var(--br);
  color: var(--mu);
}
.hint {
  text-align: center;
  color: var(--mu);
  font-size: 0.85rem;
  margin: 8px 0 0;
}

/* ---------- 7. QUESTION AND EVALUATION SCREENS ---------- */
.q {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 10px 0 12px;
}
.m4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.mt {
  text-align: center;
}
.mt b {
  display: block;
  font-size: 2rem;
}
.mt span {
  color: var(--mu);
  font-size: 0.85rem;
}
.tr {
  min-height: 110px;
  padding: 12px;
  border: 1px dashed var(--br);
  border-radius: 12px;
  background: var(--fld);
  white-space: pre-wrap;
}
.tl {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 4px 0;
  font-size: 0.8rem;
}
.tl span {
  width: 64px;
}
.tl div {
  flex: 1;
  display: flex;
  height: 14px;
  border-radius: 4px;
  overflow: hidden;
}
.tl i {
  flex: 1;
}
.tls {
  margin-bottom: 14px;
}
.evtop {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  margin: 8px 0;
}
.big {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.big small {
  font-size: 1rem;
  color: var(--mu);
  font-weight: 600;
}
.dm {
  display: grid;
  grid-template-columns: 170px 1fr 36px;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.dm em {
  font-style: normal;
  color: var(--mu);
  font-weight: 400;
  font-size: 0.8rem;
}
.dm b {
  text-align: right;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--fld);
  border: 1px solid var(--br);
}
.chip.warn {
  background: var(--wabg);
  color: var(--wa);
  border-color: transparent;
}

/* ---------- 8. REPORT ---------- */
/* 8a. Report header (the identification photo sits at the top-right of this) */
.rhero {
  grid-template-columns: 1fr;
}
.rhero:has(.idph) {
  grid-template-columns: 1fr auto;
}
.idph {
  margin: 0;
  text-align: center;
  color: #fff;
}
.idph img {
  display: block;
  width: 150px;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: #000;
}
.idph figcaption {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.3;
  max-width: 170px;
}
.idph figcaption b {
  display: block;
  font-size: 0.95rem;
}
.ban {
  border: 2px solid var(--bad);
  background: var(--badbg);
  margin-top: 14px;
}
/* 8b. Verdict and the three score boxes */
.verdict {
  margin-top: 14px;
  background: var(--card);
  border: 2px solid;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.verdict p {
  margin: 0;
}
.vb {
  flex: none;
  color: #fff;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 14px;
  text-align: center;
}
.sg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.sbx {
  background: var(--card);
  border: 1px solid var(--br);
  border-top: 7px solid var(--c);
  border-radius: 18px;
  padding: 18px;
}
.sbx.s1 {
  --c: var(--ac);
}
.sbx.s2 {
  --c: #0aa89b;
}
.sbx.s3 {
  --c: var(--or);
}
.st {
  font-weight: 800;
}
.sv {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--c);
}
.sv small {
  font-size: 1rem;
  color: var(--mu);
}
.ss {
  color: var(--mu);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.sbx .dm {
  grid-template-columns: 120px 1fr 30px;
  font-size: 0.8rem;
}
.cov {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.cov span {
  background: var(--card);
  border: 1px solid var(--br);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--mu);
}
.cov b {
  color: var(--tx);
  font-size: 1.1rem;
  margin-right: 4px;
}
.qbar {
  display: grid;
  grid-template-columns: 40px 1fr 46px;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
  font-weight: 700;
}
.qbar .bar {
  height: 14px;
}
/* 8c. One card per question */
.qc {
  background: var(--card);
  border: 1px solid var(--br);
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
}
.qh {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--acbg);
  border-bottom: 1px solid var(--br);
}
.qh h3 {
  margin: 4px 0 0;
}
.qs {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
}
.qb {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.qb p {
  margin: 8px 0;
}
.lbl {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ac);
}
.say {
  background: var(--fld);
  border-radius: 12px;
  padding: 12px 14px;
  font-style: italic;
}
/* 8d. Candidate details and identity verification */
.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.kv small {
  display: block;
  color: var(--mu);
  font-size: 0.78rem;
}
.vrow {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.vrow small {
  display: block;
  color: var(--mu);
  font-size: 0.78rem;
  margin-bottom: 2px;
}
.vb2 {
  display: inline-block;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  color: #fff;
  background: #6b7280;
}
.vb2.ok {
  background: #0f7a55;
}
.vb2.wa {
  background: #a15c00;
}
.vb2.bad {
  background: #c02640;
}
/* 8e. Event timeline */
.tlr {
  display: grid;
  grid-template-columns: 78px 24px 1fr;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--br);
  font-size: 0.9rem;
}
.tlr:last-child {
  border: 0;
}
.tlr time {
  color: var(--mu);
  font-variant-numeric: tabular-nums;
}
.tlr.ok span {
  color: var(--ok);
}
.tlr.warning span,
.tlr.minor span,
.tlr.unverified span {
  color: var(--wa);
}
.tlr.critical span {
  color: var(--bad);
}
.tlr em {
  color: var(--mu);
}

/* ---------- 9. LIVE CAMERA (top-right) AND STATUS BADGE ---------- */
#camw {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  width: 168px;
  z-index: 5;
  display: none;
}
#cam {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--or);
  transform: scaleX(-1);
  background: #000;
}
.vs {
  margin-top: 6px;
  border-radius: 10px;
  padding: 5px 9px;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #fff;
  background: #4b5563;
}
.vs b {
  display: block;
  font-weight: 700;
}
.vs small {
  display: block;
  opacity: 0.95;
}
.vs.ok {
  background: #0f7a55;
}
.vs.warn {
  background: #a15c00;
}
.vs.bad {
  background: #c02640;
}
.vs.info {
  background: #4b5563;
}

/* ---------- 10. POPUP (candidate verification, system check) ---------- */
#md {
  position: fixed;
  inset: 0;
  z-index: 20;
}
.mdl {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 35, 0.72);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: auto;
}
.mdb {
  background: var(--card);
  color: var(--tx);
  border: 1px solid var(--br);
  border-radius: 20px;
  padding: 22px;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  outline: none;
}
.mdb h2 {
  font-size: 1.3rem;
}
.fe {
  color: var(--bad);
  font-size: 0.9rem;
  min-height: 1.2em;
  margin: 4px 0 0;
}
.pv {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 340px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 4px;
}
.pv video,
.pv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
}
.pv [hidden] {
  display: none;
}
.oval {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 70%;
  transform: translate(-50%, -50%);
  border: 3px dashed rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  pointer-events: none;
}
.pvm {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 10px;
  text-align: center;
}
.rq {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  font-size: 0.9rem;
}
.rq li:before {
  content: "○ ";
  color: var(--mu);
}
.rq li.ok:before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 800;
}
.rq li.no:before {
  content: "✗ ";
  color: var(--bad);
  font-weight: 800;
}
.vok {
  background: var(--okbg);
  color: var(--ok);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 8px 0;
}
.vok small {
  display: block;
  color: var(--tx);
  font-weight: 400;
  font-size: 0.95rem;
}
.pf {
  background: var(--fld);
  border: 1px solid var(--br);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0;
}
.pfr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.st {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--br);
  color: var(--mu);
}
.st.ok {
  background: var(--okbg);
  color: var(--ok);
}
.st.no {
  background: var(--badbg);
  color: var(--bad);
}
.meter {
  height: 8px;
  background: var(--br);
  border-radius: 8px;
  overflow: hidden;
  margin: 4px 0;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ok);
  transition: width 0.15s;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0;
}

/* ---------- 11. RESPONSIVE RULES (kept together, after everything above) ---------- */
@media (max-width: 1240px) {
  body.live .w {
    padding-top: calc(190px + env(safe-area-inset-top, 0px));
  }
}
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .mic {
    display: none;
  }
  .src,
  .sum,
  .m4 {
    grid-template-columns: 1fr 1fr;
  }
  .set,
  .g3,
  .sg,
  .qb {
    grid-template-columns: 1fr;
  }
  .evtop {
    grid-template-columns: 1fr;
  }
  .verdict {
    flex-direction: column;
    align-items: flex-start;
  }
  .row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  #camw {
    width: 104px;
  }
  body.live .w {
    padding-top: calc(150px + env(safe-area-inset-top, 0px));
  }
}
@media (max-width: 560px) {
  .rq,
  .two {
    grid-template-columns: 1fr;
  }
  .tlr {
    grid-template-columns: 70px 20px 1fr;
  }
  .rhero:has(.idph) {
    grid-template-columns: 1fr;
  }
  .idph {
    justify-self: start;
    text-align: left;
  }
}
@media (max-width: 520px) {
  .src,
  .sum {
    grid-template-columns: 1fr;
  }
  .dm {
    grid-template-columns: 110px 1fr 32px;
  }
}

/* ---------- 12. PRINT ---------- */
@media print {
  body {
    background: #fff;
  }
  .card,
  .qc,
  .sbx {
    break-inside: avoid;
  }
  #cam {
    display: none !important;
  }
  #camw,
  #md {
    display: none !important;
  }
}
