/* MT5 Fleet 云端控制中心 · 0.14
   视觉：深曜石底 + 玻璃面板 + 青紫渐变高光；红色 = 盈利，绿色 = 亏损（国内习惯）。 */
@font-face { font-family: "Fleet Num"; src: url(/web/num-500.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Fleet Num"; src: url(/web/num-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fleet Num"; src: url(/web/num-700.woff2) format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Fleet Display"; src: url(/web/display-700.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #06050f; --bg-2: #0a0918; --panel: rgba(22, 19, 48, .58); --panel-solid: #120f29; --panel-2: #18143a; --panel-3: #231d4d;
  --line: rgba(150, 138, 255, .13); --line-2: rgba(150, 138, 255, .26); --text: #efebff; --soft: #c6c0e8; --muted: #938cba; --faint: #635d8c;
  --signal: #00e5ff; --signal-2: #7ff3ff; --violet: #8b5cf6; --pink: #ff2bd6; --gold: #f5c66a; --amber: #f5b544; --warn: #f5b544; --bad: #ff6b85;
  --up: #ff3b6b; --down: #00e0a0;
  --grad: linear-gradient(135deg, #00e5ff 0%, #8b5cf6 55%, #ff2bd6 100%);
  --grad-soft: linear-gradient(135deg, rgba(0, 229, 255, .55), rgba(139, 92, 246, .25) 50%, rgba(255, 43, 214, .5));
  --radius: 18px; --radius-s: 11px;
  --font-ui: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-num: "Fleet Num", "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Segoe UI", var(--font-ui);
  --font-display: "Fleet Display", "Fleet Num", "Bahnschrift", var(--font-ui);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 14px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 600px at 0% -10%, rgba(139, 92, 246, .22), transparent 60%), radial-gradient(900px 600px at 105% 10%, rgba(0, 229, 255, .12), transparent 55%), radial-gradient(900px 700px at 50% 120%, rgba(255, 43, 214, .10), transparent 60%), var(--bg);
  background-attachment: fixed; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(rgba(150, 138, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(150, 138, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--signal-2); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
::selection { background: rgba(139, 92, 246, .45); }
* { scrollbar-width: thin; scrollbar-color: #2c2560 transparent; }
.muted { color: var(--muted); }
.positive { color: var(--up) !important; }
.negative { color: var(--down) !important; }
.neutral { color: var(--text); }
.num, .metric strong, .kpi strong, .hero-value, .tile b, .group-card strong, .rank-value b, .chip-pnl b, .group-pnl b, .server-pnl b, .account-numbers b, .server-ip, .invite-code b { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* glass surface with a gradient hairline border */
.glass, .panel, .metric, .server-card, .job-row, .review-row, .invite-card, .group-lane, .group-chip, dialog, .onboard-card, .account-card {
  background: linear-gradient(160deg, rgba(30, 26, 64, .72), rgba(12, 10, 30, .78)) padding-box, linear-gradient(160deg, rgba(150, 138, 255, .32), rgba(150, 138, 255, .06) 45%, rgba(0, 229, 255, .18)) border-box;
  border: 1px solid transparent; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ---------- controls ---------- */
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 17px; border-radius: var(--radius-s); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, box-shadow .2s, transform .15s; }
.button:hover { border-color: rgba(127, 243, 255, .5); background: rgba(127, 243, 255, .07); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button.primary { border: 0; background: var(--grad); color: #fff; font-weight: 600; box-shadow: 0 8px 26px rgba(139, 92, 246, .35), inset 0 1px 0 rgba(255, 255, 255, .25); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.button.primary:hover { box-shadow: 0 10px 34px rgba(0, 229, 255, .35), 0 0 0 1px rgba(255, 255, 255, .25) inset; filter: brightness(1.08); }
.button.secondary { background: rgba(255, 255, 255, .045); }
.button.danger { background: linear-gradient(135deg, rgba(255, 59, 107, .22), rgba(255, 43, 214, .12)); border-color: rgba(255, 59, 107, .55); color: #ffc0cd; }
.button.danger:hover { background: linear-gradient(135deg, rgba(255, 59, 107, .35), rgba(255, 43, 214, .2)); box-shadow: 0 0 22px rgba(255, 59, 107, .3); }
.button.subtle { background: transparent; }
.button.text-danger { background: transparent; border-color: transparent; color: #ff9ab0; }
.button.wide { width: 100%; min-height: 48px; font-size: 15px; letter-spacing: .04em; }
.button svg, .icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.text-button { background: none; border: 0; padding: 4px 2px; color: var(--signal-2); cursor: pointer; font-size: 13px; }
.text-button:hover { color: #fff; }
.text-button.muted { color: var(--muted); }
.text-button.text-danger { color: #ff9ab0; }
.text-button:disabled { opacity: .4; cursor: default; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; color: var(--soft); transition: color .2s, border-color .2s, transform .4s; }
.icon-button:hover { color: #fff; border-color: rgba(127, 243, 255, .5); }
.icon-button:active svg { transform: rotate(-180deg); transition: transform .4s; }
input, select, textarea { width: 100%; background: rgba(6, 5, 15, .6); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 11px 13px; outline: none; transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: rgba(0, 229, 255, .7); box-shadow: 0 0 0 3px rgba(0, 229, 255, .14), 0 0 22px rgba(0, 229, 255, .12); }
select option { background: var(--panel-solid); }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; padding: 0; accent-color: var(--violet); cursor: pointer; flex: none; box-shadow: none; }
select { cursor: pointer; }
label { display: grid; gap: 7px; font-size: 13px; color: var(--soft); }
label small { color: var(--faint); font-size: 12px; line-height: 1.6; }
.check-line { display: flex; align-items: center; gap: 10px; color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; line-height: 18px; background: rgba(0, 229, 255, .1); color: var(--signal-2); border: 1px solid rgba(0, 229, 255, .28); white-space: nowrap; font-weight: 500; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.badge.good { background: rgba(0, 224, 160, .1); color: #5ff0c4; border-color: rgba(0, 224, 160, .3); }
.badge.warn { background: rgba(245, 181, 68, .1); color: #ffd27a; border-color: rgba(245, 181, 68, .32); }
.badge.bad { background: rgba(255, 59, 107, .12); color: #ff92aa; border-color: rgba(255, 59, 107, .38); }
.badge.blue { background: rgba(139, 92, 246, .14); color: #c7b2ff; border-color: rgba(139, 92, 246, .38); }
.badge.muted { background: transparent; color: var(--muted); border-color: var(--line-2); }
.badge.muted::before { display: none; }
.form-error { color: #ff9ab0; font-size: 13px; margin: 0; }
.form-error:empty { display: none; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(0, 229, 255, .6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, .55); } 70% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); } }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--soft); font-size: 14px; font-weight: 500; }
.empty p { margin: 6px 0 0; font-size: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font: 900 18px/1 var(--font-display); box-shadow: 0 8px 26px rgba(139, 92, 246, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.brand-mark::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 22px rgba(0, 229, 255, .35); pointer-events: none; }
.brand-text { display: grid; line-height: 1.2; }
.brand-text em { font: 700 15px/1.2 var(--font-display); font-style: normal; letter-spacing: .14em; background: linear-gradient(90deg, #fff, #c7b2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font: 400 11px/1.6 var(--font-ui); color: var(--muted); letter-spacing: .06em; }

/* ---------- boot ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); letter-spacing: .1em; }
.boot .brand-mark { width: 56px; height: 56px; font-size: 24px; animation: boot 1.6s ease-in-out infinite; }
@keyframes boot { 50% { transform: scale(1.08); box-shadow: 0 0 40px rgba(0, 229, 255, .5); } }

/* ---------- auth ---------- */
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(400px, 500px); }
.auth-intro { position: relative; overflow: hidden; padding: 56px 72px; display: flex; flex-direction: column; gap: 26px; isolation: isolate; }
.auth-intro::before { content: ""; position: absolute; left: -20%; right: -20%; bottom: -10%; height: 55%; z-index: -1; transform: perspective(600px) rotateX(62deg); transform-origin: bottom;
  background: linear-gradient(rgba(139, 92, 246, .55) 1px, transparent 1px) 0 0 / 100% 46px, linear-gradient(90deg, rgba(0, 229, 255, .35) 1px, transparent 1px) 0 0 / 46px 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%); animation: floor 4s linear infinite; }
@keyframes floor { to { background-position: 0 46px, 0 0; } }
.auth-intro::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -120px; z-index: -1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255, 43, 214, .55), rgba(139, 92, 246, .3) 40%, transparent 70%); filter: blur(10px); animation: orb 9s ease-in-out infinite alternate; }
@keyframes orb { to { transform: translate(-60px, 50px) scale(1.1); } }
.auth-intro h1 { font-size: clamp(34px, 3.8vw, 56px); line-height: 1.2; margin-top: auto; font-weight: 800; letter-spacing: .01em; background: linear-gradient(110deg, #ffffff 30%, #a9f6ff 55%, #d6b8ff 75%, #ff9fe9); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(139, 92, 246, .35)); }
.auth-intro > p { color: var(--soft); max-width: 34em; line-height: 1.85; margin: 0; font-size: 15px; }
.auth-tape { height: 92px; max-width: 560px; }
.auth-tape svg { width: 100%; height: 100%; display: block; overflow: visible; }
.auth-tape-area { fill: url(#auth-fill); }
.auth-tape-line { fill: none; stroke: var(--signal); stroke-width: 2.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px var(--signal)); stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s .3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.auth-points { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 12px; max-width: 540px; }
.auth-points li { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.auth-points b { font-weight: 600; color: #fff; }
.auth-points span { color: var(--muted); font-size: 13px; }
.auth-box { position: relative; margin: 28px 28px 28px 0; padding: 44px 40px; display: flex; flex-direction: column; gap: 14px; border-radius: 26px;
  background: linear-gradient(165deg, rgba(34, 29, 74, .78), rgba(10, 9, 26, .9)) padding-box, var(--grad-soft) border-box; border: 1px solid transparent; box-shadow: var(--shadow), 0 0 60px rgba(139, 92, 246, .18); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: rgba(6, 5, 15, .6); border: 1px solid var(--line); border-radius: 13px; padding: 4px; }
.tabs button { border: 0; background: none; padding: 10px; border-radius: 10px; cursor: pointer; color: var(--muted); transition: color .2s; }
.tabs button.active { background: linear-gradient(135deg, rgba(0, 229, 255, .2), rgba(139, 92, 246, .3)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.auth-box h2 { font-size: 26px; margin-top: 12px; font-weight: 700; }
.auth-box > p { margin: 0; }
#auth-form { display: grid; gap: 15px; margin-top: 4px; }
.forgot { justify-self: start; align-self: flex-start; }
.forgot-note { margin: 0; font-size: 13px; color: var(--soft); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 12px 14px; line-height: 1.7; }
.onboard-card { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px; border-radius: 16px; }
.onboard-card > div { flex: 1 1 100%; display: grid; gap: 2px; }
.onboard-card small { color: var(--muted); font-size: 12px; }
.onboard-card > small { flex-basis: 100%; color: var(--faint); }
.auth-footer { font-size: 12px; color: var(--faint); margin: auto 0 0; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 24px 14px 18px; background: linear-gradient(180deg, rgba(22, 18, 50, .78), rgba(8, 7, 20, .85)); border-right: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.sidebar::after { content: ""; position: absolute; top: 0; right: -1px; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(0, 229, 255, .5), rgba(255, 43, 214, .4), transparent); pointer-events: none; }
.sidebar .brand { padding: 0 8px 26px; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 13px; border: 0; border-radius: 12px; background: none; color: var(--muted); cursor: pointer; text-align: left; font-size: 14px; transition: color .2s, background .2s; }
.sidebar nav button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sidebar nav button:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.sidebar nav button.active { color: #fff; background: linear-gradient(90deg, rgba(0, 229, 255, .16), rgba(139, 92, 246, .14) 60%, transparent); box-shadow: inset 0 0 0 1px rgba(127, 243, 255, .14); }
.sidebar nav button.active svg { stroke: var(--signal-2); filter: drop-shadow(0 0 6px rgba(0, 229, 255, .7)); }
.sidebar nav button.active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); box-shadow: 0 0 12px var(--signal); }
.sidebar nav i { margin-left: auto; font-style: normal; font: 600 11px/18px var(--font-num); padding: 0 7px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--soft); }
.sidebar nav i.hot { background: var(--grad); color: #fff; box-shadow: 0 0 12px rgba(255, 43, 214, .5); }
.guide-nav { margin-top: 14px; padding: 12px 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-decoration: none; }
.guide-nav:hover { color: var(--text); }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px; font-size: 12px; color: var(--soft); border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.sidebar-foot small { flex-basis: 100%; color: var(--faint); font-family: var(--font-num); letter-spacing: .06em; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 34px; background: rgba(8, 7, 20, .66); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); }
.topbar-title { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.topbar-title h2 { font-size: 19px; font-weight: 700; white-space: nowrap; letter-spacing: .02em; }
.breadcrumb { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 14px; border-left: 1px solid var(--line-2); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-actions select { width: auto; max-width: 230px; padding: 9px 32px 9px 13px; border-radius: 12px; background-color: rgba(255, 255, 255, .04); }
.sync-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 99px; background: rgba(0, 229, 255, .06); border: 1px solid rgba(0, 229, 255, .2); font-size: 12px; color: var(--signal-2); white-space: nowrap; }
.sync-pill.error { color: #ffb3c4; border-color: rgba(255, 59, 107, .45); background: rgba(255, 59, 107, .08); }
.sync-pill.error .live-dot { background: var(--bad); animation: none; }
.user-pill { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; transition: border-color .2s; }
.user-pill:hover { border-color: rgba(127, 243, 255, .5); }
#avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; font: 700 14px var(--font-display); box-shadow: 0 0 14px rgba(139, 92, 246, .5); }
.user-text { display: grid; text-align: left; line-height: 1.25; }
.user-text small { color: var(--muted); font-size: 11px; }
.floating-menu { position: fixed; z-index: 60; display: grid; min-width: 210px; padding: 7px; border-radius: 16px; background: linear-gradient(165deg, rgba(34, 29, 74, .92), rgba(12, 10, 30, .95)) padding-box, var(--grad-soft) border-box; border: 1px solid transparent; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.floating-menu button { text-align: left; padding: 11px 13px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.floating-menu button:hover { background: rgba(255, 255, 255, .06); }
.floating-menu .danger-item { color: #ff9ab0; }
#voice-toggle { color: var(--signal-2); }
#voice-toggle.off { color: var(--muted); }
.user-dropdown { top: 66px; right: 34px; }
main { flex: 1; padding: 28px 34px 120px; min-width: 0; }
.page { display: grid; gap: 18px; align-content: start; animation: page-in .35s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
.app-footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 34px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.app-footer a { color: var(--muted); text-decoration: none; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-heading h1 { font-size: 30px; font-weight: 800; letter-spacing: .02em; background: linear-gradient(90deg, #fff 40%, #c9b6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-heading p { margin: 8px 0 0; max-width: 46em; font-size: 13px; line-height: 1.75; }
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.subheading { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 12px 0 -6px; color: var(--soft); }
.subheading::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--grad); box-shadow: 0 0 10px rgba(0, 229, 255, .5); }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; border-radius: var(--radius); border: 1px solid; margin-bottom: 18px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.notice p { margin: 3px 0 0; font-size: 13px; color: var(--soft); }
.notice.waiting { background: linear-gradient(90deg, rgba(245, 181, 68, .14), rgba(245, 181, 68, .03)); border-color: rgba(245, 181, 68, .35); }
.notice.risk { background: linear-gradient(90deg, rgba(255, 59, 107, .16), rgba(255, 43, 214, .05)); border-color: rgba(255, 59, 107, .45); box-shadow: 0 0 30px rgba(255, 59, 107, .1); }
.panel { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.panel-head p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.panel-actions { display: flex; gap: 14px; }
.count { font: 700 12px/20px var(--font-num); padding: 0 9px; border-radius: 99px; background: var(--grad); color: #fff; }
.panel-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 12px 22px; color: var(--faint); font-size: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- overview ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric { position: relative; overflow: hidden; display: grid; gap: 6px; padding: 20px 22px 18px; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .25); transition: transform .25s, box-shadow .25s; }
.metric:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(0, 0, 0, .35), 0 0 30px rgba(139, 92, 246, .14); }
.metric::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .28), transparent 70%); pointer-events: none; }
.metric-top { display: flex; justify-content: space-between; align-items: center; }
.metric-top span { color: var(--soft); font-size: 13px; }
.metric-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(0, 229, 255, .1); border: 1px solid rgba(0, 229, 255, .25); }
.metric-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--signal-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(0, 229, 255, .6)); }
.metric strong { font-size: 38px; line-height: 1.1; font-weight: 700; letter-spacing: .01em; }
.metric strong.positive { text-shadow: 0 0 24px rgba(255, 59, 107, .45); }
.metric strong.negative { text-shadow: 0 0 24px rgba(0, 224, 160, .4); }
.metric small { color: var(--muted); font-size: 12px; }
.metric-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 4px; }
.metric-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); box-shadow: 0 0 10px rgba(0, 229, 255, .6); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.metric-bar.gold i { background: linear-gradient(90deg, #f5c66a, #ff3b6b); box-shadow: 0 0 10px rgba(245, 198, 106, .5); }
.metric.accent { background: linear-gradient(160deg, rgba(56, 33, 110, .8), rgba(14, 11, 34, .82)) padding-box, var(--grad-soft) border-box; }
.metric.accent .metric-icon { background: rgba(255, 43, 214, .14); border-color: rgba(255, 43, 214, .35); }
.metric.accent .metric-icon svg { stroke: #ff9fe9; filter: drop-shadow(0 0 4px rgba(255, 43, 214, .7)); }
.metric-spark { width: 100%; height: 36px; display: block; margin-top: 2px; overflow: visible; }
.spark-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark-line.up { stroke: var(--up); filter: drop-shadow(0 0 4px var(--up)); } .spark-line.down { stroke: var(--down); filter: drop-shadow(0 0 4px var(--down)); }
.spark-area.up { fill: rgba(255, 59, 107, .14); } .spark-area.down { fill: rgba(0, 224, 160, .12); }
.group-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; }
.group-chip { flex: none; display: grid; gap: 2px; min-width: 160px; padding: 12px 15px; border-radius: 15px; text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.group-chip:hover { transform: translateY(-1px); }
.group-chip.active { background: linear-gradient(160deg, rgba(0, 229, 255, .18), rgba(139, 92, 246, .24)) padding-box, linear-gradient(#141030, #141030) padding-box, var(--grad) border-box; box-shadow: 0 0 26px rgba(0, 229, 255, .18); }
.chip-name { font-weight: 700; font-size: 14px; }
.chip-meta { color: var(--muted); font-size: 12px; }
.chip-pnl { font-size: 16px; display: flex; gap: 6px; align-items: baseline; }
.chip-pnl b { font-weight: 700; }
.chip-pnl small, .group-pnl small, .server-pnl small { color: var(--faint); font-size: 11px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.search-field { position: relative; flex: 1 1 240px; }
.search-field svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-field input { padding-left: 38px; }
.filters > select { width: auto; flex: 0 1 220px; }
.segmented { display: flex; background: rgba(6, 5, 15, .6); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 3px; }
.segmented button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 13px; white-space: nowrap; transition: color .2s; }
.segmented button.active { background: linear-gradient(135deg, rgba(0, 229, 255, .22), rgba(139, 92, 246, .32)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { position: sticky; top: 0; text-align: left; font-weight: 500; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); background: rgba(12, 10, 30, .92); white-space: nowrap; font-size: 12px; letter-spacing: .04em; }
td { padding: 12px; border-bottom: 1px solid rgba(150, 138, 255, .07); white-space: nowrap; transition: background .15s; }
th:first-child, td:first-child { padding-left: 22px; width: 46px; }
th.num, td.num { text-align: right; }
td.num { font-family: var(--font-num); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
td.num b { font-weight: 700; font-size: 16px; }
td.num.positive b { text-shadow: 0 0 12px rgba(255, 59, 107, .45); }
td.num.negative b { text-shadow: 0 0 12px rgba(0, 224, 160, .4); }
td.num small { color: var(--faint); font-size: 11px; font-weight: 500; }
tbody tr:not(.group-row):hover td { background: linear-gradient(90deg, rgba(0, 229, 255, .05), rgba(139, 92, 246, .06)); }
tbody tr.selected td { background: linear-gradient(90deg, rgba(0, 229, 255, .1), rgba(139, 92, 246, .1)); }
tbody tr.selected td:first-child { box-shadow: inset 3px 0 0 var(--signal); }
.account-name { display: grid; gap: 1px; }
.account-name b { font: 700 15px var(--font-num); letter-spacing: .03em; }
.account-name small { color: var(--muted); font-size: 12px; }
.group-row td { background: linear-gradient(90deg, rgba(139, 92, 246, .16), rgba(0, 229, 255, .04) 60%, transparent); border-bottom: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; }
.group-row-inner, .mobile-group label > span { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.group-row-inner b, .mobile-group b { font-size: 13px; color: #fff; }
.group-row-inner > span, .mobile-group label > span > span { color: var(--muted); font-size: 12px; }
.group-pnl { display: inline-flex; gap: 6px; align-items: baseline; margin-left: auto; font-size: 14px; }
.group-pnl b { font-weight: 700; }
.account-progress { margin-top: 4px; font-size: 11px; color: var(--amber); white-space: normal; }
.mobile-accounts { display: none; }
.batch-dock { position: fixed; z-index: 40; left: calc(240px + 34px); right: 34px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 18px; border-radius: 20px;
  background: linear-gradient(165deg, rgba(40, 33, 86, .9), rgba(14, 11, 34, .94)) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(139, 92, 246, .25); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: dock-in .3s ease-out; }
@keyframes dock-in { from { opacity: 0; transform: translateY(14px); } }
.batch-selection { display: flex; align-items: center; gap: 12px; }
.batch-selection small { display: block; color: var(--muted); font-size: 12px; }
.selection-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 0 18px rgba(0, 229, 255, .45); }
.batch-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
#more-menu { right: 46px; bottom: 90px; }

/* ---------- servers & groups ---------- */
.server-lanes { display: grid; gap: 22px; }
.group-lane { border-radius: 22px; padding: 20px; }
.group-lane.custom { background: linear-gradient(170deg, rgba(42, 30, 92, .7), rgba(12, 10, 30, .8) 140px) padding-box, var(--grad-soft) border-box; }
.group-lane > header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.group-lane h2 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.group-lane h2::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 10px var(--signal); }
.group-lane header span { display: inline-flex; gap: 6px; align-items: baseline; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 4px; }
.lane-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.lane-empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.server-card { display: grid; gap: 9px; align-content: start; padding: 18px; border-radius: 16px; transition: transform .2s, box-shadow .2s; }
.server-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 24px rgba(0, 229, 255, .1); }
.server-status { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.owner-tag { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-card h3 { font-size: 17px; overflow-wrap: anywhere; font-weight: 700; }
.server-ip { margin: 0; font-size: 16px; font-weight: 600; color: var(--signal-2); letter-spacing: .06em; }
.server-stats { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; align-items: baseline; }
.server-pnl { display: inline-flex; gap: 5px; align-items: baseline; font-size: 15px; }
.server-pnl b { font-weight: 700; }
.group-select { grid-template-columns: auto 1fr; align-items: center; gap: 10px; font-size: 12px; }
.group-select select { padding: 7px 10px; font-size: 13px; }
.server-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.server-actions .button { min-height: 32px; padding: 0 12px; font-size: 12px; }
.pick-list { display: grid; gap: 6px; max-height: 50vh; overflow: auto; margin: 4px 0 8px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); cursor: pointer; }
.pick:has(input:checked) { border-color: rgba(0, 229, 255, .55); background: linear-gradient(90deg, rgba(0, 229, 255, .1), rgba(139, 92, 246, .08)); }
.pick span { display: grid; }
.pick small { color: var(--muted); font-size: 12px; }

/* ---------- jobs / review / team ---------- */
.job-row, .review-row, .invite-card { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 22px; border-radius: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.job-row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--violet); }
.job-row h3, .review-row h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.job-row p, .review-row p { margin: 5px 0 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.job-time { display: block; margin-top: 6px; font-size: 12px; color: var(--faint); font-family: var(--font-num); letter-spacing: .03em; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.review-row.child { margin-left: 36px; }
.review-row.child::before { content: ""; position: absolute; left: -22px; top: -10px; height: calc(50% + 10px); width: 16px; border-left: 1px solid rgba(0, 229, 255, .4); border-bottom: 1px solid rgba(0, 229, 255, .4); border-bottom-left-radius: 9px; }
#team-content .review-row.child { margin-left: 0; }
#team-content .review-row.child::before { display: none; }
.invite-list { display: grid; gap: 10px; }
.invite-card { margin: 0; }
.invite-card.off { opacity: .5; }
.invite-code { display: grid; gap: 4px; }
.invite-code b { font-size: 24px; font-weight: 700; letter-spacing: .12em; background: linear-gradient(90deg, #7ff3ff, #c7b2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.invite-code small { color: var(--muted); }
#audit-content { padding: 6px 0; }
.audit-row { display: grid; grid-template-columns: 160px 150px 1fr; gap: 14px; padding: 11px 22px; font-size: 13px; border-bottom: 1px solid rgba(150, 138, 255, .07); }
.audit-row:last-child { border-bottom: 0; }
.audit-row time { color: var(--faint); font-family: var(--font-num); letter-spacing: .03em; }
.audit-row b { color: var(--soft); }
.audit-row span { color: var(--muted); overflow-wrap: anywhere; }

/* ---------- modal, toast, voice ---------- */
dialog { width: min(580px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; padding: 0; border-radius: 24px; color: var(--text);
  background: linear-gradient(165deg, rgba(36, 30, 78, .94), rgba(11, 9, 28, .97)) padding-box, var(--grad-soft) border-box; border: 1px solid transparent; box-shadow: 0 40px 100px rgba(0, 0, 0, .7), 0 0 60px rgba(139, 92, 246, .22); }
dialog[open] { animation: dialog-in .25s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
dialog::backdrop { background: rgba(3, 2, 10, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#modal-content { display: grid; gap: 14px; padding: 26px; }
#modal-content h2 { font-size: 20px; font-weight: 700; }
.modal-lead { margin: -4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
#modal-content form { display: grid; gap: 14px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.scope-summary { color: var(--soft); font-size: 13px; }
.scope-summary b { font: 700 20px var(--font-num); color: #fff; }
.scope-list { display: grid; gap: 6px; max-height: 280px; overflow: auto; }
.scope-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px; border-radius: 11px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.scope-list b { font-family: var(--font-num); font-size: 15px; letter-spacing: .03em; }
.scope-list small { color: var(--muted); text-align: right; font-size: 12px; }
.scope-list p { margin: 3px 0 0; font-size: 12px; }
.code-field { font: 600 14px/1.6 var(--font-num); color: var(--signal-2); word-break: break-all; resize: none; letter-spacing: .03em; }
.alert-modal { border-top: 3px solid var(--gold); }
#modal-content.alert-modal h2 { color: var(--gold); text-shadow: 0 0 18px rgba(245, 198, 106, .5); }
.alert-list { display: grid; gap: 10px; }
.alert-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(245, 198, 106, .14), rgba(255, 255, 255, .02)); border: 1px solid rgba(245, 198, 106, .4); }
.alert-item.bear { background: linear-gradient(90deg, rgba(0, 229, 255, .12), rgba(255, 255, 255, .02)); border-color: rgba(0, 229, 255, .4); }
.alert-score { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font: 700 26px var(--font-num); color: var(--gold); border: 2px solid var(--gold); box-shadow: 0 0 22px rgba(245, 198, 106, .45), inset 0 0 14px rgba(245, 198, 106, .2); animation: score-pulse 1.4s ease-in-out infinite; }
.alert-item.bear .alert-score { color: var(--signal); border-color: var(--signal); box-shadow: 0 0 22px rgba(0, 229, 255, .45); }
@keyframes score-pulse { 50% { box-shadow: 0 0 34px rgba(245, 198, 106, .75), inset 0 0 18px rgba(245, 198, 106, .3); } }
.alert-item b { font-size: 15px; }
.alert-item p { margin: 3px 0 0; font-size: 12px; color: var(--soft); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 30px; translate: -50% 0; max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 14px; font-size: 13px;
  background: linear-gradient(165deg, rgba(40, 33, 86, .95), rgba(14, 11, 34, .97)) padding-box, var(--grad-soft) border-box; border: 1px solid transparent; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); animation: dock-in .25s ease-out; }
.toast.error { background: linear-gradient(165deg, rgba(70, 20, 40, .95), rgba(20, 8, 18, .97)) padding-box, linear-gradient(135deg, #ff3b6b, #ff2bd6) border-box; color: #ffd0da; }
.voice-unlock, .voice-indicator { position: fixed; z-index: 90; right: 26px; bottom: 26px; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 99px; font-size: 13px; color: #1b1300; font-weight: 700; background: linear-gradient(135deg, #f5c66a, #ffde8a); border: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 12px 40px rgba(245, 198, 106, .5); cursor: pointer; animation: voice-call 1.4s ease-in-out infinite; }
.voice-indicator { cursor: default; animation: none; bottom: 84px; color: #f5c66a; background: rgba(14, 11, 34, .92); box-shadow: 0 0 0 1px rgba(245, 198, 106, .5) inset, 0 12px 40px rgba(0, 0, 0, .5); }
@keyframes voice-call { 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 12px 60px rgba(245, 198, 106, .85); transform: translateY(-2px); } }
.voice-wave { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.voice-wave i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; animation: wave .9s ease-in-out infinite; }
.voice-wave i:nth-child(2) { animation-delay: .15s; } .voice-wave i:nth-child(3) { animation-delay: .3s; } .voice-wave i:nth-child(4) { animation-delay: .45s; }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ---------- guide page ---------- */
.guide-body { background: var(--bg); }
.guide-shell { max-width: 1040px; padding: 32px 30px 60px; margin: auto; }
.guide-back { text-decoration: none; color: var(--muted); font-size: 13px; }
.guide-back:hover { color: var(--text); }
.guide-hero { border-bottom: 1px solid var(--line); padding: 48px 0 36px; }
.guide-hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.3; margin: 0 0 14px; font-weight: 800; background: linear-gradient(110deg, #fff 30%, #a9f6ff 60%, #d6b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guide-hero p { color: var(--soft); font-size: 15px; line-height: 1.8; }
.guide-hero a { margin-top: 12px; }
.guide-hero small { display: block; font-size: 12px; color: var(--faint); margin-top: 14px; }
.guide-flow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 24px 0; color: var(--faint); font-size: 13px; }
.guide-flow span { padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--soft); background: rgba(255, 255, 255, .04); }
.guide-step { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.step-index { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--grad); color: #fff; font: 700 18px var(--font-num); box-shadow: 0 0 18px rgba(139, 92, 246, .45); }
.guide-step h2 { font-size: 22px; margin: 6px 0 12px; }
.guide-step p { color: var(--soft); font-size: 14px; line-height: 1.9; }
.guide-step figure { margin: 20px 0; }
.guide-step img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: 14px; }
.guide-step figcaption { font-size: 12px; color: var(--faint); line-height: 1.8; padding: 10px 0; }
.guide-example { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; background: rgba(255, 255, 255, .04); padding: 20px; border: 1px solid var(--line-2); border-radius: 14px; font-size: 13px; }
.guide-example small { color: var(--muted); }
.guide-example .button { margin-left: auto; }
.guide-faq { margin: 34px 0; }
.guide-faq h2 { font-size: 22px; margin-bottom: 8px; }
.guide-faq details { border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; padding: 16px 20px; background: rgba(255, 255, 255, .03); }
.guide-faq summary { cursor: pointer; font-size: 14px; }
.guide-faq p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.guide-end { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-intro { padding: 40px 30px; }
  .auth-intro h1 { margin-top: 10px; }
  .auth-points { margin-bottom: 0; }
  .auth-box { margin: 0 20px 30px; padding: 32px 28px 36px; }
}
@media (max-width: 860px) {
  body { font-size: 13px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: rgba(10, 8, 24, .9); }
  .sidebar::after { width: 100%; height: 1px; top: -1px; right: 0; background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .6), rgba(255, 43, 214, .5), transparent); }
  .sidebar .brand, .guide-nav, .sidebar-foot { display: none; }
  .sidebar nav { display: flex; width: 100%; gap: 2px; }
  .sidebar nav button { flex: 1 1 0; flex-direction: column; gap: 3px; padding: 7px 2px; font-size: 10.5px; text-align: center; min-width: 0; }
  .sidebar nav button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .sidebar nav button.active::before { left: 25%; right: 25%; top: -6px; bottom: auto; width: auto; height: 2px; border-radius: 0 0 2px 2px; }
  #server-count { display: none; }
  .sidebar nav i { position: absolute; top: 2px; right: calc(50% - 22px); margin: 0; font-size: 9px; line-height: 14px; padding: 0 4px; }
  .topbar { padding: 10px 14px; gap: 8px; flex-wrap: wrap; }
  .topbar-title h2 { font-size: 16px; }
  .breadcrumb, .user-text, .sync-pill > span:last-child { display: none; }
  .sync-pill { padding: 10px; }
  .top-actions { gap: 6px; }
  .top-actions select { max-width: 150px; padding: 8px 26px 8px 10px; font-size: 12px; }
  .user-pill { padding: 3px; }
  .user-dropdown { right: 14px; top: 58px; }
  main { padding: 16px 14px 170px; }
  .app-footer { display: none; }
  .metrics { gap: 10px; }
  .metric { padding: 15px; }
  .metric strong { font-size: 26px; }
  .metric-icon { width: 28px; height: 28px; }
  .section-heading h1 { font-size: 24px; }
  .panel-head { padding: 14px; }
  .filters { padding: 12px 14px; }
  .filters > select { flex: 1 1 100%; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding: 7px 4px; }
  .table-wrap { display: none; }
  .mobile-accounts { display: grid; gap: 8px; padding: 12px; }
  .mobile-group label { display: flex; align-items: center; gap: 10px; padding: 8px 4px 2px; }
  .mobile-group .group-pnl { margin-left: 0; }
  .account-card { display: grid; gap: 10px; padding: 15px; border-radius: 15px; }
  .account-card.selected { background: linear-gradient(160deg, rgba(0, 229, 255, .12), rgba(139, 92, 246, .14)) padding-box, linear-gradient(#141030, #141030) padding-box, var(--grad) border-box; }
  .account-card-head { display: flex; align-items: center; gap: 10px; }
  .account-card-head .account-name { flex: 1; min-width: 0; }
  .account-card-head .account-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .account-numbers span { display: block; color: var(--muted); font-size: 11px; }
  .account-numbers b { font-size: 17px; font-weight: 700; }
  .account-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
  .panel-bottom { padding: 10px 14px; }
  .batch-dock { left: 10px; right: 10px; bottom: calc(68px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
  .batch-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .batch-buttons .button { padding: 0 8px; }
  #more-menu { right: 14px; bottom: calc(190px + env(safe-area-inset-bottom)); }
  .server-grid { grid-template-columns: 1fr; }
  .group-lane { padding: 15px; border-radius: 16px; }
  .job-row, .review-row, .invite-card { padding: 14px; }
  .review-row.child { margin-left: 18px; }
  .review-row.child::before { left: -12px; width: 8px; }
  .audit-row { grid-template-columns: 1fr; gap: 2px; padding: 10px 14px; }
  .auth-intro { padding: 28px 18px; gap: 18px; }
  .auth-intro h1 { font-size: 30px; }
  .auth-points li { grid-template-columns: 1fr; gap: 2px; }
  .auth-box { margin: 0 12px 24px; padding: 24px 18px 30px; border-radius: 20px; }
  .voice-unlock { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); justify-content: center; }
  .voice-indicator { left: 12px; right: 12px; bottom: calc(134px + env(safe-area-inset-bottom)); justify-content: center; }
  .guide-shell { padding: 22px 16px 34px; }
  .guide-step { grid-template-columns: 36px 1fr; gap: 12px; padding: 24px 0; }
  .step-index { width: 34px; height: 34px; font-size: 15px; }
  .guide-step h2 { font-size: 18px; }
  .guide-step p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .auth-tape-line { stroke-dashoffset: 0; }
}

/* ======================================================================
   风控作战 · 赛博朋克作战图
   霓虹青 = 界面 / 霓虹品红 = 装饰 / 霓虹黄 = 慢牛预警；红色盈利、绿色亏损不变
   ====================================================================== */
body.war-mode { background: #05010c; }
body.war-mode .app { background: #05010c; }
body.war-mode .topbar { background: #05010cd9; border-bottom-color: #2a1452; }
.war { --up: #ff3864; --down: #00ff9f; --cy: #00f0ff; --pink: #ff2bd6; --yellow: #fcee0a; --violet: #8b6bff; --ink: #ece6ff; --dim: #9c8fcc; --line-cy: rgba(0, 240, 255, .28);
  position: relative; isolation: isolate; gap: 14px; color: var(--ink); }
.war-fx { position: absolute; inset: -26px -32px -120px; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(900px 420px at 12% 0%, rgba(255, 43, 214, .16), transparent 60%), radial-gradient(800px 500px at 95% 20%, rgba(0, 240, 255, .12), transparent 60%), #05010c; }
.war-floor { position: absolute; inset: 0; opacity: .55;
  background: linear-gradient(transparent 0 calc(100% - 1px), rgba(255, 43, 214, .22) 0) 0 0 / 100% 46px, linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(0, 240, 255, .12) 0) 0 0 / 46px 100%;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 45%, rgba(0,0,0,.7)); mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 45%, rgba(0,0,0,.7));
  animation: grid-drift 7s linear infinite; }
@keyframes grid-drift { to { background-position: 0 46px, 46px 0; } }
.war-scan { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 3px); }
.war-scan::after { content: ""; position: absolute; left: 0; right: 0; height: 160px; top: -160px; background: linear-gradient(180deg, transparent, rgba(0, 240, 255, .07), transparent); animation: scan-down 9s linear infinite; }
@keyframes scan-down { to { transform: translateY(calc(100vh + 2400px)); } }

/* header */
.war-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.war-code { display: block; font: 700 11px/1 var(--font-display); letter-spacing: .32em; color: var(--cy); text-shadow: 0 0 8px var(--cy); margin-bottom: 8px; }
.war-title h1 { font-size: 34px; font-weight: 800; letter-spacing: .06em; color: #fff; text-shadow: 0 0 14px rgba(255, 43, 214, .55), 0 0 2px #fff; }
.war-title p { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; color: var(--dim); font-size: 13px; flex-wrap: wrap; }
.war-title p b { color: var(--ink); }
.war .live-dot { background: var(--cy); box-shadow: 0 0 10px var(--cy); }
#risk-clock { font-family: var(--font-num); color: var(--cy); letter-spacing: .05em; }
.war-link { font-size: 12px; color: var(--down); }
.war-link::before { content: "▮ "; }
.war-link.down { color: var(--yellow); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.glitch::before { color: var(--cy); transform: translate(-2px, 0); clip-path: inset(0 0 100% 0); animation: glitch-a 4.2s infinite steps(1); }
.glitch::after { color: var(--pink); transform: translate(2px, 0); clip-path: inset(100% 0 0 0); animation: glitch-b 4.2s infinite steps(1); }
@keyframes glitch-a { 0%, 86%, 100% { clip-path: inset(0 0 100% 0); } 87% { clip-path: inset(10% 0 60% 0); transform: translate(-4px, -1px); } 89% { clip-path: inset(55% 0 20% 0); transform: translate(3px, 1px); } 92% { clip-path: inset(30% 0 45% 0); transform: translate(-2px, 0); } }
@keyframes glitch-b { 0%, 86%, 100% { clip-path: inset(100% 0 0 0); } 88% { clip-path: inset(65% 0 10% 0); transform: translate(4px, 1px); } 90% { clip-path: inset(20% 0 55% 0); transform: translate(-3px, -1px); } 93% { clip-path: inset(40% 0 35% 0); transform: translate(2px, 0); } }
.war-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.war-select { display: flex; align-items: center; gap: 8px; padding-left: 12px; border: 1px solid var(--line-cy); background: rgba(10, 4, 26, .8); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.war-select span { color: var(--cy); font-size: 12px; white-space: nowrap; }
.war-select select { border: 0; background: transparent; width: auto; min-width: 90px; max-width: 200px; padding: 8px 10px; box-shadow: none; color: var(--ink); }
.war-select select option { background: #120626; }
.cy-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid var(--cy); background: rgba(0, 240, 255, .08); color: var(--cy); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); text-shadow: 0 0 8px rgba(0, 240, 255, .6); transition: background .15s, color .15s; }
.cy-button:hover { background: var(--cy); color: #05010c; text-shadow: none; }
.cy-button.small { min-height: 30px; padding: 0 12px; font-size: 12px; }
.cy-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* alarm strip */
.war-alarm { position: relative; display: flex; align-items: center; gap: 14px; padding: 4px; --tone: var(--yellow);
  background: repeating-linear-gradient(-45deg, var(--tone) 0 12px, #05010c 12px 24px) 0 0 / 34px 34px; animation: hazard 1.2s linear infinite, alarm-glow 1.6s ease-in-out infinite; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.war-alarm.bear { --tone: var(--cy); }
@keyframes hazard { to { background-position: 34px 0; } }
@keyframes alarm-glow { 50% { filter: drop-shadow(0 0 14px var(--tone)); } }
.alarm-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; background: #05010c; color: var(--tone); font: 800 28px/1 var(--font-num); margin-left: 4px; }
.alarm-text { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 9px 14px; background: #05010cf0; }
.alarm-text b { color: var(--tone); font-size: 17px; letter-spacing: .04em; text-shadow: 0 0 10px var(--tone); }
.alarm-text span { color: var(--ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.war-alarm .cy-button { margin-right: 6px; background: #05010c; border-color: var(--tone); color: var(--tone); }
.war-alarm .cy-button:hover { background: var(--tone); color: #05010c; }

/* grid & panels */
.war-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.war-grid > * { min-width: 0; }
.cy { position: relative; padding: 18px 20px; border: 1px solid var(--line-cy); background: linear-gradient(160deg, rgba(28, 9, 58, .78), rgba(7, 3, 20, .9) 70%); box-shadow: inset 0 0 30px rgba(0, 240, 255, .05);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.cy::before { content: ""; position: absolute; left: 0; top: 0; width: 17px; height: 17px; pointer-events: none; background: linear-gradient(135deg, transparent calc(50% - 1.5px), var(--cy) calc(50% - 1.5px) calc(50% + 1px), transparent calc(50% + 1px)); filter: drop-shadow(0 0 4px var(--cy)); }
.cy > .card-head::before, .war-hero > .hero-top::before { content: ""; position: absolute; left: 16px; top: 0; width: 64px; height: 2px; background: var(--cy); box-shadow: 0 0 10px var(--cy); }
.cy::after { content: ""; position: absolute; right: 0; bottom: 0; width: 70px; height: 3px; background: linear-gradient(90deg, transparent, var(--pink)); box-shadow: 0 0 10px var(--pink); pointer-events: none; }
.war .card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.war .card-head h3 { font-size: 15px; letter-spacing: .04em; color: #fff; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.war .card-head p { margin: 4px 0 0; font-size: 12px; color: var(--dim); }
.cy-tag { display: inline-block; font: 700 10px/16px var(--font-num); font-style: normal; padding: 0 6px; margin-right: 8px; color: #05010c; background: var(--cy); box-shadow: 0 0 10px rgba(0, 240, 255, .7); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.war .badge { background: rgba(255, 43, 214, .12); color: #ff8be9; border-color: rgba(255, 43, 214, .45); border-radius: 2px; }
.war .text-button { color: var(--cy); }
.war .empty { color: var(--dim); }
.war .empty b { color: var(--ink); }

/* hero */
.war-hero { grid-column: span 5; display: flex; flex-direction: column; gap: 4px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hero-top h2 { font-size: 15px; font-weight: 600; color: #fff; display: flex; align-items: center; }
.delta { font: 600 13px var(--font-num); padding: 3px 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: var(--ink); }
.hero-value { font-size: clamp(46px, 5vw, 88px); line-height: 1.05; font-weight: 700; letter-spacing: .01em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.hero-value.positive { text-shadow: 0 0 16px rgba(255, 56, 100, .85), 0 0 46px rgba(255, 56, 100, .45); }
.hero-value.negative { text-shadow: 0 0 16px rgba(0, 255, 159, .75), 0 0 46px rgba(0, 255, 159, .35); }
.hero-value.flash { animation: hero-flash .5s ease-out; }
@keyframes hero-flash { 0% { filter: brightness(2.2); transform: translateX(-2px) skewX(-4deg); } 30% { transform: translateX(2px) skewX(3deg); } 100% { filter: none; transform: none; } }
#risk-coverage { margin: 0; color: var(--dim); font-size: 12px; }
.tape-wrap { position: relative; margin-top: auto; overflow: hidden; }
.tape { width: 100%; height: 170px; display: block; overflow: visible; }
.tape-sweep { position: absolute; top: 0; bottom: 0; width: 90px; left: -90px; background: linear-gradient(90deg, transparent, rgba(0, 240, 255, .16), transparent); animation: sweep 3.6s linear infinite; }
@keyframes sweep { to { left: 100%; } }
.tape-zero { stroke: rgba(236, 230, 255, .35); stroke-dasharray: 3 5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tape-line { fill: none; stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tape-line.up { stroke: var(--up); } .tape-line.down { stroke: var(--down); }
.tape-area.up { fill: url(#tape-up); } .tape-area.down { fill: url(#tape-down); }
.tape-dot.up { fill: var(--up); } .tape-dot.down { fill: var(--down); }
.tape-pulse { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ring 1.8s infinite; }
.tape-pulse.up { stroke: var(--up); } .tape-pulse.down { stroke: var(--down); }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(4.5); opacity: 0; } }
.tape-wait { fill: var(--dim); font-size: 14px; }
.hero-foot { display: flex; justify-content: space-between; gap: 10px; color: var(--dim); font: 11px var(--font-num); flex-wrap: wrap; }

/* K-line war zone */
.war-chart { grid-column: span 7; display: flex; flex-direction: column; padding-bottom: 12px; }
.chart-head { align-items: center !important; flex-wrap: wrap; }
.chart-switch { display: flex; align-items: center; gap: 4px; }
.chart-switch .tf { border: 1px solid rgba(139, 107, 255, .45); background: transparent; color: var(--dim); font: 600 12px var(--font-num); padding: 5px 10px; cursor: pointer; }
.chart-switch .tf.active { background: var(--pink); border-color: var(--pink); color: #05010c; box-shadow: 0 0 12px rgba(255, 43, 214, .6); }
.chart-switch .switch-control { margin-left: 10px; }
.chart-badge { font: 600 11px/18px var(--font-num); padding: 0 8px; border: 1px solid var(--violet); color: #cfc2ff; }
.chart-badge.bull { border-color: var(--yellow); color: var(--yellow); }
.chart-badge.bear { border-color: var(--cy); color: var(--cy); }
.chart-badge.hot { background: var(--yellow); color: #05010c; box-shadow: 0 0 14px var(--yellow); animation: blink 1.2s steps(2) infinite; }
.chart-badge.bear.hot { background: var(--cy); box-shadow: 0 0 14px var(--cy); }
.switch-control { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); font-size: 13px; }
.switch-control input { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 40px; height: 22px; margin: 0; opacity: 0; z-index: 1; cursor: pointer; }
.switch-control span { width: 40px; height: 22px; background: #1b0e36; border: 1px solid rgba(139, 107, 255, .6); position: relative; transition: background .2s; }
.switch-control span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; background: var(--dim); transition: transform .2s; }
.switch-control input:checked + span { background: rgba(0, 240, 255, .2); border-color: var(--cy); box-shadow: 0 0 10px rgba(0, 240, 255, .5); }
.switch-control input:checked + span::after { transform: translateX(18px); background: var(--cy); }
.switch-control input:focus-visible + span { outline: 2px solid var(--cy); outline-offset: 2px; }
.chart-off { flex: 1; display: grid; place-content: center; padding: 40px 20px; text-align: center; color: var(--dim); border: 1px dashed rgba(139, 107, 255, .35); }
.chart-off b { color: var(--ink); }
.chart-off p { margin: 6px 0 0; font-size: 13px; }
.chart-controls { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
.chart-controls label { flex: 1 1 160px; color: var(--dim); font-size: 12px; }
.chart-controls input, .chart-controls select { background: rgba(5, 1, 12, .7); border-color: rgba(139, 107, 255, .45); padding: 7px 10px; }
.chart-controls #chart-state { font-size: 12px; flex-basis: 100%; }
.chart-ready { color: var(--cy); }
.chart-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.chart-grid.tf-ALL { grid-template-columns: 1fr 1fr; }
.chart-grid.tf-M1 .chart-m5, .chart-grid.tf-M5 .chart-m1 { display: none; }
.chart-grid article { min-width: 0; background: rgba(5, 1, 12, .55); border: 1px solid rgba(139, 107, 255, .25); padding: 10px 12px 6px; }
.chart-title { display: flex; justify-content: space-between; color: var(--ink); }
.chart-title span { color: var(--pink); font-weight: 600; }
.chart-title small { font: 600 15px var(--font-num); color: var(--cy); text-shadow: 0 0 8px rgba(0, 240, 255, .6); }
.chart-grid canvas { width: 100%; height: 290px; display: block; margin-top: 6px; }
.chart-grid.tf-ALL canvas { height: 250px; }
.chart-hover { color: var(--dim); font: 11px var(--font-num); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; color: var(--dim); font-size: 11px; flex-wrap: wrap; }

/* KPI ribbon */
.war-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { position: relative; display: grid; gap: 4px; padding: 13px 16px; background: linear-gradient(90deg, rgba(0, 240, 255, .08), rgba(10, 4, 26, .85) 40%); border-left: 2px solid var(--cy); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.kpi:nth-child(even) { border-left-color: var(--pink); background: linear-gradient(90deg, rgba(255, 43, 214, .08), rgba(10, 4, 26, .85) 40%); }
.kpi span { color: var(--dim); font-size: 12px; }
.kpi strong { font-size: clamp(18px, 1.5vw, 26px); font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.kpi strong.positive { text-shadow: 0 0 10px rgba(255, 56, 100, .6); }
.kpi strong.negative { text-shadow: 0 0 10px rgba(0, 255, 159, .5); }
.kpi small { color: #7d70ad; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1720px) { .war-kpis { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* slow-bull radar */
.war-radar { grid-column: span 4; }
.radar-list { display: grid; gap: 6px; }
.radar-row { --tone: var(--violet); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(100px, 42%); align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid rgba(139, 107, 255, .25); background: rgba(5, 1, 12, .5); text-align: left; cursor: pointer; color: var(--ink); }
.radar-row:hover { border-color: var(--tone); }
.radar-row.bull { --tone: var(--yellow); } .radar-row.bear { --tone: var(--cy); }
.radar-row.hot { border-color: var(--tone); box-shadow: inset 0 0 18px color-mix(in srgb, var(--tone) 22%, transparent), 0 0 12px color-mix(in srgb, var(--tone) 35%, transparent); animation: hot-pulse 1.6s ease-in-out infinite; }
@keyframes hot-pulse { 50% { box-shadow: inset 0 0 26px color-mix(in srgb, var(--tone) 35%, transparent), 0 0 22px color-mix(in srgb, var(--tone) 55%, transparent); } }
.radar-name { display: grid; min-width: 0; }
.radar-name b { font: 700 14px var(--font-num); letter-spacing: .03em; }
.radar-name small { color: var(--dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radar-kind { font-size: 12px; color: var(--tone); display: flex; gap: 6px; align-items: center; }
.radar-kind em { font-style: normal; font-size: 11px; padding: 0 5px; background: var(--tone); color: #05010c; font-weight: 700; }
.radar-bar { display: grid; grid-template-columns: 1fr 34px; gap: 8px; align-items: center; }
.radar-bar svg { width: 100%; height: 8px; display: block; overflow: visible; }
.radar-bar b { font: 700 16px var(--font-num); text-align: right; color: var(--tone); text-shadow: 0 0 8px var(--tone); font-size: 15px; }
.rb-track { fill: rgba(139, 107, 255, .18); }
.rb-fill { fill: var(--tone); filter: drop-shadow(0 0 3px var(--tone)); }
.rb-mark { stroke: #fff; stroke-opacity: .55; stroke-width: 1; vector-effect: non-scaling-stroke; }

/* exposure & signal */
.war-exposure { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; }
.tug { width: 100%; height: 44px; display: block; }
.tug-long { fill: var(--up); filter: drop-shadow(0 0 6px var(--up)); }
.tug-short { fill: var(--down); filter: drop-shadow(0 0 6px var(--down)); }
.tug-empty { fill: #1b0e36; }
.tug-mid { stroke: #fff; stroke-opacity: .6; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.tug-pct { fill: #05010c; font: 700 12px var(--font-num); }
.tug-legend { display: flex; justify-content: space-between; }
.tug-legend div { display: grid; }
.tug-legend .right { text-align: right; }
.tug-legend span { color: var(--dim); font-size: 12px; }
.tug-legend b { font: 700 30px/1.2 var(--font-num); color: #fff; }
.exposure-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed rgba(139, 107, 255, .35); color: var(--dim); font-size: 12px; flex-wrap: wrap; }
.exposure-foot b { color: #fff; font-family: var(--font-num); font-size: 14px; }
.war-signal { grid-column: span 4; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.war-signal .card-head { width: 100%; text-align: left; }
.signal-body { position: relative; width: 140px; height: 140px; display: grid; place-items: center; margin: 2px 0 6px; }
.radar-sweep { position: absolute; inset: 14px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 300deg, rgba(0, 240, 255, .05) 300deg, rgba(0, 240, 255, .42) 360deg); animation: spin 2.8s linear infinite; }
.radar-sweep::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 13px, rgba(0, 240, 255, .12) 13px 14px); }
@keyframes spin { to { transform: rotate(360deg); } }
.gauge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gauge-track { fill: none; stroke: rgba(139, 107, 255, .18); stroke-width: 7; }
.gauge-value { fill: none; stroke-width: 7; stroke-linecap: butt; transition: stroke-dasharray .6s; }
.gauge-tick { stroke: rgba(139, 107, 255, .35); stroke-width: 1.4; }
.gauge-tick.on { stroke: var(--cy); }
.signal-score { position: relative; font: 800 46px/1 var(--font-num); color: var(--ink); }
.signal-score.signal-alert { color: var(--yellow); text-shadow: 0 0 14px var(--yellow), 0 0 32px rgba(252, 238, 10, .5); animation: blink 1.4s steps(2) infinite; }
.war-signal > b { font-size: 15px; color: #fff; }
.war-signal p { margin: 0; color: var(--dim); font-size: 12px; line-height: 1.6; max-width: 24em; }

/* groups / ranking / matrix / feed */
.war-stack { display: grid; gap: 14px; align-content: start; }
.war-left { grid-column: span 7; }
.war-right { grid-column: span 5; }
.group-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.group-card { display: grid; gap: 6px; padding: 14px; border: 1px solid rgba(139, 107, 255, .3); background: rgba(5, 1, 12, .55); text-align: left; cursor: pointer; color: var(--ink); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.group-card:hover { border-color: var(--cy); }
.group-card.active { border-color: var(--cy); box-shadow: inset 0 0 22px rgba(0, 240, 255, .18); }
.gc-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.gc-head b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-card strong { font-size: 25px; font-weight: 700; line-height: 1.2; }
.group-card strong.positive { text-shadow: 0 0 12px rgba(255, 56, 100, .6); }
.group-card strong.negative { text-shadow: 0 0 12px rgba(0, 255, 159, .5); }
.group-card strong small { font-size: 11px; color: var(--dim); font-weight: 400; }
.gc-bar { width: 100%; height: 6px; display: block; }
.gc-track { fill: #1b0e36; }
.gc-fill.up { fill: var(--up); } .gc-fill.down { fill: var(--down); }
.gc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--dim); font-size: 11px; }
.group-card.heat-up-3, .group-card.heat-up-4 { border-color: rgba(255, 56, 100, .6); }
.group-card.heat-down-3, .group-card.heat-down-4 { border-color: rgba(0, 255, 159, .5); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: rank; }
.rank-row { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(110px, 40%); gap: 10px; align-items: center; padding: 8px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); border-bottom: 1px solid rgba(139, 107, 255, .14); }
.rank-row:hover { background: rgba(0, 240, 255, .06); }
.rank-no { display: grid; place-items: center; width: 24px; height: 24px; background: #1b0e36; font: 700 12px var(--font-num); color: var(--dim); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.rank li:first-child .rank-no { background: var(--down); color: #05010c; box-shadow: 0 0 10px var(--down); }
.rank-name { display: grid; min-width: 0; }
.rank-name b { font: 700 14px var(--font-num); }
.rank-name small { color: var(--dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-value { display: grid; gap: 5px; justify-items: end; }
.rank-value b { font-size: 15px; text-shadow: 0 0 8px rgba(0, 255, 159, .45); }
.rank-value svg { width: 100%; height: 4px; display: block; }
.rank-track { fill: #1b0e36; } .rank-fill { fill: var(--down); }
.risk-server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile { display: grid; gap: 4px; padding: 12px; border: 1px solid rgba(139, 107, 255, .3); text-align: left; cursor: pointer; background: rgba(5, 1, 12, .6); min-height: 92px; align-content: start; color: var(--ink); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); transition: transform .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--cy); }
.tile-name { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tile b { font: 700 19px var(--font-num); }
.tile b small { font-size: 11px; color: var(--dim); font-weight: 400; }
.tile small { color: #b6aae0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.heat-up-1 { background: rgba(255, 56, 100, .10); } .tile.heat-up-2 { background: rgba(255, 56, 100, .18); } .tile.heat-up-3 { background: rgba(255, 56, 100, .28); border-color: rgba(255, 56, 100, .6); } .tile.heat-up-4 { background: rgba(255, 56, 100, .42); border-color: var(--up); box-shadow: inset 0 0 20px rgba(255, 56, 100, .45); }
.tile.heat-down-1 { background: rgba(0, 255, 159, .07); } .tile.heat-down-2 { background: rgba(0, 255, 159, .13); } .tile.heat-down-3 { background: rgba(0, 255, 159, .2); border-color: rgba(0, 255, 159, .55); } .tile.heat-down-4 { background: rgba(0, 255, 159, .3); border-color: var(--down); box-shadow: inset 0 0 20px rgba(0, 255, 159, .35); }
.tile[class*="heat-up"] b { color: #ff7a98; text-shadow: 0 0 10px rgba(255, 56, 100, .7); }
.tile[class*="heat-down"] b { color: #5dffc4; text-shadow: 0 0 10px rgba(0, 255, 159, .6); }
.tile.offline { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 8px, transparent 8px 16px), rgba(5, 1, 12, .6); opacity: .7; }
.tile.offline b { color: var(--dim); }
.node-light { width: 7px; height: 7px; background: #4b3d7a; flex: none; }
.node-light.online { background: var(--cy); box-shadow: 0 0 8px var(--cy); animation: blink 2s steps(2) infinite; }
.feed { list-style: none; margin: 0; padding: 0 0 0 14px; display: grid; gap: 2px; border-left: 1px solid rgba(255, 43, 214, .45); }
.feed li { position: relative; display: grid; grid-template-columns: 70px 1fr; column-gap: 10px; padding: 6px 0; font-size: 13px; }
.feed li::before { content: ""; position: absolute; left: -18.5px; top: 12px; width: 8px; height: 8px; background: #4b3d7a; transform: rotate(45deg); }
.feed li.good::before { background: var(--cy); box-shadow: 0 0 8px var(--cy); } .feed li.warn::before { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); } .feed li.bad::before { background: var(--up); box-shadow: 0 0 8px var(--up); }
.feed time { color: var(--cy); font-family: var(--font-num); grid-row: span 2; opacity: .8; }
.feed b { color: #fff; font-weight: 600; }
.feed small { color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-empty { color: var(--dim); }
.feed-empty::before { display: none; }

/* ticker */
.war-ticker { position: relative; overflow: hidden; border-top: 1px solid rgba(255, 43, 214, .5); border-bottom: 1px solid rgba(0, 240, 255, .35); background: rgba(5, 1, 12, .75); padding: 9px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.war-ticker:hover .ticker-track { animation-play-state: paused; }
.tk-run { display: flex; align-items: center; gap: 16px; padding-right: 16px; white-space: nowrap; font: 13px var(--font-num); color: var(--ink); }
.tk-run i { color: var(--pink); font-style: normal; font-size: 9px; }
.tk-run b { font-weight: 700; }
.tk-alert { color: #05010c; background: var(--yellow); padding: 1px 8px; font-weight: 700; box-shadow: 0 0 12px var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* big screen */
body.bigscreen .sidebar, body.bigscreen .topbar, body.bigscreen .app-footer, body.bigscreen .batch-dock, body.bigscreen #pending-banner { display: none !important; }
body.bigscreen .app { grid-template-columns: 1fr; background: #05010c; }
body.bigscreen main { padding: 22px 28px; }
body.bigscreen .war-title h1 { font-size: clamp(30px, 2.4vw, 52px); }
body.bigscreen .war-title p { font-size: clamp(13px, .9vw, 18px); }
body.bigscreen .hero-value { font-size: clamp(56px, 5.6vw, 150px); }
body.bigscreen .tape { height: clamp(150px, 20vh, 320px); }
body.bigscreen .chart-grid canvas { height: clamp(250px, 30vh, 460px); }
body.bigscreen .kpi strong { font-size: clamp(18px, 1.3vw, 34px); }
body.bigscreen .tug-legend b { font-size: clamp(26px, 1.9vw, 44px); }
body.bigscreen .group-card strong { font-size: clamp(22px, 1.6vw, 36px); }
body.bigscreen .tile b { font-size: clamp(18px, 1.25vw, 28px); }
@media (min-width: 1480px) { body.bigscreen .war-kpis { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* war room responsive */
@media (max-width: 1360px) {
  .war-hero, .war-chart { grid-column: span 12; }
  .war-radar { grid-column: span 12; }
  .war-exposure, .war-signal { grid-column: span 6; }
  body.bigscreen .war-hero { grid-column: span 5; } body.bigscreen .war-chart { grid-column: span 7; }
}
@media (max-width: 1100px) {
  .war-left, .war-right { grid-column: span 12; }
  body.bigscreen .war-hero, body.bigscreen .war-chart { grid-column: span 12; }
}
@media (max-width: 860px) {
  body.war-mode .app { background: #05010c; }
  .war-fx { inset: -16px -14px -170px; }
  .war-title h1 { font-size: 26px; }
  .war-grid, .war-stack { gap: 10px; }
  .cy { padding: 15px; }
  .war-exposure, .war-signal { grid-column: span 12; }
  .war-controls { width: 100%; }
  .war-select { flex: 1 1 0; }
  .war-select select { width: 100%; min-width: 0; }
  .war-screen { flex: 1 1 100%; }
  .war-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-value { font-size: clamp(38px, 11vw, 56px); }
  .tape { height: 120px; }
  .chart-grid.tf-ALL { grid-template-columns: 1fr; }
  .chart-grid canvas, .chart-grid.tf-ALL canvas { height: 220px; }
  .chart-switch { width: 100%; }
  .chart-switch .switch-control { margin-left: auto; }
  .risk-server-grid, .group-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-card strong { font-size: 19px; }
  .radar-row { grid-template-columns: minmax(0, 1fr) auto; }
  .radar-bar { grid-column: 1 / -1; }
  .alarm-icon { width: 36px; height: 36px; font-size: 22px; }
  .alarm-text b { font-size: 15px; }
  .war-alarm .cy-button { display: none; }
  body.bigscreen main { padding: 14px; }
}
@media (max-width: 420px) {
  .rank-row { grid-template-columns: 24px minmax(0, 1fr) 96px; }
  .risk-server-grid, .group-board { gap: 6px; }
  .tile { padding: 10px; min-height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .war *, .war *::before, .war *::after { animation: none !important; }
}
.war-alarm.acked { animation: none; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--tone) 40%, transparent) 0 12px, #05010c 12px 24px); }
.war-alarm.acked .alarm-text b { text-shadow: none; }

/* Keep voice controls reachable independently of the account list height. */
.voice-unlock, .voice-indicator { position:fixed;left:auto;right:20px;top:94px;bottom:auto;animation:none;transform:none;z-index:80;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 32px);min-height:42px;padding:11px 16px;border:1px solid #8b7aff88;border-radius:14px;background:linear-gradient(130deg,#252047,#111b30);box-shadow:0 10px 30px #0005;color:#e9e7ff;font-size:13px;line-height:1.4; }
.voice-unlock { cursor:pointer; }
.voice-unlock:hover { border-color:#a99aff; }
.voice-indicator { top:94px;pointer-events:none; }
.voice-wave { display:flex;align-items:center;gap:3px;height:16px;flex:none; }
.voice-wave i { display:block;width:3px;height:8px;border-radius:3px;background:#8ee8de;animation:voice-level .8s ease-in-out infinite alternate; }
.voice-wave i:nth-child(2) { animation-delay:.18s; }
.voice-wave i:nth-child(3) { animation-delay:.36s; }
.voice-wave i:nth-child(4) { animation-delay:.54s; }
@keyframes voice-level { to { height:16px; } }
#alert-voice-play { margin-bottom:14px; }
@media(max-width:860px) { .voice-unlock,.voice-indicator { top:104px;left:12px;right:12px;max-width:calc(100vw - 24px);font-size:12px; } }
@media(prefers-reduced-motion:reduce) { .voice-wave i { animation:none; } }
