/*
 * Red Stamp / instrument-console pass
 *
 * The checkpoint is intentionally composed like one physical station rather
 * than a collection of responsive web cards. The room is the threshold, the
 * desk is the evidence surface, and the decision rail is the authority
 * hardware. Keep this file last so the older layout remains a safe fallback.
 */

:root {
  --console-black: #080a0a;
  --console-metal: #25292a;
  --console-metal-light: #414241;
  --console-metal-dark: #111415;
  --console-paper: #d8c39c;
  --console-paper-ink: #2f2721;
  --console-red: #a92b25;
  --console-red-hot: #e04f3d;
  --console-green: #93bc8d;
  --console-screw: #b0a391;
}

/* Verification card pass --------------------------------------------------
 * The player needs one persistent surface that records their own reading of
 * the evidence. This is the station's equivalent of a paper checklist, not a
 * second dashboard panel.
 */
.scene-checklist {
  position: absolute;
  right: auto;
  bottom: 6%;
  left: 3%;
  z-index: 15;
  width: min(300px, 22vw);
  padding: 12px 13px 11px;
  border: 1px solid #8e775c;
  border-top-color: #c6aa7f;
  border-right-color: #675644;
  background:
    linear-gradient(135deg, rgba(255, 245, 212, 0.18), transparent 38%),
    repeating-linear-gradient(0deg, rgba(86, 58, 38, 0.035) 0 1px, transparent 1px 4px),
    #d7c39d;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.62), inset 0 0 0 3px rgba(87, 58, 37, 0.08);
  color: #3b2b24;
  transform: rotate(-0.55deg);
}

.scene-checklist::before,
.scene-checklist::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid #74614f;
  border-radius: 50%;
  background: #c9b796;
  box-shadow: inset 0 1px 1px rgba(255, 247, 212, 0.75), 0 1px 2px #35251d;
  content: "";
}

.scene-checklist::before { top: 7px; left: 7px; }
.scene-checklist::after { top: 7px; right: 7px; }

.checklist-header,
.checklist-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.checklist-header {
  padding: 0 0 7px;
  border-bottom: 1px solid rgba(78, 52, 37, 0.32);
}

.scene-checklist .panel-kicker {
  margin-bottom: 2px;
  color: #6b3028;
  font-size: 8px;
}

.checklist-header strong {
  display: block;
  color: #3b2923;
  font-family: var(--console-display);
  font-size: 17px;
  letter-spacing: 0.05em;
  line-height: 1;
}

.checklist-state,
.checklist-footer > span {
  color: #6d5140;
  font-family: var(--console-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.checklist-state {
  padding: 4px 5px;
  border: 1px solid rgba(108, 61, 45, 0.4);
}

.checklist-instruction {
  min-height: 27px;
  margin: 8px 0 7px;
  color: #5f483a;
  font-family: var(--console-body);
  font-size: 10px;
  line-height: 1.3;
}

.checklist-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.checklist-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  grid-template-rows: 1fr 12px;
  min-width: 0;
  min-height: 43px;
  padding: 5px 5px 4px;
  border: 1px solid rgba(84, 56, 41, 0.34);
  border-left: 3px solid rgba(84, 56, 41, 0.34);
  background: rgba(255, 245, 214, 0.25);
  color: #4a362b;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.checklist-row:hover:not(:disabled),
.checklist-row.is-current {
  border-color: #914036;
  background: rgba(185, 77, 58, 0.13);
  transform: translateY(-1px);
}

.checklist-row.is-marked {
  border-left-color: #567a55;
}

.checklist-row.is-flagged {
  border-left-color: #9b3b32;
}

.checklist-row.is-review {
  border-left-color: #b0803f;
}

.checklist-row:disabled {
  cursor: default;
  opacity: 0.88;
}

.checklist-index {
  grid-row: 1 / -1;
  align-self: center;
  color: #895844;
  font-family: var(--console-mono);
  font-size: 9px;
}

.checklist-label {
  min-width: 0;
  overflow: hidden;
  color: #3e2d25;
  font-family: var(--console-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checklist-mark {
  overflow: hidden;
  color: #8c6d53;
  font-family: var(--console-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checklist-row.is-marked .checklist-mark { color: #3f7047; }
.checklist-row.is-flagged .checklist-mark { color: #9b332b; }
.checklist-row.is-review .checklist-mark { color: #9b6d29; }

.checklist-footer {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(78, 52, 37, 0.32);
}

.checklist-submit {
  min-height: 27px;
  padding: 5px 8px;
  border: 1px solid #702b26;
  background: linear-gradient(180deg, #a8483a, #6f2927);
  box-shadow: inset 0 -2px 0 rgba(42, 15, 13, 0.32), 0 2px 3px rgba(48, 26, 18, 0.24);
  color: #f5d8ad;
  cursor: pointer;
  font-family: var(--console-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.checklist-submit:hover:not(:disabled) {
  background: linear-gradient(180deg, #c45b46, #812f2b);
  transform: translateY(-1px);
}

.checklist-submit:disabled {
  border-color: #91775c;
  background: #9d896b;
  color: #ddc9a4;
  cursor: not-allowed;
  opacity: 0.56;
}

.observation-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.observation-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
  padding: 7px 8px;
  border: 1px solid rgba(216, 188, 147, 0.18);
  background: rgba(0, 0, 0, 0.16);
}

.observation-row span {
  color: #c79e70;
  font-family: var(--console-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.observation-row p {
  margin: 0;
  color: #d5c2aa;
  font-size: 13px;
  line-height: 1.35;
}

.observation-row-hint > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.observation-hint {
  display: inline-grid;
  width: 17px;
  height: 17px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(216, 188, 147, 0.58);
  border-radius: 50%;
  background: #252524;
  color: #e4c994;
  cursor: pointer;
  font-family: var(--console-mono);
  font-size: 11px;
  line-height: 1;
}

.observation-hint:hover,
.observation-hint.is-open {
  border-color: var(--console-red-hot);
  background: #54211f;
  color: #f4d2a3;
}

.finding-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 188, 147, 0.2);
}

.finding-controls > span {
  color: #b69a78;
  font-family: var(--console-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.finding-controls > div {
  display: flex;
  gap: 4px;
}

.finding-button {
  min-width: 58px;
  padding: 6px 7px;
  border: 1px solid rgba(196, 159, 112, 0.42);
  background: #1d2120;
  color: #d9bc91;
  cursor: pointer;
  font-family: var(--console-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.finding-button:hover:not(:disabled),
.finding-button.is-selected {
  border-color: var(--console-red-hot);
  background: #54211f;
  color: #f4d2a3;
}

.finding-button:disabled {
  cursor: default;
  opacity: 0.58;
}

.inspection-result-copy.flag {
  border-left-color: #e06b54;
}

/* Stable desktop zones: the paper card and authority plate read as parts of
 * the same console, while the visitor remains the center of attention. */
@media (min-width: 761px) {
  .scene-case-card {
    width: min(330px, 26vw);
    padding: 15px 16px 16px;
  }

  .scene-checklist {
    width: min(300px, 22vw);
  }

  .scene-hotspot {
    backdrop-filter: blur(3px);
  }
}

@media (max-width: 760px) {
  .scene-checklist {
    right: 10px;
    bottom: calc(76px + var(--mobile-safe-bottom));
    left: 10px;
    width: auto;
    padding: 7px 8px 6px;
    transform: none;
  }

  .scene-checklist::before,
  .scene-checklist::after {
    display: none;
  }

  .checklist-header {
    padding-bottom: 5px;
  }

  .scene-checklist .panel-kicker {
    display: inline;
    margin-right: 6px;
    font-size: 7px;
  }

  .checklist-header strong {
    display: inline;
    font-size: 13px;
  }

  .checklist-state,
  .checklist-footer > span {
    font-size: 8px;
  }

  .checklist-instruction {
    display: none;
  }

  .checklist-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }

  .checklist-row {
    grid-template-columns: 14px minmax(0, 1fr);
    grid-template-rows: 1fr 10px;
    min-height: 33px;
    padding: 3px 3px 2px;
  }

  .checklist-index,
  .checklist-mark,
  .checklist-label {
    font-size: 7px;
  }

  .checklist-footer {
    margin-top: 5px;
    padding-top: 5px;
  }

  .checklist-submit {
    min-height: 23px;
    padding: 4px 6px;
    font-size: 8px;
  }

  /* The checklist is the mobile evidence dock; keep the old floating map
   * area in the layout for compatibility, but remove its duplicate chrome. */
  .scene-hotspots {
    height: 0;
    min-height: 0;
    opacity: 0;
    pointer-events: none;
  }

  .observation-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .observation-row span,
  .finding-controls > span,
  .finding-button {
    font-size: 9px;
  }

  .finding-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .finding-controls > div {
    width: 100%;
  }

  .finding-button {
    flex: 1;
  }
}

body {
  background:
    radial-gradient(circle at 50% 0%, rgba(145, 43, 31, 0.13), transparent 36rem),
    #080a0a;
}

.app {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 100svh;
  padding: clamp(7px, 1.15vw, 18px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 5% 95%, rgba(255, 255, 255, 0.018)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 5px),
    #0b0d0e;
  box-shadow: inset 0 0 0 1px #050606, inset 0 0 70px rgba(0, 0, 0, 0.78);
}

.topbar {
  position: relative;
  z-index: 20;
  min-height: 62px;
  padding: 10px clamp(15px, 2.4vw, 34px);
  overflow: hidden;
  border: 1px solid #4a443d;
  border-top-color: #665e53;
  border-bottom-color: #171a1b;
  background:
    radial-gradient(circle at 11px 50%, #aaa292 0 2px, #3b3935 2px 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 11px) 50%, #aaa292 0 2px, #3b3935 2px 4px, transparent 4.5px),
    linear-gradient(180deg, rgba(75, 76, 72, 0.28), transparent 36%),
    linear-gradient(180deg, #242728, #101314);
  box-shadow:
    inset 0 1px 0 rgba(255, 239, 204, 0.13),
    inset 0 -7px 0 rgba(0, 0, 0, 0.23),
    0 5px 18px rgba(0, 0, 0, 0.55);
}

.topbar::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(210, 193, 162, 0.09);
  content: "";
  pointer-events: none;
}

.brand-lockup,
.protocol-status,
.header-metrics {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  gap: 10px;
  min-width: 225px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-color: #c26f54;
  background:
    linear-gradient(135deg, rgba(255, 177, 115, 0.16), transparent 40%),
    linear-gradient(145deg, #a62b24, #4f1518);
  box-shadow:
    inset 0 0 0 2px rgba(255, 206, 161, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.52);
}

.brand-name {
  font-family: "Arial Black", "Arial Narrow", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.24em;
}

.brand-subtitle {
  color: #aa9b88;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.protocol-status {
  gap: 8px;
  color: #b8ad9f;
  font-family: "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.11em;
}

.status-light {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(239, 235, 195, 0.45);
  box-shadow: 0 0 8px rgba(147, 188, 141, 0.8);
}

.header-metrics {
  gap: 17px;
}

.metric {
  min-width: 112px;
  gap: 4px;
}

.metric-label {
  color: #9d9488;
  font-size: 7px;
  letter-spacing: 0.12em;
}

.metric strong {
  color: #e8d8bf;
  font-family: "Courier New", monospace;
  font-size: 15px;
}

.meter {
  height: 3px;
  border: 1px solid #171a1a;
  background: #0a0c0c;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.meter span {
  box-shadow: 0 0 6px currentColor;
}

main {
  height: auto;
  min-height: 0;
  margin-top: 0;
}

.embassy-wall {
  position: relative;
  height: 100%;
  min-height: 0;
  border: clamp(7px, 0.8vw, 13px) solid #1b1e1f;
  border-top-color: #303334;
  border-right-color: #111415;
  border-bottom-color: #0e1011;
  border-left-color: #272a2a;
  background-position: center;
  box-shadow:
    inset 0 0 0 1px rgba(222, 196, 153, 0.22),
    inset 0 0 0 5px rgba(0, 0, 0, 0.44),
    inset 0 -125px 110px rgba(3, 4, 4, 0.8),
    0 8px 25px rgba(0, 0, 0, 0.58);
}

.embassy-wall::before,
.embassy-wall::after {
  position: absolute;
  z-index: 17;
  inset: 5px;
  border: 1px solid rgba(213, 187, 148, 0.15);
  content: "";
  pointer-events: none;
}

.embassy-wall::after {
  inset: -1px;
  border: 0;
  background:
    radial-gradient(circle at 11px 11px, var(--console-screw) 0 2px, #292b2a 2.5px 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 11px) 11px, var(--console-screw) 0 2px, #292b2a 2.5px 4px, transparent 4.5px),
    radial-gradient(circle at 11px calc(100% - 11px), var(--console-screw) 0 2px, #292b2a 2.5px 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), var(--console-screw) 0 2px, #292b2a 2.5px 4px, transparent 4.5px);
  opacity: 0.74;
}

.scene-line {
  top: 0;
  right: 2.4%;
  left: 2.4%;
  padding: 9px 2px 8px;
  border-bottom: 1px solid rgba(214, 185, 143, 0.25);
  color: #bbb0a2;
  font-family: "Courier New", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px #000;
}

.scene-line span:last-child {
  color: #d5ad76;
}

.scene-case-card {
  top: 16%;
  left: 3%;
  width: min(298px, 26vw);
  padding: 13px 14px 14px;
  border: 1px solid rgba(188, 155, 111, 0.62);
  border-left: 5px solid var(--console-red-hot);
  border-radius: 1px;
  background:
    linear-gradient(135deg, rgba(226, 196, 149, 0.06), transparent 34%),
    linear-gradient(140deg, rgba(12, 14, 14, 0.96), rgba(29, 20, 20, 0.83));
  box-shadow:
    0 12px 23px rgba(0, 0, 0, 0.57),
    inset 0 1px 0 rgba(249, 226, 179, 0.08);
  transform: rotate(-0.35deg);
}

.scene-case-card::before,
.scene-case-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.scene-case-card::before {
  top: 8px;
  right: -5px;
  width: 5px;
  height: 22px;
  border: 1px solid rgba(199, 163, 116, 0.5);
  border-left: 0;
  background: #17191a;
}

.scene-case-card::after {
  top: 7px;
  right: 8px;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(230, 205, 163, 0.52);
  border-radius: 50%;
  background: #554f46;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 243, 212, 0.3);
}

.scene-case-card strong {
  color: #f1d2a9;
  font-family: "Arial Black", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(13px, 1.18vw, 18px);
  letter-spacing: 0.11em;
}

.scene-case-card small {
  color: #b8a491;
  font-family: "Courier New", monospace;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.scene-case-card p {
  color: #d0bda7;
  font-size: 10px;
}

.scene-case-tags span {
  border: 0;
  border-top: 1px solid rgba(204, 164, 113, 0.47);
  background: rgba(5, 7, 7, 0.34);
  color: #d8b67e;
  font-family: "Courier New", monospace;
  font-size: 6px;
}

.scene-case-tags span:last-child {
  border-color: rgba(220, 76, 57, 0.62);
  color: #e28b72;
}

/* The threshold is a physical aperture in the station. This gives the
 * visitor a place in the instrument's depth, instead of leaving the sprite
 * floating on top of the embassy photograph. */
.visitor-stage {
  isolation: isolate;
}

.visitor-stage::before {
  position: absolute;
  z-index: 0;
  inset: 3% 1% 5%;
  border: 9px solid #1a1d1d;
  border-top-color: #454542;
  border-right-color: #101213;
  border-bottom-color: #0b0d0d;
  border-left-color: #2b2d2c;
  background:
    radial-gradient(circle at 9px 9px, #aca18d 0 2px, #484740 2.5px 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 9px) 9px, #aca18d 0 2px, #484740 2.5px 4px, transparent 4.5px),
    linear-gradient(180deg, rgba(4, 6, 6, 0.28), rgba(5, 6, 6, 0.7));
  box-shadow:
    inset 0 0 0 1px rgba(225, 198, 157, 0.22),
    inset 0 0 0 5px rgba(0, 0, 0, 0.38),
    0 15px 28px rgba(0, 0, 0, 0.42);
  content: "";
  pointer-events: none;
}

.visitor-stage::after {
  position: absolute;
  z-index: 3;
  top: 5%;
  left: 12px;
  padding: 3px 5px;
  border-left: 2px solid var(--console-red-hot);
  background: rgba(5, 7, 7, 0.68);
  color: #bba783;
  content: "THRESHOLD / 01";
  font-family: "Courier New", monospace;
  font-size: 6px;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.visitor-portrait {
  z-index: 2;
}

.scene-hotspot {
  min-width: 68px;
  min-height: 34px;
  padding: 4px 7px;
  border: 1px solid rgba(215, 186, 144, 0.4);
  background: rgba(7, 9, 9, 0.38);
  box-shadow: 0 7px 13px rgba(0, 0, 0, 0.27), inset 0 1px 0 rgba(238, 214, 179, 0.08);
  backdrop-filter: none;
}

.hotspot-sprite {
  opacity: 0.35;
  filter: saturate(0.68) contrast(1.28) brightness(0.92);
  mix-blend-mode: screen;
}

.hotspot-visitor .hotspot-sprite {
  opacity: 0.7;
  filter: saturate(0.8) contrast(1.12) drop-shadow(0 7px 6px rgba(0, 0, 0, 0.7));
}

.hotspot-label {
  color: #e3c697;
  font-family: "Courier New", monospace;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 4px #000;
}

.hotspot-pulse {
  width: 6px;
  height: 6px;
  border-color: #e8d3ae;
  background: var(--console-red-hot);
  box-shadow: 0 0 8px rgba(224, 79, 61, 0.9);
  animation: console-lamp-breathe 3.8s ease-in-out infinite;
}

.scene-hotspot:hover:not(:disabled),
.scene-hotspot.selected,
.scene-hotspot.revealed {
  border-color: var(--console-red-hot);
  background: rgba(73, 22, 20, 0.72);
  box-shadow: 0 0 0 1px rgba(224, 79, 61, 0.3), 0 0 20px rgba(188, 49, 38, 0.28);
}

.hotspot-visitor {
  border-color: rgba(226, 187, 133, 0.16);
  background: transparent;
  box-shadow: none;
}

.hotspot-visitor .hotspot-label {
  padding: 4px 7px;
  border: 1px solid rgba(211, 176, 125, 0.34);
  background: rgba(7, 9, 9, 0.63);
}

/* The visitor hotspot owns the click target; the engraved nameplate is only
 * a visual layer and must not steal that target. */
.visitor-nameplate {
  pointer-events: none;
}

.security-desk {
  right: 27%;
  bottom: 10%;
  width: min(310px, 25vw);
  min-height: 130px;
  border: 1px solid #625846;
  border-top-color: #8a7457;
  background:
    linear-gradient(180deg, rgba(104, 84, 61, 0.15), transparent 27%),
    linear-gradient(145deg, #202324, #070909 80%);
  box-shadow:
    inset 0 0 0 4px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(245, 214, 170, 0.12),
    0 18px 34px rgba(0, 0, 0, 0.62);
}

.security-desk::before,
.security-desk::after {
  position: absolute;
  z-index: 5;
  width: 6px;
  height: 6px;
  border: 1px solid #a89a84;
  border-radius: 50%;
  background: #4b4842;
  box-shadow: inset 0 1px 1px rgba(255, 240, 200, 0.36), 0 1px 2px #000;
  content: "";
}

.security-desk::before {
  top: 7px;
  left: 7px;
}

.security-desk::after {
  top: 7px;
  right: 7px;
}

.desk-topline {
  padding: 10px 14px 8px;
  border-bottom-color: rgba(214, 182, 136, 0.24);
  color: #d2b482;
  font-family: "Courier New", monospace;
  font-size: 8px;
}

.desk-panel {
  min-height: 85px;
  padding: 11px 14px;
}

.desk-emblem {
  width: 40px;
  height: 40px;
  border-color: #c09a65;
  color: #d1aa73;
  font-size: 18px;
  box-shadow: inset 0 0 0 4px #141717, 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.desk-instruction {
  color: #d4b47d;
  font-family: "Courier New", monospace;
  font-size: 7px;
}

.desk-status {
  color: #a79c8e;
  font-family: "Courier New", monospace;
  font-size: 7px;
}

.desk-edge {
  height: 5px;
  background: linear-gradient(90deg, #6d1b1d, var(--console-red-hot), #6d1b1d);
}

.desk-stamp-art {
  z-index: 4;
  opacity: 0.92;
}

.scene-actions {
  right: 2.4%;
  bottom: 3%;
  width: min(430px, 35vw);
  padding: 10px;
  border: 7px solid #1b1e1f;
  border-top-color: #3f4140;
  border-bottom-color: #0b0d0d;
  background:
    linear-gradient(180deg, rgba(216, 186, 140, 0.08), transparent 24%),
    #111415;
  box-shadow:
    inset 0 0 0 1px rgba(224, 200, 165, 0.3),
    inset 0 -7px 0 rgba(0, 0, 0, 0.36),
    0 13px 25px rgba(0, 0, 0, 0.64);
}

.scene-actions::before,
.scene-actions::after {
  position: absolute;
  top: 5px;
  width: 6px;
  height: 6px;
  border: 1px solid #a49885;
  border-radius: 50%;
  background: #444440;
  box-shadow: inset 0 1px 1px rgba(255, 241, 198, 0.3);
  content: "";
}

.scene-actions::before { left: 5px; }
.scene-actions::after { right: 5px; }

.scene-actions-label {
  padding: 0 2px 2px;
  color: #b8a68e;
  font-family: "Courier New", monospace;
  font-size: 7px;
}

.scene-decision {
  min-height: 36px;
  border: 1px solid rgba(186, 157, 118, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 227, 182, 0.08), transparent 30%),
    #191c1d;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.32), 0 2px 3px rgba(0, 0, 0, 0.4);
  color: #d2b98f;
  font-family: "Courier New", monospace;
  font-size: 7px;
  letter-spacing: 0.06em;
}

.scene-decision:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.28), 0 4px 7px rgba(0, 0, 0, 0.5), 0 0 12px rgba(220, 69, 53, 0.22);
}

.scene-decision.admit { color: #b9d6b4; }
.scene-decision.hold,
.scene-decision.call { color: #e0c281; }
.scene-decision.deny { color: #e99883; }

.scene-decision:disabled {
  opacity: 0.32;
}

.footer-bar {
  position: static;
  min-height: 23px;
  padding: 7px 4px 0;
  color: #756e65;
  font-family: "Courier New", monospace;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.footer-help {
  border: 0;
  background: transparent;
  color: #b29776;
  font-family: "Courier New", monospace;
  font-size: 7px;
}

/* The opening briefing is the same station waking up, not a separate web
 * splash screen. */
.overlay {
  background:
    radial-gradient(circle at 50% 45%, rgba(161, 41, 31, 0.1), transparent 35rem),
    rgba(2, 3, 3, 0.86);
  backdrop-filter: blur(7px) saturate(0.75);
}

.overlay-card {
  position: relative;
  width: min(790px, calc(100% - 24px));
  min-height: 420px;
  padding: 30px 40px 28px 252px;
  overflow: hidden;
  border: 9px solid #1c1f20;
  border-top-color: #4b4b47;
  border-right-color: #121515;
  border-bottom-color: #0a0c0c;
  border-left-color: #2d302f;
  background:
    linear-gradient(135deg, rgba(169, 43, 37, 0.14), transparent 38%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 5px),
    #191719;
  box-shadow:
    inset 0 0 0 1px rgba(230, 198, 155, 0.3),
    inset 0 0 0 5px rgba(0, 0, 0, 0.28),
    0 26px 75px rgba(0, 0, 0, 0.85);
}

.overlay-card::before,
.overlay-card::after {
  position: absolute;
  z-index: 4;
  width: 7px;
  height: 7px;
  border: 1px solid #b1a28d;
  border-radius: 50%;
  background: #4c4b45;
  box-shadow: inset 0 1px 1px rgba(255, 242, 202, 0.38), 0 1px 2px #000;
  content: "";
}

.overlay-card::before { top: 9px; left: 9px; }
.overlay-card::after { top: 9px; right: 9px; }

.overlay-inspector {
  filter: saturate(0.82) brightness(0.9) drop-shadow(0 17px 16px rgba(0, 0, 0, 0.78));
}

.overlay-card h1 {
  color: #efd0a6;
  font-family: "Arial Black", "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.18em;
}

.overlay-card p {
  color: #c7b7a4;
  font-size: 12px;
}

.briefing-strip {
  border-color: rgba(207, 175, 132, 0.28);
  background: rgba(0, 0, 0, 0.2);
}

.primary-button {
  border-color: #d1543f;
  background:
    linear-gradient(180deg, rgba(255, 213, 164, 0.1), transparent 35%),
    linear-gradient(145deg, #ad3027, #5f1b1d);
  box-shadow: inset 0 -3px 0 rgba(46, 9, 12, 0.42), 0 3px 5px rgba(0, 0, 0, 0.46);
  font-family: "Courier New", monospace;
  letter-spacing: 0.12em;
}

/* Make the inspection layer feel like a pulled-forward instrument, not a web dialog. */
.inspection-overlay {
  position: fixed;
  padding: clamp(12px, 3vw, 38px);
  background: rgba(2, 3, 3, 0.72);
  backdrop-filter: blur(3px) saturate(0.8);
}

.inspection-overlay::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 5px, rgba(203, 180, 141, 0.07) 5px 6px),
    linear-gradient(90deg, transparent, rgba(205, 179, 134, 0.08) 50%, transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
}

.inspection-overlay.is-open::before {
  animation: console-screen-wake 520ms ease-out both;
}

.inspection-modal {
  z-index: 1;
  width: min(900px, 100%);
  max-height: calc(100svh - 26px);
  border: 10px solid #1b1e1f;
  border-top-color: #454642;
  border-right-color: #111415;
  border-bottom-color: #0c0e0e;
  border-left-color: #2d302f;
  background:
    linear-gradient(135deg, rgba(167, 38, 31, 0.12), transparent 32%),
    linear-gradient(145deg, #292b2b, #0b0e0f 76%);
  box-shadow:
    inset 0 0 0 1px rgba(219, 196, 160, 0.26),
    inset 0 0 0 5px rgba(0, 0, 0, 0.28),
    0 30px 80px rgba(0, 0, 0, 0.86);
}

.inspection-overlay.is-open .inspection-modal {
  animation: console-drawer-rise 360ms cubic-bezier(0.2, 0.82, 0.28, 1) both;
}

.inspection-overlay[data-tool="xray"] .inspection-visual,
.inspection-overlay[data-tool="detector"] .inspection-visual {
  position: relative;
}

.inspection-overlay[data-tool="xray"] .inspection-visual::after,
.inspection-overlay[data-tool="detector"] .inspection-visual::after {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: -12%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(187, 238, 211, 0.9) 20% 80%, transparent);
  box-shadow: 0 0 16px rgba(117, 226, 194, 0.9), 0 0 34px rgba(117, 226, 194, 0.44);
  content: "";
  pointer-events: none;
  animation: console-instrument-sweep 780ms cubic-bezier(0.2, 0.7, 0.24, 1) 120ms both;
}

.inspection-overlay[data-tool="detector"] .inspection-visual::after {
  background: linear-gradient(180deg, transparent, rgba(197, 226, 188, 0.9) 20% 80%, transparent);
  box-shadow: 0 0 13px rgba(147, 188, 141, 0.82), 0 0 25px rgba(147, 188, 141, 0.35);
}

.inspection-overlay[data-tool="question"] .inspection-visual {
  background:
    radial-gradient(circle at 50% 40%, rgba(170, 47, 37, 0.16), transparent 55%),
    #080a0a;
}

.inspection-modal::before {
  position: absolute;
  z-index: 3;
  inset: 4px;
  border: 1px solid rgba(228, 207, 170, 0.13);
  content: "";
  pointer-events: none;
}

.modal-close {
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(205, 170, 116, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d7c49f 0 8%, #4b4034 12% 30%, #141717 34%);
  color: transparent;
  font-size: 0;
  box-shadow: 0 2px 3px #000;
}

.modal-close::after {
  position: absolute;
  top: 7px;
  right: 5px;
  bottom: 7px;
  left: 5px;
  border-top: 1px solid #d9c29a;
  border-bottom: 1px solid #d9c29a;
  content: "";
  transform: rotate(-45deg);
}

.inspection-modal-heading {
  min-height: 64px;
  padding: 17px 52px 11px 20px;
  border-bottom-color: rgba(215, 181, 135, 0.25);
  background: linear-gradient(180deg, rgba(238, 208, 166, 0.05), transparent);
}

.inspection-modal-heading h2 {
  color: #f0d2a8;
  font-family: "Arial Black", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(18px, 2.8vw, 27px);
  letter-spacing: 0.08em;
}

.inspection-status {
  border: 0;
  border-left: 2px solid var(--console-red-hot);
  background: rgba(0, 0, 0, 0.2);
  color: #d6b979;
  font-family: "Courier New", monospace;
  font-size: 8px;
}

.inspection-visual {
  min-height: 205px;
  margin: 14px 20px 0;
  border: 5px solid #171a1a;
  outline: 1px solid rgba(218, 188, 143, 0.28);
  background: #050707;
  box-shadow: inset 0 0 0 1px rgba(231, 207, 169, 0.14), 0 5px 12px rgba(0, 0, 0, 0.48);
}

.inspection-visual.dossier-visual {
  padding: 14px;
  background: linear-gradient(135deg, rgba(125, 32, 37, 0.14), transparent 45%), #17100f;
}

.inspection-text {
  padding: 13px 20px 15px;
}

.inspection-result-copy {
  padding-left: 11px;
  border-left-width: 3px;
}

.inspection-result-copy h3 {
  color: #e7c69b;
  font-family: "Arial Black", "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
}

.inspection-result-copy p {
  color: #c9b9a5;
  font-size: 12px;
}

.inspection-meta > div {
  border: 0;
  border-top: 1px solid rgba(216, 188, 147, 0.22);
  background: transparent;
}

.inspection-modal-footer {
  gap: 10px;
  padding: 10px 20px 14px;
  border-top-color: rgba(215, 181, 135, 0.25);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28));
}

.inspection-shortcuts {
  gap: 4px;
}

.inspection-shortcuts button,
.modal-return {
  border: 1px solid rgba(191, 151, 106, 0.38);
  background: #1c2020;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.32), 0 1px 2px #000;
  color: #cdb185;
  font-family: "Courier New", monospace;
  font-size: 7px;
}

.inspection-shortcuts button:hover,
.inspection-shortcuts button.selected,
.modal-return:hover {
  border-color: var(--console-red-hot);
  background: #4a1d1c;
  color: #f0cc9c;
}

@keyframes console-lamp-breathe {
  0%, 100% { opacity: 0.62; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes console-screen-wake {
  0% { opacity: 0; transform: translateY(-16%); }
  28% { opacity: 0.18; }
  100% { opacity: 0.035; transform: translateY(12%); }
}

@keyframes console-drawer-rise {
  0% { opacity: 0; transform: translateY(28px) scale(0.985) rotateX(1.2deg); }
  58% { opacity: 1; transform: translateY(-3px) scale(1.002) rotateX(0deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0deg); }
}

@keyframes console-instrument-sweep {
  0% { left: -12%; opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { left: 112%; opacity: 0; }
}

@media (max-width: 1060px) {
  .app {
    padding: 7px;
  }

  .topbar {
    min-height: 58px;
  }

  .scene-case-card {
    width: 28vw;
  }

  .security-desk {
    right: 24%;
    width: min(290px, 29vw);
  }

  .scene-actions {
    width: min(430px, 42vw);
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app {
    min-height: 100svh;
    padding: 4px;
  }

  .topbar {
    min-height: 84px;
    margin: 0;
    padding: 8px 12px 25px;
  }

  .brand-lockup {
    min-width: 0;
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 12px;
    letter-spacing: 0.17em;
  }

  .brand-subtitle {
    font-size: 6px;
  }

  .protocol-status {
    bottom: 5px;
    left: 12px;
    font-size: 7px;
  }

  .header-metrics {
    gap: 6px;
  }

  .metric {
    min-width: 66px;
  }

  .metric-label {
    max-width: 66px;
    font-size: 5px;
  }

  .metric strong {
    font-size: 12px;
  }

  main {
    height: auto;
    min-height: 0;
    margin-top: 4px;
  }

  .embassy-wall {
    height: max(620px, calc(100svh - 128px));
    min-height: 620px;
    border-width: 7px;
  }

  .scene-line {
    top: 0;
    right: 12px;
    left: 12px;
    padding-top: 7px;
    font-size: 6px;
  }

  .scene-case-card {
    top: 11%;
    left: 10px;
    width: min(255px, 66vw);
    padding: 9px 10px 10px;
  }

  .scene-case-card strong {
    font-size: 11px;
  }

  .scene-case-card small {
    font-size: 6px;
  }

  .scene-case-card p {
    display: none;
  }

  .scene-case-tags span {
    padding: 3px 4px;
    font-size: 5px;
  }

  .visitor-stage {
    bottom: 28%;
    left: 4%;
    width: min(225px, 53vw);
    height: 45%;
  }

  .security-desk {
    right: 4%;
    bottom: 28%;
    width: min(195px, 44vw);
    min-height: 88px;
  }

  .desk-topline {
    padding: 7px 9px;
    font-size: 6px;
  }

  .desk-panel {
    min-height: 58px;
    gap: 7px;
    padding: 7px 9px;
  }

  .desk-emblem {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .desk-status {
    font-size: 6px;
  }

  .scene-hotspots {
    right: 10px;
    bottom: calc(115px + var(--mobile-safe-bottom));
    left: 10px;
    gap: 3px;
    height: 57px;
  }

  .scene-hotspot,
  .hotspot-record,
  .hotspot-visitor,
  .hotspot-documents,
  .hotspot-detector,
  .hotspot-xray,
  .hotspot-question {
    height: 57px;
    min-height: 50px;
    padding: 3px 2px;
    border-color: rgba(218, 184, 137, 0.42);
    background: rgba(13, 16, 16, 0.86);
  }

  .scene-hotspot .hotspot-sprite,
  .hotspot-visitor .hotspot-sprite {
    height: 34px;
  }

  .scene-hotspot .hotspot-label {
    font-size: 5px;
    letter-spacing: 0.05em;
  }

  .scene-actions {
    right: 10px;
    bottom: calc(7px + var(--mobile-safe-bottom));
    left: 10px;
    width: auto;
    gap: 3px;
    padding: 5px;
    border-width: 5px;
  }

  .scene-actions-label {
    font-size: 5px;
  }

  .scene-decision {
    min-height: 36px;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 3px;
    padding: 3px 4px;
    font-size: 6px;
  }

  .decision-sprite {
    width: 22px;
    height: 24px;
  }

  .footer-bar {
    display: none;
  }

  .overlay-card {
    min-height: 500px;
    padding: 28px 20px 25px;
    text-align: center;
  }

  .overlay-inspector {
    right: 0;
    bottom: auto;
    left: 0;
    width: 190px;
    height: 235px;
    margin: 0 auto;
  }

  .overlay-card .overlay-emblem {
    margin: 205px auto 14px;
  }

  .inspection-overlay {
    align-items: start;
    padding: 7px;
  }

  .inspection-modal {
    width: 100%;
    max-height: calc(100svh - 14px);
    border-width: 7px;
  }

  .inspection-modal-heading {
    min-height: 72px;
    padding: 15px 48px 10px 13px;
  }

  .inspection-modal-heading h2 {
    font-size: 18px;
  }

  .inspection-visual {
    min-height: 142px;
    margin: 9px 12px 0;
  }

  .inspection-visual.dossier-visual {
    padding: 9px;
  }

  .inspection-text {
    padding: 10px 12px 11px;
  }

  .inspection-result-copy p {
    font-size: 11px;
  }

  .inspection-modal-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 8px 12px calc(10px + var(--mobile-safe-bottom));
  }

  .inspection-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inspection-shortcuts button {
    justify-content: center;
    min-height: 37px;
    padding: 4px 2px;
    font-size: 6px;
  }

  .modal-return {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot-pulse {
    animation: none;
  }

  .inspection-overlay.is-open::before,
  .inspection-overlay.is-open .inspection-modal,
  .inspection-overlay[data-tool="xray"] .inspection-visual::after,
  .inspection-overlay[data-tool="detector"] .inspection-visual::after {
    animation: none !important;
  }

  .inspection-overlay.is-open::before {
    opacity: 0.03;
  }
}

/* Readability pass: the checkpoint is a game instrument, so anything the
 * player must read or press gets display space. Decorative engraving may stay
 * small, but evidence and decisions must never look like browser chrome. */
:root {
  --console-display: "Nimbus Sans Narrow", "Arial Narrow", "DejaVu Sans Condensed", Impact, sans-serif;
  --console-body: "DejaVu Sans", "Segoe UI", Arial, sans-serif;
  --console-mono: "Ubuntu Mono", "Courier New", monospace;
}

body {
  font-family: var(--console-body);
  font-size: 17px;
}

h1,
h2,
h3,
.brand-name,
.scene-case-card strong,
.inspection-modal-heading h2,
.inspection-result-copy h3,
.overlay-card h1 {
  font-family: var(--console-display);
  font-stretch: condensed;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(232, 192, 132, 0.48);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #140b0c;
}

.brand-lockup {
  gap: 13px;
  min-width: 285px;
}

.brand-name {
  font-size: 21px;
  letter-spacing: 0.16em;
}

.brand-subtitle {
  font-family: var(--console-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
}

.protocol-status {
  font-family: var(--console-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.metric-label {
  font-family: var(--console-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.metric strong {
  font-family: var(--console-mono);
  font-size: 21px;
}

.scene-line,
.desk-topline,
.desk-instruction,
.desk-status,
.scene-actions-label,
.footer-bar,
.footer-help {
  font-family: var(--console-mono);
}

.scene-line {
  font-size: 11px;
  letter-spacing: 0.055em;
}

.scene-case-card {
  width: min(348px, 29vw);
  padding: 17px 18px 18px;
}

.scene-case-portrait {
  display: none;
}

.scene-case-card strong {
  font-size: clamp(23px, 1.7vw, 30px);
  line-height: 0.98;
  letter-spacing: 0.07em;
}

.scene-case-card small {
  font-family: var(--console-mono);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.scene-case-card p {
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.35;
}

.scene-case-tags span {
  font-family: var(--console-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* The person is an object in the room, not a card with captions pasted over
 * it. The invisible visitor target remains clickable, while the question
 * control moves to the empty intercom area above the desk. */
.visitor-nameplate {
  display: none;
}

.hotspot-visitor {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.hotspot-visitor .hotspot-sprite,
.hotspot-visitor .hotspot-label,
.hotspot-visitor .hotspot-pulse {
  visibility: hidden;
  opacity: 0;
}

.hotspot-question {
  top: 18%;
  right: 32%;
  bottom: auto;
  left: auto;
}

.hotspot-label {
  font-family: var(--console-mono);
  font-size: 12px;
  letter-spacing: 0.055em;
}

.scene-hotspot {
  min-height: 44px;
  padding: 7px 10px;
}

.desk-topline {
  font-size: 12px;
}

.desk-instruction,
.desk-status {
  font-size: 11px;
}

.scene-actions-label {
  font-size: 11px;
}

.scene-decision {
  min-height: 48px;
  font-family: var(--console-mono);
  font-size: 13px;
  letter-spacing: 0.045em;
}

.footer-bar,
.footer-help {
  font-size: 11px;
  letter-spacing: 0.055em;
}

.toast {
  font-family: var(--console-mono);
  font-size: 14px;
  line-height: 1.25;
}

.overlay-card h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.overlay-card p,
.overlay-card .overlay-body {
  font-size: 18px;
  line-height: 1.45;
}

.overlay-card .primary-button {
  min-height: 52px;
  font-family: var(--console-mono);
  font-size: 15px;
}

.inspection-modal-heading h2 {
  font-size: clamp(25px, 3vw, 34px);
}

.inspection-status,
.inspection-result-copy .result-code {
  font-family: var(--console-mono);
  font-size: 14px;
}

.inspection-result-copy h3 {
  font-size: clamp(21px, 2vw, 27px);
}

.inspection-result-copy p,
.inspection-question,
.inspection-quote {
  font-family: var(--console-body);
  font-size: 17px;
  line-height: 1.45;
}

.inspection-meta {
  font-size: 15px;
}

.manifest-caption,
.inspection-observation > span,
.inspection-observation small {
  display: block;
  color: #b68a69;
  font-family: var(--console-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.manifest-caption {
  margin: 12px 0 7px;
}

.inspection-observation {
  margin-top: 16px;
  padding: 11px 13px;
  border-left: 3px solid rgba(214, 182, 136, 0.56);
  background: rgba(3, 5, 5, 0.32);
}

.inspection-observation p {
  margin: 6px 0 7px;
  color: #e3d0b9;
  font-family: var(--console-body);
  font-size: 16px;
  line-height: 1.35;
}

.inspection-observation small {
  color: #968a7d;
  font-size: 11px;
}

.inspection-meta span,
.inspection-shortcuts button,
.modal-return {
  font-family: var(--console-mono);
  font-size: 12px;
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    min-height: 96px;
    padding: 9px 12px 8px;
  }

  .brand-lockup {
    grid-column: 1;
    grid-row: 1;
    gap: 9px;
    min-width: 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 16px;
    letter-spacing: 0.11em;
    white-space: nowrap;
  }

  .brand-subtitle {
    font-size: 9px;
    letter-spacing: 0.035em;
    white-space: nowrap;
  }

  .protocol-status {
    grid-column: 1 / -1;
    grid-row: 2;
    position: static;
    min-width: 0;
    font-size: 10px;
  }

  .header-metrics {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }

  .metric {
    min-width: 56px;
  }

  .metric-label {
    font-size: 9px;
  }

  .metric strong {
    font-size: 17px;
  }

  .scene-line {
    font-size: 9px;
  }

  .scene-case-card {
    width: min(300px, 72vw);
    padding: 13px 14px 14px;
  }

  .scene-case-card strong {
    font-size: clamp(19px, 5.4vw, 25px);
  }

  .scene-case-card small {
    font-size: 10px;
  }

  .scene-case-tags span {
    font-size: 9px;
  }

  .scene-hotspot {
    min-height: 52px;
  }

  .scene-hotspot .hotspot-label {
    font-size: 10px;
    letter-spacing: 0.025em;
  }

  .scene-actions-label {
    font-size: 9px;
  }

  .scene-decision {
    min-height: 48px;
    font-size: 11px;
  }

  .overlay-card p,
  .overlay-card .overlay-body {
    font-size: 16px;
  }

  .inspection-modal-heading h2 {
    font-size: 24px;
  }

  .inspection-result-copy p,
  .inspection-question,
  .inspection-quote {
    font-size: 15px;
  }

  .inspection-meta {
    font-size: 14px;
  }

  .inspection-shortcuts button,
  .modal-return {
    font-size: 11px;
  }
}

/* Final portrait cabinet pass.
 *
 * The phone is a single instrument, not a narrow desktop page. Keep a strict
 * vertical rhythm: header, case strip, visitor aperture, evidence tray, then
 * the decision rail. The lower controls never share the visitor's body area.
 */
@media (max-width: 760px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    touch-action: manipulation;
  }

  .app {
    box-sizing: border-box;
    grid-template-rows: 70px minmax(0, 1fr);
    gap: 4px;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    padding: 4px;
  }

  .topbar {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 42px 18px;
    gap: 2px 8px;
    height: 70px;
    min-height: 70px;
    margin: 0;
    padding: 6px 10px 4px;
  }

  .brand-lockup {
    grid-column: 1;
    grid-row: 1;
    gap: 8px;
    min-width: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .brand-name {
    overflow: hidden;
    font-size: 16px;
    letter-spacing: 0.105em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-subtitle {
    overflow: hidden;
    margin-top: 3px;
    font-size: 7px;
    letter-spacing: 0.045em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-metrics {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    gap: 7px;
  }

  .metric {
    min-width: 56px;
    gap: 2px;
  }

  .metric-label {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .metric strong {
    font-size: 16px;
    line-height: 1;
  }

  .meter {
    height: 2px;
  }

  .protocol-status {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: end;
    min-width: 0;
    gap: 6px;
    overflow: hidden;
    font-size: 8px;
    letter-spacing: 0.09em;
    line-height: 1;
    white-space: nowrap;
  }

  .protocol-status #runSeed {
    overflow: hidden;
    max-width: 42vw;
    text-overflow: ellipsis;
  }

  main {
    box-sizing: border-box;
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    overflow: hidden;
  }

  .embassy-wall {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background-position: center 28%;
    background-size: cover;
  }

  .checkpoint-scene {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .scene-line {
    top: 0;
    right: 12px;
    left: 12px;
    height: 25px;
    box-sizing: border-box;
    padding: 7px 0 5px;
    font-size: 8px;
    line-height: 1;
  }

  .scene-line span:last-child {
    max-width: 52%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* One compact paper strip identifies the case without becoming a curtain. */
  .scene-case-card {
    top: 33px;
    right: 10px;
    bottom: auto;
    left: 10px;
    width: auto;
    height: 78px;
    min-height: 78px;
    max-height: 78px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(88px, 30%);
    grid-template-rows: 14px 27px 21px;
    gap: 2px 10px;
    padding: 8px 11px 7px;
    transform: none;
  }

  .scene-case-portrait {
    display: none;
  }

  .scene-case-card > .panel-kicker {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: center;
    font-size: 8px;
    line-height: 1;
  }

  .scene-case-card > strong {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    min-width: 0;
    overflow: hidden;
    font-size: clamp(18px, 5.2vw, 23px);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .scene-case-card > small {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    max-width: 100%;
    overflow: hidden;
    font-size: 8px;
    line-height: 1.15;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .scene-case-card > .scene-case-tags {
    grid-column: 1 / -1;
    grid-row: 3;
    align-self: end;
    min-width: 0;
    gap: 5px;
    margin: 0;
    overflow: hidden;
    flex-wrap: nowrap;
  }

  .scene-case-tags span {
    overflow: hidden;
    padding: 3px 5px;
    font-size: 8px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .scene-case-card > p {
    display: none;
  }

  /* The visitor owns the middle band. The aperture ends before the desk. */
  .visitor-stage {
    top: 122px;
    right: auto;
    bottom: 219px;
    left: 11%;
    width: 78%;
    height: auto;
    min-height: 0;
  }

  .visitor-stage::before {
    inset: 0;
    border-width: 7px;
  }

  .visitor-stage::after {
    top: 8px;
    left: 10px;
    padding: 4px 5px;
    font-size: 8px;
  }

  .visitor-portrait {
    width: 100%;
    height: 100%;
  }

  .visitor-nameplate {
    display: none;
  }

  /* A real lower tray, separated from the visitor by the evidence dock. */
  .security-desk {
    top: auto;
    right: 10px;
    bottom: 136px;
    left: 10px;
    width: auto;
    height: 72px;
    min-height: 72px;
    box-sizing: border-box;
    z-index: 10;
  }

  .desk-topline {
    height: 22px;
    box-sizing: border-box;
    padding: 6px 10px 4px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
  }

  .desk-topline span:last-child {
    overflow: hidden;
    max-width: 46%;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desk-panel {
    min-height: 45px;
    height: 45px;
    box-sizing: border-box;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
    padding: 6px 10px;
  }

  .desk-emblem {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .desk-instruction {
    display: block;
    overflow: hidden;
    font-size: 9px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desk-status {
    overflow: hidden;
    font-size: 8px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desk-stamp-art {
    right: 5px;
    bottom: 1px;
    width: 40px;
    height: 44px;
  }

  .scene-hotspots {
    top: auto;
    right: 10px;
    bottom: calc(76px + var(--mobile-safe-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
    height: 54px;
    min-height: 54px;
    z-index: 12;
  }

  .scene-hotspot,
  .hotspot-record,
  .hotspot-visitor,
  .hotspot-documents,
  .hotspot-detector,
  .hotspot-xray,
  .hotspot-question {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    height: 54px;
    min-width: 0;
    min-height: 54px;
    box-sizing: border-box;
    padding: 3px 2px;
    border-color: rgba(226, 187, 133, 0.42);
    background: rgba(7, 9, 9, 0.9);
    backdrop-filter: blur(4px);
  }

  .scene-hotspot .hotspot-sprite,
  .hotspot-visitor .hotspot-sprite {
    top: 2px;
    right: 2px;
    bottom: auto;
    left: 2px;
    width: auto;
    height: 31px;
    opacity: 0.76;
  }

  .hotspot-visitor .hotspot-sprite,
  .hotspot-visitor .hotspot-label {
    visibility: visible;
    opacity: 0.76;
  }

  .hotspot-visitor .hotspot-label {
    opacity: 1;
  }

  .scene-hotspot .hotspot-pulse {
    top: 2px;
    right: 2px;
    width: 5px;
    height: 5px;
  }

  .scene-hotspot .hotspot-label {
    align-self: end;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    font-size: 7px;
    letter-spacing: 0.035em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Four physical keys in one reachable authority rail. */
  .scene-actions {
    top: auto;
    right: 10px;
    bottom: calc(7px + var(--mobile-safe-bottom));
    left: 10px;
    width: auto;
    height: 62px;
    min-height: 62px;
    box-sizing: border-box;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 3px;
    padding: 4px;
    border-width: 5px;
    z-index: 14;
  }

  .scene-actions-label {
    display: none;
  }

  .scene-decision {
    display: flex;
    min-width: 0;
    min-height: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
    padding: 3px 2px;
    flex-direction: column;
    font-size: 8px;
    line-height: 1.05;
    text-align: center;
  }

  .decision-sprite {
    width: 21px;
    height: 22px;
    flex: 0 0 22px;
  }

  .scene-decision span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .toast {
    top: 75px;
    right: 18px;
    bottom: auto;
    left: 18px;
    max-width: none;
    max-height: 22px;
    overflow: hidden;
    padding: 4px 8px;
    font-size: 10px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
  }

  .footer-bar {
    display: none;
  }
}

/* The checklist replaces the six-button mobile strip. Keep a zero-height
 * interaction layer for older layout probes, but let the paper card own the
 * player's evidence actions. */
@media (max-width: 760px) {
  .scene-hotspots {
    height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .scene-checklist {
    bottom: calc(76px + var(--mobile-safe-bottom));
  }
}

/* The working card is the single evidence surface. The old hotspot layer is
 * retained in the DOM for keyboard/accessibility compatibility, but its
 * duplicate floating labels no longer compete with the physical desk. */
.scene-hotspots {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Case beats: the station should acknowledge the visitor's arrival and the
 * player's decision with motion in the world, not only a text notification. */
.visitor-portrait.visitor-arrival {
  animation: visitor-arrival 720ms cubic-bezier(0.17, 0.82, 0.26, 1) both;
}

.scene-case-card.case-card-arrival {
  animation: case-card-arrival 620ms cubic-bezier(0.17, 0.82, 0.26, 1) both;
}

.embassy-wall.case-admitted .entry-frame::before,
.embassy-wall.case-admitted .entry-frame::after {
  background: #93bc8d;
  box-shadow: 0 0 14px rgba(147, 188, 141, 0.85);
}

.embassy-wall.case-refused .entry-frame::before,
.embassy-wall.case-refused .entry-frame::after {
  background: var(--console-red-hot);
  box-shadow: 0 0 16px rgba(224, 79, 61, 0.92);
  animation: gate-deny-flash 360ms steps(2, end) 2;
}

.visitor-stage.alert-pulse .visitor-portrait {
  animation: visitor-refusal 680ms cubic-bezier(0.2, 0.72, 0.35, 1) both;
}

@keyframes visitor-arrival {
  0% { opacity: 0; transform: translate3d(0, 30px, 0) scale(0.96); filter: blur(2px) drop-shadow(0 10px 9px rgba(0, 0, 0, 0.55)); }
  62% { opacity: 1; transform: translate3d(0, -4px, 0) scale(1.012); filter: blur(0) drop-shadow(0 10px 9px rgba(0, 0, 0, 0.55)); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: drop-shadow(0 10px 9px rgba(0, 0, 0, 0.55)); }
}

@keyframes case-card-arrival {
  0% { opacity: 0; transform: translate3d(-18px, 0, 0) rotate(-0.35deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(-0.35deg); }
}

@keyframes visitor-refusal {
  0%, 100% { transform: translate3d(0, 0, 0); }
  18% { transform: translate3d(-5px, 0, 0); }
  38% { transform: translate3d(5px, 0, 0); }
  58% { transform: translate3d(-3px, 0, 0); }
  78% { transform: translate3d(2px, 0, 0); }
}

@keyframes gate-deny-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.16; }
}

@media (prefers-reduced-motion: reduce) {
  .visitor-portrait.visitor-arrival,
  .scene-case-card.case-card-arrival,
  .visitor-stage.alert-pulse .visitor-portrait,
  .embassy-wall.case-refused .entry-frame::before,
  .embassy-wall.case-refused .entry-frame::after {
    animation: none;
  }
}

/* Issue #1 reference alignment --------------------------------------------
 *
 * The supplied desktop and mobile references read as one contained machine:
 * a dominant visitor aperture, a narrow verification rail, and a separate
 * authority plate. Keep the existing DOM and controls, but give those zones
 * a stable visual hierarchy instead of stacking cards over the room.
 */
@media (min-width: 761px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    display: grid;
    place-items: center;
    background: #050404;
  }

  .app {
    width: min(100vw, calc(100vh * 1.7777778));
    height: min(100vh, calc(100vw * 0.5625));
    min-height: 0;
    padding: 10px;
    gap: 7px;
    grid-template-rows: 54px minmax(0, 1fr);
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.022), transparent 5% 95%, rgba(255, 255, 255, 0.018)),
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 5px),
      #0b0d0e;
  }

  .topbar {
    height: 54px;
    min-height: 54px;
    padding: 6px 14px;
    border-color: #514b44;
    background:
      radial-gradient(circle at 11px 50%, #aaa292 0 2px, #3b3935 2px 4px, transparent 4.5px),
      radial-gradient(circle at calc(100% - 11px) 50%, #aaa292 0 2px, #3b3935 2px 4px, transparent 4.5px),
      linear-gradient(180deg, rgba(75, 76, 72, 0.28), transparent 36%),
      linear-gradient(180deg, #242728, #101314);
  }

  .brand-lockup {
    gap: 10px;
    min-width: 250px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 18px;
    letter-spacing: 0.16em;
  }

  .brand-subtitle {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .protocol-status {
    gap: 7px;
    font-size: 9px;
    letter-spacing: 0.09em;
  }

  .metric {
    min-width: 98px;
  }

  .metric-label {
    font-size: 8px;
  }

  .metric strong {
    font-size: 18px;
  }

  .footer-bar {
    display: none;
  }

  main {
    height: auto;
    min-height: 0;
    margin: 0;
  }

  .embassy-wall {
    height: 100%;
    min-height: 0;
    border-width: 2px;
    background:
      linear-gradient(90deg, rgba(5, 7, 8, 0.24) 0 61.5%, rgba(5, 4, 4, 0.92) 61.5% 100%),
      linear-gradient(180deg, rgba(5, 7, 8, 0.04), rgba(5, 7, 8, 0.24)),
      url("assets/generated/embassy-background.png") center / cover no-repeat;
  }

  .checkpoint-scene {
    inset: 0;
  }

  .scene-line {
    right: 39%;
    left: 2.5%;
    height: 30px;
    padding: 8px 0 7px;
    font-size: 8px;
  }

  .scene-floor {
    inset: 0;
  }

  .queue-glimpse,
  .security-desk {
    display: none;
  }

  .visitor-stage {
    top: 30px;
    right: 39%;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
  }

  .visitor-stage::before {
    inset: 4% 16% 1%;
    border-width: 1px;
    border-color: rgba(210, 181, 139, 0.22);
    background:
      linear-gradient(180deg, rgba(5, 7, 7, 0.05), rgba(5, 6, 6, 0.43)),
      radial-gradient(circle at 9px 9px, #aaa292 0 2px, #484740 2.5px 4px, transparent 4.5px);
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.32), 0 15px 28px rgba(0, 0, 0, 0.42);
  }

  .visitor-stage::after {
    top: 6%;
    left: 18%;
    font-size: 7px;
  }

  .visitor-portrait {
    width: 100%;
    height: 100%;
  }

  .visitor-image {
    width: 46%;
    height: 94%;
    object-fit: contain;
    object-position: center bottom;
  }

  .visitor-nameplate {
    display: grid;
    right: auto;
    bottom: 7%;
    left: 8%;
    width: min(370px, 55%);
    min-width: 0;
    padding: 8px 12px 7px;
    border: 0;
    border-left: 3px solid var(--console-red-hot);
    background: linear-gradient(90deg, rgba(5, 6, 6, 0.88), rgba(5, 6, 6, 0.18));
    box-shadow: none;
    text-align: left;
  }

  .visitor-nameplate span {
    font-size: clamp(19px, 2.3vw, 30px);
    letter-spacing: 0.08em;
  }

  .visitor-nameplate small {
    font-size: 8px;
  }

  .scene-case-card {
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: 38%;
    height: 104px;
    min-height: 104px;
    max-height: 104px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 5px;
    padding: 13px 18px 12px;
    border: 0;
    border-bottom: 1px solid rgba(206, 172, 124, 0.25);
    border-left: 1px solid rgba(206, 172, 124, 0.32);
    background:
      linear-gradient(135deg, rgba(167, 42, 34, 0.14), transparent 42%),
      rgba(22, 13, 13, 0.94);
    box-shadow: none;
    transform: none;
  }

  .scene-case-card::before,
  .scene-case-card::after {
    display: none;
  }

  .scene-case-portrait,
  .scene-case-card > .panel-kicker {
    display: none;
  }

  .scene-case-card > strong,
  .scene-case-card > small,
  .scene-case-card > .scene-case-tags,
  .scene-case-card > p {
    grid-column: 1;
  }

  .scene-case-card > strong {
    font-size: clamp(16px, 1.55vw, 25px);
    line-height: 1;
  }

  .scene-case-card > small {
    font-size: 8px;
  }

  .scene-case-card > p {
    max-height: 2.6em;
    margin: 1px 0 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.3;
  }

  .scene-case-tags {
    gap: 5px;
    margin: 0;
    overflow: hidden;
    flex-wrap: nowrap;
  }

  .scene-case-tags span {
    overflow: hidden;
    padding: 3px 4px;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .scene-checklist {
    top: 104px;
    right: 0;
    bottom: 92px;
    left: auto;
    width: 38%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 15px 18px 12px;
    border: 0;
    border-left: 1px solid rgba(206, 172, 124, 0.32);
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(30, 23, 19, 0.72), rgba(8, 9, 9, 0.98) 13%),
      #0c0e0e;
    box-shadow: inset 10px 0 28px rgba(0, 0, 0, 0.28), 0 12px 22px rgba(0, 0, 0, 0.4);
    color: #d8c39c;
    transform: none;
  }

  .scene-checklist::before,
  .scene-checklist::after {
    display: none;
  }

  .checklist-header {
    min-height: 43px;
    padding: 0 0 9px;
    border-bottom-color: rgba(210, 177, 132, 0.22);
  }

  .scene-checklist .panel-kicker {
    color: #b68a69;
    font-size: 8px;
  }

  .checklist-header strong {
    color: #ead8ba;
    font-family: var(--console-display);
    font-size: clamp(18px, 1.7vw, 26px);
    letter-spacing: 0.06em;
  }

  .checklist-state,
  .checklist-footer > span {
    color: #8e7d6b;
    font-family: var(--console-mono);
    font-size: 8px;
  }

  .checklist-instruction {
    min-height: 36px;
    margin: 9px 0 7px;
    color: #c7b393;
    font-size: 11px;
    line-height: 1.3;
  }

  .checklist-list {
    min-height: 0;
    flex: 1;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
  }

  .checklist-row {
    grid-template-columns: 25px minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    min-height: 0;
    padding: 0 5px;
    border: 0;
    border-bottom: 1px solid rgba(210, 177, 132, 0.15);
    border-left: 2px solid transparent;
    background: transparent;
    color: #cdbd9f;
  }

  .checklist-row:hover:not(:disabled),
  .checklist-row.is-current {
    border-color: var(--console-red-hot);
    background: rgba(125, 32, 37, 0.14);
    transform: none;
  }

  .checklist-index {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    color: #786852;
    font-size: 8px;
  }

  .checklist-label {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    color: #dcc9a7;
    font-family: var(--console-display);
    font-size: 16px;
    letter-spacing: 0.07em;
  }

  .checklist-mark {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    color: #756651;
    font-family: var(--console-mono);
    font-size: 8px;
  }

  .checklist-row.is-marked .checklist-mark { color: var(--console-green); }
  .checklist-row.is-flagged .checklist-mark { color: #e0705c; }
  .checklist-row.is-review .checklist-mark { color: #e0c07c; }

  .checklist-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top-color: rgba(210, 177, 132, 0.22);
  }

  .checklist-submit {
    min-height: 28px;
    padding: 5px 8px;
    border-color: #8e1f1c;
    background: linear-gradient(180deg, #8e1f1c, #4a1110);
    font-family: var(--console-mono);
    font-size: 8px;
  }

  .scene-actions {
    top: auto;
    right: 0;
    bottom: 0;
    left: auto;
    width: 38%;
    height: 92px;
    min-height: 92px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 18px 1fr;
    gap: 4px;
    padding: 11px 14px 12px;
    border-width: 0;
    border-top: 1px solid rgba(206, 172, 124, 0.25);
    background: linear-gradient(180deg, #1d1512, #080909 48%);
    box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.24);
  }

  .scene-actions::before,
  .scene-actions::after {
    display: none;
  }

  .scene-actions-label {
    grid-column: 1 / -1;
    padding: 0;
    color: #a8916a;
    font-size: 8px;
  }

  .scene-decision {
    display: flex;
    min-width: 0;
    min-height: 0;
    height: auto;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 3px;
    flex-direction: column;
    font-size: 8px;
    line-height: 1.05;
    text-align: center;
  }

  .scene-decision span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .decision-sprite {
    width: 21px;
    height: 22px;
    flex: 0 0 22px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    display: block;
    background: #050404;
  }

  .app {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    padding: 0;
    gap: 0;
    grid-template-rows: 52px minmax(0, 1fr);
    background: #0b0d0e;
  }

  .topbar {
    height: 52px;
    min-height: 52px;
    padding: 5px 9px 4px;
    border-width: 1px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .brand-name {
    font-size: 16px;
    letter-spacing: 0.1em;
  }

  .brand-subtitle {
    font-size: 7px;
    letter-spacing: 0.035em;
  }

  .header-metrics {
    gap: 6px;
  }

  .metric {
    min-width: 51px;
    gap: 2px;
  }

  .metric-label {
    font-size: 7px;
    letter-spacing: 0.06em;
  }

  .metric strong {
    font-size: 15px;
  }

  .protocol-status {
    bottom: 4px;
    left: 47px;
    gap: 5px;
    font-size: 7px;
    letter-spacing: 0.06em;
  }

  .protocol-status #runSeed {
    max-width: 34vw;
  }

  main {
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    overflow: hidden;
  }

  .embassy-wall {
    height: 100%;
    min-height: 0;
    border-width: 1px;
    background-position: center 28%;
    box-shadow: inset 0 -125px 110px rgba(3, 4, 4, 0.82);
  }

  .checkpoint-scene {
    inset: 0;
    height: 100%;
    min-height: 0;
  }

  .scene-line {
    display: none;
  }

  .visitor-stage {
    top: 96px;
    right: 0;
    bottom: 250px;
    left: 0;
    width: auto;
    height: auto;
  }

  .visitor-stage::before {
    inset: 0 6%;
    border: 0;
    background:
      linear-gradient(180deg, rgba(4, 3, 3, 0.18), transparent 34%, rgba(4, 3, 3, 0.9)),
      radial-gradient(ellipse at 50% 42%, rgba(11, 9, 8, 0.96) 0 38%, rgba(11, 9, 8, 0.78) 58%, rgba(4, 3, 3, 0) 88%);
    box-shadow: none;
  }

  .visitor-stage::after {
    top: 10px;
    left: 10px;
    font-size: 7px;
  }

  .visitor-portrait {
    width: 100%;
    height: 100%;
  }

  .visitor-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: saturate(1.08) brightness(1.12) contrast(1.08);
  }

  .visitor-nameplate {
    display: none;
  }

  .security-desk {
    top: auto;
    right: 10px;
    bottom: 211px;
    left: 10px;
    width: auto;
    height: 42px;
    min-height: 42px;
    opacity: 0;
    pointer-events: none;
  }

  .scene-case-card {
    top: 10px;
    right: 10px;
    bottom: auto;
    left: 10px;
    width: auto;
    height: 86px;
    min-height: 86px;
    max-height: 86px;
    display: block;
    padding: 8px 10px 7px;
    border: 0;
    border-left: 3px solid var(--console-red-hot);
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.88), rgba(5, 5, 5, 0.18));
    box-shadow: none;
    transform: none;
  }

  .scene-case-card::before,
  .scene-case-card::after,
  .scene-case-card > .panel-kicker,
  .scene-case-card > small,
  .scene-case-card > .scene-case-tags {
    display: none;
  }

  .scene-case-card > strong,
  .scene-case-card > p {
    display: block;
    margin: 0;
  }

  .scene-case-card > strong {
    overflow: hidden;
    color: #f0dfbc;
    font-size: clamp(22px, 7vw, 29px);
    line-height: 1;
    letter-spacing: 0.07em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .scene-case-card > p {
    max-height: 2.6em;
    margin-top: 5px;
    overflow: hidden;
    color: #d8c9ab;
    font-size: 12px;
    font-style: italic;
    line-height: 1.3;
  }

  .scene-checklist {
    top: auto;
    right: 10px;
    bottom: calc(68px + var(--mobile-safe-bottom));
    left: 10px;
    width: auto;
    height: 140px;
    min-height: 140px;
    padding: 7px 8px 6px;
    border: 1px solid rgba(194, 151, 101, 0.42);
    border-top-color: #8e1f1c;
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(36, 26, 21, 0.92), rgba(10, 11, 11, 0.98) 28%),
      #0c0e0e;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.64), inset 0 1px 0 rgba(238, 212, 174, 0.12);
    color: #d8c39c;
    transform: none;
  }

  .scene-checklist::before,
  .scene-checklist::after {
    display: none;
  }

  .checklist-header {
    min-height: 18px;
    padding: 0 0 4px;
    border-bottom-color: rgba(210, 177, 132, 0.2);
  }

  .scene-checklist .panel-kicker {
    display: none;
  }

  .checklist-header strong {
    color: #e5d0aa;
    font-family: var(--console-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .checklist-state,
  .checklist-footer > span {
    color: #8e7d6b;
    font-family: var(--console-mono);
    font-size: 7px;
  }

  .checklist-instruction {
    display: block;
    min-height: 28px;
    margin: 5px 0 5px;
    overflow: hidden;
    color: #c7b393;
    font-size: 10px;
    line-height: 1.25;
  }

  .checklist-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
    height: 48px;
    min-height: 48px;
  }

  .checklist-row {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 11px 1fr 10px;
    min-height: 48px;
    padding: 3px 3px 2px;
    border: 1px solid rgba(194, 151, 101, 0.32);
    border-left: 1px solid rgba(194, 151, 101, 0.32);
    background: rgba(9, 11, 11, 0.76);
    color: #d2c09f;
    text-align: center;
  }

  .checklist-row:hover:not(:disabled),
  .checklist-row.is-current {
    border-color: var(--console-red-hot);
    background: rgba(125, 32, 37, 0.24);
    transform: none;
  }

  .checklist-index {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    color: #8a7458;
    font-size: 7px;
  }

  .checklist-label {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    overflow: hidden;
    color: #d8c7a5;
    font-family: var(--console-display);
    font-size: 0;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .checklist-label::after {
    font-size: 12px;
  }

  .checklist-row:nth-child(1) .checklist-label::after { content: "FILE"; }
  .checklist-row:nth-child(2) .checklist-label::after { content: "FACE"; }
  .checklist-row:nth-child(3) .checklist-label::after { content: "PAPERS"; }
  .checklist-row:nth-child(4) .checklist-label::after { content: "GATE"; }
  .checklist-row:nth-child(5) .checklist-label::after { content: "X-RAY"; }
  .checklist-row:nth-child(6) .checklist-label::after { content: "ASK"; }

  .checklist-mark {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    color: #756651;
    font-family: var(--console-mono);
    font-size: 6px;
    letter-spacing: 0.04em;
  }

  .checklist-row.is-marked .checklist-mark { color: var(--console-green); }
  .checklist-row.is-flagged .checklist-mark { color: #e0705c; }
  .checklist-row.is-review .checklist-mark { color: #e0c07c; }

  .checklist-footer {
    min-height: 27px;
    margin-top: 5px;
    padding-top: 5px;
    border-top-color: rgba(210, 177, 132, 0.2);
  }

  .checklist-submit {
    min-height: 22px;
    padding: 3px 6px;
    border-color: #8e1f1c;
    background: linear-gradient(180deg, #8e1f1c, #4a1110);
    font-family: var(--console-mono);
    font-size: 7px;
  }

  .scene-hotspots {
    height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .scene-actions {
    top: auto;
    right: 10px;
    bottom: calc(5px + var(--mobile-safe-bottom));
    left: 10px;
    width: auto;
    height: 62px;
    min-height: 62px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 3px;
    padding: 4px;
    border-width: 1px;
    border-top-color: #8e1f1c;
    background: linear-gradient(180deg, #241a16, #0b0c0c);
    box-shadow: 0 4px 0 #050606, inset 0 1px 0 rgba(238, 212, 174, 0.12);
  }

  .scene-actions::before,
  .scene-actions::after,
  .scene-actions-label {
    display: none;
  }

  .scene-decision {
    display: flex;
    min-width: 0;
    min-height: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 3px 2px;
    flex-direction: column;
    font-size: 7px;
    line-height: 1.05;
    text-align: center;
  }

  .scene-decision span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .decision-sprite {
    width: 19px;
    height: 20px;
    flex: 0 0 20px;
  }

  .toast {
    top: 56px;
    right: 10px;
    bottom: auto;
    left: 10px;
    max-width: none;
    max-height: 24px;
    overflow: hidden;
    padding: 4px 7px;
    font-size: 9px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Keep the transparent character canvas inside the aperture. Without an
 * explicit zero-minimum grid track, a tall source image can expand the flex
 * child beyond the stage and bleed into the evidence rail on narrow screens. */
.visitor-stage {
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}

.visitor-portrait {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* The opening screen follows the supplied Issue #1 mockup: it is a title
 * card over the embassy, with the inspector as the first visual anchor. The
 * active checkpoint remains rendered underneath so the first visitor is
 * already queued when the shift begins. */
.welcome-screen {
  padding: 0;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.94) 0%, rgba(3, 3, 3, 0.8) 40%, rgba(3, 3, 3, 0.24) 72%, rgba(3, 3, 3, 0.7) 100%),
    linear-gradient(180deg, rgba(3, 3, 3, 0.16), rgba(3, 3, 3, 0.58)),
    url("assets/generated/embassy-background.png") center / cover no-repeat;
  backdrop-filter: none;
}

.welcome-screen .overlay-card {
  width: min(1200px, 100%);
  height: min(800px, 100%);
  min-height: 0;
  padding: 9.5% 52% 84px 6.2%;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  transform: none;
}

.welcome-screen .overlay-card::before {
  top: auto;
  right: 6.2%;
  bottom: 58px;
  left: 6.2%;
  width: auto;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: rgba(207, 175, 132, 0.25);
  box-shadow: none;
}

.welcome-screen .overlay-card::after {
  top: auto;
  right: 6.2%;
  bottom: 28px;
  left: 6.2%;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(186, 155, 112, 0.66);
  content: "FORM RS-26 / SECURITY CONTROL       VESKARIAN EMBASSY · PUBLIC ENTRY       NO ENTRY WITHOUT THE RED STAMP";
  font-family: var(--console-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  white-space: pre;
}

.welcome-screen .overlay-inspector {
  right: -2%;
  bottom: 1%;
  left: auto;
  width: 56%;
  height: 94%;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(0.78) brightness(0.88) drop-shadow(0 20px 22px rgba(0, 0, 0, 0.84));
}

.welcome-screen .overlay-emblem {
  width: 39px;
  height: 39px;
  margin: 0 0 13px;
  border-width: 1px;
  box-shadow: inset 0 0 0 4px rgba(86, 24, 24, 0.55), inset 0 0 0 5px #dfba85;
}

.welcome-screen .overlay-emblem span {
  font-size: 15px;
}

.welcome-screen .panel-kicker {
  display: block;
  max-width: 340px;
  color: #b99a6e;
  font-family: var(--console-mono);
  font-size: 8px;
  letter-spacing: 0.25em;
  line-height: 1.5;
}

.welcome-screen .overlay-card h1 {
  max-width: 440px;
  margin: 30px 0 22px;
  color: #f0ddb0;
  font-family: "Arial Black", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(64px, 9.2vw, 116px);
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 0.84;
  text-indent: 0;
}

.welcome-screen .overlay-card h1::after {
  display: block;
  width: 140px;
  height: 1px;
  margin-top: 25px;
  background: var(--console-red-hot);
  content: "";
}

.welcome-screen .overlay-card p {
  max-width: 455px;
  margin: 0 0 30px;
  color: #d8c8ac;
  font-family: var(--console-mono);
  font-size: 13px;
  line-height: 1.58;
}

.welcome-screen .briefing-strip {
  display: none;
}

.welcome-screen .primary-button {
  position: relative;
  z-index: 2;
  width: 216px;
  min-height: 62px;
  margin: 0;
  border-color: #c94336;
  background:
    linear-gradient(90deg, rgba(255, 226, 178, 0.08), transparent 30% 70%, rgba(255, 226, 178, 0.08)),
    linear-gradient(145deg, #a92e28, #671b1c);
  color: #f5dfb4;
  font-family: var(--console-display);
  font-size: 19px;
  letter-spacing: 0.14em;
  box-shadow: inset 0 -4px 0 rgba(46, 9, 12, 0.48), 0 5px 12px rgba(0, 0, 0, 0.5);
}

.welcome-screen .primary-button span {
  display: none;
}

@media (max-width: 760px) {
  .welcome-screen {
    align-items: stretch;
    background:
      linear-gradient(180deg, rgba(5, 3, 3, 0.2) 0 22%, rgba(5, 3, 3, 0.04) 42%, rgba(5, 3, 3, 0.88) 78% 100%),
      url("assets/generated/embassy-background.png") center / cover no-repeat;
  }

  .welcome-screen .overlay-card {
    width: 100%;
    height: 100svh;
    min-height: 0;
    padding: 44px 24px 112px;
    border: 0;
    background: linear-gradient(180deg, rgba(5, 3, 3, 0.14), rgba(5, 3, 3, 0.16) 42%, rgba(5, 3, 3, 0.62));
  }

  .welcome-screen .overlay-card::before,
  .welcome-screen .overlay-card::after {
    display: none;
  }

  .welcome-screen .overlay-inspector {
    right: -4%;
    bottom: 10%;
    width: 108%;
    height: 52%;
  }

  .welcome-screen .overlay-emblem {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
  }

  .welcome-screen .overlay-emblem span {
    font-size: 13px;
  }

  .welcome-screen .panel-kicker {
    max-width: 250px;
    font-size: 7px;
    letter-spacing: 0.2em;
  }

  .welcome-screen .overlay-card h1 {
    max-width: 260px;
    margin: 27px 0 18px;
    font-size: clamp(61px, 16vw, 78px);
    line-height: 0.82;
  }

  .welcome-screen .overlay-card h1::after {
    width: 110px;
    margin-top: 20px;
  }

  .welcome-screen .overlay-card p {
    position: relative;
    z-index: 2;
    max-width: 340px;
    margin: 0;
    color: #e0cfb2;
    font-size: 13px;
    line-height: 1.52;
  }

  .welcome-screen .primary-button {
    position: absolute;
    right: 24px;
    bottom: 28px;
    left: 24px;
    width: auto;
    min-height: 68px;
    font-size: 18px;
  }
}

/* Final Issue #1 parity pass ----------------------------------------------
 * The reference is a fixed instrument surface: on desktop the visitor
 * aperture and its observation plate occupy the left 62.5%, while the
 * verification and authority rail occupies the right 37.5%. On mobile the
 * same surfaces become a strict vertical sequence. Keep this block last so
 * the earlier responsive experiments cannot change that composition.
 */
.visitor-portrait {
  animation: none;
  transform: none;
}

.toast {
  display: none !important;
}

@media (min-width: 761px) {
  .app {
    position: relative;
    display: block;
    width: min(100vw, calc(100vh * 1.7777778));
    height: min(100vh, calc(100vw * 0.5625));
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #0a0807;
  }

  .topbar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;
    width: 62.5%;
    height: 60px;
    min-height: 60px;
    padding: 7px 20px;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(74, 58, 44, 0.68);
    background: linear-gradient(180deg, rgba(33, 26, 21, 0.94), rgba(15, 12, 10, 0.86));
    box-shadow: inset 0 -1px 0 rgba(200, 162, 95, 0.12);
  }

  .topbar::before {
    inset: 7px;
    border-color: rgba(210, 193, 162, 0.12);
  }

  .brand-lockup {
    min-width: 0;
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-family: var(--console-display);
    font-size: 24px;
    letter-spacing: 0.08em;
  }

  .brand-subtitle {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .protocol-status {
    position: absolute;
    top: 19px;
    right: 19px;
    gap: 7px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .protocol-status #runSeed {
    display: none;
  }

  .header-metrics {
    position: absolute;
    top: 0;
    right: -60%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 60%;
    height: 60px;
    padding: 0;
    border-left: 4px solid #3a2c22;
    background: linear-gradient(180deg, #1a1411, #0d0a09);
    box-shadow: inset 4px 0 0 #4a3a2c;
  }

  .metric {
    min-width: 0;
    padding: 10px 16px 8px;
    gap: 1px;
    border-bottom: 1px solid #2f251d;
  }

  .metric + .metric {
    border-left: 1px solid #2f251d;
  }

  .metric-label {
    color: #a8916a;
    font-size: 7px;
    letter-spacing: 0.23em;
  }

  .metric strong {
    color: #ead8b5;
    font-family: var(--console-display);
    font-size: 24px;
    line-height: 1;
  }

  .meter {
    height: 2px;
    margin-top: 3px;
    border: 0;
    background: #2f251d;
  }

  main {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
    margin: 0;
  }

  .embassy-wall {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 0;
    background:
      linear-gradient(90deg, rgba(5, 7, 8, 0.24) 0 62.5%, rgba(5, 4, 4, 0.96) 62.5% 100%),
      linear-gradient(180deg, rgba(5, 7, 8, 0.04), rgba(5, 7, 8, 0.24)),
      url("assets/generated/embassy-background.png") center / cover no-repeat;
    box-shadow: none;
  }

  .embassy-wall::before {
    inset: 12px;
    border-color: rgba(213, 187, 148, 0.14);
  }

  .embassy-wall::after {
    display: none;
  }

  .checkpoint-scene {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .scene-line {
    top: 0;
    right: 39%;
    left: 2.5%;
    z-index: 12;
    height: 60px;
    padding: 10px 18px 8px;
    border-bottom: 1px solid rgba(74, 58, 44, 0.42);
    align-items: flex-start;
    font-size: 8px;
  }

  .scene-line span:first-child {
    position: absolute;
    top: 13px;
    right: 0;
  }

  .scene-line span:last-child {
    display: none;
  }

  .scene-floor {
    position: absolute;
    inset: 0;
  }

  .visitor-stage {
    top: 0;
    right: 37.5%;
    bottom: 19.45%;
    left: 0;
    width: auto;
    height: auto;
  }

  .visitor-stage::before {
    inset: 12px 14px 12px;
    border: 2px solid rgba(210, 181, 139, 0.28);
    background: linear-gradient(180deg, rgba(5, 7, 7, 0.02), rgba(5, 6, 6, 0.28));
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.28), 0 15px 28px rgba(0, 0, 0, 0.42);
  }

  .visitor-stage::after {
    top: 17px;
    left: 20px;
    font-size: 7px;
  }

  .visitor-image {
    width: 29.4%;
    height: 92%;
    object-fit: cover;
    object-position: center bottom;
    filter: saturate(0.94) brightness(1.04) contrast(1.04);
  }

  .visitor-nameplate {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-rows: auto auto;
    right: auto;
    bottom: 4.9%;
    left: 32px;
    width: min(560px, 72%);
    min-width: 0;
    min-height: 100px;
    padding: 0;
    border: 0;
    border-left: 3px solid var(--console-red-hot);
    background: linear-gradient(90deg, rgba(5, 6, 6, 0.88), rgba(5, 6, 6, 0.08));
    box-shadow: none;
    text-align: left;
  }

  .visitor-nameplate img {
    display: block;
    grid-row: 1 / -1;
    width: 80px;
    height: 100px;
    margin-left: 0;
    object-fit: cover;
    object-position: top;
    border: 1px solid #4a3a2c;
    filter: saturate(0.88) contrast(1.08);
  }

  .visitor-nameplate span {
    align-self: start;
    padding: 12px 0 0 16px;
    font-size: clamp(19px, 2.3vw, 30px);
    letter-spacing: 0.08em;
  }

  .visitor-nameplate small {
    align-self: start;
    padding: 4px 0 0 16px;
    font-size: 11px;
    font-style: italic;
    line-height: 1.3;
    text-transform: none;
  }

  .scene-observation {
    position: absolute;
    right: 37.5%;
    bottom: 0;
    left: 0;
    z-index: 18;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    height: 19.45%;
    min-height: 118px;
    padding: 17px 20px 18px;
    border-top: 3px solid #4a3a2c;
    background: linear-gradient(#211a15, #100c0a);
    box-shadow: inset 0 2px 0 rgba(92, 73, 56, 0.58), 0 -10px 22px rgba(0, 0, 0, 0.34);
  }

  .observation-copy {
    min-width: 0;
  }

  .observation-copy .panel-kicker {
    display: block;
    margin-bottom: 7px;
    color: #c8a25f;
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .observation-copy p {
    max-width: 430px;
    margin: 0;
    color: #ead8b5;
    font-family: var(--console-mono);
    font-size: 13px;
    line-height: 1.35;
  }

  .observation-copy small {
    display: block;
    margin-top: 8px;
    color: #6e5f47;
    font-family: var(--console-mono);
    font-size: 7px;
    letter-spacing: 0.14em;
  }

  .finding-controls {
    display: flex;
    align-items: end;
    gap: 8px;
    margin: 0;
  }

  .finding-button {
    min-width: 72px;
    height: 36px;
    padding: 8px 12px;
    border: 1px solid #4a3a2c;
    background: transparent;
    color: #c8bb9c;
    font-family: var(--console-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .finding-button.is-flag,
  .finding-button[data-finding="flag"] {
    border-color: #8e1f1c;
    color: #e0705c;
    background: rgba(142, 31, 28, 0.08);
  }

  .finding-button small {
    display: block;
    margin-top: 2px;
    color: inherit;
    font-size: 7px;
  }

  .scene-case-card {
    right: 0;
    bottom: auto;
    left: auto;
    width: 37.5%;
    top: 60px;
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    padding: 18px 24px 12px;
    border: 0;
    border-left: 1px solid #3a2c22;
    border-bottom: 1px solid #2f251d;
    background: linear-gradient(180deg, rgba(26, 20, 17, 0.98), rgba(13, 10, 9, 0.98));
    box-shadow: inset 0 4px 0 #4a3a2c;
    transform: none;
  }

  .scene-case-card::before,
  .scene-case-card::after {
    display: none;
  }

  .scene-case-portrait,
  .scene-case-card > .panel-kicker {
    display: none;
  }

  .scene-case-card > strong {
    display: block;
    font-size: clamp(17px, 1.65vw, 25px);
    line-height: 1;
  }

  .scene-case-card > small {
    position: absolute;
    top: 39px;
    left: 24px;
    display: none;
  }

  .scene-case-card > .scene-case-tags {
    position: absolute;
    top: 14px;
    right: 24px;
    left: 24px;
    gap: 8px;
    margin: 0;
  }

  .scene-case-tags span {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 7px;
  }

  .scene-case-card > p {
    display: block;
    width: auto;
    max-width: none;
    max-height: 2.5em;
    margin: 6px 0 0;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.3;
    font-style: normal;
  }

  .scene-checklist {
    top: 140px;
    right: 0;
    bottom: 16.9%;
    left: auto;
    width: 37.5%;
    height: auto;
    min-height: 0;
    padding: 12px 24px 16px;
    border: 0;
    border-left: 1px solid #3a2c22;
    border-radius: 0;
    background: linear-gradient(180deg, #1a1411, #0d0a09 14%);
    box-shadow: inset 4px 0 0 #4a3a2c;
    transform: none;
  }

  .scene-checklist::before,
  .scene-checklist::after,
  .checklist-instruction,
  .checklist-footer {
    display: none;
  }

  .checklist-header {
    min-height: 23px;
    padding: 0 0 9px;
    border-bottom: 1px solid #2f251d;
  }

  .scene-checklist .panel-kicker {
    display: block;
    color: #ead8b5;
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .checklist-person span {
    font-size: 0;
  }

  .checklist-person span::after {
    content: "VIEW THE PERSON";
    font-size: 15px;
  }

  .checklist-header strong {
    display: none;
  }

  .checklist-state {
    padding: 0;
    border: 0;
    color: #e0705c;
    font-size: 8px;
  }

  .checklist-strip {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 10px;
    height: calc(100% - 26px);
    padding-top: 8px;
  }

  .checklist-person {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    height: 36px;
    min-height: 36px;
    padding: 5px 10px;
    border: 1px solid #c8a25f;
    background: linear-gradient(#3a2e22, #1e1712);
    color: #ead8b5;
    font-family: var(--console-display);
    font-size: 15px;
    letter-spacing: 0.08em;
    text-align: left;
  }

  .checklist-person img {
    width: 26px;
    height: 26px;
    object-fit: cover;
    object-position: top;
    border: 1px solid #4a3a2c;
  }

  .checklist-person strong {
    color: #9a886c;
    font-family: var(--console-mono);
    font-size: 7px;
    letter-spacing: 0.1em;
  }

  .checklist-list {
    display: grid;
    flex: 0 0 238px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: 0;
    min-height: 0;
    height: 238px;
  }

  .checklist-row {
    grid-template-columns: 31px minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    min-height: 0;
    padding: 0 8px;
    border: 0;
    border-bottom: 1px solid #2f251d;
    border-left: 0;
    background: transparent;
    color: #d8c7a5;
  }

  .checklist-row:hover:not(:disabled),
  .checklist-row.is-current {
    border-color: #8e1f1c;
    background: rgba(142, 31, 28, 0.12);
    transform: none;
  }

  .checklist-index {
    grid-column: 1;
    grid-row: 1;
    font-size: 7px;
  }

  .checklist-label {
    grid-column: 2;
    grid-row: 1;
    color: #ead8b5;
    font-family: var(--console-display);
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .checklist-mark {
    grid-column: 3;
    grid-row: 1;
    font-size: 7px;
  }

  .scene-actions {
    top: auto;
    right: 0;
    bottom: 0;
    left: auto;
    width: 37.5%;
    height: 16.9%;
    min-height: 114px;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 14px 1fr;
    gap: 0 8px;
    padding: 12px 16px 20px;
    border: 0;
    border-top: 4px solid #3a2c22;
    background: linear-gradient(#241a16, #0c0807);
    box-shadow: none;
  }

  .scene-actions::before,
  .scene-actions::after {
    display: none;
  }

  .scene-actions-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .scene-actions-label,
  .scene-actions-state {
    padding: 0;
    color: #a8916a;
    font-family: var(--console-mono);
    font-size: 8px;
    letter-spacing: 0.22em;
  }

  .scene-actions-state {
    color: #6e5f47;
  }

  .scene-decision {
    display: grid;
    min-width: 0;
    min-height: 0;
    height: auto;
    grid-template-columns: 26px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
    gap: 0 5px;
    padding: 5px 8px;
    border: 1px solid #4a3a2c;
    background: linear-gradient(#241c16, #100c0a);
    font-size: 11px;
    line-height: 1.05;
    text-align: left;
  }

  .scene-decision.admit {
    border: 2px solid #8e1f1c;
    background: linear-gradient(#7d1f19, #480e0b);
  }

  .scene-decision.call {
    display: none;
  }

  .scene-decision .decision-sprite {
    grid-row: 1 / -1;
    width: 24px;
    height: 26px;
  }

  .scene-decision span {
    align-self: end;
    max-width: 100%;
    overflow: visible;
    font-family: var(--console-display);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-overflow: clip;
    white-space: normal;
  }

  .scene-decision small {
    align-self: start;
    color: #a8916a;
    font-family: var(--console-mono);
    font-size: 7px;
    letter-spacing: 0.08em;
  }

  .scene-decision.deny {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .scene-decision.deny .decision-sprite {
    display: none;
  }
}

/* Welcome canvas parity ----------------------------------------------------
 * The reference opening is a fixed 1920x1080 desktop canvas and a fixed
 * 390x844 mobile canvas, scaled as one instrument surface. Keep the opening
 * on the same coordinate system as the active checkpoint so its type, figure
 * and controls do not drift when the viewport is letterboxed.
 */
.welcome-screen {
  padding: 0;
  background: #060404;
}

.welcome-screen .overlay-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  min-height: 0;
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(180deg, rgba(6, 4, 3, 0.12), rgba(4, 3, 2, 0.72)),
    radial-gradient(60% 70% at 34% 45%, rgba(0, 0, 0, 0.15), rgba(4, 3, 2, 0.94) 75%),
    url("assets/generated/embassy-background.png") center / cover no-repeat;
  box-shadow: none;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(min(calc(100vw / 1920px), calc(100vh / 1080px)));
}

.overlay.is-open.welcome-screen .overlay-card {
  transform: translate(-50%, -50%) scale(min(calc(100vw / 1920px), calc(100vh / 1080px)));
}

.welcome-screen .overlay-card::before,
.welcome-screen .overlay-card::after {
  z-index: 4;
  box-sizing: border-box;
}

.welcome-screen .overlay-card::before {
  top: auto;
  right: 120px;
  bottom: 70px;
  left: 120px;
  width: auto;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: #2a211a;
  box-shadow: none;
}

.welcome-screen .overlay-card::after {
  top: auto;
  right: 120px;
  bottom: 44px;
  left: 120px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #6e5f47;
  content: "FORM RS-26 / SECURITY CONTROL       VESKARIAN EMBASSY · PUBLIC ENTRY       NO ENTRY WITHOUT THE RED STAMP";
  font-family: var(--console-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  line-height: 1;
  white-space: pre;
}

.welcome-screen .overlay-inspector {
  position: absolute;
  z-index: 1;
  top: auto;
  right: -40px;
  bottom: -30px;
  left: auto;
  width: auto;
  height: 104%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(-30px 20px 60px rgba(0, 0, 0, 0.9));
}

.welcome-screen .overlay-emblem,
.welcome-screen .panel-kicker,
.welcome-screen .overlay-card h1,
.welcome-screen .overlay-card p,
.welcome-screen .primary-button {
  position: absolute;
  z-index: 2;
}

.welcome-screen .overlay-emblem {
  top: 150px;
  left: 120px;
  width: 76px;
  height: 76px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: url("assets/generated/red-stamp-emblem.png") center / contain no-repeat;
  border-width: 1px;
  box-shadow: none;
}

.welcome-screen .overlay-emblem span {
  display: none;
}

.welcome-screen .panel-kicker {
  top: 169px;
  left: 214px;
  display: block;
  width: 660px;
  max-width: none;
  color: #b39a72;
  font-family: var(--console-mono);
  font-size: 0;
  font-weight: 600;
  letter-spacing: 0.4em;
  line-height: 1.55;
  white-space: nowrap;
}

.welcome-screen .panel-kicker::before,
.welcome-screen .panel-kicker::after {
  display: block;
  font-size: 12px;
}

.welcome-screen .panel-kicker::before {
  content: "UNION OF VESKAR";
}

.welcome-screen .panel-kicker::after {
  color: #8a7458;
  content: "EXTERNAL MISSIONS DIRECTORATE";
}

.welcome-screen .overlay-card h1 {
  top: 253px;
  left: 120px;
  width: 620px;
  max-width: 620px;
  margin: 0;
  color: #e9d9b1;
  font-family: var(--console-display);
  font-size: 196px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 0.82;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.95);
  transform: translateY(16px) scaleX(0.8);
  transform-origin: left top;
}

.welcome-screen .overlay-card h1::after {
  display: block;
  width: 220px;
  height: 3px;
  margin-top: 2px;
  background: linear-gradient(90deg, #8e1f1c, #8e1f1c 100%, #4a3a2c 100%);
  content: "";
  transform: scaleX(1.25);
  transform-origin: left center;
}

.welcome-screen .overlay-card p {
  top: 621px;
  left: 120px;
  width: 640px;
  max-width: 640px;
  margin: 0;
  color: #cdbe9c;
  font-family: var(--console-mono);
  font-size: 21px;
  line-height: 1.6;
}

.welcome-screen .briefing-strip {
  display: none;
}

.welcome-screen .primary-button {
  top: 755px;
  right: auto;
  bottom: auto;
  left: 120px;
  width: 346px;
  height: 101px;
  min-height: 0;
  margin: 0;
  border: 2px solid #8e1f1c;
  background:
    linear-gradient(90deg, rgba(255, 226, 178, 0.08), transparent 30% 70%, rgba(255, 226, 178, 0.08)),
    linear-gradient(#7d1f19, #480e0b);
  color: #f4dfc9;
  font-family: var(--console-display);
  font-size: 40px;
  letter-spacing: 0.08em;
  box-shadow: inset 0 2px 0 rgba(255, 190, 170, 0.28), 0 6px 0 #290a08;
}

.welcome-screen .primary-button span {
  display: none;
}

@media (max-width: 760px) {
  .welcome-screen .overlay-card {
    width: 390px;
    height: 844px;
    transform: translate(-50%, -50%) scale(min(calc(100vw / 390px), calc(100vh / 844px)));
  }

  .overlay.is-open.welcome-screen .overlay-card {
    transform: translate(-50%, -50%) scale(min(calc(100vw / 390px), calc(100vh / 844px)));
  }

  .welcome-screen .overlay-card::before,
  .welcome-screen .overlay-card::after {
    display: none;
  }

  .welcome-screen .overlay-inspector {
    right: auto;
    bottom: 94px;
    left: 50%;
    width: auto;
    height: 50.2%;
    transform: translateX(-50%) scaleX(0.94);
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.9));
  }

  .welcome-screen .overlay-emblem {
    top: 44px;
    left: 24px;
    width: 38px;
    height: 38px;
    box-shadow: none;
  }

  .welcome-screen .overlay-emblem span {
    display: none;
  }

  .welcome-screen .panel-kicker {
    top: 51px;
    left: 73px;
    width: 290px;
    font-size: 0;
    letter-spacing: 0.3em;
    line-height: 1.45;
    white-space: normal;
  }

  .welcome-screen .panel-kicker::before {
    font-size: 9px;
    content: "UNION OF VESKAR";
  }

  .welcome-screen .panel-kicker::after {
    font-size: 9px;
    content: "EXTERNAL MISSIONS";
    letter-spacing: 0.2em;
  }

  .welcome-screen .overlay-card h1 {
    top: 98px;
    left: 24px;
    width: 260px;
    max-width: 260px;
    font-size: 72px;
    line-height: 0.84;
    letter-spacing: 0.03em;
    transform: translateY(7px);
  }

  .welcome-screen .overlay-card h1::after {
    width: 90px;
    height: 2px;
    margin-top: 3px;
    transform: none;
  }

  .welcome-screen .overlay-card p {
    top: 249px;
    left: 24px;
    width: 340px;
    max-width: 340px;
    font-size: 13px;
    line-height: 1.55;
  }

  .welcome-screen .primary-button {
    top: auto;
    right: 24px;
    bottom: 34px;
    left: 24px;
    width: 342px;
    height: 72px;
    min-height: 0;
    font-size: 28px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 760px) {
  .app {
    position: relative;
    display: block;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    padding: 0;
    overflow: hidden;
  }

  .topbar {
    position: absolute;
    inset: 0 0 auto;
    z-index: 30;
    display: grid;
    grid-template-columns: auto 1fr auto;
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 0 12px;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid #2f251d;
    background: linear-gradient(#211a15, #0f0c0a);
    box-shadow: inset 0 -1px 0 rgba(200, 162, 95, 0.12);
  }

  .topbar::before {
    display: none;
  }

  .brand-lockup {
    gap: 10px;
    min-width: 0;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-family: var(--console-display);
    font-size: 19px;
    letter-spacing: 0.08em;
  }

  .brand-subtitle {
    display: block;
    max-width: 246px;
    overflow: hidden;
    color: #a8916a;
    font-size: 0;
    letter-spacing: 0.18em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-subtitle::after {
    content: "SECURITY CONTROL · 08:30";
    font-size: 7px;
  }

  .protocol-status {
    position: absolute;
    top: 34px;
    left: 52px;
    gap: 5px;
    font-size: 0;
    align-self: start;
    bottom: auto;
    display: none;
  }

  .protocol-status .status-light,
  .protocol-status #protocolText,
  .protocol-status .status-divider,
  .protocol-status #runSeed {
    display: none;
  }

  .protocol-status #clockText {
    display: inline;
    color: #a8916a;
    font-family: var(--console-mono);
    font-size: 7px;
    letter-spacing: 0.16em;
  }

  .protocol-status #clockText::before {
    content: "SECURITY CONTROL · ";
  }

  .header-metrics {
    position: static;
    display: flex;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .metric {
    width: 31px;
    min-width: 0;
    padding: 0;
    gap: 0;
    border: 0;
    text-align: right;
  }

  .metric + .metric {
    margin-left: 8px;
    border: 0;
  }

  .metric-label {
    display: block;
    overflow: hidden;
    width: 28px;
    color: #a8916a;
    font-size: 6px;
    letter-spacing: 0.12em;
    text-overflow: clip;
    white-space: nowrap;
  }

  .metric-tolerance .metric-label {
    font-size: 0;
  }

  .metric-tolerance .metric-label::after {
    content: "TOL";
    font-size: 6px;
  }

  .metric-career .metric-label {
    font-size: 0;
  }

  .metric-career .metric-label::after {
    content: "CAREER";
    font-size: 6px;
  }

  .metric strong {
    color: #ead8b5;
    font-family: var(--console-display);
    font-size: 17px;
    line-height: 1;
  }

  .meter {
    display: none;
  }

  main {
    position: absolute;
    inset: 0;
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
  }

  .embassy-wall {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 0;
    background-position: center 28%;
    box-shadow: none;
  }

  .embassy-wall::before,
  .embassy-wall::after {
    display: none;
  }

  .checkpoint-scene {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .scene-line,
  .security-desk {
    display: none;
  }

  .visitor-stage {
    top: 52px;
    right: 0;
    bottom: 31.4%;
    left: 0;
    width: auto;
    height: auto;
    border-bottom: 1px solid #3a2c22;
  }

  .visitor-stage::before {
    inset: 0;
    border: 0;
    background: linear-gradient(180deg, rgba(4, 3, 3, 0.12), transparent 45%, rgba(4, 3, 3, 0.88));
    box-shadow: none;
  }

  .visitor-stage::after {
    display: none;
  }

  .visitor-image {
    width: 57.2%;
    height: 96%;
    object-fit: cover;
    object-position: center bottom;
    filter: saturate(0.96) brightness(1.04) contrast(1.04);
  }

  .visitor-nameplate {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 92px;
    min-height: 92px;
    max-height: 92px;
    padding: 2px 12px 8px;
    border: 0;
    border-left: 3px solid var(--console-red-hot);
    background: linear-gradient(90deg, rgba(5, 4, 3, 0.92), rgba(5, 4, 3, 0.2));
    text-align: left;
  }

  .visitor-nameplate img {
    display: none;
    object-fit: cover;
  }

  .visitor-nameplate span {
    align-self: start;
    padding: 0;
    font-size: clamp(28px, 8.2vw, 35px);
    letter-spacing: 0.05em;
    line-height: 1;
  }

  .visitor-nameplate small {
    align-self: start;
    padding: 6px 0 0;
    font-size: 14px;
    font-style: italic;
    line-height: 1.2;
    text-transform: none;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .scene-observation {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 16.8%;
    left: 0;
    display: flex;
    height: 5.45%;
    min-height: 46px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px 10px;
    border-top: 0;
    border-bottom: 0;
    background: #100d0b;
    box-shadow: none;
  }

  .observation-copy .panel-kicker {
    margin-bottom: 5px;
    color: #a8916a;
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .scene-observation .observation-copy {
    display: none;
  }

  .scene-observation {
    padding: 0 12px 10px;
  }

  .observation-copy p {
    max-width: none;
    overflow: hidden;
    color: #ead8b5;
    font-size: 12px;
    line-height: 1.32;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .observation-copy small {
    display: none;
  }

  .finding-controls {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 7px;
    margin: 0;
    height: 36px;
    min-height: 36px;
  }

  .finding-button {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 9px 0;
    font-size: 11px;
  }

  .finding-button small {
    display: none;
  }

  .scene-case-card {
    top: auto;
    right: 0;
    bottom: 22.3%;
    left: 0;
    width: 100%;
    height: 0;
    min-height: 0;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    pointer-events: none;
  }

  .scene-case-card::before,
  .scene-case-card::after,
  .scene-case-card > .panel-kicker,
  .scene-case-card > strong,
  .scene-case-card > small,
  .scene-case-card > .scene-case-tags {
    display: none;
  }

  .scene-case-card > p {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: auto;
    max-width: none;
    height: 76px;
    max-height: none;
    margin: 0;
    padding: 30px 12px 10px;
    overflow: hidden;
    color: #ead8b5;
    font-family: var(--console-mono);
    font-size: 12px;
    font-style: normal;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: normal;
  }

  .scene-case-card > p::before {
    position: absolute;
    top: 10px;
    left: 12px;
    color: #a8916a;
    content: "WHAT YOU SEE";
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .scene-checklist {
    top: auto;
    right: 0;
    bottom: 9.2%;
    left: 0;
    width: 100%;
    height: 7.6%;
    min-height: 64px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-top: 1px solid #2f251d;
    border-radius: 0;
    background: #100d0b;
    box-shadow: none;
    transform: none;
    scrollbar-width: none;
  }

  .scene-checklist::-webkit-scrollbar {
    display: none;
  }

  .scene-checklist::before,
  .scene-checklist::after,
  .checklist-header,
  .checklist-instruction,
  .checklist-footer {
    display: none;
  }

  .checklist-strip {
    display: flex;
    align-items: stretch;
    gap: 6px;
    width: max-content;
    height: 100%;
    padding: 9px 8px;
  }

  .checklist-person {
    display: flex;
    flex: 0 0 auto;
    width: 108px;
    height: 46px;
    min-height: 46px;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid #c8a25f;
    background: linear-gradient(#3a2e22, #1e1712);
    color: #ead8b5;
    font-family: var(--console-display);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-align: left;
  }

  .checklist-person img {
    width: 24px;
    height: 30px;
    object-fit: cover;
    object-position: top;
    border: 1px solid #4a3a2c;
  }

  .checklist-person strong {
    display: none;
  }

  .checklist-list {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    height: 46px;
    min-height: 46px;
  }

  .checklist-row {
    display: flex;
    flex: 0 0 auto;
    width: 78px;
    height: 46px;
    min-height: 46px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 6px 10px;
    border: 1px solid #2f251d;
    border-left: 1px solid #2f251d;
    background: transparent;
  }

  .checklist-row:hover:not(:disabled),
  .checklist-row.is-current {
    border-color: #8e1f1c;
    background: rgba(142, 31, 28, 0.12);
    transform: none;
  }

  .checklist-index {
    color: #8a7458;
    font-size: 7px;
  }

  .checklist-label {
    overflow: hidden;
    color: #ead8b5;
    font-family: var(--console-display);
    font-size: 0;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
  }

  .checklist-label::after {
    font-size: 14px;
  }

  .checklist-row:nth-child(1) .checklist-label::after { content: "FILE"; }
  .checklist-row:nth-child(2) .checklist-label::after { content: "FACE"; }
  .checklist-row:nth-child(3) .checklist-label::after { content: "PAPERS"; }
  .checklist-row:nth-child(4) .checklist-label::after { content: "GATE"; }
  .checklist-row:nth-child(5) .checklist-label::after { content: "X-RAY"; }
  .checklist-row:nth-child(6) .checklist-label::after { content: "ASK"; }

  .checklist-mark {
    color: #6e5f47;
    font-size: 6px;
  }

  .scene-actions {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 9.2%;
    min-height: 78px;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 7px;
    padding: 9px 10px;
    align-items: start;
    border: 0;
    border-top: 2px solid #3a2c22;
    background: linear-gradient(#241a16, #0c0807);
    box-shadow: none;
  }

  .scene-actions-heading,
  .scene-actions-label,
  .scene-actions-state {
    display: none;
  }

  .scene-decision {
    display: grid;
    min-width: 0;
    min-height: 60px;
    height: 60px;
    grid-template-columns: 31px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 0 5px;
    padding: 5px 7px;
    border: 1px solid #4a3a2c;
    background: linear-gradient(#241c16, #100c0a);
    font-size: 8px;
    text-align: left;
  }

  .scene-decision.admit {
    border: 2px solid #8e1f1c;
    background: linear-gradient(#7d1f19, #480e0b);
  }

  .scene-decision.call {
    display: none;
  }

  .scene-decision.hold .decision-sprite {
    display: none;
  }

  .scene-decision.hold {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .scene-decision .decision-sprite {
    grid-row: 1 / -1;
    width: 26px;
    height: 30px;
  }

  .scene-decision span {
    align-self: end;
    max-width: 100%;
    overflow: hidden;
    font-family: var(--console-display);
    font-size: 15px;
    letter-spacing: 0.05em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: normal;
  }

  .scene-decision small {
    align-self: start;
    color: #a8916a;
    font-family: var(--console-mono);
    font-size: 6px;
    letter-spacing: 0.08em;
  }

  .scene-decision.deny {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .scene-decision.deny .decision-sprite {
    display: none;
  }

  .toast {
    display: none !important;
  }
}
