:root {
  --background: #f4f7f9;
  --foreground: #1d2830;
  --panel: #ffffff;
  --line: #cfd8df;
  --muted: #62727d;
  --blue: #275db9;
  --green: #278657;
  --red: #c13f34;
  --orange: #ff7a00;
  --amber: #9d6b20;
  --yellow: #ffdf00;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0)),
    var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

select,
input {
  border: 1px solid #b7c3cb;
  border-radius: 6px;
  color: var(--foreground);
  min-height: 40px;
  padding: 8px 10px;
}

a {
  color: inherit;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(30, 44, 54, 0.12);
  display: grid;
  gap: 22px;
  padding: 32px;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 16px;
}

.login-brand {
  align-items: flex-start;
}

.brand-logo {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid #d8e0e6;
  border-radius: 8px;
  flex: 0 0 auto;
  height: 78px;
  object-fit: contain;
  padding: 6px;
  width: 78px;
}

.brand-subtitle {
  color: #36515f;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  font-weight: 800;
  line-height: 1.25;
  margin-top: 6px;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

.login-panel h1,
.exam-header h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 760;
  line-height: 1.05;
}

.login-copy {
  color: var(--muted);
  margin-top: 12px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  color: #30404a;
  display: grid;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 7px;
}

.login-form input {
  border: 1px solid #b7c3cb;
  border-radius: 6px;
  color: var(--foreground);
  min-height: 44px;
  padding: 10px 12px;
}

.login-form input:focus,
.equipment-tile:focus,
.drop-zone:focus,
button:focus {
  outline: 3px solid rgba(39, 93, 185, 0.24);
  outline-offset: 2px;
}

.login-form button,
.action-stack button,
.session-actions button {
  border: 0;
  border-radius: 6px;
  background: #1d5a8a;
  color: white;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 16px;
}

.form-alert,
.form-success {
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px;
}

.form-alert {
  background: #fff0ed;
  color: #a6322b;
}

.form-success {
  background: #edf8f1;
  color: #216f48;
}

.exam-page {
  min-height: 100vh;
  padding: 18px 20px;
}

.exam-header {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto 20px;
  max-width: 1760px;
}

.session-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.session-actions span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.session-actions button {
  background: #36515f;
  min-height: 38px;
}

.text-link {
  border: 1px solid #b7c3cb;
  border-radius: 6px;
  color: #254e77;
  font-size: 0.9rem;
  font-weight: 800;
  min-height: 38px;
  padding: 9px 12px;
  text-decoration: none;
}

.subtle-line {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 8px;
}

.exam-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(190px, 240px) minmax(720px, 1fr) minmax(190px, 230px);
  margin: 0 auto;
  max-width: 2080px;
}

.equipment-tray,
.exam-status,
.aircraft-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(30, 44, 54, 0.08);
}

.equipment-tray,
.exam-status {
  align-self: start;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  padding: 14px;
  position: sticky;
  top: 16px;
}

.panel-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.panel-heading h2 {
  font-size: 1rem;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.display-toggle {
  align-items: center;
  background: #edf2f5;
  border: 1px solid #cfd8df;
  border-radius: 7px;
  display: grid;
  gap: 2px;
  grid-template-columns: 1fr 1fr;
  padding: 2px;
}

.display-toggle button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #43535d;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 30px;
  padding: 5px 9px;
}

.display-toggle button.is-active {
  background: #fff;
  box-shadow: 0 3px 10px rgba(30, 44, 54, 0.12);
  color: #1d5a8a;
}

.equipment-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 154px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 7px 4px 3px;
}

.equipment-tile {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--foreground);
  display: grid;
  gap: 12px;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 76px;
  overflow: visible;
  padding: 8px 10px;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.equipment-tile:hover,
.equipment-tile.is-selected {
  border-color: var(--blue);
  box-shadow: 0 8px 20px rgba(39, 93, 185, 0.12);
}

.equipment-tile.is-selected {
  background: #eef6fb;
}

.equipment-tile .tile-icon {
  align-self: center;
  justify-self: center;
}

.equipment-tile > span:not(.tile-icon) {
  line-height: 1.16;
  min-width: 0;
}

.tile-icon,
.zone-icon {
  align-items: center;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  min-height: 36px;
  min-width: 48px;
  padding: 5px 8px;
  text-align: center;
  white-space: nowrap;
}

.icon-symbol {
  border: 2px solid currentColor;
  border-radius: 7px;
  flex-direction: column;
  gap: 1px;
  height: 58px;
  line-height: 1;
  min-width: 58px;
  padding: 4px 5px 3px;
  width: 58px;
}

.zone-icon.icon-symbol {
  height: 50px;
  min-width: 50px;
  padding: 3px 4px 2px;
  width: 50px;
}

.icon-symbol.icon-symbol--unlabelled {
  gap: 0;
  justify-content: center;
  padding: 4px;
}

.zone-icon.icon-symbol.icon-symbol--unlabelled {
  padding: 3px;
}

.equipment-pictogram {
  color: currentColor;
  display: block;
  flex: 0 0 auto;
  height: 31px;
  position: relative;
  width: 36px;
}

.zone-icon .equipment-pictogram {
  height: 27px;
  transform: scale(0.88);
  transform-origin: center;
}

.icon-symbol.icon-symbol--unlabelled .equipment-pictogram {
  scale: 1.22;
}

.zone-icon.icon-symbol.icon-symbol--unlabelled .equipment-pictogram {
  scale: 1.08;
}

.equipment-svg-icon {
  display: block;
  overflow: visible;
}

.equipment-svg-aed .aed-heart {
  fill: currentColor;
}

.equipment-svg-aed .aed-plus {
  fill: #fff;
}

.equipment-svg-crash-axe {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.equipment-svg-crash-axe .axe-head,
.equipment-svg-crash-axe .axe-pick {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2px;
}

.equipment-svg-crash-axe .axe-handle {
  stroke: currentColor;
  stroke-width: 6px;
}

.equipment-svg-crash-axe .axe-grip {
  stroke: currentColor;
  stroke-width: 5px;
}

.equipment-svg-crash-axe .axe-edge {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5px;
}

.equipment-svg-fire-gloves {
  fill: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.equipment-svg-fire-gloves .glove,
.equipment-svg-fire-gloves .glove-thumb {
  stroke: currentColor;
  stroke-width: 2px;
}

.equipment-svg-fire-gloves .glove-right,
.equipment-svg-fire-gloves .glove-right-thumb {
  fill: none;
  stroke-width: 5px;
}

.equipment-svg-fire-gloves .glove-cuff {
  fill: #fff;
  opacity: 0.92;
}

.equipment-svg-fire-gloves .glove-line {
  fill: none;
  opacity: 0.78;
  stroke: #fff;
  stroke-width: 2.4px;
}

.equipment-svg-smoke-goggles {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.equipment-svg-smoke-goggles .goggles-strap {
  stroke: currentColor;
  stroke-width: 5px;
}

.equipment-svg-smoke-goggles .goggles-frame {
  fill: currentColor;
}

.equipment-svg-smoke-goggles .goggles-lens {
  fill: #fff;
  opacity: 0.94;
}

.equipment-svg-smoke-goggles .goggles-bridge {
  stroke: #fff;
  stroke-width: 3px;
}

.equipment-svg-smoke-goggles .goggles-shine {
  opacity: 0.8;
  stroke: #b8c3ca;
  stroke-width: 2px;
}

.equipment-svg-infant-seat-belts {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.equipment-svg-infant-seat-belts .belt-seat,
.equipment-svg-infant-seat-belts .belt-buckle,
.equipment-svg-infant-seat-belts .belt-child {
  fill: currentColor;
}

.equipment-svg-infant-seat-belts .belt-strap,
.equipment-svg-infant-seat-belts .belt-lap {
  stroke: currentColor;
  stroke-width: 5px;
}

.equipment-svg-infant-seat-belts .belt-body {
  fill: none;
  stroke: currentColor;
  stroke-width: 4px;
}

.equipment-svg-infant-seat-belts .belt-buckle {
  stroke: #fff;
  stroke-width: 2px;
}

.equipment-svg-eros {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.equipment-svg-eros .eros-case {
  fill: none;
  stroke: currentColor;
  stroke-width: 5px;
}

.equipment-svg-eros .eros-lid,
.equipment-svg-eros .eros-corner {
  stroke: currentColor;
  stroke-width: 3px;
}

.equipment-svg-eros .eros-text {
  fill: currentColor;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.equipment-svg-oxygen .oxygen-bottle,
.equipment-svg-oxygen .oxygen-neck,
.equipment-svg-oxygen .oxygen-valve {
  fill: currentColor;
}

.equipment-svg-oxygen .oxygen-label {
  fill: #fff;
}

.equipment-svg-oxygen .oxygen-text {
  fill: currentColor;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.equipment-svg-oxygen .oxygen-shine {
  fill: none;
  opacity: 0.72;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 3px;
}

.equipment-svg-crew-mask .crew-mask-face {
  fill: #cfd6dc;
  stroke: #7f8b93;
  stroke-width: 3px;
}

.equipment-svg-crew-mask .crew-mask-visor {
  fill: #f8fafb;
  stroke: #8d989f;
  stroke-width: 2.5px;
}

.equipment-svg-crew-mask .crew-mask-nose {
  fill: #aeb8bf;
  stroke: #7a858d;
  stroke-width: 2.5px;
}

.equipment-svg-crew-mask .crew-mask-filter {
  fill: #818b93;
}

.equipment-svg-crew-mask .crew-mask-hose,
.equipment-svg-crew-mask .crew-mask-hose-ring {
  fill: none;
  stroke: #7a858d;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.equipment-svg-crew-mask .crew-mask-hose {
  stroke-width: 4.5px;
}

.equipment-svg-crew-mask .crew-mask-hose-ring {
  stroke-width: 2px;
}

.equipment-svg-exit .exit-sign {
  fill: currentColor;
}

.equipment-svg-exit .exit-text {
  fill: #fff;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
}

.equipment-svg-exit .exit-door {
  fill: #fff;
}

.equipment-svg-exit .exit-arrow,
.equipment-svg-exit .exit-base {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5px;
}

.equipment-svg-exit .exit-base {
  opacity: 0.86;
  stroke-width: 3px;
}

.equipment-svg-life-jacket {
  fill: currentColor;
}

.equipment-svg-life-jacket .vest-cutout,
.equipment-svg-life-jacket .vest-gap,
.equipment-svg-life-jacket .vest-buckle {
  fill: #fff;
}

.equipment-svg-life-jacket .vest-strap {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 3.4px;
}

.equipment-svg-rope {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.equipment-svg-rope .rope-line {
  stroke-width: 8.4px;
}

.equipment-svg-rope .rope-end {
  stroke: currentColor;
  stroke-width: 2.5px;
}

.equipment-svg-rope .rope-stripe {
  opacity: 0.9;
  stroke: #fff;
  stroke-width: 2.4px;
}

.placard-label {
  color: currentColor;
  display: block;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  max-width: 100%;
}

.zone-icon .placard-label {
  font-size: 0.5rem;
}

.pictogram-part {
  box-sizing: border-box;
  display: block;
  position: absolute;
}

.pictogram-torch {
  transform: rotate(-24deg);
}

.pictogram-torch .part-1 {
  background: currentColor;
  border-radius: 4px;
  height: 11px;
  left: 10px;
  top: 10px;
  width: 20px;
}

.pictogram-torch .part-2 {
  background: currentColor;
  clip-path: polygon(0 12%, 100% 27%, 100% 73%, 0 88%);
  height: 16px;
  left: 4px;
  top: 8px;
  width: 9px;
}

.pictogram-torch .part-3 {
  background: currentColor;
  border-radius: 999px;
  height: 2px;
  left: -6px;
  opacity: 0.86;
  top: 15px;
  width: 10px;
}

.pictogram-torch .part-4 {
  height: 16px;
  left: -6px;
  top: 8px;
  width: 10px;
}

.pictogram-torch .part-4::before,
.pictogram-torch .part-4::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 0;
  opacity: 0.78;
  position: absolute;
  width: 9px;
}

.pictogram-torch .part-4::before {
  top: 0;
  transform: rotate(18deg);
  transform-origin: right center;
}

.pictogram-torch .part-4::after {
  bottom: 0;
  transform: rotate(-18deg);
  transform-origin: right center;
}

.pictogram-life-jacket .part-1,
.pictogram-life-jacket .part-2 {
  background: currentColor;
  height: 23px;
  top: 4px;
  width: 11px;
}

.pictogram-life-jacket .part-1 {
  border-radius: 7px 3px 5px 4px;
  left: 7px;
  transform: rotate(8deg);
}

.pictogram-life-jacket .part-2 {
  border-radius: 3px 7px 4px 5px;
  left: 19px;
  transform: rotate(-8deg);
}

.pictogram-life-jacket .part-3 {
  background: currentColor;
  border-radius: 999px;
  height: 4px;
  left: 8px;
  top: 20px;
  width: 21px;
}

.pictogram-fire-extinguisher {
  transform: rotate(-13deg);
}

.pictogram-fire-extinguisher .part-1 {
  background: currentColor;
  border-radius: 5px 5px 8px 8px;
  clip-path: polygon(18% 0, 82% 0, 100% 18%, 100% 100%, 0 100%, 0 18%);
  height: 22px;
  left: 12px;
  top: 9px;
  width: 13px;
}

.pictogram-fire-extinguisher .part-1::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 2px;
  opacity: 0.86;
  position: absolute;
  top: 8px;
  width: 9px;
}

.pictogram-fire-extinguisher .part-2 {
  background: currentColor;
  border: 0;
  border-radius: 2px;
  clip-path: polygon(0 43%, 34% 43%, 34% 0, 66% 0, 66% 43%, 100% 43%, 100% 72%, 0 72%);
  height: 10px;
  left: 9px;
  top: 1px;
  width: 19px;
}

.pictogram-fire-extinguisher .part-3 {
  border-right: 3px solid currentColor;
  border-top: 3px solid currentColor;
  border-radius: 0 10px 0 0;
  height: 14px;
  left: 23px;
  top: 5px;
  width: 12px;
}

.pictogram-fire-extinguisher .part-4 {
  background: currentColor;
  border-radius: 999px;
  height: 4px;
  left: 30px;
  top: 17px;
  transform: rotate(-18deg);
  width: 8px;
}

.pictogram-life-raft .part-1 {
  border: 5px solid currentColor;
  border-radius: 50%;
  height: 20px;
  left: 3px;
  top: 5px;
  width: 30px;
}

.pictogram-life-raft .part-2,
.pictogram-life-raft .part-3 {
  background: currentColor;
  border-radius: 999px;
  height: 3px;
  left: 9px;
  width: 18px;
}

.pictogram-life-raft .part-2 {
  top: 9px;
}

.pictogram-life-raft .part-3 {
  top: 18px;
}

.pictogram-aed .part-1,
.pictogram-first-aid .part-1 {
  border: 3px solid currentColor;
  border-radius: 5px;
  height: 20px;
  left: 5px;
  top: 7px;
  width: 26px;
}

.pictogram-aed .part-2,
.pictogram-first-aid .part-3 {
  background: currentColor;
  border-radius: 999px;
  height: 4px;
  left: 11px;
  top: 15px;
  width: 14px;
}

.pictogram-aed .part-3,
.pictogram-first-aid .part-4 {
  background: currentColor;
  border-radius: 999px;
  height: 14px;
  left: 16px;
  top: 10px;
  width: 4px;
}

.pictogram-aed .part-4 {
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  height: 8px;
  left: 12px;
  top: 19px;
  transform: skewX(-18deg);
  width: 13px;
}

.pictogram-first-aid .part-2 {
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  height: 8px;
  left: 12px;
  top: 2px;
  width: 12px;
}

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

.tone-blue {
  background: var(--blue);
}

.tone-green {
  background: var(--green);
}

.tone-red {
  background: var(--red);
}

.tone-orange {
  background: var(--orange);
}

.tone-amber {
  background: var(--amber);
}

.tone-yellow {
  background: var(--yellow);
  color: #1f2a31;
}

.tone-grey {
  background: #f7f8f9;
  border: 1px solid #687781;
  color: #20272c;
}

.icon-symbol.tone-blue,
.icon-symbol.tone-green,
.icon-symbol.tone-red,
.icon-symbol.tone-orange,
.icon-symbol.tone-amber,
.icon-symbol.tone-yellow,
.icon-symbol.tone-grey {
  background: #fff;
  border-style: solid;
  border-width: 2px;
}

.icon-symbol.tone-blue {
  --placard-color: var(--blue);
  border-color: var(--placard-color);
  color: var(--placard-color);
}

.icon-symbol.tone-green {
  --placard-color: var(--green);
  border-color: var(--placard-color);
  color: var(--placard-color);
}

.icon-symbol.tone-red {
  --placard-color: var(--red);
  border-color: var(--placard-color);
  color: var(--placard-color);
}

.icon-symbol.tone-orange {
  --placard-color: var(--orange);
  border-color: var(--placard-color);
  color: var(--placard-color);
}

.icon-symbol.tone-amber {
  --placard-color: var(--amber);
  border-color: var(--placard-color);
  color: var(--placard-color);
}

.icon-symbol.tone-yellow {
  --placard-color: var(--yellow);
  border-color: var(--placard-color);
  color: var(--placard-color);
}

.icon-symbol.tone-grey {
  --placard-color: #20272c;
  border-color: #687781;
  color: var(--placard-color);
}

.icon-symbol {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 10px rgba(30, 44, 54, 0.14);
  font-family: Arial, Helvetica, sans-serif;
}

.icon-symbol .equipment-pictogram {
  margin-top: 1px;
}

.icon-life-jacket {
  background:
    radial-gradient(#aeb7bd 1px, transparent 1.4px) 0 0 / 5px 5px,
    #fff;
}

.icon-life-jacket .placard-label {
  color: currentColor;
}

.icon-life-jacket .pictogram-life-jacket .part-1,
.icon-life-jacket .pictogram-life-jacket .part-2 {
  background: transparent;
  border-left: 5px solid currentColor;
  border-radius: 0;
  height: 26px;
  top: 1px;
  width: 12px;
}

.icon-life-jacket .pictogram-life-jacket .part-1 {
  border-right: 2px solid currentColor;
  left: 7px;
  transform: rotate(-14deg);
}

.icon-life-jacket .pictogram-life-jacket .part-2 {
  border-left: 2px solid currentColor;
  border-right: 5px solid currentColor;
  left: 19px;
  transform: rotate(14deg);
}

.icon-life-jacket .pictogram-life-jacket .part-3 {
  background: currentColor;
  border-radius: 0 0 8px 8px;
  height: 8px;
  left: 13px;
  top: 17px;
  width: 10px;
}

.icon-life-raft .equipment-pictogram {
  background: transparent;
  border-radius: 0;
  color: currentColor;
  height: 30px;
  overflow: visible;
  width: 40px;
}

.zone-icon.icon-life-raft .equipment-pictogram {
  height: 26px;
  width: 37px;
}

.icon-life-raft .pictogram-life-raft .part-1 {
  background: currentColor;
  border: 0;
  border-radius: 50% 50% 42% 42% / 68% 68% 42% 42%;
  height: 18px;
  left: 3px;
  top: 9px;
  width: 34px;
}

.icon-life-raft .pictogram-life-raft .part-1::before,
.icon-life-raft .pictogram-life-raft .part-1::after {
  content: "";
  position: absolute;
}

.icon-life-raft .pictogram-life-raft .part-1::before {
  background: #fff;
  border-radius: 999px;
  height: 13px;
  left: 7px;
  opacity: 0.86;
  top: 3px;
  transform: rotate(-10deg);
  width: 2px;
  box-shadow: 18px 3px 0 #fff;
}

.icon-life-raft .pictogram-life-raft .part-1::after {
  background: #fff;
  border-radius: 50%;
  height: 8px;
  left: 8px;
  top: 5px;
  width: 18px;
}

.icon-life-raft .pictogram-life-raft .part-2,
.icon-life-raft .pictogram-life-raft .part-3 {
  background: currentColor;
  border-radius: 999px;
  height: 2px;
  left: 12px;
  width: 16px;
}

.icon-life-raft .pictogram-life-raft .part-2 {
  top: 17px;
}

.icon-life-raft .pictogram-life-raft .part-3 {
  top: 21px;
}

.icon-life-raft .pictogram-life-raft .part-4 {
  background: transparent;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  height: 8px;
  left: 13px;
  top: 4px;
  width: 14px;
}

.zone-icon.icon-fire-extinguisher .pictogram-fire-extinguisher {
  transform: scale(0.88) rotate(-13deg);
}

.icon-fire-extinguisher .pictogram-fire-extinguisher .part-1 {
  height: 23px;
  left: 12px;
  top: 8px;
  width: 14px;
}

.icon-fire-extinguisher .pictogram-fire-extinguisher .part-2 {
  height: 10px;
  left: 8px;
  top: 1px;
  width: 21px;
}

.icon-fire-extinguisher .pictogram-fire-extinguisher .part-3 {
  height: 15px;
  left: 24px;
  top: 4px;
  width: 13px;
}

.icon-fire-extinguisher .pictogram-fire-extinguisher .part-4 {
  height: 4px;
  left: 31px;
  top: 17px;
  transform: rotate(-18deg);
  width: 9px;
}

.icon-aed .placard-label {
  color: currentColor;
}

.icon-aed .pictogram-aed .part-1 {
  border: 0;
  border-radius: 50% 50% 45% 45%;
  background: currentColor;
  height: 13px;
  left: 13px;
  top: 6px;
  transform: rotate(-45deg);
  width: 13px;
}

.icon-aed .pictogram-aed .part-2 {
  background: currentColor;
  border-radius: 50%;
  height: 12px;
  left: 9px;
  top: 5px;
  width: 12px;
}

.icon-aed .pictogram-aed .part-3 {
  background: currentColor;
  border-radius: 50%;
  height: 12px;
  left: 17px;
  top: 5px;
  width: 12px;
}

.icon-aed .pictogram-aed .part-4 {
  border: 0;
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  height: 9px;
  left: 16px;
  top: 12px;
  transform: rotate(-35deg);
  width: 10px;
}

.icon-first-aid .pictogram-first-aid .part-1 {
  background: currentColor;
  border: 0;
  border-radius: 4px;
  height: 22px;
  left: 6px;
  top: 7px;
  width: 25px;
}

.icon-first-aid .pictogram-first-aid .part-2 {
  border: 3px solid currentColor;
  border-bottom: 0;
  height: 8px;
  left: 12px;
  top: 1px;
  width: 13px;
}

.icon-first-aid .pictogram-first-aid .part-3,
.icon-first-aid .pictogram-first-aid .part-4 {
  background: #fff;
  border-radius: 999px;
}

.icon-first-aid .pictogram-first-aid .part-3 {
  height: 4px;
  left: 11px;
  top: 16px;
  width: 15px;
}

.icon-first-aid .pictogram-first-aid .part-4 {
  height: 15px;
  left: 16px;
  top: 10px;
  width: 4px;
}

.pictogram-pbe .part-1 {
  background: currentColor;
  border-radius: 2px 8px 8px 3px;
  height: 18px;
  left: 4px;
  top: 10px;
  transform: skewY(-7deg);
  width: 20px;
}

.pictogram-pbe .part-2 {
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  height: 11px;
  left: 7px;
  top: 4px;
  width: 13px;
}

.pictogram-pbe .part-3 {
  background: currentColor;
  border-radius: 4px;
  height: 8px;
  left: 23px;
  top: 16px;
  width: 8px;
}

.pictogram-pbe .part-4 {
  border-bottom: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-radius: 0 0 7px 0;
  height: 10px;
  left: 26px;
  top: 11px;
  width: 8px;
}

.pictogram-oxygen::before {
  content: "O2";
  font-size: 0.82rem;
  font-weight: 950;
  left: 0;
  position: absolute;
  top: 0;
}

.pictogram-oxygen .part-1 {
  border: 2px solid currentColor;
  border-radius: 50%;
  height: 13px;
  left: 18px;
  top: 12px;
  width: 13px;
}

.pictogram-oxygen .part-2 {
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  border-radius: 0 0 0 8px;
  height: 12px;
  left: 17px;
  top: 14px;
  transform: rotate(-18deg);
  width: 15px;
}

.pictogram-oxygen .part-3,
.pictogram-oxygen .part-4 {
  border: 2px solid currentColor;
  border-radius: 50%;
  height: 9px;
  top: 19px;
  width: 9px;
}

.pictogram-oxygen .part-3 {
  left: 9px;
}

.pictogram-oxygen .part-4 {
  left: 27px;
}

.pictogram-escape-rope .part-1 {
  background:
    radial-gradient(ellipse at center, transparent 0 18%, currentColor 19% 30%, transparent 31% 44%, currentColor 45% 58%, transparent 59% 72%, currentColor 73% 86%, transparent 87%);
  border-radius: 50%;
  height: 26px;
  left: 3px;
  top: 2px;
  width: 29px;
}

.pictogram-escape-rope .part-1::before {
  background: repeating-linear-gradient(135deg, transparent 0 5px, currentColor 5px 7px);
  border-radius: 50%;
  content: "";
  height: 26px;
  left: 0;
  opacity: 0.24;
  position: absolute;
  top: 0;
  width: 29px;
}

.pictogram-escape-rope .part-2 {
  background: #fff;
  border: 3px solid currentColor;
  border-radius: 50%;
  height: 8px;
  left: 13px;
  top: 11px;
  width: 8px;
}

.pictogram-escape-rope .part-3 {
  background: currentColor;
  border-radius: 999px;
  height: 5px;
  left: 22px;
  top: 23px;
  transform: rotate(-18deg);
  width: 14px;
}

.pictogram-escape-rope .part-4 {
  background: currentColor;
  border-radius: 50%;
  height: 7px;
  left: 29px;
  top: 20px;
  width: 7px;
}

.pictogram-escape-rope .part-3::before,
.pictogram-escape-rope .part-3::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  height: 5px;
  opacity: 0.85;
  position: absolute;
  top: 0;
  transform: rotate(24deg);
  width: 2px;
}

.pictogram-escape-rope .part-3::before {
  left: 4px;
}

.pictogram-escape-rope .part-3::after {
  left: 9px;
}

.icon-torch .placard-label {
  color: currentColor;
}

.tone-border-blue {
  border-left: 5px solid var(--blue);
}

.tone-border-green {
  border-left: 5px solid var(--green);
}

.tone-border-red {
  border-left: 5px solid var(--red);
}

.tone-border-orange {
  border-left: 5px solid var(--orange);
}

.tone-border-amber {
  border-left: 5px solid var(--amber);
}

.tone-border-yellow {
  border-left: 5px solid var(--yellow);
}

.tone-border-grey {
  border-left: 5px solid #687781;
}

.aircraft-workspace {
  min-width: 0;
}

.aircraft-card {
  min-height: 1040px;
  padding: 12px;
}

.aircraft-diagram {
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(72, 89, 100, 0.12) 50%, transparent 50.2%),
    #f9fbfc;
  border: 1px solid #dce4ea;
  border-radius: 8px;
  height: min(92vh, 1220px);
  min-height: 960px;
  overflow: hidden;
  position: relative;
}

.aircraft-diagram svg,
.layout-image {
  display: block;
  height: 100%;
  margin: 0 auto;
  max-width: 100%;
}

.layout-image {
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.drop-layer {
  inset: 0;
  position: absolute;
  z-index: 2;
}

.fuselage {
  fill: #fff;
  stroke: #2f3c45;
  stroke-width: 3;
}

.centerline {
  stroke: #b7c3cb;
  stroke-dasharray: 7 8;
  stroke-width: 2;
}

.cockpit,
.galley,
.equipment-bay,
.tail-bay {
  fill: #edf2f5;
  stroke: #4c5c66;
  stroke-width: 2;
}

.seat {
  fill: #f2f5f7;
  stroke: #6f808b;
  stroke-width: 2;
}

.door {
  fill: #fff8ec;
  stroke: #d58b28;
  stroke-width: 2;
}

.row-line {
  stroke: #d8e0e6;
  stroke-width: 1;
}

.drop-zone {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 2px dashed #8fa0ab;
  border-radius: 8px;
  color: #43535d;
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 4px;
  justify-content: center;
  line-height: 1.1;
  min-height: 62px;
  padding: 6px;
  position: absolute;
  text-align: center;
  transform: translate(-50%, -50%);
  width: 126px;
}

.drop-zone .result-badge {
  align-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(30, 44, 54, 0.28);
  color: #fff;
  display: flex;
  font-size: 0.72rem;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  position: absolute;
  right: -14px;
  top: -14px;
  width: 28px;
  z-index: 5;
}

.drop-zone.icon-only {
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
  width: max-content;
}

.drop-zone.icon-only .zone-icon,
.admin-target.icon-only .zone-icon {
  box-shadow: 0 4px 12px rgba(30, 44, 54, 0.14);
}

.drop-zone.empty-zone {
  background: rgba(255, 255, 255, 0.72);
  border: 2px dashed #8fa0ab;
  border-radius: 6px;
  min-height: 36px;
  padding: 0;
  width: 48px;
}

.aircraft-diagram.has-selected-item .drop-zone.empty-zone {
  background: rgba(232, 244, 251, 0.86);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 90, 138, 0.12);
}

.empty-zone-dot {
  background: transparent;
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.drop-zone.has-item {
  border-style: solid;
  color: #20313a;
}

.drop-zone.is-correct {
  border-color: var(--green);
  box-shadow:
    0 0 0 7px rgba(39, 134, 87, 0.32),
    0 0 28px 11px rgba(39, 134, 87, 0.24);
}

.drop-zone.is-incorrect {
  border-color: var(--red);
  box-shadow:
    0 0 0 7px rgba(193, 63, 52, 0.36),
    0 0 30px 12px rgba(193, 63, 52, 0.28);
}

.drop-zone.is-correct .zone-icon {
  filter: saturate(1.12);
  outline: 7px solid var(--green);
  outline-offset: 5px;
  box-shadow:
    0 0 0 13px rgba(39, 134, 87, 0.24),
    0 16px 36px rgba(39, 134, 87, 0.34);
}

.drop-zone.is-incorrect .zone-icon {
  filter: saturate(1.14);
  outline: 7px solid var(--red);
  outline-offset: 5px;
  box-shadow:
    0 0 0 13px rgba(193, 63, 52, 0.28),
    0 16px 36px rgba(193, 63, 52, 0.38);
}

.drop-zone.is-correct .result-badge {
  background: var(--green);
}

.drop-zone.is-incorrect .result-badge {
  background: var(--red);
}

.result-panel {
  border: 1px solid #d8e0e6;
  border-radius: 7px;
  display: grid;
  gap: 7px;
  min-height: 104px;
  padding: 14px;
}

.result-panel strong {
  font-size: 1.3rem;
}

.result-panel span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.result-panel.is-visible {
  background: #f7fbf8;
}

.result-panel.is-review {
  background: #fff7f6;
  border-color: #edc3bd;
}

.result-panel.is-pass {
  background: #f7fbf8;
  border-color: #b9d9c9;
}

.certificate-summary {
  align-items: center;
  border: 1px solid #d8e0e6;
  border-radius: 7px;
  background: #fff;
  display: grid;
  gap: 10px;
  grid-template-columns: 54px 1fr;
  padding: 10px;
}

.certificate-summary img {
  border: 1px solid #d8e0e6;
  border-radius: 50%;
  height: 54px;
  object-fit: contain;
  width: 54px;
}

.certificate-summary span {
  color: #62727d;
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.certificate-summary strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.25;
}

.certificate-summary small {
  color: #62727d;
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 3px;
}

.certificate-actions {
  display: grid;
  gap: 8px;
}

.selected-placement-dock {
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #cfd8df;
  border-radius: 8px;
  bottom: 16px;
  box-shadow: 0 18px 44px rgba(30, 44, 54, 0.18);
  display: none;
  gap: 12px;
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 10px;
  position: fixed;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px));
  z-index: 80;
}

.selected-placement-dock.is-visible {
  display: flex;
}

.selected-placement-summary {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.selected-placement-summary .tile-icon {
  flex: 0 0 auto;
}

.selected-placement-summary span {
  min-width: 0;
}

.selected-placement-summary small {
  color: #62727d;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.selected-placement-summary strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-placement-dock button {
  border: 1px solid #b7c3cb;
  border-radius: 6px;
  background: #e7eef3;
  color: #263640;
  flex: 0 0 auto;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 12px;
}

.certificate-button {
  border: 0;
  border-radius: 6px;
  background: #1d5a8a;
  color: #fff;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 12px;
}

.secondary-certificate-button {
  border: 1px solid #b7c3cb;
  background: #e7eef3;
  color: #263640;
}

.action-stack {
  display: grid;
  gap: 8px;
}

.action-stack .secondary-button {
  background: #e7eef3;
  color: #263640;
}

@media (max-width: 1120px) {
  .exam-shell {
    grid-template-columns: 1fr;
  }

  .equipment-tray,
  .exam-status {
    max-height: none;
    overflow: visible;
    position: static;
  }

  .equipment-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .aircraft-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .exam-page {
    padding: 14px;
  }

  .exam-header,
  .session-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-logo {
    height: 62px;
    width: 62px;
  }

  .equipment-list {
    grid-template-columns: 1fr;
  }

  .aircraft-diagram {
    height: 980px;
    min-height: 980px;
  }

  .drop-zone {
    font-size: 0.66rem;
    min-height: 58px;
    width: 102px;
  }
}

.admin-page {
  display: grid;
  gap: 18px;
}

.admin-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(190px, 240px) minmax(760px, 1fr) minmax(230px, 300px);
  margin: 0 auto;
  max-width: 2080px;
  width: 100%;
}

.admin-shell > * {
  min-width: 0;
}

.admin-panel,
.admin-editor,
.admin-users {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(30, 44, 54, 0.08);
}

.admin-panel,
.admin-users {
  align-self: start;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.admin-panel label {
  display: grid;
  font-size: 0.85rem;
  font-weight: 800;
  gap: 6px;
  min-width: 0;
}

.admin-panel > select,
.admin-panel label input,
.admin-panel > button,
.admin-panel > .form-alert,
.admin-panel > .form-success {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.admin-panel select,
.admin-panel input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-panel .panel-heading {
  min-width: 0;
}

.admin-panel .panel-heading .compact-button {
  flex: 0 0 auto;
  width: auto;
}

.admin-panel > button,
.user-form button {
  border: 0;
  border-radius: 6px;
  background: #1d5a8a;
  color: #fff;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 12px;
}

.admin-panel > button.danger-action {
  border: 1px solid #e2aaa4;
  background: #fff0ed;
  color: #a6322b;
}

.compact-button,
.icon-button,
.target-row button,
.user-row button {
  border: 1px solid #b7c3cb;
  border-radius: 6px;
  background: #e7eef3;
  color: #263640;
  font-weight: 800;
  min-height: 34px;
  padding: 6px 10px;
}

.icon-button.danger-button {
  border-color: #e2aaa4;
  background: #fff0ed;
  color: #a6322b;
}

.admin-editor {
  min-width: 0;
  padding: 14px;
}

.editor-toolbar {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.editor-toolbar > * {
  min-width: 0;
}

.editor-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 0;
  width: min(100%, 860px);
}

.target-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) auto auto auto;
  min-width: 0;
  width: 100%;
}

.target-controls input,
.target-controls select {
  min-width: 0;
  width: 100%;
}

.target-controls button {
  border: 0;
  border-radius: 6px;
  background: #36515f;
  color: #fff;
  font-weight: 800;
  padding: 8px 12px;
}

.target-controls button.is-active {
  background: var(--green);
}

.target-controls #remove-target-mode-button.is-active {
  background: var(--red);
}

.target-controls #move-target-mode-button.is-active {
  background: var(--amber);
}

.admin-layout-stage {
  background: #f9fbfc;
  border: 1px solid #dce4ea;
  border-radius: 8px;
  height: min(92vh, 1220px);
  min-height: 940px;
  overflow: hidden;
  position: relative;
}

.admin-layout-stage.is-add-mode {
  cursor: crosshair;
}

.admin-layout-stage.is-move-mode {
  cursor: grab;
}

.admin-layout-stage.is-move-mode.has-selected-target {
  cursor: crosshair;
}

.admin-layout-stage.is-move-mode .admin-target {
  outline: 3px solid rgba(157, 107, 32, 0.26);
  outline-offset: 2px;
}

.admin-layout-stage.is-remove-mode .admin-target {
  cursor: pointer;
  filter: saturate(1.1);
  outline: 3px solid rgba(193, 63, 52, 0.26);
  outline-offset: 2px;
}

.admin-layout-stage .layout-image {
  height: 100%;
  width: 100%;
}

.admin-target {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid var(--blue);
  border-radius: 8px;
  color: #20313a;
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 4px;
  justify-content: center;
  min-height: 60px;
  padding: 6px;
  position: absolute;
  text-align: center;
  touch-action: none;
  transform: translate(-50%, -50%);
  width: 122px;
}

.admin-target.icon-only {
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
  width: max-content;
}

.admin-target.is-selected .zone-icon {
  box-shadow:
    0 0 0 3px rgba(157, 107, 32, 0.35),
    0 8px 18px rgba(30, 44, 54, 0.18);
}

.admin-target.is-dragging {
  cursor: grabbing;
  opacity: 0.72;
}

.target-remove-badge {
  align-items: center;
  background: var(--red);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(30, 44, 54, 0.18);
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: 0.72rem;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: -10px;
  top: -10px;
  width: 20px;
  z-index: 4;
}

.admin-layout-stage.is-remove-mode .target-remove-badge {
  display: inline-flex;
}

.equipment-editor-list,
.target-list,
.user-list {
  display: grid;
  gap: 8px;
}

.equipment-editor-row {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(90px, 1fr) 64px 86px 38px;
}

.target-row,
.user-row {
  border: 1px solid #d8e0e6;
  border-radius: 7px;
  background: #fff;
  color: var(--foreground);
  display: grid;
  gap: 4px;
  padding: 10px;
  text-align: left;
}

.target-row {
  grid-template-columns: 1fr auto;
}

.target-row span,
.user-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.target-row button {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.user-row {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.user-row strong,
.user-row span {
  display: block;
}

.user-row-actions {
  display: flex;
  gap: 8px;
}

.user-row button.danger-button {
  border-color: #e2aaa4;
  background: #fff0ed;
  color: #a6322b;
}

.admin-users {
  margin: 0 auto;
  max-width: 1500px;
  width: 100%;
}

.user-form {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr 140px 1fr auto;
}

.is-hidden {
  display: none;
}

@media (max-width: 1180px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .user-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .editor-toolbar,
  .target-controls {
    grid-template-columns: 1fr;
  }

  .editor-toolbar {
    display: grid;
  }

  .editor-actions {
    justify-items: stretch;
  }

  .equipment-editor-row,
  .user-form {
    grid-template-columns: 1fr;
  }

  .admin-layout-stage {
    height: 980px;
    min-height: 980px;
  }
}
