*{box-sizing:border-box}body{margin:0;font:14px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#0f141a;color:#e6edf3}
.hidden{display:none!important}button{font:inherit;cursor:pointer;border:0;border-radius:8px;padding:8px 14px;background:#2f81f7;color:#fff}
button:disabled{opacity:.4;cursor:default}button.ghost{background:#21262d;color:#c9d1d9}
.login{display:flex;height:100vh;align-items:center;justify-content:center}
.login form{background:#161b22;padding:28px;border-radius:14px;width:320px;display:flex;flex-direction:column;gap:12px}
.login h1{margin:0 0 8px;font-size:22px}.login h1 span{color:#7d8590;font-weight:400}
.login label{display:flex;flex-direction:column;gap:4px;color:#9da7b3;font-size:12px}
input,select{font:inherit;padding:8px;border-radius:8px;border:1px solid #30363d;background:#0d1117;color:#e6edf3}.err{color:#ff7b72;min-height:1em;margin:0}
.app{display:grid;grid-template-columns:270px 1fr;grid-template-rows:48px 1fr;height:100vh}
header{grid-column:1/3;display:flex;align-items:center;gap:10px;padding:0 14px;background:#161b22;border-bottom:1px solid #30363d}
header #who{color:#9da7b3}.grow{flex:1}.pill{font-size:12px;padding:3px 9px;border-radius:99px;background:#21262d;color:#9da7b3}.pill.ok{background:#1f3a24;color:#7ee787}
aside{overflow:auto;padding:10px 12px;border-right:1px solid #30363d;background:#11161d}
aside h2,main h2{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#7d8590;margin:14px 0 6px}
ul{list-style:none;margin:0;padding:0}
#tgs li{padding:8px 10px;border-radius:8px;margin-bottom:4px;background:#161b22;cursor:pointer;border:1px solid transparent}
#tgs li.sel{border-color:#2f81f7}#tgs li .st{display:block;font-size:12px;color:#7d8590}
#tgs li.busy .st{color:#f0b72f}#tgs li.emg{background:#3d1214}#tgs li.emg .st{color:#ff7b72}
.talking li{padding:6px 8px;border-radius:6px;background:#2a2410;color:#f0b72f;margin-bottom:4px}.talking li.emg{background:#3d1214;color:#ff7b72}
.muted{color:#6e7681!important;background:none!important}
.units li{display:flex;justify-content:space-between;padding:3px 2px;color:#9da7b3}.units li .dot{width:8px;height:8px;border-radius:50%;background:#484f58;display:inline-block;margin-right:6px}
.units li.on .dot{background:#3fb950}
main{display:grid;grid-template-columns:minmax(330px,420px) 1fr;grid-template-rows:auto 1fr auto;gap:12px;padding:12px;overflow:hidden}
.console{background:#161b22;border-radius:12px;padding:14px}.tgtitle{font-size:18px;font-weight:600;margin-bottom:10px}
.floor{padding:14px;border-radius:10px;text-align:center;font-weight:700;letter-spacing:.04em;background:#21262d;color:#7d8590}
.floor.taken{background:#2a2410;color:#f0b72f}.floor.mine{background:#12361b;color:#7ee787}.floor.emg{background:#5a1418;color:#fff;animation:pulse 1s infinite}
@keyframes pulse{50%{background:#8b1d22}}
.buttons{display:flex;gap:12px;margin-top:12px}.ptt{flex:1;height:120px;font-size:18px;font-weight:700;background:#1f6feb;display:flex;flex-direction:column;align-items:center;justify-content:center;user-select:none;touch-action:none}
.ptt small{font-size:11px;font-weight:400;opacity:.7}.ptt.down{background:#238636}.ptt.wait{background:#9e6a03}
.side{display:flex;flex-direction:column;gap:8px;width:140px}.emerg{background:#da3633;font-weight:700}
.queue{margin-top:10px;font-size:12px;color:#9da7b3;min-height:1em}
.mapwrap{grid-row:1/3;grid-column:2;border-radius:12px;overflow:hidden;min-height:300px}#map{height:100%;width:100%;background:#0d1117}
.sos{background:#3d1214;border-radius:12px;padding:10px 14px}.sos li{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 0}
.log{grid-column:1/3;background:#161b22;border-radius:12px;padding:6px 14px;max-height:170px;overflow:auto}
.log ol{margin:0;padding:0;list-style:none;font:12px/1.5 ui-monospace,Menlo,monospace;color:#9da7b3}
.lbl{background:#161b22;color:#e6edf3;border:1px solid #30363d;border-radius:6px;font-weight:600}.lbl.talk{background:#9e6a03;color:#fff}.lbl.emg{background:#da3633;color:#fff}
