.zone-intro {
  max-width: 66ch;
  margin: -7px 0 24px;
  color: #405f7a;
  font-size: 15px;
  line-height: 1.6;
}
.zone-lab {
  --zone-border: #ccdcec;
  --zone-ink: #173d65;
  overflow: hidden;
  border: 1px solid var(--zone-border);
  border-radius: 15px;
  background: white;
  box-shadow: 0 12px 35px #174d8110;
}
.zone-setup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 13px 24px;
  padding: 17px 22px 0;
}
.zone-options { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.zone-label { margin-right: 5px; color: var(--zone-ink); font-size: 12px; font-weight: 600; }
.zone-lab button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #c0d2e4;
  border-radius: 7px;
  color: #204d78;
  background: #fff;
  font: 600 12px/1.25 'DM Sans', Arial, sans-serif;
  cursor: pointer;
}
.zone-lab button:hover { border-color: #6493c3; background: #f0f6ff; }
.zone-lab button:focus-visible, .zone-map-input:focus-visible { outline: 3px solid #176bc3; outline-offset: 3px; }
.zone-lab button[aria-pressed=true] { border-color: #c49516; color: #173d65; background: #fff0be; }
.zone-lab button:disabled { cursor: default; opacity: .65; }
.zone-config-note { min-height: 19px; margin: 10px 22px 17px; color: #42617b; font-size: 12px; line-height: 1.5; }
.zone-workbench { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); border-top: 1px solid var(--zone-border); }
.zone-map-panel { min-width: 0; background: radial-gradient(ellipse at 50% 50%, #e8f2ff, #f7fafc 80%); }
.zone-display-panel { min-width: 0; padding: 0 23px 18px; border-left: 1px solid var(--zone-border); }
.zone-panel-heading { min-height: 63px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.zone-map-panel>.zone-panel-heading { padding: 0 20px; }
.zone-panel-heading h3 { margin: 0; color: var(--zone-ink); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.zone-panel-heading button { min-height: 35px; padding: 6px 9px; }
.zone-panel-heading button span { vertical-align: middle; }
.zone-audio { display: inline-flex; align-items: center; gap: 5px; }
.zone-audio svg { width: 16px; height: 16px; }
.zone-map-input { margin: 0 14px; border: 1px solid #d6e4f0; border-radius: 8px; background: #ffffff30; overflow: hidden; }
#zone-map { display: block; width: 100%; height: auto; max-height: 510px; cursor: crosshair; touch-action: none; user-select: none; }
#zone-person { cursor: grab; }
#zone-person:active { cursor: grabbing; }
.zone-compass { fill: #225585; font-size: 12px; letter-spacing: 2.4px; font-weight: 600; }
.zone-person-bg { fill: #17416c; stroke: #fff; stroke-width: 2.4; }
.zone-person-halo { fill: #224d77; opacity: .19; }
#zone-person[data-zone=outer] .zone-person-halo { fill: #0b65c4; opacity: .35; }
#zone-person[data-zone=inner] .zone-person-halo { fill: #b57a00; opacity: .36; }
#zone-cameras rect { fill: #fdc326; stroke: #75550b; stroke-width: 1.6; }
#zone-cameras circle { fill: #213b56; }
#zone-cameras .current rect { stroke: #fff; stroke-width: 2.2; }
.zone-legend { min-height: 60px; display: flex; flex-wrap: wrap; align-content: center; gap: 7px 18px; padding: 11px 20px; color: #21486d; font-size: 12px; }
.zone-legend span { display: inline-flex; align-items: center; gap: 7px; }
.zone-key { display: inline-block; width: 13px; height: 13px; border-radius: 100%; }
.zone-key.outer { background: #8abbf1; border: 1px solid #337ec5; }
.zone-key.inner { background: #ffcd47; border: 1px solid #b28208; }
.zone-monitor {
  padding: 8px 8px 0;
  border: 1px solid #0d1c2c;
  border-radius: 14px;
  background: linear-gradient(158deg, #233a4d, #0e1b29 65%);
  box-shadow: 0 6px 15px #152e4927, inset 0 1px 0 #8fa8ba42;
}
.zone-screen { position: relative; overflow: hidden; isolation: isolate; border: 1px solid #567084; border-radius: 7px; background: #263b49; }
#zone-feed { display: block; width: 100%; height: auto; }
.zone-feed-heading, .zone-feed-footer {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  color: #fff;
  font-size: 11px;
  line-height: 1.25;
  background: #0e2032e8;
}
.zone-feed-heading { top: 0; }
.zone-feed-heading span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.zone-feed-heading span:last-child { color: #c5daec; font-size: 8px; letter-spacing: .08em; text-align: right; }
.zone-feed-heading i { width: 6px; height: 6px; border-radius: 100%; background: #61befa; }
.zone-feed-footer { bottom: 0; }
#zone-feed-side { color: #bdd5e8; }
.zone-bezel { display: flex; align-items: center; justify-content: center; height: 27px; position: relative; }
.zone-bezel img { width: 67px; max-height: 16px; }
.zone-bezel i { position: absolute; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: #75c3f1; }
.zone-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 75px;
  margin: 14px 0 17px;
  padding: 11px 12px;
  border: 1px solid #b9e0ce;
  border-radius: 8px;
  color: #15462f;
  background: #edf8f2;
}
.zone-status-led { flex: 0 0 10px; height: 10px; margin: 5px 0 0 2px; border-radius: 50%; background: #237a52; box-shadow: 0 0 0 3px #237a5225; }
.zone-status[data-status=outer], .zone-status[data-status=inner] { border-color: #e6babe; background: #fff0f1; color: #81242f; }
.zone-status[data-status=outer] .zone-status-led, .zone-status[data-status=inner] .zone-status-led { background: #cb3344; box-shadow: 0 0 0 3px #cb334428; }
.zone-status[data-status=muted] { border-color: #e3cf87; background: #fff8dd; color: #684e08; }
.zone-status[data-status=muted] .zone-status-led { background: #a77100; box-shadow: 0 0 0 3px #a7710028; }
.zone-status strong { display: block; font-size: 14px; line-height: 1.25; }
.zone-status p { margin: 4px 0 0; font-size: 12px; line-height: 1.4; }
.zone-shortcuts .zone-options + .zone-options { margin-top: 8px; }
.zone-shortcuts .zone-label { min-width: 51px; }
.zone-shortcuts button { padding-inline: 8px; }
#zone-move-help { margin: 11px 0 0; color: #42617b; font-size: 11px; line-height: 1.5; }

@media (max-width: 870px) {
  .zone-workbench { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .zone-display-panel { padding-inline: 14px; }
  .zone-map-panel>.zone-panel-heading { padding-inline: 14px; }
}
@media (max-width: 675px) {
  .zone-workbench { grid-template-columns: minmax(0, 1fr); }
  .zone-intro { margin-top: 0; font-size: 14px; }
  .zone-display-panel { border-left: 0; border-top: 1px solid var(--zone-border); }
  .zone-setup { padding: 14px 12px 0; gap: 11px; }
  .zone-setup .zone-label { flex-basis: 100%; }
  .zone-options { gap: 5px; }
  .zone-lab button { min-height: 41px; padding-inline: 8px; }
  .zone-config-note { margin: 10px 12px 14px; }
  .zone-panel-heading { min-height: 58px; }
  .zone-map-panel>.zone-panel-heading { padding-inline: 10px; }
  .zone-map-input { margin-inline: 7px; }
  .zone-legend { min-height: 44px; gap: 5px 11px; padding-inline: 10px; font-size: 11px; }
  .zone-compass { font-size: 14px; }
  .zone-panel-heading h3 { font-size: 16px; }
}
