:root {
  --ink: #101827;
  --muted: #5a6678;
  --line: #d7dee8;
  --soft: #f5f7fa;
  --surface: #ffffff;
  --navy: #142238;
  --teal: #167d70;
  --teal-soft: #e5f5f1;
  --gold: #dcae45;
  --danger: #9f3b32;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #edf1f5;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, a { font: inherit; }

button, a { touch-action: manipulation; }

button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(22, 125, 112, 0.32);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prototype-shell {
  width: min(1760px, calc(100% - 32px));
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: hidden;
  border: 1px solid #cbd4df;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.prototype-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  color: #f8fafc;
}

.prototype-brand h1 {
  max-width: 760px;
  margin: 5px 0 0;
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.task-meta-line, .panel-heading, .exercise-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.prototype-topbar .eyebrow { color: #a9bacd; }

.progress-chip, .station-chip, .task-count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.prototype-actions { display: flex; align-items: center; gap: 8px; }

.weapons-link {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-weight: 800;
  text-decoration: none;
}

.weapons-link { display: inline-flex; align-items: center; background: #f8fafc; color: var(--navy); }

.prototype-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: calc(100vh - 125px);
}

.task-library {
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
}

.library-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.library-heading-actions { display: flex; align-items: center; gap: 7px; }
.library-close, .mobile-task-picker, .library-backdrop { display: none; }

.library-heading h2 { margin: 3px 0 0; font-size: 22px; }

.task-count { background: #e8edf3; color: #435066; white-space: nowrap; }

.qualification-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e8edf3;
}

.qualification-switch button {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #526075;
  font-size: 12px;
  font-weight: 900;
}

.qualification-switch button.active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.task-search { display: block; margin: 10px 0 12px; }

.task-search input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.lane-list { display: grid; gap: 4px; }

.lane-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #3f4c60;
  font-weight: 780;
  text-align: left;
}

.lane-button strong { color: #78869a; font-size: 12px; }
.lane-button.active { background: var(--teal-soft); color: #0b6358; }
.lane-button.active strong { color: #0b6358; }
.lane-button.existing { margin-top: 5px; border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; }

.task-list { display: grid; gap: 7px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.task-button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.task-button.active { border-color: #a8d8cf; background: var(--surface); box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06); }
.task-button strong { display: block; font-size: 13px; line-height: 1.25; }
.task-button small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.task-code { display: grid; place-items: center; min-height: 32px; border-radius: 7px; background: #e9eef4; color: #334155; font-size: 12px; font-weight: 900; }
.task-button.active .task-code { background: var(--teal); color: white; }

.task-studio { min-width: 0; padding: 22px; }

.studio-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.studio-header h2 { margin: 7px 0 4px; font-size: clamp(25px, 3vw, 37px); letter-spacing: -0.035em; }
.studio-header p { margin: 0; color: var(--muted); }
.task-meta-line { color: var(--muted); font-size: 12px; font-weight: 750; }
.station-chip { background: var(--navy); color: white; }

.mode-switch { display: inline-grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; min-width: 286px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.mode-button { display: grid; place-items: center; gap: 1px; min-height: 48px; border: 0; border-right: 1px solid var(--line); background: transparent; color: #526076; font-weight: 850; }
.mode-button small { font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .72; }
.mode-button:last-child { border-right: 0; }
.mode-button.active { background: var(--teal); color: white; }

.standard-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.standard-strip div { display: flex; align-items: baseline; justify-content: center; gap: 9px; min-height: 54px; padding: 10px; border-right: 1px solid var(--line); }
.standard-strip div:last-child { border-right: 0; }
.standard-strip span { color: var(--muted); font-size: 12px; font-weight: 780; }
.standard-strip strong { font-size: 18px; }
.standard-strip.single-metric { grid-template-columns: 1fr; }
.standard-strip.single-metric div { justify-content: flex-start; padding-inline: 16px; }
.standard-strip.single-metric strong { max-width: none; text-align: left; }

.studio-grid {
  display: grid;
  grid-template-columns: minmax(500px, 2fr) minmax(230px, 0.7fr);
  grid-template-areas: "exercise reference";
  gap: 16px;
  margin-top: 16px;
}

.exercise-panel, .result-card, .learning-result { grid-area: exercise; }
.simulation-training-shell { display: grid; grid-area: exercise; gap: 12px; min-width: 0; align-self: start; }
.simulation-training-shell > .training-blueprint { margin: 0; }
.simulation-training-shell > .exercise-panel,
.simulation-training-shell > .result-card { grid-area: auto; }
.scenario-panel { grid-area: reference; }
.scenario-panel, .exercise-panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.exercise-panel { padding: 18px; }
.scenario-panel { align-self: start; overflow: hidden; background: #f8fafc; }
.scenario-panel > summary { display: grid; gap: 3px; padding: 14px 16px; cursor: pointer; list-style: none; }
.scenario-panel > summary::-webkit-details-marker { display: none; }
.scenario-panel > summary::after { content: "+"; grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--teal); font-size: 23px; font-weight: 700; }
.scenario-panel[open] > summary::after { content: "–"; }
.scenario-panel > summary span { color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.scenario-panel > summary strong { color: var(--muted); font-size: 11px; }
.scenario-panel-content { padding: 3px 16px 16px; border-top: 1px solid var(--line); }
.scenario-panel h3, .exercise-panel h3 { margin: 7px 0 9px; font-size: 19px; }
.scenario-copy { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.scenario-facts { display: grid; gap: 0; margin: 17px 0; }
.scenario-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.scenario-facts dt { color: var(--muted); font-size: 12px; font-weight: 750; }
.scenario-facts dd { margin: 0; font-size: 12px; font-weight: 850; text-align: right; }
.task-clock { display: grid; gap: 10px; margin: 14px 0; padding: 12px; border-radius: 9px; background: var(--navy); color: white; }
.task-clock > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.task-clock span { color: #b9c9d9; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.task-clock strong { font: 900 27px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.task-clock.expired { background: #702c29; }
.task-clock.no-limit { background: #e9eef3; color: var(--ink); }.task-clock.no-limit strong { font: 850 11px/1.3 Inter, system-ui, sans-serif; }
.clock-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.clock-controls:empty { display: none; }
.clock-controls button, .clock-segments button { min-height: 34px; padding: 5px 7px; border: 1px solid #65768a; border-radius: 6px; background: #26384e; color: white; font-size: 9px; font-weight: 850; }
.clock-controls button:disabled { opacity: .38; }
.clock-segments { display: flex; flex-wrap: wrap; gap: 5px; }.clock-segments button.active { border-color: #7fd0bf; background: #235d54; }

.exercise-heading { justify-content: space-between; align-items: flex-start; }
.progress-chip { background: var(--teal-soft); color: #0b6358; }
.coach-callout { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; margin: 14px 0; padding: 13px; border-left: 4px solid var(--teal); border-radius: 7px; background: var(--teal-soft); }
.coach-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: white; font-weight: 900; }
.coach-callout p { margin: 3px 0 0; color: #315f59; font-size: 12px; line-height: 1.4; }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.answer-card { min-height: 54px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 820; text-align: left; }
.answer-card:hover { border-color: var(--teal); background: #f5fffc; }
.answer-card.correct { border-color: var(--teal); background: var(--teal-soft); color: #0b6358; }

.transmission-stack { display: grid; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.transmission-stack li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 42px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: #778397; }
.transmission-stack li.current { border-color: #9dd4ca; background: #f5fffc; color: var(--ink); }
.transmission-stack span { font-size: 11px; font-weight: 900; text-transform: uppercase; }
.transmission-stack strong { font-size: 12px; }
.transmission-stack small { font-size: 10px; font-weight: 760; }

@media (max-width: 1200px) {
  .prototype-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .studio-grid { grid-template-columns: minmax(390px, 1.55fr) minmax(200px, 0.8fr); }
}

@media (max-width: 860px) {
  .prototype-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }
  .prototype-topbar { position: relative; z-index: 10; min-height: 62px; padding: 12px 15px; }
  .prototype-brand h1 { margin-top: 2px; font-size: 17px; }
  .prototype-actions { flex: 0 0 auto; }
  .weapons-link { min-height: 38px; padding-inline: 10px; font-size: 11px; }
  .prototype-layout { grid-template-columns: 1fr; }
  body.library-open { overflow: hidden; }
  .task-library { position: fixed; z-index: 70; inset: 0 auto 0 0; width: min(390px, 92vw); height: 100dvh; max-height: 100dvh; padding: 18px 15px 30px; overflow: auto; border: 0; box-shadow: 18px 0 48px rgba(15,23,42,.28); transform: translateX(-105%); transition: transform .2s ease; }
  .task-library.open { transform: translateX(0); }
  .library-close { display: inline-flex; align-items: center; min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: 11px; font-weight: 850; }
  .library-backdrop { position: fixed; z-index: 60; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: rgba(15,23,42,.6); }
  .lane-list, .task-list { display: grid; overflow: visible; }
  .lane-button { width: 100%; }
  .task-button { width: 100%; }
  .task-studio { padding: 14px; }
  .mobile-task-picker { display: grid; width: 100%; min-height: 52px; padding: 8px 12px; border: 1px solid #a8d8cf; border-radius: 9px; background: var(--teal-soft); color: #0b6358; text-align: left; }
  .mobile-task-picker span { font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .mobile-task-picker strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .studio-header { flex-direction: column; }
  .studio-header h2 { font-size: clamp(23px, 7vw, 31px); }
  .mode-switch { width: 100%; }
  .standard-strip { display: none; }
  .studio-grid { grid-template-columns: 1fr; grid-template-areas: "exercise" "reference"; margin-top: 12px; }
  .scenario-panel > summary { min-height: 54px; }
  .exercise-panel, .result-card, .learning-result { border-radius: 10px; }
}

@media (max-width: 520px) {
  .prototype-topbar, .task-studio { padding: 12px; }
  .prototype-brand h1 { display: none; }
  .task-meta-line { gap: 6px; }
  .answer-grid { grid-template-columns: 1fr; }
  .transmission-stack li { grid-template-columns: 46px minmax(0, 1fr); }
  .transmission-stack small { grid-column: 2; }
}

[hidden] { display: none !important; }

.task-button.weapon-entry { text-decoration: none; }
.empty-state { padding: 12px; border-radius: 8px; background: #eef2f6; color: var(--muted); font-size: 11px; line-height: 1.45; }

.standard-strip strong {
  max-width: 66%;
  overflow-wrap: anywhere;
  font-size: clamp(13px, 1.4vw, 18px);
  text-align: right;
}

.standard-box {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #ccd8e4;
  border-radius: 8px;
  background: white;
}

.standard-box span { color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.standard-box p { margin: 5px 0 0; color: #344155; font-size: 12px; line-height: 1.48; }

.test-clock {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #e1b760;
  border-radius: 8px;
  background: #fff8e8;
}

.test-clock span { color: #725716; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.test-clock strong { grid-row: 1 / span 2; grid-column: 2; color: #5b4110; font: 900 28px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.test-clock small { color: #8b733d; font-size: 10px; }
.test-clock.expired { border-color: #d49a94; background: #fff0ee; }
.test-clock.expired strong { color: var(--danger); }

.answer-card.incorrect { border-color: #cd827a; background: #fff1ef; color: #843029; }
.answer-card.recorded { border-color: #8796a9; background: #edf1f5; color: #39485c; }

.map-board {
  position: relative;
  aspect-ratio: 14 / 9;
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid #75816e;
  border-radius: 9px;
  background: #e9e5cb;
  cursor: crosshair;
}

.map-board > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-overlay { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-overlay line { stroke: #a2231d; stroke-width: 5; stroke-dasharray: 14 8; filter: drop-shadow(0 1px 1px white); }
.map-overlay circle { stroke: white; stroke-width: 5; }
.map-overlay .landmark-point { fill: #a2231d; }
.map-point-label { position: absolute; z-index: 3; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--navy); color: white; font-size: 11px; font-weight: 900; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.map-point-label.point-a { left: 42.14%; top: 40.56%; translate: -130% -130%; }
.map-point-label.point-b { left: 90.43%; top: 66%; translate: -130% -130%; }
.user-map-plot { position: absolute; z-index: 4; width: 20px; height: 20px; translate: -50% -50%; border: 4px solid white; border-radius: 50%; background: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,0.55); pointer-events: none; }
.user-map-plot.correct { background: var(--teal); }
.user-map-plot.incorrect { background: var(--danger); }
.user-map-plot.recorded { background: var(--gold); }
.map-credit { position: absolute; z-index: 3; right: 7px; bottom: 7px; padding: 4px 6px; border-radius: 4px; background: rgba(20, 34, 56, 0.84); color: white; font-size: 9px; font-weight: 800; }
.map-sheet-link { display: inline-flex; align-items: center; min-height: 38px; margin-top: 10px; color: #0b6358; font-size: 12px; font-weight: 850; }

.lz-board {
  position: relative;
  min-height: 230px;
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid #8a9f83;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0 48%, transparent 49%), repeating-linear-gradient(28deg, #66825f 0 14px, #6f8b67 14px 28px);
}

.lz-center { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 84px; height: 84px; border: 2px dashed rgba(255,255,255,0.8); border-radius: 50%; background: rgba(20,34,56,0.7); color: white; font-size: 11px; font-weight: 850; }
.lz-hazard { position: absolute; z-index: 3; min-width: 58px; height: 34px; border: 2px solid #6f332f; border-radius: 18px; background: #f2d1bd; color: #5b2a27; font-size: 10px; font-weight: 900; }
.lz-hazard.rock { left: 14%; top: 22%; }
.lz-hazard.branch { right: 11%; bottom: 24%; }
.lz-light { position: absolute; z-index: 3; display: grid; place-items: center; min-width: 32px; width: 32px; height: 32px; padding: 0; border: 2px solid #705814; border-radius: 50%; background: #ffe17b; color: #392c08; font-size: 10px; font-weight: 900; box-shadow: 0 0 18px rgba(255, 226, 109, 0.85); }
.light-1 { left: 47%; top: 18%; }.light-2 { left: 31%; top: 55%; }.light-3 { right: 29%; top: 55%; }.light-4 { left: 47%; bottom: 8%; }

.body-zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 13px 0; padding: 13px; border-radius: 12px; background: #edf1f5; }
.body-zone-grid button { min-width: 0; min-height: 48px; padding: 7px; border: 1px solid #bfc9d6; border-radius: 8px; background: white; color: #364357; font-size: 11px; font-weight: 820; }
.body-zone-grid button.selected { border-color: var(--teal); background: var(--teal-soft); color: #0b6358; box-shadow: inset 0 0 0 1px var(--teal); }
.body-zone-grid button:nth-child(1) { grid-column: 2; }.body-zone-grid button:nth-child(2) { grid-row: 2; grid-column: 1; }.body-zone-grid button:nth-child(3) { grid-row: 2; grid-column: 3; }.body-zone-grid button:nth-child(4) { grid-row: 3; grid-column: 1; }.body-zone-grid button:nth-child(5) { grid-row: 3; grid-column: 2; }.body-zone-grid button:nth-child(6) { grid-row: 3; grid-column: 3; }.body-zone-grid button:nth-child(7) { grid-row: 4; grid-column: 1; }.body-zone-grid button:nth-child(8) { grid-row: 4; grid-column: 3; }

.event-timeline { display: grid; gap: 7px; margin: 14px 0; padding: 0; list-style: none; }
.event-timeline li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.event-timeline li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e8edf3; font-size: 11px; font-weight: 900; }
.event-timeline li strong { font-size: 12px; }
.event-timeline li button { min-width: 92px; min-height: 34px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; font-size: 10px; font-weight: 850; }
.event-timeline li.complete { border-color: #9bd1c6; background: var(--teal-soft); }
.event-timeline li.complete > span { background: var(--teal); color: white; }
.blueprint-workspace { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 16px; min-height: 150px; margin: 14px 0; padding: 18px; border: 1px dashed #9cacbd; border-radius: 10px; background: #f8fafc; }
.blueprint-workspace p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.workspace-icon { display: grid; gap: 7px; padding: 12px; border-radius: 10px; background: var(--navy); }
.workspace-icon span { height: 7px; border-radius: 4px; background: #b6c7da; }
.workspace-icon span:nth-child(2) { width: 72%; background: var(--gold); }

.weapons-preserved-panel { grid-column: 1 / -1; padding: clamp(22px, 5vw, 64px); border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, #f7f9fb, white); }
.weapons-preserved-panel h3 { max-width: 780px; margin: 8px 0; font-size: clamp(25px, 4vw, 42px); }
.weapons-preserved-panel p { max-width: 760px; color: var(--muted); line-height: 1.5; }
.weapon-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.weapon-tags span { padding: 7px 11px; border-radius: 999px; background: var(--navy); color: white; font-size: 11px; font-weight: 900; }
.primary-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border-radius: 8px; background: var(--teal); color: white; font-weight: 850; text-decoration: none; }

.prototype-dialog { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; }
.dialog-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(15, 23, 42, 0.72); }
.dialog-card { position: relative; width: min(520px, 100%); padding: 24px; border-radius: 12px; background: white; box-shadow: var(--shadow); }
.dialog-card h2 { margin: 6px 0 8px; }
.dialog-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.dialog-actions button { min-width: 110px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: white; font-weight: 850; }
.dialog-actions .primary-action { border-color: var(--teal); background: var(--teal); color: white; }

@media (max-width: 860px) {
  .task-library { max-height: 100dvh; overflow: auto; }
}

@media (max-width: 620px) {
  .body-zone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-timeline li { grid-template-columns: 32px minmax(0, 1fr); }
  .event-timeline li button { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Complete task-trainer workspaces */
.task-library {
  align-self: start;
  max-height: calc(100vh - 125px);
  overflow: auto;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-weight: 850;
}

.secondary-action { border-color: var(--line); background: white; color: var(--ink); }
.full-width { width: 100%; margin-top: 16px; }
button:disabled { cursor: not-allowed; opacity: 0.46; }

.choice-stack { display: grid; gap: 8px; margin: 14px 0; }
.choice-stack.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-stack button {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 780;
  line-height: 1.35;
  text-align: left;
}
.choice-stack button:hover { border-color: var(--teal); background: #f5fffc; }

.coach-callout.ok { border-left-color: var(--teal); background: var(--teal-soft); }
.coach-callout.error { border-left-color: var(--danger); background: #fff1ef; }
.coach-callout.error .coach-number { background: var(--danger); }
.coach-callout.error p { color: #74342e; }

.step-progress { display: grid; gap: 5px; margin: 18px 0 0; padding: 0; list-style: none; }
.step-progress li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 36px; padding: 5px 7px; border-radius: 7px; color: #8590a0; }
.step-progress li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e7ecf2; font-size: 10px; font-weight: 900; }
.step-progress li p { margin: 0; font-size: 11px; line-height: 1.35; }
.step-progress li.current { background: #f3f7fa; color: var(--ink); }
.step-progress li.current span { background: var(--navy); color: white; }
.step-progress li.done { color: #30675f; }
.step-progress li.done span { background: var(--teal); color: white; }

.timer-row, .tool-row, .device-inventory, .standard-list, .tolerance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}
.timer-row span, .tool-row > span, .device-inventory span, .standard-list span, .tolerance-row span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e9eef4;
  color: #415067;
  font-size: 10px;
  font-weight: 850;
}
.critical-rule { margin: 12px 0; padding: 11px 12px; border-left: 4px solid var(--danger); border-radius: 7px; background: #fff2f0; color: #6b302a; font-size: 12px; line-height: 1.45; }
.reference-drawer { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.reference-drawer summary { cursor: pointer; color: #36506e; font-size: 12px; font-weight: 850; }
.reference-drawer li { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.4; }

.result-card { min-width: 0; padding: clamp(24px, 5vw, 56px); border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #f7fafc, white); }
.result-card.pass { border-top: 5px solid var(--teal); }
.result-card.review { border-top: 5px solid var(--gold); }
.result-card h3 { margin: 8px 0 22px; font-size: clamp(25px, 4vw, 44px); }
.result-card > p:not(.eyebrow) { max-width: 620px; color: var(--muted); line-height: 1.5; }
.result-score { display: flex; align-items: baseline; gap: 15px; margin-bottom: 16px; }
.result-score strong { font-size: clamp(42px, 7vw, 76px); line-height: 1; }
.result-score span { color: var(--muted); font-weight: 750; }

.learning-panel { align-self: start; overflow: hidden; }
.learning-progress { height: 5px; margin: -18px -18px 18px; background: #e8edf3; }
.learning-progress span { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--teal); transition: width .2s ease; }
.learning-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.learning-label { margin: 22px 0 5px; color: var(--teal); font-size: 12px; font-weight: 900; }
.learning-panel > h3 { max-width: 720px; margin: 5px 0 18px; font-size: clamp(23px, 3vw, 36px); line-height: 1.16; letter-spacing: -.025em; }
.teach-answer { display: grid; gap: 7px; margin: 20px 0; padding: clamp(18px, 4vw, 30px); border-left: 5px solid var(--teal); border-radius: 10px; background: var(--teal-soft); }
.teach-answer > span { color: #39736a; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.teach-answer > strong { color: #0b5149; font-size: clamp(22px, 4vw, 38px); line-height: 1.15; }
.teach-answer > p { margin: 4px 0 0; color: #315f59; font-size: 13px; line-height: 1.5; }
.learning-next { width: 100%; min-height: 54px; }
.learning-choices { max-width: 780px; }
.learning-choices button { min-height: 58px; padding: 13px 15px; font-size: 14px; }
.lesson-panel { align-self: start; overflow: hidden; }
.lesson-panel > h3 { max-width: 760px; margin: 5px 0 18px; font-size: clamp(27px, 4vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
.lesson-outcome { display: grid; gap: 7px; padding: clamp(20px, 4vw, 34px); border-radius: 12px; background: var(--navy); color: white; }
.lesson-outcome span, .lesson-method > span, .lesson-coach > span, .lesson-ready > span { color: #8dd2c3; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.lesson-outcome strong { max-width: 780px; font-size: clamp(20px, 3vw, 31px); line-height: 1.25; }
.lesson-method { margin: 12px 0; padding: 17px 18px; border-left: 5px solid var(--gold); border-radius: 9px; background: #fff8df; }.lesson-method > span { color: #7d651d; }.lesson-method h4 { margin: 5px 0; font-size: 19px; }.lesson-method p { margin: 0; color: #665e46; font-size: 12px; line-height: 1.5; }
.lesson-route { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 14px 0 18px; padding: 0; list-style: none; }
.lesson-route li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 58px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9fb; }.lesson-route li > span, .lesson-rehearsal-flow li > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--teal); color: white; font-size: 11px; font-weight: 900; }.lesson-route li div { display: grid; gap: 2px; }.lesson-route strong { font-size: 12px; }.lesson-route small { color: var(--muted); font-size: 9px; font-weight: 750; line-height: 1.35; }
.lesson-step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 13px 0; }
.lesson-step-list button { display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 74px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); text-align: left; }.lesson-step-list button > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e5ebf1; color: #617087; font-size: 11px; font-weight: 900; }.lesson-step-list button div { display: grid; gap: 3px; min-width: 0; }.lesson-step-list button strong { font-size: 12px; line-height: 1.25; }.lesson-step-list button small { color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }.lesson-step-list button.active { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 -4px var(--teal); }.lesson-step-list button.active > span { background: var(--teal); color: white; }
.learning-device-guide { display: grid; justify-items: center; gap: 7px; margin: 13px 0; padding: 12px; overflow: hidden; border-radius: 11px; background: #17202b; }.learning-device-guide img { display: block; width: 100%; max-width: 440px; max-height: 430px; object-fit: contain; }.learning-device-guide figcaption { color: #d8e3ec; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.lesson-coach { display: grid; gap: 5px; margin: 13px 0 18px; padding: 17px 18px; border-left: 5px solid var(--teal); border-radius: 9px; background: var(--teal-soft); }.lesson-coach strong { color: #0b5149; font-size: clamp(18px, 3vw, 26px); }.lesson-coach p { margin: 0; color: #315f59; font-size: 12px; line-height: 1.5; }.lesson-coach .lesson-explanation { margin-top: 4px; padding-top: 8px; border-top: 1px solid rgba(11,99,88,.2); font-weight: 800; }
.lesson-rehearsal-lead { max-width: 760px; margin: -3px 0 17px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.lesson-rehearsal-flow { display: flex; align-items: stretch; gap: 7px; margin: 0 0 15px; padding: 0 0 5px; overflow-x: auto; list-style: none; scrollbar-width: thin; }.lesson-rehearsal-flow li { display: grid; grid-template-columns: 33px minmax(112px, 1fr); grid-template-rows: auto auto; align-items: center; gap: 2px 8px; flex: 1 0 155px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9fb; }.lesson-rehearsal-flow li > span { grid-row: 1 / span 2; }.lesson-rehearsal-flow strong { font-size: 11px; }.lesson-rehearsal-flow small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.lesson-ready { display: grid; gap: 5px; margin: 13px 0 18px; padding: 18px; border-radius: 10px; background: var(--navy); color: white; }.lesson-ready strong { max-width: 700px; font-size: 17px; line-height: 1.4; }
.practice-feedback { margin: 12px 0; padding: 12px 14px; border-radius: 8px; background: var(--teal-soft); color: #0b6358; font-weight: 850; }
.practice-feedback.error { background: #fff1ef; color: #843029; }
.learning-result { align-self: start; display: grid; justify-items: start; gap: 9px; min-width: 0; padding: clamp(28px, 6vw, 68px); border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: 12px; background: linear-gradient(145deg, #f5fbf9, white); }
.learning-result.review { border-top-color: var(--gold); }
.learning-result-mark { display: grid; place-items: center; min-width: 76px; min-height: 76px; padding: 10px; border-radius: 50%; background: var(--teal); color: white; font-size: 30px; font-weight: 900; }
.learning-result.review .learning-result-mark { background: var(--gold); color: #362a0c; }
.learning-result h3 { margin: 2px 0; font-size: clamp(26px, 4vw, 42px); }
.learning-result > p:not(.eyebrow) { max-width: 650px; margin: 0 0 8px; color: var(--muted); line-height: 1.5; }
.learning-result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.learning-model-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: #0b6358; font-size: 12px; font-weight: 850; }
.learning-map-sheet { position: relative; width: min(680px, 100%); overflow: hidden; border: 1px solid #8f9687; border-radius: 9px; background: #e4e2ca; }
.learning-map-sheet img { display: block; width: 100%; }
.learning-map-sheet span { position: absolute; border: 4px solid #d72d26; border-radius: 4px; background: rgba(255, 227, 44, .2); box-shadow: 0 0 0 2px white; }

.weapon-launch-panel { background: linear-gradient(145deg, #f8fafc, #fff); }
.exercise-lead { max-width: 680px; color: var(--muted); line-height: 1.5; }
.weapon-route-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 22px 0; }
.weapon-route { display: grid; gap: 5px; min-height: 112px; padding: 16px; border: 1px solid #a8d8cf; border-radius: 10px; background: var(--teal-soft); color: #0b6358; text-decoration: none; }
.weapon-route:hover { border-color: var(--teal); box-shadow: 0 8px 20px rgba(22, 125, 112, 0.12); }
.weapon-route span, .weapon-route small { font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.07em; }
.weapon-route strong { color: var(--ink); font-size: 18px; }
.route-summary { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 7px 12px; padding: 12px; border-radius: 8px; background: var(--navy); color: white; }
.route-summary span { color: #b6c7da; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.weapon-sequence { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.weapon-sequence > .result-card { margin-top: 12px; }

.standards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 13px 0; }
.standards-row div { display: grid; gap: 4px; padding: 11px; border-radius: 8px; background: #f1f5f8; }
.standards-row span { color: var(--muted); font-size: 10px; font-weight: 850; }
.standards-row strong { font-size: 20px; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.checklist legend { padding: 0 6px; color: var(--muted); font-size: 11px; font-weight: 850; }
.checklist label { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px; border-radius: 7px; background: #f7f9fb; font-size: 11px; font-weight: 760; }
.compact-checklist { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.calculator-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.calculator-grid label, .form-grid label, .line-builder label, .inline-submit label, .symbol-test label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 850; }
.calculator-grid input, .form-grid input, .line-builder input, .inline-submit input, .symbol-test input { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); }
.calculator-grid output { display: grid; align-content: center; gap: 4px; padding: 10px 12px; border-radius: 8px; background: var(--navy); color: white; }
.calculator-grid output span { color: #b6c7da; font-size: 10px; font-weight: 850; }
.calculator-grid output strong { font-size: 20px; }
.march-panel > .exercise-panel { margin-top: 18px; padding: 0; border: 0; }

.map-workbench { position: relative; aspect-ratio: 14 / 9; overflow: hidden; margin: 13px 0; border: 1px solid #79836e; border-radius: 9px; background: #e8e3c6; cursor: crosshair; }
.map-workbench > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-workbench.night > img { filter: brightness(.3) contrast(1.3) saturate(.65) sepia(.18); }
.map-workbench.night::after { content: "Night iteration"; position: absolute; right: 9px; top: 9px; z-index: 2; padding: 5px 8px; border-radius: 5px; background: rgba(4, 13, 27, .82); color: #d5e3f2; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.map-workbench.locked { cursor: not-allowed; }
.map-workbench.locked::before { content: "Verify equipment to unlock map"; position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(15, 28, 45, .72); color: white; font-size: 13px; font-weight: 900; pointer-events: none; }
.map-workbench svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-workbench svg circle { fill: #a42922; stroke: white; stroke-width: 5; }
.map-workbench svg line { stroke: #a42922; stroke-width: 5; stroke-dasharray: 14 8; filter: drop-shadow(0 1px 1px white); }
.map-dot { position: absolute; z-index: 4; display: grid; place-items: center; width: 25px; height: 25px; translate: -50% -50%; border: 3px solid white; border-radius: 50%; background: var(--navy); color: white; font-size: 10px; font-weight: 900; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.map-dot.correct { background: var(--teal); }.map-dot.incorrect { background: var(--danger); }
.map-dot.recorded { background: #435066; }
.map-label { position: absolute; z-index: 3; padding: 4px 6px; border-radius: 4px; background: rgba(20,34,56,.86); color: white; font-size: 8px; font-weight: 800; pointer-events: none; }
.map-label.feature-a { left: 39%; top: 35%; }.map-label.feature-b { right: 3%; top: 60%; }

.fire-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 11px; border: 1px solid #9aa890; border-bottom: 0; border-radius: 9px 9px 0 0; background: #1c2b3d; color: white; }
.fire-map-toolbar > div:first-child { display: grid; gap: 2px; }
.fire-map-toolbar strong { font-size: 12px; }
.fire-map-toolbar span { color: #c6d1dd; font-size: 9px; font-weight: 750; }
.fire-zoom-controls { display: flex; align-items: center; gap: 5px; }
.fire-zoom-controls button { min-width: 36px; min-height: 36px; padding: 0 9px; border: 1px solid #63748a; border-radius: 6px; background: #34475d; color: white; font-size: 15px; font-weight: 900; }
.fire-zoom-controls button:last-child { font-size: 9px; text-transform: uppercase; }
.fire-zoom-controls output { min-width: 43px; color: #e6edf4; font-size: 10px; font-weight: 900; text-align: center; }
.fire-board { position: relative; height: clamp(420px, 62vh, 680px); overflow: auto; border: 1px solid #95a087; border-radius: 0 0 9px 9px; background: #c8c2a5; overscroll-behavior: contain; }
.fire-map-canvas { position: relative; aspect-ratio: 14 / 9; cursor: crosshair; touch-action: pan-x pan-y; }
.fire-map-canvas:focus-visible { outline: 4px solid #0b72c8; outline-offset: -4px; }
.fire-map-canvas > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; filter: saturate(.9) contrast(1.05); user-select: none; -webkit-user-drag: none; }
.fire-map-canvas > svg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.fire-map-canvas > svg line { stroke: #0f3556; stroke-width: 5; stroke-dasharray: 14 8; filter: drop-shadow(0 1px 1px white); }
.observer-marker, .target-marker, .impact-marker, .fire-learning-target { position: absolute; z-index: 4; display: grid; place-items: center; translate: -50% -50%; border-radius: 50%; color: white; font-size: 10px; font-weight: 900; box-shadow: 0 2px 9px rgba(0,0,0,.45); pointer-events: none; }
.observer-marker { width: 42px; height: 42px; background: var(--navy); border: 3px solid white; }
.target-marker { width: 48px; height: 48px; background: var(--danger); border: 3px solid white; }
.target-marker.correct { background: var(--teal); }.target-marker.review { background: var(--danger); }
.impact-marker { width: 30px; height: 30px; background: var(--gold); border: 2px solid white; color: #192231; }
.fire-learning-target { width: 54px; height: 54px; border: 3px dashed white; background: rgba(168, 43, 35, .72); animation: target-pulse 1.7s ease-in-out infinite; }
.fire-learning-target span { position: absolute; left: 50%; top: calc(100% + 7px); width: max-content; translate: -50% 0; padding: 4px 6px; border-radius: 4px; background: rgba(15, 28, 45, .9); font-size: 9px; }
@keyframes target-pulse { 50% { scale: 1.14; } }
.fire-map-status { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 10px; margin: 10px 0 14px; }
.fire-map-status > div, .fire-map-status dl { margin: 0; padding: 11px 12px; border: 1px solid #b9c8d6; border-radius: 8px; background: #f1f6f9; }
.fire-map-status > div { display: grid; gap: 5px; }
.fire-map-status span, .fire-map-status dt { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.fire-map-status strong { color: var(--navy); font-size: 12px; line-height: 1.45; }
.fire-map-status dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fire-map-status dl div { display: grid; align-content: start; gap: 4px; }
.fire-map-status dd { margin: 0; color: var(--navy); font-size: 11px; font-weight: 900; }
.impact-report { display: grid; gap: 5px; margin: 12px 0; padding: 13px; border-left: 4px solid var(--gold); border-radius: 7px; background: #fff8db; }
.impact-report.complete { border-color: var(--teal); background: var(--teal-soft); }
.impact-report span { color: #6d5b23; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.impact-report strong { font-size: 13px; }

@media (max-width: 620px) {
  .fire-map-toolbar { align-items: flex-start; flex-direction: column; }
  .fire-zoom-controls { width: 100%; }
  .fire-zoom-controls button:last-child { margin-left: auto; }
  .fire-board { height: 56dvh; min-height: 390px; }
  .fire-map-status { grid-template-columns: 1fr; }
  .fire-map-status dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 13px 0; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scenario-reference { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; padding: 10px 12px; border: 1px solid #b7c9d8; border-radius: 8px; background: #eef4f8; }
.scenario-reference span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.scenario-reference strong { font-size: 11px; }

.device-source-packet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 13px 0; }
.device-source-packet article { display: grid; gap: 5px; padding: 11px; border: 1px solid #b8c8d6; border-radius: 8px; background: #eef4f8; }
.device-source-packet span { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }.device-source-packet strong { font-size: 11px; line-height: 1.35; }
.device-screen { display: grid; align-content: center; gap: 10px; min-height: 210px; padding: 17px; border: 9px solid #111820; border-radius: 10px; background: #a4be89; box-shadow: inset 0 0 20px rgba(27,57,24,.35); color: #172619; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.device-screen span { font-size: 10px; font-weight: 850; }.device-screen strong { font-size: 25px; }.device-screen small { line-height: 1.4; }
.device-keypad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.device-keypad button { display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 7px; min-height: 48px; padding: 7px; border: 1px solid #4d5a69; border-radius: 7px; background: #2b3542; color: #e7edf4; font-size: 10px; font-weight: 760; text-align: left; }
.device-keypad button span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #485667; }
.device-keypad button.next { border-color: var(--gold); }.device-keypad button.complete { border-color: #79b7a8; background: #21453f; }

.device-manipulation-workbench {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(280px, 1.2fr);
  align-items: start;
  gap: 16px;
  margin: 15px 0;
  padding: 16px;
  border-radius: 14px;
  background: #17202b;
}

.device-readout {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  padding: 16px;
  border: 7px solid #0d131b;
  border-radius: 10px;
  background: #a8bd8c;
  color: #182619;
  box-shadow: inset 0 0 22px rgba(27, 57, 24, .28);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.device-readout > span, .device-name { font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.device-readout > strong { min-height: 48px; font-size: clamp(17px, 2vw, 24px); line-height: 1.15; overflow-wrap: anywhere; }
.device-readout > small { line-height: 1.45; }
.physical-readout { align-content: center; }

.device-screen-choices { display: grid; gap: 7px; }
.device-screen-choices button {
  min-height: 46px;
  padding: 8px 10px;
  border: 2px solid rgba(24, 38, 25, .32);
  border-radius: 6px;
  background: rgba(233, 244, 217, .47);
  color: #182619;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
}
.device-screen-choices button.selected { border-color: #182619; background: #e9f2d9; box-shadow: inset 4px 0 #182619; }

.device-stage-card { display: grid; justify-items: center; gap: 8px; min-width: 0; color: #d8e3ec; }
.device-photo-frame {
  position: relative;
  width: min(100%, 390px);
  height: 500px;
  overflow: hidden;
  border: 1px solid #46515d;
  border-radius: 12px;
  background: #f4f4f1;
  box-shadow: 0 18px 35px rgba(0, 0, 0, .26);
}
.device-photo-frame > img { position: absolute; max-width: none; user-select: none; pointer-events: none; }
.photo-radio { width: min(100%, 270px); height: auto; aspect-ratio: 357 / 840; }
.photo-radio > img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-skl > img { top: -39%; left: 50%; height: 137%; width: auto; transform: translateX(-46%); }
.photo-dagr { height: auto; aspect-ratio: 760 / 1260; }
.photo-dagr > img { inset: 0; width: 100%; height: 100%; object-fit: cover; }

.device-hotspot {
  position: absolute;
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  cursor: pointer;
}
.device-hotspot:hover, .device-hotspot:focus-visible { border-color: #f4c85c; background: rgba(244, 200, 92, .18); }
.device-hotspot.guided { border-color: #ffe169; background: rgba(255, 225, 105, .28); box-shadow: 0 0 0 4px rgba(255, 225, 105, .22), 0 0 22px rgba(255, 225, 105, .88); }
.device-hotspot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.apply-mode .device-hotspot { border-color: rgba(255, 255, 255, .16); background: transparent; }
.apply-mode .device-hotspot:hover, .apply-mode .device-hotspot:focus-visible { border-color: #f4c85c; background: rgba(244, 200, 92, .12); }

.photo-radio .hotspot-power { left: 44%; top: 8%; width: 17%; height: 11%; }
.photo-radio .hotspot-channel { left: 25%; top: 7%; width: 18%; height: 12%; }
.photo-radio .hotspot-antenna { left: 29%; top: 0; width: 19%; height: 17%; }
.photo-radio .hotspot-audio { left: 59%; top: 7%; width: 22%; height: 14%; }
.photo-radio .hotspot-mode { left: 29%; top: 47.6%; width: 17%; height: 6.4%; border-radius: 10px; }
.photo-radio .hotspot-gr { left: 43%; top: 47.6%; width: 17%; height: 6.4%; border-radius: 10px; }
.photo-radio .hotspot-esc { left: 57%; top: 47.6%; width: 17%; height: 6.4%; border-radius: 10px; }
.photo-radio .hotspot-down { left: 29%; top: 52.1%; width: 17%; height: 6.3%; border-radius: 10px; }
.photo-radio .hotspot-up { left: 43%; top: 52.1%; width: 17%; height: 6.3%; border-radius: 10px; }
.photo-radio .hotspot-enter { left: 57%; top: 52.1%; width: 17%; height: 6.3%; border-radius: 10px; }
.photo-radio .hotspot-alt { left: 27%; top: 56.5%; width: 19%; height: 6.5%; border-radius: 10px; }
.photo-radio .hotspot-pf1 { left: 9%; top: 31%; width: 17%; height: 13%; border-radius: 10px; }
.photo-radio .hotspot-ptt { left: 9%; top: 43%; width: 17%; height: 14%; border-radius: 10px; }
.photo-radio .hotspot-battery { left: 15%; top: 61%; width: 70%; height: 37%; border-radius: 12px; }

.photo-skl .hotspot-load { left: 5%; top: 67%; width: 48%; height: 22%; border-radius: 10px; }
.photo-dagr .hotspot-power { left: 28.5%; top: 62.7%; width: 15%; height: 9.5%; }
.photo-dagr .hotspot-menu { left: 40%; top: 71.5%; width: 14%; height: 11%; border-radius: 10px; }
.photo-dagr .hotspot-up { left: 44%; top: 63%; width: 15%; height: 8%; border-radius: 10px; }
.photo-dagr .hotspot-down { left: 44%; top: 80%; width: 15%; height: 8%; border-radius: 10px; }
.photo-dagr .hotspot-left { left: 27%; top: 72%; width: 13%; height: 10%; border-radius: 10px; }
.photo-dagr .hotspot-right { left: 61%; top: 72%; width: 13%; height: 10%; border-radius: 10px; }
.photo-dagr .hotspot-enter { left: 51%; top: 71.5%; width: 13%; height: 11%; border-radius: 10px; }

.skl-workbench { display: grid; grid-template-columns: minmax(210px, .7fr) minmax(300px, 1fr); align-items: center; gap: 16px; margin: 14px 0; padding: 16px; border-radius: 12px; background: #111915; color: white; }
.skl-step-card { display: grid; gap: 7px; align-content: center; padding: 14px; border-left: 4px solid #d8b64c; border-radius: 7px; background: #1d2922; }
.skl-step-card span { color: #9eb0a2; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.skl-step-card strong { font-size: clamp(17px, 2.2vw, 25px); line-height: 1.15; }
.skl-step-card small { color: #b9c7bb; font-size: 10px; font-weight: 800; }
.skl-face { position: relative; grid-column: 2; grid-row: 1 / span 2; width: min(100%, 420px); margin: auto; aspect-ratio: 420 / 760; }
.skl-face > img { display: block; width: 100%; height: 100%; user-select: none; pointer-events: none; }
.skl-screen { position: absolute; z-index: 3; left: 30.95%; top: 23.68%; display: flex; flex-direction: column; width: 38.1%; height: 39.47%; overflow: hidden; border: 1px solid #202a21; background: #dbe5d6; color: #162016; font-family: Arial, sans-serif; box-shadow: inset 0 0 0 2px rgba(255,255,255,.32); }
.skl-screen-bar { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 24px; padding: 3px 5px; background: #1f4f2b; color: white; font-size: 7px; }
.skl-screen > p { margin: 0; padding: 5px; border-bottom: 1px solid #7f947f; font-size: 7px; font-weight: 800; line-height: 1.25; }
.skl-screen-options { display: grid; gap: 3px; align-content: start; flex: 1; padding: 4px; overflow-y: auto; }
.skl-screen-options button { width: 100%; min-height: 36px; padding: 3px 4px; border: 1px solid #5d725f; border-radius: 2px; background: #edf3e9; color: #132016; font-size: 7px; font-weight: 900; line-height: 1.1; text-align: left; }
.skl-screen-options button:hover, .skl-screen-options button:focus-visible { outline: 2px solid #e2aa2f; outline-offset: -2px; background: #fff8d9; }
.skl-screen-options button.selected { border-color: #153d20; background: #b9d2b6; }
.skl-screen-status { display: flex; justify-content: space-between; gap: 4px; min-height: 20px; padding: 3px 5px; border-top: 1px solid #829182; background: #c4d1c1; font-size: 6px; }
.skl-hardware-control { position: absolute; z-index: 4; min-width: 44px; min-height: 44px; padding: 0; border: 2px solid rgba(224, 183, 70, .72); border-radius: 50%; background: rgba(224, 183, 70, .07); color: transparent; }
.skl-hardware-control:hover, .skl-hardware-control:focus-visible { border-color: #f4c85c; background: rgba(244, 200, 92, .2); }
.skl-hardware-control span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skl-power { left: 72.5%; top: 8.1%; width: 10%; height: 5.6%; }
.skl-softkey-1, .skl-softkey-2, .skl-softkey-3, .skl-softkey-4 { top: 71.5%; width: 11%; height: 6%; }
.skl-softkey-1 { left: 22%; }.skl-softkey-2 { left: 37%; }.skl-softkey-3 { left: 52%; }.skl-softkey-4 { left: 67%; }
.apply-mode .skl-hardware-control { border-color: rgba(255,255,255,.12); background: transparent; }
.skl-device-note { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid #3f5145; border-radius: 7px; background: #17231c; }
.skl-device-note span { color: #8fa394; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.skl-device-note strong { font-size: 11px; line-height: 1.35; }

.device-progress-rail { display: flex; gap: 7px; margin: 13px 0 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: thin; }
.device-progress-rail li { display: grid; grid-template-columns: 26px minmax(100px, 1fr); align-items: center; gap: 7px; flex: 0 0 auto; min-height: 45px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: #7b8797; background: white; }
.device-progress-rail li span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e7ecf1; font-size: 10px; font-weight: 900; }
.device-progress-rail li strong { max-width: 155px; font-size: 10px; line-height: 1.3; }
.device-progress-rail li.current { border-color: #d7aa3e; color: var(--ink); box-shadow: inset 0 3px #d7aa3e; }
.device-progress-rail li.complete { border-color: #9bcfc4; background: #f0faf7; color: #0b6358; }

.manpack-device-workbench { display: grid; grid-template-columns: minmax(300px, 1.3fr) minmax(220px, .7fr); align-items: center; gap: 14px; margin: 14px 0; padding: 14px; border-radius: 12px; background: #17202b; }
.manpack-device-face { position: relative; overflow: hidden; border-radius: 9px; background: white; }
.manpack-device-face img { display: block; width: 100%; }
.manpack-hotspot { position: absolute; z-index: 2; min-width: 44px; min-height: 44px; border: 2px solid rgba(220, 174, 69, .72); border-radius: 10px; background: rgba(220, 174, 69, .08); color: transparent; }
.manpack-hotspot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.manpack-hotspot:hover, .manpack-hotspot:focus-visible { border-color: #f4c85c; background: rgba(244, 200, 92, .18); }
.manpack-hotspot.complete { border-color: #4e9f8d; background: rgba(78, 159, 141, .2); }
.manpack-hotspot-1 { left: 21%; top: 35%; width: 21%; height: 37%; }
.manpack-hotspot-2 { left: 34%; top: 48%; width: 12%; height: 19%; }
.manpack-hotspot-3 { left: 40%; top: 48%; width: 13%; height: 19%; }
.manpack-hotspot-4 { left: 49%; top: 38%; width: 13%; height: 31%; }

.camouflage-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 15px 0; padding: 15px; border-radius: 12px; background: repeating-linear-gradient(35deg, #5f7354 0 15px, #6d805f 15px 30px, #495d44 30px 45px); }
.camouflage-board button { min-height: 62px; padding: 10px; border: 2px solid rgba(255,255,255,.6); border-radius: 8px; background: rgba(255,255,255,.86); color: #253223; font-size: 11px; font-weight: 850; }
.camouflage-board button.complete { border-color: #78c8b6; background: rgba(229,245,241,.95); }
.signal-prompt { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; gap: 6px 20px; min-height: 150px; margin: 14px 0; padding: 18px; border-radius: 10px; background: var(--navy); color: white; }
.signal-prompt > span { color: #afbed0; font-size: 10px; font-weight: 850; text-transform: uppercase; }.signal-prompt > strong { font-size: 20px; }
.signal-prompt > small { grid-column: 1; color: #bcd0df; font-size: 11px; font-weight: 800; }
.signal-figure { grid-row: 1 / span 2; grid-column: 2; position: relative; width: 74px; height: 116px; margin: auto; }
.signal-figure i { position: absolute; left: 27px; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #d9e5ef; }
.signal-figure b { position: absolute; left: 35px; top: 22px; width: 7px; height: 78px; border-radius: 4px; background: #d9e5ef; transform-origin: 50% 8px; transform: rotate(47deg); }
.signal-figure b:last-child { transform: rotate(-47deg); }
.signal-figure.signal-0 b:first-of-type { transform: rotate(88deg); }.signal-figure.signal-0 b:last-child { transform: rotate(-88deg); }
.signal-figure.signal-1 b:first-of-type { transform: rotate(172deg); }.signal-figure.signal-1 b:last-child { transform: rotate(-80deg); }
.signal-figure.signal-3 b:first-of-type { transform: rotate(45deg); }.signal-figure.signal-3 b:last-child { transform: rotate(-45deg); }
.signal-figure.signal-4 b:first-of-type { transform: rotate(135deg); }.signal-figure.signal-4 b:last-child { transform: rotate(-135deg); }
.signal-figure.signal-5 b:first-of-type { transform: rotate(90deg); }.signal-figure.signal-5 b:last-child { transform: rotate(-90deg); }
.signal-figure.signal-7 b:first-of-type { transform: rotate(170deg); }.signal-figure.signal-7 b:last-child { transform: rotate(-170deg); }
.signal-figure.signal-11 b:first-of-type { transform: rotate(170deg); }.signal-figure.signal-11 b:last-child { display: none; }

.range-card-workspace { --card-ink: #172018; --card-paper: #f5f1db; }
.range-scenario { display: grid; gap: 4px; margin: 14px 0; padding: 14px; border-left: 5px solid var(--gold); border-radius: 8px; background: #fff8df; }
.range-scenario > span, .range-card-plot-instruction span { color: #746845; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.range-scenario > strong { font-size: 16px; }.range-scenario p { margin: 0; color: #625d4b; font-size: 11px; line-height: 1.45; }
.range-card-sheet, .range-card-example { color: var(--card-ink); border: 2px solid var(--card-ink); border-radius: 4px; background: var(--card-paper); box-shadow: 0 7px 20px rgba(39, 45, 34, .12); }
.range-card-sheet { display: grid; gap: 0; margin: 14px 0; }
.range-card-title, .range-card-example-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 8px 12px; border-bottom: 2px solid var(--card-ink); }
.range-card-title strong, .range-card-example-heading strong { font-size: 18px; letter-spacing: .12em; }.range-card-title span, .range-card-example-heading span { color: #586051; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.range-card-touch-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--card-ink); }
.range-touch-field { display: grid; gap: 6px; padding: 9px; border-right: 1px solid #75796e; border-bottom: 1px solid #75796e; }.range-touch-field:nth-child(even) { border-right: 0; }.range-touch-field:nth-last-child(-n+2) { border-bottom: 0; }
.range-touch-field > span { font-size: 9px; font-weight: 900; text-transform: uppercase; }
.range-card-marginal-inputs { display: grid; grid-template-columns: .45fr .45fr .45fr 1.4fr 1fr; border-bottom: 1px solid var(--card-ink); }
.range-card-marginal-inputs label { display: grid; gap: 4px; padding: 7px; border-right: 1px solid var(--card-ink); font-size: 8px; font-weight: 900; text-transform: uppercase; }.range-card-marginal-inputs label:last-child { border-right: 0; }
.range-card-marginal-inputs input, .range-position-grid input, .range-firing-row input { width: 100%; min-width: 0; min-height: 40px; padding: 6px 8px; border: 1px solid #8b8e7f; border-radius: 3px; background: rgba(255,255,255,.72); color: var(--card-ink); font-size: 14px; font-weight: 750; }
.range-card-choice-block { display: grid; grid-template-columns: 125px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 51px; padding: 6px 10px; border-bottom: 1px solid #75796e; }.range-card-choice-block > span { font-size: 9px; font-weight: 900; text-transform: uppercase; }.range-card-choice-block small { font-size: 9px; font-weight: 850; }
.range-choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.range-choice-row button { min-height: 38px; padding: 5px; border: 1px solid #777d70; border-radius: 4px; background: rgba(255,255,255,.55); color: #465044; font-size: 10px; font-weight: 850; }.range-choice-row button.selected { border-color: #0b6358; background: #d9eee8; color: #0b6358; box-shadow: inset 0 -3px #0b6358; }
.range-card-plot-instruction { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px 5px; }.range-card-plot-instruction strong { font-size: 11px; }
.range-touch-instruction { margin: 0 10px 7px; padding: 9px 10px; border-radius: 5px; background: #263027; color: white; font-size: 10px; font-weight: 800; }
.range-card-sketch-scroll { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.range-card-sketch { position: relative; min-width: 620px; aspect-ratio: 760 / 390; overflow: hidden; background: linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.05)); }
.range-card-sketch svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.range-card-sketch svg path { fill: none; stroke: #4f574b; stroke-width: 1.1; }.range-card-sketch .range-arcs { opacity: .67; }
.range-card-sketch svg .range-primary-line, .range-card-sketch svg .range-pdf-line { stroke: #182018; stroke-width: 2.2; }.range-card-sketch svg .range-pdf-line { stroke-dasharray: 4 3; }
.range-card-sketch svg .range-secondary-line { stroke-width: 2; stroke-dasharray: 8 6; }.range-card-sketch svg .range-mel-line { stroke: #8e332b; stroke-width: 2.4; }
.range-card-sketch svg .range-road { stroke: #8a744f; stroke-width: 8; opacity: .45; }.range-card-sketch svg .range-treeline { stroke: #466343; stroke-width: 8; stroke-dasharray: 3 5; opacity: .7; }
.range-card-sketch svg .range-dead-space { fill: rgba(125,45,39,.13); stroke: #7d2d27; stroke-width: 2; stroke-dasharray: 4 3; }.range-card-sketch svg .range-gun { stroke: #111; stroke-width: 4; }
.range-card-sketch svg .range-north-arrow { stroke: #111; stroke-width: 2.5; }
.range-drop-zone { position: absolute; z-index: 2; width: 40px; height: 40px; translate: -50% -50%; border: 1px dashed transparent; border-radius: 50%; background: transparent; }.range-drop-zone.armed { border-color: rgba(11,99,88,.72); background: rgba(217,238,232,.38); }
.range-plot-marker { position: absolute; z-index: 3; translate: -50% -50%; padding: 4px 6px; border: 1px solid #515b4e; border-radius: 4px; background: rgba(245,241,219,.92); color: #1f2a20; font-size: 8px; font-weight: 900; line-height: 1.15; white-space: nowrap; box-shadow: 0 1px 3px rgba(30,35,27,.18); pointer-events: none; }
.range-plot-marker.complete { border-color: #0b6358; background: #0b7568; color: white; box-shadow: 0 0 0 2px #d8f2ec; }.range-plot-marker.highlighted { border-color: #b22f26; background: #fff3a8; color: #75221c; box-shadow: 0 0 0 3px rgba(178,47,38,.28); }
.range-plot-marker.incorrect { border-color: #9f3b32; background: #fff0ed; color: #842f27; }.range-plot-marker.placed { border-color: #4f5967; background: #eef2f6; color: #273141; }
.range-plot-checklist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding: 8px 10px 10px; border-top: 1px solid #6f766b; border-bottom: 1px solid #6f766b; }
.range-plot-checklist button { min-height: 42px; padding: 6px; border: 1px solid #777d70; border-radius: 4px; background: rgba(255,255,255,.58); color: #465044; font-size: 9px; font-weight: 850; }.range-plot-checklist button.complete { border-color: #0b6358; background: #d9eee8; color: #0b6358; box-shadow: inset 0 -3px #0b6358; }.range-plot-checklist button.selected { outline: 3px solid rgba(22,125,112,.38); background: #fff; color: #0b6358; }
.range-firing-builder { border-top: 2px solid var(--card-ink); }.range-builder-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; }.range-builder-heading strong { font-size: 11px; text-transform: uppercase; }.range-builder-heading span { color: #626b5e; font-size: 9px; font-weight: 800; }
.range-packet-bank, .range-touch-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 0 10px 10px; }.range-packet-bank button, .range-touch-rows button { display: grid; gap: 4px; min-height: 86px; padding: 9px; border: 1px solid #777d70; border-radius: 5px; background: rgba(255,255,255,.62); color: #293329; text-align: left; }.range-packet-bank button > span, .range-touch-rows button > span { color: #687064; font-size: 8px; font-weight: 900; text-transform: uppercase; }.range-packet-bank button strong, .range-touch-rows button strong { font-size: 11px; }.range-packet-bank button small, .range-touch-rows button small { font-size: 8px; line-height: 1.35; }.range-packet-bank button.selected { border-color: #0b6358; background: #d9eee8; box-shadow: 0 0 0 3px rgba(11,99,88,.18); }.range-packet-bank button.assigned { opacity: .62; }.range-touch-rows { padding-top: 10px; border-top: 1px solid #777d70; }.range-touch-rows button.filled { border-color: #0b6358; background: #eef9f6; }
.range-position-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 9px; padding: 8px 10px; border-top: 1px solid var(--card-ink); border-bottom: 1px solid var(--card-ink); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.range-data-source { display: grid; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--card-ink); background: rgba(255,255,255,.32); }.range-data-source strong { font-size: 10px; text-transform: uppercase; }.range-data-source span { color: #4f594c; font-size: 9px; font-weight: 750; line-height: 1.4; }
.range-firing-table { overflow: hidden; }.range-table-head, .range-table-row { display: grid; grid-template-columns: .35fr .7fr .55fr .55fr .55fr 1.2fr 1.2fr; }.range-table-head { color: white; background: #263027; }.range-table-head span { padding: 7px 4px; border-right: 1px solid #757d75; font-size: 7px; font-weight: 900; text-align: center; }.range-table-head span:last-child { border-right: 0; }
.range-firing-row { display: grid; grid-template-columns: .35fr .7fr .55fr .55fr .55fr 1.2fr 1.2fr; margin: 0; padding: 0; border: 0; border-bottom: 1px solid #73796f; }.range-firing-row:last-child { border-bottom: 0; }.range-firing-row legend { display: none; }.range-firing-row label { display: block; padding: 4px; border-right: 1px solid #73796f; }.range-firing-row label:last-child { border-right: 0; }.range-firing-row label > span { display: none; }.range-firing-row input { min-height: 39px; padding: 4px; border: 0; background: rgba(255,255,255,.58); font-size: 11px; }.range-firing-row input[readonly] { background: transparent; text-align: center; }
.learning-range-card { width: 100%; max-width: 100%; min-width: 0; margin: 14px 0; overflow: hidden; border-radius: 7px; }.learning-range-card .range-card-example { width: 100%; min-width: 0; box-shadow: none; }.range-card-example-heading { min-height: 34px; padding: 5px 9px; }.range-card-example-heading strong { font-size: 14px; }
.range-card-example-marginal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid #394139; }.range-card-example-marginal > span { display: grid; gap: 3px; padding: 5px; border-right: 1px solid #74796e; font-size: 6px; font-weight: 900; }.range-card-example-marginal > span:last-child { border-right: 0; }.range-card-example-marginal b { font-size: 9px; }
.range-card-example-grid { display: flex; gap: 10px; padding: 5px 9px; border-top: 1px solid #394139; border-bottom: 1px solid #394139; font-size: 8px; }.range-card-example-grid span { font-weight: 900; }.range-card-example-table .range-table-row span { padding: 5px 3px; border-right: 1px solid #777d72; border-bottom: 1px solid #777d72; font-size: 7px; }.range-card-example-table .range-table-row span:last-child { border-right: 0; }.range-card-example-table .range-table-row:last-child span { border-bottom: 0; }
.range-card-example .highlighted { position: relative; z-index: 4; outline: 3px solid #b22f26; outline-offset: -2px; background-color: #fff3a8; }

.phase-tabs, .casualty-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0; }
.phase-tabs button, .casualty-tabs button { min-height: 42px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #f4f7fa; color: #506078; font-size: 11px; font-weight: 850; }
.phase-tabs button.active, .casualty-tabs button.active { border-color: var(--teal); background: var(--teal); color: white; }
.phase-tabs button:disabled, .casualty-tabs button:disabled { opacity: .42; cursor: not-allowed; }
.inline-submit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.inline-submit button, .symbol-test button { min-height: 42px; padding: 0 14px; border: 1px solid var(--teal); border-radius: 7px; background: var(--teal); color: white; font-weight: 850; }
.map-observation-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.map-observation-strip article { display: grid; gap: 4px; padding: 10px; border: 1px solid #aeb5a8; border-radius: 7px; background: #f0f2e6; }
.map-observation-strip span { color: #6e7668; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.map-observation-strip strong { color: #273025; font-size: 11px; }
.map-learning-target { position: absolute; z-index: 5; width: 52px; height: 52px; translate: -50% -50%; border: 4px solid #ffe43b; border-radius: 50%; background: rgba(255, 228, 59, .16); box-shadow: 0 0 0 3px rgba(255,255,255,.88), 0 0 18px rgba(54,43,0,.65); pointer-events: none; }
.map-learning-target > span { position: absolute; left: 50%; bottom: calc(100% + 7px); min-width: 130px; translate: -50% 0; padding: 5px 7px; border-radius: 4px; background: #19251c; color: white; font-size: 8px; font-weight: 900; line-height: 1.2; text-align: center; }
.terrain-map-layout { display: grid; grid-template-columns: minmax(340px, 1.35fr) minmax(250px, .65fr); align-items: start; gap: 15px; }
.terrain-map-figure { position: relative; aspect-ratio: 14 / 9; overflow: hidden; border: 2px solid #313c2f; border-radius: 9px; background: #d9d5b2; box-shadow: 0 8px 20px rgba(36,45,34,.16); }
.terrain-map-figure > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.terrain-map-highlight { position: absolute; z-index: 3; display: grid; place-items: center; min-width: 42px; min-height: 42px; border: 4px solid #f0d331; border-radius: 6px; background: rgba(255,236,80,.2); box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 3px 14px rgba(49,35,0,.6); }
.terrain-map-highlight b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #18251c; color: white; font-size: 10px; }
.terrain-map-question { min-width: 0; }
.terrain-map-question > p:not(.question-kicker) { margin: 8px 0 12px; color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.45; }
.question-kicker { margin: 10px 0 5px; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.map-phase-panel h4 { margin: 5px 0; font-size: 20px; }
.answer-standard { color: var(--muted); font-weight: 800; }
.marginal-layout { display: grid; grid-template-columns: minmax(320px, 1.3fr) minmax(260px, .8fr); gap: 16px; }
.full-sheet-frame { max-height: 520px; overflow: auto; border: 1px solid #8f9687; border-radius: 9px; background: #e4e2ca; }
.full-sheet-canvas { position: relative; width: 100%; min-width: 680px; }
.full-sheet-frame img { display: block; width: 100%; }
.map-part-highlight { position: absolute; z-index: 3; border: 4px solid #d72d26; border-radius: 5px; background: rgba(255, 227, 44, .17); box-shadow: 0 0 0 2px white, 0 2px 14px rgba(91, 18, 13, .5); pointer-events: none; }
.keyboard-map-cursor { position: absolute; z-index: 5; display: grid; place-items: center; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 3px solid #111827; border-radius: 50%; background: rgba(255, 227, 44, .9); color: #111827; font-size: 24px; font-weight: 900; line-height: 1; pointer-events: none; box-shadow: 0 0 0 2px #fff; }
.map-workbench:focus-visible { outline: 4px solid #0b5cab; outline-offset: 3px; }
.phase-complete { display: grid; justify-items: start; gap: 9px; padding: 38px; border-radius: 10px; background: var(--teal-soft); }
.phase-complete strong { color: #0b6358; font-size: 32px; }.phase-complete p { margin: 0; color: #315f59; }.phase-complete button { min-height: 42px; padding: 0 13px; border: 0; border-radius: 7px; background: var(--teal); color: white; font-weight: 850; }

.learning-pvs-visual { display: grid; gap: 7px; margin: 14px 0; overflow: hidden; border: 1px solid #445047; border-radius: 11px; background: #071008; }
.learning-pvs-visual img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.learning-pvs-visual figcaption { padding: 0 12px 11px; color: #d5e8d3; font-size: 10px; font-weight: 800; line-height: 1.4; }
.pvs-action-workbench { display: grid; gap: 10px; margin: 15px 0; padding: 12px; border-radius: 12px; background: #111a16; }
.pvs-action-prompt { display: grid; gap: 4px; color: white; }
.pvs-action-prompt span { color: #9ccf91; font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.pvs-action-prompt strong { font-size: 16px; }.pvs-action-prompt small { color: #aebdb3; line-height: 1.35; }
.pvs-action-figure { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #53645b; border-radius: 9px; background: #020503; }
.pvs-action-figure > img { position: absolute; top: -14%; left: 0; width: 100%; height: 128%; object-fit: cover; }
.pvs-action-figure:has(img[src*="control-"]) > img { top: 0; height: 100%; object-fit: contain; background: white; }
.pvs-action-hotspot { position: absolute; z-index: 2; min-width: 48px; min-height: 48px; border: 3px solid #f0c84e; border-radius: 12px; background: rgba(240, 200, 78, .12); color: transparent; }
.pvs-action-hotspot:hover, .pvs-action-hotspot:focus-visible { background: rgba(240, 200, 78, .26); box-shadow: 0 0 0 3px rgba(255,255,255,.72); }
.pvs-action-hotspot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.apply-mode .pvs-action-hotspot { border-color: rgba(255,255,255,.14); background: transparent; }
.apply-mode .pvs-action-hotspot:hover, .apply-mode .pvs-action-hotspot:focus-visible { border-color: #f0c84e; background: rgba(240, 200, 78, .14); }
.pvs-progress-dots { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; }
.pvs-progress-dots i { height: 5px; border-radius: 99px; background: #39443e; }.pvs-progress-dots i.current { background: #d3ab36; }.pvs-progress-dots i.complete { background: #67aa9a; }
.pvs-symbol-context, .pvs-stow-context { position: relative; margin: 14px 0; overflow: hidden; border-radius: 10px; background: #061008; }
.pvs-symbol-context img, .pvs-stow-context img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pvs-symbol-context span { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 8px 10px; border-radius: 6px; background: rgba(0,0,0,.72); color: white; font-size: 10px; font-weight: 850; }
.symbol-test { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin: 15px 0; }
.night-view { grid-column: 1 / -1; display: grid; place-items: center; min-height: 180px; border: 13px solid #050708; border-radius: 50%; background: radial-gradient(circle, #385e31, #0e1d0f 70%); color: #c7ffaf; font: 900 clamp(28px, 6vw, 58px)/1 ui-monospace, monospace; letter-spacing: .08em; text-shadow: 0 0 12px #8cff6e; }

.radio-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; padding: 12px; border-radius: 9px; background: var(--navy); color: #c3d1e0; font-size: 10px; font-weight: 850; }
.radio-strip button { min-height: 40px; padding: 0 12px; border: 1px solid #6f8299; border-radius: 7px; background: #2c3e54; color: white; font-weight: 850; }
.radio-strip button.complete { border-color: #80c3b3; background: #24665b; }
.manpack-bay { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(280px,1.4fr); gap: 12px; margin: 14px 0; padding: 14px; border-radius: 10px; background: #1a2430; }
.manpack-bay .device-screen { min-height: 180px; }
.spot-map-tools { display: grid; grid-template-columns: minmax(300px,1.2fr) minmax(280px,1fr); gap: 12px; margin: 13px 0; }
.spot-map { position: relative; aspect-ratio: 14 / 9; overflow: hidden; border: 1px solid #7e8875; border-radius: 8px; }
.spot-map img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spot-op, .spot-target { position: absolute; display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 7px; translate: -50% -50%; border: 3px solid white; border-radius: 50%; color: white; font-size: 9px; font-weight: 900; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.spot-op { left: 42.14%; top: 40.56%; background: var(--navy); }.spot-target { left: 45.43%; top: 51.67%; background: var(--danger); }
.evidence-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.evidence-cards article { display: grid; gap: 5px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fb; }
.evidence-cards span { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }.evidence-cards strong { font-size: 11px; }
.line-builder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 430px; overflow: auto; padding: 2px; }

.lz-hazard.cleared { opacity: .3; text-decoration: line-through; }
.placed-light { position: absolute; z-index: 4; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #6d5712; border-radius: 50%; background: #ffe276; color: #3c2e08; font-size: 9px; font-weight: 900; box-shadow: 0 0 16px #ffe276; }
.placed-light.light-1 { left: 47%; top: 17%; }.placed-light.light-2 { left: 31%; top: 52%; }.placed-light.light-3 { right: 29%; top: 52%; }.placed-light.light-4 { left: 47%; bottom: 8%; }

.grenade-silhouette { position: relative; width: 116px; height: 140px; margin: 16px auto; border-radius: 46% 46% 42% 42%; background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.15) 19px 21px), repeating-linear-gradient(0deg, #526746 0 18px, #34462f 19px 21px); box-shadow: inset 0 0 0 5px #263522, 0 8px 20px rgba(15,23,42,.2); }
.grenade-silhouette::before { content: ""; position: absolute; left: 36px; top: -22px; width: 44px; height: 31px; border-radius: 8px 8px 2px 2px; background: #4a554a; }
.grenade-silhouette span { position: absolute; right: -14px; top: -28px; width: 40px; height: 48px; border: 8px solid #5e675d; border-left: 0; border-radius: 0 22px 22px 0; }
.grenade-silhouette.grenade-1, .grenade-silhouette.grenade-2, .grenade-silhouette.grenade-3, .grenade-silhouette.grenade-4 { width: 94px; height: 154px; border-radius: 14px 14px 24px 24px; box-shadow: inset 0 0 0 5px rgba(24, 31, 29, .55), 0 8px 20px rgba(15,23,42,.2); }
.grenade-silhouette.grenade-1 { background: linear-gradient(#9c3d32 0 15px, #526747 15px 100%); }
.grenade-silhouette.grenade-2 { background: linear-gradient(#d9d9ce 0 70%, #a9aa9d 70%); }
.grenade-silhouette.grenade-3 { background: linear-gradient(#9b352d 0 14px, #6f3028 14px 100%); }
.grenade-silhouette.grenade-4 { background: radial-gradient(circle, #9ea49f 0 3px, transparent 4px) 0 0 / 20px 20px, #262c2d; }
.grenade-silhouette.grenade-5 { background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.17) 19px 21px), repeating-linear-gradient(0deg, #2770a4 0 18px, #16507b 19px 21px); box-shadow: inset 0 0 0 5px #0f3c60, 0 8px 20px rgba(15,23,42,.2); }
.visual-cue { max-width: 440px; margin: 8px auto 15px; color: var(--muted); font-size: 11px; font-weight: 760; line-height: 1.45; text-align: center; }

@media (max-width: 1050px) {
  .device-manipulation-workbench, .marginal-layout, .manpack-bay, .manpack-device-workbench, .spot-map-tools, .skl-workbench, .terrain-map-layout { grid-template-columns: 1fr; }
  .skl-face { grid-column: 1; grid-row: auto; }
  .device-screen { min-height: 145px; }
}

@media (max-width: 860px) {
  .task-library { max-height: 100dvh; }
  .calculator-grid, .form-grid.three { grid-template-columns: 1fr 1fr; }
  .compact-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .target-data-grid { grid-template-columns: 1fr; }
  .line-builder { max-height: none; }
}

@media (max-width: 620px) {
  .choice-stack.compact, .checklist, .compact-checklist, .calculator-grid, .form-grid, .form-grid.three, .line-builder, .evidence-cards, .device-source-packet { grid-template-columns: 1fr; }
  .device-keypad, .camouflage-board { grid-template-columns: 1fr; }
  .device-manipulation-workbench { margin-inline: -8px; padding: 10px; }
  .skl-workbench { margin-inline: -8px; padding: 10px; }
  .skl-step-card { padding: 11px; }
  .skl-face { width: min(100%, 390px); }
  .skl-screen-options button { min-height: 42px; }
  .pvs-action-workbench { margin-inline: -7px; padding: 9px; }
  .device-photo-frame { height: min(500px, 123vw); }
  .device-photo-frame.photo-radio { height: auto; }
  .device-readout { min-height: 0; }
  .map-observation-strip { grid-template-columns: 1fr; }
  .terrain-map-layout { margin-inline: -7px; }
  .terrain-map-question { padding-inline: 7px; }
  .map-learning-target { width: 44px; height: 44px; }
  .phase-tabs { grid-template-columns: 1fr; }
  .inline-submit, .symbol-test { grid-template-columns: 1fr; }
  .route-summary { grid-template-columns: auto 1fr; }
  .result-score, .radio-strip { align-items: flex-start; flex-direction: column; }
  .full-sheet-frame img { min-width: 520px; }
  .studio-header { gap: 12px; }
  .studio-header > div:first-child > p { display: none; }
  .mode-switch { position: sticky; z-index: 20; top: 6px; box-shadow: 0 5px 16px rgba(15,23,42,.1); }
  .mode-button { min-width: 0; min-height: 52px; padding: 4px; font-size: 13px; }
  .mode-button small { font-size: 7px; }
  .exercise-panel { padding: 15px; }
  .learning-progress { margin: -15px -15px 16px; }
  .learning-panel > h3 { font-size: 24px; }
  .teach-answer { padding: 18px; }
  .teach-answer > strong { font-size: 25px; }
  .lesson-route, .lesson-step-list { grid-template-columns: 1fr; }
  .lesson-step-list button { min-height: 68px; }
  .learning-next { position: sticky; bottom: max(8px, env(safe-area-inset-bottom)); box-shadow: 0 8px 28px rgba(15,23,42,.22); }
  .learning-result { padding: 28px 20px; }
  .learning-result-actions { display: grid; width: 100%; }
  .learning-result-actions button { width: 100%; min-height: 52px; }
  .learning-map-sheet { max-height: 340px; overflow: auto; }
  .line-builder input, .form-grid input, .calculator-grid input, .inline-submit input, .symbol-test input { min-height: 48px; font-size: 16px; }
  .range-card-sheet { margin-inline: -7px; }
  .range-card-title { align-items: flex-start; flex-direction: column; }
  .range-card-touch-fields { grid-template-columns: 1fr; }
  .range-touch-field, .range-touch-field:nth-child(even), .range-touch-field:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid #777d72; }
  .range-touch-field:last-child { border-bottom: 0; }
  .range-card-marginal-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .range-card-marginal-inputs label { border-bottom: 1px solid #777d72; }
  .range-card-marginal-inputs label:nth-child(3) { border-right: 0; }
  .range-card-marginal-inputs label:nth-child(4) { grid-column: span 2; }
  .range-card-marginal-inputs label:nth-child(4), .range-card-marginal-inputs label:nth-child(5) { border-bottom: 0; }
  .range-card-marginal-inputs input, .range-position-grid input, .range-firing-row input { min-height: 48px; font-size: 16px; }
  .range-card-choice-block { grid-template-columns: 1fr; gap: 5px; padding: 9px; }
  .range-card-choice-block small { display: none; }
  .range-choice-row button { min-height: 48px; font-size: 11px; }
  .range-card-plot-instruction { align-items: flex-start; flex-direction: column; }
  .range-card-sketch-scroll::after { content: "Swipe to see the full sketch"; position: sticky; left: 8px; display: inline-block; margin: 0 0 5px 8px; padding: 3px 6px; border-radius: 3px; color: #5e604f; background: rgba(255,255,255,.78); font-size: 8px; font-weight: 850; }
  .range-plot-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .range-plot-checklist button { min-height: 48px; font-size: 10px; }
  .range-packet-bank, .range-touch-rows { grid-template-columns: 1fr; }
  .range-packet-bank button, .range-touch-rows button { min-height: 72px; }
  .range-builder-heading { align-items: flex-start; flex-direction: column; }
  .range-position-grid { grid-template-columns: 1fr; }
  .range-card-example-marginal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .range-card-example-marginal > span { min-height: 35px; border-bottom: 1px solid #74796e; }
  .range-card-example-marginal > span:nth-child(4) { border-right: 0; }
  .range-card-example-marginal > span:nth-child(n+5) { border-bottom: 0; }
  .range-card-example-marginal > span:nth-child(5) { grid-column: span 2; }
  .range-firing-table > .range-table-head { display: none; }
  .range-firing-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 8px; border-bottom: 2px solid #263027; }
  .range-firing-row legend { display: block; grid-column: 1 / -1; padding: 3px 4px; font-size: 11px; font-weight: 900; }
  .range-firing-row label { display: grid; gap: 4px; padding: 4px; border: 0; }
  .range-firing-row label:first-of-type { display: none; }
  .range-firing-row label > span { display: block; color: #5c6658; font-size: 8px; font-weight: 900; text-transform: uppercase; }
  .range-firing-row label:nth-of-type(6), .range-firing-row label:nth-of-type(7) { grid-column: 1 / -1; }
  .primary-action, .secondary-action { min-height: 50px; }
}

/* Shared E3B field identity ------------------------------------------------ */
body {
  background:
    radial-gradient(circle at 8% 0%, rgba(31, 157, 138, 0.09), transparent 28rem),
    #edf1f5;
}

.prototype-topbar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.prototype-topbar::after {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(52%, 720px);
  background: url("./assets/terrain-contours.svg") right center / cover no-repeat;
  content: "";
  pointer-events: none;
}

.prototype-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.prototype-brand-copy { min-width: 0; }
.field-mark { flex: 0 0 48px; filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.22)); }
.brand-row { display: flex; align-items: center; gap: 8px; }

.trainer-discipline {
  padding: 3px 6px;
  border: 1px solid rgba(167, 226, 215, 0.32);
  border-radius: 999px;
  background: rgba(31, 157, 138, 0.2);
  color: #c9f3eb;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weapons-link { box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15); }

.task-studio {
  background:
    linear-gradient(rgba(20, 34, 56, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 34, 56, 0.025) 1px, transparent 1px),
    #fff;
  background-size: 36px 36px;
}

.studio-header {
  position: relative;
  padding: 2px 0 4px 17px;
}

.studio-header::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(#1f9d8a 0 64%, #f6c85f 64% 78%, #142238 78%);
  content: "";
}

.exercise-panel,
.scenario-panel,
.standard-strip { box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045); }

@media (max-width: 860px) {
  .field-mark { width: 39px; height: 39px; flex-basis: 39px; }
  .trainer-discipline { display: none; }
}

/* Simple trainer banner shared with Weapons. */
.prototype-brand h1 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); }
.prototype-topbar { min-height: 92px; }
.weapons-link { min-width: 108px; justify-content: center; }

@media (max-width: 860px) {
  .prototype-topbar { min-height: 62px; }
  .prototype-brand h1 { display: block; margin: 0; font-size: 22px; }
}

/* Mobile-first field system ------------------------------------------------ */
.task-studio,
.task-context-visual { --lane-accent: #287e74; }

.lane-icon {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lane-label { display: flex; align-items: center; gap: 9px; min-width: 0; }
.lane-label .lane-icon { width: 19px; height: 19px; color: #718096; }
.lane-button { min-height: 44px; }
.lane-button.active .lane-icon { color: var(--teal); }

.task-button { min-height: 58px; }
.task-button small { line-height: 1.3; }
.task-button.active .task-code { background: var(--teal); color: #fff; }

.studio-header {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  padding: 0;
}
.studio-header::before { display: none; }
.studio-title-block { min-width: 0; padding-left: 1px; }
.studio-title-block h2 { margin-top: 6px; }

.task-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: space-between;
  width: 92px;
  min-height: 92px;
  overflow: hidden;
  padding: 11px;
  border: 1px solid var(--lane-accent);
  border-radius: 13px;
  background:
    radial-gradient(circle at 74% 22%, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(145deg, #18283f, #101a2b);
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .17);
}
.task-visual::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .18;
  background: url("./assets/terrain-contours.svg") center / cover;
  content: "";
}
.task-visual-emblem { color: #a9dcd2; }
.task-visual-emblem .lane-icon { width: 38px; height: 38px; stroke-width: 1.55; }
.task-visual-copy { display: grid; gap: 1px; min-width: 0; }
.task-visual-copy span { color: #c1cfdd; font-size: 8px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.task-visual-copy strong { display: -webkit-box; overflow: hidden; font-size: 9px; line-height: 1.1; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.task-context-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 58px minmax(150px, 1fr) minmax(150px, .9fr);
  align-items: center;
  gap: 14px;
  min-height: 92px;
  margin: 14px 0;
  overflow: hidden;
  padding: 13px 16px;
  border: 1px solid var(--lane-accent);
  border-radius: 11px;
  background: linear-gradient(110deg, #142238 0 64%, #255f5a 100%);
  color: #fff;
}
.context-emblem {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  color: #a9dcd2;
}
.context-emblem .lane-icon { width: 30px; height: 30px; }
.context-copy { display: grid; gap: 4px; min-width: 0; }
.context-copy span { color: #aebed0; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.context-copy strong { font-size: clamp(15px, 1.8vw, 20px); line-height: 1.15; }
.context-route { width: 100%; max-height: 62px; fill: #a9dcd2; stroke: rgba(255,255,255,.66); stroke-width: 3; stroke-linecap: round; }
.context-route path { fill: none; }
.lesson-outcome + .lesson-route { margin-top: 14px; }

.mobile-mode-dock { display: none; }

@media (min-width: 861px) and (max-width: 1200px) {
  .studio-header {
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: start;
    column-gap: 14px;
    row-gap: 9px;
  }
  .task-visual { grid-row: 1 / span 2; width: 76px; min-height: 76px; padding: 9px; }
  .task-visual-emblem .lane-icon { width: 31px; height: 31px; }
  .task-visual-copy strong { font-size: 8px; }
  .studio-title-block h2 { font-size: clamp(25px, 3.1vw, 34px); }
  .mode-switch { grid-column: 2; justify-self: start; width: min(100%, 286px); }
}

@media (min-width: 861px) and (max-width: 1050px) {
  .studio-title-block > p { display: none; }
}

@media (max-width: 860px) {
  .task-studio {
    padding: 12px 12px calc(92px + env(safe-area-inset-bottom));
  }
  .studio-header {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 13px 0 3px;
  }
  .task-visual { width: 58px; min-height: 58px; padding: 9px; border-radius: 11px; }
  .task-visual-emblem { display: grid; place-items: center; }
  .task-visual-emblem .lane-icon { width: 38px; height: 38px; }
  .task-visual-copy { display: none; }
  .studio-title-block h2 { margin: 5px 0 0; font-size: clamp(20px, 5.8vw, 27px); line-height: 1.05; }
  .studio-title-block > p { display: none; }
  .task-meta-line { font-size: 10px; }
  .mode-switch { display: none; }
  .mobile-task-picker { position: relative; min-height: 48px; padding-right: 38px; }
  .mobile-task-picker::after { position: absolute; right: 13px; top: 50%; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: translateY(-65%) rotate(45deg); }
  .studio-grid { margin-top: 10px; }
  .task-context-visual {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 10px;
    min-height: 74px;
    margin: 12px 0;
    padding: 10px 11px;
  }
  .context-emblem { width: 43px; height: 43px; }
  .context-emblem .lane-icon { width: 25px; height: 25px; }
  .context-copy span { font-size: 8px; }
  .context-copy strong { font-size: 15px; }
  .context-route { position: absolute; right: -12px; bottom: -8px; width: 48%; opacity: .2; }
  .exercise-panel { padding: 14px; }
  .exercise-heading { gap: 8px; }
  .exercise-heading h3 { line-height: 1.18; }
  .choice-stack button,
  .answer-card,
  .clock-controls button,
  .clock-segments button,
  .library-close,
  .event-timeline li button { min-height: 48px; }
  .lane-button { min-height: 48px; }
  .task-button { min-height: 64px; }
  .learning-next { position: static; margin-top: 12px; box-shadow: none; }
  .prototype-dialog { z-index: 100; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }

  .mobile-mode-dock {
    position: fixed;
    z-index: 55;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    min-height: 64px;
    padding: 5px;
    border: 1px solid rgba(148, 163, 184, .65);
    border-radius: 15px;
    background: rgba(20, 34, 56, .96);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .32);
    backdrop-filter: blur(14px);
  }
  .mobile-mode-dock button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 52px;
    padding: 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #c3cfdb;
    font-size: 10px;
    font-weight: 850;
  }
  .mobile-mode-dock button:first-child { border-right: 1px solid rgba(255,255,255,.13); border-radius: 10px 4px 4px 10px; }
  .mobile-mode-dock button.active { background: var(--teal); color: #fff; box-shadow: 0 5px 14px rgba(0,0,0,.2); }
  .mobile-mode-dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-mode-dock button:nth-child(2) svg path { fill: none; }
}

@media (max-width: 420px) {
  .prototype-topbar { padding-inline: 12px; }
  .weapons-link { min-width: 92px; min-height: 44px; }
  .studio-title-block h2 { font-size: clamp(19px, 5.5vw, 24px); }
  .task-context-visual { margin-inline: -2px; }
}

@media (max-width: 860px) {
  .range-drop-zone { width: 48px; height: 48px; }
  .phase-tabs button,
  .casualty-tabs button,
  .inline-submit button,
  .symbol-test button { min-height: 48px; }
  .map-sheet-link { min-height: 44px; }
}

/* Handbook-grounded transfer and live-lane training */
.training-boundary {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #b9d8d1;
  border-radius: 9px;
  background: var(--teal-soft);
}
.training-boundary span,
.training-blueprint-heading span,
.field-cue span,
.field-recall-cue span,
.field-recall-standard > span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.training-boundary p { margin: 5px 0 0; color: #35524f; font-size: 12px; line-height: 1.5; }

.training-blueprint {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #bfd8d3;
  border-radius: 11px;
  background: linear-gradient(145deg, #f4fbf9, #fff);
}
.training-blueprint-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.training-blueprint-heading strong { color: var(--navy); font-size: 15px; }
.training-blueprint-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; }
.training-blueprint-grid article { padding: 10px; border: 1px solid #dbe7e4; border-radius: 8px; background: rgba(255,255,255,.8); }
.training-blueprint-grid article > span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.training-blueprint-grid p,
.training-blueprint-grid ul { margin: 6px 0 0; color: #344255; font-size: 11px; font-weight: 700; line-height: 1.45; }
.training-blueprint-grid ul { padding-left: 17px; }
.training-progression { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.training-progression li { display: grid; grid-template-columns: 25px 1fr; gap: 7px; align-items: start; padding: 9px; border-radius: 8px; background: #edf6f3; }
.training-progression span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-size: 10px; font-weight: 900; }
.training-progression p { margin: 1px 0 0; color: #344255; font-size: 10px; font-weight: 760; line-height: 1.4; }
.training-boundary-copy,
.training-safety { margin: 0; padding-top: 9px; border-top: 1px solid #dbe7e4; color: #4b596a; font-size: 11px; line-height: 1.48; }
.training-safety { color: #714137; }
.training-blueprint.compact .training-blueprint-grid { grid-template-columns: 1fr; }

.critical-rule ul { margin: 7px 0 0; padding-left: 18px; }
.critical-rule li + li { margin-top: 4px; }

.field-recall-panel,
.field-drill-panel { display: grid; gap: 13px; }
.field-recall-cue,
.field-cue {
  padding: 14px;
  border: 1px solid #b9d8d1;
  border-left: 5px solid var(--teal);
  border-radius: 9px;
  background: #f2faf8;
}
.field-cue.active { border-color: #c9a454; border-left-color: var(--gold); background: #fffaf0; }
.field-recall-cue strong,
.field-cue strong { display: block; margin-top: 6px; color: var(--navy); font-size: 16px; line-height: 1.35; }
.field-recall-cue p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.field-recall-standard { padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; }
.field-recall-standard ol { margin: 8px 0 0; padding-left: 22px; }
.field-recall-standard li { padding: 4px 0; color: #344255; font-size: 12px; font-weight: 720; line-height: 1.45; }
.field-recall-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.field-safety-note,
.field-honesty-note { margin: 0; color: #6d453b; font-size: 11px; line-height: 1.5; }
.field-honesty-note { color: var(--muted); text-align: center; }

.field-checklist,
.field-aar-groups fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfd;
}
.field-checklist legend,
.field-aar-groups legend { padding: 0 7px; color: var(--navy); font-size: 11px; font-weight: 900; }
.field-checklist label,
.field-aar-groups label { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: start; min-height: 42px; padding: 9px; border: 1px solid #e1e6ed; border-radius: 7px; background: #fff; color: #344255; font-size: 11px; font-weight: 720; line-height: 1.4; }
.field-checklist input,
.field-aar-groups input { width: 19px; height: 19px; margin: 0; accent-color: var(--teal); }
.field-safety-card { padding: 12px; border-left: 5px solid var(--danger); border-radius: 8px; background: #fff1ef; }
.field-safety-card strong { color: #7c302a; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.field-safety-card p { margin: 5px 0 0; color: #6b302a; font-size: 12px; line-height: 1.48; }

.field-run-blank { display: grid; min-height: 210px; place-items: center; align-content: center; gap: 9px; padding: 28px; border: 2px dashed #bac5d2; border-radius: 12px; background: linear-gradient(150deg, #f7f9fb, #edf1f5); text-align: center; }
.field-run-blank span { color: var(--teal); font-size: 11px; font-weight: 950; letter-spacing: .18em; }
.field-run-blank strong { color: var(--navy); font-size: clamp(20px, 3vw, 30px); line-height: 1.15; }
.field-run-blank p { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.field-aar-lead { margin: 0; padding: 11px 12px; border-radius: 8px; background: #fff7df; color: #5b4a25; font-size: 12px; font-weight: 730; line-height: 1.5; }
.field-aar-groups { display: grid; gap: 11px; }
.field-aar-groups fieldset.critical { border-color: #e2b5ae; background: #fff5f3; }
.field-aar-groups fieldset.critical legend { color: var(--danger); }

@media (max-width: 860px) {
  .training-blueprint-grid,
  .training-progression,
  .field-recall-actions { grid-template-columns: 1fr; }
  .training-blueprint-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .field-checklist label,
  .field-aar-groups label { min-height: 48px; font-size: 12px; }
  .field-run-blank { min-height: 180px; padding: 22px 14px; }
}
