@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #fff;
  --text: #1d1d1f;
  --muted: #777980;
  --line: #e5e5ea;
  --blue: #0865eb;
  --green: #0865eb;
  --orange: #f6ab70;
  --cyan: #7fd9d5;
  --glass: rgba(255, 255, 255, 0.9);
  --shadow: 0 8px 32px #10203812, 0 1px 3px #10203808;
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  font-synthesis: none;
  font-optical-sizing: auto;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 11px;
  min-height: 40px;
  padding: 9px 14px;
  background: transparent;
  color: inherit;
  transition:
    background 0.16s,
    color 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
button:hover {
  background: #00000006;
}
button:active {
  transform: scale(0.97);
  transition: transform 0.08s;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:disabled:active {
  transform: none;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #0865eb77;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
input,
select {
  color: var(--text);
  background: #f5f5f7;
  border: 1px solid #e2e2e7;
  border-radius: 10px;
  padding: 11px 13px;
  min-width: 0;
  outline: none;
}
input:focus,
select:focus {
  border-color: #0865eb;
  box-shadow: 0 0 0 3px #0865eb15;
}
input::placeholder {
  color: #95969d;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 4px #0865eb1a;
}
.primary:hover {
  background: #075cd7;
}
.quiet {
  background: #f0f0f3;
  border-color: #e7e7eb;
}
.quiet:hover {
  background: #e7e7ed;
}
.quiet.active {
  background: #e4efff;
  color: #085fdc;
  border-color: #c8ddff;
}
.text-button {
  color: var(--blue);
}
.muted {
  color: var(--muted);
  line-height: 1.7;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.6px;
  color: var(--muted);
}
.tiny-dot,
.dot {
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: #2cab6c;
  border-radius: 50%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  letter-spacing: -0.035em;
  line-height: 1.2;
}
h1 {
  font-size: 30px;
  font-weight: 650;
}
h2 {
  font-size: 22px;
  font-weight: 650;
}
[hidden] {
  display: none !important;
}
.form-error,
.error {
  font-size: 12px;
  color: #c53e36;
  line-height: 1.6;
  min-height: 19px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #242529f2;
  color: white;
  border: 1px solid #ffffff1c;
  padding: 13px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 100;
  max-width: calc(100vw - 32px);
  font-size: 13px;
  backdrop-filter: blur(20px);
}
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid #ffffffa6;
  border-radius: 24px;
  box-shadow:
    0 40px 120px #11182726,
    0 3px 12px #1118270d;
  width: min(470px, calc(100vw - 32px));
  padding: 30px;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #1c24344d;
  backdrop-filter: blur(8px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  margin-top: 7px;
}
.dialog-heading > button {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 24px;
  border-radius: 50%;
  background: #f0f0f3;
  color: #777980;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  font-weight: 550;
  margin-top: 20px;
}
.field input {
  width: 100%;
}
.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.product-brand img {
  width: 34px;
  height: 34px;
}
.product-brand strong {
  font-size: 18px;
  letter-spacing: -0.5px;
  font-weight: 650;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root {
    --glass: #fff;
  }
  dialog::backdrop {
    backdrop-filter: none;
    background: #1c243470;
  }
  .toast {
    backdrop-filter: none;
    background: #242529;
  }
}
@media (prefers-contrast: more) {
  :root {
    --muted: #4a4b51;
    --line: #9c9da4;
    --glass: #fff;
  }
  button,
  input,
  select,
  dialog {
    border-color: #777980;
  }
}

body {
  display: flex;
  height: 100dvh;
  overflow: hidden;
}
body > main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 74px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  gap: 18px;
  background: #fff;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}
.topbar-identity {
  display: flex;
  align-items: center;
  gap: 24px;
}
.breadcrumbs {
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.breadcrumbs span {
  margin: 0 9px;
  color: #c2c3ca;
}
.breadcrumbs strong {
  font-weight: 550;
  color: var(--text);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-actions .tool-button {
  font-size: 12px;
}
.top-actions .tool-button svg {
  width: 17px;
  height: 17px;
}
.connection {
  display: grid;
  grid-template-columns: 6px max-content;
  gap: 1px 7px;
  margin-right: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
}
.connection i {
  grid-row: 1/3;
  align-self: center;
  width: 6px;
  height: 6px;
  background: #b7b9c2;
  border-radius: 50%;
}
.connection.live i {
  background: #2cab6c;
}
.connection.waiting {
  color: var(--muted);
}
#room-visitors {
  grid-column: 2;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.workspace {
  display: flex;
  flex: 1;
  min-height: 0;
}
.map-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #161c23;
}
.canvas-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #171d24;
}
.map-heading {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.map-heading > div:first-child {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid #ffffffae;
  box-shadow: var(--shadow);
  border-radius: 17px;
  padding: 14px 19px;
  min-width: 140px;
  pointer-events: auto;
}
.map-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
}
.map-heading h1 {
  font-size: 25px;
  margin-top: 4px;
  line-height: 1.2;
}
.map-heading h1 span {
  display: none;
}
.map-heading-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
}
.view-switch {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 13px;
  background: var(--glass);
  border: 1px solid #ffffffb0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.view-switch button {
  min-width: 68px;
  min-height: 34px;
  padding: 7px 13px;
  font-size: 12px;
  border-radius: 9px;
  color: #75767d;
}
.view-switch button.active {
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 2px 7px #1b28371c;
}
.floor-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--glass);
  border-radius: 11px;
  box-shadow: var(--shadow);
}
.floor-switch button {
  padding: 5px 10px;
  min-height: 30px;
  font-size: 11px;
  border-radius: 7px;
  color: var(--muted);
}
.floor-switch .active {
  background: #e4efff;
  color: var(--blue);
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
canvas.dragging {
  cursor: grabbing;
}
canvas.picking {
  cursor: crosshair;
}
.map-badge {
  position: absolute;
  left: 24px;
  bottom: 82px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  font-size: 10px;
  color: #e7eaf0;
  background: #202630cc;
  border: 1px solid #ffffff18;
  border-radius: 9px;
  backdrop-filter: blur(15px);
  pointer-events: none;
  z-index: 3;
}
.map-badge .tiny-dot {
  background: #909bad;
}
.map-badge.live .tiny-dot {
  background: #6cdaaa;
}
.north {
  position: absolute;
  right: 42px;
  top: 92px;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #fff;
  pointer-events: none;
  opacity: 0.8;
  text-shadow: 0 1px 3px #000;
}
.north b {
  font-size: 10px;
}
.north span {
  font-size: 26px;
  line-height: 1.2;
}
.map-controls {
  position: absolute;
  right: 24px;
  bottom: 70px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  border: 1px solid #ffffffb0;
  border-radius: 14px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  z-index: 4;
}
.map-controls button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 9px;
  padding: 0;
  font-size: 22px;
}
.map-controls button.active {
  background: #e4efff;
  color: var(--blue);
}
.map-controls > span {
  height: 1px;
  background: var(--line);
  margin: 4px;
}
.map-coordinate {
  position: absolute;
  bottom: 25px;
  right: 25px;
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: #e2e5eb;
  pointer-events: none;
  z-index: 3;
  font-variant-numeric: tabular-nums;
}
.map-coordinate span {
  background: #202630cc;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid #ffffff18;
}
.map-footer {
  position: absolute;
  bottom: 23px;
  left: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 15px;
  background: var(--glass);
  border: 1px solid #ffffffb0;
  box-shadow: var(--shadow);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  font-size: 10px;
  color: #676970;
}
.map-footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.map-footer .map-help {
  border-left: 1px solid #dddde5;
  padding-left: 15px;
}
.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e79458;
}
.legend-dot.bot {
  background: #8d9f85;
}
.legend-dot.self {
  background: #219caa;
}
.legend-dot.teammate {
  background: #8071d4;
}
.legend-dot.vehicle {
  background: #cfb358;
}
.map-notice {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--glass);
  border: 1px solid #ffffffad;
  backdrop-filter: blur(24px);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 26px;
  text-align: center;
  line-height: 1.7;
  font-size: 13px;
  width: min(390px, 80%);
  z-index: 3;
  pointer-events: none;
}
.tooltip {
  position: absolute;
  background: #242a34ee;
  color: white;
  border: 1px solid #ffffff30;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 11px;
  white-space: pre-line;
  max-width: 240px;
  overflow-wrap: anywhere;
  pointer-events: none;
  z-index: 8;
}
.target-card {
  position: absolute;
  left: 24px;
  top: 122px;
  width: 306px;
  padding: 20px;
  border: 1px solid #ffffffad;
  border-radius: 20px;
  background: var(--glass);
  box-shadow: var(--shadow);
  color: var(--text);
  z-index: 7;
  backdrop-filter: blur(24px) saturate(140%);
  font-variant-numeric: tabular-nums;
}
.target-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.target-identity {
  min-width: 0;
}
.target-card-kicker {
  font-size: 10px;
  color: #bd713d;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.target-card.teammate .target-card-kicker {
  color: #7660c9;
}
.target-card h2 {
  font-size: 21px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.target-card #detail-close {
  padding: 0;
  min-height: 28px;
  width: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 21px;
  background: #00000007;
  color: #82838b;
}
.target-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
}
.detail-tag {
  background: #00000005;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 10px;
  color: #797980;
}
.detail-tag.following {
  background: #e4efff;
  color: var(--blue);
}
#detail-distance {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  color: #777980;
}
.detail-weapon {
  padding: 14px;
  background: #f0f1f5;
  border-radius: 12px;
  margin-top: 16px;
}
.detail-label {
  display: block;
  font-size: 10px;
  color: #81828a;
}
.detail-weapon > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
#detail-weapon {
  font-size: 18px;
  font-weight: 650;
  overflow-wrap: anywhere;
  min-width: 0;
}
#detail-ammo {
  font-size: 11px;
  color: #85858d;
  white-space: nowrap;
}
.detail-equipment {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 6px;
  margin-top: 8px;
}
.detail-equipment > div {
  padding: 10px;
  background: #f0f1f5;
  border-radius: 10px;
}
.detail-equipment strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 7px;
}
.detail-equipment .equipped {
  background: #fff0da;
}
.detail-equipment .equipped .detail-label,
.detail-equipment .equipped strong {
  color: #a56a11;
}
.scene-host,
.scene-host canvas,
.scene-labels {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.scene-labels {
  pointer-events: none;
}
.scene-label {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 180px;
  pointer-events: auto;
  white-space: pre-line;
  padding: 5px 8px;
  background: #1c2630e8;
  color: var(--marker-color);
  border: 1px solid #ffffff30;
  border-radius: 8px;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
  box-shadow: 0 2px 8px #0003;
  transition: none;
  min-height: 0;
}
.scene-label.selected {
  border-color: #e7efff;
  background: #27374ef5;
}
.scene-loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #171d24eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #e4e7ed;
  font-size: 13px;
}
.scene-loading::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 2px solid #ffffff26;
  border-top-color: #80aaff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.scene-tools {
  position: absolute;
  top: 88px;
  right: 24px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  max-width: calc(100% - 48px);
}
.scene-camera-tools,
.scene-perspective {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--glass);
  border: 1px solid #ffffffb0;
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 4px;
  backdrop-filter: blur(20px);
}
.scene-tools button {
  min-height: 31px;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 8px;
  border-color: transparent;
  background: transparent;
}
.scene-tools button.active {
  background: #e4efff;
  color: var(--blue);
}
.scene-perspective {
  padding: 5px 6px 5px 12px;
  gap: 9px;
}
.scene-perspective label {
  font-size: 10px;
  white-space: nowrap;
  color: #777980;
}
.scene-perspective select {
  max-width: 175px;
  padding: 6px 8px;
  font-size: 11px;
  border: 0;
  background: #edf0f5;
  cursor: pointer;
}
.first-person::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid #ffffffcc;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}
.canvas-stage[data-view="3d"] .map-coordinate {
  display: none;
}
.canvas-stage[data-view="3d"] .map-notice {
  top: auto;
  bottom: 80px;
  transform: translateX(-50%);
  padding: 10px 14px;
}
.connection-dialog {
  width: min(920px, calc(100vw - 64px));
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
}
.connection-dialog[open] {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.entry-art {
  position: relative;
  min-height: 490px;
  background: #17222c;
  overflow: hidden;
}
.entry-map {
  position: absolute;
  inset: -10%;
  background: url("/native2d/farm-overview-6d144c89d61f.png") 30% center/auto
    125% no-repeat;
  opacity: 0.6;
  transform: rotate(-8deg) scale(1.1);
  filter: saturate(0.55);
}
.entry-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #10213020, #10213000 35%, #0a1729db);
}
.entry-top {
  position: absolute;
  left: 30px;
  top: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c5d8e7;
  font-size: 9px;
  letter-spacing: 2px;
}
.entry-live {
  width: 5px;
  height: 5px;
  background: #78e2bb;
  border-radius: 50%;
}
.entry-reticle {
  position: absolute;
  left: 49%;
  top: 45%;
  width: 148px;
  height: 148px;
  transform: translate(-50%, -50%);
  border: 1px solid #8bb9ff37;
  border-radius: 50%;
  box-shadow:
    0 0 0 34px #8bb9ff0c,
    0 0 0 68px #8bb9ff08;
}
.entry-reticle:before,
.entry-reticle:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  height: 1px;
  width: 206px;
  background: #8bb9ff28;
  transform: translate(-50%, -50%);
}
.entry-reticle:after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.entry-reticle > span {
  position: absolute;
  inset: 54px;
  border: 1px solid #a3c7ff9c;
  border-radius: 50%;
  background: #7cabf526;
  box-shadow: 0 0 30px #4690ff29;
}
.entry-reticle > span:after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #c7dcff;
  box-shadow: 0 0 15px #9cbfff;
}
.entry-reticle > i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #edb892;
  border-radius: 50%;
  left: 21px;
  top: 16px;
  box-shadow: 0 0 0 5px #edb89218;
}
.entry-caption {
  position: absolute;
  bottom: 34px;
  left: 32px;
  color: #fff;
}
.entry-caption p {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
}
.entry-caption > span {
  display: block;
  font-size: 11px;
  color: #b1c1d1;
  margin-top: 8px;
  letter-spacing: 2px;
}
.entry-form {
  padding: 46px 42px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.entry-form > .product-brand {
  margin-bottom: 46px;
}
.entry-form .dialog-heading {
  margin-bottom: 12px;
}
.entry-form .dialog-heading h2 {
  font-size: 27px;
  margin: 0;
}
.entry-form .dialog-heading button {
  display: none;
}
.entry-form .field {
  margin-top: 20px;
  font-size: 11px;
  color: #777980;
}
.entry-form input {
  padding: 14px 16px;
  height: 53px;
  font-size: 18px;
  letter-spacing: 1px;
  background: #f7f7f9;
}
.entry-form input::placeholder {
  font-size: 14px;
  letter-spacing: 0;
}
.entry-form .form-error {
  margin-top: 8px;
}
.entry-form .dialog-actions {
  margin-top: 16px;
}
.entry-form .primary {
  width: 100%;
  height: 48px;
  justify-content: space-between;
  padding: 0 18px;
  border-radius: 12px;
}
.entry-form .primary svg {
  width: 18px;
  height: 18px;
}
.room-gate {
  background: #edf0f5;
}
.room-gate > main,
.room-gate > .sidebar {
  display: none;
}
.room-gate .connection-dialog::backdrop {
  background: radial-gradient(ellipse at 40% 30%, #dbe4f200, #b9c8e840);
  backdrop-filter: none;
}
.sidebar {
  display: none;
  width: 205px;
  flex-shrink: 0;
  background: #f9f9fb;
  border-right: 1px solid var(--line);
  padding: 25px 14px;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 650;
  white-space: nowrap;
}
.brand img {
  width: 34px;
  height: 34px;
}
.brand small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 4px;
}
.sidebar-heading {
  display: flex;
  justify-content: space-between;
  margin: 36px 10px 12px;
  color: var(--muted);
  font-size: 11px;
}
#map-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.map-tab {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  border-radius: 11px;
  padding: 9px 10px;
}
.map-tab img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
}
.map-tab span {
  font-size: 12px;
  font-weight: 550;
}
.map-tab small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
}
.map-tab.active {
  background: #e4efff;
  color: var(--blue);
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 10px;
  color: var(--muted);
  padding: 15px 8px;
  line-height: 1.8;
}
.sidebar-bottom small {
  display: block;
}
.intel-panel {
  display: none;
  flex-direction: column;
  width: 248px;
  flex-shrink: 0;
  padding: 24px 20px;
  background: #f9f9fb;
  border-left: 1px solid var(--line);
  overflow: auto;
}
.intel-heading h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 19px;
  margin: 7px 0 20px;
}
.metrics {
  display: flex;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.metrics > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.metrics span {
  font-size: 10px;
  color: var(--muted);
}
.metrics strong {
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.metrics small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 5px;
}
.section-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 8px;
}
.section-line h3 {
  font-size: 12px;
  font-weight: 600;
}
.section-line > span {
  font-size: 9px;
  color: var(--muted);
}
.layers label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  min-height: 34px;
  cursor: pointer;
}
.layers input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch {
  margin-left: auto;
  display: block;
  width: 28px;
  height: 17px;
  border-radius: 20px;
  background: #d4d5dc;
  padding: 2px;
  transition: background 0.15s;
}
.switch:before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #0002;
  transition: transform 0.15s;
}
.layers input:checked + .switch {
  background: var(--blue);
}
.layers input:checked + .switch:before {
  transform: translateX(11px);
}
.layers input:focus-visible + .switch {
  outline: 3px solid #0865eb77;
  outline-offset: 3px;
}
.layer-symbol {
  font-size: 10px;
  width: 7px;
}
.target-list-heading {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.target-list {
  flex: 1;
  min-height: 80px;
  overflow: auto;
}
.target-row {
  display: flex;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  gap: 9px;
  padding: 10px 4px;
  border-radius: 8px;
}
.target-glyph {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #fff0e5;
  color: #c27841;
}
.target-row.teammate .target-glyph {
  background: #eee9ff;
  color: #8371c7;
}
.target-description {
  min-width: 0;
  flex: 1;
}
.target-description strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.target-description small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.target-distance {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.target-row.active {
  background: #e4efff;
}
.list-empty {
  font-size: 11px;
  color: var(--muted);
  padding: 18px 0;
}
.observer {
  font-size: 10px;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.8;
}
.observer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.observer p {
  font-size: 9px;
  margin: 8px 0;
}
.admin-test:not(.room-gate) > .sidebar,
.admin-test:not(.room-gate) .intel-panel {
  display: flex;
}
.admin-test .topbar-identity > .product-brand {
  display: none;
}
.admin-test .breadcrumbs {
  padding: 0;
  border: 0;
}
.calibration-dialog {
  width: min(700px, calc(100vw - 24px));
}
.calibration-dialog .muted {
  font-size: 12px;
  margin-top: 16px;
}
.dialog-heading h2 small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.calibration-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.point-table {
  overflow: auto;
  min-height: 80px;
}
.point-header,
.point-row {
  display: grid;
  grid-template-columns: 38px 100px minmax(95px, 1fr) minmax(95px, 1fr) 28px;
  gap: 9px;
  min-width: 410px;
  align-items: center;
}
.point-header {
  font-size: 10px;
  color: var(--muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.point-row {
  padding: 7px 0;
  font-size: 11px;
}
.point-row input {
  width: 100%;
  padding: 7px;
}
.point-row > span:nth-child(2) {
  color: var(--muted);
  font-size: 9px;
}
.point-row button {
  padding: 0;
  font-size: 20px;
}
.height-fields {
  display: flex;
  gap: 16px;
}
.height-fields > .field {
  width: 50%;
}
.calibration-result {
  margin-top: 16px;
  padding: 12px;
  background: #e4efff;
  color: var(--blue);
  border-radius: 10px;
  font-size: 12px;
}
.calibration-result.error {
  background: #fff0ed;
  color: #c53e36;
}
.publish-details {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}
.publish-details summary {
  cursor: pointer;
}
.publish-details > .quiet {
  margin-top: 12px;
}
@media (max-width: 1150px) {
  .breadcrumbs {
    display: none;
  }
  .topbar {
    padding: 0 20px;
  }
  .admin-test > .sidebar {
    width: 175px;
  }
  .admin-test .intel-panel {
    width: 210px;
    padding: 20px 14px;
  }
  .top-actions {
    gap: 6px;
  }
  .connection {
    margin-right: 7px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 116px;
    padding: 14px 16px;
    align-items: flex-start;
    position: relative;
  }
  .topbar-identity {
    height: 32px;
  }
  .product-brand img {
    width: 30px;
    height: 30px;
  }
  .product-brand strong {
    font-size: 16px;
  }
  .top-actions {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    gap: 7px;
  }
  .top-actions .connection {
    position: absolute;
    right: 0;
    bottom: 53px;
    margin: 0;
    text-align: right;
    grid-template-columns: max-content 6px;
    column-gap: 6px;
  }
  .connection i {
    grid-column: 2;
    grid-row: 1/3;
  }
  .connection > span,
  #room-visitors {
    grid-column: 1;
  }
  .top-actions .tool-button {
    min-height: 36px;
    font-size: 11px;
    padding: 8px 10px;
    border-radius: 10px;
  }
  .top-actions #connect-open {
    margin-left: auto;
  }
  .top-actions #calibrate-open {
    font-size: 0;
    min-height: 36px;
    padding: 6px;
  }
  .map-heading {
    left: 14px;
    right: 14px;
    top: 14px;
  }
  .map-heading > div:first-child {
    padding: 11px 14px;
    min-width: 111px;
    border-radius: 14px;
  }
  .map-heading h1 {
    font-size: 22px;
  }
  .map-heading .eyebrow {
    font-size: 8px;
  }
  .view-switch button {
    min-width: 52px;
    padding: 6px 9px;
    font-size: 11px;
  }
  .view-switch {
    border-radius: 11px;
  }
  .floor-switch {
    max-width: 210px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .floor-switch button {
    padding: 4px 8px;
    font-size: 10px;
  }
  .map-footer {
    bottom: 14px;
    left: 14px;
    padding: 10px 12px;
    gap: 12px;
    font-size: 9px;
  }
  .map-footer .map-help {
    display: none;
  }
  .map-badge {
    left: 14px;
    bottom: 66px;
    font-size: 9px;
    padding: 6px 9px;
  }
  .map-controls {
    right: 14px;
    bottom: 58px;
  }
  .map-controls button {
    width: 34px;
    height: 35px;
    min-height: 35px;
  }
  .map-coordinate {
    right: 14px;
    bottom: 17px;
  }
  .north {
    top: 78px;
    right: 32px;
  }
  .scene-tools {
    top: 74px;
    right: 14px;
    max-width: calc(100% - 28px);
  }
  .scene-perspective {
    gap: 6px;
  }
  .scene-perspective select {
    max-width: 150px;
    font-size: 10px;
  }
  .scene-tools button {
    font-size: 10px;
    padding: 6px 8px;
  }
  .scene-perspective label {
    font-size: 9px;
  }
  .target-card {
    left: 14px;
    top: 104px;
    width: 280px;
    padding: 16px;
  }
  .connection-dialog {
    width: min(460px, calc(100vw - 32px));
    border-radius: 24px;
  }
  .connection-dialog[open] {
    grid-template-columns: 1fr;
  }
  .entry-art {
    min-height: 160px;
  }
  .entry-map {
    background-size: 100% auto;
    background-position: center 68%;
  }
  .entry-top {
    left: 24px;
    top: 20px;
  }
  .entry-caption {
    left: 24px;
    bottom: 20px;
  }
  .entry-caption p {
    font-size: 24px;
  }
  .entry-caption > span {
    display: none;
  }
  .entry-reticle {
    left: 72%;
    top: 53%;
    width: 94px;
    height: 94px;
    box-shadow:
      0 0 0 22px #8bb9ff0c,
      0 0 0 44px #8bb9ff08;
  }
  .entry-reticle > span {
    inset: 29px;
  }
  .entry-reticle:before,
  .entry-reticle:after {
    width: 140px;
  }
  .entry-form {
    padding: 28px 28px 32px;
  }
  .entry-form > .product-brand {
    display: none;
  }
  .entry-form .dialog-heading h2 {
    font-size: 24px;
  }
  .entry-form .field {
    margin-top: 13px;
  }
  .entry-form .dialog-actions {
    margin-top: 12px;
  }
  .admin-test .intel-panel {
    display: none !important;
  }
  .admin-test > .sidebar {
    display: none !important;
  }
  .admin-test .topbar-identity > .product-brand {
    display: flex;
  }
}
@media (max-width: 480px) {
  .target-card {
    top: auto;
    bottom: 60px;
    left: 14px;
    right: 64px;
    width: auto;
    padding: 14px;
    border-radius: 17px;
    max-height: calc(100% - 110px);
    overflow: auto;
  }
  .target-card h2 {
    font-size: 18px;
  }
  .target-card-meta {
    margin-top: 10px;
  }
  .detail-weapon {
    margin-top: 11px;
    padding: 11px;
  }
  .detail-equipment {
    margin-top: 6px;
  }
  .detail-equipment > div {
    padding: 8px;
  }
  .detail-equipment strong {
    font-size: 12px;
  }
  .detail-label {
    font-size: 9px;
  }
  .inspecting .map-badge {
    display: none;
  }
  .canvas-stage[data-view="3d"] .map-notice {
    bottom: 60px;
  }
  .scene-label {
    font-size: 9px;
    max-width: 130px;
  }
  .entry-art {
    min-height: 150px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .map-heading > div:first-child,
  .target-card,
  .map-controls,
  .view-switch,
  .map-footer,
  .scene-perspective,
  .scene-camera-tools {
    backdrop-filter: none;
    background: #fff;
  }
  .map-badge,
  .map-coordinate span {
    background: #202630;
  }
  .scene-loading {
    background: #171d24;
  }
}
@media (max-height: 600px) {
  .connection-dialog[open] {
    grid-template-columns: 1fr;
    width: min(430px, calc(100vw - 32px));
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }
  .entry-art,
  .entry-form > .product-brand {
    display: none;
  }
  .entry-form {
    padding: 24px 30px;
  }
  .entry-form .dialog-heading {
    margin: 0;
  }
  .entry-form .dialog-heading h2 {
    font-size: 24px;
  }
  .entry-form .field {
    margin-top: 16px;
  }
  .entry-form .dialog-actions {
    margin-top: 6px;
  }
}
@media (prefers-contrast: more) {
  .target-card,
  .map-heading > div:first-child,
  .map-controls,
  .view-switch,
  .map-footer {
    border-color: #777980;
  }
}
