:root {
  --kit-ink: #1e2428;
  --kit-paper: #ebe6dc;
  --kit-paper-dim: #d8d2c6;
  --kit-plastic: #3f474f;
  --kit-plastic-mid: #343b42;
  --kit-plastic-deep: #2a3036;
  --kit-edge: #5c656e;
  --kit-edge-soft: rgba(255, 255, 255, 0.08);
  --kit-accent: #6b5a42;
  --kit-accent-soft: #8a7658;
  --kit-fix: #3d6b4f;
  --kit-muted: #8a9198;
  --kit-sea: #b7c7d2;
  --kit-text: #e8e4dc;
  --kit-text-dim: rgba(232, 228, 220, 0.78);
  --font-ui: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #2e343a;
  color: var(--kit-text);
  font: 15px/1.4 var(--font-ui);
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Boot — overcast Antarctic station / clipboard briefing */
#boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 85% 60% at 50% 18%, #5a6a78 0%, transparent 55%),
    linear-gradient(180deg, #4a5560 0%, #353c44 42%, #2a3036 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
#boot[hidden] {
  display: none !important;
}
#boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-panel {
  width: min(360px, calc(100vw - 40px));
  padding: 26px 24px 20px;
  text-align: center;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #f2eee6 0%, var(--kit-paper) 55%, #e2dcd2 100%);
  border: 1px solid #b8b0a4;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: var(--kit-ink);
}
.boot-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a6258;
}
.boot-title {
  margin: 0;
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--kit-ink);
}
.boot-tag {
  margin: 6px 0 20px;
  font-size: 13px;
  color: #5a554c;
}
.boot-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2px solid rgba(60, 70, 78, 0.18);
  border-top-color: #4a5a68;
  animation: boot-spin 0.9s linear infinite;
}
@keyframes boot-spin {
  to { transform: rotate(360deg); }
}
.boot-meter {
  height: 5px;
  border-radius: 2px;
  overflow: hidden;
  background: #cfc8bc;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}
.boot-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: #4a5c6a;
  transition: width 0.28s ease;
}
.boot-pct {
  margin: 10px 0 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #3d4a54;
}
.boot-step {
  margin: 0;
  font-size: 13px;
  color: #4a463e;
  min-height: 1.35em;
}
body.is-booting #hud,
body.is-booting #gps,
body.is-booting #radio,
body.is-booting #kit-menu,
body.is-booting #profile,
body.is-booting #inventory,
body.is-booting #hud-meters,
body.is-booting #expedition {
  visibility: hidden;
  pointer-events: none;
}

/* Hero profile — far top-left field card (collapsed = face+hat chip) */
#profile {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
  isolation: isolate;
}
.profile-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}
.profile-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
}
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Warmth / chill — under profile avatar (not in top-center meter cluster) */
#profile .vitals {
  pointer-events: none;
  flex-shrink: 0;
  width: min(168px, calc(100vw - 28px));
}
.profile-toggle {
  pointer-events: auto;
  display: block;
  margin: 0;
  padding: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(232, 228, 220, 0.55);
  background: #e8e2d6;
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(40, 36, 30, 0.18);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}
.audio-mute {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  color: rgba(232, 228, 220, 0.72);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}
.audio-mute:hover {
  color: #f0ece4;
}
.audio-mute-icon {
  display: block;
}
.audio-mute-slash {
  display: none;
}
.audio-mute.is-muted .audio-mute-slash {
  display: block;
}
.audio-mute.is-muted {
  color: rgba(168, 176, 184, 0.55);
}
.profile-toggle:hover {
  border-color: rgba(232, 228, 220, 0.85);
}
#profile.is-open .profile-toggle {
  border-color: var(--kit-accent-soft);
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(138, 118, 88, 0.35);
}
.profile-toggle canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #e8e2d6;
}
.profile-panel {
  pointer-events: auto;
  width: min(460px, calc(100vw - 24px));
  padding: 10px 12px 12px;
  border-radius: 4px;
  border: 1px solid #b8b0a4;
  background:
    linear-gradient(180deg, #f2eee6 0%, var(--kit-paper) 55%, #e2dcd2 100%);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: var(--kit-ink);
}
.profile-panel[hidden] {
  display: none !important;
}
.profile-head {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a6258;
}
.profile-layout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.profile-figure {
  flex: 0 0 auto;
  align-self: flex-start;
  display: block;
  width: 128px;
  height: 220px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(40, 36, 30, 0.22);
  background: #e8e2d6;
}
.profile-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}
.profile-part {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(60, 54, 46, 0.1);
}
.profile-part:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.profile-label {
  display: block;
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a645a;
}
.profile-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.profile-sublab {
  flex: 0 0 34px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #8a8278;
}
.profile-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.profile-opt {
  margin: 0;
  padding: 3px 7px;
  border-radius: 2px;
  border: 1px solid #b0a898;
  background: #efeae0;
  color: #3a3630;
  font: 600 11px/1.2 var(--font-ui);
  cursor: pointer;
}
.profile-opt:hover {
  border-color: #8a8070;
}
.profile-opt.is-active {
  border-color: #6b5a42;
  background: #ddd4c4;
  color: var(--kit-ink);
}
.profile-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}
.profile-swatch {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 2px;
  border: 1px solid rgba(40, 36, 30, 0.35);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.profile-swatch:hover {
  border-color: #4a4438;
}
.profile-swatch.is-active {
  outline: 2px solid #6b5a42;
  outline-offset: 1px;
}

@media (max-width: 480px) {
  .profile-panel {
    width: min(100vw - 20px, 360px);
  }
  .profile-layout {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .profile-figure {
    width: 100px;
    height: 172px;
  }
  .profile-body {
    width: 100%;
  }
}

#hud {
  position: fixed;
  inset: 14px 14px auto 14px;
  left: auto;
  right: 268px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  z-index: 2;
}
#hud p {
  margin: 0;
  opacity: 0.88;
  font-size: 13px;
}

/* Handheld GPS — matte plastic, paper-map screen */
#gps {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 236px;
  pointer-events: none;
  isolation: isolate;
  box-sizing: border-box;
}
#gps[hidden] {
  display: none !important;
}

/* Handheld VKV radio — beside GPS when both open (never covers map thumbs) */
.radio-hud {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 11;
  width: 236px;
  max-height: calc(100vh - 132px);
  box-sizing: border-box;
  pointer-events: auto;
  color: var(--kit-text);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 170, 150, 0.35) transparent;
}
/* GPS visible (collapsed handheld): park radio to its left with a clear gap */
#gps:not([hidden]):not(.is-expanded) ~ .radio-hud {
  right: 258px;
  top: 10px;
}
/* Expanded GPS is fullscreen — keep radio usable above the hotbar */
#gps.is-expanded ~ .radio-hud {
  right: 10px;
  top: auto;
  bottom: 118px;
  z-index: 41;
  max-height: min(42vh, calc(100vh - 140px));
}
@media (max-width: 560px) {
  /* Narrow: stack under GPS instead of side-by-side */
  #gps:not([hidden]):not(.is-expanded) ~ .radio-hud {
    right: 10px;
    top: var(--radio-below-gps, 372px);
  }
}
.radio-shell {
  position: relative;
  padding-top: 18px;
}
.radio-antenna {
  position: absolute;
  top: 0;
  left: 28px;
  width: 10px;
  height: 22px;
  z-index: 1;
}
.radio-antenna-rod {
  display: block;
  width: 3px;
  height: 18px;
  margin: 0 auto;
  border-radius: 1px 1px 0 0;
  background: linear-gradient(180deg, #9a8a68 0%, #6a5a42 55%, #4a4034 100%);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.2);
}
.radio-antenna-tip {
  display: block;
  width: 8px;
  height: 8px;
  margin: -2px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c8b898, #6a5a42 70%);
  border: 1px solid #4a4034;
}
.radio-body {
  position: relative;
  box-sizing: border-box;
  padding: 8px 9px 10px;
  border-radius: 12px 12px 10px 10px;
  background:
    linear-gradient(165deg, #4e575f 0%, var(--kit-plastic) 22%, var(--kit-plastic-mid) 58%, var(--kit-plastic-deep) 100%);
  border: 1px solid var(--kit-edge);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 var(--kit-edge-soft),
    inset 0 -2px 0 rgba(0, 0, 0, 0.28);
}
.radio-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 1px 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--kit-muted);
}
.radio-brand {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-ch {
  flex-shrink: 0;
  padding: 2px 5px;
  border-radius: 3px;
  background: #1a2218;
  border: 1px solid #3a4a38;
  color: #7ecf8a;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.radio-close {
  appearance: none;
  flex-shrink: 0;
  margin: 0;
  padding: 0 3px;
  border: none;
  background: transparent;
  color: var(--kit-muted);
  font: 600 14px/1 var(--font-ui);
  cursor: pointer;
}
.radio-close:hover {
  color: var(--kit-text);
}
.radio-speaker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin: 0 2px 7px;
  padding: 5px 6px;
  border-radius: 4px;
  background: rgba(12, 14, 16, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
.radio-speaker span {
  display: block;
  height: 18px;
  border-radius: 1px;
  background:
    repeating-linear-gradient(
      180deg,
      #2a3036 0 2px,
      #1a1e22 2px 3px
    );
  box-shadow: inset 0 0 0 1px rgba(90, 100, 110, 0.25);
}
.radio-lcd {
  margin: 0 1px 7px;
  padding: 6px 7px 7px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #1e3a28 0%, #163020 55%, #122818 100%);
  border: 1px solid #0e1a14;
  box-shadow:
    inset 0 1px 0 rgba(120, 180, 130, 0.12),
    inset 0 0 12px rgba(0, 0, 0, 0.35);
  color: #8fd49a;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
}
.radio-lcd-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(143, 212, 154, 0.72);
}
.radio-tx {
  font-weight: 700;
  color: #8fd49a;
}
.radio-tx.is-tx {
  color: #f0c060;
  text-shadow: 0 0 6px rgba(240, 192, 96, 0.45);
}
.radio-sig {
  margin-left: auto;
  letter-spacing: -0.08em;
  opacity: 0.85;
}
.radio-log {
  margin: 0;
  min-height: 4.6em;
  max-height: 6.4em;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  line-height: 1.35;
  color: #a8e0b0;
  font-family: var(--font-ui, "IBM Plex Sans", sans-serif);
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 212, 154, 0.35) transparent;
}
.radio-log-line {
  margin: 0;
  opacity: 1;
  transition: opacity 0.6s ease;
  word-break: break-word;
}
.radio-log-line--idle {
  opacity: 0.72;
  font-style: italic;
}
.radio-log-line--tx {
  color: #d4e8b8;
}
.radio-log-line--wait {
  color: #c8d890;
  opacity: 0.85;
  font-style: italic;
}
.radio-log-line--rx {
  color: #8fd4a8;
}
.radio-log-line--fail {
  color: #c8a060;
}
.radio-log-line--busy {
  color: #b8c090;
}
.radio-log-line.is-fading {
  opacity: 0.28;
}
.radio-msgs,
.radio-bring {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}
.radio-msgs button,
.radio-bring button {
  appearance: none;
  margin: 0;
  padding: 7px 8px;
  border-radius: 4px;
  border: 1px solid rgba(90, 100, 110, 0.9);
  background: rgba(24, 30, 36, 0.78);
  color: rgba(230, 226, 218, 0.96);
  font: 500 11px/1.2 var(--font-ui);
  text-align: left;
  cursor: pointer;
}
.radio-msgs button:hover,
.radio-msgs button:focus-visible,
.radio-bring button:hover,
.radio-bring button:focus-visible {
  outline: none;
  border-color: var(--kit-accent-soft);
  background: rgba(42, 50, 56, 0.92);
}
.radio-msgs button.is-selected,
.radio-bring button.is-selected {
  border-color: var(--kit-accent-soft);
  background: rgba(58, 52, 38, 0.95);
  box-shadow: inset 0 0 0 1px rgba(180, 150, 90, 0.35);
  color: #f2e8d4;
}
.radio-msgs button:disabled,
.radio-bring button:disabled {
  opacity: 0.45;
  cursor: default;
}
.radio-bring-back {
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  color: #c8c2b6 !important;
}
.radio-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 4px;
}
.radio-ptt {
  appearance: none;
  flex: 1;
  margin: 0;
  padding: 10px 8px;
  border-radius: 6px;
  border: 1px solid #5a4030;
  background:
    linear-gradient(180deg, #8a5a3a 0%, #6a4028 45%, #4a2e1c 100%);
  color: #f0e4d4;
  font: 700 12px/1 var(--font-ui);
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.25),
    0 2px 0 #2a1a10;
}
.radio-ptt:hover,
.radio-ptt:focus-visible {
  outline: none;
  filter: brightness(1.08);
}
.radio-ptt.is-active,
.radio-hud.is-tx .radio-ptt {
  background:
    linear-gradient(180deg, #b07040 0%, #8a5028 50%, #5a3018 100%);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(240, 180, 80, 0.35);
}
.radio-knobs {
  display: flex;
  gap: 6px;
}
.radio-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #7a848c, #3a4248 55%, #2a3036 100%);
  border: 1px solid #1a1e22;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.4);
  position: relative;
}
.radio-knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  border-radius: 1px;
  background: #c8c4bc;
}
.radio-knob--ch::after {
  transform: rotate(40deg);
  transform-origin: bottom center;
}
.radio-grip {
  height: 6px;
  margin: 2px 4px 0;
  border-radius: 0 0 4px 4px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 4px,
      rgba(0, 0, 0, 0.22) 4px 6px
    );
  opacity: 0.7;
}
.radio-hud.is-tx .radio-sig {
  color: #f0c060;
}
.gps-backdrop {
  display: none;
}
.gps-panel {
  position: relative;
  box-sizing: border-box;
  padding: 7px 7px 6px;
  border-radius: 10px;
  background:
    linear-gradient(165deg, #4a535c 0%, var(--kit-plastic) 28%, var(--kit-plastic-mid) 62%, var(--kit-plastic-deep) 100%);
  border: 1px solid var(--kit-edge);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 var(--kit-edge-soft),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.gps-antenna,
.gps-side-btns,
.gps-grip {
  display: none;
}
.gps-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kit-muted);
}
.gps-top {
  padding: 1px 4px 5px;
}
.gps-bot {
  padding: 5px 4px 0;
  letter-spacing: 0.02em;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  color: var(--kit-text-dim);
  font-weight: 500;
  text-transform: none;
  font-family: var(--font-mono);
  font-size: 10px;
}
.gps-place {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c8c2b6;
  line-height: 1.25;
}
.gps-basemap {
  display: flex;
  width: 100%;
  gap: 4px;
  pointer-events: auto;
}
.gps-basemap button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 3px;
  min-height: 0;
  border: 1px solid #4a525a;
  border-radius: 3px;
  background: linear-gradient(180deg, #4a525a 0%, #343b42 100%);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  aspect-ratio: 44 / 30;
}
.gps-basemap button canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  max-width: none;
  aspect-ratio: 44 / 30;
  object-fit: cover;
  border-radius: 1px;
  pointer-events: none;
  image-rendering: auto;
  opacity: 0.9;
  filter: saturate(0.92) contrast(1.02);
}
.gps-basemap button:hover {
  border-color: #6a737c;
}
.gps-basemap button:hover canvas {
  opacity: 1;
}
.gps-basemap button.is-active {
  border-color: var(--kit-accent-soft);
  background: linear-gradient(180deg, #4a4438 0%, #353028 100%);
  box-shadow: inset 0 0 0 1px rgba(138, 118, 88, 0.35);
}
.gps-basemap button.is-active canvas {
  opacity: 1;
  filter: saturate(1) contrast(1.04);
}
.gps-brand {
  opacity: 0.95;
  color: #c8c2b6;
}
.gps-fix {
  color: #8fba9a;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin-left: auto;
}
.gps-close {
  display: none;
  margin: 0;
  padding: 0;
  width: 22px;
  height: 22px;
  border: 1px solid #5a636c;
  border-radius: 3px;
  background: linear-gradient(180deg, #4a525a 0%, #343b42 100%);
  color: #d4cec4;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}
.gps-close:hover {
  border-color: #7a848e;
  color: #fff;
}
.gps-screen {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: #c8d2da;
  box-shadow:
    inset 0 0 0 1px rgba(40, 48, 54, 0.35),
    0 0 0 2px #252a30;
  pointer-events: auto;
  cursor: zoom-in;
  line-height: 0;
}
.gps-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  pointer-events: auto;
}
.gps-zoom button {
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(60, 70, 78, 0.55);
  border-radius: 3px;
  background: rgba(232, 228, 220, 0.88);
  color: #3a4650;
  font: 600 16px/1 var(--font-ui);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.gps-zoom button:hover {
  background: #f2eee6;
}
/* Only the map canvas — never stretch; thumbs use rules above */
#gps #minimap {
  display: block;
  width: 220px !important;
  height: 220px !important;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: none;
  vertical-align: top;
}

/* Expanded GPS — handheld field unit (Garmin-like) */
#gps.is-expanded {
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  padding: 12px;
  box-sizing: border-box;
}
#gps.is-expanded .gps-backdrop {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 20, 0.62);
  cursor: pointer;
}
#gps.is-expanded .gps-panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 36px));
  max-height: calc(100vh - 24px);
  padding: 22px 18px 16px;
  border-radius: 32px 32px 40px 40px;
  border: 3px solid #12161a;
  background:
    radial-gradient(ellipse 110% 36% at 50% -4%, rgba(255, 255, 255, 0.09), transparent 52%),
    linear-gradient(168deg, #454e57 0%, #343c44 34%, #2a3138 68%, #1e2429 100%);
  box-shadow:
    0 26px 52px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    inset 0 -4px 8px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  overflow: visible;
}
#gps.is-expanded .gps-panel::before,
#gps.is-expanded .gps-panel::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #252b31;
  border: 1px solid #0e1215;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#gps.is-expanded .gps-panel::before {
  top: 14px;
  left: 12px;
}
#gps.is-expanded .gps-panel::after {
  top: 14px;
  right: 12px;
}
#gps.is-expanded .gps-antenna {
  display: block;
  position: absolute;
  top: -18px;
  left: 50%;
  width: 72px;
  height: 20px;
  margin-left: -36px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #555e67 0%, #2f363d 100%);
  border: 2px solid #12161a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 4px rgba(0, 0, 0, 0.35);
}
#gps.is-expanded .gps-antenna::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 10px;
  right: 10px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.35);
}
#gps.is-expanded .gps-antenna::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 10px;
  height: 16px;
  margin-left: -5px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #6a737c, #3a424a);
  border: 2px solid #12161a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
#gps.is-expanded .gps-side-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: absolute;
  right: -14px;
  top: 100px;
}
#gps.is-expanded .gps-side-btns span {
  display: block;
  width: 14px;
  height: 34px;
  border-radius: 0 7px 7px 0;
  background: linear-gradient(90deg, #1e2429, #4a535c 55%, #3a424a);
  border: 2px solid #12161a;
  border-left: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    2px 2px 4px rgba(0, 0, 0, 0.3);
}
#gps.is-expanded .gps-grip {
  display: block;
  height: 12px;
  margin: 12px 36px 2px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.15) 0 5px,
      rgba(0, 0, 0, 0.38) 5px 8px
    );
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  opacity: 0.7;
}
#gps.is-expanded .gps-top {
  padding: 4px 8px 12px;
  font-size: 11px;
}
#gps.is-expanded .gps-brand {
  letter-spacing: 0.14em;
  color: #e2dcd2;
  font-size: 12px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}
#gps.is-expanded .gps-screen {
  cursor: grab;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(40, 48, 54, 0.5),
    0 0 0 4px #101418,
    0 0 0 8px #2c343c,
    0 0 0 9px #151a1f,
    inset 0 3px 10px rgba(0, 0, 0, 0.18);
  background: #b7c4ce;
}
#gps.is-expanded .gps-screen.is-panning {
  cursor: grabbing;
}
#gps.is-expanded .gps-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
}
#gps.is-expanded .gps-zoom {
  display: flex;
}
#gps.is-expanded #minimap {
  /* Square screen: same clamp as syncCanvasSize() in minimap.js — never stretch */
  width: min(448px, calc(100vw - 72px), calc(100vh - 260px)) !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  max-width: 100%;
}
#gps.is-expanded .gps-bot {
  font-size: 11px;
  gap: 7px;
  padding: 10px 4px 0;
}
#gps.is-expanded .gps-place {
  font-size: 13px;
}
#gps.is-expanded .gps-basemap {
  gap: 5px;
}
#gps.is-expanded .gps-basemap button {
  border-radius: 4px;
  padding: 4px;
}

/* HUD trail */
.hud-trail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: min(420px, 48vw);
  text-align: right;
}

/* Expedition calendar + weather — beside profile avatar */
.expedition {
  position: relative;
  top: auto;
  left: auto;
  z-index: 9;
  pointer-events: none;
  flex-shrink: 0;
  padding-top: 2px;
}
.expedition-kit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  color: var(--kit-text);
  background: none;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}
.exp-cal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.15;
}
.exp-day {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--kit-text);
}
.exp-day-num {
  color: var(--kit-text);
}
.exp-day-total {
  font-size: 11px;
  font-weight: 500;
  color: rgba(232, 228, 220, 0.55);
}
.exp-date {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: rgba(232, 228, 220, 0.72);
}
.exp-clock {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: rgba(232, 228, 220, 0.58);
}
.exp-weather,
.exp-tod {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--kit-sea);
}
.exp-weather .wx-icon,
.exp-tod .tod-icon {
  display: none;
  width: 30px;
  height: 30px;
}
.exp-tod .tod-icon {
  width: 28px;
  height: 28px;
}
.expedition[data-weather="clear"] .wx-clear,
.expedition[data-weather="overcast"] .wx-overcast,
.expedition[data-weather="windy"] .wx-windy,
.expedition[data-weather="snow"] .wx-snow,
.expedition[data-weather="fog"] .wx-fog {
  display: block;
}
.expedition[data-tod="day"] .tod-day,
.expedition[data-tod="twilight"] .tod-twilight,
.expedition[data-tod="polar"] .tod-polar {
  display: block;
}
.expedition[data-weather="snow"] .exp-weather,
.expedition[data-weather="fog"] .exp-weather {
  color: #d0d6dc;
}
.expedition[data-weather="windy"] .exp-weather {
  color: #b7c7d2;
}
.expedition[data-weather="clear"] .exp-weather {
  color: #9ec4d8;
}
.expedition[data-weather="overcast"] .exp-weather {
  color: #aeb8c0;
}
.expedition[data-tod="day"] .exp-tod {
  color: #d4b878;
}
.expedition[data-tod="twilight"] .exp-tod {
  color: #c4a070;
}
.expedition[data-tod="polar"] .exp-tod {
  color: #8aabcc;
}

/* Soft end-of-expedition notice */
.exp-end {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 24, 28, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: auto;
}
.exp-end.is-visible {
  opacity: 1;
}
.exp-end.is-gone {
  opacity: 0;
  pointer-events: none;
}
.exp-end-panel {
  max-width: 360px;
  padding: 18px 20px 16px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, var(--kit-plastic) 0%, var(--kit-plastic-mid) 55%, var(--kit-plastic-deep) 100%);
  border: 1px solid var(--kit-edge);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 var(--kit-edge-soft);
  color: var(--kit-text);
}
.exp-end-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kit-muted);
}
.exp-end-panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.exp-end-panel p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--kit-text-dim);
}
.exp-end-ok {
  appearance: none;
  margin: 0;
  padding: 7px 14px;
  font: 600 12px/1.2 var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--kit-text);
  background: #454e56;
  border: 1px solid var(--kit-edge);
  border-radius: 3px;
  cursor: pointer;
}
.exp-end-ok:hover {
  background: #505960;
}
.exp-end-ok:focus-visible {
  outline: 2px solid var(--kit-sea);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .profile-bar {
    gap: 8px;
  }
  .expedition-kit {
    gap: 8px;
  }
  #profile .vitals {
    width: min(148px, calc(100vw - 24px));
    padding: 8px 9px 9px;
    gap: 7px;
  }
  .vitals-row-label {
    font-size: 8px;
    letter-spacing: 0.14em;
  }
  .vitals-row-pct {
    font-size: 9px;
  }
  .vitals-track {
    height: 7px;
  }
}

/* Top-center field-kit meters — action + fuel + breath share one cluster */
.hud-meters {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: min(280px, 62vw);
  max-width: min(420px, 92vw);
  pointer-events: none;
}
/* Action — painted field note / clipboard strip */
.hud-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 10px 14px 11px 15px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #b8b0a4;
  background:
    linear-gradient(180deg, #f4f0e8 0%, var(--kit-paper) 48%, #e0d8cc 100%);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--kit-ink);
}
/* display:flex above beats UA [hidden]; match .hud-meter */
.hud-action[hidden] {
  display: none !important;
}
.hud-action::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #a89068 0%, #6b5a42 100%);
}
.hud-action.is-pc {
  border-color: #9aa8b0;
  animation: hud-pc-pulse 1.8s ease-in-out infinite;
}
.hud-action.is-pc::before {
  background: linear-gradient(180deg, #7a98a8 0%, #4a6878 100%);
}
.hud-action.is-pc .hud-action-kicker {
  color: #4a6878;
}
.hud-action.is-inv {
  border-color: #c4a878;
  animation: hud-inv-pulse 1.8s ease-in-out infinite;
}
.hud-action.is-inv::before {
  background: linear-gradient(180deg, #c4a060 0%, #8a6a3a 100%);
}
.hud-action.is-inv .hud-action-kicker {
  color: #8a6230;
}
.hud-action.is-aws {
  border-color: #9ab09a;
  animation: hud-aws-pulse 1.8s ease-in-out infinite;
}
.hud-action.is-aws::before {
  background: linear-gradient(180deg, #7a9a78 0%, #4a6a4e 100%);
}
.hud-action.is-aws .hud-action-kicker {
  color: #4a6a4e;
}
@keyframes hud-aws-pulse {
  0%,
  100% {
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(90, 120, 90, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
}
@keyframes hud-inv-pulse {
  0%,
  100% {
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(160, 120, 60, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
}
@keyframes hud-pc-pulse {
  0%,
  100% {
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(90, 120, 140, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
}
.hud-action-kicker {
  padding-left: 4px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a6258;
}
.hud-action-text {
  padding-left: 4px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--kit-ink);
  text-shadow: none;
}
.hud-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--kit-text);
  border-radius: 3px;
  background:
    linear-gradient(180deg, var(--kit-plastic) 0%, var(--kit-plastic-mid) 55%, var(--kit-plastic-deep) 100%);
  border: 1px solid var(--kit-edge);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 var(--kit-edge-soft);
}
.hud-meter[hidden] {
  display: none !important;
}
.hud-meter-label {
  flex-shrink: 0;
  min-width: 3.4em;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kit-muted);
}
.hud-meter-track {
  flex: 1 1 auto;
  min-width: 88px;
  height: 8px;
  border-radius: 2px;
  background: #1f2429;
  border: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.hud-meter-fill {
  height: 100%;
  width: 100%;
  border-radius: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: width 0.1s linear, background 0.22s ease;
}
.hud-meter-pct {
  flex-shrink: 0;
  min-width: 2.8em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 500;
  color: var(--kit-text-dim);
}

/* Stacked warmth + chill — painted field card (gouache / enamel) */
.vitals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 9px 10px 10px;
  border-radius: 4px;
  border: 1px solid #b8b0a4;
  background:
    linear-gradient(180deg, #f3eee6 0%, var(--kit-paper) 52%, #ddd5c8 100%);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: var(--kit-ink);
}
.vitals-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.vitals-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.vitals-row-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a6258;
}
.vitals-row-pct {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #5a5248;
}
.vitals-row--warm .vitals-row-label {
  color: #8a4a28;
}
.vitals-row--cold .vitals-row-label {
  color: #4a6878;
}
.vitals-track {
  position: relative;
  height: 9px;
  border-radius: 2px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #cfc6b8 0%, #e8e0d4 55%, #d4ccbe 100%);
  border: 1px solid #a89e90;
  box-shadow: inset 0 1px 2px rgba(80, 70, 55, 0.22);
}
.vitals-fill {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 0%;
  border-radius: 1px;
  transition: width 0.16s linear, background 0.25s ease;
}
.vitals-warm-fill {
  background:
    linear-gradient(180deg, #e0a070 0%, #c06a38 45%, #8a4228 100%);
  box-shadow: inset 0 1px 0 rgba(255, 230, 200, 0.35);
}
.vitals-cold-fill {
  background:
    linear-gradient(180deg, #a8c0d0 0%, #6a8ea8 48%, #4a6878 100%);
  box-shadow: inset 0 1px 0 rgba(230, 240, 245, 0.35);
}
.vitals-ticks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(20% - 0.5px),
      rgba(60, 50, 40, 0.18) calc(20% - 0.5px),
      rgba(60, 50, 40, 0.18) 20%
    );
}
.vitals.is-low-warmth .vitals-warm-fill {
  background:
    linear-gradient(180deg, #d08060 0%, #a04830 50%, #702818 100%);
}
.vitals.is-freezing .vitals-row--cold .vitals-row-label,
.vitals.is-freezing .vitals-row--cold .vitals-row-pct {
  color: #3a5a6e;
}
.vitals.is-freezing .vitals-cold-fill {
  background:
    linear-gradient(180deg, #b8d0e0 0%, #7aa0b8 48%, #4a7088 100%);
}
.vitals.is-critical {
  border-color: #b07068;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(160, 70, 55, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.vitals.is-critical .vitals-row--warm .vitals-row-label,
.vitals.is-critical .vitals-row--warm .vitals-row-pct {
  color: #8a3028;
  animation: vitals-pulse 1.1s ease-in-out infinite;
}
.vitals.is-critical .vitals-warm-fill {
  background:
    linear-gradient(180deg, #d07060 0%, #a03830 55%, #681c18 100%);
}
@keyframes vitals-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Breath — same chip family as fuel */
.stamina {
  opacity: 1;
  transition: opacity 0.4s ease;
}
.stamina.is-fading {
  opacity: 0;
}
.stamina-fill {
  background: linear-gradient(180deg, #7d9180 0%, var(--kit-fix) 52%, #2f5340 100%);
}
.stamina.is-sprinting .stamina-fill {
  background: linear-gradient(180deg, #889676 0%, #556848 52%, #3a4a32 100%);
}
.stamina.is-low .stamina-fill {
  background: linear-gradient(180deg, #a89068 0%, var(--kit-accent-soft) 52%, #5a4a32 100%);
}
.stamina.is-winded .stamina-fill {
  background: linear-gradient(180deg, #9a7a68 0%, #6b4a3a 52%, #4a3228 100%);
}
.stamina.is-winded .stamina-label {
  color: #b8a090;
}

/* Vehicle fuel (Člun / ATV) */
.atv-fuel-bar {
  background: linear-gradient(180deg, #8a9a86 0%, #6a7e68 45%, #4e6150 100%);
}
.atv-fuel.is-low .atv-fuel-bar {
  background: linear-gradient(180deg, #c4a060 0%, #8a6a3a 55%, #5a4628 100%);
}
.atv-fuel.is-empty .atv-fuel-bar {
  background: linear-gradient(180deg, #8a5858 0%, #6a4040 100%);
}

/* First-aid popover — above hotbar */
.kit-menu {
  position: fixed;
  right: 14px;
  bottom: 108px;
  z-index: 13;
  width: 168px;
  box-sizing: border-box;
  padding: 7px 8px 8px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, var(--kit-plastic) 0%, var(--kit-plastic-mid) 55%, var(--kit-plastic-deep) 100%);
  border: 1px solid var(--kit-edge);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 var(--kit-edge-soft);
  pointer-events: auto;
  color: var(--kit-text);
  text-align: left;
}
.kit-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kit-muted);
}
.kit-menu-close {
  appearance: none;
  margin: 0;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--kit-muted);
  font: 600 14px/1 var(--font-ui);
  cursor: pointer;
}
.kit-menu-close:hover {
  color: var(--kit-text);
}
.kit-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kit-menu-actions button {
  appearance: none;
  margin: 0;
  padding: 7px 8px;
  border-radius: 3px;
  border: 1px solid rgba(90, 100, 110, 0.85);
  background: rgba(28, 34, 40, 0.72);
  color: rgba(220, 216, 208, 0.95);
  font: 500 11px/1.2 var(--font-ui);
  text-align: left;
  cursor: pointer;
}
.kit-menu-actions button:hover,
.kit-menu-actions button:focus-visible {
  outline: none;
  border-color: var(--kit-accent-soft);
  background: rgba(40, 48, 54, 0.88);
}

/* Bottom-right backpack hotbar — high contrast slots */
.inv-hotbar {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 12;
  box-sizing: border-box;
  padding: 8px 8px 7px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(22, 26, 30, 0.88) 0%, rgba(14, 16, 18, 0.92) 100%);
  border: 1px solid rgba(180, 190, 200, 0.28);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: auto;
  color: var(--kit-text);
  text-align: right;
}
.inv-hotbar.is-pulse {
  animation: inv-pulse 0.55s ease;
}
@keyframes inv-pulse {
  0%, 100% { filter: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
  40% {
    filter: brightness(1.12);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.45),
      0 0 0 2px rgba(120, 200, 160, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}
.inv-detail {
  margin: 0 2px 7px;
  min-height: 2.5em;
  font-size: 11px;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}
.inv-detail strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f0e6d2;
  font-family: var(--font-ui);
}
.inv-detail p {
  margin: 0;
  opacity: 1;
  color: rgba(220, 216, 208, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(380px, 46vw);
  margin-left: auto;
}
.inv-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}
.inv-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 62px;
  min-height: 58px;
  margin: 0;
  padding: 6px 4px 5px;
  border-radius: 6px;
  border: 1.5px solid rgba(160, 170, 180, 0.42);
  background:
    linear-gradient(180deg, rgba(48, 54, 60, 0.95) 0%, rgba(28, 32, 36, 0.98) 100%);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.inv-slot:hover,
.inv-slot:focus-visible {
  outline: none;
  border-color: rgba(220, 228, 235, 0.7);
  background:
    linear-gradient(180deg, rgba(58, 66, 74, 0.98) 0%, rgba(36, 42, 48, 1) 100%);
}
.inv-slot.is-selected {
  border-color: rgba(160, 220, 170, 0.85);
  background:
    linear-gradient(180deg, rgba(52, 68, 54, 0.98) 0%, rgba(32, 42, 34, 1) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(140, 200, 150, 0.35),
    0 0 0 1px rgba(100, 180, 120, 0.25);
}
.inv-slot--action.is-selected {
  border-color: rgba(170, 230, 185, 0.95);
}
.inv-slot.is-active {
  border-color: rgba(90, 210, 230, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(80, 190, 210, 0.4),
    0 0 10px rgba(60, 180, 200, 0.28);
}
.inv-slot.is-active.is-selected {
  border-color: rgba(120, 235, 200, 1);
}
.inv-slot--carry {
  border-color: rgba(210, 170, 60, 0.75);
  background:
    linear-gradient(180deg, rgba(72, 62, 36, 0.98) 0%, rgba(42, 36, 22, 1) 100%);
}
.inv-slot--carry.is-selected {
  border-color: rgba(230, 190, 70, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(201, 162, 39, 0.45),
    0 0 8px rgba(201, 162, 39, 0.22);
}
/* Per-item accent strip at top of slot */
.inv-slot--bags { border-top: 3px solid #5cb88a; }
.inv-slot--gps { border-top: 3px solid #5ec8e0; }
.inv-slot--radio { border-top: 3px solid #e07030; }
.inv-slot--thermos { border-top: 3px solid #e05050; }
.inv-slot--firstaid { border-top: 3px solid #f0f2f4; }
.inv-slot--fuelcan { border-top: 3px solid #c9a227; }
.inv-slot-label {
  font-size: 9px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #f2efe8;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.inv-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 5px;
  background: rgba(8, 10, 12, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.inv-glyph {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}
.inv-icon {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.inv-icon::before,
.inv-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}
.inv-icon--notebook::before {
  inset: 2px 4px;
  background: #c4a574;
  border: 1px solid #8a6b3e;
  border-radius: 1px;
}
.inv-icon--notebook::after {
  top: 6px;
  left: 8px;
  right: 8px;
  height: 1px;
  background: #5c4a2e;
  box-shadow: 0 4px 0 #5c4a2e, 0 8px 0 #5c4a2e;
}
.inv-icon--bags::before {
  inset: 6px 5px 4px;
  background: #7a9a88;
  border-radius: 2px 2px 4px 4px;
}
.inv-icon--bags::after {
  top: 3px;
  left: 9px;
  right: 9px;
  height: 5px;
  border: 2px solid #5a7a68;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}
.inv-icon--gps::before {
  inset: 3px 6px;
  background: #3a4248;
  border: 1px solid #6a7278;
  border-radius: 2px;
}
.inv-icon--gps::after {
  top: 8px;
  left: 10px;
  right: 10px;
  bottom: 8px;
  background: #a8b8c0;
  border-radius: 1px;
}
.inv-icon--thermos::before {
  top: 2px;
  left: 9px;
  right: 9px;
  bottom: 2px;
  background: #4a5a68;
  border-radius: 3px;
}
.inv-icon--thermos::after {
  top: 0;
  left: 11px;
  right: 11px;
  height: 5px;
  background: #c0c8d0;
  border-radius: 2px 2px 0 0;
}
.inv-icon--radio::before {
  inset: 5px 4px 4px;
  background: #2e3a44;
  border: 1px solid #6a7a88;
  border-radius: 2px;
}
.inv-icon--radio::after {
  top: 1px;
  left: 13px;
  width: 2px;
  height: 8px;
  background: #8a7658;
  box-shadow: 3px 2px 0 -0.5px #8a7658, -3px 2px 0 -0.5px #8a7658;
}
.inv-icon--gloves::before {
  top: 6px;
  left: 3px;
  width: 10px;
  height: 16px;
  background: #d4a574;
  border-radius: 4px 4px 2px 2px;
}
.inv-icon--gloves::after {
  top: 6px;
  right: 3px;
  width: 10px;
  height: 16px;
  background: #c49464;
  border-radius: 4px 4px 2px 2px;
}
.inv-icon--iceaxe::before {
  top: 2px;
  left: 13px;
  width: 2px;
  height: 24px;
  background: #9aa4b0;
  transform: rotate(-18deg);
  transform-origin: bottom center;
}
.inv-icon--iceaxe::after {
  top: 3px;
  left: 6px;
  width: 14px;
  height: 6px;
  background: #5a6570;
  border-radius: 1px 4px 1px 1px;
  transform: rotate(-18deg);
}
.inv-icon--shovel::before {
  top: 2px;
  left: 13px;
  width: 2px;
  height: 18px;
  background: #8a9098;
}
.inv-icon--shovel::after {
  bottom: 2px;
  left: 8px;
  width: 12px;
  height: 10px;
  background: #6a7884;
  border-radius: 1px 1px 3px 3px;
}
.inv-icon--firstaid::before {
  inset: 4px;
  background: #f4f6f8;
  border-radius: 2px;
}
.inv-icon--firstaid::after {
  top: 11px;
  left: 8px;
  right: 8px;
  height: 6px;
  background: #c62828;
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%);
}
.inv-icon--bottle::before {
  top: 5px;
  left: 9px;
  right: 9px;
  bottom: 2px;
  background: #5a8aaa;
  border-radius: 2px 2px 4px 4px;
  opacity: 0.85;
}
.inv-icon--bottle::after {
  top: 1px;
  left: 11px;
  right: 11px;
  height: 6px;
  background: #2a3a44;
  border-radius: 1px;
}
.inv-icon--camera::before {
  top: 8px;
  left: 3px;
  right: 3px;
  bottom: 4px;
  background: #2a3038;
  border: 1px solid #6a7480;
  border-radius: 2px;
}
.inv-icon--camera::after {
  top: 10px;
  left: 9px;
  width: 10px;
  height: 10px;
  border: 2px solid #6a8a78;
  border-radius: 50%;
  box-shadow: -8px -4px 0 -3px #c0c8d0;
}
.inv-icon--fuelcan::before {
  top: 4px;
  left: 6px;
  right: 6px;
  bottom: 2px;
  background: #3d6b3a;
  border-radius: 2px;
  box-shadow: inset 0 -10px 0 -7px #c9a227;
}
.inv-icon--fuelcan::after {
  top: 1px;
  left: 9px;
  width: 6px;
  height: 5px;
  background: #1e2420;
  border-radius: 1px;
  box-shadow: 7px 2px 0 0 #1a1a1a;
}

/* Comms-room PC — physical monitor + desktop OS (Windows-like) */
.pc-monitor {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px 16px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(20, 28, 36, 0.55), rgba(6, 8, 10, 0.88));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.pc-monitor[hidden] {
  display: none !important;
}
.pc-monitor.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.pc-leave-hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 210, 220, 0.72);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.pc-bezel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1100px, calc(100vw - 20px));
  max-height: calc(100vh - 40px);
}
.pc-bezel-frame {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 72px);
  padding: 12px 14px 10px;
  border-radius: 12px 12px 8px 8px;
  background:
    linear-gradient(160deg, #4a525c 0%, #2e343c 38%, #1a1e24 100%);
  border: 1px solid #6a727c;
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 6px rgba(0, 0, 0, 0.35);
}
.pc-bezel-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a949e;
}
.pc-power-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ecf6a;
  box-shadow: 0 0 6px rgba(62, 207, 106, 0.75), 0 0 0 2px rgba(62, 207, 106, 0.18);
  flex-shrink: 0;
}
.pc-glass {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 3px;
  overflow: hidden;
  background: #0a1016;
  border: 3px solid #0c1014;
  box-shadow:
    inset 0 0 0 1px rgba(80, 100, 120, 0.35),
    inset 0 0 40px rgba(0, 0, 0, 0.55);
}
.pc-scan {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.05;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.55) 2px,
    rgba(0, 0, 0, 0.55) 3px
  );
}
.pc-glare {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.07) 0%, transparent 38%, transparent 62%, rgba(120, 160, 200, 0.03) 100%);
}
.pc-desktop {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: min(720px, calc(100vh - 110px));
  max-height: min(860px, calc(100vh - 96px));
  height: min(820px, calc(100vh - 100px));
  display: flex;
  flex-direction: column;
  background: #1a2834;
}
.pc-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(12, 24, 36, 0.18) 0%, rgba(8, 14, 20, 0.35) 100%),
    url("../assets/mendel-ice.png") center / cover no-repeat;
  pointer-events: none;
}
.pc-desk {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.pc-windows {
  position: absolute;
  inset: 14px 16px 14px;
  z-index: 3;
  pointer-events: none;
}
.pc-win {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #eceff2;
  border: 1px solid #1e2a36;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #1a2228;
}
.pc-win[hidden] {
  display: none !important;
}
.pc-win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 4px 4px 4px 8px;
  background: linear-gradient(180deg, #3a78c8 0%, #1f4f96 55%, #163a72 100%);
  border-bottom: 1px solid #0e2a52;
  color: #f4f8fc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  user-select: none;
}
.pc-win-ico {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.pc-win-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-win-ctrls { display: flex; gap: 2px; }
.pc-win-btn {
  appearance: none;
  width: 28px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 0;
  background: linear-gradient(180deg, #e8eef4, #b0bcc8);
  color: #1a2228;
  font: 600 13px/1 var(--font-ui);
  cursor: pointer;
}
.pc-win-btn:hover { filter: brightness(1.08); }
.pc-win-close {
  background: linear-gradient(180deg, #e87868, #b03830);
  color: #fff;
  border-color: #702820;
}
.pc-win-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #f6f8fa 0%, #e8ecf0 100%);
}
.pc-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a7080;
}
.pc-forecast {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(132px, 0.72fr);
  gap: 14px 16px;
  align-items: start;
}
.pc-fsec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.pc-fsec-h {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #3a5a48;
}
.pc-frows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: min(420px, 58vh);
  overflow-y: auto;
}
.pc-frow {
  display: grid;
  grid-template-columns: 3.6em 22px 1fr auto;
  align-items: center;
  gap: 6px 8px;
  padding: 6px 9px;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #c8d0d8;
}
.pc-frow.is-now {
  background: #e8f2ea;
  border-color: #8ab090;
}
.pc-frow.is-dusk {
  background: #e8ecf2;
  border-color: #9aa8b8;
}
.pc-frow.is-dark {
  background: #dce2ea;
  border-color: #7a8898;
}
.pc-fwhen {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #5a6a78;
}
.pc-flabel {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1e282e;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.pc-flight {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a5a6a;
}
.pc-frow.is-dark .pc-flight {
  color: #2a3440;
}
.pc-fmeta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: #5a6a78;
  text-align: right;
  line-height: 1.3;
  white-space: nowrap;
}
.pc-fempty {
  margin: 0;
  padding: 8px 4px;
  font-size: 12px;
  color: #6a7880;
}
.pc-fdays {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pc-daycard {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-areas:
    "ico date"
    "ico label"
    "ico temp";
  column-gap: 8px;
  row-gap: 1px;
  align-items: center;
  padding: 8px 9px;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #c8d0d8;
}
.pc-daycard .pc-wx-ico {
  grid-area: ico;
  width: 26px;
  height: 26px;
}
.pc-daycard-date {
  grid-area: date;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #3a4a58;
}
.pc-daycard-label {
  grid-area: label;
  font-size: 12px;
  font-weight: 600;
  color: #1e282e;
  line-height: 1.2;
}
.pc-daycard-temp {
  grid-area: temp;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #5a6a78;
}
/* Compact weather icons (CSS shapes) */
.pc-wx-ico {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #8a98a4;
}
.pc-wx-ico[data-wx="clear"] {
  background:
    radial-gradient(circle at 50% 50%, #ffe8a8 0 28%, transparent 29%),
    radial-gradient(circle at 50% 50%, #f0c050 0 42%, transparent 43%),
    #5a9ec8;
}
.pc-wx-ico[data-wx="overcast"] {
  background:
    radial-gradient(circle at 32% 58%, #d8e0e8 0 34%, transparent 35%),
    radial-gradient(circle at 62% 48%, #c0cad4 0 38%, transparent 39%),
    #6a7888;
}
.pc-wx-ico[data-wx="windy"] {
  background:
    linear-gradient(90deg, transparent 0 18%, #c8d8e4 18% 22%, transparent 22% 38%, #b0c4d4 38% 42%, transparent 42% 58%, #c8d8e4 58% 62%, transparent 62%),
    #4a7088;
}
.pc-wx-ico[data-wx="snow"] {
  background:
    radial-gradient(circle at 30% 30%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 70% 40%, #fff 0 10%, transparent 11%),
    radial-gradient(circle at 45% 70%, #fff 0 11%, transparent 12%),
    radial-gradient(circle at 75% 75%, #e8f0f8 0 9%, transparent 10%),
    #8aa0b4;
}
.pc-wx-ico[data-wx="fog"] {
  background:
    linear-gradient(180deg, #9aa4ac 0 28%, #c4ccd4 28% 38%, #9aa4ac 38% 58%, #d0d6dc 58% 68%, #9aa4ac 68%);
}
@media (max-width: 720px) {
  .pc-forecast {
    grid-template-columns: 1fr;
  }
}
.pc-icon-wx {
  background:
    radial-gradient(circle at 70% 30%, #fff8e8 0 18%, transparent 19%),
    linear-gradient(160deg, #5a9ec8 0%, #3a6a90 100%);
}
.pc-icon-exp {
  background:
    linear-gradient(180deg, #c8d0d8 0 35%, #6a7a88 35% 55%, #d4a060 55% 70%, #4a6a58 70%);
}
.pc-icon-aws {
  background:
    linear-gradient(135deg, #3a8a6a 0%, #2a5a48 55%, #1a3a30 100%);
}
.pc-icon-rad {
  background:
    radial-gradient(circle at 50% 55%, #e8c040 0 12%, transparent 13%),
    linear-gradient(160deg, #4a545e 0%, #2a3038 100%);
}
.pc-expedition h3,
.pc-task-safety-title {
  margin: 12px 0 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a5a48;
}
.pc-expedition ul,
.pc-task-safety {
  margin: 0;
  padding: 0 0 0 1.1em;
  font-size: 13px;
  line-height: 1.45;
  color: #2a343c;
}
.pc-expedition li { margin-bottom: 3px; }
.pc-exp-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #c0c8d0;
  font-size: 13px;
  color: #4a5a68;
}
.pc-exp-head strong {
  font-size: 17px;
  font-weight: 700;
  color: #1a2228;
}
.pc-exp-head b {
  color: #2a5a40;
  font-weight: 700;
}

/* Expedition task board — left vědecké / right technické · kontinuální / jednotlivé */
.pc-task-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0 0;
  padding: 7px 10px;
  background: #eef2f5;
  border: 1px solid #c8d0d8;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4a5a68;
}
.pc-task-leg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pc-task-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #8a98a4;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.pc-task-leg[data-st="ok"] .pc-task-dot,
.pc-task-row[data-st="ok"] .pc-task-dot { background: #2f9e4a; }
.pc-task-leg[data-st="check"] .pc-task-dot,
.pc-task-row[data-st="check"] .pc-task-dot { background: #d48a18; }
.pc-task-leg[data-st="fail"] .pc-task-dot,
.pc-task-row[data-st="fail"] .pc-task-dot { background: #c43030; }
.pc-task-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  align-items: start;
  margin-top: 12px;
}
.pc-task-cat {
  margin: 0;
  padding: 10px 11px 8px;
  background: #f7f9fb;
  border: 1px solid #c4ccd4;
  border-radius: 2px;
  min-width: 0;
}
.pc-task-cat[data-cat="science"] {
  border-top: 3px solid #2a6a48;
}
.pc-task-cat[data-cat="tech"] {
  border-top: 3px solid #3a5a78;
}
.pc-task-cat-title {
  margin: 0 0 10px;
  padding: 0 0 6px;
  border-bottom: 1px solid #d0d8e0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a3a2a;
  line-height: 1.2;
}
.pc-task-cat[data-cat="tech"] .pc-task-cat-title {
  color: #1a3048;
}
.pc-task-group {
  margin-bottom: 12px;
}
.pc-task-group:last-child {
  margin-bottom: 0;
}
.pc-task-group-title {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6a78;
}
.pc-task-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pc-task-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 6px 8px;
  align-items: start;
  margin: 0 0 5px;
  padding: 6px 7px 6px 6px;
  background: #fff;
  border: 1px solid #d4dce4;
  border-radius: 2px;
}
.pc-task-row:last-child { margin-bottom: 0; }
.pc-task-row .pc-task-dot { margin-top: 4px; }
.pc-task-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pc-task-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1a242c;
  line-height: 1.3;
}
.pc-task-note {
  font-size: 11px;
  color: #5a6a78;
  line-height: 1.35;
}
.pc-task-st {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
  color: #5a6a78;
}
.pc-task-row[data-st="ok"] .pc-task-st { color: #1e7a35; }
.pc-task-row[data-st="check"] .pc-task-st { color: #a86810; }
.pc-task-row[data-st="fail"] .pc-task-st { color: #a02020; }
.pc-task-safety-title {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #c8d0d8;
}
.pc-task-safety { margin-bottom: 2px; }

.pc-mgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 7px;
}
.pc-mcell {
  padding: 10px 11px 9px;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #c4ccd4;
}
.pc-mlabel {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a7a88;
}
.pc-mcell strong {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1a242c;
}
.pc-mnote {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #5a6a78;
}
/* Shared MendelOS charts (AWS history + inverter) */
.pc-chart-h {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a7080;
}
.pc-chart-span {
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
  color: #3a5a48;
}
.pc-charts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 7px;
}
.pc-charts-meteo {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.pc-chart {
  position: relative;
  padding: 8px 10px 6px;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #c4ccd4;
}
.pc-chart.is-tall {
  padding: 10px 12px 8px;
}
.pc-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.pc-chart-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a7a88;
}
.pc-chart-live {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1a242c;
}
.pc-chart-svg {
  display: block;
  width: 100%;
  height: 56px;
}
.pc-chart-svg.is-tall {
  height: 104px;
}
.pc-chart-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #8a98a4;
}
.pc-chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  font-size: 12px;
  color: #8a98a4;
}
.pc-chart-empty.is-tall {
  height: 104px;
}
.pc-comms-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}
.pc-comms .pc-link {
  padding: 14px 12px;
}
.pc-link-st {
  display: inline-block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pc-link-st.is-ok { color: #1f8a4c; }
.pc-link-st.is-warn { color: #c47a12; }
.pc-link-st.is-bad { color: #c0392b; }
.pc-taskbar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex-shrink: 0;
  min-height: 36px;
  padding: 3px 6px 3px 4px;
  background: linear-gradient(180deg, #2456a8 0%, #1a3f86 40%, #12306a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 11px;
  color: #e8eef6;
}
.pc-start {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0 12px 0 8px;
  border: 1px solid #0e2a18;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, #5cbc6a, #2e8a3e 55%, #247034);
  font: 700 12px/1 var(--font-ui);
  letter-spacing: 0.03em;
  color: #f4fff6;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  cursor: default;
}
.pc-start-mark {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, #f0f4f8 0 46%, transparent 47%),
    linear-gradient(0deg, #f0f4f8 0 46%, transparent 47%),
    #2a6a38;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.pc-tasks {
  display: flex;
  flex: 1;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
  padding: 1px 0;
}
button.pc-task {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0 10px 0 7px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(90, 120, 170, 0.55), rgba(30, 55, 100, 0.75));
  color: #f0f4fa;
  font: 600 11px/1.2 var(--font-ui);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
button.pc-task:hover {
  filter: brightness(1.08);
}
button.pc-task.is-open {
  border-color: rgba(180, 210, 255, 0.35);
}
button.pc-task.is-active {
  background: linear-gradient(180deg, rgba(120, 160, 210, 0.75), rgba(40, 70, 120, 0.9));
  border-color: #a8c4e8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
button.pc-task.is-min {
  opacity: 0.85;
  border-style: dashed;
}
.pc-task-ico {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}
.pc-tray {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  margin-left: 4px;
  padding: 2px 10px 2px 12px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 2px;
  background: rgba(8, 20, 48, 0.35);
  font-family: var(--font-mono);
  color: #e8eef6;
  white-space: nowrap;
  line-height: 1.15;
  min-width: 5.5em;
}
.pc-clock {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #f2f6fc;
}
.pc-date {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #b8c8dc;
}
.pc-bezel-chin {
  height: 10px;
  margin-top: 8px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #2a3038, #1a1e24);
}
.pc-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -2px;
}
.pc-stand-neck {
  width: 56px;
  height: 18px;
  background: linear-gradient(90deg, #2a3038, #4a525c 40%, #2a3038);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}
.pc-stand-base {
  width: 180px;
  height: 10px;
  margin-top: -1px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #3a424a, #1e2428);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
@media (max-width: 720px) {
  .pc-leave-hint { font-size: 10px; }
  .pc-bezel { width: calc(100vw - 10px); }
  .pc-bezel-frame {
    padding: 8px 8px 6px;
    border-radius: 10px;
  }
  .pc-desktop {
    min-height: 480px;
    height: min(720px, calc(100vh - 80px));
    max-height: calc(100vh - 72px);
  }
  .pc-windows { inset: 8px; }
  button.pc-task span:not(.pc-task-ico) { display: none; }
  button.pc-task { max-width: 40px; padding: 0 8px; }
  .pc-stand { display: none; }
  .pc-task-board {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Electro hybrid inverter — painted clipboard / field binder */
.inv-monitor {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(90, 78, 58, 0.35), transparent 58%),
    linear-gradient(180deg, rgba(42, 46, 48, 0.78) 0%, rgba(18, 20, 22, 0.88) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.inv-monitor[hidden] {
  display: none !important;
}
.inv-monitor.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.inv-leave-hint {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #ebe4d6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.inv-panel {
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 16px 18px 14px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #f4f0e8 0%, var(--kit-paper) 48%, #ddd4c6 100%);
  border: 1px solid #b8b0a4;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--kit-ink);
}
.inv-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #c8bfb0;
}
.inv-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a4a32;
}
.inv-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7aaa6a 0%, #4a7a48 100%);
  border: 1px solid #3a5a38;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.inv-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6a6258;
}
.inv-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inv-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.inv-kpi {
  padding: 10px 12px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f7f3ea 0%, #ebe4d6 100%);
  border: 1px solid #c8bfb0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.inv-kpi.is-pos strong {
  color: #1a8a4a;
}
.inv-kpi.is-neg strong {
  color: #c04020;
}
.inv-klabel {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a7a88;
}
.inv-kpi strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1a242c;
}
.inv-kmeta {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #6a7a88;
}
.inv-batt {
  padding: 12px 14px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f7f3ea 0%, #ebe4d6 100%);
  border: 1px solid #c8bfb0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.inv-batt-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #3a4a58;
}
.inv-batt-head strong {
  font-variant-numeric: tabular-nums;
  color: #1a242c;
}
.inv-batt-bar {
  height: 14px;
  border-radius: 2px;
  background: #d8e0e8;
  overflow: hidden;
}
.inv-batt-fill {
  height: 100%;
  background: linear-gradient(90deg, #c45a12, #e8b040 55%, #2ecc71);
  transition: width 0.35s ease;
}
.inv-batt-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #6a7a88;
}
.inv-charts .pc-chart {
  background: #fff;
}
.inv-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: #8a949e;
}
@media (max-width: 720px) {
  .inv-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .inv-panel {
    padding: 12px;
  }
}

/* Outdoor AWS meteo service — painted field clipboard / checklist */
.aws-service {
  position: fixed;
  inset: 0;
  z-index: 36;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 36%, rgba(78, 88, 92, 0.32), transparent 58%),
    linear-gradient(180deg, rgba(42, 46, 48, 0.78) 0%, rgba(18, 20, 22, 0.88) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.aws-service[hidden] {
  display: none !important;
}
.aws-service.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.aws-leave-hint {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: #ebe4d6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.aws-panel {
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 16px 18px 14px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #f4f0e8 0%, var(--kit-paper) 48%, #ddd4c6 100%);
  border: 1px solid #b8b0a4;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--kit-ink);
}
.aws-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #c8bfb0;
}
.aws-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4a5a48;
}
.aws-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7aaa6a 0%, #4a7a48 100%);
  border: 1px solid #3a5a38;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.aws-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6a6258;
}
.aws-layout {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) minmax(140px, 200px);
  gap: 14px;
  align-items: stretch;
}
.aws-schematic {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #e8e2d6 0%, #d8d0c2 100%);
  border: 1px solid #b8b0a4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.aws-mast-svg {
  width: 100%;
  max-width: 140px;
  height: auto;
  color: #5a6258;
}
.aws-mast-pole {
  stroke: #6a7268;
  stroke-width: 6;
  stroke-linecap: round;
}
.aws-mast-base {
  fill: #7a8278;
}
.aws-hotspot {
  cursor: pointer;
  outline: none;
}
.aws-hotspot .aws-hit {
  fill: transparent;
  stroke: transparent;
}
.aws-hotspot .aws-shape,
.aws-hotspot .aws-dot,
.aws-hotspot .aws-cable-line {
  fill: #6a7268;
  stroke: #6a7268;
  stroke-width: 3;
  transition: fill 0.2s ease, stroke 0.2s ease;
  filter: none;
}
.aws-hotspot .aws-cable-line {
  fill: none;
}
.aws-hotspot[data-status="ok"] .aws-shape,
.aws-hotspot[data-status="ok"] .aws-dot,
.aws-hotspot[data-status="ok"] .aws-cable-line {
  fill: #4a7a48;
  stroke: #4a7a48;
  filter: none;
}
.aws-hotspot[data-status="ok"] .aws-cable-line {
  fill: none;
}
.aws-hotspot[data-status="check"] .aws-shape,
.aws-hotspot[data-status="check"] .aws-dot,
.aws-hotspot[data-status="check"] .aws-cable-line {
  fill: #b88828;
  stroke: #b88828;
  filter: none;
}
.aws-hotspot[data-status="check"] .aws-cable-line {
  fill: none;
}
.aws-hotspot[data-status="broken"] .aws-shape,
.aws-hotspot[data-status="broken"] .aws-dot,
.aws-hotspot[data-status="broken"] .aws-cable-line {
  fill: #a04030;
  stroke: #a04030;
  filter: none;
}
.aws-hotspot[data-status="broken"] .aws-cable-line {
  fill: none;
}
.aws-hotspot.is-selected .aws-hit {
  fill: rgba(90, 70, 40, 0.08);
  stroke: rgba(90, 70, 40, 0.45);
  stroke-width: 2;
}
.aws-hotspot:hover .aws-hit,
.aws-hotspot:focus-visible .aws-hit {
  fill: rgba(90, 70, 40, 0.06);
  stroke: rgba(90, 70, 40, 0.32);
  stroke-width: 1.5;
}
.aws-display {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.aws-screen {
  position: relative;
  flex: 1;
  min-height: 220px;
  padding: 18px 16px 14px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #f7f3ea 0%, #ebe4d6 55%, #ddd4c4 100%);
  border: 1px solid #b8b0a4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 1px 2px rgba(60, 50, 40, 0.08);
  text-align: center;
  overflow: hidden;
}
.aws-screen-glow {
  display: none;
}
.aws-screen[data-status="check"] {
  border-color: #c4a060;
  background:
    linear-gradient(180deg, #f6f0e0 0%, #ebe0c8 55%, #ddd0b0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 0 0 1px rgba(180, 140, 60, 0.12);
}
.aws-screen[data-status="broken"] {
  border-color: #c08070;
  background:
    linear-gradient(180deg, #f4e8e4 0%, #e8d8d2 55%, #dcc8c0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 0 0 1px rgba(160, 70, 55, 0.12);
}
.aws-part-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  margin-bottom: 6px;
  color: #4a6a48;
  filter: drop-shadow(0 2px 3px rgba(60, 50, 40, 0.18));
}
.aws-screen[data-status="check"] .aws-part-icon {
  color: #9a7028;
}
.aws-screen[data-status="broken"] .aws-part-icon {
  color: #a04838;
}
.aws-ico {
  width: 100px;
  height: 100px;
  transform: none;
  animation: none;
}
.aws-screen-label {
  position: relative;
  margin: 0 0 4px;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--kit-ink);
}
.aws-screen-status {
  position: relative;
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a7a48;
}
.aws-screen-status[data-status="check"] {
  color: #9a7028;
}
.aws-screen-status[data-status="broken"] {
  color: #a04030;
}
.aws-screen-blurb {
  position: relative;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #6a6258;
}
.aws-repair-btn {
  appearance: none;
  border: 1px solid #6a8a68;
  border-radius: 3px;
  padding: 11px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4f0e8;
  background: linear-gradient(180deg, #6a8a68 0%, #4a6a4e 100%);
  cursor: pointer;
  box-shadow: 0 2px 0 #3a5038, inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.aws-repair-btn:hover {
  background: linear-gradient(180deg, #789a76 0%, #56785a 100%);
}
.aws-repair-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #3a5038;
}
.aws-repair-btn.is-warn {
  border-color: #a88840;
  background: linear-gradient(180deg, #c4a060 0%, #8a6a38 100%);
  box-shadow: 0 2px 0 #5a4820, inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.aws-repair-btn.is-fail {
  border-color: #a85848;
  background: linear-gradient(180deg, #b06050 0%, #7a3830 100%);
  box-shadow: 0 2px 0 #4a2418, inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.aws-part-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aws-part-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 10px;
  border-radius: 3px;
  border: 1px solid #c8bfb0;
  background:
    linear-gradient(180deg, #f7f3ea 0%, #ebe4d6 100%);
  color: var(--kit-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.aws-part-item:hover {
  background:
    linear-gradient(180deg, #faf7f0 0%, #f0e8da 100%);
  border-color: #b0a690;
}
.aws-part-item.is-selected {
  border-color: #8a9a78;
  background:
    linear-gradient(180deg, #eef0e4 0%, #dde4d0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(90, 110, 70, 0.12);
}
.aws-part-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7aaa6a 0%, #4a7a48 100%);
  border: 1px solid #3a5a38;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.aws-part-item.status-check .aws-part-dot {
  background: linear-gradient(180deg, #d4b050 0%, #a88828 100%);
  border-color: #7a6820;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.aws-part-item.status-broken .aws-part-dot {
  background: linear-gradient(180deg, #c06050 0%, #8a3830 100%);
  border-color: #5a2820;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.aws-part-item-name {
  font-size: 13px;
  font-weight: 600;
}
.aws-part-item-st {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a8278;
}
.aws-part-item.status-check .aws-part-item-st {
  color: #9a7028;
}
.aws-part-item.status-broken .aws-part-item-st {
  color: #a04838;
}
.aws-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: #7a7268;
}
@media (max-width: 720px) {
  .aws-layout {
    grid-template-columns: 1fr;
  }
  .aws-schematic {
    max-height: 180px;
  }
  .aws-mast-svg {
    max-width: 100px;
  }
  .aws-part-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .aws-part-item {
    flex: 1 1 calc(50% - 4px);
  }
}

