.livemap { display: grid; gap: 14px; --livemap-classd: #ff8c1a; --livemap-scientist: #f2e94e; --livemap-guard: #8fa3b8; --livemap-ntf: #2f7bff; --livemap-chaos: #34c759; --livemap-scp: #ff4d5a; --livemap-ally: #9b8cff; --livemap-goc: #ff5fc8; --livemap-tutorial: #5fe0d0; --livemap-spectator: #6f7c88; --livemap-floor2d: #2b2721; --livemap-wall2d: #e8e2d6; --livemap-door: #33b866; --livemap-door-lock: #e64d57; --livemap-door-gate: #ebb340; --livemap-door-lift: #5cb3e6; }
.livemap [hidden] { display: none !important; }
.livemap-app { display: grid; gap: 12px; }
.livemap-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.livemap-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.livemap-group > .livemap-label { color: var(--dg-text-dim); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.livemap-chip { min-height: 32px; padding: 0 12px; border: 1px solid var(--dg-line); border-radius: var(--dg-r-sm); background: rgba(255, 255, 255, .03); color: var(--dg-text-muted); font: inherit; font-size: 13px; cursor: pointer; }
.livemap-chip:hover { border-color: var(--dg-border-strong); color: var(--dg-text); }
.livemap-chip.is-active { border-color: var(--dg-highlight); background: var(--dg-highlight-soft); color: var(--dg-text); }
.livemap-chip.is-offline { color: var(--dg-text-dim); }
.livemap-chip:disabled { opacity: .45; cursor: not-allowed; }
.livemap-chip-count { margin-left: 8px; color: var(--dg-text-dim); font-variant-numeric: tabular-nums; }
.livemap-chip.is-active .livemap-chip-count { color: var(--dg-text); }
.livemap-caption { position: absolute; left: 12px; bottom: 10px; z-index: 1; display: grid; gap: 4px; color: var(--dg-text-dim); font-size: 12px; pointer-events: none; }
.livemap-doors { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.livemap-door { display: inline-flex; align-items: center; gap: 6px; }
.livemap-door::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--livemap-door); }
.livemap-door--lock::before { background: var(--livemap-door-lock); }
.livemap-door--gate::before { background: var(--livemap-door-gate); }
.livemap-door--lift::before { background: var(--livemap-door-lift); }
.livemap-status { margin: 0; color: var(--dg-text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.livemap-status.is-error { color: var(--dg-danger); }
.livemap-notice { margin: 0; padding: 8px 12px; border: 1px solid var(--dg-line); border-radius: var(--dg-r-sm); background: rgba(255, 255, 255, .03); color: var(--dg-text-muted); font-size: 13px; }
.livemap-stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.livemap-canvas-wrap { position: relative; min-width: 0; height: min(74vh, 760px); min-height: 420px; border: 1px solid var(--dg-line); border-radius: var(--dg-r-lg); background: var(--dg-bg-deep); overflow: hidden; }
.livemap-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.livemap-canvas.is-dragging { cursor: grabbing; }
.livemap-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: var(--dg-text-muted); font-size: 14px; text-align: center; pointer-events: none; }
.livemap-tip { position: absolute; z-index: 2; display: grid; gap: 2px; max-width: 260px; padding: 8px 12px; border: 1px solid var(--dg-line); border-radius: var(--dg-r-sm); background: rgba(8, 11, 16, .92); pointer-events: none; }
.livemap-tip strong { color: var(--dg-text); font-size: 13px; }
.livemap-tip span { color: var(--dg-text-muted); font-size: 12px; }
.livemap-card { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: grid; gap: 10px; width: min(320px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 14px 16px; border: 1px solid var(--dg-line); border-radius: var(--dg-r-lg); background: rgba(8, 11, 16, .94); overflow-y: auto; --livemap-card-color: var(--dg-highlight); }
.livemap-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-left: 10px; border-left: 3px solid var(--livemap-card-color); }
.livemap-card-head div { display: grid; gap: 2px; min-width: 0; }
.livemap-card-head strong { color: var(--dg-text); font-size: 15px; overflow-wrap: anywhere; }
.livemap-card-head span { color: var(--dg-text-muted); font-size: 12px; }
.livemap-card-close { flex: none; width: 26px; height: 26px; border: 1px solid var(--dg-line); border-radius: var(--dg-r-sm); background: transparent; color: var(--dg-text-muted); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.livemap-card-close:hover { border-color: var(--dg-border-strong); color: var(--dg-text); }
.livemap-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 13px; }
.livemap-card dt { color: var(--dg-text-dim); }
.livemap-card dd { margin: 0; color: var(--dg-text); overflow-wrap: anywhere; }
.livemap-card-levels { display: flex; flex-wrap: wrap; gap: 6px; }
.livemap-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.livemap-card-list { display: grid; gap: 4px; max-height: 140px; overflow-y: auto; }
.livemap-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.livemap-bar-hp, .livemap-bar-ahp { position: absolute; top: 0; left: 0; height: 100%; }
.livemap-bar-hp { background: var(--livemap-card-color); }
.livemap-bar-ahp { top: auto; bottom: 0; height: 2px; background: var(--dg-text); opacity: .8; }
.livemap-side { display: grid; gap: 12px; }
.livemap-panel { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--dg-line); border-radius: var(--dg-r-lg); background: rgba(255, 255, 255, .025); }
.livemap-panel h4 { margin: 0; color: var(--dg-text); font-size: 14px; }
.livemap-panel p { margin: 0; color: var(--dg-text-muted); font-size: 12px; }
.livemap-search { width: 100%; min-height: 34px; padding: 0 12px; border: 1px solid var(--dg-line); border-radius: var(--dg-r-sm); background: rgba(255, 255, 255, .03); color: var(--dg-text); font: inherit; font-size: 13px; box-sizing: border-box; }
.livemap-search:focus { outline: none; border-color: var(--dg-highlight); }
.livemap-list { display: grid; gap: 2px; max-height: 260px; overflow-y: auto; }
.livemap-list-head { margin: 6px 0 2px; color: var(--dg-text-dim); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.livemap-list-empty { margin: 0; color: var(--dg-text-dim); font-size: 13px; }
.livemap-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 30px; padding: 0 8px; border: 0; border-radius: var(--dg-r-sm); background: transparent; color: var(--dg-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.livemap-row:hover { background: rgba(255, 255, 255, .05); }
.livemap-row.is-active { background: var(--dg-highlight-soft); }
.livemap-row.is-hidden { opacity: .45; }
.livemap-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.livemap-row-meta { flex: none; max-width: 45%; overflow: hidden; color: var(--dg-text-dim); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.livemap-legend { display: grid; gap: 2px; }
.livemap-legend-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 28px; padding: 0 8px; border: 0; border-radius: var(--dg-r-sm); background: transparent; color: var(--dg-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.livemap-legend-item:hover { background: rgba(255, 255, 255, .05); }
.livemap-legend-item.is-empty { opacity: .5; }
.livemap-legend-item.is-off .livemap-legend-name { text-decoration: line-through; }
.livemap-legend-item.is-off { opacity: .4; }
.livemap-legend-name { flex: 1; }
.livemap-legend-count { color: var(--dg-text-muted); font-variant-numeric: tabular-nums; }
.livemap-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--livemap-ntf); }
.livemap-dot--classd { background: var(--livemap-classd); }
.livemap-dot--scientist { background: var(--livemap-scientist); }
.livemap-dot--guard { background: var(--livemap-guard); }
.livemap-dot--ntf { background: var(--livemap-ntf); }
.livemap-dot--chaos { background: var(--livemap-chaos); }
.livemap-dot--scp { background: var(--livemap-scp); }
.livemap-dot--ally { background: var(--livemap-ally); }
.livemap-dot--goc { background: var(--livemap-goc); }
.livemap-dot--tutorial { background: var(--livemap-tutorial); }
.livemap-dot--spectator { background: var(--livemap-spectator); }
.livemap-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--dg-text-muted); font-size: 13px; cursor: pointer; }
.livemap-switch-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.livemap-switch-track { position: relative; flex: none; width: 34px; height: 18px; border: 1px solid var(--dg-line); border-radius: 9px; background: rgba(255, 255, 255, .08); transition: background .15s ease, border-color .15s ease; }
.livemap-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--dg-text-dim); transition: transform .15s ease, background .15s ease; }
.livemap-switch-input:checked + .livemap-switch-track { border-color: var(--dg-highlight); background: var(--dg-highlight-soft); }
.livemap-switch-input:checked + .livemap-switch-track::after { transform: translateX(16px); background: var(--dg-highlight); }
.livemap-switch-input:focus-visible + .livemap-switch-track { outline: 2px solid var(--dg-highlight); outline-offset: 2px; }
.livemap-switch:hover .livemap-switch-text { color: var(--dg-text); }
.livemap-lock { position: absolute; inset: 0; z-index: 5; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 24px; background: var(--dg-bg-deep); text-align: center; }
.livemap-lock strong { color: var(--dg-text); font-size: 18px; }
.livemap-lock span { max-width: 560px; color: var(--dg-text-muted); font-size: 14px; }
.livemap.is-locked, .livemap-app.is-locked { cursor: default; }
.livemap-app.is-locked .livemap-toolbar, .livemap-app.is-locked .livemap-side { opacity: .55; }
.livemap-top { display: grid; gap: 12px; }
.livemap-fs { position: absolute; top: 10px; right: 10px; z-index: 4; background: rgba(8, 11, 16, .85); }
.livemap.is-fullscreen { position: fixed; inset: 0; z-index: 9999; display: block; margin: 0; padding: 0; background: var(--dg-bg-deep); }
.livemap.is-fullscreen .livemap-app { position: absolute; inset: 0; display: block; }
.livemap.is-fullscreen .livemap-stage { position: absolute; inset: 0; display: block; }
.livemap.is-fullscreen .livemap-canvas-wrap { position: absolute; inset: 0; height: auto; min-height: 0; border: 0; border-radius: 0; }
.livemap.is-fullscreen .livemap-top { position: absolute; top: 12px; left: 12px; right: 336px; z-index: 6; padding: 10px 12px; border: 1px solid var(--dg-line); border-radius: var(--dg-r-lg); background: rgba(8, 11, 16, .88); }
.livemap.is-fullscreen .livemap-side { position: absolute; top: 56px; right: 12px; bottom: 12px; z-index: 6; width: 312px; overflow-y: auto; align-content: start; }
.livemap.is-fullscreen .livemap-side .livemap-panel { background: rgba(8, 11, 16, .88); }
.livemap.is-fullscreen .livemap-card { right: 336px; bottom: 12px; }
.livemap.is-fullscreen .livemap-fs { right: 12px; top: 12px; }
.livemap.is-fullscreen .livemap-caption { bottom: 12px; }
@media (max-width: 900px) {
  .livemap.is-fullscreen .livemap-top { right: 12px; }
  .livemap.is-fullscreen .livemap-side { top: auto; height: 36%; width: auto; left: 12px; }
  .livemap.is-fullscreen .livemap-card { right: 12px; bottom: calc(36% + 24px); }
  .livemap-stage { grid-template-columns: minmax(0, 1fr); }
  .livemap-canvas-wrap { height: 62vh; min-height: 360px; }
}
