:root {
  color-scheme: dark;
  --bg: #05080a;
  --surface: #141c24;
  --surface-2: #192a37;
  --surface-3: #203442;
  --line: #34414c;
  --line-strong: #496477;
  --text: #e4edf5;
  --muted: #91a4b6;
  --accent: #7bccf4;
  --accent-2: #b2e5ff;
  --soft: #1d3d52;
  --green: #79caaf;
  --red: #ee969e;
  --yellow: #ebc679;
  --shadow: 0 3px 16px #02090f40;
}
body { background: var(--bg); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; letter-spacing: 0; }
*, *::before, *::after { letter-spacing: 0; }
[hidden] { display: none !important; }
button, input, select { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.lucide { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.btn, .icon-button { border: 1px solid var(--line); border-radius: 6px; background: var(--surface-3); color: var(--text); text-transform: none; box-shadow: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; }
.btn:hover, .icon-button:hover { color: var(--text); border-color: var(--line-strong); background: #2b4151; }
.btn-primary { background: var(--accent); color: #103849; border-color: var(--accent); }
.btn-primary:hover { background: #96d9fa; color: #103849; border-color: #96d9fa; }
.btn-warning { color: var(--yellow); background: #302d24; border-color: #635a38; }
.btn-danger { color: var(--red); background: #32252b; border-color: #68424b; }
.form-input, .form-select, input[type=number] { background: #101923; border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.form-input:focus, .form-select:focus { box-shadow: 0 0 0 2px #7bccf420; border-color: var(--accent); }
input[type=checkbox], input[type=range] { accent-color: var(--accent); }
input[type=checkbox] { width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.pill, .badge { background: var(--surface-3); border-radius: 4px; font-size: 11px; }
.ok { color: var(--green); }
.warn { color: var(--yellow); }
.bad { color: var(--red); }
.icon-button { display: inline-grid; place-items: center; padding: 0; width: 36px; height: 36px; border-color: transparent; background: transparent; }
.orbit-viewer { height: 100dvh; overflow: hidden; }
.radar-header { position: relative; height: 56px; display: flex; gap: 20px; padding: 0 18px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: none; }
.radar-header::before { display: none; }
.radar-header .brand-mark { margin: 0; gap: 10px; white-space: nowrap; font-size: 17px; font-weight: 650; }
.brand-mark > .lucide { color: var(--accent); width: 29px; height: 29px; }
.brand-mark small { color: var(--muted); margin-left: 8px; font-size: 12px; font-weight: 400; }
.radar-header #status { background: transparent; border: 0; padding: 0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.radar-header #status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.header-actions { gap: 6px; }
.header-actions .btn-icon { width: 34px; min-height: 34px; background: transparent; border-color: transparent; }
.header-actions .btn-icon:hover { background: var(--surface-3); }
.header-actions #adminLink { min-height: 32px; font-size: 11px; }
.radar-view-switch { display: inline-grid; grid-template-columns: repeat(2, 44px); width: 88px; height: 32px; border: 1px solid var(--line); border-radius: 6px; background: #101923; }
.radar-view-switch button { color: var(--muted); border-right-color: var(--line); font-size: 12px; }
.radar-view-switch button.active { background: var(--soft); color: var(--accent); }
.radar-view-switch.single-mode { width: 44px; grid-template-columns: 44px; }
.radar-layout { display: block; position: relative; height: calc(100dvh - 56px); width: 100%; padding: 0; background: var(--bg); }
#mapPanel { position: absolute; inset: 0; padding: 0; border: 0; background: #17232b; }
#mapPanel::before, #mapPanel::after { display: none; }
#map, #radar3dCanvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; filter: none; background: #17232b; touch-action: none; }
#map.is-panning { cursor: grabbing; }
.map-heading { position: absolute; left: 312px; top: 16px; display: flex; align-items: center; gap: 10px; z-index: 4; pointer-events: none; }
.map-heading-copy { display: grid; gap: 4px; min-width: 152px; padding: 12px 16px; background: #142332ed; border: 1px solid var(--line); border-radius: 8px; }
.map-heading-copy small { color: var(--muted); font-size: 10px; }
#mapStatus { border: 0; background: transparent; padding: 0; min-height: 0; color: var(--text); font-size: 15px; font-weight: 650; }
.map-count { padding: 12px; background: #1c3344; border: 1px solid var(--line); border-radius: 6px; color: #bed4e5; font-size: 13px; white-space: nowrap; }
.radar-sidebar { position: absolute; top: 16px; left: 16px; bottom: 92px; z-index: 10; width: 280px; padding: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #101c28f5; box-shadow: var(--shadow); scrollbar-color: var(--line-strong) transparent; }
.panel-heading { min-height: 52px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 6px; padding: 8px 10px 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.panel-heading strong { font-size: 14px; font-weight: 650; }
.roster-title { display: grid; gap: 4px; flex: 1; min-width: 0; }
.roster-title small { color: var(--muted); font-size: 10px; }
.sort-button { display: inline-flex; align-items: center; gap: 4px; padding: 0 2px; height: 34px; border: 0; background: transparent; color: var(--text); font-size: 11px; white-space: nowrap; }
.sort-button .lucide { width: 13px; height: 13px; }
.roster-stats { display: none; }
.player-roster { padding: 0 8px 8px; min-height: 0; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.team-heading { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 9px 5px 6px; color: #97bfce; font-size: 11px; }
.team-heading::before { content: ''; width: 5px; height: 5px; border-radius: 2px; background: currentColor; }
.player-card { width: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 5px 7px; margin: 0 0 7px; padding: 10px 8px 8px; border: 1px solid #31434f; border-left: 2px solid #88b4cf; border-radius: 6px; background: #1b242c; color: var(--text); text-align: left; }
.player-card:hover, .player-card.is-selected { background: #263744; border-color: #7ea7bd; }
.player-card.is-friendly { background: #192b2c; border-left-color: var(--green); }
.player-avatar { display: block; width: 34px; height: 34px; object-fit: cover; border-radius: 5px; background: #263b48; }
.avatar-placeholder { display: grid; place-items: center; color: #aac6d7; font-size: 14px; }
.player-copy { display: grid; align-content: start; gap: 5px; min-width: 0; }
.player-copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.player-copy small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 10px; }
.player-distance { display: grid; align-content: start; gap: 5px; text-align: right; font-size: 11px; font-weight: 600; }
.player-distance small { color: var(--muted); font-size: 9px; font-weight: 400; }
.player-equipment { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; padding-top: 4px; color: var(--muted); font-size: 9px; }
.player-equipment span { display: flex; justify-content: space-between; gap: 2px; }
.player-equipment b { color: var(--text); font-size: 9px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-equipment span:first-child { color: var(--green); }
.player-equipment span:nth-child(2) { color: var(--yellow); }
.player-health { grid-column: 1 / -1; height: 2px; background: #3a505c; overflow: hidden; }
.player-health i { display: block; height: 100%; background: var(--green); }
.player-health.is-unknown { background: transparent; border-bottom: 1px dashed #4a6377; }
.roster-empty { display: grid; justify-items: center; gap: 12px; padding: 64px 12px; color: var(--muted); }
.roster-empty .lucide { width: 30px; height: 30px; color: #7597ad; }
.roster-empty strong { font-size: 13px; font-weight: 500; }
.roster-empty span { font-size: 11px; }
.loot-roster { flex-shrink: 0; max-height: 32%; overflow-y: auto; border-top: 1px solid var(--line); font-size: 11px; }
.loot-roster summary { position: sticky; top: 0; padding: 13px; background: #1b303b; color: #c5dce5; cursor: pointer; }
.loot-roster summary span { color: var(--muted); margin-left: 4px; }
.loot-row { display: flex; width: 100%; justify-content: space-between; gap: 10px; text-align: left; border: 0; border-bottom: 1px solid #2d3b47; background: transparent; padding: 12px; color: var(--text); font-size: 11px; }
.loot-row span { overflow-wrap: anywhere; }
.loot-row small { color: var(--muted); white-space: nowrap; }
.empty-hint { padding: 12px 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.loot-roster .empty-hint { padding: 10px 12px; font-size: 11px; }
.command-dock { display: flex; align-items: center; gap: 5px; position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 20; padding: 6px; width: max-content; max-width: calc(100% - 24px); background: #101c28f5; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.command-dock button, .more-menu button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; background: transparent; color: var(--text); border: 0; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.command-dock button:hover, .more-menu button:hover { background: #233747; }
.command-dock button[aria-expanded=true], .command-dock button[aria-pressed=true] { background: var(--soft); color: var(--accent); }
.command-dock #followButton[aria-pressed=true] { background: var(--green); color: #103e35; }
.dock-divider { width: 1px; height: 22px; background: var(--line); margin: 0 3px; }
.map-tools { display: grid; position: absolute; right: 16px; top: 40%; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #141c24ed; z-index: 5; }
.map-tools .btn { width: 38px; height: 40px; min-height: 0; border: 0; background: transparent; padding: 0; }
.map-tools .btn:hover { background: #233747; }
.map-zoom-level { padding: 3px 0; min-width: 38px; color: var(--muted); text-align: center; font: 10px/1.5 Consolas, monospace; }
.assetHint { position: absolute; left: 16px; right: auto; bottom: 12px; max-width: calc(100% - 32px); padding: 5px 8px; gap: 8px; border: 0; border-radius: 4px; background: #101c28c9; color: #b8cbd7; font: 10px/1.5 inherit; pointer-events: none; z-index: 4; }
.assetHint b { min-width: 34px; color: #d3e2ea; font-size: 10px; }
.assetHint span { font-size: 10px; }
.settings-panel { position: absolute; right: 16px; top: 16px; bottom: 92px; width: 400px; max-width: calc(100% - 32px); display: flex; flex-direction: column; z-index: 30; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.settings-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; padding: 8px 10px; gap: 4px; border-bottom: 1px solid var(--line); background: #17232d; }
.settings-tabs button { min-height: 38px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; }
.settings-tabs button[aria-selected=true] { color: #c6eaff; border-color: #477591; background: #284558; }
.settings-body { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.side-section { margin: 0; padding: 18px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; box-shadow: none; }
.side-section::before { display: none; }
.side-section h2, .section-title h2 { margin: 0 0 12px; color: var(--text); font-size: 13px; font-weight: 650; }
.section-title { margin-bottom: 0; }
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 20px; }
.control-grid label, .setting-line { min-height: 42px; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 12px; color: #c3d3df; font-size: 12px; }
.setting-line { flex-direction: row; }
.range-row { grid-template-columns: 1fr auto; gap: 10px; margin-top: 18px; color: #c3d3df; font-size: 12px; }
.range-row input[type=range] { grid-column: 1 / -1; grid-row: 2; height: 28px; margin: 0; }
.range-row output { color: var(--accent); font-size: 11px; }
.range-row input[type=number] { grid-column: 1 / -1; grid-row: 2; height: 38px; padding: 8px 10px; }
.settings-body > div > .empty-hint { margin: 0; padding: 20px 16px; }
.more-menu { position: absolute; bottom: 88px; left: 50%; transform: translateX(-50%); z-index: 40; display: grid; grid-template-columns: 1fr 1fr; width: 310px; max-width: calc(100% - 24px); padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.more-menu button { justify-content: flex-start; }
.entity-detail { position: absolute; top: 16px; right: 76px; width: 296px; max-width: calc(100% - 32px); max-height: calc(100% - 110px); overflow-y: auto; z-index: 31; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
#entityDetailBody { padding: 16px; }
.detail-person { display: flex; gap: 12px; align-items: center; }
.detail-person h2 { margin: 5px 0; font-size: 16px; overflow-wrap: anywhere; }
.detail-person small { color: var(--muted); font-size: 11px; }
.detail-person .player-avatar { width: 44px; height: 44px; flex-shrink: 0; }
.detail-fields { margin: 16px 0 0; font-size: 12px; }
.detail-fields div { display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.detail-fields dt { color: var(--muted); }
.detail-fields dd { margin: 0; overflow-wrap: anywhere; }
.panel-backdrop { position: absolute; inset: 0; z-index: 25; background: #0007; border: 0; }
.orbit-dialog { padding: 0; width: min(430px, calc(100% - 24px)); max-height: calc(100dvh - 32px); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 70px #0007; }
.orbit-dialog::backdrop { background: #02080eaa; }
.dialog-body { padding: 18px; }
.dialog-body .side-section { padding: 18px 0; }
.header-user { display: grid; text-align: left; gap: 7px; padding: 0 0 18px; border-right: 0; }
.header-user strong { color: var(--text); font: 600 18px/1.4 inherit; overflow-wrap: anywhere; }
.header-user span { color: var(--muted); font-size: 12px; }
#connectionInfoSlot .pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: 11px; line-height: 1.6; }
.logout-button { width: 100%; margin-top: 18px; color: var(--red); }
.ui-toast { position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%); z-index: 100; padding: 12px 18px; max-width: calc(100% - 24px); background: var(--surface-3); color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12px; }
.radar3d-hud { position: static; width: auto; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.radar3d-hud-head { border-color: var(--line); padding: 12px 16px; }
.radar3d-hud-head strong { color: var(--text); }
.radar3d-hud-head span { color: var(--muted); }
.radar3d-status-line { color: var(--muted); }
.radar3d-status-line b { color: var(--text); }
.radar3d-hud.is-collapsed .radar3d-hud-body { display: block; }
.radar3d-view-target { padding: 12px 16px; border-color: var(--line); color: var(--muted); font-size: 12px; }
.radar3d-view-target select { height: 36px; border-radius: 5px; border-color: var(--line); background: #101923; color: var(--text); }
.radar3d-hud-actions { padding: 12px 16px; gap: 8px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.radar3d-hud-actions button, .radar3d-hud-actions label { border-color: var(--line); background: transparent; color: #c3d3df; border-radius: 5px; min-height: 38px; font-size: 11px; }
.radar3d-hud-actions button.active { border-color: var(--accent); color: var(--accent); background: var(--soft); }
.radar3d-marker-size, .radar3d-render-scale { padding: 12px 16px; color: var(--muted); font-size: 12px; }
.radar3d-marker-size output, .radar3d-render-scale output { color: var(--accent); }
.radar3d-loading { background: #05080ae8; }
.radar3d-loading-card { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; background: var(--surface); }
.radar3d-loading-card span { color: var(--muted); }
.radar3d-mini-map { top: 16px; left: auto; right: 16px; width: 240px; transform: none; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.radar3d-mini-map-drag-handle { background: #142332ed; border-color: var(--line); color: var(--muted); }
.radar3d-mini-map-controls { background: #142332ed; border-color: var(--line); border-radius: 4px; }
.radar3d-mini-map-lock, .radar3d-mini-map-controls button, .radar3d-mini-map-controls output { color: var(--text); }
.camera-modes { position: absolute; bottom: 88px; left: 50%; transform: translateX(-50%); z-index: 19; display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.camera-modes button { min-width: 48px; height: 32px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; }
.camera-modes button.active { color: var(--accent); background: var(--soft); }
body.radar3d-focus-mode .command-dock { display: flex; }
body.radar3d-focus-mode .map-heading { display: none; }
body.radar3d-focus-mode .camera-modes { display: flex; }

.room-code-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; }
.room-code { font: 600 38px/1.2 ui-monospace, monospace; color: var(--accent); letter-spacing: 0; }
#shareKeyHint { line-height: 1.7; }

/* Shared account and management surfaces use the same palette. */
.auth-page { width: min(1200px, calc(100% - 64px)); margin: 0 auto; display: block; min-height: 100dvh; background: var(--bg); }
.auth-brand, .auth-login-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 82px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; }
.auth-brand .brand-mark { gap: 12px; }
.brand-symbol, .auth-login-brand .brand-symbol { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #7bccf466; border-radius: 50%; clip-path: none; background: transparent; color: var(--accent); font: 700 20px/1 sans-serif; }
.auth-brand-name strong { font-size: 18px; }
.auth-brand-name small { display: none; }
.auth-brand-copy, .auth-brand-meta, .auth-brand > div:not(.brand-mark), .auth-brand > small { display: none; }
.auth-stage { padding: 48px 0 36px; display: grid; place-items: start center; }
.auth-form { width: min(420px, 100%); padding: 0; border: 0; background: transparent; box-shadow: none; }
.auth-form h2 { font-size: 22px; margin: 24px 0 8px; }
.auth-form > p { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.auth-form .form-label { color: #c3d3df; font-size: 13px; }
.auth-fields { gap: 16px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.auth-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; min-height: 44px; background: transparent; color: var(--muted); }
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); background: transparent; }
.auth-switch { font-size: 12px; }
.admin-auth-brand { background: none; }
.admin-auth-brand .brand-symbol { color: var(--accent); background: transparent; }
.admin-login-badge { color: var(--accent); border-color: var(--line); background: var(--soft); }
.admin-nav { background: var(--surface); border-color: var(--line); }
.nav-button { color: var(--muted); }
.nav-button.active { background: var(--soft); color: var(--accent); border-bottom-color: var(--accent); }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: 6px; box-shadow: none; }
.stat-card.accent { border-left-color: var(--accent); }
.content-panel { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 20px 0; }
.data-table th { background: var(--surface-3); color: #bed4e5; }
.data-table tr:hover td { background: var(--surface); }
.setting-group { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.modal { border-radius: 8px; }
.toast { background: var(--surface); }
@media (max-width: 1000px) {
  .radar-header { gap: 14px; }
  .brand-mark small { display: none; }
  .assetHint { bottom: 4px; left: 8px; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .radar-header { height: 48px; padding: 0 10px; gap: 10px; }
  .radar-header .brand-mark { font-size: 14px; gap: 6px; }
  .brand-mark > .lucide { width: 23px; height: 23px; }
  .radar-header #status { margin-left: auto; max-width: 100px; font-size: 10px; }
  .header-actions { margin-left: 0; gap: 0; }
  .header-actions > .btn:first-of-type { display: none; }
  .header-actions #adminLink { display: none; }
  .radar-view-switch { width: 72px; grid-template-columns: repeat(2,36px); height: 30px; }
  .radar-layout { height: calc(100dvh - 48px); }
  .map-heading { top: 10px; left: 10px; gap: 8px; }
  .map-heading-copy { min-width: 130px; padding: 9px 12px; }
  #mapStatus { font-size: 13px; }
  .map-count { padding: 10px; font-size: 11px; }
  .radar-sidebar { top: 76px; left: 8px; bottom: 96px; width: min(280px, calc(100% - 66px)); border-radius: 7px; }
  .map-tools { right: 8px; top: 34%; padding: 1px; }
  .map-tools .btn { width: 34px; height: 38px; }
  .map-zoom-level { min-width: 34px; }
  .command-dock { bottom: max(22px, env(safe-area-inset-bottom)); max-width: calc(100% - 16px); width: 390px; padding: 5px; gap: 2px; }
  .command-dock button { flex: 1; min-width: 0; min-height: 48px; padding: 6px 2px; flex-direction: column; gap: 5px; font-size: 10px; }
  .command-dock .lucide { width: 17px; height: 17px; }
  .dock-divider { display: none; }
  .settings-panel { top: 8px; right: 8px; bottom: 96px; width: 400px; max-width: calc(100% - 16px); }
  .entity-detail { top: 8px; right: 8px; width: 340px; max-width: calc(100% - 16px); max-height: calc(100% - 104px); }
  .assetHint { padding: 1px 3px; max-width: calc(100% - 16px); bottom: 1px; gap: 5px; }
  .assetHint span { font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .radar3d-mini-map { top: 76px; left: auto; right: 8px; width: min(160px,42%); }
  .camera-modes { bottom: 90px; }
  .more-menu { bottom: 90px; }
  .auth-page { width: calc(100% - 32px); }
  .auth-brand, .auth-login-brand { min-height: 66px; }
  .auth-stage { padding-top: 28px; }
  .auth-form h2 { font-size: 21px; }
}
@media (max-width: 360px) {
  .radar-header #status { max-width: 65px; }
  .radar-header { gap: 7px; }
  .control-grid { gap: 0 12px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .radar-header { height: 42px; }
  .radar-layout { height: calc(100dvh - 42px); }
  .radar-sidebar, .settings-panel { top: 8px; bottom: 75px; }
  .command-dock { bottom: 12px; }
  .camera-modes { bottom: 72px; }
  .assetHint { display: none; }
}
.orbit-auth { overflow-y: auto; }
.orbit-auth .auth-page { max-width: 1180px; }
.orbit-auth .auth-brand-name { display: flex; align-items: baseline; gap: 12px; }
.orbit-auth .auth-brand-name small { display: inline; font-size: 12px; font-weight: 400; color: var(--muted); }
.orbit-auth .brand-mark { text-decoration: none; color: var(--text); }
.auth-header-label { color: var(--muted); font-size: 12px; }
.auth-workspace { display: grid; grid-template-columns: minmax(0,1fr) 400px; min-height: 620px; margin: 48px 0 40px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.auth-map { position: relative; min-height: 580px; overflow: hidden; background: #17252a; border-right: 1px solid var(--line); }
.auth-map-image { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; }
.auth-map-top, .auth-map-footer { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; background: #101c24ee; font-size: 12px; color: #c9dae5; }
.auth-map-top { top: 0; border-bottom: 1px solid #ffffff18; }
.auth-map-top span, .auth-map-footer span { display: inline-flex; align-items: center; gap: 8px; }
.auth-map .lucide { width: 16px; height: 16px; color: var(--accent); }
.auth-map-cross { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.auth-map-cross .lucide { width: 64px; height: 64px; color: #d0f2ff; stroke-width: 1; }
.auth-map-caption { position: absolute; bottom: 64px; left: 0; right: 0; padding: 26px 30px; background: #101c24f0; }
.auth-map-caption > span { font-size: 12px; color: var(--accent); }
.auth-map-caption h1 { font-size: 28px; margin: 8px 0 10px; font-weight: 600; }
.auth-map-caption p { color: #b7cbd8; font-size: 13px; margin: 0; }
.auth-map-footer { bottom: 0; min-height: 64px; border-top: 1px solid #ffffff18; }
.orbit-auth .auth-stage { display: flex; flex-direction: column; padding: 46px 34px 28px; background: var(--surface); align-items: stretch; justify-content: flex-start; }
.auth-section-label { color: var(--accent); font-size: 10px; }
.auth-welcome h2 { font-size: 24px; font-weight: 600; margin: 14px 0 10px; }
.auth-welcome p { color: var(--muted); font-size: 13px; margin: 0 0 26px; }
.orbit-auth .auth-tabs { margin-bottom: 28px; }
.orbit-auth .auth-tab { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; }
.orbit-auth .auth-tab .lucide { width: 16px; height: 16px; }
.orbit-auth .auth-form { width: 100%; }
.orbit-auth .auth-fields { display: grid; gap: 10px; }
.orbit-auth .form-label { margin: 0; }
.auth-input { position: relative; margin-bottom: 10px; }
.auth-input > .lucide { position: absolute; left: 13px; top: 15px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.auth-input .form-input { height: 46px; padding-left: 40px; padding-right: 42px; border-radius: 5px; background: var(--bg); }
.auth-input .password-toggle { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; }
.orbit-auth .auth-submit { height: 46px; justify-content: center; display: flex; align-items: center; gap: 12px; margin: 0; }
.orbit-auth .auth-submit .lucide { width: 17px; height: 17px; }
.orbit-auth .auth-switch { margin-top: 24px; text-align: center; color: var(--muted); line-height: 24px; }
.orbit-auth .auth-switch a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); }
.orbit-auth .auth-switch .lucide { width: 13px; height: 13px; }
.auth-stage-footer { display: flex; justify-content: center; gap: 6px; align-items: center; font-size: 10px; color: #758d9f; margin-top: auto; padding-top: 36px; }
.auth-stage-footer .lucide { width: 13px; height: 13px; }
.room-input { height: 66px; text-align: center; font: 500 32px/1 ui-monospace,monospace; letter-spacing: 0; }
.room-login-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; margin: 2px 0 28px; }
.room-login-note .lucide { width: 14px; height: 14px; }
.auth-page-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 20px 0; color: #668091; font-size: 10px; }
@media(max-width: 860px) { .auth-workspace { grid-template-columns: minmax(0,1fr) 360px; margin-top: 28px; } .orbit-auth .auth-stage { padding: 36px 24px 26px; } .auth-map-footer { flex-wrap: wrap; } }
@media(max-width: 680px) { .auth-workspace { display: block; min-height: 0; margin: 24px 0; border: 0; overflow: visible; } .auth-map { min-height: 152px; border: 1px solid var(--line); border-radius: 6px; } .auth-map-image { object-position: center 43%; } .auth-map-top { padding: 10px 12px; font-size: 10px; } .auth-map-caption { bottom: 0; padding: 12px 16px; } .auth-map-caption > span, .auth-map-caption p, .auth-map-footer, .auth-map-cross { display: none; } .auth-map-caption h1 { font-size: 20px; margin: 0; } .orbit-auth .auth-stage { padding: 28px 8px 12px; background: transparent; } .auth-welcome h2 { margin: 0 0 8px; font-size: 22px; } .auth-section-label { display: none; } .auth-welcome p { margin-bottom: 20px; } .orbit-auth .auth-tabs { margin-bottom: 22px; } .auth-stage-footer { padding-top: 28px; } .auth-page-footer { padding: 16px 0; } .auth-header-label { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
