:root{color:#e5e7eb;background:#111827;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}.login{background:radial-gradient(circle at top,#1f2937,#020617 68%);place-items:center;min-height:100vh;display:grid}.loginPanel{background:#0f172a;border:1px solid #374151;border-radius:8px;gap:16px;width:min(420px,100vw - 32px);padding:28px;display:grid}.loginPanel h1{margin:0;font-size:34px}.loginLogo{border-radius:18px;width:88px;height:88px}.loginPanel label{color:#9ca3af;gap:8px;display:grid}.loginPanel input{color:#f8fafc;background:#020617;border:1px solid #334155;border-radius:6px;height:46px;padding:0 12px}.loginError{color:#fecaca;background:#7f1d1d59;border:1px solid #991b1b;border-radius:6px;padding:10px 12px}.loginPanel button,.user button,.channel{color:#f8fafc;cursor:pointer;background:#1f2937;border:1px solid #334155;border-radius:6px;min-height:44px}.loginPanel button{background:#2563eb;border-color:#2563eb}.console{background:#0b1120;min-height:100vh;padding:24px}header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}header h1{margin:0;font-size:30px}.brandTitle{align-items:center;gap:14px;display:flex}.brandTitle img{border-radius:12px;width:58px;height:58px}header p{color:#94a3b8;margin:4px 0 0}.status{color:#86efac;align-items:center;gap:8px;display:inline-flex}.headerActions{align-items:center;gap:12px;display:flex}.logoutBtn{color:#e2e8f0;cursor:pointer;background:#1f2937;border:1px solid #475569;border-radius:6px;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:0 12px;display:inline-flex}.toolbar{flex-wrap:wrap;gap:10px;margin-bottom:20px;display:flex}.topStatus{grid-template-columns:repeat(3,minmax(130px,1fr)) repeat(4,auto);gap:12px;margin-bottom:18px;display:grid}.topStatus div,.dangerBtn,.mapBtn,.manageBtn{color:#f8fafc;background:#111827;border:1px solid #263241;border-radius:8px;min-height:54px;padding:10px 14px}.topStatus strong,.topStatus span{display:block}.topStatus span{color:#94a3b8;margin-top:4px}.dangerBtn{cursor:pointer;background:#450a0a;border-color:#7f1d1d;align-items:center;gap:8px;display:inline-flex}.mapBtn{cursor:pointer;background:#172554;border-color:#1d4ed8;align-items:center;gap:8px;display:inline-flex}.manageBtn{cursor:pointer;background:#1f2937;border-color:#334155;align-items:center;gap:8px;display:inline-flex}.channel{border-width:2px;align-items:center;gap:10px;padding:0 16px;display:inline-flex}.channel span{border-radius:99px;width:12px;height:12px}.speakingDot.active{box-shadow:0 0 0 4px #22c55e2e,0 0 14px #22c55ed9}.speakingInlineDot{background:#22c55e;border-radius:99px;width:10px;height:10px;margin-right:8px;display:inline-block;box-shadow:0 0 12px #22c55ecc}.batteryPill{color:#cbd5e1;vertical-align:middle;background:#111827;border:1px solid #334155;border-radius:6px;align-items:center;gap:5px;min-height:22px;margin-left:10px;padding:0 7px;font-size:12px;font-weight:700;display:inline-flex}.batteryPill.good{color:#86efac;background:#052e16;border-color:#14532d}.batteryPill.fair{color:#fde68a;background:#422006;border-color:#854d0e}.batteryPill.poor{color:#fecaca;background:#450a0a;border-color:#7f1d1d}.channel.active{background:#334155}.channel.manage{border-style:dashed}.grid{grid-template-columns:1fr;gap:16px;display:grid}.panel{background:#111827;border:1px solid #1f2937;border-radius:8px;padding:18px}.panel.wide{grid-column:1/-1}.mapLayout{grid-template-columns:minmax(320px,.34fr) minmax(0,1fr);gap:16px;display:grid}.mapPanelTitle{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.mapPanelTitle h2{white-space:nowrap;margin:0}.mapLocationActions{gap:8px;display:flex}.mapLocationActions button{color:#f8fafc;cursor:pointer;white-space:nowrap;background:#1f2937;border:1px solid #334155;border-radius:6px;min-height:34px;padding:0 10px}.mapLocationActions button:disabled{cursor:not-allowed;opacity:.45}.mapPanel{background:#111827;border:1px solid #1f2937;border-radius:8px;min-height:calc(100vh - 148px);overflow:hidden}.mapCanvas{width:100%;height:calc(100vh - 148px)}.mapPlaceholder{color:#94a3b8;place-items:center;min-height:calc(100vh - 148px);display:grid}.mapUserRow{background:#0b1120;border:1px solid #263241;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.mapUserRow small{color:#94a3b8;margin-top:4px;display:block}.mapUserRow.selected{border-color:#22c55e}.mapUserRow .mapUserSelect{text-align:left;color:#f1f5f9;background:0 0;border:0;flex:1;min-width:0}.mapCanvas .amap-marker-label{background:0 0;border:0;padding:0}.mapMarkerLabel{color:#111;white-space:normal;overflow-wrap:anywhere;background:#fff;border:2px solid #111;border-radius:4px;max-width:220px;padding:4px 8px;font:700 14px/20px system-ui,sans-serif;display:block;box-shadow:0 1px 5px #0005}.mapMarkerLabel.selected{color:#fff;background:#14532d;border-color:#fff;outline:2px solid #14532d}.terminalApp{width:100%;max-width:680px;height:100dvh;padding:max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));color:#eef1f3;background:#111416;flex-direction:column;gap:10px;margin:0 auto;display:flex;overflow:hidden}.terminalApp .terminalHeader{text-align:left;flex-direction:row;flex:none;align-items:center;gap:12px;margin:0;display:flex}.terminalHeader img{border-radius:6px;flex:0 0 48px;width:48px;height:48px}.terminalHeader div{flex:1;min-width:0}.terminalHeader h1{margin:0 0 3px;font-size:22px;line-height:1.2}.terminalHeader strong{color:#dce0e3;white-space:nowrap;text-overflow:ellipsis;font-size:16px;line-height:1.4;display:block;overflow:hidden}.terminalHeader .logoutBtn{flex:0 0 44px;place-items:center;width:44px;height:44px;padding:0;display:grid}.terminalCallBar{border-bottom:1px solid #353b3f;flex:none;align-items:center;gap:12px;padding:8px 0 12px;display:flex}.terminalConnection{color:#e8b45d;flex:1;min-width:0;font-size:14px;line-height:1.4}.terminalConnection.connected{color:#86dfb8}.terminalConnection>span{align-items:center;gap:7px;display:flex}.terminalConnection small{-webkit-line-clamp:2;overflow-wrap:anywhere;color:#c1c8cd;-webkit-box-orient:vertical;margin-top:2px;font-size:14px;display:-webkit-box;overflow:hidden}.terminalChannels{overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#51595e #111416;flex:1 1 0;min-height:0;overflow-y:auto}.terminalChannel{border-bottom:1px solid #30363a;align-items:center;gap:10px;min-height:88px;padding:14px 0;display:flex}.terminalChannel>div{flex:1;min-width:0}.terminalChannel strong{overflow-wrap:anywhere;font-size:20px;line-height:1.4;display:block}.terminalChannel small{color:#8de1b9;overflow-wrap:anywhere;margin-top:4px;font-size:14px;line-height:1.5;display:block}.terminalChannel button{color:#ffa2ad;cursor:pointer;touch-action:manipulation;background:#302328;border:1px solid #78515a;border-radius:6px;flex:0 0 52px;place-items:center;width:52px;height:52px;display:grid}.terminalChannel button svg{width:27px;height:27px}.terminalChannel button[aria-pressed=true]{color:#8aebc2;background:#173f31;border-color:#459378}.terminalControls{flex-direction:column;flex:none;gap:8px;padding-top:4px;display:flex}.terminalJoin{color:#f2f4f5;cursor:pointer;touch-action:manipulation;background:#283239;border:1px solid #64747d;border-radius:6px;flex:none;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:0 12px;font-size:16px;display:flex}.terminalJoin.joined{color:#ffbec5;background:#302328;border-color:#78515a}.terminalPtt{color:#f5f7fa;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:pointer;background:#2b343a;border:1px solid #71828b;border-radius:6px;flex:none;justify-content:center;align-items:center;width:100%;height:88px;padding:0 44px;transition:background-color .15s,border-color .15s;display:flex;position:relative;overflow:hidden}.terminalPtt:before{content:"";opacity:.25;transform:scaleX(var(--ptt-slide,0));transform-origin:100%;pointer-events:none;background:#239b6e;position:absolute;inset:0}.pttLabel{transform:translateX(calc(var(--ptt-slide,0) * -20px));pointer-events:none;justify-content:center;align-items:center;gap:10px;transition:transform 80ms linear;display:flex;position:relative}.terminalPtt strong{white-space:nowrap;font-size:23px;line-height:1.3}.pttLock{color:#bac7ce;opacity:.75;pointer-events:none;align-items:center;display:flex;position:absolute;left:10px}.terminalPtt.transmitting{background:#17583f;border-color:#7dddab}.terminalPtt.latched{background:#1a6347;border-color:#9af0c2}.terminalPtt.lockReady .pttLock,.terminalPtt.latched .pttLock{color:#b4ffd7;opacity:1}.terminalApp button:disabled{opacity:.5;cursor:default}.terminalApp button:focus-visible{outline-offset:2px;outline:2px solid #f6cb74}.terminalTargets{text-align:center;color:#c5cdd2;overflow-wrap:anywhere;min-height:21px;max-height:42px;font-size:14px;line-height:21px;overflow-y:auto}.terminalApp footer{color:#a4afb6;flex:none;gap:8px;margin:0;padding:2px 0;font-size:12px;line-height:18px}.leaveCallDialog{color:#f2f4f5;background:#1c2226;border:1px solid #596369;border-radius:8px;width:min(420px,100% - 32px);max-height:calc(100dvh - 32px);padding:24px;overflow:auto}.leaveCallDialog::backdrop{background:#000000b8}.leaveCallDialog h2{margin:0;font-size:22px}.leaveCallDialog p{color:#c6d0d5;margin:14px 0 24px;font-size:16px;line-height:1.6}.leaveCallActions{gap:12px;display:flex}.leaveCallActions button{color:#fff;cursor:pointer;background:#303b42;border:1px solid #6b7982;border-radius:6px;flex:1;min-height:48px;font-size:16px}@media (height<=500px){.terminalApp{gap:6px}.terminalHeader img{flex-basis:40px;width:40px;height:40px}.terminalHeader h1{font-size:18px}.terminalCallBar{padding:0 0 6px}.terminalPtt{height:64px}.terminalTargets{max-height:21px}}@media (prefers-reduced-motion:reduce){.terminalPtt,.pttLabel{transition:none}}.mapUserRow button{color:#f8fafc;cursor:pointer;background:#1f2937;border:1px solid #334155;border-radius:6px;min-height:38px;padding:0 12px}.panel h2{align-items:center;gap:8px;margin:0 0 14px;font-size:18px;display:flex}.userList,.events{gap:10px;display:grid}.onlineUserGrid{columns:4 220px;column-gap:10px;display:block}.userRoute{background:#0b1120;border:1px solid #263241;border-radius:8px;gap:12px;padding:12px;display:grid}.onlineUserGrid .userRoute{break-inside:avoid;gap:8px;width:100%;margin:0 0 10px;padding:9px;font-size:12px;display:inline-grid}.userRouteHeader{justify-content:space-between;align-items:center;gap:12px;min-height:44px;display:flex}.onlineUserGrid .userRouteHeader{gap:8px;min-height:32px}.userIdentity{align-items:center;gap:10px;min-width:0;display:flex}.onlineUserGrid .userIdentity{gap:6px}.userIdentity>div{min-width:0}.userRoute small{color:#94a3b8;margin-top:4px;display:block}.onlineUserGrid .userRoute small{margin-top:2px;font-size:11px;line-height:1.35}.userRoute button{color:#f8fafc;cursor:pointer;background:#1f2937;border:1px solid #334155;border-radius:6px;place-items:center;width:44px;min-height:44px;display:grid}.onlineUserGrid .userRoute button{width:30px;min-height:30px}.userRoute .collapseToggle{background:#111827;border-color:#1f2937;width:34px;min-width:34px;min-height:34px}.onlineUserGrid .userRoute .collapseToggle{width:28px;min-width:28px;min-height:28px}.userRoute .collapseToggle:hover{background:#1f2937;border-color:#475569}.userActions{gap:8px;display:flex}.onlineUserGrid .userActions{gap:5px}.routeMatrix{grid-template-columns:minmax(54px,1fr) repeat(3,minmax(64px,.7fr)) minmax(110px,1fr);align-items:center;gap:8px;display:grid}.webRouteMatrix{grid-template-columns:minmax(120px,.75fr) repeat(2,minmax(64px,.28fr)) minmax(260px,1.65fr);gap:10px}.onlineUserGrid .routeMatrix{grid-template-columns:minmax(58px,1fr) repeat(4,minmax(30px,.32fr)) minmax(80px,.9fr);gap:5px}.routeMatrix span{color:#94a3b8;justify-content:center;align-items:center;gap:5px;font-size:13px;display:inline-flex}.routeMatrix .speakingNames{color:#64748b;text-overflow:ellipsis;white-space:nowrap;background:#0f172a;border:1px solid #1f2937;border-radius:6px;justify-content:center;min-height:34px;padding:0 8px;overflow:hidden}.webRouteMatrix .speakingNames{justify-content:flex-start}.routeMatrix .speakingNames.active{color:#86efac;background:#052e16;border-color:#14532d}.routeMatrix strong{color:#f8fafc;text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.onlineUserGrid .routeMatrix strong,.onlineUserGrid .routeMatrix span{font-size:11px}.routeMatrix label{background:#111827;border:1px solid #1f2937;border-radius:6px;place-items:center;min-height:34px;display:grid}.routeMatrix label.volumeControl{grid-template-columns:minmax(48px,1fr) 34px;gap:5px;padding:0 6px;display:grid}.routeMatrix .volumeControl input[type=range]{accent-color:#38bdf8;width:100%;height:20px}.routeMatrix .volumeControl span{color:#cbd5e1;justify-content:flex-end;font-size:11px}.onlineUserGrid .routeMatrix label,.onlineUserGrid .routeMatrix .speakingNames{border-radius:5px;min-height:26px;padding:0 4px}.routeMatrix input{accent-color:#22c55e;width:18px;height:18px}.routeMatrix input[type=range]{width:100%}.onlineUserGrid .routeMatrix input{width:15px;height:15px}.onlineUserGrid .routeMatrix input[type=range]{width:100%;height:18px}.onlineUserGrid .batteryPill{min-height:18px;margin-left:5px;padding:0 5px;font-size:10px}.onlineUserGrid .webTerminalBadge{min-height:28px;padding:0 7px;font-size:11px}.webCall{gap:10px;display:grid}.webCall small{color:#94a3b8}.webNameField{color:#cbd5e1;gap:6px;font-size:13px;display:grid}.webNameField input{color:#f8fafc;background:#020617;border:1px solid #334155;border-radius:6px;min-height:40px;padding:0 10px}.webCallButtons{flex-wrap:wrap;gap:10px;display:flex}.webCallButtons button{color:#f8fafc;cursor:pointer;background:#1f2937;border:1px solid #334155;border-radius:6px;min-height:42px;padding:0 14px}.accountList{gap:10px;display:grid}.accountRow{background:#0b1120;border:1px solid #263241;border-radius:8px;grid-template-columns:minmax(130px,1fr) minmax(150px,1.2fr) minmax(130px,1fr) 76px 78px 72px;align-items:center;gap:10px;padding:10px;display:grid}.tableHead{color:#94a3b8;background:#111827;min-height:34px;font-size:13px;font-weight:700}.tableHead span{padding:0 10px}.confirmModal{background:#111827;border:1px solid #7f1d1d;border-radius:8px;width:min(480px,100%);padding:22px}.confirmModal h2{margin:0 0 10px}.confirmModal p{color:#cbd5e1;line-height:1.6}.dangerInline{background:#7f1d1d!important;border-color:#7f1d1d!important}.webTerminalBadge{color:#cbd5e1;background:#111827;border:1px solid #334155;border-radius:6px;align-items:center;gap:6px;min-height:34px;padding:0 10px;display:inline-flex}.webTerminalNote{color:#94a3b8;background:#0b1120;border:1px solid #263241;border-radius:6px;padding:12px}.accountRow small{color:#94a3b8;display:block}.accountRow input{color:#f8fafc;background:#020617;border:1px solid #334155;border-radius:6px;min-height:40px;padding:0 10px}.accountRow button{color:#f8fafc;cursor:pointer;background:#1f2937;border:1px solid #334155;border-radius:6px;min-height:40px;padding:0 12px}.orderButtons{gap:6px;display:flex}.orderButtons button{width:36px;padding:0}.orderButtons button:disabled{opacity:.35;cursor:not-allowed}.channelEdit{background:#0b1120;border:1px solid #263241;border-radius:8px;grid-template-columns:minmax(110px,.6fr) minmax(140px,1fr) minmax(150px,1fr) 76px 72px 72px;align-items:center;gap:10px;padding:10px;display:grid}.channelEdit input{color:#f8fafc;background:#020617;border:1px solid #334155;border-radius:6px;min-height:40px;padding:0 10px}.channelEdit button{color:#f8fafc;cursor:pointer;background:#1f2937;border:1px solid #334155;border-radius:6px;min-height:40px;padding:0 12px}.modalBackdrop{z-index:10;background:#000000ad;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:#111827;border:1px solid #334155;border-radius:8px;width:min(1080px,100%);max-height:min(760px,100vh - 48px)}.managementModal{flex-direction:column;display:flex;overflow:hidden}.modalHeader{border-bottom:1px solid #263241;flex:none;padding:20px 20px 14px}.modalHeader h2{margin:0}.modalBody{min-height:0;padding:16px 20px;overflow:auto}.accountManagerList,.channelList{min-width:780px}.modalActions{background:#111827;border-top:1px solid #334155;flex-wrap:wrap;flex:none;gap:10px;padding:14px 20px 18px;display:flex;box-shadow:0 -12px 24px #02061747}.modalActions button{color:#f8fafc;cursor:pointer;background:#1f2937;border:1px solid #334155;border-radius:6px;min-height:42px;padding:0 16px}.modalActions button:nth-last-child(2):not(:first-child){background:#2563eb;border-color:#2563eb}footer{color:#64748b;text-align:center;justify-content:center;gap:14px;margin-top:22px;display:flex}footer a{color:#f97316;text-decoration:none}.empty,.meter{color:#94a3b8}.meter{border-left:4px solid #64748b;align-items:center;min-height:44px;padding-left:12px;display:flex}.meter.green{border-color:#22c55e}.meter.yellow{border-color:#eab308}.meter.red{border-color:#ef4444}.meter.gray{border-color:#64748b}pre{color:#cbd5e1;background:#020617;border-radius:6px;margin:0;padding:12px;overflow:auto}@media (width<=760px){.console{padding:14px}header{flex-direction:column;align-items:flex-start}.headerActions{justify-content:space-between;width:100%}.grid,.topStatus{grid-template-columns:1fr}.onlineUserGrid{columns:1}.mapLayout,.accountRow,.channelEdit{grid-template-columns:1fr}.accountManagerList,.channelList{min-width:0}.tableHead{display:none}.modalBackdrop{padding:10px}.modal{max-height:calc(100vh - 20px)}.modalHeader,.modalBody,.modalActions{padding-left:14px;padding-right:14px}}@media (width>=761px) and (width<=1180px){.topStatus{grid-template-columns:repeat(3,minmax(130px,1fr))}.topStatus button{justify-content:center}.onlineUserGrid{columns:2 220px}}
