@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500;600&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --carbon: #080b0e;
  --surface: #11171c;
  --ink: #e9eef1;
  --muted: #91a1ac;
  --cyan: #61dbe7;
  --magenta: #e983bd;
  --amber: #edac60;
  --line: #ffffff1c;
  --line-strong: #ffffff36;
  --utility: "IBM Plex Mono", monospace;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-family: "Noto Sans SC", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; letter-spacing: 0; }
html, body { margin: 0; min-height: 100%; background: var(--carbon); color: var(--ink); }
body { font-size: 14px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
button, input, select, a { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--cyan); }
button, input, select { border-radius: 2px; }
button { border: 0; }
input, select { color: var(--ink); background: #11171c; border: 1px solid var(--line-strong); }
input { min-width: 0; }
input::placeholder { color: #75828c; }
select { padding: 10px 12px; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
h1 { font-size: 28px; font-weight: 600; line-height: 1.4; }
h2 { font-size: 25px; line-height: 1.4; }
h3 { font-size: 14px; font-weight: 600; }
svg.lucide { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.6; }
[hidden] { display: none !important; }
.muted, .data-note { color: var(--muted); }
.cyan { color: var(--cyan); }
.error { color: #ff9c9c !important; }
.overline, .small-label { font-family: var(--utility); font-size: 10px; line-height: 1.6; color: var(--muted); font-weight: 500; }
.overline { margin-bottom: 10px; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); vertical-align: middle; margin-right: 7px; box-shadow: 0 0 9px #61dbe755; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 29px; font-weight: 800; white-space: nowrap; }
.brand-symbol { display: flex; align-items: center; font-family: var(--display); font-style: italic; font-size: 39px; font-weight: 900; color: var(--cyan); line-height: 1; }
.brand-symbol span { color: #e9eef1; margin-left: -5px; }
.brand-cn { padding-left: 14px; border-left: 1px solid var(--line-strong); font-family: "Noto Sans SC", sans-serif; font-size: 14px; font-weight: 600; color: var(--muted); }
.icon-btn { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; background: transparent; color: var(--muted); flex-shrink: 0; }
.icon-btn:hover { background: #ffffff0b; color: var(--cyan); }
.quiet-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: transparent; padding: 10px 14px; color: var(--muted); font-size: 12px; min-height: 40px; border: 1px solid var(--line); }
.quiet-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.deploy-primary { display: flex; align-items: center; justify-content: space-between; gap: 22px; width: 100%; min-height: 60px; padding: 17px 24px; background: var(--cyan); color: #071318; font-weight: 700; font-size: 17px; text-align: left; border: 1px solid #97eff4; box-shadow: 0 4px 24px #41d9e018; }
.deploy-primary:hover { background: #a0f0f4; }
.deploy-primary small { display: block; font-family: var(--utility); font-size: 9px; margin-bottom: 5px; opacity: .65; font-weight: 500; }
.deploy-primary svg { width: 23px; height: 23px; }
.city-backdrop { position: fixed; inset: 0; pointer-events: none; background: url('assets/ui/neon-city.webp') center center / cover no-repeat; }
.access-page { min-height: 100svh; position: relative; display: flex; flex-direction: column; }
.access-page .city-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #050a1166, transparent 28%, transparent 68%, #060a12dd); }
#atmosphere-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.access-header, .access-footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.access-header { min-height: 108px; padding: 26px 5%; border-bottom: 1px solid #ffffff12; }
.secure-label { display: flex; align-items: center; gap: 10px; color: #abb9c6; font: 10px var(--utility); }
.secure-label svg { color: var(--cyan); width: 16px; }
.access-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 410px; align-items: center; gap: 9%; width: 88%; max-width: 1376px; margin: auto; padding: 52px 0; flex: 1; }
.access-title { align-self: center; padding-bottom: 20px; text-shadow: 0 3px 25px #0009; }
.access-title .overline { color: #d4e8ed; font-size: 11px; }
.access-title h1 { font: 800 104px/.9 var(--display); margin: 25px 0 24px; color: #f6f8fa; }
.access-title h1 span { display: block; font-family: "Noto Sans SC", sans-serif; font-size: 44px; font-weight: 800; margin-top: 17px; }
.access-tagline { font-size: 17px; color: #c5d1da; }
.location-stamp { display: flex; flex-direction: column; border-left: 2px solid var(--magenta); padding: 2px 0 2px 18px; margin-top: 78px; }
.location-stamp > span { color: #b8c7d3; font-size: 10px; }
.location-stamp strong { font-size: 18px; font-weight: 500; margin: 5px 0; }
.location-stamp small { font: 9px var(--utility); color: #98aaba; }
.access-terminal { position: relative; background: #0c1219ed; border: 1px solid #6ab5ca55; box-shadow: 0 22px 80px #0008; backdrop-filter: blur(12px); border-radius: 3px; }
.access-terminal::before, .access-terminal::after { content: ''; position: absolute; width: 22px; height: 22px; pointer-events: none; border-color: var(--cyan); border-style: solid; }
.access-terminal::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.access-terminal::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.terminal-topline, .terminal-bottom { display: flex; justify-content: space-between; align-items: center; font: 9px var(--utility); color: #899ba9; padding: 14px 24px; }
.terminal-topline { border-bottom: 1px solid var(--line); background: #67a3b006; }
.terminal-topline > span:first-child { font-family: "Noto Sans SC", sans-serif; font-size: 10px; color: #bed2dc; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 28px; border-bottom: 1px solid var(--line); }
.auth-tabs button { background: transparent; padding: 20px 4px 16px; color: #8e9ba7; font-size: 13px; border-radius: 0; border-bottom: 2px solid transparent; }
.auth-tabs button[aria-selected="true"] { color: var(--cyan); border-color: var(--cyan); }
.auth-content { padding: 28px 30px 18px; }
.auth-content .overline { font-size: 9px; color: #7999ac; margin-bottom: 6px; }
.auth-content h2 { font-size: 24px; font-weight: 500; margin-bottom: 28px; }
#auth-form label { display: flex; justify-content: space-between; margin: 18px 0 8px; color: #c8d0d8; font-size: 12px; }
#auth-form label span { font: 9px var(--utility); color: #718595; align-self: end; }
.input-shell { display: flex; align-items: center; border: 1px solid #34414d; background: #0a1016c9; padding: 0 12px; height: 48px; }
.input-shell:focus-within { border-color: var(--cyan); }
.input-shell > svg { width: 15px; color: #91a7b5; margin-right: 10px; }
.input-shell input { width: 100%; background: transparent; border: 0; height: 100%; font-size: 12px; outline: 0; }
.input-shell .icon-btn { margin-right: -6px; width: 30px; }
.input-shell .icon-btn svg { width: 16px; }
.form-message { font-size: 11px; line-height: 1.6; min-height: 42px; padding: 12px 0 8px; color: var(--muted); }
.auth-content .deploy-primary { min-height: 52px; font-size: 14px; padding: 12px 18px; }
.guest-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: #71808b; font: 9px var(--utility); }
.guest-divider::before, .guest-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.guest-entry { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; padding: 10px 15px; background: #111a22; color: #c7d4dc; border: 1px solid #3a4b57; text-align: left; }
.guest-entry:hover { border-color: #6d98a5; background: #15222b; color: var(--ink); }
.guest-entry > span { display: grid; grid-template-columns: 28px 1fr; align-items: center; column-gap: 3px; }
.guest-entry > span > svg { grid-row: 1 / 3; width: 18px; color: var(--cyan); }
.guest-entry b { font-size: 12px; font-weight: 600; }
.guest-entry small { color: #82939f; font-size: 9px; margin-top: 3px; }
.guest-entry > svg { width: 16px; color: #788b97; }
.auth-footnote { margin: 21px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #97a9b6; font-size: 10px; }
.auth-footnote svg { width: 15px; }
.terminal-bottom { border-top: 1px solid var(--line); font-size: 8px; padding: 11px 24px; }
.access-footer { min-height: 74px; padding: 14px 5%; color: #879cae; font: 9px var(--utility); border-top: 1px solid #ffffff15; }
.access-footer b { color: var(--magenta); margin: 0 10px; }
.access-footer .quiet-btn { border: 0; font-size: 10px; padding-right: 0; }
.access-footer .quiet-btn[aria-pressed="true"] { color: #d1e4eb; }
.beian-link { color: inherit; text-decoration: none; opacity: .85; }
.beian-link:hover { color: var(--cyan); text-decoration: underline; }
.beian-sep { opacity: .5; }
.hub-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); color: var(--muted); font: 10px var(--utility); letter-spacing: .14em; }
.hub-link:hover { color: var(--cyan); border-color: #67c3d560; background: #ffffff08; }
.hub-link svg { width: 14px; height: 14px; }
.access-header-actions { display: flex; align-items: center; gap: 14px; }
.back-command + .back-command { margin-left: 20px; }
.command-page { min-height: 100vh; }
.command-page .city-backdrop { opacity: .13; background-position: center; }
.command-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 78px; padding: 0 30px; border-bottom: 1px solid var(--line); background: #080c10f5; }
.command-header .wordmark { font-size: 25px; }
.command-header .brand-symbol { font-size: 33px; }
.header-sector { display: flex; align-items: center; gap: 8px; font: 9px var(--utility); }
.header-sector .muted { margin-left: 15px; font-family: "Noto Sans SC", sans-serif; }
.header-actions { display: flex; align-items: center; gap: 17px; }
.connection-label { font-size: 10px; color: var(--muted); max-width: 140px; overflow-wrap: anywhere; }
.operator-avatar { display: grid; place-items: center; width: 34px; height: 34px; font: 600 16px var(--display); border: 1px solid #67c3d560; background: #122b32; color: var(--cyan); }
.command-layout { position: relative; display: grid; grid-template-columns: 174px minmax(0, 1fr); min-height: calc(100vh - 78px); }
.command-nav { border-right: 1px solid var(--line); background: #0b1015dc; padding: 34px 12px 20px; display: flex; flex-direction: column; justify-content: space-between; }
.command-nav button { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 45px; padding: 12px 15px; background: transparent; color: #99a6b1; text-align: left; border-radius: 0; border-left: 2px solid transparent; font-size: 12px; margin-bottom: 5px; }
.command-nav button svg { width: 16px; height: 16px; }
.command-nav button:hover { color: var(--ink); background: #ffffff05; }
.command-nav button.active { color: var(--cyan); border-left-color: var(--cyan); background: #57d9e60b; }
.nav-divider { height: 1px; background: var(--line); margin: 23px 13px; }
.nav-bottom { margin-top: 70px; }
.nav-bottom p { padding: 30px 15px 0; color: #748490; font: 600 13px var(--display); }
.nav-bottom p span { display: block; font: 8px var(--utility); margin-top: 5px; color: #52616d; }
.command-main { min-width: 0; padding: 35px 38px 0; outline: none; }
.view-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
.view-heading .overline { margin-bottom: 6px; font-size: 9px; }
.heading-slash { color: #4c6778; padding: 0 5px; }
.heading-sub { font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.view-heading .small-label { font-size: 9px; padding-bottom: 7px; }
.view-heading .status-dot { margin: 0 0 0 8px; }
.operator-stage { position: relative; min-height: 533px; border-top: 1px solid var(--line); }
#operator-canvas { position: absolute; left: 0; top: 0; width: calc(100% - 320px); height: 100%; min-height: 500px; touch-action: pan-y; }
.operator-identity { position: absolute; z-index: 1; top: 23px; left: 0; max-width: calc(100% - 340px); pointer-events: none; }
.operator-identity .overline { color: #84c4cd; font-size: 8px; }
.operator-identity h2 { font-size: 25px; font-weight: 600; text-shadow: 0 2px 15px #000; }
.operator-designation { color: #91a6b3; font-size: 10px; margin: 7px 0 12px; }
.identity-tags { display: flex; flex-wrap: wrap; gap: 9px; font-size: 9px; }
.identity-tags span { display: flex; align-items: center; gap: 5px; }
.identity-tags svg { width: 12px; height: 12px; }
.identity-tags span + span { padding-left: 9px; border-left: 1px solid #45606c; }
.operator-status { position: absolute; top: 50%; left: 20%; color: var(--muted); font-size: 12px; }
.operator-status:empty { display: none; }
.operator-caption { position: absolute; bottom: 19px; left: 0; font-size: 9px; color: #b3c5ce; }
.operator-caption > span:last-child { font: 8px var(--utility); color: #9aafbd; margin-left: 18px; }
.overview-intel { position: relative; margin-left: auto; width: 306px; padding: 22px 0 12px 23px; border-left: 1px solid #ffffff0d; background: #0a101679; }
.section-line { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.section-line > svg { color: #738591; width: 15px; }
.rank-panel { padding-bottom: 17px; }
.rank-line { display: flex; align-items: center; gap: 13px; padding: 20px 0 16px; }
.rank-emblem { width: 49px; height: 54px; display: grid; place-items: center; background: #1b2530; clip-path: polygon(50% 0, 100% 24%, 100% 72%, 50% 100%, 0 72%, 0 24%); }
.rank-emblem svg { width: 27px; height: 27px; color: #9eafc1; }
.rank-line strong { display: block; font-size: 19px; font-weight: 500; }
.rank-line small { display: block; font-size: 9px; color: var(--muted); margin-top: 3px; }
.rank-number { margin-left: auto; font: 500 28px var(--display); text-align: right; }
.rank-number small { font-family: "Noto Sans SC", sans-serif; }
.experience-line { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.experience-line b { color: #c3cdd6; margin-left: 7px; }
.experience-track { height: 3px; background: #ffffff15; margin: 9px 0; }
.data-note { font-size: 9px; line-height: 1.6; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 17px 0; }
.stat-strip > div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.stat-strip span { display: block; font-size: 9px; color: var(--muted); }
.stat-strip strong { display: block; font: 600 33px var(--display); margin-top: 3px; }
.stat-strip small { font: 10px var(--utility); color: #718795; margin-left: 4px; }
.loadout-panel { padding: 16px 0 18px; }
.loadout-panel .section-line { margin-bottom: 10px; }
.loadout-panel .icon-btn { width: 26px; height: 26px; }
.loadout-panel .overline { font-size: 8px; color: #789ba7; margin-bottom: 5px; }
#loadout-name { font: 600 29px var(--display); }
.loadout-detail { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); padding: 4px 0 16px; }
.equipment-row { display: flex; align-items: center; gap: 7px; font-size: 9px; color: #93a2ad; border-top: 1px solid var(--line); padding-top: 14px; }
.equipment-row svg { width: 13px; height: 13px; color: #b1bfcb; }
.equipment-row svg:nth-of-type(2) { margin-left: auto; }
.overview-intel .deploy-primary { min-height: 65px; padding: 13px 20px; font-size: 18px; }
.recent-section { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.empty-history { display: flex; align-items: center; gap: 15px; padding: 23px 0 7px; color: var(--muted); font-size: 11px; }
.empty-history > svg { width: 25px; height: 25px; color: #576c7e; }
.empty-history strong { display: block; font-size: 12px; font-weight: 500; color: #bac8d2; margin-bottom: 5px; }
.history-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 15px; align-items: center; padding: 15px 0; border-bottom: 1px solid #ffffff0d; font-size: 11px; }
.history-row span:not(:first-child) { color: var(--muted); font-size: 10px; }
.command-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 8px var(--utility); color: #97abb7; border-top: 1px solid var(--line); min-height: 48px; }
.page-message { padding: 12px 15px; margin-bottom: 15px; font-size: 12px; border: 1px solid #c6985166; background: #322719; color: #f3d1a0; }
.map-selector { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 25px 0; }
.map-option { text-align: left; background: #121b23; border: 1px solid var(--line); padding: 0; overflow: hidden; }
.map-option.selected { border-color: var(--cyan); }
.map-option:hover { border-color: #93b6c6; }
.map-option img { display: block; width: 100%; aspect-ratio: 1.45; object-fit: cover; background: #1a242c; }
.map-option strong { display: block; font-size: 12px; padding: 13px 12px 5px; font-weight: 500; }
.map-option small { display: block; font: 8px var(--utility); color: var(--muted); padding: 0 12px 13px; }
.deployment-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; padding: 12px 0 36px; }
.deployment-art { min-height: 310px; background: #121b23; position: relative; }
.deployment-art img { display: block; width: 100%; height: 100%; min-height: 310px; object-fit: cover; }
.deployment-art .image-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 25px; background: linear-gradient(transparent, #080c10e8); }
.image-label strong { display: block; font-size: 22px; margin-bottom: 4px; }
.image-label span { font: 10px var(--utility); color: #c0d3df; }
.deployment-details { padding: 8px 0; }
.deployment-details h2 { margin: 9px 0 12px; }
.deployment-details > p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.detail-list { margin: 20px 0 27px; }
.detail-list div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; }
.deployment-details .quiet-btn { margin-top: 10px; width: 100%; }
.mode-segments { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: 25px 0 12px; }
.mode-segments button { padding: 13px 22px; background: transparent; border-bottom: 2px solid transparent; color: var(--muted); border-radius: 0; }
.mode-segments button.active { border-color: var(--cyan); color: var(--cyan); }
.rooms-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 35px 0 60px; }
.room-entry { border-top: 2px solid var(--cyan); padding-top: 25px; }
.room-entry + .room-entry { border-color: var(--magenta); }
.room-entry > svg { width: 30px; height: 30px; color: var(--muted); margin-bottom: 24px; }
.room-entry h2 { font-size: 23px; margin-bottom: 12px; }
.room-entry p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 22px; }
.room-entry label { display: block; font-size: 11px; color: var(--muted); margin: 20px 0 8px; }
.room-entry input { width: 100%; height: 50px; padding: 12px 15px; margin-bottom: 18px; text-transform: uppercase; }
.room-entry .deploy-primary { min-height: 54px; font-size: 14px; }
.room-features { display: flex; gap: 20px; color: #b6cad6; font-size: 10px; padding: 24px 0; }
.arsenal-layout, .archive-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; min-height: 590px; margin-top: 25px; }
.asset-list { border-right: 1px solid var(--line); padding-right: 20px; }
.asset-list button { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; background: transparent; border-bottom: 1px solid var(--line); padding: 17px 10px; color: var(--muted); }
.asset-list button strong { display: block; color: #b5c3ce; font: 600 23px var(--display); margin-bottom: 3px; }
.asset-list button small { font-size: 10px; }
.asset-list button svg { width: 13px; }
.asset-list button.active { background: #60dbe60b; }
.asset-list button.active strong, .asset-list button.active svg { color: var(--cyan); }
.archive-layout .asset-list button strong { font: 500 14px "Noto Sans SC", sans-serif; margin-bottom: 6px; }
.asset-detail { min-width: 0; }
.asset-display { position: relative; height: 325px; border-bottom: 1px solid var(--line); }
.asset-display canvas { display: block; width: 100%; height: 100%; }
canvas.drag-preview, #operator-canvas.drag-preview { cursor: grab; touch-action: none; user-select: none; }
canvas.drag-preview.is-dragging { cursor: grabbing; }
.asset-status { position: absolute; top: 50%; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 12px; }
.asset-status:empty { display: none; }
.asset-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 23px 0; }
.asset-summary h2 { font: 600 34px var(--display); }
.asset-summary p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.asset-summary .deploy-primary { width: auto; min-width: 155px; min-height: 45px; padding: 10px 18px; font-size: 12px; }
.weapon-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.weapon-metrics span { color: var(--muted); font-size: 10px; }
.weapon-metrics strong { display: block; font: 500 26px var(--display); margin-top: 8px; }
.weapon-metrics small { font-size: 10px; color: var(--muted); margin-left: 4px; }
.archive-layout .asset-summary h2 { font: 500 23px "Noto Sans SC", sans-serif; }
.map-detail-copy { font-size: 12px; color: var(--muted); line-height: 1.9; padding: 12px 0 35px; }
.account-layout { max-width: 740px; padding: 35px 0 60px; }
.account-identity { display: flex; align-items: center; gap: 25px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.account-identity .operator-avatar { width: 76px; height: 80px; font-size: 40px; }
.account-identity h2 { font-size: 24px; margin-bottom: 8px; overflow-wrap: anywhere; }
.account-identity p { font: 10px var(--utility); color: var(--muted); overflow-wrap: anywhere; }
.account-data { margin: 15px 0 30px; }
.account-data div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.account-data dt { color: var(--muted); }
.account-data dd { margin: 0; overflow-wrap: anywhere; }
.account-data button { background: transparent; color: var(--cyan); margin-left: 8px; vertical-align: middle; }
.account-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.account-actions .danger { color: #f0a4ac; border-color: #b3556044; }
.guest-restriction { margin-top: 24px; padding: 18px 20px; border: 1px solid #b48a5466; background: #2a2118; color: #d9c09d; font-size: 11px; line-height: 1.8; }
.guest-restriction strong { display: block; margin-bottom: 5px; color: #f0d6b1; font-size: 13px; }
.system-dialog { width: min(780px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; color: var(--ink); background: #10161cfb; border: 1px solid #4b626e; box-shadow: 0 30px 100px #000a; border-radius: 4px; overflow: auto; }
.system-dialog::backdrop { background: #020609c9; backdrop-filter: blur(5px); }
.system-head { display: flex; justify-content: space-between; align-items: center; padding: 24px 27px; border-bottom: 1px solid var(--line); }
.system-head .overline { font-size: 9px; color: #74aebb; margin-bottom: 5px; }
.system-head h2 { font-size: 23px; }
.system-layout { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 365px; }
.system-tabs { padding: 20px 10px; border-right: 1px solid var(--line); }
.system-tabs button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; margin-bottom: 5px; background: transparent; color: var(--muted); font-size: 12px; border-left: 2px solid transparent; border-radius: 0; }
.system-tabs button[aria-selected="true"] { background: #57dbe90b; color: var(--cyan); border-color: var(--cyan); }
.system-tabs svg { width: 15px; height: 15px; }
.system-panels { padding: 27px; min-width: 0; }
.system-panels h3 { font-size: 16px; margin-bottom: 12px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 59px; border-bottom: 1px solid #ffffff0b; }
.setting-row label { font-size: 12px; flex-shrink: 0; }
.setting-row label small { display: block; color: #9a8a75; font-size: 9px; margin-top: 5px; }
.setting-row select { font-size: 11px; width: 156px; padding: 8px 10px; }
.setting-range { display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 55%; }
.setting-range input { width: 100%; min-width: 40px; accent-color: var(--cyan); height: 3px; cursor: pointer; }
.setting-range output { font: 10px var(--utility); text-align: right; min-width: 46px; color: #b5c5d1; }
.switch { appearance: none; position: relative; width: 34px; height: 19px; background: #323e48; border: 1px solid #4a5964; border-radius: 20px; cursor: pointer; flex-shrink: 0; }
.switch::before { content: ''; position: absolute; left: 3px; top: 3px; width: 11px; height: 11px; background: #9aa9b6; border-radius: 50%; transition: transform .15s; }
.switch:checked { background: #235660; border-color: #59a8b3; }
.switch:checked::before { transform: translateX(14px); background: #9bedf4; }
.system-footer { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); }
.system-footer > span { font-size: 10px; color: #8ca7b3; }
.system-footer button { font-size: 11px; border: 0; padding: 7px 9px; }
.reticle-preview { height: 60px; display: grid; place-items: center; }
.reticle-preview span { position: relative; width: 5px; height: 5px; background: var(--cyan); border-radius: 50%; }
.reticle-preview[data-style="cross"] span::before, .reticle-preview[data-style="cross"] span::after { content: ''; position: absolute; background: var(--cyan); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.reticle-preview[data-style="cross"] span::before { width: 23px; height: 1px; }
.reticle-preview[data-style="cross"] span::after { height: 23px; width: 1px; }
.reticle-preview[data-style="circle"] span { width: 20px; height: 20px; border: 1px solid var(--cyan); background: transparent; }
.battle-page { --yellow: var(--cyan); --yellow-soft: #a0b9c4; --green-950: #080b0e; --green-900: #11171c; --green-850: #151e26; --green-800: #172830; --green-700: #2c5662; }
.battle-page .menu-screen { background: linear-gradient(#090e14bb, #080b0ef8), url('assets/ui/neon-city.webp') center / cover fixed; height: 100vh; color: var(--ink); }
.battle-page h1, .battle-page h2 { color: var(--ink); letter-spacing: 0; }
.battle-page .eyebrow, .battle-page .field-label, .battle-page .mode-card-topline { color: #9ac2d0; letter-spacing: 0; }
.battle-page .menu-backdrop, .battle-page .brand-mark, .battle-page .hero-stats, .battle-page .brand-subtitle, .battle-page .briefing-copy, .battle-page .loadout-hint, .battle-page .room-entry-copy, .battle-page .menu-footer, .battle-page .control-hint, .battle-page .pause-copy, .battle-page .pause-hint { display: none; }
.battle-page .brand-lockup { margin: 25px 0; }
.battle-page .brand-lockup h1 { font-size: 32px; }
.battle-page .menu-shell { padding-top: 24px; }
.back-command { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 12px; padding: 7px 0; }
.battle-page .briefing-panel, .battle-page .room-panel { background: #0d151cec; border-color: #445463; box-shadow: none; }
.battle-page .mode-card, .battle-page .room-card { background: #141d24; border-color: #445865; border-radius: 3px; color: var(--ink); box-shadow: none; }
.battle-page .mode-card-primary { border-top-color: var(--cyan); }
.battle-page .mode-card-bot { border-top-color: var(--amber); }
.battle-page .room-card { border-top-color: var(--magenta); }
.battle-page .mode-card:hover { background: #1b2932; border-color: var(--cyan); }
.battle-page .mode-card strong, .battle-page .room-card strong { color: var(--ink); }
.battle-page .mode-card > span:not(.mode-card-topline), .battle-page .room-card > span,
.battle-page .room-card > strong + span, .battle-page .room-status { color: #b4c4cf; }
.battle-page .mode-card > .mode-card-action { color: #09171c; background: var(--cyan); }
.battle-page .mode-card-bot > .mode-card-action { background: var(--amber); }
.battle-page .room-card .field-label { color: #9ac2d0; }
.battle-page .panel-index { background: #182b34; color: var(--cyan); border-color: #467181; }
.battle-page .text-input { background: #0d151b; border-color: #49616e; color: var(--ink); }
.battle-page .text-input::placeholder { color: #99aeba; }
.battle-page .text-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px #61dbe726; }
.battle-page .text-input:disabled { color: #a4b4bf; background: #171e24; opacity: 1; cursor: not-allowed; }
.battle-page select option { background: #111a21; color: var(--ink); }
.battle-page .button { background: #19252d; color: #d2e0e7; border-color: #526976; letter-spacing: 0; }
.battle-page .button:hover { background: #253944; color: #e4f5fa; border-color: #78bbcd; }
.battle-page .button-primary { background: var(--cyan); color: #08171d; border-color: #8ce8ef; }
.battle-page .button-primary:hover { background: #91e7ed; color: #08171d; }
.battle-page .button-ghost { background: #111a21; color: #bdd5df; }
.battle-page .button:disabled { background: #202c34; color: #94a8b5; border-color: #455865; opacity: 1; cursor: not-allowed; box-shadow: none; }
.battle-page .room-panel-heading { border-color: #3b4f5c; }
.battle-page .room-code-block { background: #15262e; border-color: #426879; padding: 10px 14px; color: var(--ink); }
.battle-page .room-code-block span { color: #a3c2cf; letter-spacing: 0; }
.battle-page .room-code-block strong { color: var(--cyan); letter-spacing: 0; }
.battle-page .lobby-roster, .battle-page .lobby-settings { background: transparent; border: 0; }
.battle-page .lobby-roster { border-right: 1px solid var(--line); }
.battle-page .player-list li { background: #17232b; color: #d5e3ea; border-color: #3e5665; }
.battle-page .player-name { color: #d5e3ea; overflow-wrap: anywhere; min-width: 0; }
.battle-page .player-index, .battle-page .player-role { color: #a9c7d5; letter-spacing: 0; }
.battle-page .weapon-restrictions { border-top-color: #3a4e5b; }
.battle-page .weapon-restrictions label { background: #11191f; color: #aabecb; border-color: #445b69; letter-spacing: 0; }
.battle-page .weapon-restrictions label:has(input:checked) { background: #163039; color: #cae7ed; border-color: #3c8fa0; }
.battle-page .weapon-restrictions input { accent-color: var(--cyan); }
.battle-page .deployment-count { color: var(--amber); letter-spacing: 0; }
.battle-page .room-deployment-card { background: transparent; border: 0; }
.battle-page .settings-drawer { display: none !important; }
.battle-page .hud { opacity: var(--hud-opacity, 1); }
.battle-page[data-hit-feedback="false"] #hit-confirm, .battle-page[data-hit-feedback="false"] #kill-feedback { display: none !important; }
.battle-page[data-damage-direction="false"] #damage-direction { display: none !important; }
.battle-page[data-crosshair="dot"] .crosshair-line, .battle-page[data-crosshair="circle"] .crosshair-line { display: none; }
.battle-page[data-crosshair="circle"] .crosshair-dot { width: 18px; height: 18px; border: 1px solid #e9ffff; background: transparent; border-radius: 50%; }
.battle-page .pause-card, .battle-page .start-card, .battle-page .game-over-card { background: #101922f5; border-color: #456471; border-radius: 4px; }
.battle-page .pause-card { border-top-color: var(--cyan); }
.battle-page .pause-settings { background: #141f27; border-color: #3c5360; }
.battle-page .pause-settings label { color: var(--ink); }
.battle-page .pause-copy, .battle-page .pause-settings, .battle-page .pause-hint,
.battle-page .start-card p:not(.eyebrow), .battle-page #final-ranking li { color: #b2c5d1; }

@media (max-width: 760px) {
  .battle-page .lobby-roster { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (min-width: 1600px) {
  .command-main { padding-left: 55px; padding-right: 55px; }
  .operator-stage { min-height: 620px; }
  .overview-intel { width: 355px; padding-left: 28px; padding-top: 32px; }
  #operator-canvas { width: calc(100% - 370px); }
  .operator-identity { max-width: calc(100% - 390px); }
  .rank-panel { padding-bottom: 26px; }
  .stat-strip { padding: 23px 0; }
  .loadout-panel { padding: 24px 0; }
}
@media (max-width: 1150px) {
  .command-layout { grid-template-columns: 76px minmax(0, 1fr); }
  .command-nav { padding: 25px 8px; }
  .command-nav button { justify-content: center; padding: 14px 10px; }
  .command-nav button span, .nav-bottom p { display: none; }
  .command-main { padding: 28px 25px 0; }
  .header-sector { display: none; }
  .access-main { gap: 5%; grid-template-columns: minmax(0, 1fr) 370px; width: 90%; }
  .access-title h1 { font-size: 82px; }
  .access-title h1 span { font-size: 36px; }
  .map-selector { gap: 8px; }
  .map-option strong { font-size: 11px; padding-left: 8px; }
  .map-option small { padding-left: 8px; font-size: 7px; }
}
@media (max-width: 800px) {
  .access-header { padding: 22px 25px; min-height: 85px; }
  .access-main { grid-template-columns: 1fr; gap: 32px; max-width: 470px; padding: 30px 15px 40px; }
  .access-title { padding: 0; }
  .access-title h1 { font-size: 70px; margin: 17px 0 12px; display: flex; align-items: center; gap: 20px; }
  .access-title h1 span { font-size: 30px; margin: 0; }
  .access-tagline { font-size: 13px; }
  .location-stamp { display: none; }
  .access-footer { padding: 15px 25px; }
  .access-footer > span:nth-child(2) { display: none; }
  .access-page .city-backdrop { background-position: 35% center; }
  .access-terminal { background: #0c1219f2; }
  .command-header { padding: 0 18px; min-height: 66px; gap: 12px; }
  .command-header .brand-cn { display: none; }
  .header-actions { gap: 8px; }
  .connection-label { font-size: 9px; }
  .command-layout { grid-template-columns: 1fr; display: block; }
  .command-nav { position: sticky; top: 0; z-index: 4; display: flex; flex-direction: row; padding: 5px 8px; border-right: 0; border-bottom: 1px solid var(--line); background: #0b1015f7; overflow-x: auto; }
  .nav-main, .nav-bottom { display: flex; margin: 0; flex-shrink: 0; }
  .nav-divider, .nav-bottom p { display: none; }
  .command-nav button { flex-direction: column; gap: 5px; padding: 9px 15px; min-width: 64px; margin: 0; font-size: 9px; border-left: 0; border-bottom: 2px solid transparent; }
  .command-nav button span { display: block; white-space: nowrap; }
  .command-nav button.active { border-bottom-color: var(--cyan); }
  .command-main { padding: 23px 20px 0; }
  .view-heading h1 { font-size: 23px; }
  .view-heading > .small-label { display: none; }
  .operator-stage { padding-top: 400px; min-height: 0; }
  #operator-canvas { width: 100%; height: 400px; min-height: 0; }
  .operator-identity { max-width: 100%; top: 20px; }
  .operator-identity h2 { font-size: 23px; }
  .operator-caption { top: 367px; bottom: auto; }
  .operator-status { top: 230px; left: 30%; }
  .overview-intel { width: 100%; border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; background: transparent; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 25px; }
  .rank-panel { grid-row: span 2; }
  .stat-strip { padding-top: 0; border-top: 0; }
  .loadout-panel { padding: 0; }
  .overview-intel .deploy-primary { grid-column: 1 / -1; min-height: 60px; }
  .stat-strip strong { font-size: 26px; }
  .stat-strip > div + div { padding-left: 10px; }
  .map-selector { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deployment-layout { grid-template-columns: 1fr; gap: 22px; }
  .deployment-art, .deployment-art img { min-height: 230px; max-height: 330px; }
  .deployment-details { padding: 0; }
  .deployment-details .detail-list { margin: 12px 0 20px; }
  .rooms-layout { gap: 25px; }
  .arsenal-layout, .archive-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
  .asset-list { padding-right: 10px; }
  .asset-summary { align-items: start; flex-direction: column; }
  .weapon-metrics { grid-template-columns: 1fr 1fr; gap: 18px; }
  .asset-display { height: 285px; }
}
@media (max-width: 480px) {
  .wordmark { font-size: 25px; gap: 9px; }
  .brand-cn { font-size: 12px; padding-left: 10px; }
  .secure-label { font-size: 8px; gap: 6px; }
  .secure-label svg { display: none; }
  .hub-link { padding: 7px 9px; font-size: 9px; }
  .hub-link svg { display: none; }
  .access-header { padding: 18px 20px; min-height: 76px; }
  .access-main { width: 100%; padding: 26px 22px 33px; gap: 27px; }
  .access-title h1 { font-size: 61px; gap: 15px; }
  .access-title h1 span { font-size: 27px; }
  .access-title .overline { font-size: 9px; }
  .auth-content { padding: 24px; }
  .auth-tabs { margin: 0 24px; }
  .auth-content h2 { font-size: 22px; margin-bottom: 22px; }
  .access-footer { padding: 12px 20px; font-size: 8px; }
  .command-main { padding: 23px 17px 0; }
  .connection-label { max-width: 90px; }
  .command-header .wordmark { font-size: 22px; }
  .overview-intel { display: block; }
  .rank-panel { padding-bottom: 18px; }
  .stat-strip { border-top: 1px solid var(--line); padding: 18px 0; }
  .stat-strip strong { font-size: 33px; }
  .stat-strip > div + div { padding-left: 20px; }
  .loadout-panel { padding: 20px 0; }
  .operator-caption > span:last-child { font-size: 7px; margin-left: 10px; }
  .command-footer > span:first-child { max-width: 62%; line-height: 1.8; }
  .history-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rooms-layout { grid-template-columns: 1fr; }
  .map-selector { gap: 7px; }
  .map-option img { aspect-ratio: 1.2; }
  .map-option small { font-size: 7px; overflow-wrap: anywhere; }
  .arsenal-layout, .archive-layout { display: block; }
  .asset-list { display: flex; overflow-x: auto; border: 0; padding: 0 0 12px; gap: 8px; }
  .asset-list button { flex-shrink: 0; width: 118px; padding: 13px 10px; border: 1px solid var(--line); }
  .asset-list button strong { font-size: 20px; }
  .archive-layout .asset-list button strong { font-size: 12px; }
  .asset-summary { flex-direction: row; align-items: center; gap: 12px; }
  .asset-summary .deploy-primary { min-width: 124px; padding: 10px 12px; }
  .asset-summary h2 { font-size: 29px; }
  .archive-layout .asset-summary h2 { font-size: 18px; }
  .asset-display { height: 280px; }
  .account-data div { grid-template-columns: 95px minmax(0, 1fr); }
  .system-dialog { width: calc(100% - 20px); max-height: calc(100svh - 20px); }
  .system-head { padding: 18px 20px; }
  .system-layout { display: block; min-height: 390px; }
  .system-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-right: 0; border-bottom: 1px solid var(--line); padding: 5px; }
  .system-tabs button { justify-content: center; padding: 13px 3px; border-left: 0; border-bottom: 2px solid transparent; margin: 0; font-size: 11px; gap: 6px; }
  .system-panels { padding: 22px 20px; }
  .setting-row { gap: 12px; }
  .setting-row label { font-size: 11px; }
  .setting-range { width: 57%; gap: 8px; }
  .system-footer { padding: 12px 15px; }
  .system-footer > span { font-size: 9px; }
  .setting-row select { width: 140px; }
  .battle-page .menu-shell { width: calc(100% - 28px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
