:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-sans);
  --bg: #f4efe7;
  --paper: #fbf8f2;
  --surface: #fffdf8;
  --surface-2: #ebe2d4;
  --panel: #fbf8f2;
  --panel-2: #ebe2d4;
  --ink: #191714;
  --muted: #5f5a52;
  --line: #d8d0c4;
  --accent: #50a605;
  --accent-dark: #347604;
  --danger: #d04a3a;
  --warn: #d99228;
  --good: #1f8f68;
  --text-on-dark: #f4fbfa;
  --soft-on-dark: #a7c0c4;
  --shadow: 0 30px 80px rgba(25, 23, 20, 0.13);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
}

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

button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.incident-app {
  min-height: 100vh;
}

.screen {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.command-bar {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 17, 19, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark,
.company-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: #071113;
  font-weight: 950;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  position: relative;
}

.company-logo span {
  grid-area: 1 / 1;
  font-weight: 950;
}

.company-logo img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.company-logo.logo-failed img {
  display: none;
}

.brand h1,
.brand p,
.hero-copy h2,
.panel h2,
.room-title h2,
.result-card h2,
.certificate h1,
.certificate h2 {
  margin: 0;
}

.brand h1 {
  font-size: 20px;
}

.brand p {
  margin-top: 3px;
  color: var(--soft-on-dark);
  font-size: 13px;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.status-chip {
  min-height: 44px;
  min-width: 96px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.06);
}

.status-chip span,
.field span,
.mini-label,
.certificate-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-chip strong {
  color: var(--text-on-dark);
  font-size: 16px;
}

.page {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 36px 0 30px;
}

.start-grid,
.setup-grid,
.briefing-grid,
.result-grid {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 470px);
  gap: 24px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-copy h2 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.96;
}

.hero-copy p,
.panel p,
.room-title p,
.result-card p {
  margin: 0;
  color: var(--soft-on-dark);
  line-height: 1.52;
}

.primary,
.secondary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary {
  background: var(--accent);
  color: #071113;
  box-shadow: 0 14px 38px rgba(41, 179, 143, 0.24);
}

.primary:hover:not(:disabled) {
  background: #55c7a9;
}

.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.16);
}

.ghost {
  background: transparent;
  color: var(--soft-on-dark);
  border-color: rgba(255, 255, 255, 0.16);
}

.scene-card,
.panel,
.room-card,
.result-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.image-hero {
  position: relative;
  min-height: 520px;
  border-radius: inherit;
  overflow: hidden;
}

.image-hero img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(5, 15, 18, 0.78);
  backdrop-filter: blur(10px);
}

.image-overlay strong {
  display: block;
  color: var(--text-on-dark);
  font-size: 24px;
}

.image-overlay p {
  margin: 6px 0 0;
  color: var(--soft-on-dark);
}

.panel,
.result-card {
  padding: 22px;
}

.scene-card {
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.ops-illustration {
  width: min(640px, 100%);
  padding: 26px;
}

.ops-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.monitor,
.device,
.case-file,
.vault-graphic,
.map-station,
.evidence-card,
.tool-card,
.url-card,
.step-card,
.hotspot-object {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(8, 20, 24, 0.82);
}

.monitor {
  min-height: 230px;
  padding: 18px;
}

.monitor-line {
  height: 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.monitor-line.short {
  width: 54%;
}

.monitor-line.good {
  background: var(--accent);
}

.monitor-line.warn {
  background: var(--warn);
}

.monitor-line.danger {
  background: var(--danger);
}

.device {
  min-height: 230px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.device .pulse {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  border-radius: 50%;
  border: 10px solid rgba(41, 179, 143, 0.28);
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.setup-grid {
  align-items: start;
  padding-top: 28px;
}

.first-start-grid {
  align-items: center;
}

.start-domain-panel {
  max-width: 640px;
}

.start-guide-stack {
  display: grid;
  gap: 16px;
  align-content: center;
}

.start-guide-stack .briefing-guide {
  width: 100%;
  margin: 0;
}

.start-mission-card {
  min-height: 300px;
}

.start-mission-card .image-hero {
  min-height: 300px;
}

.start-countdown-button {
  width: 100%;
  min-height: 56px;
  font-size: 18px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.08);
}

.field textarea {
  min-height: 78px;
  resize: vertical;
}

.scenario-grid,
.color-row {
  display: grid;
  gap: 10px;
}

.scenario-grid {
  grid-template-columns: 1fr 1fr;
}

.scenario-card {
  min-height: 118px;
  display: grid;
  align-content: end;
  gap: 8px;
  text-align: left;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.scenario-card.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.scenario-card strong {
  display: block;
  font-size: 18px;
}

.scenario-card span {
  color: var(--soft-on-dark);
  font-size: 13px;
  font-weight: 650;
}

.color-row {
  grid-template-columns: 54px 1fr;
  align-items: end;
}

input[type="color"] {
  width: 54px;
  height: 44px;
  padding: 2px;
}

.notice {
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
  background: rgba(41, 179, 143, 0.09);
  color: var(--soft-on-dark);
  line-height: 1.45;
}

.company-scan {
  min-height: 96px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.065);
}

.company-scan.loaded {
  border-color: rgba(41, 179, 143, 0.5);
}

.company-scan strong {
  display: block;
  color: var(--text-on-dark);
  font-size: 18px;
}

.company-scan p {
  margin: 3px 0 0;
  color: var(--soft-on-dark);
  font-size: 13px;
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 18px;
}

.mission-map {
  min-height: calc(100vh - 136px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.045);
  background-size: 36px 36px;
}

.map-header,
.room-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.map-header h2,
.room-title h2 {
  margin: 0;
  font-size: 28px;
}

.map-station {
  min-height: 166px;
  color: var(--text-on-dark);
  text-align: left;
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.escape-map-board {
  position: relative;
  min-height: 980px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(4, 14, 17, 0.62), rgba(4, 14, 17, 0.76)),
    url("https://cyber.paragamix.com/assets/awareness/incident-room.png") center / cover,
    radial-gradient(circle at 14% 24%, rgba(41, 179, 143, 0.12), transparent 18%),
    radial-gradient(circle at 82% 34%, rgba(217, 146, 40, 0.14), transparent 18%),
    radial-gradient(circle at 84% 72%, rgba(41, 179, 143, 0.16), transparent 18%),
    rgba(4, 14, 17, 0.55);
  overflow: hidden;
}

.route-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-lines path {
  fill: none;
  stroke: rgba(41, 179, 143, 0.42);
  stroke-width: 1.2;
  stroke-dasharray: 6 5;
  filter: drop-shadow(0 0 8px rgba(41, 179, 143, 0.35));
}

.map-node {
  position: absolute;
  width: min(220px, 28%);
  min-height: 152px;
  z-index: 1;
}

.node-1 { left: 5%; top: 14%; }
.node-2 { left: 36%; top: 14%; }
.node-3 { right: 5%; top: 14%; }
.node-4 { left: 5%; top: 36%; }
.node-5 { left: 36%; top: 36%; }
.node-6 { right: 5%; top: 36%; }
.node-7 { left: 5%; top: 58%; }
.node-8 { left: 36%; top: 58%; }
.node-9 { right: 5%; top: 58%; }
.node-10 { left: 5%; bottom: 4%; }
.node-11 { left: 36%; bottom: 4%; }
.node-12 { right: 5%; bottom: 4%; }

.node-index {
  display: inline-block !important;
  width: fit-content;
  margin: 0 0 8px !important;
  border-radius: 999px;
  padding: 4px 8px;
  color: #061214 !important;
  background: var(--accent);
  font-size: 11px !important;
  font-weight: 950;
}

.map-station::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 76% 18%, rgba(41, 179, 143, 0.22), transparent 28%);
  pointer-events: none;
}

.map-station.done {
  border-color: var(--accent);
  background:
    linear-gradient(145deg, rgba(41, 179, 143, 0.64), rgba(41, 179, 143, 0.2)),
    rgba(8, 20, 24, 0.9);
  box-shadow: 0 0 0 2px rgba(41, 179, 143, 0.72), 0 22px 52px rgba(41, 179, 143, 0.22);
}

.map-station.locked {
  opacity: 0.38;
  filter: grayscale(0.55);
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(8, 20, 24, 0.46);
}

.map-station:not(.done):not(.locked) {
  border-color: rgba(217, 146, 40, 0.9);
  background:
    linear-gradient(145deg, rgba(217, 146, 40, 0.54), rgba(217, 146, 40, 0.16)),
    rgba(8, 20, 24, 0.9);
  box-shadow: 0 0 0 2px rgba(217, 146, 40, 0.5), 0 22px 52px rgba(217, 146, 40, 0.16);
}

.map-station.done .node-index {
  background: #9bf1cf;
}

.map-station:not(.done):not(.locked) .node-index {
  background: #f2b84d;
}

.map-station.locked .node-index {
  color: rgba(255, 255, 255, 0.64) !important;
  background: rgba(255, 255, 255, 0.12);
}

.map-station.done .station-icon {
  color: #061214;
  background: rgba(155, 241, 207, 0.88);
}

.map-station:not(.done):not(.locked) .station-icon {
  color: #061214;
  background: rgba(242, 184, 77, 0.88);
}

.map-station.locked .station-icon {
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
}

.station-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.station-icon svg,
.action-icon svg,
.small-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-station strong {
  display: block;
  font-size: 17px;
  position: relative;
}

.map-station span {
  display: block;
  margin-top: 6px;
  color: var(--soft-on-dark);
  font-size: 13px;
  position: relative;
}

.side-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.risk-box,
.keys-box {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.risk-track {
  height: 14px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.risk-fill {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warn), var(--danger));
  transition: width 200ms ease;
}

.key-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.key-chip {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  padding: 8px 10px;
  color: #0b191c;
  background: var(--accent);
  font-weight: 850;
}

.key-chip.missing {
  color: var(--soft-on-dark);
  background: rgba(255, 255, 255, 0.07);
}

.room-shell {
  min-height: calc(100vh - 136px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.room-card {
  min-height: 520px;
  padding: 18px;
  overflow: visible;
}

.room-workbench {
  min-height: 484px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  gap: 16px;
}

.puzzle-stage {
  position: relative;
  min-height: 484px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(8, 20, 24, 0.66);
  overflow: hidden;
}

.stage-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.9) contrast(1.05);
}

.puzzle-stage > :not(.stage-backdrop) {
  position: relative;
  z-index: 1;
}

.puzzle-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.guide-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(94, 190, 159, 0.5);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(94, 190, 159, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(9, 22, 26, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.guide-portrait {
  width: 86px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.quiz-briefing {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.quiz-briefing h2 {
  margin: 3px 0 6px;
  color: #102126;
  font-size: 28px;
  line-height: 1.08;
}

.quiz-briefing p {
  margin: 0;
  color: #53686e;
  line-height: 1.42;
}

.guide-content {
  min-width: 0;
}

.guide-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text-on-dark);
  font-size: 20px;
  line-height: 1.18;
}

.guide-card p {
  margin: 8px 0 0;
  color: var(--soft-on-dark);
  font-size: 15px;
  line-height: 1.48;
}

.guide-card .guide-transfer {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-on-dark);
  background: rgba(41, 179, 143, 0.12);
  border: 1px solid rgba(41, 179, 143, 0.28);
  font-weight: 800;
}

.guide-card .mini-label {
  display: block;
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.briefing-guide {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: min(100%, 560px);
  margin: 18px 0 22px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(94, 190, 159, 0.46);
  background:
    linear-gradient(135deg, rgba(94, 190, 159, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(9, 22, 26, 0.78);
}

.briefing-guide strong {
  display: block;
  margin-top: 4px;
  color: var(--text-on-dark);
  font-size: 20px;
  line-height: 1.2;
}

.briefing-guide p {
  margin: 8px 0 0;
  color: var(--soft-on-dark);
  font-size: 15px;
  line-height: 1.48;
}

.incident-file {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.incident-file strong {
  display: block;
  color: var(--text-on-dark);
  font-size: 18px;
}

.incident-file p {
  margin: 6px 0 0;
  color: var(--soft-on-dark);
  font-size: 13px;
  line-height: 1.35;
}

.incident-progress {
  height: 10px;
  margin: 12px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  overflow: hidden;
}

.incident-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--warn), var(--accent));
}

.evidence-list {
  display: grid;
  gap: 7px;
}

.evidence-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  padding: 7px 8px;
  color: var(--soft-on-dark);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 850;
}

.evidence-chip.secured {
  color: #071113;
  background: rgba(41, 179, 143, 0.86);
}

.incident-note {
  color: var(--accent) !important;
  font-weight: 850;
}

.task-card {
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.task-card strong {
  display: block;
  font-size: 22px;
}

.task-card p {
  margin: 8px 0 0;
  color: var(--soft-on-dark);
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-on-dark);
  background: rgba(94, 190, 159, 0.14);
  border: 1px solid rgba(94, 190, 159, 0.34);
  font-size: 13px;
  font-weight: 850;
}

.learning-card {
  border-radius: var(--radius);
  padding: 14px;
  color: var(--soft-on-dark);
  background: rgba(41, 179, 143, 0.08);
  border: 1px solid rgba(41, 179, 143, 0.2);
}

.learning-card strong {
  display: block;
  color: var(--text-on-dark);
  font-size: 17px;
}

.learning-card p {
  margin: 7px 0 0;
  line-height: 1.35;
}

.learning-card b {
  color: var(--text-on-dark);
}

.learning-card.retry {
  background: rgba(217, 146, 40, 0.09);
  border-color: rgba(217, 146, 40, 0.36);
}

.learning-card.passed {
  background: rgba(41, 179, 143, 0.12);
  border-color: rgba(41, 179, 143, 0.42);
}

.knowledge-test {
  grid-column: 1 / -1;
  align-self: stretch;
  color: var(--ink);
  background: #f6faf9;
  border-color: rgba(13, 29, 33, 0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.knowledge-test h2 {
  color: #102126;
}

.knowledge-test p {
  color: #53686e;
}

.knowledge-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #e3f4ef;
  border: 1px solid rgba(41, 179, 143, 0.34);
}

.knowledge-status.retry {
  background: rgba(217, 146, 40, 0.12);
  border-color: rgba(217, 146, 40, 0.38);
}

.knowledge-status strong,
.knowledge-status span {
  color: #173036;
}

.quiz-list {
  display: grid;
  gap: 14px;
}

.quiz-card {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid #cbd8d8;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(24, 38, 42, 0.08);
}

.quiz-card legend {
  padding: 0;
  color: #17272b;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
}

.quiz-card .mini-label {
  color: #607278;
}

.quiz-option {
  min-height: 54px;
  justify-content: flex-start;
  width: 100%;
  color: #142528;
  background: #eef4f2;
  border-color: #cbd8d8;
  text-align: left;
  line-height: 1.3;
}

.quiz-option.selected {
  border-color: var(--accent);
  background: #dff3ee;
  box-shadow: inset 0 0 0 1px rgba(41, 179, 143, 0.4);
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.quiz-actions button {
  min-width: min(100%, 240px);
}

.knowledge-retry {
  color: var(--warn) !important;
  font-weight: 850;
}

.knowledge-test .mini-label,
.knowledge-test .quiz-card .mini-label {
  color: #607278 !important;
}

.knowledge-test .quiz-card {
  color: #17272b !important;
  background: #ffffff !important;
  border-color: #cbd8d8 !important;
}

.knowledge-test .quiz-card legend {
  color: #17272b !important;
}

.knowledge-test .quiz-option {
  color: #142528 !important;
  background: #eef4f2 !important;
  border-color: #cbd8d8 !important;
}

.knowledge-test .quiz-option.selected {
  color: #102126 !important;
  background: #dff3ee !important;
  border-color: var(--accent) !important;
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.room-actions .primary,
.room-actions .secondary {
  min-width: 180px;
}

.mail-window,
.chat-window,
.portal-window,
.phone-window,
.desk-scene,
.vault-scene {
  position: absolute;
  inset: 128px 28px 28px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.mail-top,
.chat-top {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #dbe7e5;
  border-bottom: 1px solid var(--line);
}

.mail-window {
  inset: 42px 28px 28px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.chat-window {
  inset: 42px 28px 28px;
}

.portal-window {
  inset: 42px 28px 28px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  color: var(--text-on-dark);
  background: #f6faf9;
}

.portal-browser {
  min-height: 54px;
  display: grid;
  grid-template-columns: 12px 12px 12px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-browser > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.portal-url {
  min-width: 0;
  width: 100%;
  margin-left: 8px;
  overflow: hidden;
  color: #ffd7cf;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fake-site {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(246, 250, 249, 0.96), rgba(222, 237, 233, 0.94)),
    #f6faf9;
}

.fake-site-nav {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  color: #203236;
  border-bottom: 1px solid #cfdbd9;
  background: rgba(255, 255, 255, 0.72);
}

.fake-site-nav strong {
  margin-right: auto;
  font-size: 16px;
}

.fake-site-nav span {
  color: #63757a;
  font-size: 12px;
  font-weight: 850;
}

.fake-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #061214;
  background: var(--accent);
  font-weight: 950;
}

.fake-site-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: center;
  padding: 22px;
}

.fake-site-copy {
  display: grid;
  gap: 12px;
  align-content: center;
  min-width: 0;
}

.fake-badge {
  width: fit-content;
  border: 1px solid rgba(208, 74, 58, 0.34);
  border-radius: 999px;
  padding: 6px 10px;
  color: #9f3328;
  background: #fff0ed;
  font-size: 12px;
  font-weight: 950;
}

.fake-site-copy h3 {
  margin: 0;
  color: #142528;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.fake-site-copy p {
  max-width: 520px;
  margin: 0;
  color: #586c72;
  font-size: 16px;
  line-height: 1.4;
}

.fake-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fake-trust-row span {
  border-radius: 999px;
  padding: 7px 9px;
  color: #23373b;
  background: #ffffff;
  border: 1px solid #d5e0de;
  font-size: 12px;
  font-weight: 850;
}

.portal-card {
  width: 100%;
  margin: 0 auto;
  border: 1px solid #c9d7d5;
  border-radius: var(--radius);
  padding: 18px;
  color: var(--ink);
  text-align: left;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(24, 38, 42, 0.18);
}

.portal-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.portal-seal {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 12px;
  color: #061214;
  background: var(--accent);
  font-weight: 950;
}

.portal-card h3 {
  margin: 0;
  color: #17272b;
  font-size: 20px;
}

.portal-field {
  width: 100%;
  margin-top: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  color: #5c6e73;
  background: #eef4f2;
}

.portal-field.danger {
  border: 1px solid rgba(208, 74, 58, 0.44);
  background: #fff7f5;
}

.inline-hotspot {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: inherit;
  cursor: pointer;
}

.portal-url.inline-hotspot {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 8px;
  background: transparent;
  text-align: left;
}

.inline-hotspot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inline-hotspot b {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #061214;
  background: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.inline-hotspot:hover,
.inline-hotspot.found {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(41, 179, 143, 0.42);
}

.portal-submit {
  width: 100%;
  min-height: 42px;
  display: grid;
  place-items: center;
  margin-top: 10px;
  border-radius: 8px;
  color: #061214;
  background: var(--accent);
  font-weight: 900;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 18px 0 var(--warn), 36px 0 var(--good);
}

.mail-body,
.chat-body {
  padding: 18px;
}

.mail-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px 14px;
  overflow: auto;
}

.chat-body {
  padding: 12px 18px 18px;
}

.mail-body .customer-pressure-card {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  min-height: 76px;
  margin: 0;
  padding: 9px 10px;
}

.mail-body .customer-pressure-card img {
  width: 58px;
  height: 58px;
}

.mail-body .customer-pressure-card strong {
  font-size: 15px;
}

.mail-body .customer-pressure-card p {
  margin-top: 3px;
  font-size: 12px;
}

.customer-pressure-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(208, 74, 58, 0.26);
  border-radius: 8px;
  padding: 12px;
  color: #18282c;
  background: linear-gradient(135deg, rgba(255, 248, 238, 0.98), rgba(243, 232, 222, 0.96));
  box-shadow: 0 12px 28px rgba(24, 38, 42, 0.1);
}

.customer-pressure-card img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(24, 38, 42, 0.16);
}

.customer-pressure-card .mail-avatar {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  font-size: 30px;
}

.customer-pressure-card strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  line-height: 1.15;
}

.customer-pressure-card p {
  margin: 5px 0 0;
  color: #52666b;
  font-size: 13px;
  line-height: 1.35;
}

.chat-persona {
  margin: 0 0 10px;
}

.mail-inspector {
  display: grid;
  gap: 7px;
  min-height: 0;
  align-content: start;
}

.mail-check {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  border: 1px solid #cbd8d8;
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  box-shadow: 0 10px 26px rgba(24, 38, 42, 0.08);
}

.mail-check strong {
  color: #586c72;
  font-size: 12px;
  text-transform: uppercase;
}

.mail-check > span {
  display: contents;
}

.mail-check > span > span {
  min-width: 0;
  overflow: hidden;
  color: #17272b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-check b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 999px;
  color: #061214;
  background: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.mail-check:hover,
.mail-check.found {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(41, 179, 143, 0.42), 0 10px 26px rgba(24, 38, 42, 0.08);
}

.mail-action {
  background: #eef7f5;
}

.mail-radar-stage {
  position: absolute;
  inset: 24px;
  color: #17272b;
}

.puzzle-stage > .mail-radar-stage {
  position: absolute;
  z-index: 1;
}

.mail-radar-panel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at var(--scan-x, 50%) var(--scan-y, 50%), rgba(255, 255, 255, 0.34) 0 9%, rgba(255, 255, 255, 0.08) 17%, transparent 28%),
    linear-gradient(180deg, #edf5f3, #f8fbfa);
  border: 1px solid rgba(12, 28, 32, 0.18);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.26);
}

.mail-radar-top {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid #cfdbd9;
  background: #dde9e7;
}

.mail-radar-top strong {
  margin-right: auto;
  color: #17272b;
}

.mail-radar-top em {
  color: #6a7b80;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.mail-radar-message {
  position: absolute;
  left: 44px;
  right: 44px;
  top: 64px;
  bottom: 18px;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.mail-radar-message .customer-pressure-card {
  margin: 0 0 2px;
  padding: 10px 12px;
  box-shadow: none;
}

.radar-mail-row {
  min-height: 50px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #cfdbd9;
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.radar-mail-row:hover,
.radar-mail-row:focus-visible {
  border-color: rgba(41, 179, 143, 0.72);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(41, 179, 143, 0.16);
  transform: translateY(-1px);
}

.radar-mail-row.found {
  border-color: rgba(41, 179, 143, 0.9);
  background: rgba(41, 179, 143, 0.14);
  box-shadow: inset 0 0 0 1px rgba(41, 179, 143, 0.36);
}

.radar-mail-row strong {
  color: #607278;
  font-size: 12px;
  text-transform: uppercase;
}

.radar-mail-row span {
  min-width: 0;
  color: #17272b;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.radar-mail-row b {
  padding: 6px 9px;
  border-radius: 999px;
  color: #061214;
  background: var(--accent);
  font-size: 11px;
  font-weight: 950;
}

.row-link span {
  width: fit-content;
  max-width: 100%;
  padding: 9px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: #2f6694;
  font-weight: 900;
}

.row-attachment svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: -4px;
}

.scan-target {
  position: absolute;
  z-index: 4;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}

.scan-target span {
  position: absolute;
  right: 8px;
  top: 8px;
  opacity: 0;
  padding: 5px 8px;
  border-radius: 999px;
  color: #061214;
  background: var(--accent);
  font-size: 11px;
  font-weight: 950;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.scan-target:hover span,
.scan-target.found span {
  opacity: 1;
  transform: translateY(0);
}

.scan-target.found {
  box-shadow: inset 0 0 0 2px rgba(41, 179, 143, 0.78);
  background: rgba(41, 179, 143, 0.08);
}

.scanner-lens {
  pointer-events: none;
  position: absolute;
  z-index: 6;
  left: var(--scan-x, 50%);
  top: var(--scan-y, 50%);
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 3px solid rgba(41, 179, 143, 0.88);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(41, 179, 143, 0.04) 58%, rgba(7, 18, 22, 0.18));
  box-shadow:
    0 0 0 999px rgba(6, 14, 16, 0.34),
    0 18px 44px rgba(0, 0, 0, 0.28),
    inset 0 0 24px rgba(255, 255, 255, 0.24);
  transform: translate(-50%, -50%);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.scanner-lens span {
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  border: 1px dashed rgba(6, 18, 20, 0.28);
}

.scanner-lens strong {
  color: rgba(6, 18, 20, 0.72);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.mail-radar-stage.has-scan-target .scanner-lens {
  border-color: #f2b84d;
  box-shadow:
    0 0 0 999px rgba(6, 14, 16, 0.26),
    0 0 0 9px rgba(242, 184, 77, 0.15),
    0 18px 44px rgba(0, 0, 0, 0.28),
    inset 0 0 24px rgba(255, 255, 255, 0.24);
}

.scanner-readout {
  position: absolute;
  z-index: 7;
  left: auto;
  right: 24px;
  top: 24px;
  width: min(380px, calc(100% - 48px));
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--text-on-dark);
  background: rgba(8, 20, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.scanner-readout strong {
  display: block;
  font-size: 18px;
}

.scanner-readout p {
  margin: 5px 0 0;
  color: var(--soft-on-dark);
}

.scanner-control-card .primary {
  width: 100%;
  margin-top: 12px;
}

@media (hover: none), (pointer: coarse), (max-width: 680px) {
  .mail-radar-stage {
    inset: 12px;
  }

  .mail-radar-panel {
    min-height: 0;
    overflow: visible;
  }

  .mail-radar-message {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    gap: 8px;
    overflow-y: visible;
    padding: 12px;
  }

  .radar-mail-row {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 0;
    padding: 12px;
  }

  .radar-mail-row span {
    font-size: 14px;
    line-height: 1.24;
  }

  .radar-mail-row b {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }

  .scanner-lens {
    display: none;
  }

  .scanner-readout {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    margin: 12px;
    padding: 11px 12px;
  }

  .scanner-readout strong {
    font-size: 15px;
  }

  .scan-target {
    box-shadow: inset 0 0 0 2px rgba(41, 179, 143, 0.34);
    background: rgba(41, 179, 143, 0.07);
  }

  .scan-target span {
    top: auto;
    right: 8px;
    bottom: 8px;
    opacity: 1;
    font-size: 10px;
    transform: none;
  }
}

.mail-action > span > span {
  width: fit-content;
  border-radius: 6px;
  padding: 8px 12px;
  color: #ffffff;
  background: #1d5f8d;
  font-weight: 900;
}

.mail-attachment > span > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mail-attachment svg {
  width: 20px;
  height: 20px;
  color: var(--accent-dark);
}

.mail-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e2ecea;
}

.mail-message {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.mail-button {
  width: 180px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: #1d5f8d;
  font-weight: 850;
}

.attachment {
  width: 200px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ccd9d9;
  border-radius: 6px;
  padding: 8px 10px;
  background: #ffffff;
}

.hotspot {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}

.hotspot:hover {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.08);
}

.hotspot.found {
  border-style: solid;
  border-color: var(--accent);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(41, 179, 143, 0.42);
}

.hotspot.bad {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.hotspot-label {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0;
  color: #061214;
  background: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.hotspot-hint {
  display: none;
}

.action-grid,
.zone-grid,
.final-grid {
  display: grid;
  gap: 10px;
}

.evidence-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.evidence-chip {
  min-height: 38px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.evidence-chip.selected {
  color: #071113;
  background: var(--accent);
  border-color: var(--accent);
}

.vault-slot-grid {
  grid-template-columns: 1fr;
}

.vault-slot-button {
  min-height: 58px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  text-align: left;
}

.vault-slot-button span {
  color: var(--soft-on-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.vault-slot-button.filled {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.14);
}

.case-vault-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  min-height: 560px;
  padding: clamp(18px, 2vw, 28px);
  background: #fffdf8;
}

.case-vault-file,
.case-vault-evidence {
  min-width: 0;
  border: 2px solid rgba(25, 23, 20, 0.12);
  border-radius: 24px;
  background: #f4efe7;
  padding: clamp(18px, 2vw, 26px);
}

.case-vault-head {
  margin-bottom: 18px;
}

.case-vault-head strong {
  display: block;
  margin-top: 4px;
  color: #191714;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
}

.case-vault-head p {
  max-width: 52rem;
  margin: 10px 0 0;
  color: #5f574e;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.35;
}

.case-vault-slots {
  display: grid;
  gap: 12px;
}

.case-vault-workbench .vault-slot-button {
  min-height: 88px;
  padding: 16px 18px;
  border-radius: 18px;
  color: #191714;
  background: #fffdf8;
  border-color: #d8d0c4;
}

.case-vault-workbench .vault-slot-button span {
  color: #2abf9c;
  font-size: 13px;
  letter-spacing: 0;
}

.case-vault-workbench .vault-slot-button strong {
  font-size: clamp(20px, 1.8vw, 30px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.case-vault-workbench .vault-slot-button small {
  color: #6f665b;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.case-vault-workbench .vault-slot-button.filled {
  border-color: #2abf9c;
  background: #e8f7ef;
}

.case-vault-evidence .evidence-bank {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 10px;
}

.case-vault-evidence .evidence-chip {
  min-width: 0;
  min-height: 62px;
  display: grid;
  gap: 4px;
  align-content: center;
  justify-content: start;
  padding: 10px 12px;
  color: #191714;
  background: #fffdf8;
  border-color: #d8d0c4;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.case-vault-evidence .evidence-chip b,
.case-vault-evidence .evidence-chip small {
  display: block;
  min-width: 0;
}

.case-vault-evidence .evidence-chip b {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.18;
}

.case-vault-evidence .evidence-chip small {
  color: #6f665b;
  font-size: clamp(12px, 0.95vw, 15px);
  font-weight: 760;
  line-height: 1.2;
}

.case-vault-evidence .evidence-chip.selected {
  color: #071113;
  background: #2abf9c;
  border-color: #2abf9c;
}

.case-vault-evidence .evidence-chip.selected small {
  color: rgba(7, 17, 19, 0.76);
}

.handover-checklist-stage {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(560px, 1.58fr);
  gap: 18px;
  min-height: 560px;
  padding: clamp(18px, 2vw, 28px);
  background: #fffdf8;
}

.handover-brief,
.handover-question-list {
  min-width: 0;
  border: 2px solid rgba(25, 23, 20, 0.12);
  border-radius: 24px;
  background: #f4efe7;
  padding: clamp(18px, 2vw, 26px);
}

.handover-brief {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.handover-brief strong {
  display: block;
  color: #191714;
  max-width: 100%;
  font-size: clamp(28px, 2.35vw, 38px);
  line-height: 1.04;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.handover-brief p {
  margin: 0;
  color: #5f574e;
  font-size: clamp(17px, 1.3vw, 22px);
  line-height: 1.35;
}

.handover-brief > small {
  color: #5f574e;
  font-size: 14px;
  font-weight: 820;
}

.handover-progress {
  height: 12px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 23, 20, 0.11);
}

.handover-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2abf9c, #8ad15d);
}

.handover-question-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  background: #fbf8f2;
}

.handover-question {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid #d8d0c4;
  border-radius: 18px;
  background: #fffdf8;
}

.handover-question.answered {
  border-color: rgba(42, 191, 156, 0.55);
  background: #eefaf4;
}

.handover-question-copy {
  display: grid;
  align-content: center;
  gap: 7px;
}

.handover-question-copy span {
  color: #2abf9c;
  font-size: 13px;
  font-weight: 900;
}

.handover-question-copy strong {
  color: #191714;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.2;
}

.handover-answer-options {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 10px;
}

.handover-answer {
  min-width: 0;
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 2px solid #d8d0c4;
  border-radius: 16px;
  color: #191714;
  background: #fffdf8;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  touch-action: manipulation;
}

.handover-answer b,
.handover-answer small {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.handover-answer b {
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.12;
}

.handover-answer small {
  color: #6f665b;
  font-size: clamp(12px, 0.95vw, 15px);
  font-weight: 760;
  line-height: 1.2;
}

.handover-answer.selected {
  border-color: #2abf9c;
  background: #dff7ee;
  box-shadow: 0 12px 30px rgba(42, 191, 156, 0.13);
}

@media (max-width: 1320px) {
  .handover-checklist-stage {
    grid-template-columns: minmax(220px, 0.36fr) minmax(560px, 1.64fr);
  }

  .handover-question {
    grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  }
}

@media (max-width: 1080px) {
  .handover-checklist-stage,
  .handover-question {
    grid-template-columns: 1fr;
  }

  .handover-answer-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .case-vault-workbench {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-tile {
  min-height: 92px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.14);
}

.action-tile.selected {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.14);
}

.phone-window {
  inset: 150px auto 38px 58px;
  width: min(300px, 42%);
  border-radius: 28px;
  padding: 26px 18px;
  display: grid;
  align-content: center;
  gap: 18px;
  text-align: center;
}

.call-stage {
  inset: 94px auto auto 58px;
  width: min(300px, 38%);
  padding: 22px 18px;
  gap: 14px;
}

.phone-alert {
  border-radius: 16px;
  padding: 18px;
  background: #edf6f5;
  border: 1px solid var(--line);
}

.phone-alert.urgent {
  display: grid;
  gap: 8px;
  color: #132529;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.phone-alert.urgent strong {
  color: #0f2024;
  font-size: 34px;
  line-height: 1;
}

.call-stage .phone-alert.urgent strong {
  font-size: 28px;
}

.call-stage .phone-alert.urgent p {
  font-size: 15px;
  line-height: 1.35;
}

.phone-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.phone-choice-row span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 950;
}

.phone-choice-row .deny {
  color: #ffffff;
  background: #29424a;
}

.phone-choice-row .allow {
  color: #102327;
  background: #eef4f2;
  border: 1px solid #cbd8d8;
}

.mfa-stage,
.call-desk-stage,
.share-settings-stage {
  position: absolute;
  inset: 52px;
  display: grid;
  gap: 18px;
  align-items: center;
  color: var(--text-on-dark);
}

.mfa-stage {
  inset: 20px 34px;
  grid-template-columns: minmax(250px, 330px) minmax(260px, 1fr);
  align-items: center;
  overflow: hidden;
}

.mfa-phone,
.call-phone-card {
  border-radius: 30px;
  padding: 18px;
  background: #f7fbfa;
  color: #102327;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.mfa-phone {
  width: min(100%, 318px);
  justify-self: center;
  border: 7px solid #121a1d;
  border-radius: 30px;
  background: #0d1518;
  padding: 7px;
}

.mfa-device-top {
  min-height: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 4px;
  color: #eef7f6;
  font-size: 11px;
  font-weight: 900;
}

.mfa-device-top span:last-child {
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.mfa-screen,
.call-screen {
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid #d1dcda;
  border-radius: 18px;
  padding: 24px 18px;
  background: #ffffff;
  text-align: center;
}

.mfa-screen {
  justify-items: stretch;
  gap: 6px;
  border: 0;
  border-radius: 18px;
  padding: 12px;
  background: #f4f7f7;
  text-align: left;
}

.mfa-screen strong,
.call-screen strong {
  color: #102327;
  font-size: 34px;
  line-height: 1;
}

.mfa-app-header {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: center;
}

.mfa-app-header strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.15;
}

.mfa-app-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: #2266d8;
}

.mfa-app-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mfa-request-box {
  display: grid;
  gap: 2px;
  border: 1px solid #d7e0df;
  border-radius: 12px;
  padding: 8px;
  background: #ffffff;
}

.mfa-request-box strong {
  font-size: 14px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.mfa-screen p,
.call-screen p,
.share-file-card p {
  margin: 0;
  color: #35464b;
  line-height: 1.28;
}

.mfa-request-meta {
  display: grid;
  gap: 3px;
}

.mfa-request-meta span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #dce5e3;
  padding-bottom: 3px;
  color: #52656a;
  font-size: 11px;
}

.mfa-request-meta b {
  color: #1d3035;
}

.mfa-number {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border-radius: 12px;
  padding: 8px 10px;
  background: #e8f0ff;
  color: #24406b;
}

.mfa-number span {
  font-weight: 850;
}

.mfa-number strong {
  min-width: 44px;
  text-align: center;
  border-radius: 9px;
  padding: 6px 8px;
  color: #ffffff;
  background: #2266d8;
  font-size: 22px;
  line-height: 1;
}

.mfa-question {
  text-align: center;
  font-size: 11px;
  font-weight: 850;
}

.mfa-phone-actions,
.call-buttons,
.share-setting-row > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.mfa-side-actions,
.call-notes,
.share-settings-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(8, 20, 24, 0.78);
}

.mfa-side-actions.waiting {
  align-content: center;
  opacity: 0.92;
}

.mfa-wait-card {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.055);
}

.mfa-wait-card strong {
  font-size: 18px;
}

.mfa-wait-card p {
  margin: 0;
  color: var(--soft-on-dark);
  line-height: 1.35;
}

.stage-action-button {
  min-height: 62px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  text-align: left;
  line-height: 1.12;
}

.stage-action-button.selected {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.18);
  box-shadow: inset 0 0 0 1px rgba(41, 179, 143, 0.42);
}

.mfa-phone-actions .stage-action-button,
.call-buttons .stage-action-button,
.reset-buttons .stage-action-button {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 42px;
  padding: 7px 8px;
  color: #102327;
  background: #eef4f2;
  border-color: #cbd8d8;
  text-align: center;
}

.mfa-phone-actions .stage-action-button .action-icon,
.call-buttons .stage-action-button .action-icon,
.reset-buttons .stage-action-button .action-icon {
  display: none;
}

.mfa-phone-actions .stage-action-button.selected,
.call-buttons .stage-action-button.selected,
.reset-buttons .stage-action-button.selected {
  background: #daf4eb;
}

.call-desk-stage {
  grid-template-columns: minmax(280px, 370px) minmax(260px, 1fr);
}

.call-screen img {
  width: 86px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.call-notes {
  align-content: center;
}

.call-choice-wheel,
.qr-ring,
.usb-drop-ring {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  place-self: center;
  border: 1px solid rgba(80, 166, 5, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(80, 166, 5, 0.18) 0 24%, transparent 25%),
    conic-gradient(from -45deg, rgba(80, 166, 5, 0.2), rgba(255, 255, 255, 0.05), rgba(217, 146, 40, 0.18), rgba(255, 255, 255, 0.05), rgba(80, 166, 5, 0.2));
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.035), 0 22px 60px rgba(0, 0, 0, 0.28);
}

.call-choice-wheel::before,
.qr-ring::before,
.usb-drop-ring::before {
  content: "WÄHLEN";
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  color: var(--soft-on-dark);
  background: rgba(8, 20, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.ring-action {
  position: absolute;
  width: 82px;
  height: 82px;
  min-height: 82px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 999px;
  padding: 8px;
  color: var(--text-on-dark);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  text-align: center;
  line-height: 1.05;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.18), 0 14px 36px rgba(0, 0, 0, 0.24);
}

.ring-action .action-icon {
  width: 25px;
  height: 25px;
}

.ring-action strong {
  max-width: 66px;
  overflow: hidden;
  color: var(--text-on-dark);
  font-size: 12px;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.ring-action.ring-oben {
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
}

.ring-action.ring-rechts {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.ring-action.ring-unten {
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
}

.ring-action.ring-links {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.ring-action.selected {
  border-color: var(--accent);
  color: #0f1c10;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.34), transparent 34%),
    var(--accent);
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.14), 0 0 0 8px rgba(80, 166, 5, 0.14);
}

.ring-action.selected strong,
.ring-action.selected .action-icon {
  color: #0f1c10;
}

.share-dialog-engine {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(18px, 3vw, 34px);
  min-height: 540px;
  color: #191714;
}

.share-dialog-preview,
.share-dialog-controls {
  min-width: 0;
}

.share-dialog-preview {
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  gap: 16px;
}

.share-dialog-file,
.share-dialog-summary,
.share-control-card {
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.share-dialog-file {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 30px);
  background: #243232;
  color: #fffdf8;
}

.share-dialog-file svg {
  width: 52px;
  height: 52px;
  color: var(--accent);
}

.share-dialog-file strong {
  font-size: clamp(28px, 3.1vw, 48px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.share-dialog-file p,
.share-dialog-summary p,
.share-option small {
  color: #625d55;
  line-height: 1.35;
}

.share-dialog-file p {
  color: rgba(255, 253, 248, 0.78);
}

.share-dialog-summary {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-left: 6px solid rgba(25, 23, 20, 0.18);
}

.share-dialog-summary strong {
  font-size: clamp(20px, 2vw, 28px);
}

.share-dialog-summary.complete {
  border-left-color: var(--accent);
  background: #f3faec;
}

.share-dialog-controls {
  display: grid;
  gap: 16px;
}

.share-control-card {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
}

.share-control-card header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  align-items: end;
}

.share-control-card header strong {
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.06;
}

.share-control-card.safe {
  border-color: rgba(80, 166, 5, 0.52);
  background: #f3faec;
}

.share-control-card.risky {
  border-color: rgba(208, 74, 58, 0.45);
  background: #fff5f2;
}

.share-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.share-option {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 7px;
  text-align: left;
  border-radius: 18px;
  padding: 14px;
  background: #ffffff;
  color: #191714;
  border-color: rgba(25, 23, 20, 0.14);
}

.share-option:hover {
  transform: translateY(-1px);
  border-color: rgba(80, 166, 5, 0.42);
}

.share-option b {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.12;
}

.share-option.selected.safe {
  background: #dff0cf;
  border-color: rgba(80, 166, 5, 0.78);
  box-shadow: 0 0 0 4px rgba(80, 166, 5, 0.14);
}

.share-option.selected.risky {
  background: #ffe2dc;
  border-color: rgba(208, 74, 58, 0.7);
  box-shadow: 0 0 0 4px rgba(208, 74, 58, 0.12);
}

@media (max-width: 980px) {
  .share-dialog-engine {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .share-dialog-preview {
    grid-template-rows: auto;
  }

  .share-option-grid {
    grid-template-columns: 1fr;
  }
}

.qr-stage,
.reset-stage,
.usb-stage,
.report-kit-stage,
.ai-tool-stage,
.printer-stage {
  position: absolute;
  inset: 34px;
  display: grid;
  gap: 18px;
  color: var(--text-on-dark);
}

.qr-stage,
.reset-stage,
.usb-stage {
  grid-template-columns: minmax(260px, 360px) minmax(320px, 1fr);
  align-items: center;
}

.qr-scanner-scene,
.reset-terminal,
.qr-poster,
.reset-mail-card,
.usb-desk-card,
.qr-action-panel,
.reset-action-panel,
.usb-action-panel,
.report-kit-source,
.report-bins,
.ai-prompt-panel,
.ai-card-bank,
.ai-zone-grid,
.printer-machine,
.printer-side-table {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(8, 20, 24, 0.82);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.3);
}

.qr-scanner-scene,
.reset-terminal {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.7fr);
  gap: 14px;
  align-items: center;
  min-height: 420px;
  background:
    radial-gradient(circle at 72% 34%, rgba(41, 179, 143, 0.18), transparent 24%),
    rgba(8, 20, 24, 0.82);
}

.qr-poster,
.reset-mail-card,
.usb-desk-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 420px;
  color: #102327;
  background: linear-gradient(180deg, #ffffff, #eef5f3);
  text-align: center;
}

.qr-scanner-scene .qr-poster,
.reset-terminal .reset-mail-card {
  min-height: 360px;
  box-shadow: none;
}

.scanner-phone {
  display: grid;
  gap: 12px;
  justify-items: center;
  border: 6px solid #0d1518;
  border-radius: 26px;
  padding: 16px 12px;
  color: #102327;
  background: #f8fbfb;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.scanner-frame {
  width: 112px;
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
  border: 2px solid #d1dada;
  border-radius: 16px;
  background:
    linear-gradient(transparent 49%, rgba(41, 179, 143, 0.55) 50%, transparent 51%),
    #edf4f2;
}

.scanner-frame span {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #2266d8;
}

.scanner-frame span:nth-child(1) { left: 10px; top: 10px; border-left: 3px solid; border-top: 3px solid; }
.scanner-frame span:nth-child(2) { right: 10px; top: 10px; border-right: 3px solid; border-top: 3px solid; }
.scanner-frame span:nth-child(3) { left: 10px; bottom: 10px; border-left: 3px solid; border-bottom: 3px solid; }
.scanner-frame span:nth-child(4) { right: 10px; bottom: 10px; border-right: 3px solid; border-bottom: 3px solid; }

.scanner-frame b {
  color: #2266d8;
  font-size: 14px;
}

.scanner-url {
  width: 100%;
  border-radius: 999px;
  padding: 8px 10px;
  color: #51646a;
  background: #e8eeee;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.qr-poster strong,
.reset-mail-card strong,
.usb-desk-card strong {
  color: #102327;
  font-size: 30px;
  line-height: 1.05;
}

.qr-poster p,
.reset-mail-card p,
.usb-desk-card p {
  margin: 0;
  color: #42565c;
  line-height: 1.35;
}

.qr-code {
  width: 180px;
  height: 180px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 8px;
  border: 10px solid #ffffff;
  border-radius: 12px;
  background: #102327;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.qr-code span,
.qr-code i {
  border-radius: 4px;
  background: #ffffff;
}

.qr-code span:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
.qr-code span:nth-child(2) { grid-area: 1 / 4 / 3 / 6; }
.qr-code span:nth-child(3) { grid-area: 4 / 1 / 6 / 3; }
.qr-code span:nth-child(4) { grid-area: 4 / 4 / 6 / 6; }

.qr-action-panel,
.reset-action-panel,
.usb-action-panel {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 12px;
}

.qr-action-panel .stage-action-button,
.reset-action-panel .stage-action-button,
.usb-action-panel .stage-action-button {
  min-height: 86px;
  border-radius: 10px;
}

.qr-action-panel .stage-action-button::after,
.reset-action-panel .stage-action-button::after,
.usb-action-panel .stage-action-button::after {
  content: "";
  grid-column: 1 / -1;
  width: 42px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.qr-action-panel .stage-action-button.selected::after,
.reset-action-panel .stage-action-button.selected::after,
.usb-action-panel .stage-action-button.selected::after {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(41, 179, 143, 0.55);
}

.qr-action-panel .mini-label,
.reset-action-panel .mini-label,
.usb-action-panel .mini-label {
  grid-column: 1 / -1;
}

.qr-small-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.qr-small-actions .stage-action-button {
  width: 92px;
  height: 92px;
  min-height: 92px;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  border-radius: 999px;
  padding: 10px;
  text-align: center;
}

.qr-small-actions .stage-action-button .action-icon {
  width: 26px;
  height: 26px;
}

.reset-switchboard {
  display: grid;
  gap: 10px;
}

.switch-action {
  min-height: 58px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 0;
  border-radius: 0;
  color: var(--text-on-dark);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.switch-action .action-icon {
  display: none;
}

.switch-track {
  position: relative;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.switch-track i {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #f4efe7;
  transition: left 0.16s ease, background 0.16s ease;
}

.switch-action.selected {
  background: transparent;
}

.switch-action.selected .switch-track {
  background: rgba(80, 166, 5, 0.45);
}

.switch-action.selected .switch-track i {
  left: 40px;
  background: var(--accent);
}

.reset-link,
.ai-input-box {
  width: 100%;
  border: 1px solid #d6e0df;
  border-radius: 10px;
  padding: 12px;
  color: #183035;
  background: #ffffff;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.reset-buttons {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.reset-route {
  display: grid;
  gap: 12px;
}

.reset-route .stage-action-button {
  min-height: 92px;
  color: #102327;
  background: #eef4f2;
  border-color: #cbd8d8;
}

.reset-route .stage-action-button.selected {
  background: #daf4eb;
}

.usb-stick {
  width: 146px;
  height: 74px;
  position: relative;
  border-radius: 16px 7px 7px 16px;
  background: linear-gradient(135deg, #233940, #0d171a);
  box-shadow: inset -18px 0 rgba(255, 255, 255, 0.08), 0 18px 36px rgba(0, 0, 0, 0.26);
}

.usb-stick::after {
  content: "";
  position: absolute;
  right: -38px;
  top: 16px;
  width: 40px;
  height: 42px;
  border-radius: 0 6px 6px 0;
  background: #b7c4c4;
}

.usb-table-lines {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}

.usb-table-lines span {
  border-radius: 999px;
  padding: 7px 8px;
  color: #30464b;
  background: #e7eeee;
  font-size: 11px;
  font-weight: 900;
}

.report-kit-stage {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
  align-items: stretch;
}

.report-kit-source,
.ai-card-bank {
  display: grid;
  gap: 12px;
  align-content: start;
}

.case-board-head {
  display: grid;
  gap: 5px;
}

.case-board-head strong {
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1;
}

.case-board-head p {
  margin: 0;
  color: var(--soft-on-dark);
  font-size: clamp(15px, 1.1vw, 19px);
  line-height: 1.25;
}

.case-thread-map {
  position: relative;
  min-height: 48px;
  border-radius: 12px;
  background:
    linear-gradient(24deg, transparent 48%, rgba(41, 179, 143, 0.42) 49%, rgba(41, 179, 143, 0.42) 51%, transparent 52%),
    linear-gradient(150deg, transparent 48%, rgba(217, 146, 40, 0.32) 49%, rgba(217, 146, 40, 0.32) 51%, transparent 52%),
    rgba(255, 255, 255, 0.055);
}

.case-thread-map span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(41, 179, 143, 0.14);
}

.case-thread-map span:nth-child(1) { left: 12%; top: 18px; }
.case-thread-map span:nth-child(2) { left: 38%; bottom: 14px; }
.case-thread-map span:nth-child(3) { right: 32%; top: 16px; }
.case-thread-map span:nth-child(4) { right: 12%; bottom: 16px; }

.report-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.ai-card-bank {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-item-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px 12px;
  align-content: center;
  align-items: center;
  border-radius: 18px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.14);
  text-align: left;
}

.ai-card-bank .report-item-card {
  border-radius: 999px;
  min-height: 70px;
}

.report-item-card svg {
  grid-row: span 2;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.report-item-card strong {
  min-width: 0;
  max-width: 100%;
  color: var(--text-on-dark);
  font-size: clamp(18px, 1.05vw, 23px);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.report-item-card span {
  min-width: 0;
  color: var(--soft-on-dark);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: normal;
  word-break: normal;
}

.report-empty {
  grid-column: 1 / -1;
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(41, 179, 143, 0.36);
  border-radius: 18px;
  background: rgba(41, 179, 143, 0.12);
  color: var(--text-on-dark);
}

.report-empty strong {
  font-size: 22px;
}

.report-empty span {
  color: var(--soft-on-dark);
  font-weight: 800;
}

.report-item-card.selected,
.report-item-card.assigned {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.14);
}

.report-bins,
.ai-zone-grid {
  display: grid;
  gap: 12px;
}

.report-bin {
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--text-on-dark);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
}

.report-bin span {
  color: var(--soft-on-dark);
  font-size: 12px;
  font-weight: 800;
}

.report-bin .key-chip {
  max-width: 100%;
  color: #061214;
  font-size: clamp(13px, 0.85vw, 17px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.ai-tool-stage {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "prompt zones"
    "cards zones";
  align-items: stretch;
}

.ai-prompt-panel {
  grid-area: prompt;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 220px;
}

.ai-filter-lights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ai-filter-lights span {
  min-height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.ai-filter-lights span:nth-child(1) { background: rgba(41, 179, 143, 0.75); }
.ai-filter-lights span:nth-child(2) { background: rgba(217, 146, 40, 0.75); }
.ai-filter-lights span:nth-child(3) { background: rgba(208, 74, 58, 0.65); }

.ai-prompt-panel strong {
  font-size: 28px;
}

.ai-card-bank {
  grid-area: cards;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  align-content: start;
}

.ai-card-bank .report-item-card {
  min-height: 82px;
  border-radius: 18px;
  grid-template-columns: 28px minmax(0, 1fr);
}

.ai-card-bank .report-item-card strong {
  font-size: clamp(15px, 0.92vw, 18px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.ai-card-bank .report-item-card span {
  font-size: 11px;
  line-height: 1.1;
}

.ai-zone-grid {
  grid-area: zones;
  align-content: start;
}

.ai-zone-grid .report-bin {
  min-height: 150px;
}

.ai-redaction-stage {
  position: relative;
  width: calc(100% - 56px);
  max-width: calc(100% - 56px);
  max-height: calc(100% - 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 22px;
  color: var(--ink);
}

.redaction-desk,
.redaction-preview {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(216, 208, 196, 0.76);
  border-radius: 30px;
  background: rgba(251, 248, 242, 0.92);
  box-shadow: 0 24px 60px rgba(25, 23, 20, 0.14);
}

.redaction-desk > strong {
  font-size: clamp(34px, 3vw, 54px);
  line-height: 0.95;
}

.redaction-desk > p,
.redaction-preview > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.22vw, 24px);
  font-weight: 760;
  line-height: 1.28;
}

.redaction-paper {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(rgba(25, 23, 20, 0.035) 1px, transparent 1px),
    #fffdf8;
  background-size: 100% 38px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78), 0 18px 36px rgba(25, 23, 20, 0.1);
}

.redaction-paper-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.redaction-paper-top b {
  padding: 6px 10px;
  border-radius: 999px;
  color: #12340a;
  background: rgba(80, 166, 5, 0.14);
}

.redaction-text {
  margin: 0;
  color: var(--ink);
  font-size: clamp(23px, 1.65vw, 33px);
  font-weight: 760;
  line-height: 1.7;
}

.redaction-token {
  display: inline;
  min-height: 44px;
  margin: 4px 3px;
  padding: 5px 9px 7px;
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(25, 23, 20, 0.05);
  font: inherit;
  line-height: 1.15;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.redaction-token:hover,
.redaction-token:focus-visible {
  border-color: rgba(80, 166, 5, 0.38);
  background: rgba(80, 166, 5, 0.09);
}

.redaction-token.redacted {
  color: #fffdf8;
  background: #191714;
  border-color: #191714;
  letter-spacing: 0;
  box-shadow: 0 5px 0 rgba(80, 166, 5, 0.42);
  transform: translateY(-1px);
}

.redaction-preview {
  background: rgba(17, 28, 27, 0.92);
  color: #fffdf8;
}

.redaction-preview .mini-label {
  color: rgba(255, 253, 248, 0.58);
}

.ai-chat-window {
  display: grid;
  gap: 18px;
  min-height: 310px;
  padding: 22px;
  border-radius: 24px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.ai-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.ai-chat-head span {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(80, 166, 5, 0.86), rgba(80, 166, 5, 0.42)),
    var(--accent);
}

.ai-chat-window p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(19px, 1.25vw, 25px);
  font-weight: 740;
  line-height: 1.48;
}

.redaction-meter {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(80, 166, 5, 0.36);
  border-radius: 22px;
  background: rgba(80, 166, 5, 0.08);
}

.redaction-meter span {
  color: rgba(255, 253, 248, 0.76);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.redaction-meter div {
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.18);
  overflow: hidden;
}

.redaction-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.18s ease;
}

.printer-stage {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  align-items: end;
  padding-top: 190px;
}

.printer-machine {
  display: grid;
  gap: 16px;
  min-height: 330px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 20, 24, 0.86);
}

.printer-display {
  display: grid;
  justify-items: start;
  gap: 4px;
  border-radius: 10px;
  padding: 14px;
  color: #11272c;
  background: #dfecea;
}

.printer-display strong {
  font-size: 24px;
}

.printer-tray,
.printer-side-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(104px, 1fr));
  gap: 12px;
}

.printer-side-table {
  grid-template-columns: 1fr;
  align-content: center;
}

.post-office-stage {
  position: absolute;
  inset: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 18px;
  color: var(--text-on-dark);
}

.post-conveyor,
.post-bins {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(8, 20, 24, 0.8);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.28);
}

.post-conveyor {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px;
}

.post-conveyor > strong {
  font-size: 24px;
}

.post-conveyor p {
  margin: 0;
  color: var(--soft-on-dark);
}

.package-belt {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
  margin-top: 10px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 28%, rgba(217, 146, 40, 0.14), transparent 22%),
    linear-gradient(135deg, rgba(116, 76, 42, 0.28), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.package-card,
.post-bin,
.plan-card,
.plan-zone {
  text-align: left;
}

.package-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px 10px;
  align-items: center;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  cursor: grab;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.package-card:nth-child(2n) {
  transform: rotate(1.5deg);
}

.package-card:nth-child(3n) {
  transform: rotate(-1.2deg);
}

.package-card svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.package-card strong {
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.package-card span {
  grid-column: 2;
  color: var(--soft-on-dark);
  font-size: 12px;
  font-weight: 850;
}

.package-card.selected {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.18);
}

.package-card.sorted {
  opacity: 0.72;
}

[draggable="true"] {
  user-select: none;
}

.dragging {
  opacity: 0.54;
  cursor: grabbing !important;
}

.drop-target {
  border-color: var(--accent) !important;
  background:
    linear-gradient(135deg, rgba(41, 179, 143, 0.22), rgba(255, 255, 255, 0.05)) !important;
  box-shadow: inset 0 0 0 2px rgba(41, 179, 143, 0.35), 0 18px 42px rgba(41, 179, 143, 0.16);
}

.post-bins {
  display: grid;
  gap: 12px;
}

.post-bin {
  min-height: 112px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 5px 10px;
  align-content: start;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
}

.post-bin svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.post-bin span,
.post-bin div {
  grid-column: 2;
  color: var(--soft-on-dark);
  font-size: 12px;
}

.post-bin .key-chip {
  margin-top: 6px;
  color: #061214;
}

.juicy-stage {
  position: absolute;
  inset: 34px;
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(360px, 0.9fr);
  gap: 18px;
  color: var(--text-on-dark);
}

.juicy-counter,
.juicy-baskets {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  background:
    radial-gradient(circle at 20% 12%, rgba(124, 220, 147, 0.14), transparent 30%),
    rgba(8, 20, 24, 0.82);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.28);
}

.juicy-counter {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px;
}

.juicy-counter > strong {
  font-size: 28px;
}

.juicy-counter p,
.juicy-basket small,
.juicy-fruit small {
  margin: 0;
  color: var(--soft-on-dark);
}

.juicy-fruit-bank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  margin-top: 10px;
}

.juicy-fruit {
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  text-align: left;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  cursor: grab;
}

.juicy-fruit.selected {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.18);
}

.juicy-fruit.sorted {
  opacity: 0.72;
}

.fruit-dot {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #081418;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.1), 0 12px 22px rgba(0, 0, 0, 0.24);
}

.fruit-dot svg {
  width: 22px;
  height: 22px;
}

.fruit-public {
  background: linear-gradient(145deg, #b6f5c7, #69c982);
}

.fruit-internal {
  background: linear-gradient(145deg, #ffe58f, #e7b94f);
}

.fruit-confidential {
  background: linear-gradient(145deg, #ffb27f, #d87748);
}

.fruit-secret {
  background: linear-gradient(145deg, #ff8e8e, #b64b62);
}

.juicy-file-name {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
  overflow-wrap: anywhere;
  line-height: 1.12;
}

.juicy-file-name em {
  font-style: normal;
  color: #b9fff1;
}

.juicy-fruit small {
  grid-column: 2;
  font-size: 12px;
  font-weight: 850;
}

.juicy-baskets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.juicy-basket {
  min-height: 160px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  justify-items: start;
  align-content: start;
  gap: 6px;
  text-align: left;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.075);
}

.fruit-basket-icon {
  width: 34px;
  height: 22px;
  display: block;
  border-radius: 8px 8px 14px 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12);
}

.basket-public {
  box-shadow: inset 0 0 0 1px rgba(134, 237, 162, 0.2);
}

.basket-internal {
  box-shadow: inset 0 0 0 1px rgba(242, 205, 105, 0.22);
}

.basket-confidential {
  box-shadow: inset 0 0 0 1px rgba(255, 154, 101, 0.22);
}

.basket-secret {
  box-shadow: inset 0 0 0 1px rgba(255, 126, 142, 0.22);
}

.juicy-basket div {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.juicy-basket .key-chip {
  margin-top: 6px;
  max-width: 100%;
  color: #061214;
  overflow-wrap: anywhere;
}

/* Dokumentenklassifizierung: active mini-game layer, not a static sorting board. */
.juicy-stage {
  inset: 24px;
  display: block;
}

.juicy-game-field {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 560px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 50% 26%, rgba(119, 236, 191, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(10, 21, 25, 0.82), rgba(6, 11, 12, 0.92));
}

.juice-meter {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 18px;
  width: min(360px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 20, 22, 0.78);
}

.juice-meter strong {
  display: block;
  font-size: 36px;
  line-height: 1;
}

.juice-meter p {
  margin: 6px 0 0;
  color: var(--soft-on-dark);
  line-height: 1.25;
}

.fruit-orchard {
  position: absolute;
  inset: 0 0 170px;
  overflow: hidden;
}

.fruit-orchard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.25;
}

.catch-line {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  height: 44px;
  border-radius: 999px;
  border: 1px dashed rgba(185, 255, 241, 0.42);
  background: linear-gradient(90deg, transparent, rgba(41, 179, 143, 0.16), transparent);
}

.catch-line span {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(232, 255, 250, 0.72);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.juicy-fruit {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: -88px;
  width: min(190px, 26%);
  min-height: 96px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 24px 24px 26px 18px;
  color: #0d181a;
  border: 2px solid rgba(255, 255, 255, 0.74);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(221, 244, 239, 0.92));
  box-shadow: 0 24px 36px rgba(0, 0, 0, 0.28), inset 0 -10px 0 rgba(0, 0, 0, 0.05);
  cursor: grab;
  animation:
    juicyFall var(--speed, 10s) linear infinite,
    juicyFloat 1.9s ease-in-out infinite;
  animation-delay: var(--delay, 0s), 0s;
}

.juicy-fruit:nth-of-type(2n) {
  border-radius: 28px 18px 28px 24px;
}

.juicy-fruit:nth-of-type(3n) {
  border-radius: 20px 30px 22px 30px;
}

.juicy-fruit.selected {
  z-index: 5;
  border-color: #9effdf;
  box-shadow: 0 0 0 6px rgba(41, 179, 143, 0.22), 0 32px 44px rgba(0, 0, 0, 0.36);
  transform: scale(1.05);
}

.juicy-fruit.sorted {
  display: none;
}

.juicy-complete-panel {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 186px;
  width: min(460px, calc(100% - 36px));
  display: grid;
  gap: 10px;
  transform: translateX(-50%);
  border: 2px solid rgba(80, 166, 5, 0.48);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.juicy-complete-panel strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.juicy-complete-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.juicy-complete-panel .primary {
  width: 100%;
  min-height: 52px;
  color: #ffffff;
  background: var(--ink);
}

.fruit-shape {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 50% 52% 46% 54%;
  background: linear-gradient(145deg, #b6f5c7, #69c982);
  box-shadow: inset -9px -10px 0 rgba(0, 0, 0, 0.1), inset 8px 8px 0 rgba(255, 255, 255, 0.36);
}

.fruit-shape i {
  width: 10px;
  height: 18px;
  display: block;
  border-radius: 12px 0 12px 0;
  background: rgba(11, 73, 55, 0.72);
  transform: translate(10px, -18px) rotate(28deg);
}

.fruit-skin-lime .fruit-shape { background: linear-gradient(145deg, #cdfa73, #6fc84e); }
.fruit-skin-pear .fruit-shape { background: linear-gradient(145deg, #f3f29a, #98ca53); }
.fruit-skin-melon .fruit-shape { background: linear-gradient(145deg, #9af5c8, #48b897); }
.fruit-skin-peach .fruit-shape { background: linear-gradient(145deg, #ffd08e, #e98156); }
.fruit-skin-berry .fruit-shape { background: linear-gradient(145deg, #ff9aac, #c55274); }
.fruit-skin-plum .fruit-shape { background: linear-gradient(145deg, #caa5ff, #7755b7); }

.juicy-file-name {
  color: #132225;
}

.juicy-file-name em {
  color: #175d69;
  font-weight: 950;
}

.juicy-fruit small {
  color: #425457;
}

.juicy-baskets {
  position: absolute;
  z-index: 6;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.juicy-basket {
  min-height: 142px;
  padding: 12px;
  border-radius: 20px 20px 28px 28px;
  color: var(--text-on-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
    rgba(8, 20, 24, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 -16px 0 rgba(0, 0, 0, 0.16);
}

.juicy-basket.drop-target {
  transform: translateY(-8px);
}

.fruit-basket-icon {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.basket-public { border-color: rgba(134, 237, 162, 0.7); }
.basket-internal { border-color: rgba(242, 205, 105, 0.7); }
.basket-confidential { border-color: rgba(255, 154, 101, 0.74); }
.basket-secret { border-color: rgba(255, 126, 142, 0.78); }

.juicy-basket div {
  align-content: start;
  max-height: 58px;
  overflow: auto;
}

.basket-empty {
  color: rgba(232, 255, 250, 0.45);
  font-weight: 800;
}

.basket-file {
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  color: #0d181a;
  background: #dff9ef;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.05;
}

.basket-file b,
.basket-file em {
  font-style: normal;
  min-width: 0;
}

.basket-file b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.basket-file em {
  display: inline-flex;
  justify-content: center;
  min-width: 34px;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(13, 24, 26, 0.12);
}

@keyframes juicyFall {
  0% { top: -92px; }
  100% { top: calc(100% + 44px); }
}

@keyframes juicyFloat {
  0%, 100% { margin-left: -12px; }
  50% { margin-left: 14px; }
}

.compact-action-console .console-screen p {
  margin: 0;
  color: var(--soft-on-dark);
  line-height: 1.35;
}

.incident-brief-card {
  color: var(--text-on-dark);
  background:
    linear-gradient(145deg, rgba(8, 20, 24, 0.96), rgba(31, 53, 58, 0.92)),
    rgba(8, 20, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.incident-brief-card strong {
  display: block;
  margin: 8px 0;
  color: var(--text-on-dark);
  font-size: 26px;
}

.incident-brief-card p {
  color: var(--soft-on-dark);
}

.support-card {
  position: absolute;
  right: 48px;
  top: 168px;
  width: min(390px, 46%);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.containment-console {
  position: absolute;
  inset: 150px 48px 48px;
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 18px;
  align-items: stretch;
}

.console-core {
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(8, 20, 24, 0.86);
}

.console-core strong {
  color: var(--danger);
  font-size: 38px;
  text-transform: uppercase;
}

.console-core p {
  margin: 0;
  color: var(--soft-on-dark);
  line-height: 1.45;
}

.containment-rails {
  display: grid;
  gap: 12px;
  align-content: center;
}

.containment-rails span {
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(208, 74, 58, 0.76), rgba(41, 179, 143, 0.1));
  box-shadow: 0 0 28px rgba(208, 74, 58, 0.18);
}

.data-containment .console-core strong {
  color: var(--warn);
}

.share-console {
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
}

.share-preview {
  display: grid;
  gap: 14px;
  align-content: center;
}

.share-preview span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 14px;
  color: var(--text-on-dark);
  background: rgba(208, 74, 58, 0.12);
  border: 1px solid rgba(208, 74, 58, 0.42);
  font-weight: 950;
}

.sequence-board {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(210px, 1fr) auto;
  gap: 18px;
  padding: 128px 22px 22px;
}

.incident-board-stage {
  position: absolute;
  inset: 26px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  color: var(--text-on-dark);
}

.incident-board-stage.no-evidence {
  grid-template-rows: minmax(0, 1fr);
}

.case-evidence-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
}

.case-evidence-token {
  min-height: 52px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft-on-dark);
}

.case-evidence-token.secured {
  border-color: rgba(41, 179, 143, 0.45);
  background: rgba(41, 179, 143, 0.12);
  color: var(--text-on-dark);
}

.case-evidence-token span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 950;
}

.case-evidence-token.secured span {
  color: #061214;
  background: var(--accent);
}

.case-evidence-token strong {
  font-size: 12px;
  line-height: 1.2;
}

.incident-plan-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 14px;
  min-height: 0;
}

.plan-card-bank,
.plan-zones {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(8, 20, 24, 0.82);
  overflow: auto;
}

.plan-card-bank {
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.plan-card-bank .mini-label {
  grid-column: 1 / -1;
}

.plan-card {
  min-width: 0;
  min-height: 106px;
  display: grid;
  gap: 7px;
  align-content: start;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
}

.plan-card small,
.plan-zone small {
  color: var(--soft-on-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.32;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.plan-card strong,
.plan-zone strong {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.plan-card.selected {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.18);
}

.plan-card.used {
  opacity: 0.58;
}

.plan-zones {
  grid-template-columns: 1fr;
}

.plan-zone {
  min-height: 112px;
  display: grid;
  gap: 6px;
  align-content: start;
  color: var(--text-on-dark);
  background:
    linear-gradient(90deg, rgba(41, 179, 143, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.055);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.24);
}

.plan-zone span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.plan-zone-index {
  min-width: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(41, 179, 143, 0.45);
  border-radius: 999px;
  color: var(--text-on-dark);
  background: rgba(41, 179, 143, 0.14);
  font-style: normal;
  font-size: 12px;
  line-height: 1;
}

.plan-zone.filled {
  border-style: solid;
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.14);
}

.mission-log-review-stage {
  position: absolute;
  inset: 26px;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  gap: 16px;
  color: var(--text-on-dark);
}

.mission-log-brief,
.mission-log-ledger {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 20, 24, 0.84);
}

.mission-log-brief {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 22px;
  background:
    radial-gradient(circle at 80% 10%, rgba(41, 179, 143, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(8, 20, 24, 0.86);
}

.mission-log-brief > strong {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.mission-log-brief p {
  max-width: 46ch;
  color: var(--soft-on-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.mission-log-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.mission-log-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #e7c863);
}

.mission-log-stats {
  display: grid;
  gap: 10px;
}

.mission-log-stats b {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.055);
  font-size: 14px;
}

.mission-log-ledger {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  overflow: auto;
}

.mission-log-entry {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) minmax(172px, 0.32fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
}

.mission-log-entry.is-approve {
  border-color: rgba(41, 179, 143, 0.48);
  background: rgba(41, 179, 143, 0.12);
}

.mission-log-entry.is-reject {
  border-color: rgba(223, 117, 55, 0.48);
  background: rgba(223, 117, 55, 0.12);
}

.mission-log-time {
  display: grid;
  gap: 7px;
}

.mission-log-time span {
  color: var(--text-on-dark);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.mission-log-time b {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.mission-log-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mission-log-copy strong {
  color: var(--text-on-dark);
  font-size: 20px;
  line-height: 1.1;
}

.mission-log-copy p {
  color: var(--soft-on-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.mission-log-decision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mission-log-decision button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 8px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.05;
}

.mission-log-decision button.selected {
  color: #061214;
  border-color: transparent;
  background: var(--accent);
}

.mission-log-entry.is-reject .mission-log-decision button.selected {
  color: #fffaf3;
  background: #df7537;
}

@media (max-width: 980px) {
  .mission-log-review-stage {
    position: static;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .mission-log-entry {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .mission-log-time {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
  align-content: start;
}

.sequence-evidence {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(8, 20, 24, 0.82);
}

.sequence-evidence .evidence-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #061214;
  background: var(--accent);
}

.sequence-evidence svg {
  width: 22px;
  height: 22px;
}

.sequence-evidence small {
  color: var(--soft-on-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.sequence-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

.sequence-slot {
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--soft-on-dark);
  background: rgba(255, 255, 255, 0.035);
}

.sequence-slot > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #061214;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 950;
}

.sequence-slot strong {
  color: var(--text-on-dark);
}

.sequence-slot small {
  color: var(--soft-on-dark);
  font-size: 11px;
  font-weight: 900;
}

.sequence-slot.filled {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.11);
}

.scene-hotspot-stage,
.timeline-sequence-stage {
  min-height: 100%;
  display: grid;
  gap: 16px;
  padding: 22px;
  color: var(--text-on-dark);
}

.scene-hotspot-stage {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.28fr);
}

.scene-map {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(41, 179, 143, 0.18), transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(207, 111, 62, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(12, 31, 37, 0.94), rgba(4, 15, 20, 0.98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
}

.scene-map-header {
  position: absolute;
  z-index: 3;
  left: 20px;
  top: 18px;
  width: min(420px, calc(100% - 40px));
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 17, 22, 0.82);
  backdrop-filter: blur(10px);
}

.scene-map-header strong {
  color: #ffffff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.scene-map-header p,
.scene-legend p {
  margin: 0;
  color: var(--soft-on-dark);
  font-size: 14px;
  line-height: 1.45;
}

.scene-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
}

.scene-area {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scene-area.area-slot-1 {
  left: 8%;
  top: 18%;
  width: 28%;
  height: 23%;
}

.scene-area.area-slot-2 {
  left: 38%;
  top: 16%;
  width: 24%;
  height: 25%;
}

.scene-area.area-slot-3 {
  left: 64%;
  top: 18%;
  width: 26%;
  height: 23%;
}

.scene-area.area-slot-4 {
  left: 8%;
  top: 48%;
  width: 28%;
  height: 30%;
}

.scene-area.area-slot-5 {
  left: 38%;
  top: 48%;
  width: 24%;
  height: 30%;
}

.scene-area.area-slot-6 {
  left: 64%;
  top: 48%;
  width: 26%;
  height: 30%;
}

.scene-area.area-slot-7 {
  left: 10%;
  top: 80%;
  width: 37%;
  height: 13%;
}

.scene-area.area-slot-8 {
  left: 53%;
  top: 80%;
  width: 37%;
  height: 13%;
}

.scene-area.area-critical {
  border-color: rgba(207, 111, 62, 0.35);
  background: rgba(207, 111, 62, 0.1);
}

.scene-area.area-safe {
  border-color: rgba(41, 179, 143, 0.32);
  background: rgba(41, 179, 143, 0.08);
}

.scene-hotspot {
  position: absolute;
  z-index: 4;
  left: 12%;
  top: 46%;
  width: 22%;
  height: 12%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-content: center;
  min-width: 132px;
  min-height: 72px;
  border-radius: 8px;
  padding: 10px;
  color: #f7fbfa;
  background: rgba(255, 255, 255, 0.095);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.scene-hotspot.scene-slot-1 {
  left: 13%;
  top: 48%;
  width: 21%;
  height: 12%;
}

.scene-hotspot.scene-slot-2 {
  left: 17%;
  top: 66%;
  width: 22%;
  height: 12%;
}

.scene-hotspot.scene-slot-3 {
  left: 38%;
  top: 42%;
  width: 23%;
  height: 12%;
}

.scene-hotspot.scene-slot-4 {
  left: 36%;
  top: 61%;
  width: 23%;
  height: 14%;
}

.scene-hotspot.scene-slot-5 {
  left: 63%;
  top: 56%;
  width: 24%;
  height: 13%;
}

.scene-hotspot.scene-slot-6 {
  left: 61%;
  top: 19%;
  width: 25%;
  height: 11%;
}

.scene-hotspot.scene-slot-7 {
  left: 62%;
  top: 31%;
  width: 21%;
  height: 10%;
}

.scene-hotspot.scene-slot-8 {
  left: 12%;
  top: 28%;
  width: 23%;
  height: 10%;
}

.scene-hotspot span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #07181b;
  background: rgba(255, 255, 255, 0.82);
}

.scene-hotspot svg {
  width: 19px;
  height: 19px;
}

.scene-hotspot strong {
  min-width: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.scene-hotspot small {
  color: rgba(238, 248, 246, 0.78);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.scene-hotspot.found {
  border-color: rgba(41, 179, 143, 0.78);
  background: rgba(41, 179, 143, 0.22);
  box-shadow: 0 0 0 3px rgba(41, 179, 143, 0.16), 0 14px 36px rgba(0, 0, 0, 0.22);
}

.scene-hotspot.tone-critical span,
.scene-hotspot.found span {
  background: var(--accent);
}

.scene-hotspot.tone-decoy {
  border-style: dashed;
}

.scene-legend {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(8, 20, 24, 0.86);
}

.scene-legend strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.05;
}

.scene-legend div {
  display: grid;
  gap: 9px;
}

.scene-legend div span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--soft-on-dark);
  font-size: 13px;
  font-weight: 850;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
}

.legend-dot.decoy {
  background: #cf6f3e;
}

.timeline-sequence-stage {
  grid-template-rows: minmax(0, 1fr) auto;
}

.timeline-bank {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
}

.timeline-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.timeline-card {
  min-height: 136px;
  display: grid;
  align-content: start;
  gap: 9px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
}

.timeline-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #061214;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 950;
}

.timeline-card svg {
  width: 18px;
  height: 18px;
}

.timeline-card strong {
  color: #ffffff;
  line-height: 1.13;
}

.timeline-card small {
  color: var(--soft-on-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.timeline-card.selected {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.18);
}

.timeline-card.selected > span {
  background: var(--accent);
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(8, 20, 24, 0.82);
}

.timeline-node {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 10px;
  color: var(--soft-on-dark);
  background: rgba(255, 255, 255, 0.035);
}

.timeline-node > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #061214;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 950;
}

.timeline-node strong {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.18;
}

.timeline-node small {
  color: var(--soft-on-dark);
  font-size: 11px;
  font-weight: 900;
}

.timeline-node.filled {
  border-style: solid;
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.11);
}

.chat-message {
  max-width: 82%;
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 14px;
  background: #eaf1ef;
}

.chat-message.small {
  max-width: 58%;
}

.chat-message.right {
  margin-left: auto;
  color: #ffffff;
  background: var(--accent-dark);
}

.chat-check {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  color: var(--ink);
  text-align: left;
}

.chat-check > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-check b {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #061214;
  background: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.chat-check:hover,
.chat-check.found {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(41, 179, 143, 0.42);
}

.chat-window .hotspot {
  border-radius: 16px;
}

.chat-window .hotspot:hover,
.chat-window .hotspot.found {
  background: transparent;
}

.chat-window .hotspot-label {
  top: 50%;
  transform: translateY(-50%);
}

.decision-card {
  display: grid;
  gap: 10px;
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.decision-card strong {
  color: var(--text-on-dark);
  font-size: 16px;
}

.decision-card p {
  margin: 0;
  color: var(--soft-on-dark);
  font-size: 13px;
  line-height: 1.35;
}

.decision-grid {
  display: grid;
  gap: 8px;
}

.decision-button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.14);
}

.decision-button.selected {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.16);
}

.lab-table {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  padding: 128px 22px 22px;
}

.lab-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-on-dark);
}

.lab-title strong {
  font-size: 22px;
}

.lab-title span {
  color: var(--soft-on-dark);
  font-size: 13px;
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.url-card,
.evidence-card,
.tool-card,
.step-card {
  min-height: 58px;
  color: var(--text-on-dark);
  text-align: left;
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.14);
}

.evidence-object {
  flex: 1 1 220px;
  position: relative;
  min-height: 74px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(8, 20, 24, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.evidence-object::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 6px;
  height: calc(100% - 20px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.evidence-object strong,
.evidence-object span {
  display: block;
  padding-left: 10px;
}

.evidence-object.assigned::before {
  background: var(--accent);
}

.url-card.selected,
.evidence-card.selected,
.tool-card.selected,
.step-card.selected {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.14);
}

.zone-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drop-zone {
  min-height: 94px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--soft-on-dark);
}

.safe-zone {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  width: 100%;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    rgba(8, 20, 24, 0.72);
}

.safe-zone strong {
  color: var(--text-on-dark);
  text-transform: uppercase;
  font-size: 12px;
}

.action-console {
  display: grid;
  gap: 10px;
}

.console-screen {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(41, 179, 143, 0.38);
  border-radius: var(--radius);
  padding: 12px;
  background: radial-gradient(circle at 80% 20%, rgba(41, 179, 143, 0.16), transparent 35%), rgba(8, 20, 24, 0.82);
}

.console-screen strong {
  color: var(--accent);
  font-size: 24px;
}

.lever-grid .action-tile {
  position: relative;
  min-height: 104px;
}

.lever-grid .action-tile::after {
  content: "";
  width: 36px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.lever-grid .action-tile.selected::after {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(41, 179, 143, 0.55);
}

.file-transfer-console {
  display: grid;
  gap: 12px;
}

.source-file {
  min-height: 96px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 14px;
  color: var(--text-on-dark);
  background: rgba(8, 20, 24, 0.84);
}

.source-file svg {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.source-file span {
  color: var(--soft-on-dark);
}

.transfer-targets {
  display: grid;
  gap: 10px;
}

.target-pad {
  min-height: 64px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.075);
}

.target-pad.selected,
.file-target.selected {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.14);
  box-shadow: inset 0 0 0 1px rgba(41, 179, 143, 0.38);
}

.target-pad svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.file-drop-stage {
  position: absolute;
  inset: 128px 28px 28px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  color: var(--text-on-dark);
}

.file-drop-title {
  display: grid;
  gap: 5px;
}

.file-drop-title strong {
  font-size: 24px;
}

.file-drop-workflow {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 48px minmax(320px, 1fr);
  gap: 18px;
  align-items: center;
}

.file-card-large,
.file-target {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(8, 20, 24, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.file-card-large {
  min-height: 240px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 22px;
}

.file-card-large svg {
  width: 44px;
  height: 44px;
  color: var(--accent);
}

.file-card-large strong {
  font-size: 24px;
}

.file-card-large p {
  margin: 0;
  color: var(--soft-on-dark);
}

.case-clues {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.case-clues span {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--soft-on-dark);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 850;
}

.route-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #061214;
  background: var(--accent);
  font-size: 28px;
  font-weight: 950;
}

.file-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.file-target {
  min-height: 118px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-content: center;
  align-items: center;
  gap: 6px 12px;
  padding: 14px;
  color: var(--text-on-dark);
  text-align: left;
}

.file-target svg {
  grid-row: span 2;
  width: 26px;
  height: 26px;
}

.file-target svg {
  color: var(--soft-on-dark);
}

.file-target span {
  color: var(--soft-on-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.desk-scene {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(5, 15, 18, 0.1), rgba(5, 15, 18, 0.58)),
    transparent;
}

.desk-worktop {
  width: min(760px, 96%);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(58, 45, 36, 0.94), rgba(28, 39, 42, 0.94)),
    #28363a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

.desk-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.desk-copy strong {
  color: var(--text-on-dark);
  font-size: 20px;
}

.desk-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(104px, 1fr));
  gap: 10px;
}

.hotspot-object {
  position: relative;
  min-width: 0;
  min-height: 86px;
  display: grid;
  grid-template-rows: 30px 1fr;
  justify-items: center;
  align-items: center;
  gap: 6px;
  color: var(--text-on-dark);
  background: rgba(246, 250, 249, 0.92);
  border-color: rgba(255, 255, 255, 0.44);
  border-radius: 7px;
  padding: 11px 9px;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  transform: rotate(var(--tilt, 0deg));
}

.hotspot-object svg {
  width: 28px;
  height: 28px;
  color: #17282b;
}

.hotspot-object span {
  color: #17282b;
  font-size: 12px;
  line-height: 1.1;
}

.hotspot-object:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: #ffffff;
}

.object-print {
  --tilt: -7deg;
}

.object-note {
  --tilt: 5deg;
}

.object-laptop {
  --tilt: -2deg;
}

.object-usb {
  --tilt: 8deg;
}

.object-badge {
  --tilt: -10deg;
}

.hotspot-object.secured {
  border-color: var(--accent);
  background: #dff7ef;
}

.vault-scene {
  display: grid;
  place-items: center;
  color: var(--text-on-dark);
  background: radial-gradient(circle at center, #163a3d, #091417 68%);
}

.vault-door {
  width: min(460px, 80%);
  min-height: 360px;
  border: 10px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0d1f23;
  box-shadow: inset 0 0 0 22px rgba(255, 255, 255, 0.06);
}

.vault-inner {
  width: 70%;
  display: grid;
  gap: 10px;
}

.slot {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.slot.filled {
  border-color: var(--accent);
}

.result-card {
  color: var(--ink);
  background: var(--panel);
}

.result-card h2 {
  color: #102126;
}

.simple-result {
  grid-template-columns: minmax(320px, 860px);
  justify-content: center;
}

.simple-result .result-card {
  width: 100%;
}

.result-card p {
  color: var(--muted);
}

.room-next-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(41, 179, 143, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(41, 179, 143, 0.1), rgba(255, 255, 255, 0.72));
}

.room-next-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.room-next-brief span,
.completion-report-head .mini-label {
  color: var(--accent);
  font-weight: 950;
  text-transform: uppercase;
}

.room-next-brief strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.room-next-brief p {
  margin: 0;
}

.room-next-button {
  min-width: 180px;
  min-height: 56px;
  padding: 14px 24px;
  border: 2px solid #80dfbd;
  border-radius: 8px;
  color: #07120f;
  background: #80dfbd;
  box-shadow: 0 14px 30px rgba(41, 179, 143, 0.2);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.room-next-button:hover {
  border-color: #a0ebd1;
  background: #a0ebd1;
  transform: translateY(-1px);
}

.room-next-button:focus-visible {
  outline: 3px solid rgba(41, 179, 143, 0.45);
  outline-offset: 3px;
}

.room-next-brief--action-only {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.room-next-brief--action-only .room-next-button {
  width: 100%;
}

@media (max-width: 620px) {
  .room-next-brief {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .room-next-button {
    width: 100%;
  }
}

/* Partner white label: identity and safe, filled interaction accents only.
   Mission backgrounds, copy colours and semantic warn/good/danger colours stay
   product-controlled to preserve contrast and meaning. */
:root {
  --brand-accent: var(--accent);
  --brand-secondary: var(--brand-accent);
  --brand-on-accent: #000000;
  --brand-on-secondary: var(--brand-on-accent);
}

.mission-brand-logo {
  flex: 0 0 auto;
  width: 112px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.mission-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

html.mission-white-label .primary {
  border-color: var(--brand-accent);
  background: var(--brand-accent);
  color: var(--brand-on-accent);
}

html.mission-white-label .primary:hover:not(:disabled) {
  border-color: var(--brand-secondary);
  background: var(--brand-secondary);
  color: var(--brand-on-secondary);
}

html.mission-white-label .certificate-topline {
  border-bottom-color: var(--brand-accent);
}

html.mission-white-label .certificate-issuer-badge.is-white-label {
  border-top: 5px solid var(--brand-accent);
  background: #f3f7f6;
}

.certificate-issuer-badge.is-white-label img {
  width: auto;
  height: 38px;
  max-width: 180px;
  margin: 5px 0 3px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 620px) {
  .mission-brand-logo {
    width: 82px;
    height: 38px;
  }
}

/* NIS2 management duty briefing before the timed decision lab. */
.nis2-management-briefing {
  width: min(100%, 760px);
  padding: 20px;
  border-color: rgba(92, 216, 174, 0.38);
  background: rgba(8, 29, 28, 0.76);
  color: #f7f8f4;
}

.nis2-management-briefing h3 {
  margin: 8px 0 10px;
  font-size: clamp(22px, 2.2vw, 30px);
}

.nis2-management-briefing > p {
  margin: 0;
  color: rgba(247, 248, 244, 0.84);
  line-height: 1.55;
}

.nis2-management-briefing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.nis2-management-briefing-grid article {
  padding: 13px;
  border: 1px solid rgba(247, 248, 244, 0.16);
  border-radius: 8px;
  background: rgba(247, 248, 244, 0.06);
}

.nis2-management-briefing-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #8de8c9;
  font-size: 13px;
}

.nis2-management-briefing-grid p {
  margin: 0;
  color: rgba(247, 248, 244, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.nis2-management-acknowledgement {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  border-radius: 8px;
  background: rgba(92, 216, 174, 0.12);
  color: #f7f8f4;
  cursor: pointer;
}

.nis2-management-acknowledgement input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #5cd8ae;
}

@media (max-width: 760px) {
  .nis2-management-briefing-grid {
    grid-template-columns: 1fr;
  }
}

.completion-report {
  display: grid;
  gap: 18px;
  margin: 24px 0;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid rgba(16, 33, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.completion-report-head {
  display: grid;
  gap: 6px;
}

.completion-report h3 {
  margin: 0;
  color: #102126;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.completion-report-head p {
  margin: 0;
}

.completion-report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.completion-report-metrics div,
.completion-report-list article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(16, 33, 38, 0.1);
  border-radius: 8px;
  background: #fff;
}

.completion-report-metrics span,
.completion-report-list span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.completion-report-metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

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

.completion-report-list article strong {
  display: block;
  margin: 5px 0;
  color: var(--ink);
}

.completion-report-list article p {
  margin: 0;
  font-size: 0.95rem;
}

.cra-mission-pulse {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(210px, 0.7fr) minmax(320px, 1.4fr);
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(41, 179, 143, 0.3);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  color: #eaf7f3;
  background: rgba(10, 29, 33, 0.92);
}

.cra-mission-pulse > div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
}

.cra-mission-pulse .mini-label {
  display: block;
  margin-bottom: 5px;
  color: #83e5c5;
}

.cra-mission-pulse strong {
  display: block;
  overflow-wrap: anywhere;
}

.cra-mission-pulse p {
  margin: 4px 0 0;
  color: #c5d6d2;
  font-size: 0.88rem;
  line-height: 1.35;
}

.cra-mission-pulse.tone-warning {
  border-left-color: var(--warn);
}

.cra-mission-pulse.tone-critical {
  border-left-color: var(--danger);
}

.role-dialogue-stage {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(440px, 1.32fr);
  gap: 18px;
  padding: 18px;
  border-radius: 8px;
  color: #eef8f5;
  background:
    radial-gradient(circle at 12% 10%, rgba(41, 179, 143, 0.18), transparent 32%),
    linear-gradient(145deg, #10262d, #07171c);
}

.role-dialogue-brief,
.role-dialogue-thread {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 17, 21, 0.7);
}

.role-dialogue-brief {
  align-self: start;
  display: grid;
  gap: 16px;
  padding: 24px;
}

.role-dialogue-brief > strong {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
}

.role-dialogue-brief p {
  margin: 0;
  color: #bfd0cc;
  font-size: 1.02rem;
  line-height: 1.45;
}

.role-dialogue-progress {
  display: flex;
  gap: 8px;
}

.role-dialogue-progress span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #9db1ac;
  font-weight: 900;
}

.role-dialogue-progress span.active,
.role-dialogue-progress span.done {
  border-color: var(--accent);
  color: #041814;
  background: #8ce7c7;
}

.role-dialogue-thread {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.role-dialogue-turn {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.role-dialogue-turn.current {
  border: 1px solid rgba(41, 179, 143, 0.48);
  background: rgba(41, 179, 143, 0.09);
}

.role-dialogue-speaker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-dialogue-speaker span,
.role-dialogue-answer span {
  border-radius: 999px;
  padding: 4px 8px;
  color: #052019;
  background: #8ce7c7;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.role-dialogue-turn > p {
  margin: 0;
  color: #eef8f5;
  font-size: 1.04rem;
  font-weight: 750;
  line-height: 1.42;
}

.role-dialogue-options {
  display: grid;
  gap: 8px;
}

.role-dialogue-options button {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: #f4fbf9;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
  font: inherit;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

.role-dialogue-options button:hover,
.role-dialogue-options button:focus-visible {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.16);
}

.role-dialogue-answer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  color: #11241f;
  background: #f5fff9;
}

.role-dialogue-answer span {
  color: #fff;
  background: var(--accent);
}

.role-dialogue-complete {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid rgba(41, 179, 143, 0.4);
  border-radius: 8px;
  color: #bff5df;
  background: rgba(41, 179, 143, 0.12);
}

.role-dialogue-complete span {
  font-size: 1.4rem;
}

.cra-personal-record {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(41, 179, 143, 0.28);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  background: #f4fbf8;
}

.cra-personal-record.tone-warning {
  border-left-color: var(--warn);
}

.cra-personal-record.tone-critical {
  border-left-color: var(--danger);
}

.cra-personal-record-head h4 {
  margin: 4px 0;
  color: var(--ink);
  font-size: 1.55rem;
}

.cra-personal-record-head p,
.cra-record-grid p,
.cra-open-impacts p {
  margin: 0;
}

.cra-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.cra-record-grid article {
  padding: 12px;
  border: 1px solid rgba(16, 33, 38, 0.1);
  border-radius: 7px;
  background: #fff;
}

.cra-record-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cra-record-grid strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
}

.cra-open-impacts {
  display: grid;
  gap: 6px;
  padding: 13px;
  border-radius: 7px;
  background: rgba(208, 74, 58, 0.07);
}

@media (max-width: 900px) {
  .cra-mission-pulse,
  .role-dialogue-stage,
  .cra-record-grid {
    grid-template-columns: 1fr;
  }

  .role-dialogue-stage {
    min-height: auto;
  }
}

.score-ring {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--score-deg, 0deg), #dbe6e4 0);
}

.score-ring strong {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #ffffff;
  font-size: 34px;
}

.certificate {
  display: none;
}

.certificate-preview {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #ffffff;
}

.certificate-preview dl,
.certificate dl {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 8px 14px;
  margin: 16px 0;
}

.certificate-preview dt,
.certificate dt {
  color: var(--muted);
  font-weight: 850;
}

.certificate-preview dd,
.certificate dd {
  margin: 0;
  font-weight: 700;
}

.certificate table {
  width: 100%;
  margin: 14px 0 18px;
  border-collapse: collapse;
  font-size: 12px;
}

.certificate th,
.certificate td {
  border: 1px solid #d7d7d7;
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.certificate th {
  background: #f0f0f0;
  font-weight: 850;
}

.compact-certificate .certificate-head p {
  margin: 0;
}

.certificate-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
  border-bottom: 4px solid #102327;
  padding-bottom: 18px;
}

.compact-certificate .certificate-kicker {
  color: #66757a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.certificate-issuer-badge {
  display: grid;
  gap: 3px;
  border: 1px solid #d8e0df;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f3f7f6;
}

.certificate-issuer-badge span,
.certificate-status-hero span {
  color: #66757a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.certificate-issuer-badge strong {
  color: #102327;
  font-size: 16px;
}

.certificate-issuer-badge small {
  color: #52656a;
  font-weight: 750;
  line-height: 1.25;
}

.certificate-status {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  border: 1px solid #b7ded4;
  border-radius: 8px;
  padding: 12px 14px;
  color: #102327;
  background: #e8f7f2;
}

.certificate-status-hero {
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
  gap: 18px;
  border-color: #8ed2bf;
  background: linear-gradient(135deg, #e6f7f1, #f7fbfa);
}

.certificate-status strong {
  font-size: 18px;
}

.certificate-status-hero div {
  display: grid;
  gap: 4px;
}

.certificate-status-hero div:last-child {
  justify-items: end;
  text-align: right;
}

.certificate-status-hero div:last-child strong {
  font-size: 34px;
  line-height: 1;
}

.certificate-status-hero small {
  color: #506168;
  font-weight: 800;
}

.certificate-status span {
  color: #506168;
  font-weight: 700;
}

.compact-certificate .certificate-section {
  margin-top: 14px;
}

.certificate-content-box {
  border: 1px solid #d8e0df;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
}

.certificate-content-box h2 {
  margin-top: 0;
}

.compact-certificate .certificate-section p,
.compact-certificate .certificate-note {
  margin: 0;
  color: #35464b;
}

.certificate-note {
  margin-top: 16px;
  border-top: 1px solid #d8e0df;
  padding-top: 10px;
  font-size: 12px;
}

.certificate-signoff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  margin-top: 18px;
  border-top: 1px solid #d8e0df;
  padding-top: 12px;
}

.certificate-signoff p {
  margin: 4px 0 0;
  color: #35464b;
  line-height: 1.35;
}

.certificate-signature {
  display: grid;
  gap: 2px;
  align-content: start;
}

.certificate-signoff span,
.certificate-signoff small {
  color: #66757a;
  font-weight: 800;
}

.certificate-signoff strong {
  color: #102327;
  font-size: 16px;
}

/* Paragamix landingpage alignment: warm shell, dark playable mission set. */
.incident-app {
  background:
    radial-gradient(circle at 8% 20%, rgba(80, 166, 5, 0.09), transparent 28%),
    linear-gradient(180deg, #f4efe7 0%, #efe7da 100%);
}

.command-bar {
  width: min(1180px, calc(100vw - 72px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-right: clamp(28px, 4vw, 64px);
  padding-left: clamp(28px, 4vw, 64px);
  border-bottom-color: rgba(216, 208, 196, 0.7);
  border-right: 1px solid rgba(216, 208, 196, 0.7);
  border-left: 1px solid rgba(216, 208, 196, 0.7);
  background: rgba(244, 239, 231, 0.82);
  color: var(--ink);
  overflow: visible;
}

.screen::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 84px;
  z-index: -1;
  border-bottom: 1px solid rgba(216, 208, 196, 0.7);
  background: rgba(244, 239, 231, 0.82);
  backdrop-filter: blur(18px);
}

.brand-mark,
.company-logo {
  border-radius: 999px;
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.brand h1 {
  color: var(--ink);
  font-weight: 780;
  letter-spacing: 0;
}

.brand p,
.status-chip span {
  color: var(--muted);
}

.status-chip {
  min-width: 96px;
  border-color: var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
}

.status-strip .status-chip:nth-child(n + 3) {
  display: none;
}

.status-chip strong {
  color: var(--ink);
}

@media (max-width: 1180px) {
  .command-bar {
    width: min(100vw - 32px, 1180px);
    grid-template-columns: 1fr;
    align-items: start;
    padding-right: 18px;
    padding-left: 18px;
  }

  .status-strip {
    justify-content: flex-start;
  }
}

.hero-copy h2,
.map-header h2,
.room-title h2,
.result-card h2,
.quiz-briefing h2,
.certificate h1,
.certificate h2 {
  font-family: var(--font-display);
  font-weight: 760;
  letter-spacing: 0;
  color: var(--ink);
}

.hero-copy h2 {
  font-size: clamp(54px, 8vw, 110px);
}

.map-header h2,
.room-title h2 {
  font-size: clamp(36px, 5vw, 74px);
  line-height: 0.98;
}

.room-title {
  max-width: 980px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 15px;
  text-transform: none;
}

.hero-copy p,
.panel p,
.result-card p,
.room-title p,
.map-header p {
  color: #34302a;
}

.primary {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
  box-shadow: none;
}

.primary:hover:not(:disabled) {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
  transform: translateY(-1px);
}

.secondary,
.ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.secondary:hover:not(:disabled),
.ghost:hover:not(:disabled) {
  background: var(--surface-2);
}

.scene-card,
.panel,
.result-card,
.knowledge-test {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.scene-card,
.panel,
.result-card {
  box-shadow: var(--shadow);
}

.image-overlay {
  border-color: rgba(25, 23, 20, 0.18);
  color: var(--paper);
  background: rgba(25, 23, 20, 0.84);
}

.field input,
.field textarea {
  border-color: var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fffdf8;
}

.scenario-card,
.company-scan,
.notice {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.scenario-card span,
.company-scan p,
.notice {
  color: var(--muted);
}

.company-scan strong {
  color: var(--ink);
}

.scenario-card.active {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
}

.mission-map {
  border-color: var(--line);
  color: var(--ink);
  background:
    linear-gradient(rgba(25, 23, 20, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 23, 20, 0.045) 1px, transparent 1px),
    var(--surface);
  background-size: 36px 36px;
  box-shadow: var(--shadow);
}

.escape-map-board {
  border-color: rgba(25, 23, 20, 0.18);
  border-radius: 24px;
}

.map-layout > .side-panel .risk-box {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-layout > .side-panel .risk-track {
  background: var(--line);
}

.map-layout > .side-panel .secondary {
  background: var(--ink);
  color: var(--paper);
}

.room-card {
  border-color: #000000;
  border-radius: 30px;
  background:
    radial-gradient(circle at 28% 16%, rgba(80, 166, 5, 0.08), transparent 32%),
    #191714;
  box-shadow: 0 30px 80px rgba(25, 23, 20, 0.22);
}

.room-header .ghost,
.room-actions .secondary {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.puzzle-stage {
  border-color: rgba(255, 255, 255, 0.16);
  background: #0f100e;
}

.room-shell {
  min-height: auto;
}

.room-workbench {
  min-height: 540px;
  align-items: start;
}

.puzzle-stage {
  min-height: 540px;
  min-width: 0;
  overflow: hidden;
}

.mail-window,
.chat-window,
.portal-window,
.phone-window,
.desk-scene,
.vault-scene,
.file-drop-stage {
  width: auto;
  max-width: calc(100% - 56px);
  max-height: calc(100% - 70px);
}

.mfa-stage {
  width: calc(100% - 68px);
  max-width: calc(100% - 68px);
  max-height: calc(100% - 40px);
}

.call-desk-stage,
.share-settings-stage {
  width: calc(100% - 104px);
  max-width: calc(100% - 104px);
  max-height: calc(100% - 104px);
}

.qr-stage,
.reset-stage,
.usb-stage,
.report-kit-stage,
.ai-tool-stage,
.printer-stage,
.post-office-stage {
  width: calc(100% - 68px);
  max-width: calc(100% - 68px);
  max-height: calc(100% - 68px);
}

.incident-board-stage {
  width: calc(100% - 52px);
  max-width: calc(100% - 52px);
  max-height: calc(100% - 52px);
}

.mfa-stage,
.call-desk-stage,
.share-settings-stage,
.qr-stage,
.reset-stage,
.usb-stage,
.report-kit-stage,
.ai-tool-stage,
.printer-stage,
.post-office-stage,
.incident-board-stage,
.lab-table,
.file-drop-stage,
.mail-window,
.chat-window,
.portal-window {
  min-width: 0;
  overflow-x: hidden;
}

.report-kit-stage,
.ai-tool-stage,
.printer-stage,
.post-office-stage,
.incident-board-stage,
.lab-table,
.file-drop-stage {
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.mfa-side-actions,
.call-notes,
.share-settings-panel,
.report-kit-source,
.report-bins,
.ai-prompt-panel,
.ai-card-bank,
.ai-zone-grid,
.post-conveyor,
.post-bins,
.incident-plan-board,
.plan-card-bank,
.plan-zones {
  min-width: 0;
}

.room-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 0 -2px;
  padding: 14px 0 4px;
  background: linear-gradient(180deg, rgba(244, 239, 231, 0), rgba(244, 239, 231, 0.96) 34%);
}

.room-actions .primary,
.room-actions .secondary {
  min-height: 54px;
  border-radius: 999px;
  padding: 0 24px;
}

.guide-card,
.task-card,
.learning-card,
.incident-file,
.score-card,
.control-card {
  border-radius: 20px;
}

.knowledge-test {
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.knowledge-status {
  border-color: rgba(80, 166, 5, 0.28);
  background: #edf7e6;
}

.quiz-card,
.certificate-preview,
.certificate-content-box,
.certificate-issuer-badge {
  border-color: var(--line);
  background: #fffdf8;
}

.quiz-option {
  border-color: var(--line);
  background: #f4efe7;
}

.quiz-option.selected,
.knowledge-test .quiz-option.selected {
  border-color: var(--accent);
  background: #edf7e6 !important;
}

.certificate-status,
.certificate-status-hero {
  border-color: rgba(80, 166, 5, 0.32);
  background: #edf7e6;
}

.certificate-topline {
  border-bottom-color: var(--ink);
}

.print-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.print-form .field input {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

@media (max-width: 1050px) {
  .start-grid,
  .setup-grid,
  .briefing-grid,
  .result-grid,
  .map-layout,
  .room-workbench {
    grid-template-columns: 1fr;
  }

  .escape-map-board {
    min-height: auto;
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .route-lines {
    display: none;
  }

  .map-node {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    min-height: 132px;
  }

  .room-card,
  .puzzle-stage {
    min-height: 520px;
  }

  .evidence-grid,
  .sequence-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .file-drop-workflow {
    grid-template-columns: 1fr;
  }

  .containment-console,
  .share-console {
    grid-template-columns: 1fr;
    inset: 116px 22px 22px;
    overflow: auto;
  }

  .post-office-stage,
  .juicy-stage,
  .ai-redaction-stage,
  .incident-plan-board,
  .qr-stage,
  .reset-stage,
  .usb-stage,
  .report-kit-stage,
  .ai-tool-stage,
  .printer-stage,
  .qr-action-panel,
  .reset-action-panel,
  .usb-action-panel,
  .report-card-grid,
  .ai-card-bank,
  .ai-zone-grid,
  .printer-tray,
  .qr-scanner-scene,
  .reset-terminal {
    grid-template-columns: 1fr;
  }

  .qr-stage,
  .reset-stage,
  .usb-stage,
  .ai-redaction-stage,
  .report-kit-stage,
  .ai-tool-stage,
  .printer-stage {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    min-height: 520px;
    overflow: auto;
  }

  .ai-redaction-stage {
    gap: 12px;
  }

  .redaction-desk,
  .redaction-preview {
    padding: 18px;
    border-radius: 24px;
  }

  .redaction-text {
    font-size: 22px;
    line-height: 1.55;
  }

  .printer-stage {
    padding-top: 0;
  }

  .incident-board-stage {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 16px;
  }

  .scene-hotspot-stage,
  .timeline-sequence-stage {
    grid-template-columns: 1fr;
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 16px;
  }

  .scene-map {
    min-height: 640px;
  }

  .scene-hotspot {
    min-width: 118px;
  }

  .fake-site-body {
    grid-template-columns: 1fr;
    align-content: start;
    overflow: auto;
  }

  .desk-items {
    grid-template-columns: repeat(3, minmax(104px, 1fr));
  }

  .route-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .command-bar,
  .map-header,
  .room-header {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .status-strip {
    justify-content: stretch;
  }

  .status-chip {
    flex: 1 1 95px;
  }

  .page {
    width: min(100vw - 24px, 1180px);
    padding: 18px 0;
  }

  .hero-copy h2 {
    font-size: 42px;
  }

  .guide-card,
  .briefing-guide,
  .quiz-briefing {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .guide-portrait {
    width: 64px;
    height: 64px;
  }

  .guide-card strong,
  .briefing-guide strong {
    font-size: 17px;
  }

  .guide-card p,
  .briefing-guide p {
    font-size: 14px;
  }

  .quiz-briefing h2 {
    font-size: 22px;
  }

  .quiz-briefing p {
    font-size: 14px;
  }

  .scenario-grid,
  .cards-grid,
  .zone-grid,
  .action-grid,
  .evidence-grid,
  .sequence-track,
  .timeline-card-grid,
  .timeline-track,
  .certificate-preview dl,
  .certificate dl {
    grid-template-columns: 1fr;
  }

  .mail-window,
  .chat-window,
  .portal-window,
  .phone-window,
  .support-card,
  .containment-console,
  .share-console,
  .post-office-stage,
  .juicy-stage,
  .mfa-stage,
  .call-desk-stage,
  .share-settings-stage {
    inset: 16px;
    width: auto;
    max-width: none;
    max-height: none;
  }

  .mfa-stage,
  .call-desk-stage,
  .share-settings-stage,
  .post-office-stage {
    grid-template-columns: 1fr;
    align-items: start;
    overflow: auto;
  }

  .juicy-stage {
    grid-template-columns: 1fr;
    align-items: start;
    overflow: auto;
  }

  .juicy-fruit-bank,
  .juicy-baskets {
    grid-template-columns: 1fr;
  }

  .package-belt,
  .plan-card-bank,
  .case-evidence-strip {
    grid-template-columns: 1fr;
  }

  .mfa-phone-actions,
  .call-buttons,
  .share-setting-row > div {
    grid-template-columns: 1fr;
  }

  .mail-check {
    grid-template-columns: 1fr 24px;
  }

  .mail-check strong {
    grid-column: 1 / -1;
  }

  .mail-check > span > span {
    white-space: normal;
  }

  .fake-site-nav {
    gap: 10px;
  }

  .fake-site-nav span {
    display: none;
  }

  .fake-site-body {
    padding: 14px;
  }

  .fake-site-copy {
    gap: 8px;
  }

  .fake-site-copy h3 {
    font-size: 30px;
  }

  .desk-scene {
    padding: 14px;
  }

  .desk-worktop {
    width: 100%;
    padding: 14px;
  }

  .desk-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-card {
    top: auto;
    bottom: 24px;
  }

  .file-drop-stage {
    inset: 132px 16px 16px;
    overflow: auto;
  }

  .file-target-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #ffffff;
    color: #111111;
  }

  button,
  .site-header,
  .site-footer,
  .screen > :not(.certificate),
  .command-bar,
  .result-grid,
  .simple-result,
  .result-card,
  .print-form,
  .certificate-unlock,
  .room-actions,
  .map-layout,
  .room-card,
  .start-grid,
  .setup-grid,
  .briefing-grid {
    display: none !important;
  }

  .screen,
  .incident-app,
  .page {
    display: block !important;
    min-height: auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .certificate {
    display: block;
    visibility: visible !important;
    position: static !important;
    padding: 0;
    color: #111111;
    background: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 9.6pt;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .certificate * {
    visibility: visible !important;
  }

  .certificate h1 {
    margin: 1.5mm 0 1.5mm;
    color: #102327;
    font-size: 24pt;
    line-height: 1.04;
  }

  .certificate h2 {
    margin: 0 0 1.5mm;
    color: #102327;
    font-size: 10.8pt;
    line-height: 1.15;
  }

  .certificate p,
  .certificate li {
    line-height: 1.25;
  }

  .certificate-topline {
    grid-template-columns: 1fr 54mm;
    gap: 6mm;
    padding-bottom: 5mm;
    border-bottom-width: 1.2mm;
  }

  .certificate-issuer-badge {
    border-radius: 2mm;
    padding: 3mm;
  }

  .certificate-issuer-badge strong {
    font-size: 11pt;
  }

  .certificate-issuer-badge small {
    font-size: 8.4pt;
  }

  .certificate-kicker,
  .certificate-issuer-badge span,
  .certificate-status-hero span {
    font-size: 8pt !important;
  }

  .compact-certificate .certificate-meta {
    display: grid;
    grid-template-columns: 30mm 1fr 27mm 1fr;
    gap: 1.6mm 4mm;
    margin: 4mm 0 3mm;
    border: 1px solid #d8e0df;
    border-radius: 2mm;
    padding: 3mm;
    background: #fbfdfc;
  }

  .compact-certificate .certificate-meta dt,
  .compact-certificate .certificate-meta dd {
    font-size: 8.8pt;
  }

  .certificate-status {
    margin: 4mm 0;
    padding: 3mm 4mm;
    border-radius: 2mm;
  }

  .certificate-status strong {
    font-size: 13pt;
  }

  .certificate-status-hero {
    grid-template-columns: 1fr 42mm;
  }

  .certificate-status-hero div:last-child strong {
    font-size: 24pt;
  }

  .certificate-status-hero small {
    font-size: 8pt;
  }

  .compact-certificate .certificate-section {
    margin-top: 3mm;
  }

  .certificate-content-box {
    border-radius: 2mm;
    padding: 3mm;
  }

  .certificate-content-box p {
    font-size: 8.8pt;
  }

  .certificate-note {
    margin-top: 3mm;
    padding-top: 2mm;
    font-size: 9pt;
  }

  .certificate-signoff {
    grid-template-columns: 1fr 52mm;
    gap: 6mm;
    margin-top: 4mm;
    padding-top: 3mm;
  }

  .certificate-signoff p,
  .certificate-signoff small {
    font-size: 8.3pt;
  }

  .certificate-signoff strong {
    font-size: 11pt;
  }
}

/* Mission mini-game layer */
.live-chat-stage .chat-top {
  justify-content: space-between;
}

.live-chat-stage .chat-top em {
  margin-left: auto;
  color: #6a7b80;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.live-inbox-body {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.mail-case-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.forensic-browser-stage {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.browser-forensics-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: #102327;
  background:
    linear-gradient(90deg, rgba(41, 179, 143, 0.18), rgba(217, 146, 40, 0.12)),
    #eef5f3;
  border-bottom: 1px solid #cfdbd9;
}

.browser-forensics-strip strong {
  font-size: 14px;
}

.browser-forensics-strip small {
  margin-left: auto;
  color: #5d6f74;
  font-weight: 850;
}

.forensic-browser-stage .portal-browser {
  background: #162427;
}

.forensic-browser-stage .portal-url {
  position: relative;
  border-color: rgba(217, 146, 40, 0.7);
  box-shadow: inset 0 0 0 1px rgba(217, 146, 40, 0.24);
}

.forensic-browser-stage .portal-url::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(217, 146, 40, 0.38);
  pointer-events: none;
  animation: forensicScan 2.2s linear infinite;
}

@keyframes forensicScan {
  0% { clip-path: inset(0 96% 0 0); }
  50% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 96%); }
}

.chat-timeline {
  display: grid;
  gap: 9px;
}

.chat-timeline .chat-message {
  animation: chatIn 420ms ease-out both;
}

.chat-timeline .msg-2 { animation-delay: 0.08s; }
.chat-timeline .msg-3 { animation-delay: 0.16s; }
.chat-timeline .msg-4 { animation-delay: 0.24s; }
.chat-timeline .msg-5 { animation-delay: 0.32s; }
.chat-timeline .msg-6 { animation-delay: 0.4s; }

@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.live-chat-stage .chat-body {
  overflow: auto;
}

.evidence-web {
  min-height: 96px;
  background:
    linear-gradient(24deg, transparent 48%, rgba(208, 74, 58, 0.42) 49%, rgba(208, 74, 58, 0.42) 51%, transparent 52%),
    linear-gradient(150deg, transparent 48%, rgba(217, 146, 40, 0.38) 49%, rgba(217, 146, 40, 0.38) 51%, transparent 52%),
    linear-gradient(90deg, transparent 48%, rgba(41, 179, 143, 0.34) 49%, rgba(41, 179, 143, 0.34) 51%, transparent 52%),
    rgba(255, 255, 255, 0.055);
}

.evidence-web i {
  position: absolute;
  width: 42px;
  height: 28px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(-8deg);
}

.evidence-web i:nth-of-type(1) { left: 20%; top: 16px; }
.evidence-web i:nth-of-type(2) { right: 18%; bottom: 12px; transform: rotate(7deg); }

.situation-room-strip {
  position: relative;
}

.situation-room-strip::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--warn), var(--accent));
  opacity: 0.7;
}

.situation-room-core {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(41, 179, 143, 0.28);
  border-radius: 14px;
  color: var(--text-on-dark);
  background:
    radial-gradient(circle at 85% 20%, rgba(41, 179, 143, 0.16), transparent 35%),
    rgba(8, 20, 24, 0.86);
}

.situation-room-core strong {
  font-size: 22px;
}

.situation-room-core p {
  margin: 0;
  color: var(--soft-on-dark);
}

.plan-zones {
  grid-template-rows: auto;
}

.post-office-stage .package-belt::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 16px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(41,179,143,0.12), rgba(255,255,255,0.05));
  pointer-events: none;
}

.package-card {
  position: relative;
  z-index: 1;
}

/* Stable attachment desk layout: no oversized bubbles, no unreadable wrapping. */
.post-office-stage {
  position: absolute;
  inset: 28px;
  width: auto;
  max-width: none;
  max-height: none;
  display: grid;
  grid-template-columns: minmax(430px, 1.05fr) minmax(330px, 0.95fr);
  gap: 18px;
  color: var(--text-on-dark);
  overflow: hidden;
}

.post-conveyor,
.post-bins {
  min-width: 0;
  border-radius: 18px;
  padding: 18px;
  background: rgba(10, 16, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.post-conveyor {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 8px;
}

.post-conveyor > strong {
  font-size: 26px;
  line-height: 1.05;
}

.post-conveyor p {
  max-width: 520px;
  margin: 0;
  color: var(--soft-on-dark);
  line-height: 1.25;
}

.package-belt {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  min-height: 0;
  margin-top: 10px;
  padding: 12px;
  overflow: auto;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.post-office-stage .package-belt::before {
  content: none;
}

.package-card {
  min-height: 78px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--text-on-dark);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.075)),
    rgba(15, 24, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transform: none !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
}

.package-card svg {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  color: #f3fbf8;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.32));
}

.package-card strong {
  min-width: 0;
  line-height: 1.05;
}

.package-file-name {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  justify-content: flex-start;
  color: #ffffff;
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 950;
}

.package-base {
  min-width: 0;
  overflow: visible;
  text-overflow: initial;
  white-space: normal;
  overflow-wrap: anywhere;
}

.package-extension {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(185, 255, 241, 0.2);
  color: #d9fff7;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(185, 255, 241, 0.26);
}

.package-extension.danger {
  background: rgba(255, 214, 102, 0.25);
  color: #fff0b8;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.55), 0 0 0 3px rgba(255, 214, 102, 0.08);
}

.package-card > span {
  grid-column: 2;
  justify-self: start;
  white-space: nowrap;
  color: #b9d3d4;
  font-size: 13px;
  font-weight: 800;
}

.package-card.selected {
  border-color: var(--accent);
  background: rgba(41, 179, 143, 0.18);
}

.package-card.sorted {
  opacity: 0.82;
}

.post-bins {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.post-bin {
  min-height: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  gap: 4px 10px;
  padding: 12px;
  border-radius: 14px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.post-bin svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.post-bin strong {
  min-width: 0;
  white-space: nowrap;
}

.post-bin span,
.post-bin div {
  grid-column: 2;
  color: var(--soft-on-dark);
  font-size: 12px;
}

.post-bin div {
  min-height: 24px;
  overflow: auto;
}

/* Stable chat station layout: keep the conversation and action panel playable. */
.live-chat-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.live-chat-stage .chat-body {
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 22px;
  scrollbar-gutter: stable;
}

.live-chat-stage .chat-timeline {
  padding-bottom: 18px;
}

.puzzle-side {
  min-height: 0;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.puzzle-side .decision-card {
  gap: 9px;
  padding: 12px;
}

.puzzle-side .decision-button {
  min-height: 52px;
  padding: 9px 12px;
  border-radius: 16px;
}

.live-inbox-stage {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  color: #17272b;
}

.puzzle-stage > .live-inbox-stage {
  position: absolute;
  z-index: 1;
}

.live-inbox-window,
.live-decision-panel {
  min-height: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(12, 28, 32, 0.16);
  background: rgba(248, 251, 248, 0.94);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.24);
}

.live-inbox-top {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid #d5ded8;
  background: #eef4ed;
}

.live-inbox-top strong {
  margin-right: auto;
}

.live-inbox-top em {
  color: #bf6b35;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.live-pressure-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 0 82px;
}

.live-pressure-meter span {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(12, 28, 32, 0.12);
}

.live-pressure-meter span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pressure, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #92d9b9, #e3b34e, #d6543f);
}

.live-pressure-meter strong {
  color: #6a4f18;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.live-inbox-timeline {
  position: relative;
  height: calc(100% - 126px);
  min-height: 430px;
  padding: 20px 28px 24px 82px;
  display: grid;
  grid-template-rows: repeat(4, minmax(82px, 1fr));
  gap: 12px;
}

.live-line {
  position: absolute;
  left: 48px;
  top: 42px;
  bottom: 34px;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(#a8d9c8, #e3b34e, #d6543f);
}

.live-marker {
  position: absolute;
  left: 36px;
  top: var(--live-marker-y, 12%);
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 99px;
  background: #101817;
  border: 5px solid var(--accent);
  box-shadow: 0 0 0 8px rgba(41, 179, 143, 0.18);
  transform: translateY(-50%);
}

.live-event {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-content: center;
  gap: 2px 12px;
  padding: 12px 16px;
  border-radius: 18px;
  text-align: left;
  color: #17272b;
  background: #ffffff;
  border: 1px solid #d7e0dc;
  box-shadow: 0 12px 28px rgba(22, 31, 28, 0.08);
  cursor: default;
}

.live-event span {
  grid-row: span 2;
  color: #718183;
  font-size: 18px;
  font-weight: 950;
}

.live-event strong {
  min-width: 0;
  font-size: 18px;
  line-height: 1.12;
}

.live-event p {
  margin: 0;
  color: #56676b;
  font-size: 14px;
}

.live-event.event-pressure {
  border-left: 8px solid #e1a742;
}

.live-event.event-critical {
  border-left: 8px solid #d6543f;
}

.live-event.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41, 179, 143, 0.22), 0 14px 30px rgba(18, 38, 34, 0.14);
}

.live-range {
  display: grid;
  gap: 10px;
  padding: 0 28px 24px 82px;
}

.live-range input {
  width: 100%;
  accent-color: var(--accent);
}

.live-decision-panel {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  color: var(--text-on-dark);
  background: linear-gradient(145deg, rgba(16, 58, 49, 0.95), rgba(16, 22, 20, 0.96));
  border-color: rgba(41, 179, 143, 0.34);
}

.live-decision-panel > strong {
  font-size: 26px;
  line-height: 1.05;
}

.live-decision-panel p {
  margin: 0;
  color: var(--soft-on-dark);
}

.live-signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.live-signal-strip span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.live-signal-strip span.on {
  background: rgba(155, 241, 207, 0.88);
}

.live-signal-strip span.on.pressure {
  background: #e3b34e;
}

.live-signal-strip span.on.critical {
  background: #d6543f;
}

.live-action-row {
  display: grid;
  gap: 12px;
}

.live-action {
  min-height: 72px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: left;
  cursor: pointer;
}

.live-action .action-icon svg {
  width: 30px;
  height: 30px;
}

.live-action span:last-child {
  min-width: 0;
  font-size: 18px;
  font-weight: 950;
}

.live-action.selected {
  color: #061214;
  background: var(--accent);
  border-color: var(--accent);
}

.live-controls-actions {
  display: none;
}

@media (max-width: 980px) {
  .live-inbox-stage {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .live-inbox-timeline {
    min-height: 0;
    grid-template-rows: none;
    padding: 16px;
  }

  .live-line,
  .live-marker {
    display: none;
  }

  .live-pressure-meter {
    padding: 12px 16px 0;
  }

  .live-event {
    grid-template-columns: 1fr;
  }

  .live-event span {
    grid-row: auto;
    font-size: 13px;
  }

  .live-event strong {
    font-size: 16px;
  }

  .live-decision-panel {
    display: none;
    padding: 18px;
  }

  .live-controls-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
  }

  .live-control-action {
    min-height: 58px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    color: var(--text-on-dark);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: left;
  }

  .live-control-action .action-icon svg {
    width: 26px;
    height: 26px;
  }

  .live-control-action span:last-child {
    font-size: 16px;
    font-weight: 950;
    line-height: 1.12;
  }

  .live-control-action.selected {
    color: #061214;
    background: var(--accent);
    border-color: var(--accent);
  }
}

/* Final Paragamix visual alignment for the deployed mission app. */
:root {
  --bg: #f4efe7;
  --paper: #fbf8f2;
  --surface: #fffdf8;
  --surface-2: #e9dfd1;
  --panel: #fbf8f2;
  --panel-2: #e9dfd1;
  --ink: #191714;
  --muted: #625d55;
  --line: #d4cabe;
  --accent: #50a605;
  --accent-dark: #347604;
  --danger: #9d2e25;
  --warn: #b95f3b;
  --good: #347604;
  --text-on-dark: #fbf8f2;
  --soft-on-dark: #d6cabc;
  --shadow: 0 24px 60px rgba(25, 23, 20, 0.08);
  --radius: 0;
  --max: 1180px;
}

body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.52;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 231, 0.92);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 22px;
  font-weight: 760;
  letter-spacing: 0;
}

.site-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.language-switch a {
  min-width: 42px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.language-switch a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.brand .language-switch {
  width: fit-content;
  margin-top: 8px;
  border-color: rgba(25, 23, 20, 0.18);
  background: rgba(255, 253, 248, 0.82);
}

.brand .language-switch a {
  min-width: 38px;
  padding: 6px 9px;
  font-size: 12px;
  text-decoration: none;
}

.brand .language-switch a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.command-meta {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 14px;
  justify-content: end;
}

.command-language-slot {
  display: flex;
  justify-content: flex-end;
  min-width: max-content;
}

.command-language-slot .language-switch {
  margin: 0;
  border-color: rgba(25, 23, 20, 0.18);
  background: rgba(255, 253, 248, 0.9);
}

.command-language-slot .language-switch a {
  min-width: 38px;
  padding: 7px 9px;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.incident-app {
  min-height: calc(100vh - 133px);
  background: var(--bg);
}

.screen {
  min-height: calc(100vh - 133px);
}

.screen::before {
  display: none;
}

.page {
  width: min(var(--max), calc(100vw - 56px));
  padding: 64px 0 56px;
}

.command-bar {
  width: min(var(--max), calc(100vw - 56px));
  min-height: 76px;
  margin: 0 auto;
  padding: 18px 0 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  backdrop-filter: none;
}

.brand h1,
.hero-copy h2,
.map-header h2,
.room-title h2,
.result-card h2,
.quiz-briefing h2,
.certificate h1,
.certificate h2 {
  font-family: var(--font-display);
  font-weight: 760;
  letter-spacing: 0;
  color: var(--ink);
}

.brand h1 {
  font-size: 24px;
}

.brand p,
.status-chip span,
.hero-copy p,
.panel p,
.room-title p,
.result-card p,
.map-header p,
.guide-card p,
.briefing-guide p,
.learning-card p,
.task-card p,
.control-card p,
.score-card p,
.mini-label,
.certificate-label {
  color: var(--muted);
}

.brand-mark,
.company-logo,
.station-icon,
.action-icon,
.small-icon {
  border-radius: 0;
}

.brand-mark,
.company-logo {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.status-chip,
.scene-card,
.panel,
.result-card,
.knowledge-test,
.mission-map,
.risk-box,
.keys-box,
.guide-card,
.briefing-guide,
.task-card,
.learning-card,
.incident-file,
.score-card,
.control-card,
.company-scan,
.scenario-card,
.quiz-card,
.certificate-preview,
.certificate-content-box,
.certificate-issuer-badge {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
  color: var(--ink);
}

.status-strip .status-chip:nth-child(n + 3) {
  display: grid;
}

.status-chip strong,
.company-scan strong,
.scenario-card strong,
.map-station strong,
.task-card strong,
.learning-card strong,
.score-card strong,
.control-card strong,
.guide-card strong,
.briefing-guide strong {
  color: var(--ink);
}

.hero-copy h2 {
  font-size: clamp(50px, 8vw, 104px);
  line-height: 0.96;
}

.map-header h2,
.room-title h2 {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
}

.eyebrow,
.mini-label,
.field span,
.certificate-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-transform: none;
}

button,
.primary,
.secondary,
.ghost,
.quiz-option,
.scenario-card,
.map-station,
.tool-card,
.url-card,
.step-card,
.evidence-card,
.hotspot-object,
.live-action,
.live-control-action {
  border-radius: 999px;
}

.primary {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
  box-shadow: none;
}

.primary:hover:not(:disabled) {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.secondary,
.ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.secondary:hover:not(:disabled),
.ghost:hover:not(:disabled) {
  background: var(--surface-2);
}

.field input,
.field textarea,
input,
textarea {
  border-color: var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fffdf8;
}

.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0;
  background: rgba(80, 166, 5, 0.08);
  color: var(--muted);
}

.scene-card,
.image-hero,
.image-overlay {
  border-radius: 0;
}

.image-overlay {
  border-color: rgba(25, 23, 20, 0.18);
  color: var(--paper);
  background: rgba(25, 23, 20, 0.84);
}

.image-overlay strong {
  color: var(--paper);
}

.image-overlay p {
  color: var(--soft-on-dark);
}

.mission-map {
  background:
    linear-gradient(rgba(25, 23, 20, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 23, 20, 0.045) 1px, transparent 1px),
    var(--surface);
  background-size: 36px 36px;
}

.escape-map-board {
  border-color: var(--line);
  border-radius: 0;
  background:
    linear-gradient(rgba(25, 23, 20, 0.42), rgba(25, 23, 20, 0.5)),
    url("https://cyber.paragamix.com/assets/awareness/incident-room.png") center / cover,
    var(--surface-2);
}

.route-lines path {
  stroke: rgba(80, 166, 5, 0.52);
  filter: none;
}

.map-station {
  border-radius: 0;
  color: var(--ink);
  background: rgba(251, 248, 242, 0.92);
  box-shadow: none;
}

.map-station::before {
  display: none;
}

.map-station span {
  color: var(--muted);
}

.map-station.done,
.map-station:not(.done):not(.locked),
.map-station.locked {
  background: rgba(251, 248, 242, 0.92);
  box-shadow: none;
}

.map-station.done {
  border-color: var(--accent);
}

.map-station:not(.done):not(.locked) {
  border-color: var(--warn);
}

.map-station.locked {
  opacity: 0.58;
  filter: none;
  border-color: var(--line);
}

.node-index,
.map-station.done .node-index,
.map-station:not(.done):not(.locked) .node-index,
.map-station.locked .node-index {
  border-radius: 999px;
  color: var(--paper) !important;
  background: var(--ink);
}

.map-station.done .station-icon,
.map-station:not(.done):not(.locked) .station-icon,
.map-station.locked .station-icon,
.station-icon {
  color: var(--paper);
  background: var(--ink);
}

.risk-track,
.load-card b,
.verify-timer,
.progress-track {
  background: var(--line);
}

.risk-fill,
.load-card i,
.verify-timer::before {
  background: var(--accent);
}

.room-card,
.puzzle-stage,
.monitor,
.device,
.case-file,
.vault-graphic,
.live-inbox-stage,
.live-decision-panel,
.juicy-game-field,
.redaction-stage,
.containment-console,
.share-console {
  border-color: var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.room-card {
  background: var(--paper);
}

.puzzle-stage {
  background: #fffdf8;
}

.stage-backdrop {
  opacity: 0.16;
  filter: saturate(0.72) contrast(0.95);
}

.room-actions {
  background: linear-gradient(180deg, rgba(244, 239, 231, 0), rgba(244, 239, 231, 0.96) 34%);
}

.guide-card,
.briefing-guide {
  background: var(--surface);
}

.guide-card p,
.briefing-guide p,
.quiz-briefing p,
.knowledge-test p {
  color: var(--muted);
}

.quiz-briefing h2 {
  color: var(--ink);
}

.knowledge-status,
.certificate-status,
.certificate-status-hero,
.quiz-option.selected,
.knowledge-test .quiz-option.selected,
.scenario-card.active,
.company-scan.loaded,
.verification-status.success,
.verify-result.success {
  border-color: rgba(80, 166, 5, 0.32);
  background: rgba(80, 166, 5, 0.08) !important;
  color: var(--ink);
}

.form-stack,
.quiz-list,
.question-list,
.button-row,
.room-actions,
.side-panel {
  gap: 12px;
}

.live-action,
.live-control-action,
.action-card,
.tool-card,
.url-card,
.step-card,
.evidence-card,
.hotspot-object,
.file-card,
.plan-card,
.classify-item,
.quiz-option {
  border-color: var(--line);
  color: var(--ink);
  background: #fffdf8;
  box-shadow: none;
}

.live-action.selected,
.live-control-action.selected,
.action-card.selected,
.tool-card.selected,
.url-card.selected,
.step-card.selected,
.evidence-card.selected,
.hotspot-object.selected,
.file-card.selected,
.plan-card.selected,
.classify-item.selected {
  border-color: var(--accent);
  background: rgba(80, 166, 5, 0.08);
  color: var(--ink);
}

.live-action.risky.selected,
.live-control-action.risky.selected {
  border-color: var(--accent);
  background: rgba(80, 166, 5, 0.08);
}

.certificate {
  background: var(--paper);
  color: var(--ink);
}

.certificate * {
  border-color: var(--line);
}

.certificate-topline {
  border-bottom-color: var(--ink);
}

.certificate-content-box,
.certificate-preview,
.certificate-issuer-badge {
  background: #fffdf8;
}

.simplified-start {
  min-height: calc(100vh - 209px);
  grid-template-columns: minmax(0, 860px);
  align-items: center;
  justify-content: start;
}

.simplified-start .start-hero-copy {
  max-width: 900px;
}

.simplified-start .start-hero-copy h2 {
  max-width: 760px;
}

.simplified-start .start-domain-panel {
  max-width: 620px;
}

.simplified-start.has-start-visual {
  grid-template-columns: minmax(0, 720px) minmax(300px, 470px);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  justify-content: space-between;
}

.simplified-start.has-start-visual .start-hero-copy {
  max-width: 760px;
}

.simplified-start.has-start-visual .start-domain-panel {
  max-width: 620px;
}

.start-mission-visual {
  min-height: 420px;
  overflow: hidden;
  background: #fffdf8;
}

.start-mission-visual .image-hero {
  height: 100%;
  min-height: 420px;
}

.start-mission-visual .image-hero img {
  object-fit: cover;
  object-position: center;
}

.start-mission-visual.is-ai-visual .image-hero img {
  object-position: center top;
}

.start-mission-visual .image-overlay strong {
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1;
}

.start-mission-visual .image-overlay p {
  max-width: 28ch;
}

.simplified-start .start-countdown-button {
  width: 100%;
  min-height: 64px;
  font-size: 20px;
}

.start-countdown-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

@media (max-width: 820px) {
  .simplified-start.has-start-visual {
    grid-template-columns: 1fr;
  }

  .start-mission-visual,
  .start-mission-visual .image-hero {
    min-height: 280px;
  }

  .wrap {
    padding: 0 18px;
  }

  .nav {
    min-height: auto;
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 14px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 18px;
  }

  .page,
  .command-bar {
    width: min(100vw - 28px, var(--max));
  }

  .page {
    padding: 42px 0;
  }

  .footer-grid {
    display: grid;
  }
}

/* Renovated mission workspace layout. */
.incident-app {
  background:
    linear-gradient(180deg, #f7f3ec 0%, #f0eadf 100%);
}

.screen {
  color: var(--ink);
}

.page {
  width: min(1240px, calc(100vw - 56px));
  padding: 46px 0 52px;
}

.command-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
}

.brand {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.brand h1,
.hero-copy h2,
.map-header h2,
.room-title h2,
.result-card h2,
.quiz-briefing h2,
.certificate h1,
.certificate h2 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 820;
  line-height: 1.1;
}

.brand p {
  margin-top: 4px;
  font-size: 13px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 8px;
}

.status-chip {
  min-height: 58px;
  padding: 10px 12px;
  border-color: rgba(25, 23, 20, 0.12);
  background: rgba(255, 253, 248, 0.82);
}

.status-chip span,
.eyebrow,
.mini-label,
.field span,
.certificate-label {
  letter-spacing: 0;
  text-transform: none;
}

.status-chip strong {
  color: var(--ink);
}

.start-grid,
.setup-grid,
.briefing-grid,
.result-grid {
  min-height: auto;
}

.simplified-start {
  min-height: calc(100vh - 230px);
}

.simplified-start .start-domain-panel {
  max-width: 680px;
}

.panel,
.result-card,
.knowledge-test,
.mission-map,
.side-panel,
.room-card,
.puzzle-stage,
.guide-card,
.task-card,
.learning-card,
.control-card,
.score-card,
.risk-box,
.keys-box,
.quiz-card,
.certificate-preview,
.certificate-content-box,
.certificate-issuer-badge {
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 44px rgba(25, 23, 20, 0.06);
}

.primary,
.secondary,
.ghost,
.quiz-option,
.scenario-card,
.map-station,
.tool-card,
.url-card,
.step-card,
.evidence-card,
.hotspot-object,
.live-action,
.live-control-action,
.key-chip {
  border-radius: 8px;
}

.primary {
  min-height: 50px;
  border-color: var(--ink);
  color: #ffffff;
  background: var(--ink);
}

.primary:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
}

.secondary,
.ghost {
  min-height: 46px;
  border-color: rgba(25, 23, 20, 0.24);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.74);
}

.secondary:hover:not(:disabled),
.ghost:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(80, 166, 5, 0.08);
}

.field input,
.field textarea,
input,
textarea {
  border-radius: 8px;
  background: #fffdf8;
}

.notice {
  border-radius: 8px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.mission-map {
  min-height: 0;
  padding: 24px;
  background: rgba(255, 253, 248, 0.92);
}

.map-header,
.room-header {
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(25, 23, 20, 0.1);
}

.map-header h2,
.room-title h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.map-header p,
.room-title p {
  max-width: 720px;
}

.escape-map-board {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.route-lines {
  display: none;
}

.map-node {
  position: relative;
  inset: auto;
  width: auto;
  min-height: 188px;
}

.node-1,
.node-2,
.node-3,
.node-4,
.node-5,
.node-6,
.node-7,
.node-8,
.node-9,
.node-10,
.node-11,
.node-12 {
  inset: auto;
}

.map-station,
.map-station.done,
.map-station:not(.done):not(.locked),
.map-station.locked {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  gap: 8px;
  min-height: 188px;
  padding: 16px;
  border: 1px solid rgba(25, 23, 20, 0.12);
  background: #fffdf8;
  color: var(--ink);
  opacity: 1;
  filter: none;
}

.map-station:not(.done):not(.locked) {
  border-color: rgba(185, 95, 59, 0.42);
  background: #fff9f2;
}

.map-station.done {
  border-color: rgba(80, 166, 5, 0.42);
  background: #f4faef;
}

.map-station.locked {
  background: #f3eee6;
  color: rgba(25, 23, 20, 0.62);
}

.map-station::before {
  display: none;
}

.station-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 8px;
}

.node-index,
.map-station.done .node-index,
.map-station:not(.done):not(.locked) .node-index,
.map-station.locked .node-index {
  margin: 4px 0 0 !important;
  border-radius: 999px;
  color: #ffffff !important;
  background: var(--ink);
}

.map-station.done .station-icon {
  color: #ffffff;
  background: var(--accent);
}

.map-station:not(.done):not(.locked) .station-icon {
  color: #ffffff;
  background: var(--warn);
}

.map-station.locked .station-icon {
  color: var(--muted);
  background: var(--line);
}

.map-station strong {
  font-size: 18px;
  line-height: 1.15;
}

.map-station span {
  margin-top: 0;
  color: var(--muted);
}

.side-panel {
  position: sticky;
  top: 104px;
  padding: 16px;
  background: rgba(255, 253, 248, 0.78);
}

.risk-box {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.risk-track {
  height: 10px;
  background: rgba(25, 23, 20, 0.12);
}

.risk-fill {
  background: linear-gradient(90deg, var(--accent), #d7a144, var(--warn));
}

.room-shell {
  min-height: 0;
  gap: 18px;
}

.room-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.92);
}

.room-workbench {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 0;
}

.puzzle-stage {
  min-height: 600px;
  border: 0;
  border-right: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 0;
  background: #fffdf8;
  box-shadow: none;
}

.stage-backdrop {
  opacity: 0.08;
  filter: saturate(0.65) contrast(0.95);
}

.puzzle-side {
  padding: 18px;
  gap: 12px;
  background: #f6f1e9;
}

.guide-card {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: #fffdf8;
}

.guide-portrait {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.guide-card strong,
.briefing-guide strong,
.task-card strong,
.learning-card strong,
.score-card strong,
.control-card strong {
  color: var(--ink);
}

.guide-card p,
.briefing-guide p,
.task-card p,
.learning-card p,
.score-card p,
.control-card p {
  color: var(--muted);
}

.task-card,
.learning-card,
.control-card,
.score-card {
  padding: 14px;
}

.room-actions {
  position: static;
  padding: 0;
  background: transparent;
}

.room-actions .primary,
.room-actions .secondary {
  min-width: 210px;
}

.action-card,
.live-action,
.live-control-action,
.tool-card,
.url-card,
.step-card,
.evidence-card,
.hotspot-object,
.file-card,
.plan-card,
.classify-item,
.quiz-option {
  border-color: rgba(25, 23, 20, 0.14);
  background: #fffdf8;
  color: var(--ink);
  box-shadow: none;
}

.action-card.selected,
.live-action.selected,
.live-control-action.selected,
.tool-card.selected,
.url-card.selected,
.step-card.selected,
.evidence-card.selected,
.hotspot-object.selected,
.file-card.selected,
.plan-card.selected,
.classify-item.selected,
.quiz-option.selected {
  border-color: rgba(80, 166, 5, 0.52);
  background: rgba(80, 166, 5, 0.1);
}

.monitor,
.device,
.case-file,
.vault-graphic,
.live-inbox-stage,
.live-decision-panel,
.juicy-game-field,
.redaction-stage,
.containment-console,
.share-console,
.portal-window,
.mail-radar-stage,
.forensic-browser-stage {
  border-color: rgba(25, 23, 20, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
}

.portal-browser,
.mail-radar-panel,
.portal-card,
.mail-radar-message,
.customer-pressure-card {
  border-color: rgba(25, 23, 20, 0.12);
  background: #fffdf8;
  color: var(--ink);
}

.knowledge-test {
  grid-column: 1 / -1;
  padding: 24px;
  background: rgba(255, 253, 248, 0.94) !important;
}

.quiz-briefing {
  align-items: start;
}

.quiz-card {
  padding: 18px;
}

.quiz-option {
  min-height: 56px;
  justify-content: flex-start;
}

.certificate-unlock,
.simple-result .result-card {
  max-width: 760px;
}

@media (max-width: 1080px) {
  .command-bar,
  .map-layout,
  .room-workbench {
    grid-template-columns: 1fr;
  }

  .command-meta {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .command-language-slot {
    justify-content: flex-start;
  }

  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel {
    position: static;
  }

  .puzzle-stage {
    min-height: 520px;
    border-right: 0;
    border-bottom: 1px solid rgba(25, 23, 20, 0.12);
  }

  .escape-map-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page,
  .command-bar {
    width: min(100vw - 28px, var(--max));
  }

  .page {
    padding: 34px 0 42px;
  }

  .command-bar {
    gap: 16px;
  }

  .status-strip {
    grid-template-columns: 1fr 1fr;
  }

  .escape-map-board {
    grid-template-columns: 1fr;
  }

  .map-header,
  .room-header,
  .room-actions {
    display: grid;
  }

  .puzzle-side {
    padding: 14px;
  }

  .puzzle-stage {
    min-height: 460px;
  }
}

/* Room repair: remove legacy dark overlay behavior from the active mission stages. */
.room-card {
  overflow: visible;
}

.room-workbench {
  align-items: stretch;
}

.puzzle-stage {
  min-height: 0;
  padding: 26px;
  overflow: visible;
}

.puzzle-side {
  align-content: start;
  overflow: visible;
}

.mfa-stage {
  position: relative;
  inset: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
  overflow: visible;
  color: var(--ink);
}

.mfa-phone {
  width: min(100%, 340px);
  box-shadow: 0 18px 38px rgba(25, 23, 20, 0.12);
}

.mfa-side-actions,
.mfa-side-actions.waiting {
  align-content: start;
  gap: 12px;
  border-color: rgba(25, 23, 20, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: #f7f3ec;
  color: var(--ink);
}

.mfa-side-actions .mini-label,
.mfa-wait-card .mini-label {
  color: var(--muted);
}

.mfa-wait-card {
  border-color: rgba(25, 23, 20, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
}

.mfa-wait-card p {
  color: var(--muted);
}

.stage-action-button,
.mfa-side-actions .stage-action-button,
.call-notes .stage-action-button,
.share-settings-panel .stage-action-button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  justify-items: stretch;
  gap: 12px;
  border-color: rgba(25, 23, 20, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  box-shadow: none;
  text-align: left;
}

.stage-action-button .action-icon {
  color: var(--muted);
}

.stage-action-button.selected,
.mfa-side-actions .stage-action-button.selected,
.call-notes .stage-action-button.selected,
.share-settings-panel .stage-action-button.selected {
  border-color: rgba(80, 166, 5, 0.54);
  color: var(--ink);
  background: rgba(80, 166, 5, 0.1);
  box-shadow: inset 0 0 0 1px rgba(80, 166, 5, 0.18);
}

.stage-action-button.selected .action-icon {
  color: var(--accent);
}

.mfa-phone-actions .stage-action-button,
.call-buttons .stage-action-button,
.reset-buttons .stage-action-button {
  min-height: 44px;
  grid-template-columns: 1fr;
  justify-items: center;
  border-color: rgba(25, 23, 20, 0.16);
  color: var(--ink);
  background: #fffdf8;
  text-align: center;
}

.mfa-phone-actions .stage-action-button.selected,
.call-buttons .stage-action-button.selected,
.reset-buttons .stage-action-button.selected {
  border-color: #5fae19;
  color: #101714;
  background: #e8f5dc;
  box-shadow: inset 0 0 0 2px rgba(80, 166, 5, 0.24);
}

.mfa-phone-actions .stage-action-button.selected:hover,
.call-buttons .stage-action-button.selected:hover,
.reset-buttons .stage-action-button.selected:hover {
  color: #101714;
  background: #deefcf;
}

.guide-card,
.score-card,
.control-card,
.learning-card {
  overflow: visible;
}

.learning-card,
.learning-card.retry,
.learning-card.passed,
.control-card,
.score-card {
  border-color: rgba(25, 23, 20, 0.12);
  color: var(--ink);
  background: #fffdf8;
}

.learning-card.passed {
  border-color: rgba(80, 166, 5, 0.34);
  background: rgba(80, 166, 5, 0.08);
}

.learning-card.retry {
  border-color: rgba(185, 95, 59, 0.34);
  background: rgba(185, 95, 59, 0.08);
}

.room-actions {
  margin-top: 18px;
}

@media (max-width: 1080px) {
  .mfa-stage {
    grid-template-columns: 1fr;
  }

  .mfa-phone {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .puzzle-stage {
    padding: 16px;
  }

  .mfa-phone {
    width: 100%;
    max-width: 340px;
  }

  .stage-action-button,
  .mfa-side-actions .stage-action-button {
    min-height: 54px;
  }
}

/* Sidebar hard reset: keep Kai, score and action cards compact and readable. */
.puzzle-side .guide-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  box-shadow: none;
}

.puzzle-side .guide-portrait {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(25, 23, 20, 0.12);
}

.puzzle-side .guide-content {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.puzzle-side .guide-card .mini-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.puzzle-side .guide-card strong {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
}

.puzzle-side .guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.42;
}

.puzzle-side .guide-card .guide-transfer {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(80, 166, 5, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(80, 166, 5, 0.08);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.38;
}

.puzzle-side .task-card,
.puzzle-side .score-card,
.puzzle-side .control-card,
.puzzle-side .learning-card,
.puzzle-side .decision-card {
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: #fffdf8;
  box-shadow: none;
}

.puzzle-side .task-card strong,
.puzzle-side .score-card strong,
.puzzle-side .control-card strong,
.puzzle-side .learning-card strong,
.puzzle-side .decision-card strong {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.12;
}

.puzzle-side .task-card .mini-label,
.puzzle-side .score-card .mini-label,
.puzzle-side .control-card .mini-label,
.puzzle-side .learning-card .mini-label,
.puzzle-side .decision-card .mini-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.puzzle-side .task-card p,
.puzzle-side .score-card p,
.puzzle-side .control-card p,
.puzzle-side .learning-card p,
.puzzle-side .decision-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.42;
}

.puzzle-side .task-card:first-of-type strong {
  font-size: 30px;
}

@media (max-width: 720px) {
  .puzzle-side .guide-card {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 14px;
  }

  .puzzle-side .guide-portrait {
    width: 56px;
    height: 56px;
  }

  .puzzle-side .guide-card strong {
    font-size: 22px;
  }

  .puzzle-side .guide-card p,
  .puzzle-side .task-card p,
  .puzzle-side .score-card p,
  .puzzle-side .control-card p,
  .puzzle-side .learning-card p {
    font-size: 16px;
  }

  .puzzle-side .task-card strong,
  .puzzle-side .score-card strong,
  .puzzle-side .control-card strong,
  .puzzle-side .learning-card strong {
    font-size: 24px;
  }
}

/* Mail scanner repair: use stable clickable rows instead of the old overlay lens. */
.puzzle-stage > .mail-radar-stage,
.mail-radar-stage {
  position: relative;
  inset: auto;
  min-height: 0;
  color: var(--ink);
}

.mail-radar-panel {
  height: auto;
  min-height: 0;
  overflow: visible;
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: none;
}

.mail-radar-top {
  height: auto;
  min-height: 54px;
  border-bottom: 1px solid rgba(25, 23, 20, 0.12);
  background: #f6f1e9;
}

.mail-radar-message {
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  display: grid;
  gap: 10px;
  overflow: visible;
  padding: 18px;
}

.mail-radar-message .customer-pressure-card {
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 8px;
  background: #f8f4ed;
}

.radar-mail-row {
  min-height: 58px;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  border-color: rgba(25, 23, 20, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.radar-mail-row:hover,
.radar-mail-row:focus-visible {
  border-color: rgba(80, 166, 5, 0.52);
  background: rgba(80, 166, 5, 0.06);
  box-shadow: 0 0 0 3px rgba(80, 166, 5, 0.12);
}

.radar-mail-row.found {
  border-color: rgba(80, 166, 5, 0.62);
  background: rgba(80, 166, 5, 0.1);
}

.radar-mail-row strong {
  color: var(--muted);
}

.radar-mail-row span {
  color: var(--ink);
}

.radar-mail-row b {
  color: #ffffff;
  background: var(--accent);
}

.scanner-lens {
  display: none;
}

.scanner-readout {
  position: relative;
  z-index: 1;
  inset: auto;
  width: auto;
  margin: 0 18px 18px;
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(80, 166, 5, 0.08);
}

.scanner-readout strong {
  color: var(--ink);
}

.scanner-readout p {
  color: var(--muted);
}

@media (max-width: 720px) {
  .mail-radar-message {
    padding: 14px;
  }

  .radar-mail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .scanner-readout {
    margin: 0 14px 14px;
  }
}

/* Final compact room reset: fixes clipping and oversized controls after renovation. */
.room-card {
  overflow: visible !important;
}

.room-workbench {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}

.puzzle-stage {
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

.puzzle-side {
  max-height: none !important;
  overflow: visible !important;
  padding: 16px;
}

.room-actions {
  position: static !important;
  z-index: auto;
  margin: 18px 0 0;
  padding: 0;
  background: transparent !important;
}

.room-actions .primary,
.room-actions .secondary {
  min-height: 52px;
  border-radius: 8px;
}

.puzzle-stage > .portal-window,
.puzzle-stage > .mail-window,
.puzzle-stage > .chat-window,
.puzzle-stage > .phone-window,
.puzzle-stage > .desk-scene,
.puzzle-stage > .vault-scene,
.portal-window,
.mail-window,
.chat-window,
.phone-window,
.desk-scene,
.vault-scene {
  position: relative;
  inset: auto;
  min-height: 0;
  width: 100%;
  box-shadow: none;
}

.portal-window {
  display: grid;
  grid-template-rows: auto minmax(0, auto);
}

.portal-browser {
  min-height: 58px;
  background: #172529;
}

.portal-url {
  color: #fff2ef;
  font-size: clamp(13px, 1.7vw, 18px);
}

.fake-site {
  min-height: 0;
}

.fake-site-body {
  align-items: start;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.8fr);
  gap: 18px;
  padding: 18px;
}

.fake-site-copy h3 {
  font-size: clamp(34px, 5vw, 60px);
}

.fake-site-copy p {
  font-size: 18px;
}

.portal-card {
  padding: 16px;
  box-shadow: none;
}

.portal-field {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.puzzle-side .guide-card {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.puzzle-side .guide-portrait {
  width: 52px;
  height: 52px;
}

.puzzle-side .guide-card .mini-label {
  font-size: 11px;
}

.puzzle-side .guide-card strong {
  font-size: 20px;
}

.puzzle-side .guide-card p,
.puzzle-side .guide-card .guide-transfer,
.puzzle-side .task-card p,
.puzzle-side .score-card p,
.puzzle-side .control-card p,
.puzzle-side .learning-card p,
.puzzle-side .decision-card p {
  font-size: 14px;
  line-height: 1.36;
}

.puzzle-side .task-card,
.puzzle-side .score-card,
.puzzle-side .control-card,
.puzzle-side .learning-card,
.puzzle-side .decision-card {
  padding: 14px;
}

.puzzle-side .task-card strong,
.puzzle-side .score-card strong,
.puzzle-side .control-card strong,
.puzzle-side .learning-card strong,
.puzzle-side .decision-card strong {
  color: var(--ink) !important;
  font-size: 22px;
}

.puzzle-side .task-card:first-of-type strong {
  font-size: 24px;
}

.decision-grid {
  gap: 8px;
}

.decision-button,
.puzzle-side .decision-button {
  min-height: 50px;
  grid-template-columns: 24px minmax(0, 1fr);
  border: 1px solid rgba(25, 23, 20, 0.16);
  border-radius: 8px;
  color: var(--ink) !important;
  background: #fffdf8;
}

.decision-button .action-icon,
.puzzle-side .decision-button .action-icon {
  color: var(--muted);
}

.decision-button.selected,
.puzzle-side .decision-button.selected {
  border-color: rgba(80, 166, 5, 0.65);
  color: var(--ink) !important;
  background: rgba(80, 166, 5, 0.12);
}

.decision-button:disabled,
.puzzle-side .decision-button:disabled {
  opacity: 0.45;
  color: var(--muted) !important;
  background: #f4efe7;
}

@media (max-width: 1180px) {
  .room-workbench {
    grid-template-columns: 1fr;
  }

  .puzzle-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .puzzle-side .guide-card,
  .puzzle-side .decision-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .puzzle-side,
  .fake-site-body {
    grid-template-columns: 1fr;
  }

  .fake-site-nav span {
    display: none;
  }

  .fake-site-copy h3 {
    font-size: 40px;
  }

  .room-actions .primary,
  .room-actions .secondary {
    width: 100%;
  }
}

/* Final room simplification: no permanent right sidebar. */
.room-workbench {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.puzzle-stage {
  border-right: 0 !important;
  border-bottom: 1px solid rgba(25, 23, 20, 0.12);
}

.puzzle-side {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: start !important;
  background: #f6f1e9 !important;
}

.puzzle-side .guide-card {
  grid-column: span 1 !important;
}

.puzzle-side .decision-card {
  grid-column: span 2 !important;
}

.puzzle-side .task-card,
.puzzle-side .score-card,
.puzzle-side .control-card,
.puzzle-side .learning-card,
.puzzle-side .decision-card,
.puzzle-side .guide-card {
  min-height: 0 !important;
}

.progress-pill {
  color: var(--ink) !important;
  background: rgba(80, 166, 5, 0.1) !important;
  border-color: rgba(80, 166, 5, 0.34) !important;
}

.room-actions {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

@media (max-width: 980px) {
  .puzzle-side {
    grid-template-columns: 1fr !important;
  }

  .puzzle-side .guide-card,
  .puzzle-side .decision-card {
    grid-column: auto !important;
  }
}

/* Standard mission engine. */
.engine-room-card {
  padding: 0 !important;
  overflow: visible !important;
}

.engine-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #fffdf8;
}

.engine-stage {
  padding: 22px;
  border-bottom: 1px solid rgba(25, 23, 20, 0.12);
}

.engine-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.55fr) minmax(240px, 0.8fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  background: #f6f1e9;
}

.engine-panel .guide-card,
.engine-panel .task-card,
.engine-panel .decision-card {
  margin: 0;
}

.engine-panel .guide-card {
  grid-template-columns: 52px minmax(0, 1fr);
}

.engine-panel .kai-chat-card {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border: 2px solid rgba(80, 166, 5, 0.34);
  border-left: 8px solid var(--accent);
  border-radius: 8px;
  padding: 18px 20px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(80, 166, 5, 0.12), rgba(255, 253, 248, 0.96) 48%),
    #fffdf8;
  box-shadow: 0 18px 46px rgba(25, 23, 20, 0.12);
}

.engine-panel .kai-chat-card::after {
  content: "Kai";
  position: absolute;
  top: 14px;
  right: 16px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none !important;
}

.engine-panel .kai-chat-card.kai-warn {
  border-color: rgba(217, 146, 40, 0.42);
  border-left-color: var(--warn);
  background:
    linear-gradient(135deg, rgba(217, 146, 40, 0.14), rgba(255, 253, 248, 0.96) 48%),
    #fffdf8;
}

.engine-panel .kai-chat-card.kai-bad {
  border-color: rgba(208, 74, 58, 0.42);
  border-left-color: var(--danger);
  background:
    linear-gradient(135deg, rgba(208, 74, 58, 0.12), rgba(255, 253, 248, 0.96) 48%),
    #fffdf8;
}

.engine-panel .kai-chat-card.kai-warn::after {
  background: var(--warn);
}

.engine-panel .kai-chat-card.kai-bad::after {
  background: var(--danger);
}

.engine-panel .kai-chat-card .guide-portrait {
  width: 86px;
  height: 86px;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(25, 23, 20, 0.18);
}

.engine-panel .kai-chat-card .guide-content {
  display: grid;
  gap: 8px;
  padding-right: 52px;
}

.engine-panel .kai-chat-card .mini-label {
  color: #4d5a51;
  font-size: 12px;
  font-weight: 900;
}

.engine-panel .kai-chat-card strong {
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.02;
}

.engine-panel .kai-chat-card p {
  max-width: 980px;
  margin: 0;
  color: #3f3a34;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.38;
  font-weight: 650;
}

.engine-panel .kai-chat-card .guide-transfer {
  margin-top: 4px;
  border: 1px solid rgba(80, 166, 5, 0.34);
  border-radius: 8px;
  padding: 13px 15px;
  color: #183319 !important;
  background: rgba(80, 166, 5, 0.12) !important;
  font-size: 18px;
  font-weight: 850;
}

.engine-card {
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  overflow: hidden;
}

.engine-choice-grid,
.engine-inspect-list,
.engine-item-bank,
.engine-zone-grid,
.engine-redaction {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.engine-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.engine-choice,
.engine-inspect,
.engine-item,
.engine-zone,
.engine-token {
  min-height: 58px;
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(25, 23, 20, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: none;
  text-align: left;
}

.engine-choice {
  grid-template-columns: 28px minmax(0, 1fr);
}

.engine-choice > span:first-child:not(.action-icon) {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--ink);
  font-weight: 850;
}

.engine-choice:hover,
.engine-inspect:hover,
.engine-item:hover,
.engine-zone:hover,
.engine-token:hover,
.engine-choice:focus-visible,
.engine-inspect:focus-visible,
.engine-item:focus-visible,
.engine-zone:focus-visible,
.engine-token:focus-visible {
  border-color: rgba(80, 166, 5, 0.55);
  background: rgba(80, 166, 5, 0.06);
}

.engine-choice.selected,
.engine-inspect.found,
.engine-item.selected,
.engine-item.assigned,
.engine-token.selected {
  border-color: rgba(80, 166, 5, 0.72);
  background: rgba(80, 166, 5, 0.12);
}

.engine-choice.risky.selected {
  border-color: rgba(80, 166, 5, 0.72);
  background: rgba(80, 166, 5, 0.12);
}

.engine-inspect {
  grid-template-columns: minmax(0, 1fr) auto;
}

.engine-inspect strong {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: #f4efe7;
  font-size: 13px;
}

.engine-inspect.found strong {
  color: #ffffff;
  background: var(--accent);
}

.engine-classify {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
}

.engine-item-bank {
  border-right: 1px solid rgba(25, 23, 20, 0.1);
}

.engine-zone strong {
  color: var(--ink);
  font-size: 17px;
}

.engine-zone span {
  color: var(--muted);
  font-size: 14px;
}

.engine-token {
  display: inline-flex;
  min-height: 0;
  margin: 0;
}

.engine-redaction {
  display: flex;
  flex-wrap: wrap;
}

.engine-sort-board {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 0;
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(80, 166, 5, 0.04), transparent 38%),
    #fffdf8;
}

.sort-desk,
.sort-zones {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.sort-desk {
  border-right: 1px solid rgba(25, 23, 20, 0.1);
  background: #f7f2ea;
}

.sort-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(25, 23, 20, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf8;
}

.sort-section-head strong {
  color: var(--ink);
  font-size: 20px;
}

.sort-file-card {
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 72px;
  border-color: rgba(25, 23, 20, 0.12);
  box-shadow: 0 10px 28px rgba(25, 23, 20, 0.06);
}

.sort-file-card.selected {
  border-color: rgba(80, 166, 5, 0.82);
  box-shadow: 0 0 0 3px rgba(80, 166, 5, 0.12), 0 10px 28px rgba(25, 23, 20, 0.06);
}

.sort-file-card.assigned {
  background: #f1faef;
}

.file-icon {
  width: 44px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(25, 23, 20, 0.14);
  border-radius: 6px;
  color: #ffffff;
  background: #172529;
  font-size: 12px;
  font-weight: 950;
}

.sort-file-card b,
.sort-file-card small {
  display: block;
  min-width: 0;
}

.sort-file-card b {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.sort-file-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.sort-zones {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  background: #fffdf8;
}

.sort-bin {
  align-content: start;
  min-height: 172px;
  border-style: dashed;
  border-color: rgba(25, 23, 20, 0.18);
  background: #ffffff;
}

.sort-bin:hover,
.sort-bin:focus-visible {
  border-color: rgba(80, 166, 5, 0.7);
  background: #f4fbf2;
}

.sort-bin .bin-label {
  color: var(--ink);
  font-weight: 900;
  text-transform: none;
}

.sort-bin > strong {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-size: 18px;
}

.bin-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.bin-items em {
  border-radius: 999px;
  padding: 5px 8px;
  color: #415048;
  background: #edf3ea;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.engine-redaction-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.42fr);
  gap: 16px;
  min-height: 500px;
  padding: 18px;
  background: #f7f2ea;
}

.ai-editor,
.ai-preview-panel {
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 16px 44px rgba(25, 23, 20, 0.08);
  overflow: hidden;
}

.ai-editor {
  display: grid;
  grid-template-rows: auto 1fr;
}

.ai-editor-top {
  min-height: 52px;
  display: grid;
  grid-template-columns: 10px 10px 10px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 0 16px;
  color: #ffffff;
  background: #172529;
}

.ai-editor-top strong {
  margin-left: 8px;
}

.ai-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #7f8c8f;
}

.ai-prompt-paper {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
  padding: 18px;
  background:
    linear-gradient(#ffffff 31px, #f0ebe2 32px),
    #ffffff;
  background-size: 100% 32px;
}

.ai-token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 10px;
  color: #233237;
  background: rgba(255, 253, 248, 0.92);
  border-color: rgba(25, 23, 20, 0.12);
  line-height: 1.25;
}

.ai-token.selected {
  color: #ffffff;
  background: #172529;
  border-color: #172529;
}

.ai-token.selected span {
  color: transparent;
  text-shadow: 0 0 0 #ffffff;
  background: repeating-linear-gradient(90deg, #ffffff 0 10px, #d7dfdc 10px 14px);
  border-radius: 4px;
}

.ai-token b {
  border-radius: 999px;
  padding: 3px 7px;
  color: #102327;
  background: #dff5e0;
  font-size: 11px;
}

.ai-preview-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.ai-preview-panel p {
  min-height: 190px;
  margin: 0;
  border: 1px solid rgba(25, 23, 20, 0.1);
  border-radius: 8px;
  padding: 14px;
  color: #243238;
  background: #ffffff;
  line-height: 1.5;
}

.ai-meter {
  height: 12px;
  border-radius: 999px;
  background: #e9e2d8;
  overflow: hidden;
}

.ai-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.ai-preview-panel strong {
  color: var(--ink);
  font-size: 18px;
}

.engine-status-card .ghost {
  width: 100%;
  margin-top: 10px;
}

.engine-panel .decision-card {
  color: var(--ink);
  background: #fffdf8;
}

.engine-panel .decision-card strong {
  color: var(--ink) !important;
  font-size: 20px !important;
}

.engine-panel .decision-button {
  color: var(--ink) !important;
  background: #ffffff;
}

.engine-panel .decision-button.selected {
  color: var(--ink) !important;
  background: rgba(80, 166, 5, 0.12);
}

.engine-panel .guide-transfer,
.engine-panel .guide-card .guide-transfer,
.engine-room .guide-transfer,
.engine-room .guide-card .guide-transfer {
  color: var(--ink) !important;
  background: rgba(80, 166, 5, 0.1) !important;
  border-color: rgba(80, 166, 5, 0.34) !important;
  text-shadow: none !important;
}

@media (max-width: 1100px) {
  .engine-panel,
  .engine-classify,
  .engine-sort-board,
  .engine-redaction-workbench {
    grid-template-columns: 1fr;
  }

  .engine-item-bank,
  .sort-desk {
    border-right: 0;
    border-bottom: 1px solid rgba(25, 23, 20, 0.1);
  }
}

@media (max-width: 720px) {
  .engine-stage,
  .engine-choice-grid,
  .engine-inspect-list,
  .engine-item-bank,
  .engine-zone-grid,
  .engine-redaction {
    padding: 14px;
  }

  .engine-choice-grid {
    grid-template-columns: 1fr;
  }

  .engine-inspect {
    grid-template-columns: 1fr;
  }

  .engine-panel .kai-chat-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-left-width: 6px;
  }

  .engine-panel .kai-chat-card .guide-portrait {
    width: 64px;
    height: 64px;
  }

  .engine-panel .kai-chat-card .guide-content {
    padding-right: 0;
  }

  .engine-panel .kai-chat-card::after {
    display: none;
  }

  .sort-desk,
  .sort-zones,
  .engine-redaction-workbench,
  .ai-prompt-paper {
    padding: 14px;
  }
}

/* Engine visual context modules. */
.engine-context {
  margin: 18px;
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 8px;
  background: #f8f4ed;
}

.engine-surface {
  overflow: hidden;
  color: #172529;
  background: #ffffff;
}

.engine-real-hotspot {
  position: relative;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
}

.engine-real-hotspot:hover,
.engine-real-hotspot:focus-visible {
  border-color: rgba(80, 166, 5, 0.72);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(80, 166, 5, 0.12);
}

.engine-real-hotspot.found {
  border-color: rgba(80, 166, 5, 0.82);
  background: rgba(80, 166, 5, 0.08);
}

.engine-secured-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(80, 166, 5, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: #31563a;
  background: #eef8ed;
  font-size: 12px;
  font-weight: 840;
  line-height: 1;
  white-space: nowrap;
}

.engine-secured-badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.engine-secured-badge.is-decoy {
  color: #31563a;
  background: #eef8ed;
  border-color: rgba(80, 166, 5, 0.28);
}

.engine-phone-context {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
}

.engine-mfa-phone {
  justify-self: center;
}

.engine-context-copy {
  display: grid;
  gap: 8px;
}

.engine-context-copy strong {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.06;
}

.engine-context-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.42;
}

.engine-surface--outlook {
  display: grid;
  grid-template-columns: 52px 164px 250px minmax(360px, 1fr);
  min-height: 500px;
  background: #f3f6fb;
}

.outlook-appbar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 8px;
  background: #0f6cbd;
}

.outlook-app-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
}

.outlook-app-icon.active {
  background: rgba(255, 255, 255, 0.18);
}

.outlook-app-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.outlook-folders,
.outlook-list,
.outlook-reading {
  min-width: 0;
  border-right: 1px solid #d8e0ea;
}

.outlook-folders {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 16px 12px;
  background: #eef3f8;
}

.outlook-folders strong {
  margin-bottom: 10px;
  color: #12375f;
  font-size: 20px;
}

.outlook-folders button {
  display: flex;
  justify-content: space-between;
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  color: #405265;
  background: transparent;
  font: inherit;
  font-weight: 720;
  text-align: left;
}

.outlook-folders button.active {
  color: #0d3157;
  background: #d9e9fb;
}

.outlook-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  background: #f8fafc;
}

.outlook-search {
  border-radius: 8px;
  padding: 10px 12px;
  color: #64748b;
  background: #e9eef5;
  font-weight: 700;
}

.mail-list-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.mail-list-item.active {
  border-color: rgba(15, 108, 189, 0.34);
  box-shadow: inset 3px 0 0 #0f6cbd;
}

.mail-list-item img,
.mail-avatar {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}

.mail-avatar {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #50a605;
  font-weight: 900;
}

.mail-list-item b,
.mail-list-item strong,
.mail-list-item p {
  display: block;
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-list-item b {
  color: #263947;
  font-size: 14px;
}

.mail-list-item strong {
  color: #172529;
  font-size: 15px;
}

.mail-list-item p,
.mail-list-item time {
  color: #667783;
  font-size: 13px;
}

.outlook-reading {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  background: #ffffff;
}

.outlook-reading-head {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}

.outlook-reading-head h3 {
  margin: 0;
  color: #172529;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.04;
}

.mail-context-hotspot {
  width: fit-content;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 4px;
}

.mail-subject-hotspot {
  width: 100%;
  padding: 4px 8px;
}

.mail-subject-hotspot h3 {
  margin: 0;
}

.mail-banner-hotspot {
  margin-left: -4px;
}

.outlook-reading-head p {
  margin: 0;
  color: #60717a;
}

.mail-risk-lens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #d9e5ee;
  border-radius: 10px;
  background: #f7fafc;
}

.mail-risk-lens span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border-left: 3px solid #8fb5d8;
  background: #ffffff;
}

.mail-risk-lens b {
  color: #263947;
  font-size: 12px;
  font-weight: 900;
}

.mail-risk-lens small {
  color: #667783;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
}

.outlook-pill {
  width: fit-content;
  border: 1px solid #f2b8b5;
  border-radius: 999px;
  padding: 5px 9px;
  color: #9c2f27;
  background: #fff3f1;
  font-weight: 820;
}

.mail-from-hotspot {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.mail-from-hotspot img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.mail-from-hotspot .mail-avatar {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  font-size: 22px;
}

.mail-from-hotspot b,
.mail-from-hotspot small {
  display: block;
}

.mail-from-hotspot small {
  color: #667783;
  overflow-wrap: anywhere;
}

.mail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 780px;
}

.mail-meta-hotspot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #f7fafc;
}

.mail-meta-hotspot b,
.mail-meta-hotspot small,
.fake-signature b,
.fake-signature small {
  display: block;
}

.mail-meta-hotspot b,
.fake-signature b {
  color: #263947;
}

.mail-meta-hotspot small,
.fake-signature small {
  color: #667783;
}

.outlook-body {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.mail-text-hotspot,
.mail-action-hotspot,
.mail-attachment-hotspot,
.mail-context-hotspot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.mail-context-hotspot {
  padding: 5px 8px;
}

.mail-text-hotspot span {
  color: #263947;
  line-height: 1.42;
}

.mail-signature-hotspot {
  background: #f7fafc;
}

.fake-mail-cta {
  width: fit-content;
  border-radius: 6px;
  padding: 10px 14px;
  color: #ffffff;
  background: #0f6cbd;
  font-weight: 820;
}

.fake-attachment {
  display: inline-grid;
  grid-template-columns: 24px minmax(0, auto);
  column-gap: 8px;
  align-items: center;
  width: fit-content;
  border: 1px solid #ccd7e3;
  border-radius: 8px;
  padding: 9px 12px;
  background: #f8fafc;
}

.fake-attachment svg {
  grid-row: span 2;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.fake-attachment small {
  color: #60717a;
  font-size: 12px;
}

.engine-surface--browser {
  background: #edf4f3;
}

.browser-tabs {
  min-height: 42px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 8px 14px 0;
  background: #dfe6ec;
}

.browser-tab {
  border-radius: 10px 10px 0 0;
  padding: 10px 18px;
  color: #33434d;
  background: #ffffff;
  font-weight: 820;
}

.browser-window-dot {
  margin-left: auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #94a3b8;
}

.browser-toolbar {
  display: grid;
  grid-template-columns: repeat(3, 30px) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #d8e0ea;
}

.browser-nav {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #51616b;
  background: #eef2f6;
  font-weight: 900;
}

.browser-address-hotspot {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-color: #d4dde6;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f5f7fa;
}

.browser-lock svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.browser-url {
  min-width: 0;
  color: #172529;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

.browser-url b {
  color: #5c6f79;
}

.browser-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 410px);
  gap: 26px;
  align-items: center;
  min-height: 470px;
  padding: 38px;
  background: linear-gradient(120deg, #eef8f6 0%, #f7fbfa 54%, #ffffff 100%);
}

.browser-copy {
  display: grid;
  gap: 14px;
}

.browser-copy h3 {
  margin: 0;
  max-width: 520px;
  color: #102327;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
}

.browser-copy p {
  max-width: 540px;
  margin: 0;
  color: #53686e;
  font-size: 20px;
  line-height: 1.35;
}

.browser-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.browser-chips span {
  border: 1px solid #cfdcda;
  border-radius: 999px;
  padding: 8px 12px;
  color: #213338;
  background: #ffffff;
  font-weight: 760;
}

.browser-login-card {
  display: grid;
  gap: 12px;
  border: 1px solid #d8e0d9;
  border-radius: 8px;
  padding: 22px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(35, 43, 37, 0.12);
}

.login-brand {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.login-brand span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #102327;
  background: #2fb992;
  font-weight: 950;
}

.login-brand b {
  color: #102327;
  font-size: 26px;
  overflow-wrap: anywhere;
}

.browser-login-card label {
  color: #53686e;
  font-weight: 760;
}

.fake-input {
  min-height: 52px;
  display: grid;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  color: #53686e;
  background: #eef4f4;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.browser-input-hotspot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.browser-input-hotspot .fake-input.danger {
  color: #2d3d43;
}

.browser-input-hotspot.found .fake-input {
  border-color: rgba(80, 166, 5, 0.52);
  background: rgba(80, 166, 5, 0.08);
}

.fake-submit {
  min-height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #2fb992;
  font-weight: 850;
}

.engine-surface--teams {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 470px;
  background: #f7f7fb;
}

.teams-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  border-right: 1px solid #dedee8;
  padding: 16px;
  background: #ececf7;
}

.teams-sidebar strong {
  color: #313149;
  font-size: 22px;
}

.teams-contact {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  border-radius: 8px;
  padding: 10px;
  color: #3f3f5c;
}

.teams-contact.active {
  background: #ffffff;
}

.teams-contact span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #5b5fc7;
  font-weight: 900;
}

.teams-contact small {
  color: #6d6d82;
}

.teams-thread {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}

.teams-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #dedee8;
  padding: 14px 18px;
  background: #ffffff;
}

.teams-header img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.teams-header b,
.teams-header span {
  display: block;
}

.teams-header b {
  color: #23233a;
  font-size: 20px;
}

.teams-header span {
  color: #6d6d82;
}

.teams-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  background:
    radial-gradient(circle at 78% 18%, rgba(91, 95, 199, 0.06), transparent 22%),
    linear-gradient(180deg, #fbfbff, #f1f1fa);
}

.teams-bubble {
  max-width: min(640px, 88%);
  display: grid;
  gap: 7px;
  border-radius: 14px;
  padding: 12px 14px;
  color: #202030;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(27, 31, 44, 0.06);
}

.teams-bubble.engine-real-hotspot {
  cursor: pointer;
}

.teams-bubble.engine-real-hotspot:hover,
.teams-bubble.engine-real-hotspot:focus-visible {
  border-color: rgba(91, 95, 199, 0.42);
  box-shadow: 0 0 0 3px rgba(91, 95, 199, 0.1), 0 8px 22px rgba(27, 31, 44, 0.1);
}

.teams-bubble.engine-real-hotspot.found {
  background: #ffffff;
}

.teams-bubble.engine-real-hotspot.is-clue.found {
  border-color: rgba(80, 166, 5, 0.56);
  box-shadow: 0 0 0 3px rgba(80, 166, 5, 0.09), 0 8px 22px rgba(27, 31, 44, 0.1);
}

.teams-bubble.incoming {
  justify-self: start;
}

.teams-bubble.outgoing {
  justify-self: end;
  color: #ffffff;
  background: #5b5fc7;
}

.teams-bubble.outgoing.engine-real-hotspot.found {
  color: #ffffff;
  background: #5b5fc7;
}

.teams-bubble .teams-sender {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: #55556c;
  font-weight: 840;
}

.teams-bubble .teams-sender small {
  color: #8a8a9d;
  font-weight: 700;
}

.teams-bubble.outgoing .teams-sender,
.teams-bubble.outgoing .teams-sender small {
  color: rgba(255, 255, 255, 0.86);
}

.teams-bubble .engine-secured-badge {
  justify-self: start;
  border-color: rgba(91, 95, 199, 0.18);
  color: #50506c;
  background: #f4f4fb;
}

.teams-bubble.outgoing .engine-secured-badge {
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.teams-bubble.is-clue.found .engine-secured-badge {
  border-color: rgba(80, 166, 5, 0.34);
  color: #31563a;
  background: #eef8ed;
}

.engine-surface--desk {
  min-height: 620px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(246, 241, 233, 0.94)),
    #fffdf8;
}

.desk-scene {
  display: grid;
  grid-template-rows: auto minmax(520px, 1fr);
  min-height: 620px;
}

.desk-back-wall {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(25, 23, 20, 0.1);
  padding: 16px 22px;
  background: #f8f4ed;
}

.desk-back-wall span {
  color: var(--accent-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.desk-back-wall strong {
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
  text-align: right;
}

.desk-table {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(80, 166, 5, 0.08), transparent 24%),
    linear-gradient(160deg, #eee5d8 0%, #fbf8f2 48%, #e6dccf 100%);
}

.desk-table::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -18%;
  height: 72%;
  border-radius: 48px 48px 0 0;
  background: linear-gradient(145deg, #d8c7ae, #eee1ce);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 -24px 70px rgba(25, 23, 20, 0.08);
}

.desk-hotspot {
  position: absolute;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.desk-hotspot:hover,
.desk-hotspot:focus-visible {
  border-color: transparent;
  box-shadow: none;
}

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

.desk-hotspot.found::after {
  content: "✓";
  position: absolute;
  right: -7px;
  top: -7px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #fffdf8;
  border-radius: 999px;
  color: #fffdf8;
  background: var(--accent);
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(25, 23, 20, 0.18);
}

.desk-hotspot:hover > span,
.desk-hotspot:focus-visible > span {
  outline: 2px solid rgba(80, 166, 5, 0.38);
  outline-offset: 4px;
}

.desk-hotspot.found > span {
  outline: 2px solid rgba(80, 166, 5, 0.55);
  outline-offset: 5px;
}

.desk-hotspot .engine-secured-badge {
  display: none;
}

.desk-screen {
  left: 31%;
  top: 7%;
  width: min(36%, 420px);
}

.desk-monitor {
  display: grid;
  gap: 8px;
  border: 10px solid #1f2a2f;
  border-bottom-width: 22px;
  border-radius: 10px;
  padding: 18px;
  color: #dff4eb;
  background: #172529;
  min-height: 180px;
}

.desk-monitor b {
  font-size: 22px;
}

.desk-monitor small {
  color: #9bb5ba;
}

.desk-monitor i {
  height: 9px;
  border-radius: 999px;
  background: rgba(80, 166, 5, 0.44);
}

.desk-monitor i:nth-child(4) {
  width: 72%;
}

.desk-contract {
  left: 8%;
  bottom: 17%;
  width: min(30%, 330px);
  transform: rotate(-4deg);
}

.desk-discard {
  right: 6%;
  bottom: 33%;
  width: 150px;
  transform: rotate(4deg);
}

.desk-discard-stack {
  display: grid;
  gap: 6px;
  border: 1px dashed #b7aa9a;
  border-radius: 6px;
  padding: 14px 12px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 232, 221, 0.95)),
    #fffdf8;
  box-shadow: 0 12px 24px rgba(25, 23, 20, 0.12);
}

.desk-discard-stack b {
  font-size: 18px;
  text-transform: uppercase;
}

.desk-discard-stack small {
  color: var(--muted);
  font-weight: 900;
}

.desk-paper-stack {
  display: grid;
  gap: 8px;
  border: 1px solid #d8d0c4;
  border-radius: 8px;
  padding: 22px 18px;
  color: var(--ink);
  background:
    linear-gradient(#ffffff 29px, #eee8dd 30px),
    #ffffff;
  background-size: 100% 30px;
  min-height: 180px;
}

.desk-paper-stack b {
  font-size: 22px;
}

.desk-paper-stack small {
  color: var(--muted);
}

.desk-sticky-note {
  right: 23%;
  bottom: 29%;
  width: 150px;
  transform: rotate(5deg);
}

.desk-sticky {
  display: grid;
  place-items: center;
  gap: 4px;
  aspect-ratio: 1;
  border-radius: 4px;
  color: #3d3316;
  background: #ffe680;
  box-shadow: inset 0 -20px 26px rgba(143, 111, 19, 0.08);
}

.desk-sticky b {
  font-size: 34px;
}

.desk-sticky small {
  font-weight: 800;
}

.desk-id-badge {
  right: 9%;
  bottom: 16%;
  width: 170px;
  transform: rotate(-3deg);
}

.desk-badge {
  display: grid;
  gap: 8px;
  border: 1px solid #c8d4d5;
  border-radius: 10px;
  padding: 14px;
  color: #102327;
  background: #f7fbfa;
}

.desk-badge b {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: #50a605;
}

.desk-badge small {
  color: #52656a;
}

.desk-usb-stick {
  left: 48%;
  bottom: 14%;
  width: 130px;
  transform: rotate(8deg);
}

.desk-usb {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  background: #2b3438;
}

.desk-usb i {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  background: #c8d4d5;
}

.desk-keyboard {
  position: absolute;
  left: 33%;
  bottom: 18%;
  width: 310px;
  transform: perspective(500px) rotateX(18deg);
}

.desk-keyboard-shape {
  display: block;
  width: 100%;
  height: 72px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, #f8f8f8 0 16px, #d5d9db 16px 18px),
    #eef1f2;
}

.desk-coffee {
  position: absolute;
  right: 12%;
  top: 24%;
  width: 70px;
}

.desk-coffee-shape {
  display: block;
  width: 70px;
  height: 70px;
  border: 8px solid #ffffff;
  border-radius: 999px;
  background: #6f4a2d;
}

.desk-mouse {
  left: 57%;
  bottom: 22%;
  width: 82px;
  transform: rotate(-8deg);
}

.desk-mouse-shape {
  display: block;
  width: 76px;
  height: 48px;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(90deg, #eef1f2 49%, #d6dcdf 50%);
  box-shadow: inset 0 -8px 0 rgba(25, 23, 20, 0.06);
}

.desk-calendar-note {
  left: 7%;
  top: 17%;
  width: 180px;
  transform: rotate(3deg);
}

.desk-calendar {
  display: grid;
  gap: 6px;
  border: 1px solid #d8d0c4;
  border-top: 12px solid #b95f3b;
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: #fffdf8;
}

.desk-calendar b,
.desk-calendar small {
  display: block;
}

.desk-calendar small {
  color: var(--muted);
}

.desk-pen {
  left: 24%;
  bottom: 12%;
  width: 138px;
  transform: rotate(19deg);
}

.desk-pen-shape {
  display: block;
  width: 130px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, #172529 0 18%, #50a605 18% 82%, #dfe7df 82%);
}

.desk-plant {
  right: 6%;
  top: 8%;
  width: 95px;
}

.desk-plant-shape {
  position: relative;
  display: block;
  width: 84px;
  height: 96px;
}

.desk-plant-shape::before {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 0;
  width: 48px;
  height: 38px;
  border-radius: 0 0 12px 12px;
  background: #c56f43;
}

.desk-plant-shape i,
.desk-plant-shape::after {
  content: "";
  position: absolute;
  border-radius: 999px 999px 0 999px;
  background: #50a605;
}

.desk-plant-shape i {
  left: 6px;
  top: 14px;
  width: 44px;
  height: 54px;
  transform: rotate(-28deg);
}

.desk-plant-shape::after {
  right: 4px;
  top: 8px;
  width: 48px;
  height: 58px;
  transform: rotate(34deg);
}

.engine-visual-note {
  margin: 0 18px 18px;
  border: 1px solid rgba(80, 166, 5, 0.24);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(80, 166, 5, 0.08);
  font-weight: 720;
}

@media (max-width: 1180px) {
  .engine-surface--outlook {
    grid-template-columns: 52px 170px minmax(0, 1fr);
  }

  .outlook-list {
    display: none;
  }
}

@media (max-width: 1100px) {
  .engine-phone-context,
  .browser-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .engine-context {
    margin: 14px;
  }

  .engine-phone-context,
  .engine-surface--outlook,
  .engine-surface--teams {
    grid-template-columns: 1fr;
  }

  .outlook-appbar,
  .outlook-folders,
  .teams-sidebar {
    display: none;
  }

  .outlook-reading,
  .browser-page,
  .teams-messages {
    padding: 14px;
  }

  .mail-from-hotspot,
  .mail-text-hotspot,
  .mail-action-hotspot,
  .mail-attachment-hotspot,
  .browser-address-hotspot,
  .browser-input-hotspot {
    grid-template-columns: minmax(0, 1fr);
  }

  .mail-risk-lens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engine-secured-badge {
    width: fit-content;
  }

  .browser-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .browser-nav {
    display: none;
  }

  .desk-scene {
    grid-template-rows: auto minmax(620px, 1fr);
  }

  .desk-back-wall {
    display: grid;
  }

  .desk-back-wall strong {
    text-align: left;
  }

  .desk-table {
    min-height: 620px;
  }

  .desk-hotspot {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    margin: 14px;
    transform: none;
  }

  .desk-keyboard,
  .desk-coffee,
  .desk-mouse,
  .desk-calendar-note,
  .desk-pen,
  .desk-plant {
    display: grid;
  }
}

/* Escape-map visual pass: make the overview feel like a case room while keeping the light Paragamix layout. */
.map-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.mission-map {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(246, 241, 233, 0.92));
}

.chapter-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 20px;
}

.chapter-card {
  display: grid;
  gap: 5px;
  min-height: 96px;
  border: 1px solid rgba(25, 23, 20, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.84);
  color: var(--muted);
}

.chapter-card span,
.chapter-card small {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.chapter-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.chapter-card.active {
  border-color: rgba(80, 166, 5, 0.44);
  background: rgba(245, 251, 240, 0.92);
}

.chapter-card.complete {
  color: #31563a;
  border-color: rgba(80, 166, 5, 0.52);
  background: rgba(80, 166, 5, 0.1);
}

.escape-map-board {
  position: relative;
  display: block;
  min-height: 1040px;
  border: 1px solid rgba(25, 23, 20, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.78), rgba(255, 253, 248, 0.42)),
    linear-gradient(180deg, rgba(246, 241, 233, 0.1), rgba(246, 241, 233, 0.78)),
    url("https://cyber.paragamix.com/assets/awareness/incident-room.png") center / cover,
    #f6f1e9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48), 0 24px 70px rgba(25, 23, 20, 0.12);
  overflow: hidden;
}

.escape-map-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(80, 166, 5, 0.1), transparent 17%),
    radial-gradient(circle at 82% 26%, rgba(185, 95, 59, 0.1), transparent 20%),
    linear-gradient(rgba(25, 23, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 23, 20, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  pointer-events: none;
}

.escape-map-board::after {
  content: "Einsatzkarte";
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: rgba(25, 23, 20, 0.34);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.escape-map-board .route-lines {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.escape-map-board .route-lines path {
  stroke: rgba(80, 166, 5, 0.56);
  stroke-width: 0.9;
  stroke-dasharray: 4 5;
  filter: drop-shadow(0 2px 6px rgba(80, 166, 5, 0.22));
}

.map-node,
.node-1,
.node-2,
.node-3,
.node-4,
.node-5,
.node-6,
.node-7,
.node-8,
.node-9,
.node-10,
.node-11,
.node-12,
.node-13,
.node-14,
.node-15,
.node-16 {
  position: absolute;
  z-index: 2;
  inset: auto;
  width: clamp(176px, 20vw, 238px);
  min-height: 136px;
}

.node-1 { left: 4%; top: 5%; }
.node-2 { left: 36%; top: 4%; }
.node-3 { right: 4%; top: 8%; }
.node-4 { left: 6%; top: 24%; }
.node-5 { left: 38%; top: 22%; }
.node-6 { right: 6%; top: 27%; }
.node-7 { left: 4%; top: 43%; }
.node-8 { left: 36%; top: 41%; }
.node-9 { right: 5%; top: 45%; }
.node-10 { left: 6%; top: 63%; }
.node-11 { left: 38%; top: 61%; }
.node-12 { right: 6%; top: 65%; }
.node-13 { left: 4%; bottom: 5%; }
.node-14 { left: 36%; bottom: 4%; }
.node-15 { right: 5%; bottom: 6%; }
.node-16 { right: 5%; bottom: 6%; }

.map-station,
.map-station.done,
.map-station:not(.done):not(.locked),
.map-station.locked {
  grid-template-rows: auto auto auto 1fr;
  gap: 7px;
  min-height: 136px;
  padding: 14px;
  border: 1px solid rgba(25, 23, 20, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  box-shadow: 0 16px 35px rgba(25, 23, 20, 0.14);
  backdrop-filter: blur(8px);
}

.map-station::before {
  content: "";
  display: block;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(25, 23, 20, 0.28);
  box-shadow: 0 0 0 5px rgba(25, 23, 20, 0.06);
}

.map-station:not(.done):not(.locked) {
  border-color: rgba(185, 95, 59, 0.64);
  background: rgba(255, 249, 242, 0.94);
  box-shadow: 0 18px 42px rgba(185, 95, 59, 0.18);
}

.map-station:not(.done):not(.locked)::before {
  background: var(--warn);
  box-shadow: 0 0 0 6px rgba(185, 95, 59, 0.12);
}

.map-station.done {
  border-color: rgba(80, 166, 5, 0.5);
  background: rgba(244, 250, 239, 0.94);
}

.map-station.done::before {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(80, 166, 5, 0.13);
}

.map-station.locked {
  color: rgba(25, 23, 20, 0.62);
  background: rgba(243, 238, 230, 0.82);
  box-shadow: 0 12px 28px rgba(25, 23, 20, 0.08);
}

.map-station .station-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.map-station strong {
  font-size: 18px;
  line-height: 1.12;
}

.map-station span:last-child {
  font-size: 13px;
  line-height: 1.3;
}

@media (max-width: 1080px) {
  .map-layout {
    grid-template-columns: 1fr;
  }

  .chapter-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .escape-map-board {
    min-height: 1140px;
  }

  .map-node,
  .node-1,
  .node-2,
  .node-3,
  .node-4,
  .node-5,
  .node-6,
  .node-7,
  .node-8,
  .node-9,
  .node-10,
  .node-11,
  .node-12,
  .node-13,
  .node-14,
  .node-15,
  .node-16 {
    width: min(42vw, 260px);
  }
}

@media (max-width: 760px) {
  .chapter-strip {
    grid-template-columns: 1fr;
  }

  .escape-map-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 14px;
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(246, 241, 233, 0.94)),
      url("https://cyber.paragamix.com/assets/awareness/incident-room.png") center / cover,
      #f6f1e9;
  }

  .escape-map-board::after,
  .escape-map-board .route-lines {
    display: none;
  }

  .map-node,
  .node-1,
  .node-2,
  .node-3,
  .node-4,
  .node-5,
  .node-6,
  .node-7,
  .node-8,
  .node-9,
  .node-10,
  .node-11,
  .node-12,
  .node-13,
  .node-14,
  .node-15,
  .node-16 {
    position: relative;
    inset: auto;
    width: auto;
  }
}

/* Typography hierarchy. */
.map-header h2,
.room-title h2,
.result-card h2,
.quiz-briefing h2 {
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 760;
  line-height: 0.98;
}

.outlook-reading-head h3 {
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 760;
  line-height: 1.04;
}

.engine-panel .kai-chat-card strong,
.guide-card strong,
.task-card strong {
  font-weight: 760;
}

.site-brand,
.nav-links,
.language-switch,
.mini-label,
.eyebrow,
.progress-pill,
.engine-secured-badge,
.node-index {
  font-weight: 760;
}

.command-brand strong,
.metric strong,
.map-station strong,
.outlook-folders strong,
.outlook-folders button,
.mail-list-item strong,
.mail-list-item b,
.teams-sidebar strong,
.teams-contact b,
.teams-bubble .teams-sender,
.desk-back-wall strong,
.juicy-complete-panel strong {
  font-weight: 760;
}

.primary,
.secondary,
.ghost,
.decision-button,
.engine-choice,
.engine-real-hotspot,
.quiz-option {
  font-weight: 720;
}

/* MiniGame engine pilot: QR scanner. */
.mini-game {
  min-height: 620px;
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 18%, rgba(80, 166, 5, 0.12), transparent 28%),
    linear-gradient(135deg, #fffdf8, #f4efe7);
  overflow: hidden;
}

.qr-workbench {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(260px, 0.78fr) minmax(230px, 0.58fr);
  gap: 18px;
  min-height: 620px;
  padding: 22px;
  align-items: stretch;
}

.qr-scene-board,
.qr-scanner-device,
.qr-report-dock {
  border: 1px solid #d8d0c4;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 18px 42px rgba(25, 23, 20, 0.12);
}

.qr-scene-board {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(25, 23, 20, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(25, 23, 20, 0.035) 1px, transparent 1px),
    #fbf8f2;
  background-size: 34px 34px;
}

.qr-scene-board strong {
  max-width: 100%;
  color: #191714;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.02;
}

.qr-sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.qr-sticker {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: start;
  min-width: 0;
  min-height: 190px;
  border: 2px solid #d8d0c4;
  border-radius: 8px;
  padding: 14px;
  color: #191714;
  background: #fffdf8;
  text-align: left;
  box-shadow: 0 14px 28px rgba(25, 23, 20, 0.11);
  cursor: pointer;
  overflow: hidden;
}

.qr-sticker::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 54px;
  height: 18px;
  border: 1px solid rgba(25, 23, 20, 0.08);
  border-radius: 4px;
  background: rgba(216, 208, 196, 0.72);
  transform: translateX(-50%) rotate(-2deg);
}

.qr-sticker.scanned {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(80, 166, 5, 0.14), 0 18px 34px rgba(25, 23, 20, 0.15);
}

.qr-sticker.reported {
  background: #ecf8ef;
}

.qr-sticker-code {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 100%;
  max-width: 96px;
  aspect-ratio: 1;
  border: 8px solid #191714;
  padding: 8px;
  background: #fff;
}

.qr-sticker-code i {
  display: block;
  background: #191714;
}

.qr-sticker-code i:nth-child(2),
.qr-sticker-code i:nth-child(5) {
  opacity: 0.22;
}

.qr-sticker b {
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1.04;
}

.qr-sticker small {
  color: #6c756f;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 760;
}

.qr-scanner-device {
  align-self: center;
  display: grid;
  gap: 12px;
  border: 12px solid #191714;
  border-radius: 36px;
  padding: 18px;
  background: #fbf8f2;
}

.qr-device-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #191714;
  font-weight: 800;
}

.qr-device-top i {
  width: 60px;
  height: 6px;
  border-radius: 999px;
  background: #9a948b;
}

.qr-reader-window {
  position: relative;
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 210px;
  border: 2px solid #d8d0c4;
  border-radius: 18px;
  padding: 20px;
  background: #fffdf8;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 28%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.78;
  animation: qrScanLine 2s ease-in-out infinite;
}

.qr-reader-window b {
  position: relative;
  z-index: 1;
  color: #191714;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.qr-reader-window p {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow-wrap: anywhere;
  color: #49534d;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.3;
  font-weight: 700;
}

.qr-reader-signal {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 12px;
  color: #191714;
  background: #eef1ea;
  font-weight: 850;
}

.signal-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #9a948b;
}

.signal-dot.safe {
  background: var(--accent);
}

.signal-dot.danger {
  background: #d99228;
}

.signal-dot.scanned {
  background: #9a948b;
}

.qr-device-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.qr-device-actions button,
.qr-report-dock button {
  min-height: 58px;
  border: 2px solid #d8d0c4;
  border-radius: 999px;
  color: #191714;
  background: #fffdf8;
  font-size: 17px;
  font-weight: 850;
}

.qr-device-actions button.selected {
  border-color: #d04a3a;
  background: #fff2ef;
}

.qr-device-actions button:disabled,
.qr-report-dock button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.qr-report-dock {
  align-self: center;
  display: grid;
  gap: 12px;
  min-height: 330px;
  padding: 20px;
  background: #f8f4ed;
}

.qr-report-dock.available {
  border-color: rgba(80, 166, 5, 0.45);
  background: #f2f9ee;
}

.qr-report-dock.done {
  border-color: var(--accent);
  background: #e8f6df;
}

.qr-report-dock strong {
  color: #191714;
  font-size: clamp(25px, 2.7vw, 38px);
  line-height: 1;
}

.qr-report-dock p {
  margin: 0;
  color: #4e5b52;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 720;
}

.qr-report-dock button:not(:disabled) {
  border-color: var(--accent);
  color: #fffdf8;
  background: #191714;
}

@keyframes qrScanLine {
  0%,
  100% {
    transform: translateY(-54px);
  }
  50% {
    transform: translateY(90px);
  }
}

@media (max-width: 980px) {
  .mini-game {
    min-height: auto;
  }

  .qr-workbench {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 14px;
  }

  .qr-sticker-grid {
    grid-template-columns: 1fr;
  }

  .qr-sticker {
    min-height: 150px;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
  }

  .qr-sticker small {
    grid-column: 2;
  }

  .qr-scanner-device {
    width: min(100%, 420px);
    justify-self: center;
  }
}

/* Dokumentenklassifizierung overhaul: distributed document field instead of stacked falling objects. */
.classification-stage {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100%;
  min-height: 820px;
  color: #fffdf8;
}

.classification-stage .juicy-game-field {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  color: #fffdf8;
  background:
    linear-gradient(180deg, rgba(12, 18, 17, 0.62), rgba(12, 18, 17, 0.88)),
    radial-gradient(circle at 22% 18%, rgba(80, 166, 5, 0.22), transparent 30%),
    linear-gradient(135deg, #171510, #24241f);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.1);
}

.classification-stage .juice-meter {
  position: absolute;
  z-index: 7;
  top: 22px;
  left: 22px;
  width: min(420px, calc(100% - 44px));
  padding: 18px 20px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  color: #fffdf8;
  background: rgba(25, 23, 20, 0.76);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

.classification-stage .juice-meter strong {
  display: block;
  color: #fffdf8;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.95;
}

.classification-stage .juice-meter p {
  max-width: 34ch;
  margin: 8px 0 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 680;
}

.classification-stage .fruit-orchard {
  position: absolute;
  inset: 0 0 260px 0;
  overflow: hidden;
}

.classification-stage .fruit-orchard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 253, 248, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.28;
}

.classification-radar {
  position: absolute;
  inset: 116px 5% 32px;
  border: 1px dashed rgba(255, 253, 248, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 54% 44%, rgba(80, 166, 5, 0.16), transparent 28%),
    radial-gradient(circle at 76% 68%, rgba(255, 253, 248, 0.08), transparent 24%);
  pointer-events: none;
}

.classification-stage .catch-line {
  display: none;
}

.classification-stage .juicy-fruit.doc-flight-card {
  position: absolute;
  z-index: 4;
  left: clamp(132px, var(--x), calc(100% - 132px));
  top: clamp(142px, var(--y), calc(100% - 84px));
  width: clamp(178px, 18vw, 260px);
  min-height: 120px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid rgba(255, 253, 248, 0.82);
  border-radius: 8px;
  color: #191714;
  background:
    linear-gradient(180deg, #fffdf8, #f2eee7);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.24),
    0 0 0 10px rgba(255, 253, 248, 0.04);
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--rot));
  animation: classificationDrift var(--speed, 6.5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.classification-stage .juicy-fruit.doc-flight-card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 8px;
  border-radius: 999px;
  background: rgba(25, 23, 20, 0.12);
}

.classification-stage .juicy-fruit.doc-flight-card.selected {
  z-index: 8;
  border-color: var(--accent);
  background: #f3fff0;
  box-shadow:
    0 0 0 6px rgba(80, 166, 5, 0.22),
    0 28px 54px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%) rotate(var(--rot)) scale(1.04);
}

.classification-stage .juicy-fruit.doc-flight-card.sorted {
  display: none;
}

.classification-stage .doc-paper-icon {
  grid-row: 1 / 3;
  width: 42px;
  height: 50px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 0 15%, rgba(25, 23, 20, 0.11) 15% 26%, transparent 26%),
    #191714;
  box-shadow: none;
}

.classification-stage .doc-paper-icon i {
  display: none;
}

.classification-stage .juicy-file-name {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #191714;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.05;
  font-weight: 880;
  overflow-wrap: anywhere;
}

.classification-stage .juicy-file-name span {
  display: block;
  min-width: 0;
}

.classification-stage .juicy-file-name em {
  justify-self: start;
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #191714;
  background: rgba(80, 166, 5, 0.16);
  font-style: normal;
  font-size: 0.84em;
  font-weight: 900;
  line-height: 1;
}

.classification-stage .juicy-fruit.doc-flight-card small {
  grid-column: 2;
  margin: 0;
  color: #5e655f;
  font-size: 13px;
  font-weight: 780;
}

.classification-stage .juicy-baskets {
  position: absolute;
  z-index: 9;
  left: 18px;
  right: 18px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.classification-stage .juicy-basket {
  min-height: 208px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 2px solid rgba(255, 253, 248, 0.22);
  border-radius: 8px;
  color: #fffdf8;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.09), rgba(255, 253, 248, 0.04)),
    rgba(25, 23, 20, 0.72);
  box-shadow: none;
}

.classification-stage .juicy-basket.drop-target {
  transform: translateY(-4px);
}

.classification-stage .juicy-basket strong {
  color: #fffdf8;
  font-size: 20px;
  line-height: 1.05;
}

.classification-stage .juicy-basket small,
.classification-stage .basket-empty {
  color: rgba(255, 253, 248, 0.68);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 760;
}

.classification-stage .juicy-basket div {
  display: grid;
  align-content: start;
  gap: 6px;
  max-height: 104px;
  overflow: auto;
}

.classification-stage .fruit-basket-icon {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.24);
}

.classification-stage .basket-public { border-color: rgba(80, 166, 5, 0.62); }
.classification-stage .basket-internal { border-color: rgba(217, 146, 40, 0.72); }
.classification-stage .basket-confidential { border-color: rgba(185, 95, 59, 0.72); }
.classification-stage .basket-secret { border-color: rgba(184, 79, 106, 0.78); }

.classification-stage .basket-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #191714;
  background: #ecfff1;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
}

.classification-stage .basket-file b {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.classification-stage .basket-file em {
  display: inline-flex;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 999px;
  color: #191714;
  background: rgba(25, 23, 20, 0.1);
  font-style: normal;
}

.classification-stage .juicy-complete-panel {
  z-index: 12;
  bottom: 260px;
  width: min(440px, calc(100% - 40px));
}

@keyframes classificationDrift {
  0%,
  100% {
    margin: 0;
  }
  50% {
    margin: -10px 0 0 12px;
  }
}

@media (max-width: 900px) {
  .classification-stage,
  .classification-stage .juicy-game-field {
    min-height: 1040px;
  }

  .classification-stage .fruit-orchard {
    bottom: 430px;
  }

  .classification-stage .juicy-baskets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .classification-stage .juicy-basket {
    min-height: 150px;
  }
}

@media (max-width: 620px) {
  .classification-stage,
  .classification-stage .juicy-game-field {
    min-height: 1260px;
  }

  .classification-stage .juice-meter {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: 14px;
  }

  .classification-stage .fruit-orchard {
    position: relative;
    inset: auto;
    min-height: auto;
    margin: 10px 10px 0;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 18px 12px;
  }

  .classification-radar {
    inset: 10px;
  }

  .classification-stage .juicy-fruit.doc-flight-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 128px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px 9px;
    padding: 12px;
    transform: none;
    animation: none;
  }

  .classification-stage .juicy-fruit.doc-flight-card.selected {
    transform: scale(1.02);
  }

  .classification-stage .doc-paper-icon {
    width: 34px;
    height: 42px;
  }

  .classification-stage .juicy-file-name {
    font-size: 15px;
  }

  .classification-stage .juicy-fruit.doc-flight-card small {
    font-size: 11px;
  }

  .classification-stage .juicy-baskets {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    margin: 12px 10px 14px;
  }
}

/* QR-Pruefung v2: clear scan -> decide -> report flow, no pre-solved labels. */
.qr-mini-game {
  min-height: auto;
  overflow: visible;
}

.qr-mini-game .qr-workbench {
  display: grid;
  grid-template-columns: minmax(520px, 1.05fr) minmax(330px, 0.72fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: center;
  min-height: 560px;
  padding: 28px;
}

.qr-mini-game .qr-scene-board {
  min-height: 500px;
  padding: clamp(20px, 2.4vw, 34px);
  gap: 14px;
}

.qr-mini-game .qr-scene-board strong {
  max-width: 620px;
  font-size: clamp(30px, 3.4vw, 58px);
  line-height: 0.96;
}

.qr-mini-game .qr-scene-board p {
  max-width: 560px;
  margin: 0;
  color: #4d574f;
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 680;
  line-height: 1.28;
}

.qr-mini-game .qr-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.qr-mini-game .qr-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  color: #191714;
  background: rgba(255, 253, 248, 0.74);
  font-size: clamp(12px, 0.92vw, 14px);
  font-weight: 760;
  line-height: 1.08;
}

.qr-mini-game .qr-steps b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fffdf8;
  background: #191714;
}

.qr-mini-game .qr-steps span {
  min-width: 0;
}

.qr-mini-game .qr-sticker-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 8px;
}

.qr-mini-game .qr-sticker {
  min-height: 238px;
  padding: 18px;
  align-content: start;
  justify-items: start;
  gap: 12px;
  overflow: visible;
}

.qr-mini-game .qr-sticker-code {
  width: 86px;
  max-width: 100%;
  border-width: 7px;
  padding: 7px;
}

.qr-mini-game .qr-sticker b {
  display: block;
  width: 100%;
  color: #191714;
  font-size: clamp(19px, 1.7vw, 30px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.qr-mini-game .qr-sticker small {
  display: block;
  width: 100%;
  color: #6b736d;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.2;
}

.qr-mini-game .qr-sticker.scanned {
  background: #f3fbef;
}

.qr-mini-game .qr-sticker.reported {
  background: #e9f7dd;
}

.qr-mini-game .qr-scanner-device {
  width: 100%;
  max-width: 430px;
  justify-self: center;
  gap: 16px;
  padding: 20px;
  border-width: 12px;
  box-shadow: 0 26px 60px rgba(25, 23, 20, 0.24);
}

.qr-mini-game .qr-reader-window {
  min-height: 220px;
  padding: 22px;
}

.qr-mini-game .qr-reader-window b {
  font-size: clamp(31px, 3.2vw, 52px);
}

.qr-mini-game .qr-reader-window p {
  font-size: clamp(17px, 1.35vw, 22px);
}

.qr-mini-game .qr-reader-signal {
  min-height: 54px;
  padding: 12px 14px;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.2;
}

.qr-mini-game .qr-report-dock {
  width: 100%;
  min-height: 260px;
  align-self: center;
  align-content: center;
  gap: 14px;
  padding: 22px;
}

.qr-mini-game .qr-report-dock strong {
  font-size: clamp(30px, 2.8vw, 46px);
  line-height: 0.98;
}

.qr-mini-game .qr-report-dock p {
  font-size: clamp(16px, 1.25vw, 20px);
}

.qr-mini-game .qr-report-dock button {
  min-height: 68px;
}

@media (max-width: 1320px) {
  .qr-mini-game .qr-workbench {
    grid-template-columns: minmax(480px, 1fr) minmax(300px, 0.72fr);
  }

  .qr-mini-game .qr-report-dock {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(720px, 100%);
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .qr-mini-game .qr-workbench {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .qr-mini-game .qr-scene-board {
    min-height: auto;
  }

  .qr-mini-game .qr-sticker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qr-mini-game .qr-sticker {
    min-height: 190px;
  }

  .qr-mini-game .qr-scanner-device,
  .qr-mini-game .qr-report-dock {
    max-width: 640px;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .qr-mini-game .qr-workbench {
    padding: 12px;
  }

  .qr-mini-game .qr-steps {
    grid-template-columns: 1fr;
  }

  .qr-mini-game .qr-steps li {
    border-radius: 8px;
  }

  .qr-mini-game .qr-sticker-grid {
    grid-template-columns: 1fr;
  }

  .qr-mini-game .qr-sticker {
    min-height: 132px;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
  }

  .qr-mini-game .qr-sticker-code {
    grid-row: 1 / span 2;
  }

  .qr-mini-game .qr-sticker small {
    grid-column: 2;
  }

  .qr-mini-game .qr-scanner-device {
    border-width: 9px;
    border-radius: 30px;
    padding: 16px;
  }

  .qr-mini-game .qr-reader-window {
    min-height: 170px;
  }
}

/* Rebuilt QR station: clear scan -> compare -> report flow */
.qr-rebuild {
  width: 100%;
}

.qr-rebuild-board {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(340px, 0.82fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: stretch;
  min-height: min(650px, 72vh);
}

.qr-wall,
.qr-phone-check,
.qr-evidence-box {
  border: 1px solid rgba(25, 23, 20, 0.16);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.92);
  color: #191714;
  box-shadow: 0 18px 54px rgba(25, 23, 20, 0.12);
}

.qr-wall {
  padding: clamp(20px, 2.2vw, 30px);
  background-image: linear-gradient(rgba(216, 208, 196, 0.28) 1px, transparent 1px), linear-gradient(90deg, rgba(216, 208, 196, 0.28) 1px, transparent 1px);
  background-size: 34px 34px;
}

.qr-wall > strong {
  display: block;
  max-width: 12ch;
  margin-top: 10px;
  font-size: clamp(2.1rem, 3.4vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.qr-wall > p {
  margin: 16px 0 0;
  max-width: 31ch;
  color: rgba(25, 23, 20, 0.72);
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.35;
}

.qr-poster-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 42px);
}

.qr-poster-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 18px;
  min-height: 142px;
  padding: 22px 18px 16px;
  border: 2px solid rgba(25, 23, 20, 0.2);
  border-radius: 12px;
  background: #fffdf8;
  color: #191714;
  text-align: left;
  box-shadow: 0 10px 20px rgba(25, 23, 20, 0.12);
  transform: rotate(var(--poster-rot, -1deg));
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.qr-poster-card:nth-child(2) { --poster-rot: 1deg; }
.qr-poster-card:nth-child(3) { --poster-rot: -0.5deg; }

.qr-poster-card:hover,
.qr-poster-card:focus-visible,
.qr-poster-card.active {
  transform: translateY(-4px) rotate(0deg);
  border-color: #50a605;
  box-shadow: 0 18px 34px rgba(80, 166, 5, 0.2);
}

.qr-poster-card.sent {
  background: #f1f8ec;
}

.poster-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 64px;
  height: 22px;
  border-radius: 4px;
  background: rgba(216, 208, 196, 0.72);
  transform: translateX(-50%) rotate(-2deg);
}

.qr-real-code {
  width: 94px;
  height: 94px;
  grid-row: 1 / span 3;
  margin: 0;
  padding: 7px;
  border: 4px solid #191714;
  background: #fffdf8;
  color: #191714;
  shape-rendering: crispEdges;
}

.qr-real-code rect:not([fill]) {
  fill: #191714;
}

.qr-poster-card b {
  display: block;
  font-size: clamp(1.35rem, 1.7vw, 1.85rem);
  line-height: 1.02;
  word-break: normal;
  overflow-wrap: break-word;
}

.qr-poster-card small {
  align-self: start;
  margin-top: 8px;
  color: rgba(25, 23, 20, 0.64);
  font-weight: 800;
}

.qr-poster-card em {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: rgba(25, 23, 20, 0.38);
  font-style: normal;
  font-weight: 900;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.qr-phone-check {
  display: grid;
  place-items: center;
  padding: clamp(18px, 2vw, 28px);
  background: linear-gradient(145deg, #191714, #26231f);
}

.qr-phone-shell {
  width: min(360px, 100%);
  border: 12px solid #11100e;
  border-radius: 36px;
  background: #fbf8f2;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.qr-phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 8px;
  color: #191714;
  font-weight: 900;
}

.qr-phone-status span {
  width: 58px;
  height: 6px;
  border-radius: 99px;
  background: rgba(25, 23, 20, 0.36);
}

.qr-phone-screen {
  margin: 12px 18px 0;
  min-height: 280px;
  padding: 24px;
  border: 2px solid #d8d0c4;
  border-radius: 24px;
  background: #fffdf8;
}

.qr-phone-screen > strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.95;
}

.qr-url-card {
  margin-top: 24px;
  padding: 18px;
  border-radius: 16px;
  background: #f4efe7;
  border: 1px solid #d8d0c4;
}

.qr-url-card span,
.qr-url-card small {
  display: block;
  color: #191714;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.qr-url-card span {
  font-size: clamp(1.25rem, 1.6vw, 1.65rem);
}

.qr-url-card small {
  margin-top: 4px;
  color: rgba(25, 23, 20, 0.62);
}

.qr-observation,
.qr-empty-scan {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #eef7e8;
  color: rgba(25, 23, 20, 0.78);
  font-weight: 800;
  line-height: 1.25;
}

.qr-phone-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 18px 20px;
}

.qr-phone-actions button {
  padding: 14px 8px;
  border: 2px solid #d8d0c4;
  border-radius: 999px;
  background: #fffdf8;
  color: #191714;
  text-align: center;
  font-weight: 900;
  cursor: pointer;
}

.qr-phone-actions button:hover:not(:disabled),
.qr-phone-actions button:focus-visible:not(:disabled) {
  border-color: #b95f3b;
  background: #fff2ed;
}

.qr-phone-actions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.qr-evidence-box {
  align-self: center;
  min-height: 280px;
  padding: clamp(22px, 2vw, 32px);
  background: #f1f8ec;
  border-color: rgba(80, 166, 5, 0.42);
}

.qr-evidence-box strong {
  display: block;
  margin-top: 16px;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 0.95;
}

.qr-evidence-box p {
  margin: 22px 0;
  color: rgba(25, 23, 20, 0.68);
  font-weight: 800;
  line-height: 1.25;
}

.qr-evidence-box button {
  width: 100%;
  padding: 18px;
  border: 2px solid #191714;
  border-radius: 999px;
  background: #191714;
  color: #fffdf8;
  font-weight: 950;
}

.qr-stamp-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.qr-stamp-actions button {
  min-height: 58px;
}

.qr-stamp-actions button + button {
  background: #fffdf8;
  color: #191714;
}

.qr-evidence-box button:disabled {
  opacity: 0.42;
}


.qr-action-column {
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
  grid-template-rows: 1fr auto;
}

.desk-keyboard {
  left: 39% !important;
  bottom: 9% !important;
  width: 230px !important;
  z-index: 1 !important;
}

.desk-keyboard-shape {
  height: 46px !important;
}

.desk-contract,
.desk-sticky-note,
.desk-id-badge,
.desk-usb-stick {
  z-index: 4;
}

@media (max-width: 900px) {
  .qr-rebuild-board {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .qr-action-column {
    grid-template-rows: auto auto;
  }
}
/* Rebuilt document classification: one focused document, stamp interaction */
.classification-stamp-stage {
  width: 100%;
}

.stamp-workbench {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(300px, 0.72fr);
  gap: clamp(18px, 2vw, 28px);
  min-height: min(640px, 72vh);
  color: #191714;
}

.stamp-current-document,
.stamp-review-panel {
  min-width: 0;
  border: 1px solid rgba(25, 23, 20, 0.16);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 52px rgba(25, 23, 20, 0.12);
}

.stamp-current-document {
  display: grid;
  align-content: start;
  padding: clamp(20px, 2.5vw, 34px);
  background-image: linear-gradient(rgba(216, 208, 196, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(216, 208, 196, 0.22) 1px, transparent 1px);
  background-size: 34px 34px;
}

.stamp-progress {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: clamp(18px, 2.2vw, 30px);
}

.stamp-progress strong {
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 0.9;
}

.stamp-progress i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 8px;
  max-width: 100%;
  border-radius: 999px;
  background: #50a605;
  transition: width 180ms ease;
}

.document-sheet {
  position: relative;
  display: grid;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 10px;
  min-height: 250px;
  padding: clamp(24px, 3vw, 44px);
  border: 2px solid #d8d0c4;
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 16px 38px rgba(25, 23, 20, 0.12);
}

.document-corner {
  position: absolute;
  right: 0;
  top: 0;
  width: 58px;
  height: 58px;
  border-left: 2px solid #d8d0c4;
  border-bottom: 2px solid #d8d0c4;
  border-bottom-left-radius: 16px;
  background: #f4efe7;
}

.document-sheet small {
  color: rgba(25, 23, 20, 0.5);
  font-weight: 950;
  text-transform: uppercase;
}

.document-sheet strong {
  min-width: 0;
  max-width: calc(100% - 68px);
  font-size: clamp(1.65rem, 2.8vw, 3.6rem);
  line-height: 1;
  overflow-wrap: break-word;
  hyphens: auto;
}

.classification-stamp-stage .document-sheet strong {
  hyphens: none;
  word-break: normal;
  overflow-wrap: anywhere;
}

.document-sheet em {
  justify-self: start;
  padding: 9px 16px;
  border-radius: 999px;
  background: #191714;
  color: #fffdf8;
  font-style: normal;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 950;
}

.document-sheet p {
  margin: 8px 0 0;
  color: rgba(25, 23, 20, 0.68);
  font-weight: 800;
}

.document-sheet .classification-item-hint {
  margin-top: 4px;
  padding: 12px 14px;
  border-left: 4px solid #32c8a0;
  border-radius: 12px;
  background: rgba(50, 200, 160, 0.1);
  color: rgba(25, 23, 20, 0.78);
  font-size: clamp(0.96rem, 1.35vw, 1.12rem);
  line-height: 1.25;
}

.classification-rule-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(14px, 1.6vw, 20px);
}

.classification-rule-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(25, 23, 20, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.84);
  color: #191714;
}

.classification-rule-card span {
  width: 16px;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  color: transparent;
}

.classification-rule-card strong {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.05;
  overflow-wrap: break-word;
}

.classification-rule-card small {
  color: rgba(25, 23, 20, 0.66);
  font-weight: 850;
  line-height: 1.15;
}

.classification-rule-card.rule-secret,
.classification-rule-card.rule-confidential {
  border-color: rgba(206, 62, 70, 0.52);
  background: rgba(206, 62, 70, 0.08);
}

.classification-rule-card.rule-internal {
  border-color: rgba(223, 163, 30, 0.58);
  background: rgba(223, 163, 30, 0.1);
}

.classification-rule-card.rule-public {
  border-color: rgba(80, 166, 5, 0.5);
  background: rgba(80, 166, 5, 0.08);
}

.classification-rule-card.rule-secret span,
.classification-rule-card.rule-confidential span { background: #d33135; }
.classification-rule-card.rule-internal span { background: #dfa31e; }
.classification-rule-card.rule-public span { background: #50a605; }

.stamp-pad {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 12px;
  margin-top: clamp(18px, 2vw, 26px);
}

.classification-stamp {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 18px;
  border: 2px solid rgba(25, 23, 20, 0.18);
  border-radius: 18px;
  background: #fffdf8;
  color: #191714;
  text-align: left;
  box-shadow: 0 10px 24px rgba(25, 23, 20, 0.08);
}

.classification-stamp:hover,
.classification-stamp:focus-visible {
  transform: translateY(-2px);
  border-color: #50a605;
}

.classification-stamp span {
  font-size: clamp(1.15rem, 1.65vw, 1.7rem);
  font-weight: 950;
  line-height: 1.04;
  overflow-wrap: break-word;
}

.classification-stamp small {
  color: rgba(25, 23, 20, 0.58);
  font-weight: 850;
}

.stamp-public { border-color: rgba(80, 166, 5, 0.46); }
.stamp-internal { border-color: rgba(197, 150, 54, 0.58); }
.stamp-confidential { border-color: rgba(185, 95, 59, 0.58); }
.stamp-secret { border-color: rgba(184, 79, 106, 0.62); }
.stamp-neutral { border-color: rgba(25, 23, 20, 0.24); }

.stamp-review-panel {
  padding: clamp(18px, 2vw, 26px);
}

.stamp-review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.stamp-review-head button {
  padding: 10px 16px;
  border: 1px solid #191714;
  border-radius: 999px;
  background: transparent;
  color: #191714;
  font-weight: 900;
}

.stamp-review-list {
  display: grid;
  gap: 10px;
}

.stamp-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 14px;
  border: 1px solid rgba(25, 23, 20, 0.14);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
  color: #191714;
  text-align: left;
}

.stamp-review-row.active {
  border-color: #50a605;
  box-shadow: 0 0 0 3px rgba(80, 166, 5, 0.14);
}

.stamp-review-row.done {
  background: #f1f8ec;
}

.stamp-review-row.is-correct {
  border-color: rgba(80, 166, 5, 0.42);
  background: #f1f8ec;
}

.stamp-review-row.is-missing {
  border-color: rgba(238, 171, 75, 0.68);
  background: #fff8e9;
}

.stamp-review-row.is-wrong {
  border-color: rgba(184, 79, 79, 0.78);
  background: #fff1ec;
  box-shadow: 0 0 0 3px rgba(184, 79, 79, 0.13);
}

.stamp-review-row b {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
  hyphens: none;
}

.stamp-review-row b span {
  display: inline-block;
  margin-left: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #191714;
  color: #fffdf8;
  font-size: 0.78em;
}

.stamp-review-row em {
  color: rgba(25, 23, 20, 0.56);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.stamp-review-row.is-correct em {
  color: #3d7627;
}

.stamp-review-row.is-wrong em {
  color: #9f322d;
}

.stamp-review-row.is-missing em {
  color: #9c6824;
}

.stamp-complete-actions {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(25, 23, 20, 0.12);
}

.stamp-complete-actions p {
  margin: 0 0 14px;
  color: rgba(25, 23, 20, 0.7);
  font-weight: 800;
}

@media (max-width: 980px) {
  .qr-rebuild-board,
  .stamp-workbench {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .qr-poster-stack {
    grid-template-columns: 1fr;
  }

  .qr-poster-card {
    min-height: 160px;
    grid-template-columns: 76px 1fr;
    column-gap: 14px;
    align-items: center;
  }

  .qr-real-code {
    grid-row: span 2;
    width: 68px;
    height: 68px;
    margin: 0;
  }

  .qr-poster-card small {
    align-self: start;
  }

  .qr-evidence-box {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .classification-rule-cards {
    grid-template-columns: 1fr;
  }

  .stamp-pad {
    grid-template-columns: 1fr;
  }

  .document-sheet {
    min-height: 220px;
  }

  .stamp-review-row {
    grid-template-columns: 1fr;
  }
}


/* Stability pass 2026-06-23: map supports any station count and keeps actions visible. */
.escape-map-board {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  align-items: stretch !important;
  gap: 14px !important;
  min-height: auto !important;
  padding: clamp(18px, 2vw, 28px) !important;
  overflow: visible !important;
}

.escape-map-board .route-lines,
.escape-map-board::after {
  display: none !important;
}

.map-node,
[class*="node-"] {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: auto !important;
  min-height: 148px !important;
}

.map-station {
  display: grid !important;
  height: 100% !important;
}

.room-actions {
  position: sticky;
  bottom: 0;
  z-index: 30;
  padding-top: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(244, 239, 231, 0), var(--paper) 26%);
}

.start-countdown-button:disabled,
.room-actions .primary:disabled,
.side-panel .secondary:disabled {
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .escape-map-board {
    grid-template-columns: 1fr !important;
  }

  .map-node,
  [class*="node-"] {
    min-height: 126px !important;
  }

  .room-actions {
    grid-template-columns: 1fr;
  }
}

/* Focused mini-scenes for the previously generic stations */
.password-vault-stage,
.mobile-work-stage,
.permission-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(18px, 2.5vw, 34px);
  min-height: 560px;
}

.vault-control-panel,
.vault-decision-panel,
.travel-scene,
.protection-switches,
.permission-modal,
.permission-risk-column,
.permission-choice-board {
  border: 1px solid rgba(216, 208, 196, 0.24);
  border-radius: 26px;
  background: rgba(251, 248, 242, 0.08);
  padding: clamp(20px, 2.2vw, 32px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.vault-control-panel > strong,
.travel-scene > strong,
.permission-modal > strong,
.permission-choice-board > strong {
  display: block;
  max-width: 620px;
  color: #fffdf8;
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 0.98;
}

.vault-control-panel > p,
.travel-scene > p,
.permission-modal > p {
  max-width: 620px;
  color: rgba(236, 244, 241, 0.78);
  font-size: clamp(1rem, 1.45vw, 1.35rem);
}

.vault-finds-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.vault-find {
  min-height: 118px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  color: #fffdf8;
  text-align: left;
  padding: 16px;
  overflow-wrap: anywhere;
}

.vault-find svg {
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
}

.vault-find small,
.vault-door-pad small {
  display: block;
  margin-top: 6px;
  color: rgba(236, 244, 241, 0.68);
  font-weight: 800;
}

.vault-find.selected,
.vault-find.assigned {
  border-color: #50a605;
  box-shadow: 0 0 0 4px rgba(80, 166, 5, 0.16);
}

.vault-decision-panel {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.vault-door-pad {
  border: 2px solid rgba(255,255,255,0.16);
  border-radius: 26px;
  background: rgba(9, 24, 22, 0.7);
  color: #fffdf8;
  text-align: left;
  padding: 24px;
  overflow-wrap: anywhere;
}

.vault-door-pad.safe { border-color: rgba(80, 166, 5, 0.58); }
.vault-door-pad.risk { border-color: rgba(190, 71, 54, 0.58); }

.vault-door-pad span svg {
  width: 34px;
  height: 34px;
}

.vault-door-pad strong {
  display: block;
  margin-top: 16px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.vault-door-pad em {
  display: block;
  margin-top: 14px;
  color: rgba(236, 244, 241, 0.72);
  font-style: normal;
  line-height: 1.35;
}

.route-send { border-color: rgba(80, 166, 5, 0.58); }
.route-check { border-color: rgba(197, 150, 54, 0.58); }
.route-block { border-color: rgba(190, 71, 54, 0.58); }

.mobile-work-stage {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  color: #191714;
}

.travel-scene {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-color: rgba(25, 23, 20, 0.12);
  background:
    radial-gradient(circle at 72% 24%, rgba(80, 166, 5, 0.12), transparent 30%),
    linear-gradient(145deg, #fffdf8, #f3efe7);
  box-shadow: 0 18px 44px rgba(25, 23, 20, 0.08);
}

.mobile-work-stage .travel-scene .mini-label {
  color: #6c675f;
}

.mobile-work-stage .travel-scene > strong {
  color: #191714;
  max-width: 100%;
  padding-right: 0;
  font-size: clamp(1.85rem, 2.35vw, 2.8rem);
}

.mobile-work-stage .travel-scene > p {
  max-width: 58%;
  color: #5f665f;
}

.travel-window {
  position: absolute;
  right: 7%;
  top: 170px;
  display: grid;
  align-content: end;
  width: 26%;
  min-width: 190px;
  max-width: 260px;
  height: 135px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(23, 43, 43, 0.08), rgba(80,166,5,0.08)),
    repeating-linear-gradient(90deg, rgba(25,23,20,0.06) 0 1px, transparent 1px 32px),
    #eef3ea;
  border: 1px solid rgba(25, 23, 20, 0.1);
  padding: 22px;
  color: #243633;
}

.travel-window span,
.travel-window b {
  display: block;
}

.travel-window span {
  color: #6c675f;
  font-weight: 900;
}

.travel-window b {
  margin-top: 4px;
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  line-height: 1.05;
}

.travel-laptop {
  position: absolute;
  left: 10%;
  bottom: 10%;
  width: 50%;
  border-radius: 24px;
  background: #fbf8f2;
  color: #191714;
  padding: 24px;
  transform: rotate(-2deg);
  box-shadow: 0 28px 60px rgba(0,0,0,0.34);
}

.travel-laptop span {
  color: #5f665f;
  font-weight: 900;
}

.travel-laptop b {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 0.98;
}

.travel-laptop small {
  display: block;
  margin-top: 14px;
  color: #6c675f;
  font-weight: 850;
  line-height: 1.25;
}

.travel-risk {
  position: absolute;
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.9);
  color: #191714;
  font-weight: 1000;
  padding: 16px 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.24);
  border: 1px solid rgba(25, 23, 20, 0.1);
}

.travel-risk span,
.travel-risk b {
  display: block;
}

.travel-risk span {
  color: #c45a43;
  font-size: 0.9rem;
}

.travel-risk b {
  margin-top: 2px;
  color: #191714;
}

.travel-risk-shoulder {
  right: 12%;
  bottom: 21%;
}

.travel-risk-away {
  right: 11%;
  top: 54%;
}

.travel-safe-note {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 5%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  border: 1px solid rgba(47, 188, 154, 0.42);
  border-radius: 20px;
  background: #f2fbef;
  color: #18342f;
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(25, 23, 20, 0.08);
}

.travel-safe-note b {
  color: #2fbc9a;
}

.travel-safe-note span {
  color: #243633;
  font-weight: 850;
}

.protection-switches,
.permission-risk-column,
.permission-toggles {
  display: grid;
  gap: 12px;
  align-content: start;
}

.permission-modal {
  min-height: 500px;
  background:
    linear-gradient(145deg, rgba(251,248,242,0.12), rgba(80,166,5,0.06)),
    rgba(9,24,22,0.72);
}

.permission-toggles,
.permission-request-card {
  margin-top: 24px;
}

.permission-request-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 16px;
  color: #fffdf8;
  background: rgba(255, 255, 255, 0.08);
}

.permission-request-card svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

.permission-request-card b {
  display: block;
  font-size: 20px;
}

.permission-request-card small,
.permission-hint {
  color: rgba(236, 244, 241, 0.72);
  line-height: 1.35;
}

.permission-choice-board {
  display: grid;
  gap: 18px;
  align-content: start;
  background: rgba(31, 23, 20, 0.72);
}

.permission-mixed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.permission-mixed-grid .stage-action-button {
  min-height: 108px;
  align-content: center;
}

.permission-mixed-grid .stage-action-button:nth-child(7) {
  grid-column: 1 / -1;
}

.permission-risk-column {
  background: rgba(31, 23, 20, 0.72);
}

@media (max-width: 980px) {
  .password-vault-stage,
  .mobile-work-stage,
  .permission-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .vault-finds-grid {
    grid-template-columns: 1fr;
  }

.travel-scene {
    min-height: 520px;
  }

  .mobile-work-stage .travel-scene > strong,
  .mobile-work-stage .travel-scene > p {
    max-width: 100%;
  }

  .travel-window {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    min-height: 150px;
    margin-top: 18px;
  }

  .permission-mixed-grid {
    grid-template-columns: 1fr;
  }

  .permission-mixed-grid .stage-action-button:nth-child(7) {
    grid-column: auto;
  }
}

.intro-video-page {
  max-width: 1440px;
  display: grid;
  grid-template-columns: minmax(360px, 0.58fr) minmax(520px, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.intro-video-copy,
.intro-video-panel {
  min-width: 0;
}

.intro-video-copy h2 {
  max-width: 10ch;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.intro-video-page[data-interface-language="en"] {
  grid-template-columns: minmax(430px, 0.68fr) minmax(520px, 1fr);
}

.intro-video-page[data-interface-language="en"] .intro-video-copy h2 {
  max-width: 13ch;
  font-size: clamp(56px, 4.7vw, 80px);
  line-height: 0.96;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.intro-video-copy p {
  max-width: 34rem;
}

.intro-speaker-role {
  font-weight: 800;
  color: #191714;
}

.intro-video-panel {
  padding: clamp(14px, 2vw, 24px);
  border: 2px solid #191714;
  border-radius: 30px;
  background: #191714;
  box-shadow: 0 24px 60px rgba(25, 23, 20, 0.2);
}

.intro-video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 22px;
  background: #191714;
}

.video-fallback {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(251, 248, 242, 0.2);
  border-radius: 16px;
  background: rgba(251, 248, 242, 0.08);
  color: #fffdf8;
}

.code-required-screen {
  position: relative;
}

.standalone-language-slot {
  position: absolute;
  top: clamp(18px, 2.5vw, 34px);
  right: clamp(18px, 4vw, 56px);
  z-index: 5;
}

.standalone-language-slot .language-switch {
  box-shadow: 0 14px 36px rgba(25, 23, 20, 0.12);
}

.video-fallback[hidden] {
  display: none;
}

.video-fallback strong {
  font-size: 15px;
  line-height: 1.25;
}

.video-fallback span {
  color: rgba(255, 253, 248, 0.78);
  font-size: 14px;
  line-height: 1.4;
}

.video-player-failed {
  min-height: 220px;
  opacity: 0.92;
}

.video-start-failed {
  border-color: rgba(255, 255, 255, 0.34) !important;
  background: rgba(251, 248, 242, 0.72) !important;
}

.intro-video-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.intro-video-actions button {
  min-width: 180px;
  min-height: 54px;
  padding: 0 24px;
  border-width: 2px;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 900;
}

.intro-video-actions .primary {
  background: #fffdf8;
  color: #191714;
  border-color: #fffdf8;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.intro-video-actions .primary:hover:not(:disabled) {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.intro-video-panel .intro-video-actions .secondary {
  background: #80dfbd;
  color: #07120f;
  border-color: #80dfbd;
  box-shadow: 0 14px 30px rgba(41, 179, 143, 0.24);
}

.intro-video-panel .intro-video-actions .secondary:hover:not(:disabled) {
  background: #a0ebd1;
  border-color: #a0ebd1;
  transform: translateY(-1px);
}

.intro-video-panel .intro-video-actions .secondary:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.intro-video-panel .intro-video-actions .secondary:disabled {
  opacity: 1;
  background: #e5e2dc;
  color: #6b6761;
  border-color: #c7c2ba;
  box-shadow: none;
}

/* Video gates: exactly one action is visually primary at a time. */
.intro-video-panel .intro-video-actions .is-current-step {
  color: #07120f;
  background: #80dfbd;
  border-color: #80dfbd;
  box-shadow: 0 14px 30px rgba(41, 179, 143, 0.28);
}

.intro-video-panel .intro-video-actions .is-current-step:hover:not(:disabled) {
  color: #07120f;
  background: #a0ebd1;
  border-color: #a0ebd1;
  transform: translateY(-1px);
}

.intro-video-panel .intro-video-actions .video-play-action:not(.is-current-step) {
  color: #fffdf8;
  background: transparent;
  border-color: rgba(255, 253, 248, 0.72);
  box-shadow: none;
}

.intro-video-panel .intro-video-actions .video-play-action:not(.is-current-step):hover {
  color: #07120f;
  background: #fffdf8;
  border-color: #fffdf8;
}

.intro-video-panel .intro-video-actions .video-continue-action:disabled {
  opacity: 1;
  color: #77736d;
  background: #d8d4ce;
  border-color: #aaa59e;
  box-shadow: none;
  cursor: not-allowed;
}

.kai-learning-page {
  grid-template-columns: minmax(420px, 0.62fr) minmax(620px, 1fr);
  align-items: center;
}

.kai-learning-page .intro-video-copy h2 {
  max-width: 15ch;
  font-size: clamp(44px, 4.8vw, 78px);
  line-height: 0.98;
  overflow-wrap: normal;
  word-break: normal;
}

.kai-learning-page .intro-video-panel {
  position: relative;
  z-index: 1;
}

@media (max-width: 1180px) {
  .intro-video-page,
  .kai-learning-page,
  .intro-video-page[data-interface-language="en"] {
    grid-template-columns: 1fr;
  }

  .kai-learning-page .intro-video-copy h2,
  .intro-video-copy h2 {
    max-width: 14ch;
  }
}

.intro-video-page[data-force-language="de"].kai-learning-page {
  grid-template-columns: minmax(360px, 0.52fr) minmax(620px, 1fr);
}

.intro-video-page[data-force-language="de"] .intro-video-copy h2 {
  max-width: 16ch;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.intro-video-page[data-force-language="de"].kai-learning-page .intro-video-copy h2 {
  font-size: clamp(42px, 4.2vw, 70px);
  line-height: 1;
}

.intro-video-page[data-force-language="de"] .intro-video-copy p {
  max-width: 38rem;
}

@media (max-width: 1180px) {
  .intro-video-page[data-force-language="de"].kai-learning-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .intro-video-page {
    grid-template-columns: 1fr;
  }

  .intro-video-copy h2 {
    max-width: 12ch;
  }

  .intro-video-panel {
    padding: 10px;
    border-radius: 24px;
  }

  .intro-video-player {
    border-radius: 16px;
    min-height: 190px;
  }

  .intro-video-actions {
    flex-direction: column;
  }

  .intro-video-actions button {
    width: 100%;
  }
}

/* Overview cleanup: station cards use color and text only, no decorative blobs. */
.escape-map-board .map-station,
.escape-map-board .map-station.done,
.escape-map-board .map-station.locked,
.escape-map-board .map-station:not(.done):not(.locked) {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto auto auto 1fr !important;
  align-content: start !important;
  gap: 10px !important;
  min-height: 184px !important;
  padding: 18px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #fffdf8 !important;
  box-shadow: 0 12px 28px rgba(25, 23, 20, 0.1) !important;
}

.escape-map-board .map-station::before,
.escape-map-board .map-station::after {
  content: none !important;
  display: none !important;
}

.escape-map-board .map-station.done {
  border-color: rgba(80, 166, 5, 0.5) !important;
  background: #f3fbef !important;
}

.escape-map-board .map-station:not(.done):not(.locked) {
  border-color: rgba(185, 95, 59, 0.52) !important;
  background: #fff8ef !important;
}

.escape-map-board .map-station.locked {
  border-color: rgba(25, 23, 20, 0.12) !important;
  background: #f2eee6 !important;
  opacity: 0.72 !important;
}

.escape-map-board .map-station .station-icon {
  position: relative !important;
  z-index: 1 !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 8px !important;
  color: #191714 !important;
  background: #e9e1d5 !important;
}

.escape-map-board .map-station.done .station-icon {
  color: #ffffff !important;
  background: #50a605 !important;
}

.escape-map-board .map-station:not(.done):not(.locked) .station-icon {
  color: #ffffff !important;
  background: #c56f43 !important;
}

.escape-map-board .map-station.locked .station-icon {
  color: #6c6860 !important;
  background: #d8d0c4 !important;
}

.escape-map-board .map-station .station-icon svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

.escape-map-board .map-station .node-index,
.escape-map-board .map-station.done .node-index,
.escape-map-board .map-station:not(.done):not(.locked) .node-index,
.escape-map-board .map-station.locked .node-index {
  width: fit-content !important;
  margin: 2px 0 0 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  color: #191714 !important;
  background: #ece5da !important;
}

.escape-map-board .map-station.done .node-index {
  background: rgba(80, 166, 5, 0.18) !important;
}

.escape-map-board .map-station:not(.done):not(.locked) .node-index {
  background: rgba(197, 111, 67, 0.18) !important;
}

.escape-map-board .map-station strong,
.escape-map-board .map-station span {
  position: relative !important;
  z-index: 1 !important;
}

/* Mission overview: cleaner status map, no chapter cards or placeholder shapes. */
.map-layout .chapter-strip {
  display: none !important;
}

.map-layout {
  max-width: 1480px !important;
}

.mission-map {
  gap: 18px !important;
}

.escape-map-board,
.escape-map-board::before {
  background-image:
    linear-gradient(180deg, rgba(251, 248, 242, 0.84), rgba(244, 239, 231, 0.74)),
    url("https://cyber.paragamix.com/assets/awareness/situation-room.png") !important;
  background-size: cover !important;
  background-position: center !important;
}

.escape-map-board {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
  gap: 18px !important;
  min-height: auto !important;
  padding: 26px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(25, 23, 20, 0.16) !important;
  overflow: hidden !important;
}

.escape-map-board::before,
.escape-map-board::after,
.escape-map-board .route-lines {
  display: none !important;
  content: none !important;
}

.escape-map-board .map-station,
.escape-map-board .map-station.done,
.escape-map-board .map-station.locked,
.escape-map-board .map-station:not(.done):not(.locked) {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  min-height: 176px !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 18px !important;
  border-radius: 8px !important;
  border: 2px solid rgba(25, 23, 20, 0.14) !important;
  background: rgba(255, 253, 248, 0.92) !important;
  color: #191714 !important;
  opacity: 1 !important;
  box-shadow: 0 18px 34px rgba(25, 23, 20, 0.12) !important;
  overflow: hidden !important;
}

.escape-map-board .map-station::before,
.escape-map-board .map-station::after,
.escape-map-board .map-station.done::before,
.escape-map-board .map-station.done::after,
.escape-map-board .map-station.locked::before,
.escape-map-board .map-station.locked::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: none !important;
}

.escape-map-board .map-station.done {
  border-color: rgba(80, 166, 5, 0.62) !important;
  background: rgba(243, 251, 239, 0.94) !important;
}

.escape-map-board .map-station:not(.done):not(.locked) {
  border-color: rgba(197, 111, 67, 0.72) !important;
  background: rgba(255, 248, 239, 0.96) !important;
}

.escape-map-board .map-station.locked {
  border-color: rgba(25, 23, 20, 0.12) !important;
  background: rgba(244, 239, 231, 0.78) !important;
  color: rgba(25, 23, 20, 0.58) !important;
  box-shadow: none !important;
}

.escape-map-board .map-station > * {
  position: relative !important;
  z-index: 2 !important;
}

.escape-map-board .map-station .station-icon {
  flex: 0 0 auto !important;
}

.escape-map-board .map-station strong {
  margin-top: auto !important;
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 0.96 !important;
  letter-spacing: 0 !important;
}

.escape-map-board .map-station span:last-child {
  font-size: 17px !important;
  line-height: 1.2 !important;
  color: currentColor !important;
}

@media (max-width: 1100px) {
  .escape-map-board {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .escape-map-board {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
  }

  .escape-map-board .map-station,
  .escape-map-board .map-station.done,
  .escape-map-board .map-station.locked,
  .escape-map-board .map-station:not(.done):not(.locked) {
    min-height: 148px !important;
  }
}

/* Mission overview v2: compact route, independent from legacy map-card styles. */
.mission-route-board {
  position: relative;
  display: grid;
  gap: 12px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(25, 23, 20, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(251, 248, 242, 0.9), rgba(244, 239, 231, 0.82)),
    url("https://cyber.paragamix.com/assets/awareness/situation-room.png");
  background-position: center;
  background-size: cover;
  box-shadow: 0 24px 60px rgba(25, 23, 20, 0.12);
  overflow: hidden;
}

.mission-route-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 23, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 23, 20, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.mission-route-step {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 52px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid rgba(25, 23, 20, 0.14);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.94);
  color: #191714;
  text-align: left;
  box-shadow: 0 12px 28px rgba(25, 23, 20, 0.1);
  cursor: pointer;
}

.mission-route-step.is-active {
  border-color: rgba(197, 111, 67, 0.72);
  background: #fff8ef;
}

.mission-route-step.is-done {
  border-color: rgba(80, 166, 5, 0.64);
  background: #f3fbef;
}

.mission-route-step.is-locked {
  border-color: rgba(25, 23, 20, 0.1);
  background: rgba(242, 238, 230, 0.84);
  color: rgba(25, 23, 20, 0.62);
  box-shadow: none;
  cursor: not-allowed;
}

.mission-route-number,
.mission-route-icon,
.mission-route-status {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.mission-route-number {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #ebe3d8;
  color: #191714;
  font-size: 18px;
  font-weight: 900;
}

.mission-route-step.is-active .mission-route-number {
  background: #c56f43;
  color: #fffdf8;
}

.mission-route-step.is-done .mission-route-number {
  background: #50a605;
  color: #fffdf8;
}

.mission-route-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: #e2d9cd;
  color: currentColor;
}

.mission-route-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.mission-route-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mission-route-copy strong {
  overflow-wrap: anywhere;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.02;
  letter-spacing: 0;
}

.mission-route-copy small {
  max-width: 56rem;
  overflow-wrap: anywhere;
  color: rgba(25, 23, 20, 0.72);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
}

.mission-route-status {
  min-width: 92px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(25, 23, 20, 0.08);
  color: rgba(25, 23, 20, 0.72);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mission-route-step.is-active .mission-route-status {
  background: rgba(197, 111, 67, 0.16);
  color: #8e4628;
}

.mission-route-step.is-done .mission-route-status {
  background: rgba(80, 166, 5, 0.16);
  color: #347104;
}

@media (max-width: 900px) {
  .mission-route-step {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .mission-route-icon {
    display: none;
  }

  .mission-route-number {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}

@media (max-width: 620px) {
  .mission-route-step {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: flex-start;
  }

  .mission-route-status {
    grid-column: 2;
    width: fit-content;
    min-width: 0;
  }
}

/* Mission overview v2 final polish: keep the overview readable and compact. */
.map-layout {
  grid-template-columns: minmax(0, 1fr) 280px !important;
  align-items: start !important;
}

.map-layout .mission-map {
  padding: clamp(18px, 2.4vw, 30px) !important;
  gap: clamp(14px, 1.8vw, 20px) !important;
  background: rgba(255, 253, 248, 0.92) !important;
}

.map-layout .map-header {
  align-items: start !important;
  gap: 18px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid rgba(25, 23, 20, 0.12) !important;
}

.map-layout .map-header h2 {
  max-width: 760px !important;
  font-family: var(--font-display) !important;
  font-size: clamp(48px, 6vw, 86px) !important;
  line-height: 0.9 !important;
  letter-spacing: 0 !important;
  text-wrap: balance !important;
}

.map-layout .map-header p {
  margin-top: 12px !important;
  font-size: clamp(18px, 1.6vw, 24px) !important;
  line-height: 1.2 !important;
}

.map-layout .ghost[data-action="reset"] {
  min-width: 140px !important;
  padding-inline: 18px !important;
  white-space: normal !important;
}

.map-layout > .side-panel {
  position: sticky !important;
  top: 18px !important;
  gap: 12px !important;
}

.map-layout > .side-panel .risk-box,
.map-layout > .side-panel .secondary {
  border-radius: 10px !important;
  background: rgba(255, 253, 248, 0.92) !important;
}

@media (min-width: 960px) {
  .mission-route-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-route-step {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 132px;
    align-content: start;
  }

  .mission-route-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    opacity: 0.72;
  }

  .mission-route-status {
    grid-column: 2;
    justify-self: start;
    min-width: 0;
    margin-top: 8px;
  }
}

@media (max-width: 980px) {
  .map-layout {
    grid-template-columns: 1fr !important;
  }

  .map-layout > .side-panel {
    position: static !important;
  }
}

@media (max-width: 720px) {
  .map-layout .map-header {
    grid-template-columns: 1fr !important;
  }

  .map-layout .map-header h2 {
    font-size: clamp(42px, 14vw, 64px) !important;
  }
}


/* Stable replacement for the telephone social-engineering station. */
.call-sim-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1.18fr) minmax(280px, 0.82fr);
  gap: 28px;
  align-items: stretch;
  min-height: 520px;
  color: var(--text-on-dark);
}

.call-sim-phone,
.call-sim-actions {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(9, 23, 27, 0.78);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.call-sim-phone {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  padding: 28px;
}

.call-sim-phone .call-screen {
  min-height: 0;
}

.call-sim-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 32px;
}

.call-sim-actions > strong {
  max-width: 520px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.98;
  letter-spacing: 0;
}

.call-sim-actions > p {
  max-width: 520px;
  margin: 0;
  color: var(--soft-on-dark);
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.28;
}

.call-sim-action-list {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.call-sim-action-list .stage-action-button {
  min-height: 74px;
  grid-template-columns: 38px 1fr;
  border-radius: 18px;
  font-size: clamp(18px, 2vw, 26px);
}

.call-sim-stage .call-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.call-sim-stage .call-buttons .stage-action-button {
  min-height: 58px;
  border-radius: 18px;
  font-size: clamp(16px, 1.5vw, 21px);
}

.call-sim-stage .stage-action-button.risky {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
}

@media (max-width: 900px) {
  .call-sim-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 16px;
  }

  .call-sim-phone,
  .call-sim-actions {
    padding: 20px;
    border-radius: 22px;
  }

  .call-sim-actions {
    justify-content: start;
  }
}


.call-video-stage .teams-call-panel {
  gap: 16px;
}

.teams-call-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.teams-call-header strong {
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
  color: var(--text-on-dark);
}

.berger-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #191714;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.berger-call-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 310px;
  object-fit: cover;
  background: #191714;
}

.call-video-controls {
  position: absolute;
  left: 18px;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
  padding: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.call-control-button {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.call-control-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.call-buttons .stage-action-button.selected {
  color: #101714;
  background: #ecfff6;
  border-color: #31c48d;
  box-shadow: inset 0 0 0 2px rgba(49, 196, 141, 0.48), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.call-control-button.accept {
  background: linear-gradient(135deg, #22c55e, #15803d);
}

.call-control-button.decline {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.call-control-button.decline svg {
  transform: rotate(135deg);
}

.call-control-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.4);
}

.call-control-button:focus-visible {
  outline: 4px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.video-start-button {
  position: absolute;
  left: 18px;
  top: 18px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(251, 248, 242, 0.94);
  color: #191714;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.video-start-button:hover {
  background: #fffdf8;
}

.berger-video-frame .video-fallback:not([hidden]) {
  margin: 12px 16px 0;
}

.berger-video-frame .video-fallback:not([hidden]) ~ .call-video-controls,
.berger-video-frame .call-control-button.video-start-failed {
  position: static;
  display: inline-flex;
  margin: 12px 16px 16px;
}

.berger-video-frame .video-fallback:not([hidden]) + .video-start-button,
.berger-video-frame .video-start-button.video-start-failed {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px 16px 16px;
  width: fit-content;
  max-width: calc(100% - 32px);
}

.call-video-stage .call-sim-actions {
  justify-content: start;
  padding: clamp(28px, 3vw, 42px);
}

.call-video-stage .call-sim-action-list {
  max-width: none;
}

.call-sim-stage .stage-action-button.selected,
.call-sim-stage .call-buttons .stage-action-button.selected,
.call-sim-stage .call-sim-action-list .stage-action-button.selected {
  border-color: #80dfbd;
  color: #07120f;
  background: #80dfbd;
  box-shadow: inset 0 0 0 1px rgba(7, 18, 15, 0.12), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.call-sim-stage .stage-action-button.selected .action-icon {
  color: #07120f;
}

@media (max-width: 900px) {
  .berger-call-video {
    min-height: 190px;
  }

  .video-start-button {
    left: 12px;
    bottom: 12px;
    min-height: 44px;
    padding: 0 16px;
  }

  .call-video-controls {
    left: 12px;
    top: 12px;
    gap: 10px;
    padding: 6px;
  }

  .call-control-button {
    width: 48px;
    height: 48px;
  }

  .call-control-button svg {
    width: 24px;
    height: 24px;
  }

  .berger-video-frame .video-fallback:not([hidden]) + .video-start-button,
  .berger-video-frame .video-start-button.video-start-failed {
    margin: 10px 12px 14px;
    max-width: calc(100% - 24px);
  }
}

/* KI-Abschluss/Planboard: keep the board inside the station instead of floating over header and Kai panel. */
.engine-room-card .engine-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.engine-room-card .incident-board-stage {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  min-height: clamp(620px, 68vh, 820px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.engine-room-card .case-evidence-strip.situation-room-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 8px;
  scrollbar-gutter: stable;
}

.engine-room-card .case-evidence-token {
  flex: 0 0 min(180px, 30vw);
  min-height: 50px;
  border-radius: 12px;
}

.engine-room-card .incident-plan-board {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(440px, 1.38fr);
  gap: 18px;
  overflow: hidden;
}

.engine-room-card .plan-card-bank,
.engine-room-card .plan-zones {
  min-height: 0;
  max-height: 100%;
  border-radius: 18px;
  overflow: auto;
}

.engine-room-card .plan-card-bank {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.engine-room-card .plan-card {
  min-height: 76px;
  align-content: center;
  gap: 4px;
  border-radius: 16px !important;
  padding: 12px 14px;
}

.engine-room-card .plan-card strong {
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.08;
}

.engine-room-card .plan-card small {
  min-height: 1.2em;
}

.engine-room-card .situation-room-core {
  padding: 18px;
  border-radius: 18px;
}

.engine-room-card .situation-room-core strong {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.05;
}

.engine-room-card .plan-zone {
  min-height: 92px;
  border-radius: 22px !important;
  padding: 16px 18px;
}

.engine-room-card .plan-zone strong {
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.12;
}

@media (max-width: 1100px) {
  .engine-room-card .incident-plan-board {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .engine-room-card .incident-board-stage {
    min-height: auto;
  }

  .engine-room-card .plan-card-bank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .engine-room-card .plan-zones {
    max-height: none;
  }
}

@media (max-width: 680px) {
  .engine-room-card .plan-card-bank {
    grid-template-columns: 1fr;
  }

  .engine-room-card .case-evidence-token {
    flex-basis: 150px;
  }
}

/* Password vault readable layout override */
.password-vault-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(18px, 3vw, 36px);
  min-height: 560px;
  color: #191714;
}
.vault-control-panel,
.vault-decision-panel {
  background: #fffdf8;
  border: 1px solid #d8d0c4;
  border-radius: 28px;
  padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 18px 45px rgba(25, 23, 20, 0.08);
}
.vault-control-panel > .mini-label {
  color: #6a6258;
}
.vault-control-panel > strong {
  display: block;
  max-width: 720px;
  color: #191714;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: 0.96;
}
.vault-control-panel > p {
  max-width: 680px;
  margin: 12px 0 0;
  color: #5f5a51;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}
.vault-finds-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.vault-find {
  min-height: 118px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 2px solid #d8d0c4;
  border-radius: 20px;
  background: #fbf8f2;
  color: #191714;
  text-align: left;
  padding: 16px 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(25, 23, 20, 0.06);
}
.vault-find svg {
  width: 30px;
  height: 30px;
  margin: 0;
  color: #191714;
  stroke: currentColor;
}
.vault-find strong {
  display: block;
  color: #191714;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.vault-find small,
.vault-door-pad small {
  display: block;
  margin-top: 7px;
  color: #675f55;
  font-size: 0.9rem;
  font-weight: 850;
}
.vault-find.selected {
  border-color: #50a605;
  background: #f1f9eb;
  box-shadow: 0 0 0 6px rgba(80, 166, 5, 0.14);
}
.vault-find.assigned:not(.selected) {
  opacity: 0.82;
}
.vault-decision-panel {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}
.vault-door-pad {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  border: 2px solid #d8d0c4;
  border-radius: 28px;
  background: #fffdf8;
  color: #191714;
  text-align: left;
  padding: 28px;
  overflow: hidden;
}
.vault-door-pad.safe {
  border-color: #8bcf5b;
  background: #f3faee;
}
.vault-door-pad.risk {
  border-color: #c45a43;
  background: #fff3ef;
}
.vault-door-pad span svg {
  width: 32px;
  height: 32px;
  color: #191714;
  stroke: currentColor;
}
.vault-door-pad strong {
  display: block;
  margin-top: 10px;
  color: #191714;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1;
}
.vault-door-pad em {
  display: block;
  margin-top: 10px;
  color: #191714;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
@media (max-width: 980px) {
  .password-vault-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .vault-finds-grid {
    grid-template-columns: 1fr;
  }
  .vault-decision-panel {
    grid-template-rows: none;
  }
  .vault-door-pad {
    min-height: 160px;
  }
}


/* Reset-Schleuse: klare Szene ohne zweite Bedienebene im Bild */
.reset-stage.reset-stage-clean {
  position: absolute;
  inset: 34px;
  height: calc(100% - 68px);
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: stretch;
  min-height: 0;
  color: #191714;
}

.reset-stage-clean .reset-mail-card-clean,
.reset-stage-clean .reset-check-card {
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  text-align: left;
  border: 1px solid rgba(216, 208, 196, 0.9);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 34px);
  background: rgba(255, 253, 248, 0.94);
  color: #191714;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.reset-stage-clean .reset-mail-card-clean strong,
.reset-stage-clean .reset-check-card strong {
  color: #191714;
  font-size: clamp(30px, 3.4vw, 56px);
  line-height: 0.98;
  letter-spacing: 0;
}

.reset-stage-clean .reset-check-card strong {
  font-size: clamp(26px, 2.8vw, 44px);
}

.reset-stage-clean .reset-mail-card-clean p,
.reset-stage-clean .reset-check-card p {
  color: #5a554e;
  font-weight: 750;
  font-size: clamp(18px, 1.5vw, 24px);
}

.reset-stage-clean .reset-link {
  width: 100%;
  color: #191714;
  background: #f4efe7;
  border-color: #d8d0c4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.reset-stage-clean .reset-route,
.reset-stage-clean .reset-action-panel {
  display: none !important;
}

@media (max-width: 900px) {
  .reset-stage.reset-stage-clean {
    position: relative;
    inset: auto;
    height: auto;
    grid-template-columns: 1fr;
    padding: 0;
  }
}

/* Engine layout lock: keep guidance below the scene, never as a right rail. */
.engine-room-card .engine-room {
  display: grid;
  grid-template-columns: 1fr;
  background: #fffdf8;
}

.engine-room-card .engine-stage {
  min-width: 0;
  min-height: auto;
  border-right: 0;
  border-bottom: 1px solid rgba(25, 23, 20, 0.12);
}

.engine-room-card .engine-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.45fr) minmax(220px, 0.7fr);
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.engine-room-card .engine-panel .kai-chat-card {
  grid-column: auto;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-left-width: 6px;
  box-shadow: none;
}

.engine-room-card .engine-panel .kai-chat-card .guide-portrait {
  width: 56px;
  height: 56px;
}

.engine-room-card .engine-panel .kai-chat-card .guide-content {
  gap: 6px;
  padding-right: 0;
}

.engine-room-card .engine-panel .kai-chat-card::after {
  display: none;
}

.engine-room-card .engine-panel .kai-chat-card strong {
  font-size: 22px;
  line-height: 1.08;
}

.engine-room-card .engine-panel .kai-chat-card p {
  font-size: 15px;
  line-height: 1.38;
}

.engine-room-card .engine-panel .kai-chat-card .guide-transfer {
  padding: 10px 11px;
  font-size: 14px;
}

.engine-room-card .reset-stage.reset-stage-clean {
  position: relative;
  inset: auto;
  height: auto;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.engine-room-card .reset-stage-clean .reset-mail-card-clean,
.engine-room-card .reset-stage-clean .reset-check-card {
  min-width: 0;
  padding: clamp(18px, 2.2vw, 28px);
}

.engine-room-card .reset-stage-clean .reset-mail-card-clean strong {
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.engine-room-card .reset-stage-clean .reset-check-card strong {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.04;
}

.engine-room-card .reset-stage-clean .reset-mail-card-clean p,
.engine-room-card .reset-stage-clean .reset-check-card p {
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .engine-room-card .engine-panel {
    grid-template-columns: 1fr;
  }

  .engine-room-card .reset-stage.reset-stage-clean {
    grid-template-columns: 1fr;
  }
}

/* Reset station interaction repair: make the station itself selectable again. */
.engine-room-card .reset-stage.reset-stage-clean {
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1fr);
  gap: clamp(18px, 2vw, 30px);
}

.engine-room-card .reset-stage-clean .reset-choice-board,
.reset-stage-clean .reset-choice-board {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(216, 208, 196, 0.9);
  border-radius: 18px;
  padding: clamp(16px, 2vw, 24px);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 44px rgba(25, 23, 20, 0.12);
}

.reset-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.reset-choice-grid .reset-choice {
  min-height: 86px;
  justify-content: flex-start;
  text-align: left;
  border-radius: 10px;
  padding: 16px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.22;
}

.reset-choice-grid .reset-choice .action-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.reset-choice-grid .reset-choice.selected {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(80, 166, 5, 0.18);
}

.reset-choice-grid .reset-choice.risky.selected {
  box-shadow: 0 16px 34px rgba(208, 74, 58, 0.18);
}

/* Restore Kai as a prominent mentor card below the scene. */
.engine-room-card .engine-panel {
  grid-template-columns: minmax(0, 1.45fr) minmax(190px, 0.4fr) minmax(220px, 0.55fr);
  gap: 16px;
  padding: 20px;
}

.engine-room-card .engine-panel .kai-chat-card {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 22px;
  border-left-width: 8px;
  box-shadow: 0 18px 46px rgba(25, 23, 20, 0.12);
}

.engine-room-card .engine-panel .kai-chat-card .guide-portrait {
  width: 86px;
  height: 86px;
}

.engine-room-card .engine-panel .kai-chat-card .guide-content {
  gap: 8px;
  padding-right: 52px;
}

.engine-room-card .engine-panel .kai-chat-card::after {
  display: block;
}

.engine-room-card .engine-panel .kai-chat-card strong {
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.04;
}

.engine-room-card .engine-panel .kai-chat-card p {
  max-width: 980px;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.34;
}

@media (max-width: 1100px) {
  .reset-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .reset-choice-grid {
    grid-template-columns: 1fr;
  }

  .engine-room-card .engine-panel .kai-chat-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .engine-room-card .engine-panel .kai-chat-card .guide-portrait {
    width: 64px;
    height: 64px;
  }

  .engine-room-card .engine-panel .kai-chat-card .guide-content {
    padding-right: 0;
  }
}

/* Final responsive guard: later desktop repair rules must not force multi-column layouts on tablets/phones. */
@media (max-width: 1100px) {
  .engine-room-card .engine-panel {
    grid-template-columns: 1fr !important;
  }

  .engine-room-card .reset-stage.reset-stage-clean,
  .reset-stage.reset-stage-clean {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .engine-room-card .engine-panel {
    padding: 14px;
  }

  .engine-room-card .engine-panel .kai-chat-card {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    padding: 16px;
  }

  .engine-room-card .reset-stage-clean .reset-mail-card-clean strong,
  .engine-room-card .reset-stage-clean .reset-check-card strong,
  .reset-stage-clean .reset-mail-card-clean strong,
  .reset-stage-clean .reset-check-card strong {
    font-size: clamp(28px, 13vw, 44px);
  }
}

/* Weitergabe vorbereiten: eigener Weitergabe-Pass statt Sortierliste. */
.handoff-gate-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(18px, 2.4vw, 34px);
  min-height: 620px;
}

.handoff-pass,
.handoff-control-board {
  border: 1px solid rgba(216, 208, 196, 0.9);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 24px 70px rgba(25, 23, 20, 0.1);
}

.handoff-pass {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  position: relative;
}

.handoff-pass::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  top: -70px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(44, 191, 150, 0.22), transparent 68%);
  pointer-events: none;
}

.handoff-pass > strong {
  max-width: 95%;
  margin-top: 18px;
  font-size: clamp(38px, 5.2vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}

.handoff-pass > p {
  max-width: 620px;
  margin: 22px 0;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.35;
}

.handoff-preview-card {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: clamp(18px, 2vw, 26px);
  border: 2px solid rgba(216, 208, 196, 0.95);
  border-radius: 24px;
  background: rgba(246, 241, 232, 0.82);
}

.handoff-preview-card.is-safe {
  border-color: rgba(44, 191, 150, 0.72);
  background: rgba(235, 250, 241, 0.95);
}

.handoff-preview-card.has-risk {
  border-color: rgba(198, 91, 61, 0.65);
  background: rgba(255, 241, 234, 0.92);
}

.handoff-preview-card div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(25, 23, 20, 0.08);
}

.handoff-preview-card div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.handoff-preview-card span {
  color: var(--muted);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.handoff-preview-card b {
  min-width: 0;
  font-size: clamp(18px, 1.8vw, 26px);
  overflow-wrap: anywhere;
}

.handoff-meter {
  height: 12px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 23, 20, 0.08);
}

.handoff-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2cbf96, #8ad15d);
  transition: width 0.2s ease;
}

.handoff-control-board {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 32px);
}

.handoff-control-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(216, 208, 196, 0.72);
  border-radius: 22px;
  background: rgba(250, 247, 241, 0.8);
}

.handoff-control-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
}

.handoff-control-label strong {
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.handoff-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 10px;
}

.handoff-option {
  min-width: 0;
  min-height: 104px;
  padding: 14px;
  border: 2px solid rgba(216, 208, 196, 0.9);
  border-radius: 18px;
  background: #fffdf8;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.handoff-option:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 191, 150, 0.45);
}

.handoff-option.selected {
  border-color: rgba(80, 166, 5, 0.78);
  background: rgba(235, 250, 241, 0.95);
  box-shadow: 0 14px 34px rgba(80, 166, 5, 0.15);
}

.handoff-option.risky.selected {
  border-color: rgba(198, 91, 61, 0.72);
  background: rgba(255, 241, 234, 0.95);
  box-shadow: 0 14px 34px rgba(198, 91, 61, 0.14);
}

.handoff-option b,
.handoff-option span {
  display: block;
}

.handoff-option b {
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.handoff-option span {
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

/* CRA-Abschlussbericht: lange deutsche Modulnamen brauchen feste Lesespalten. */
.handoff-gate-final-report-content {
  grid-template-columns: minmax(400px, 0.78fr) minmax(760px, 1.42fr);
}

.handoff-gate-final-report-content .handoff-pass > strong {
  font-size: clamp(38px, 4.2vw, 66px);
  line-height: 0.98;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.handoff-gate-final-report-content .handoff-preview-card div {
  grid-template-columns: 1fr;
  gap: 5px;
  align-items: start;
}

.handoff-gate-final-report-content .handoff-preview-card span,
.handoff-gate-final-report-content .handoff-preview-card b {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.handoff-gate-final-report-content .handoff-control-row {
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
}

.handoff-gate-final-report-content .handoff-options {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.handoff-gate-final-report-content .handoff-option b,
.handoff-gate-final-report-content .handoff-option span {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: auto !important;
}

@media (max-width: 1450px) {
  .handoff-gate-final-report-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .handoff-gate-final-report-content .handoff-control-row,
  .handoff-gate-final-report-content .handoff-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .handoff-gate-stage,
  .handoff-control-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .handoff-gate-stage {
    min-height: auto;
  }

  .handoff-options {
    grid-template-columns: 1fr;
  }

  .handoff-preview-card div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Wiederverwendbare Foto-Tausch-Puzzle-Engine. */
.photo-puzzle-stage {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(340px, 1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  min-height: 640px;
  padding: clamp(20px, 3vw, 42px);
  border: 1px solid rgba(216, 208, 196, 0.9);
  border-radius: 32px;
  background:
    radial-gradient(520px 360px at 18% 4%, rgba(44, 191, 150, 0.13), transparent 64%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(246, 241, 232, 0.88));
  overflow: hidden;
}

.photo-puzzle-copy {
  display: grid;
  gap: 18px;
  align-content: center;
  min-width: 0;
}

.photo-puzzle-copy > strong {
  font-size: clamp(36px, 5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.photo-puzzle-copy > p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 750;
  line-height: 1.35;
}

.photo-puzzle-meter {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 420px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(25, 23, 20, 0.08);
}

.photo-puzzle-meter span {
  display: block;
  flex: 1;
  height: 12px;
  border-radius: inherit;
  background: linear-gradient(90deg, #2cbf96, #8ad15d);
  transition: width 0.18s ease;
}

.photo-puzzle-meter b {
  min-width: 54px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  text-align: right;
}

.photo-puzzle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.photo-puzzle-frame {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 1 / 1;
  justify-self: center;
  overflow: hidden;
  border: 2px solid rgba(25, 23, 20, 0.95);
  border-radius: 34px;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 34px rgba(25, 23, 20, 0.18),
    0 28px 90px rgba(25, 23, 20, 0.28);
}

.photo-puzzle-stage.is-circle .photo-puzzle-frame {
  border-radius: 999px;
}

.photo-puzzle-stage.is-circle .photo-puzzle-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 4;
  border: 8px solid rgba(0, 0, 0, 0.48);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 0 35px rgba(0, 0, 0, 0.58);
  pointer-events: none;
}

.photo-puzzle-board {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--photo-puzzle-grid), minmax(0, 1fr));
  grid-template-rows: repeat(var(--photo-puzzle-grid), minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

.photo-puzzle-stage.is-circle .photo-puzzle-board {
  overflow: hidden;
  border-radius: 999px;
}

.photo-puzzle-tile {
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background-color: #000;
  background-repeat: no-repeat;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.16s ease, filter 0.16s ease;
}

.photo-puzzle-tile:hover {
  filter: saturate(1.08);
}

.photo-puzzle-tile.selected,
.photo-puzzle-tile[aria-pressed="true"] {
  z-index: 2;
  box-shadow:
    inset 0 0 0 3px rgba(44, 191, 150, 0.95),
    inset 0 0 18px rgba(44, 191, 150, 0.44);
}

.photo-puzzle-solved {
  position: absolute;
  inset: auto 22px 22px 22px;
  display: flex;
  justify-content: center;
  padding: 18px 20px;
  border: 1px solid rgba(44, 191, 150, 0.5);
  border-radius: 22px;
  background: rgba(235, 250, 241, 0.94);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(25, 23, 20, 0.16);
}

.photo-puzzle-solved strong {
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1;
}

@media (max-width: 1080px) {
  .photo-puzzle-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .photo-puzzle-copy {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .photo-puzzle-stage {
    padding: 16px;
    border-radius: 24px;
  }

  .photo-puzzle-board {
    gap: 1px;
    padding: 7px;
  }

  .photo-puzzle-tile {
    border-radius: 8px;
  }

  .photo-puzzle-actions > button {
    width: 100%;
  }
}

/* Originalnahes Photo-Swap-Puzzle: übernommen aus dem gelieferten Snippet, nur im App-Kontext gekapselt. */
.carrie-psy-puzzle {
  --bg: #f6f1e8;
  --fg: #e9ecef;
  --accent: #2cbf96;
  --grid: 3;
  background:
    radial-gradient(520px 360px at 20% 0%, rgba(44, 191, 150, 0.18), transparent 60%),
    radial-gradient(520px 360px at 85% 110%, rgba(25, 23, 20, 0.12), transparent 60%),
    var(--bg);
  color: var(--fg);
  padding: 40px 16px;
  text-align: center;
  overflow: hidden;
}

.carrie-psy-puzzle .wrap {
  max-width: 100%;
  margin: 0 auto;
}

.carrie-psy-puzzle .psy-stage {
  display: grid;
  gap: 14px;
  place-items: center;
}

.carrie-psy-puzzle .psy-frame {
  width: 92vw;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(44, 191, 150, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 35px rgba(44, 191, 150, 0.32),
    0 0 90px rgba(44, 191, 150, 0.2),
    0 0 160px rgba(44, 191, 150, 0.12),
    0 22px 70px rgba(25, 23, 20, 0.22);
}

.carrie-psy-puzzle .psy-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  border: 8px solid rgba(0, 0, 0, 0.65);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    inset 0 0 35px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 40;
}

.carrie-psy-puzzle .psy-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  z-index: 45;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 32px rgba(44, 191, 150, 0.52),
    0 0 80px rgba(44, 191, 150, 0.3),
    0 0 140px rgba(44, 191, 150, 0.18);
  transition: opacity 0.25s ease;
}

.carrie-psy-puzzle .psy-frame.is-pulsing .psy-pulse {
  opacity: 1;
  animation: psyPulseRing 1.35s ease-in-out infinite;
}

@keyframes psyPulseRing {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.02);
    filter: brightness(1.08);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.carrie-psy-puzzle .psy-board {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
  display: block;
  background: #000;
  z-index: 1;
}

.carrie-psy-puzzle .psy-board.is-hidden {
  display: none;
}

.carrie-psy-puzzle .psy-tile {
  position: absolute;
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-repeat: no-repeat;
  background-color: #000;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.carrie-psy-puzzle .psy-tile[aria-pressed="true"] {
  box-shadow:
    inset 0 0 0 3px rgba(44, 191, 150, 0.95),
    inset 0 0 18px rgba(44, 191, 150, 0.45);
}

.carrie-psy-puzzle .psy-solved,
.carrie-psy-puzzle .psy-video {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
  display: none;
  z-index: 20;
  background: #000;
}

.carrie-psy-puzzle .psy-solved.is-visible {
  display: block;
}

.carrie-psy-puzzle .psy-solved img,
.carrie-psy-puzzle .psy-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carrie-psy-puzzle .psy-controls {
  width: 92vw;
  max-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.carrie-psy-puzzle .psy-btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: var(--accent);
  color: #171512;
  border-radius: 999px;
  padding: 14px 0;
  font: 900 12px / 1 Inter, system-ui, Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 10px 26px rgba(25, 23, 20, 0.16),
    0 0 22px rgba(44, 191, 150, 0.28);
  touch-action: manipulation;
}

.carrie-psy-puzzle .psy-btn:focus-visible {
  outline: 2px solid rgba(44, 191, 150, 0.9);
  outline-offset: 3px;
}

.carrie-psy-puzzle .psy-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

@media (min-width: 768px) {
  .carrie-psy-puzzle {
    --grid: 4;
    padding: 72px 28px;
  }

  .carrie-psy-puzzle .psy-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .carrie-psy-puzzle .psy-btn {
    padding: 12px 20px;
  }
}

/* Final override: keep KI planboard in normal flow and stop it from covering the header/Kai panel. */
.engine-room-card .engine-stage {
  position: relative !important;
  min-height: 560px !important;
  overflow: hidden !important;
}

.engine-room-card .incident-board-stage {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  min-height: clamp(620px, 68vh, 820px) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 16px !important;
}

.engine-room-card .case-evidence-strip.situation-room-strip {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 2px 8px !important;
}

.engine-room-card .case-evidence-token {
  flex: 0 0 min(180px, 30vw) !important;
  min-height: 50px !important;
  border-radius: 12px !important;
}

.engine-room-card .incident-plan-board {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(250px, 0.62fr) minmax(440px, 1.38fr) !important;
  gap: 18px !important;
  overflow: hidden !important;
}

.engine-room-card .plan-card-bank,
.engine-room-card .plan-zones {
  min-height: 0 !important;
  max-height: 100% !important;
  border-radius: 18px !important;
  overflow: auto !important;
}

.engine-room-card .plan-card-bank {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-content: start !important;
}

.engine-room-card .plan-card {
  min-height: 76px !important;
  align-content: center !important;
  gap: 4px !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
}

.engine-room-card .plan-card strong {
  font-size: clamp(16px, 1.25vw, 20px) !important;
  line-height: 1.08 !important;
}

.engine-room-card .situation-room-core {
  padding: 18px !important;
  border-radius: 18px !important;
}

.engine-room-card .situation-room-core strong {
  font-size: clamp(22px, 2.2vw, 32px) !important;
  line-height: 1.05 !important;
}

.engine-room-card .plan-zone {
  min-height: 92px !important;
  border-radius: 22px !important;
  padding: 16px 18px !important;
}

.engine-room-card .plan-zone strong {
  font-size: clamp(16px, 1.35vw, 22px) !important;
  line-height: 1.12 !important;
}

@media (max-width: 1100px) {
  .engine-room-card .incident-plan-board {
    grid-template-columns: 1fr !important;
    overflow: visible !important;
  }

  .engine-room-card .incident-board-stage {
    min-height: auto !important;
  }

  .engine-room-card .plan-card-bank,
  .engine-room-card .plan-zones {
    max-height: none !important;
  }
}

@media (max-width: 680px) {
  .engine-room-card .plan-card-bank {
    grid-template-columns: 1fr !important;
  }

  .engine-room-card .case-evidence-token {
    flex-basis: 150px !important;
  }
}

/* KI Awareness: upgraded interactive engines */
.ai-upgrade-stage {
  min-height: clamp(560px, 62vh, 780px);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 22px;
  padding: clamp(18px, 2vw, 30px);
  background:
    radial-gradient(circle at 12% 10%, rgba(43, 195, 156, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(246, 239, 228, 0.98));
  border: 1px solid var(--line);
  border-radius: 28px;
}

.ai-upgrade-visual,
.ai-upgrade-workbench,
.ai-permission-dialog,
.ai-output-review,
.ai-label-targets,
.ai-act-gates {
  min-width: 0;
}

.ai-upgrade-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 2.2vw, 28px);
  border-radius: 26px;
  background: rgba(18, 36, 39, 0.94);
  color: var(--text-on-dark);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ai-upgrade-visual > strong {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.ai-stage-instruction {
  margin: -4px 0 2px;
  color: rgba(255, 253, 248, 0.78);
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.25;
  font-weight: 800;
}

.ai-upgrade-gif {
  width: 100%;
  min-height: 220px;
  max-height: 380px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #071113;
}

.ai-progress-pill {
  align-self: flex-start;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-on-dark);
  font-weight: 900;
}

.ai-upgrade-workbench {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.8fr);
  gap: 16px;
}

.ai-card-bank,
.ai-drop-lanes,
.ai-act-case-bank,
.ai-label-bank,
.ai-claim-grid {
  display: grid;
  gap: 12px;
}

.ai-card {
  width: 100%;
  min-height: 88px;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  white-space: normal;
}

.ai-card b,
.ai-claim b,
.ai-label-target b,
.ai-permission-row b {
  line-height: 1.16;
}

.ai-card span,
.ai-claim span,
.ai-permission-row small,
.ai-label-target em,
.ai-label-target span,
.ai-act-gate small {
  color: var(--muted);
  font-weight: 800;
}

.ai-card.selected,
.ai-card[aria-pressed="true"],
.ai-label-chip.selected,
.ai-label-chip[aria-pressed="true"],
.ai-claim.selected,
.ai-draft-token[aria-pressed="true"] {
  border-color: #2ec29a;
  background: #eaf8ee;
  box-shadow: 0 0 0 3px rgba(46, 194, 154, 0.16);
}

.ai-card.assigned {
  background: #f0f7ed;
}

.ai-lane,
.ai-act-gate {
  position: relative;
  width: 100%;
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 2px solid var(--line);
  background: rgba(255, 253, 248, 0.88);
  color: var(--ink);
  text-align: left;
  white-space: normal;
}

.ai-lane span,
.ai-act-gate span {
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.ai-lane em {
  position: absolute;
  right: 16px;
  top: 16px;
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(25, 23, 20, 0.08);
  font-style: normal;
}

.tone-public {
  border-color: #8fcf72;
}

.tone-internal {
  border-color: #d7ae57;
}

.tone-secret {
  border-color: #d67878;
}

.ai-permission-dialog {
  display: grid;
  gap: 12px;
  align-content: start;
}

.ai-permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.ai-permission-row > div:first-child {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
}

.ai-permission-row .action-icon {
  grid-row: span 2;
}

.ai-permission-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(72px, 1fr));
  padding: 4px;
  border-radius: 999px;
  background: rgba(25, 23, 20, 0.07);
}

.ai-permission-toggle button {
  min-height: 42px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.ai-permission-toggle button.selected {
  background: var(--ink);
  color: var(--surface);
}

.ai-permission-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
}

.ai-output-review {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.ai-output-document {
  min-height: 420px;
  padding: clamp(22px, 2vw, 30px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(214, 205, 191, 0.34) 43px 44px);
  box-shadow: var(--shadow-soft);
}

.ai-output-taskline {
  margin: 8px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.3;
  font-weight: 800;
}

.ai-draft-message {
  margin-top: clamp(18px, 2vw, 28px);
  padding: clamp(18px, 2vw, 28px);
  border-radius: 24px;
  border: 1px solid rgba(214, 205, 191, 0.95);
  background: rgba(255, 253, 248, 0.86);
  color: var(--ink);
  font-size: clamp(22px, 2.1vw, 36px);
  line-height: 1.28;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.ai-draft-message p {
  margin: 0;
}

.ai-draft-message p + p {
  margin-top: 0.85em;
}

.ai-draft-token {
  display: inline;
  margin: 0;
  padding: 0 0.2em 0.06em;
  border: 0;
  border-bottom: 3px solid rgba(92, 84, 74, 0.28);
  border-radius: 9px;
  background: rgba(238, 231, 219, 0.64);
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.ai-draft-token:hover {
  border-color: rgba(46, 194, 154, 0.8);
  background: rgba(234, 248, 238, 0.88);
}

.ai-draft-token.selected {
  border-color: #2ec29a;
  background: #eaf8ee;
  box-shadow: 0 0 0 3px rgba(46, 194, 154, 0.16);
}

.ai-review-tray {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(18, 36, 39, 0.94);
  color: var(--text-on-dark);
}

.ai-review-tray strong {
  min-width: 68px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: clamp(18px, 1.5vw, 24px);
}

.ai-review-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.ai-review-selected span,
.ai-review-selected em {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.15;
  font-weight: 850;
  font-style: normal;
}

.ai-answer-card {
  padding: 24px;
  border-radius: 24px;
  background: #fffdf8;
  border: 1px solid var(--line);
}

.ai-answer-card p {
  margin: 10px 0 0;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.ai-claim {
  width: 100%;
  min-height: 86px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  white-space: normal;
}

.ai-label-bank {
  grid-template-columns: 1fr;
  margin-top: auto;
}

.ai-label-chip {
  min-height: 58px;
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  text-align: left;
  white-space: normal;
}

.ai-label-chip.selected {
  color: var(--ink);
}

.ai-label-targets {
  display: grid;
  gap: 16px;
}

.ai-label-target {
  width: 100%;
  min-height: 148px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 22px;
  border-radius: 26px;
  border: 2px dashed rgba(25, 23, 20, 0.18);
  background: rgba(255, 253, 248, 0.78);
  text-align: left;
  color: var(--ink);
  white-space: normal;
}

.ai-label-target.filled {
  border-style: solid;
  border-color: #2ec29a;
  background: #ecf8ed;
}

.ai-label-target span {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
}

.ai-label-target b {
  font-size: clamp(24px, 2.2vw, 34px);
}

.ai-label-target em {
  font-style: normal;
}

.ai-act-gate-stage {
  grid-template-columns: minmax(360px, 0.85fr) minmax(420px, 1.15fr);
}

.ai-act-case-bank {
  margin-top: auto;
}

.ai-act-gates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ai-act-gate {
  min-height: 180px;
}

.ai-act-gate b {
  font-size: clamp(18px, 1.4vw, 24px);
}

.ai-card:focus-visible,
.ai-lane:focus-visible,
.ai-permission-toggle button:focus-visible,
.ai-draft-token:focus-visible,
.ai-label-chip:focus-visible,
.ai-label-target:focus-visible,
.ai-act-gate:focus-visible {
  outline: 3px solid rgba(46, 194, 154, 0.84);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .ai-upgrade-stage,
  .ai-act-gate-stage {
    grid-template-columns: 1fr;
  }

  .ai-upgrade-workbench {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ai-upgrade-stage {
    padding: 14px;
    border-radius: 20px;
  }

  .ai-upgrade-visual {
    border-radius: 20px;
  }

  .ai-upgrade-gif {
    min-height: 180px;
  }

  .ai-act-gates {
    grid-template-columns: 1fr;
  }

  .ai-permission-row {
    grid-template-columns: 1fr;
  }

  .ai-permission-toggle {
    width: 100%;
  }
}

/* Blackout plan boards use long German compound words; keep cards readable. */
.engine-room-card .incident-plan-board {
  grid-template-columns: minmax(330px, 0.7fr) minmax(520px, 1.3fr) !important;
}

.engine-room-card .plan-card-bank {
  grid-template-columns: 1fr !important;
}

.engine-room-card .plan-card {
  min-width: 0 !important;
  min-height: 88px !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.engine-room-card .plan-card strong,
.engine-room-card .plan-zone strong {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto !important;
}

.engine-room-card .plan-card small {
  color: #6f665b !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
}

@media (max-width: 1180px) {
  .engine-room-card .incident-plan-board {
    grid-template-columns: 1fr !important;
  }
}

/* Immersive mission entry screen. */
.start-screen {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  background: #071113;
  color: var(--text-on-dark);
}

.start-screen::before,
.start-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.start-screen::before {
  display: block;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 12, 14, 0.96) 0%, rgba(5, 12, 14, 0.84) 42%, rgba(5, 12, 14, 0.38) 100%),
    linear-gradient(180deg, rgba(5, 12, 14, 0.16), rgba(5, 12, 14, 0.72)),
    url("https://cyber.paragamix.com/assets/awareness/blackout-kai-guide.png");
  background-position: center right;
  background-size: cover;
  opacity: 1;
  transform: scale(1.02);
}

.start-screen::after {
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 22% 24%, rgba(80, 166, 5, 0.22), transparent 34%),
    radial-gradient(circle at 80% 18%, rgba(78, 194, 178, 0.18), transparent 30%);
  background-size: 54px 54px, 54px 54px, auto, auto;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18));
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18));
}

.start-screen.is-ai-start::before {
  background:
    linear-gradient(90deg, rgba(5, 12, 14, 0.96) 0%, rgba(5, 12, 14, 0.84) 42%, rgba(5, 12, 14, 0.42) 100%),
    linear-gradient(180deg, rgba(5, 12, 14, 0.1), rgba(5, 12, 14, 0.76)),
    url("https://cyber.paragamix.com/assets/awareness/start-schneller-prompt-ki.svg");
  background-position: center right;
  background-size: cover;
}

.start-screen.is-customer-start::before {
  background:
    linear-gradient(90deg, rgba(5, 12, 14, 0.96) 0%, rgba(5, 12, 14, 0.84) 42%, rgba(5, 12, 14, 0.4) 100%),
    linear-gradient(180deg, rgba(5, 12, 14, 0.1), rgba(5, 12, 14, 0.76)),
    url("https://cyber.paragamix.com/assets/awareness/start-der-neue-kunde.svg");
  background-position: center right;
  background-size: cover;
}

.start-screen .command-bar,
.start-screen .page {
  position: relative;
  z-index: 1;
}

.start-screen .command-bar {
  width: min(var(--max), calc(100vw - 56px));
  margin: 0 auto;
  padding: 18px 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  backdrop-filter: none;
}

.start-screen .brand h1,
.start-screen .status-chip strong {
  color: var(--text-on-dark);
}

.start-screen .brand p,
.start-screen .status-chip span {
  color: rgba(244, 251, 250, 0.68);
}

.start-screen .company-logo,
.start-screen .brand-mark {
  border-color: rgba(255, 255, 255, 0.24);
  color: #071113;
  background: #f4fbfa;
}

.start-screen .status-chip {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  backdrop-filter: blur(16px);
}

.start-screen .page {
  width: min(1320px, calc(100vw - 56px));
  min-height: calc(100vh - 95px);
  padding: clamp(34px, 5vw, 72px) 0 clamp(34px, 5vw, 64px);
}

.start-screen .simplified-start.has-start-visual {
  grid-template-columns: minmax(0, 720px) minmax(320px, 540px);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.start-screen .start-hero-copy {
  max-width: 780px;
  gap: 20px;
}

.start-screen .eyebrow {
  color: #8ee7bf;
  font-size: 14px;
  font-weight: 850;
}

.start-screen .hero-copy h2 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(58px, 7.4vw, 118px);
  font-weight: 820;
  line-height: 0.9;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

.start-screen .hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(244, 251, 250, 0.76);
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.45;
}

.start-screen .start-domain-panel {
  max-width: 640px;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: clamp(18px, 2vw, 26px);
  background: rgba(8, 18, 20, 0.78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.start-screen .field span {
  color: rgba(244, 251, 250, 0.7);
  font-weight: 820;
}

.start-screen .field input {
  min-height: 58px;
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.start-screen .field input::placeholder {
  color: rgba(244, 251, 250, 0.48);
}

.start-screen .field input:focus {
  border-color: rgba(142, 231, 191, 0.86);
  outline: 3px solid rgba(142, 231, 191, 0.18);
  outline-offset: 2px;
}

.start-screen .blackout-role-choice {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.start-screen .blackout-role-choice legend {
  margin: 0 0 4px;
  padding: 0;
  color: rgba(244, 251, 250, 0.72);
  font-size: 14px;
  font-weight: 850;
}

.start-screen .blackout-role-choice > p {
  margin: 0;
  color: rgba(244, 251, 250, 0.62);
  font-size: 14px;
  line-height: 1.35;
}

.start-screen .blackout-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.start-screen .blackout-role-option {
  min-width: 0;
  min-height: 108px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 13px;
  color: rgba(244, 251, 250, 0.82);
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
  box-shadow: none;
}

.start-screen .blackout-role-option:hover {
  border-color: rgba(142, 231, 191, 0.58);
  background: rgba(142, 231, 191, 0.12);
}

.start-screen .blackout-role-option.selected {
  border-color: #8ee7bf;
  color: #ffffff;
  background: rgba(142, 231, 191, 0.18);
  box-shadow: inset 0 0 0 1px rgba(142, 231, 191, 0.26);
}

.start-screen .role-option-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #071113;
  background: rgba(142, 231, 191, 0.88);
}

.start-screen .role-option-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.start-screen .blackout-role-option strong,
.start-screen .blackout-role-option small {
  display: block;
  min-width: 0;
}

.start-screen .blackout-role-option strong {
  color: inherit;
  font-size: 16px;
  line-height: 1.12;
}

.start-screen .blackout-role-option small {
  margin-top: 5px;
  color: rgba(244, 251, 250, 0.66);
  font-size: 13px;
  line-height: 1.32;
}

.start-screen .start-countdown-button {
  min-height: 64px;
  border-color: #8ee7bf;
  border-radius: 8px;
  color: #071113;
  background: #8ee7bf;
  box-shadow: 0 18px 46px rgba(80, 166, 5, 0.24);
}

.start-screen .start-countdown-button:hover:not(:disabled) {
  border-color: #ffffff;
  color: #071113;
  background: #ffffff;
}

.start-screen .start-countdown-button:disabled {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(244, 251, 250, 0.72);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  opacity: 1;
}

.start-screen .notice {
  border-color: rgba(142, 231, 191, 0.28);
  border-left-color: #8ee7bf;
  border-radius: 8px;
  color: rgba(244, 251, 250, 0.78);
  background: rgba(142, 231, 191, 0.1);
}

.start-screen .start-mission-visual {
  min-height: clamp(380px, 58vh, 590px);
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.start-screen .start-mission-visual .image-hero {
  min-height: clamp(380px, 58vh, 590px);
  border-radius: 8px;
}

.start-screen .start-mission-visual .image-hero img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.025);
}

.start-screen .start-mission-visual .image-overlay {
  right: auto;
  bottom: 16px;
  left: 16px;
  width: min(470px, calc(100% - 32px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: clamp(11px, 1.15vw, 16px);
  background: rgba(5, 12, 14, 0.78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.start-screen .start-mission-visual .image-overlay .mini-label {
  color: rgba(142, 231, 191, 0.78);
}

.start-screen .start-mission-visual .image-overlay strong {
  color: #ffffff;
  max-width: none;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.04;
}

.start-screen .start-mission-visual .image-overlay p {
  color: rgba(244, 251, 250, 0.78);
  font-size: clamp(14px, 1vw, 17px);
}

@media (max-width: 1080px) {
  .start-screen .simplified-start.has-start-visual {
    grid-template-columns: 1fr;
  }

  .start-screen .start-mission-visual {
    width: min(100%, 680px);
    min-height: 340px;
  }

  .start-screen .start-mission-visual .image-hero {
    min-height: 340px;
  }

  .start-screen .hero-copy h2 {
    font-size: clamp(52px, 11vw, 92px);
  }
}

@media (min-width: 1081px) and (max-height: 820px) {
  .start-screen .command-bar {
    min-height: 76px;
    padding: 12px 0 16px;
  }

  .start-screen .page {
    min-height: calc(100vh - 76px);
    padding: 24px 0 34px;
  }

  .start-screen .simplified-start.has-start-visual {
    grid-template-columns: minmax(0, 650px) minmax(320px, 540px);
    gap: clamp(24px, 4vw, 58px);
  }

  .start-screen .start-hero-copy {
    gap: 14px;
  }

  .start-screen .hero-copy h2 {
    font-size: clamp(50px, 6vw, 86px);
  }

  .start-screen .hero-copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .start-screen .start-domain-panel {
    padding: 16px;
  }

  .start-screen .field input {
    min-height: 50px;
  }

  .start-screen .start-countdown-button {
    min-height: 54px;
    font-size: 18px;
  }

  .start-screen .start-mission-visual,
  .start-screen .start-mission-visual .image-hero {
    min-height: 430px;
  }

  .start-screen .start-mission-visual .image-overlay strong {
    font-size: 23px;
  }
}

@media (max-width: 720px) {
  .start-screen::before {
    background-position: center;
  }

  .start-screen .command-bar,
  .start-screen .page {
    width: min(100vw - 28px, var(--max));
  }

  .start-screen .command-bar {
    padding: 14px 0 18px;
  }

  .start-screen .page {
    min-height: auto;
    padding: 28px 0 38px;
  }

  .start-screen .hero-copy h2 {
    font-size: 32px;
  }

  .start-screen .hero-copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .start-screen .start-domain-panel {
    padding: 16px;
  }

  .start-screen .blackout-role-grid {
    grid-template-columns: 1fr;
  }

  .start-screen .blackout-role-option {
    min-height: auto;
  }

  .start-screen .start-mission-visual,
  .start-screen .start-mission-visual .image-hero {
    min-height: 280px;
  }

  .start-screen .start-mission-visual .image-overlay strong {
    font-size: 21px;
  }
}

/* Blackout restart timeline: keep the ordering board readable inside the light mission shell. */
.engine-room-card .timeline-sequence-stage {
  min-height: clamp(560px, 64vh, 780px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  border: 1px solid rgba(142, 231, 191, 0.24);
  border-radius: 8px;
  padding: clamp(16px, 2vw, 22px);
  color: var(--text-on-dark);
  background:
    radial-gradient(circle at 18% 14%, rgba(142, 231, 191, 0.14), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(65, 143, 174, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(7, 18, 21, 0.98), rgba(22, 41, 46, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.engine-room-card .timeline-sequence-stage .timeline-bank {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: clamp(14px, 1.8vw, 20px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(4, 14, 17, 0.58);
  background-size: 44px 44px, 44px 44px, auto;
}

.engine-room-card .timeline-sequence-stage .lab-title {
  color: #ffffff;
}

.engine-room-card .timeline-sequence-stage .lab-title strong {
  color: #ffffff;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.08;
}

.engine-room-card .timeline-sequence-stage .lab-title span {
  max-width: 640px;
  color: rgba(244, 251, 250, 0.74);
  font-size: 15px;
  line-height: 1.35;
}

.engine-room-card .timeline-sequence-stage .timeline-card {
  min-height: 128px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.engine-room-card .timeline-sequence-stage .timeline-card:hover {
  border-color: rgba(142, 231, 191, 0.52);
  background: rgba(142, 231, 191, 0.13);
}

.engine-room-card .timeline-sequence-stage .timeline-card strong {
  color: #ffffff;
}

.engine-room-card .timeline-sequence-stage .timeline-card small {
  color: rgba(244, 251, 250, 0.72);
}

.engine-room-card .timeline-sequence-stage .timeline-track {
  border-color: rgba(142, 231, 191, 0.18);
  border-radius: 8px;
  background: rgba(3, 12, 15, 0.72);
}

.engine-room-card .timeline-sequence-stage .timeline-node {
  min-height: 106px;
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(244, 251, 250, 0.72);
  background: rgba(255, 255, 255, 0.045);
}

.engine-room-card .timeline-sequence-stage .timeline-node strong {
  color: #ffffff;
}

.engine-room-card .timeline-sequence-stage .timeline-node small {
  color: rgba(244, 251, 250, 0.66);
}

@media (max-width: 760px) {
  .engine-room-card .timeline-sequence-stage {
    min-height: auto;
    padding: 12px;
  }

  .engine-room-card .timeline-sequence-stage .lab-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .engine-room-card .timeline-sequence-stage .timeline-card-grid,
  .engine-room-card .timeline-sequence-stage .timeline-track {
    grid-template-columns: 1fr;
  }
}

.video-fallback {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 16px 0 0;
  padding: 18px;
  border: 1px solid rgba(41, 179, 143, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(41, 179, 143, 0.15), rgba(255, 253, 248, 0.95));
  color: #102126;
}

.video-fallback[hidden] {
  display: none;
}

.video-fallback img {
  width: 74px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(16, 33, 38, 0.16);
}

.video-fallback strong,
.video-fallback span {
  display: block;
}

.video-fallback strong {
  color: #102126;
  font-size: 1.05rem;
}

.video-fallback span {
  margin-top: 4px;
  color: rgba(16, 33, 38, 0.72);
  font-weight: 750;
}

.video-fallback ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(16, 33, 38, 0.86);
  font-weight: 850;
}

.stamp-public {
  background: linear-gradient(135deg, rgba(80, 166, 5, 0.18), #fffdf8);
  border-color: rgba(80, 166, 5, 0.7);
}

.stamp-internal {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.22), #fffdf8);
  border-color: rgba(197, 150, 54, 0.78);
}

.stamp-secret {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.18), #fffdf8);
  border-color: rgba(184, 79, 79, 0.8);
}

.classification-stamp::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(25, 23, 20, 0.2);
}

.stamp-public::before { background: #50a605; }
.stamp-internal::before { background: #d59b12; }
.stamp-secret::before { background: #c92f2f; }

@media (max-width: 760px) {
  .completion-report-metrics,
  .completion-report-list,
  .video-fallback {
    grid-template-columns: 1fr;
  }

  .video-fallback img {
    width: 62px;
  }

  .standalone-language-slot {
    position: static;
    justify-self: end;
    padding: 16px 16px 0;
  }
}

/* KI mission final board responsive repair.
   Keep this block last so it wins over older desktop-only planboard overrides. */
.engine-room-card .engine-stage {
  overflow: visible !important;
}

.engine-room-card .case-evidence-strip.situation-room-strip {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)) !important;
  gap: 10px !important;
  max-width: 100% !important;
  overflow: visible !important;
  padding: 0 !important;
}

.engine-room-card .case-evidence-token {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  flex: none !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  color: #14342e !important;
  background: #e9faf3 !important;
  border: 1px solid rgba(44, 194, 154, 0.42) !important;
}

.engine-room-card .case-evidence-token.secured {
  color: #092b24 !important;
  background: linear-gradient(135deg, #e7fff6, #d9f4ee) !important;
}

.engine-room-card .case-evidence-token span {
  width: 34px !important;
  height: 34px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: #06251f !important;
  background: #2cc29a !important;
  font-weight: 900 !important;
}

.engine-room-card .case-evidence-token strong {
  min-width: 0 !important;
  color: inherit !important;
  font-size: clamp(13px, 1.35vw, 16px) !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}

.engine-room-card .incident-board-stage {
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.engine-room-card .incident-plan-board {
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr) !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.engine-room-card .plan-card-bank,
.engine-room-card .plan-zones {
  min-width: 0 !important;
}

@media (max-width: 1180px) {
  .engine-room-card .incident-plan-board {
    grid-template-columns: 1fr !important;
  }

  .engine-room-card .case-evidence-strip.situation-room-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .engine-room-card .case-evidence-strip.situation-room-strip {
    grid-template-columns: 1fr !important;
  }

  .engine-room-card .case-evidence-token {
    min-height: 52px !important;
  }
}

/* Higher-specificity guard for the KI final board on tablet/mobile widths. */
html body .mission-control-screen .engine-room-card .case-evidence-strip.situation-room-strip {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  padding: 0 !important;
}

html body .mission-control-screen .engine-room-card .case-evidence-strip.situation-room-strip .case-evidence-token {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 58px !important;
  flex: 1 1 auto !important;
}

html body .mission-control-screen .engine-room-card .incident-plan-board {
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

@media (max-width: 1180px) {
  html body .mission-control-screen .engine-room-card .incident-plan-board {
    grid-template-columns: 1fr !important;
  }

  html body .mission-control-screen .engine-room-card .case-evidence-strip.situation-room-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  html body .mission-control-screen .engine-room-card .case-evidence-strip.situation-room-strip {
    grid-template-columns: 1fr !important;
  }
}

/* Mission-wide readability guard for card-based engines.
   Keep this last: Blackout stations contain long German labels and must not depend on per-card hotfixes. */
html body .mission-control-screen .engine-room-card .plan-card-bank,
html body .mission-control-screen .engine-room-card .handoff-options,
html body .mission-control-screen .engine-room-card .case-vault-evidence .evidence-bank,
html body .mission-control-screen .engine-room-card .handover-answer-options {
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)) !important;
}

html body .mission-control-screen .engine-room-card .plan-card,
html body .mission-control-screen .engine-room-card .plan-zone,
html body .mission-control-screen .engine-room-card .handoff-option,
html body .mission-control-screen .engine-room-card .case-vault-workbench .vault-slot-button,
html body .mission-control-screen .engine-room-card .case-vault-evidence .evidence-chip,
html body .mission-control-screen .engine-room-card .handover-answer,
html body .mission-control-screen .engine-room-card .live-control-action,
html body .mission-control-screen .engine-room-card .live-action,
html body .mission-control-screen .engine-room-card .action-tile,
html body .mission-control-screen .engine-room-card .action-card,
html body .mission-control-screen .engine-room-card .stage-action-button,
html body .mission-control-screen .engine-room-card .share-option,
html body .mission-control-screen .engine-room-card .decision-button,
html body .mission-control-screen .engine-room-card .mission-log-entry {
  min-width: 0 !important;
  white-space: normal !important;
}

html body .mission-control-screen .engine-room-card .plan-card strong,
html body .mission-control-screen .engine-room-card .plan-card small,
html body .mission-control-screen .engine-room-card .plan-zone strong,
html body .mission-control-screen .engine-room-card .plan-zone small,
html body .mission-control-screen .engine-room-card .handoff-option b,
html body .mission-control-screen .engine-room-card .handoff-option span,
html body .mission-control-screen .engine-room-card .case-vault-workbench .vault-slot-button strong,
html body .mission-control-screen .engine-room-card .case-vault-workbench .vault-slot-button small,
html body .mission-control-screen .engine-room-card .case-vault-evidence .evidence-chip b,
html body .mission-control-screen .engine-room-card .case-vault-evidence .evidence-chip small,
html body .mission-control-screen .engine-room-card .handover-answer b,
html body .mission-control-screen .engine-room-card .handover-answer small,
html body .mission-control-screen .engine-room-card .live-control-action span,
html body .mission-control-screen .engine-room-card .live-action span,
html body .mission-control-screen .engine-room-card .action-tile span,
html body .mission-control-screen .engine-room-card .action-card span,
html body .mission-control-screen .engine-room-card .stage-action-button span,
html body .mission-control-screen .engine-room-card .share-option b,
html body .mission-control-screen .engine-room-card .share-option small,
html body .mission-control-screen .engine-room-card .decision-button span,
html body .mission-control-screen .engine-room-card .mission-log-copy strong,
html body .mission-control-screen .engine-room-card .mission-log-copy p {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto !important;
}

html body .mission-control-screen .engine-room-card .mission-log-brief > strong,
html body .mission-control-screen .engine-room-card .mission-log-copy strong {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

html body .mission-control-screen .engine-room-card .mission-log-brief p,
html body .mission-control-screen .engine-room-card .mission-log-copy p {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: auto !important;
}

html body .mission-control-screen .engine-room-card .handoff-gate-final-report-content .handoff-options {
  grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
}

html body .mission-control-screen .engine-room-card .handoff-gate-final-report-content .handoff-option b,
html body .mission-control-screen .engine-room-card .handoff-gate-final-report-content .handoff-option span {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: auto !important;
}

@media (max-width: 900px) {
  html body .mission-control-screen .engine-room-card .handoff-gate-final-report-content .handoff-options {
    grid-template-columns: 1fr !important;
  }
}

/* New-customer mission entry: focused copy, legible company context and a stable 4:5 scene. */
.start-screen.is-customer-start::before {
  background:
    linear-gradient(90deg, rgba(5, 12, 14, 0.98) 0%, rgba(5, 12, 14, 0.92) 54%, rgba(5, 12, 14, 0.78) 100%),
    linear-gradient(160deg, #071113 0%, #0a1b18 58%, #102825 100%);
  transform: none;
}

.start-screen.is-customer-start::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 18% 30%, rgba(80, 166, 5, 0.16), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(78, 194, 178, 0.12), transparent 30%);
  background-size: 54px 54px, 54px 54px, auto, auto;
}

.start-screen.is-customer-start .page {
  min-height: calc(100vh - 95px);
  padding-top: 42px;
  padding-bottom: 48px;
}

.start-screen.is-customer-start .simplified-start.has-start-visual {
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.78fr);
  gap: 56px;
  align-items: center;
}

.start-screen.is-customer-start .start-hero-copy {
  width: 100%;
  max-width: 720px;
  gap: 18px;
}

.start-screen.is-customer-start .hero-copy h2 {
  max-width: 680px;
  font-size: 68px;
  line-height: 0.96;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.start-screen.is-customer-start .hero-copy > p:not(.eyebrow) {
  max-width: 590px;
  font-size: 20px;
}

.start-screen.is-customer-start .start-domain-panel {
  width: min(100%, 590px);
  max-width: none;
  padding: 20px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(8, 18, 20, 0.86);
}

.start-screen.is-customer-start .company-scan,
.start-screen.is-customer-start .company-scan.loaded {
  min-height: 72px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #f4fbfa;
  background: transparent !important;
}

.start-screen.is-customer-start .company-scan strong {
  color: #ffffff !important;
  font-size: 18px;
  line-height: 1.2;
}

.start-screen.is-customer-start .company-scan p {
  color: rgba(244, 251, 250, 0.7) !important;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.start-screen.is-customer-start .start-countdown-button {
  margin-top: 2px;
}

.start-screen.is-customer-start .start-mission-visual {
  width: min(100%, 500px);
  min-height: 0;
  aspect-ratio: 4 / 5;
  justify-self: end;
  border-color: rgba(255, 255, 255, 0.2);
  background: #10201f;
}

.start-screen.is-customer-start .start-mission-visual .image-hero {
  min-height: 0;
  height: 100%;
}

.start-screen.is-customer-start .start-mission-visual .image-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 44%;
  transform: none;
}

.start-screen.is-customer-start .start-mission-visual .image-overlay {
  bottom: 18px;
  left: 18px;
  width: calc(100% - 36px);
  padding: 15px 16px 16px;
  background: rgba(5, 12, 14, 0.86);
}

.start-screen.is-customer-start .start-mission-visual .image-overlay strong {
  font-size: 26px;
}

.start-screen.is-customer-start .start-mission-visual .image-overlay p {
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.35;
}

@media (max-width: 1080px) {
  .start-screen.is-customer-start {
    overflow: visible;
  }

  .start-screen.is-customer-start .simplified-start.has-start-visual {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .start-screen.is-customer-start .hero-copy h2 {
    max-width: 640px;
    font-size: 58px;
  }

  .start-screen.is-customer-start .start-mission-visual {
    width: min(100%, 620px);
    justify-self: start;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 720px) {
  .start-screen.is-customer-start .page {
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .start-screen.is-customer-start .hero-copy h2 {
    font-size: 32px;
    line-height: 1.05;
    overflow-wrap: normal;
    word-break: normal;
  }

  .start-screen.is-customer-start .hero-copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .start-screen.is-customer-start .start-domain-panel {
    padding: 16px;
  }

  .start-screen.is-customer-start .start-mission-visual {
    aspect-ratio: 4 / 3;
  }

  .start-screen.is-customer-start .start-mission-visual .image-overlay {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .start-screen.is-customer-start .start-mission-visual .image-overlay strong {
    font-size: 22px;
  }
}

/* Document stamp review: keep filenames and correction guidance readable. */
.stamp-review-row {
  grid-template-columns: minmax(190px, 0.9fr) minmax(220px, 1.1fr);
}

.stamp-review-row b {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.stamp-review-row em {
  min-width: 0;
  white-space: normal;
  text-align: right;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

@media (max-width: 620px) {
  .stamp-review-row {
    grid-template-columns: 1fr;
  }

  .stamp-review-row em {
    text-align: left;
  }
}

/* Room result layout: debriefs need a readable column instead of the narrow status rail. */
.engine-room-card .engine-panel > .room-score-card {
  grid-column: 2 / -1;
  min-width: 0;
}

.engine-room-card .room-score-card,
.engine-room-card .room-next-brief,
.engine-room-card .room-next-brief strong,
.engine-room-card .room-next-brief p {
  min-width: 0;
  max-width: 100%;
}

.engine-room-card .room-score-card strong,
.engine-room-card .room-score-card p,
.engine-room-card .room-next-brief strong,
.engine-room-card .room-next-brief p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.room-actions {
  min-width: 0;
  flex-wrap: wrap;
}

.room-actions .primary,
.room-actions .secondary {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

@media (max-width: 1100px) {
  .engine-room-card .engine-panel > .room-score-card {
    grid-column: 1 / -1;
  }
}

/* Before evaluation only Kai and the action panel are visible. Use both columns
   instead of reserving an empty status column. */
.engine-room-card .engine-panel.is-unscored {
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.6fr);
}

html body .mission-control-screen .engine-room-card .decision-button span:last-child {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: auto !important;
}

@media (max-width: 1100px) {
  .engine-room-card .engine-panel.is-unscored {
    grid-template-columns: 1fr;
  }
}

/* Mission access: immersive entry point shared by all scenarios. */
.code-required-screen {
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  background: #061114 url("https://cyber.paragamix.com/assets/awareness/mission-access-bg.png") 62% center / cover no-repeat;
  color: #f7f8f4;
}

.code-required-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(2, 12, 15, 0.48);
}

.code-required-screen .simplified-start {
  width: min(100%, 1600px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) clamp(22px, 8vw, 132px);
  align-content: center;
}

.code-access-brand {
  position: absolute;
  top: clamp(26px, 4vw, 54px);
  left: clamp(22px, 8vw, 132px);
  color: #f7f8f4;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: 1;
}

.code-access-brand span {
  color: #83d742;
}

.code-required-screen .standalone-language-slot .language-switch {
  border-color: rgba(247, 248, 244, 0.34);
  background: rgba(7, 17, 20, 0.78);
  color: #f7f8f4;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.code-required-screen .standalone-language-slot .language-switch a {
  color: rgba(247, 248, 244, 0.72);
}

.code-required-screen .standalone-language-slot .language-switch a.active {
  background: #f7f8f4;
  color: #111916;
}

.code-required-screen .start-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  grid-template-rows: auto auto auto;
  column-gap: clamp(42px, 7vw, 110px);
  align-items: center;
  width: 100%;
  max-width: 1240px;
}

.code-required-screen .start-hero-copy > .eyebrow {
  grid-column: 1;
  color: #8de8c9;
}

.code-required-screen .start-hero-copy > h2 {
  grid-column: 1;
  max-width: 9ch;
  margin: 14px 0 18px;
  color: #fff;
  font-size: clamp(54px, 5.5vw, 82px);
  line-height: 0.94;
}

.code-required-screen .start-hero-copy > p {
  grid-column: 1;
  max-width: 620px;
  color: rgba(247, 248, 244, 0.8);
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.45;
}

.code-required-screen .start-domain-panel {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  max-width: 560px;
  margin-top: 0;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(247, 248, 244, 0.24);
  background: rgba(7, 17, 20, 0.86);
  color: #f7f8f4;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.code-required-screen .start-domain-panel .notice {
  border-color: rgba(92, 216, 174, 0.42);
  background: rgba(92, 216, 174, 0.12);
  color: rgba(247, 248, 244, 0.88);
}

.code-required-screen .start-domain-panel label {
  color: #f7f8f4;
}

.code-required-screen .start-domain-panel input {
  border-color: rgba(247, 248, 244, 0.3);
  background: #f7f8f4;
  color: #101715;
}

.code-required-screen .start-countdown-button {
  background: #80dfbd;
  color: #07120f;
}

.code-required-screen .start-countdown-button:disabled {
  background: rgba(247, 248, 244, 0.28);
  color: rgba(247, 248, 244, 0.72);
}

.code-required-screen .start-domain-panel .secondary {
  border-color: rgba(247, 248, 244, 0.3);
  color: #f7f8f4;
}

@media (max-width: 760px) {
  .code-required-screen {
    overflow: auto;
    background-position: 72% center;
  }

  .code-required-screen::before {
    background: rgba(2, 12, 15, 0.68);
  }

  .code-required-screen .simplified-start {
    min-height: 100dvh;
    padding: 106px 18px 28px;
    align-content: start;
  }

  .code-access-brand {
    top: 30px;
    left: 18px;
  }

  .code-required-screen .standalone-language-slot {
    top: 20px;
    right: 18px;
  }

  .code-required-screen .start-hero-copy > h2 {
    max-width: 10ch;
    font-size: clamp(46px, 14vw, 66px);
  }

  .code-required-screen .start-hero-copy {
    display: block;
  }

  .code-required-screen .start-domain-panel {
    margin-top: 22px;
  }
}

@media (max-width: 460px) {
  .code-access-brand {
    font-size: 20px;
  }

  .code-required-screen .standalone-language-slot {
    top: 70px;
    left: 18px;
    right: auto;
  }

  .code-required-screen .simplified-start {
    padding-top: 132px;
  }
}

/* Four-second visual handoff into selected interactive room decisions. */
.room-video-intro {
  position: relative;
  min-height: clamp(300px, 48vw, 560px);
  overflow: hidden;
  border: 1px solid rgba(140, 221, 255, 0.2);
  border-radius: 24px;
  background: #07121d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.room-video-intro-player {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  background: #07121d;
}

.room-video-intro-skip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  min-width: 92px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 15, 24, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.room-video-intro-skip:hover,
.room-video-intro-skip:focus-visible {
  border-color: rgba(151, 231, 255, 0.9);
  background: rgba(8, 31, 45, 0.9);
}

@media (max-width: 620px) {
  .room-video-intro {
    min-height: 300px;
    border-radius: 18px;
  }

  .room-video-intro-skip {
    right: 12px;
    bottom: 12px;
  }
}
