:root {
  --bg: #0c1118;
  --panel: #141b24;
  --panel-2: #1b2430;
  --line: rgba(255,255,255,.08);
  --text: #e8eef4;
  --muted: #8ea0b3;
  --accent: #2f6bff;
  --ok: #22c55e;
  --danger: #ef4444;
  --warn: #f59e0b;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; background: #070b10; color: var(--text); }
button, input, select { font: inherit; color: inherit; }
button { white-space: nowrap; }
a { color: inherit; text-decoration: none; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; background: radial-gradient(680px 320px at 12% 0%, rgba(47,107,255,.28), transparent 60%), #071018; position: relative; }
.login-wrap:before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5,10,16,.82), rgba(5,10,16,.45) 48%, rgba(5,10,16,.78)); }
.login-hero, .login-card, .login-wrap > footer { position: relative; z-index: 1; }
.login-hero { padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; }
.brand-mark { display: flex; gap: 12px; align-items: center; letter-spacing: .16em; font-size: 12px; color: #9eb6ff; }
.brand-mark b, .logo {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(160deg, #6b93ff, #2f6bff 50%, #1d3fbf); color: #fff;
  box-shadow: 0 0 22px rgba(47,107,255,.4);
}
.brand-mark svg, .logo svg { width: 20px; height: 20px; }
.brand-mark svg *, .logo svg * { fill: none; stroke: currentColor; stroke-width: 1.6; }
.login-hero h1 { font-size: 48px; line-height: 1.15; margin: 22px 0 8px; font-weight: 640; }
.hero-en { margin: 0 0 14px; letter-spacing: .12em; color: #8eb0ff; font-size: 12px; text-transform: uppercase; }
.login-hero p { max-width: 520px; color: #b7c6d4; line-height: 1.8; }
.login-card { display: flex; align-items: center; justify-content: center; padding: 32px; }
.card-box { width: min(400px, 100%); background: rgba(10,18,28,.78); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 28px 26px; backdrop-filter: blur(10px); }
.card-box h2 { margin: 0 0 4px; }
.sub, .field-hint { color: var(--muted); font-size: 13px; }
.field { margin-top: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .row input, .row select, .tree-tools input, .filters input, .filters select {
  width: 100%; height: 38px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12);
  background: #0e1620; padding: 0 10px;
}
.btn { border: 0; background: var(--accent); color: #fff; border-radius: 8px; padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn.block { width: 100%; margin-top: 16px; padding: 11px; }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.16); color: #f4f8fc; }
.btn.danger { background: #7f1d1d; }
.btn.on { outline: 2px solid #fff; }
.btn svg.bi, button.mini svg.bi, button.tile-act svg.bi, button.shot-del svg.bi, .seg button svg.bi, .pad button svg.bi, button.link svg.bi, button.nav-tab svg.bi, button.map-track svg.bi, a.btn svg.bi {
  width: 14px; height: 14px; flex: none;
}
.btn svg.bi *, button.mini svg.bi *, button.tile-act svg.bi *, button.shot-del svg.bi *, .seg button svg.bi *, .pad button svg.bi *, button.link svg.bi *, button.nav-tab svg.bi *, button.map-track svg.bi *, a.btn svg.bi * {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.btn svg.bi .dot, button.mini svg.bi .dot, button.tile-act svg.bi .dot { fill: currentColor; stroke: none; }
button.mini, button.tile-act, button.shot-del, .seg button, .pad button, button.map-track {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap;
}
button.link { display: inline-flex; align-items: center; gap: 5px; }
.nav-tab { display: inline-flex; align-items: center; gap: 6px; }
.fnbar .btn { padding: 6px 10px; }
.fnbar .btn svg.bi { width: 13px; height: 13px; }
.link { background: none; border: 0; color: #9eb6ff; margin-top: 12px; cursor: pointer; }
.login-wrap > footer, .app > footer { text-align: center; color: #8ea0b3; font-size: 12px; padding: 12px; }
.login-wrap > footer { position: absolute; left: 0; right: 0; bottom: 0; }
body.in-app { overflow: hidden; }
.app { height: 100%; min-height: 0; display: none; grid-template-rows: auto minmax(0, 1fr); background: radial-gradient(880px 220px at 18% 0%, rgba(47,107,255,.16), transparent 60%), var(--bg); overflow: hidden; }
body.in-app .login-wrap { display: none; }
body.in-app .app { display: grid; }
.topbar { display: flex; flex-direction: column; background: #0a1018; border-bottom: 1px solid var(--line); }
.toprow { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 92px; }
.logo { width: 32px; height: 32px; }
.groups { display: flex; gap: 4px; flex: 1; min-width: 0; overflow: auto; }
.nav-tab { border: 0; background: transparent; color: #9fb0c0; border-radius: 8px; padding: 8px 16px; cursor: pointer; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav-tab.on { background: #2f6bff; color: #fff; }
.nav-tab:hover:not(.on) { background: rgba(255,255,255,.06); color: #fff; }
.topnav { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; overflow: hidden; background: #101820; border-top: 1px solid rgba(47,107,255,.35); }
.topnav::after { content: ""; position: absolute; left: var(--caret, 160px); top: -8px; width: 14px; height: 8px; transform: translateX(-50%); background: #2f6bff; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sub-label { flex: none; color: #7ec8ff; font-size: 12px; letter-spacing: .12em; padding-right: 10px; border-right: 1px solid rgba(126,200,255,.35); }
.sub { display: none; gap: 6px; align-items: center; }
.sub.on { display: flex; overflow: auto; min-width: 0; }
.topnav a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: #9fb0c0; font-size: 12.5px; white-space: nowrap; }
.topnav svg { width: 14px; height: 14px; flex: 0 0 14px; }
.topnav svg * { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topnav svg .dot { fill: currentColor; stroke: none; }
.topnav a.active, .topnav a:hover { background: rgba(77,187,255,.14); border-color: rgba(77,187,255,.45); color: #fff; }
.topnav a[hidden], .nav-tab[hidden], .sub[hidden] { display: none !important; }
.top-tools { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
#whoami { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #d7e4ee; cursor: pointer; }
.ava { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; background: #2f6bff center/cover no-repeat; flex: none; }
.ava.big { width: 72px; height: 72px; font-size: 28px; }
.ava.photo { color: transparent; }
.account { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.account .field { width: 100%; }
#content { min-height: 0; overflow: auto; padding: 10px; display: flex; flex-direction: column; }
#content:has(> .work) { overflow: hidden; }
.work { display: grid; grid-template-columns: 268px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 10px; flex: 1; min-height: 0; }
.tree, .panel, .card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.tree { padding: 10px; overflow: auto; min-height: 0; }
.tree-tools { display: flex; gap: 6px; margin-bottom: 10px; position: sticky; top: 0; z-index: 2; background: linear-gradient(#141b24, #141b24 80%, transparent); padding-bottom: 6px; }
.tree-tools input { flex: 1; min-width: 0; height: 36px; }
.tree-tools .btn { flex: none; height: 36px; padding: 0 12px; }
.fold > b { display: flex; align-items: center; margin: 12px 2px 6px; padding: 0 0 0 8px; border-left: 2px solid #4dbbff; font-size: 12px; letter-spacing: .08em; color: #9fd4ff; font-weight: 600; }
.fold .fold > b { margin: 4px 0; padding: 6px 8px; border-left: 0; border-radius: 8px; background: rgba(255,255,255,.04); letter-spacing: 0; font-size: 13px; color: #e8eef4; }
.fold em, .node em { font-style: normal; color: var(--muted); font-size: 11px; margin-left: 6px; }
.node[hidden], .fold[hidden], .fold > b[hidden] { display: none !important; }
.node { width: 100%; display: flex; align-items: center; gap: 6px; text-align: left; background: transparent; border: 0; color: #d5e2ea; padding: 7px 8px 7px 16px; border-radius: 6px; cursor: pointer; }
.node em { margin-left: auto; }
.node:hover, .node.hot { background: rgba(47,107,255,.16); }
.node.on { color: #fff; }
.st { width: 7px; height: 7px; border-radius: 50%; background: #64748b; display: inline-block; }
.st.on { background: var(--ok); }
.stage { min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.stage.live-stage { overflow: hidden; }
.grid-bar { display: flex; gap: 8px; align-items: center; flex: none; flex-wrap: nowrap; }
.vid-grid { display: grid; gap: 6px; background: #070d14; padding: 6px; border-radius: 10px; flex: 1; min-height: 0; }
.vid-grid.g1 { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); }
.vid-grid.g4 { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.vid-grid.g9 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); }
.vid-grid.g16 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr)); }
.cell { position: relative; background: #101820; min-height: 0; height: 100%; overflow: hidden; border: 1px solid transparent; }
.cell.sel { border-color: var(--accent); }
.cell canvas, .vid-grid.g1 .cell canvas { width: 100%; height: 100%; display: block; background: #0c141c; }
.live-note { flex: none; padding: 8px 12px; }
.live-note h3 { margin-bottom: 6px; }
.live-note .row { flex-wrap: nowrap; }
.map { position: relative; flex: 1; min-height: 0; height: 100%; border-radius: 10px; overflow: hidden; background: #0b1522; border: 1px solid var(--line); }
#gis { position: absolute; inset: 0; z-index: 1; background: #d6dde3; }
.leaflet-div-icon.pin-wrap { background: none; border: none; }
.gis-pin { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border: 2px solid #fff; box-sizing: border-box; cursor: pointer; }
.gis-pin.person { border-radius: 50%; background: #1d4ed8; color: #fff; font-size: 12px; }
.gis-pin.person.off { background: #475569; }
.gis-pin.dev { border-radius: 3px; background: #22c55e; }
.gis-pin.dev.offline { background: #94a3b8; }
.leaflet-control-attribution { background: rgba(8,12,18,.78) !important; color: #9fb0bd !important; }
.leaflet-bar a, .leaflet-bar a:hover { background: #121a24; color: #e8eef4; border-bottom-color: #243044; }
.map-tools, .map-track, .map-actions, .ticker, .focus { z-index: 500; }
.map-tools { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 72%; }
.map-tools label, .filters label { background: rgba(8,14,22,.82); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 5px 9px; font-size: 12px; display: flex; gap: 6px; align-items: center; backdrop-filter: blur(8px); white-space: nowrap; }
.map-track { position: absolute; right: 12px; top: 12px; }
.map-actions { position: absolute; right: 12px; top: 12px; display: flex; gap: 8px; flex-direction: column; align-items: flex-end; }
.map-actions .map-track { position: static; }
.gis-pin.sos, .gis-pin.low { box-shadow: 0 0 0 3px rgba(249, 115, 22, .85); animation: sosPulse 1s ease-in-out infinite; }
.gis-pin.low:not(.sos) { box-shadow: 0 0 0 2px rgba(234, 179, 8, .9); animation: none; }
@keyframes sosPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px rgba(249,115,22,.7); }
  50% { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(249,115,22,.15); }
}
.stat.flash b { animation: sosPulse 1.2s ease-in-out infinite; color: #fb923c; }
.stat-row.war { outline: 1px solid rgba(249,115,22,.45); background: rgba(249,115,22,.06); border-radius: 10px; padding: 6px; }
body.war-mode .topbar { box-shadow: inset 0 -2px 0 #f97316; }
body.war-mode .ticker { background: rgba(249,115,22,.88); }
table.data tr.sos-row td { background: rgba(249,115,22,.12); }
.idle-lock { position: fixed; inset: 0; z-index: 9999; background: rgba(6,10,16,.92); display: grid; place-items: center; color: #e8eef4; }
.idle-lock .card-box { width: min(360px, 92vw); background: #121a24; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 24px; text-align: center; }
.idle-lock h2 { margin: 0 0 8px; }
.idle-lock p { color: var(--muted); margin: 0 0 16px; }
#rtcDock { position: fixed; right: 16px; bottom: 16px; width: 300px; height: 132px; z-index: 70; background: #0b1220; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
#rtcDock.on { height: 460px; }
#rtcDock .rtc-bar { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #e7ecf3; font-size: 12px; }
#rtcDock .rtc-bar b { font-weight: 600; }
#rtcDock .rtc-bar span { flex: 1; color: #93c5fd; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#rtcDock .rtc-bar a { color: #93c5fd; }
#rtcDock .rtc-bar button { border: 0; background: #e11d48; color: #fff; border-radius: 999px; padding: 4px 8px; }
#rtcDock iframe { width: 100%; height: calc(100% - 36px); border: 0; background: #111; }
.pin { position: absolute; transform: translate(-50%, -50%); border: 2px solid #fff; cursor: pointer; }
.pin.person { width: 28px; height: 28px; border-radius: 50%; background: #1d4ed8; color: #fff; font-size: 12px; }
.pin.person.off { background: #475569; }
.pin.dev { width: 14px; height: 14px; border-radius: 3px; background: #22c55e; }
.pin.dev.offline { background: #94a3b8; }
.focus { position: absolute; left: 12px; bottom: 12px; width: 268px; background: rgba(10,16,24,.9); border: 1px solid rgba(77,187,255,.28); border-radius: 12px; padding: 12px; backdrop-filter: blur(10px); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.focus h3 { margin: 0 0 6px; font-size: 16px; }
.focus p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.focus .ops { flex-wrap: nowrap; }
.filters, .task-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cell .idle { position: absolute; inset: 0; display: grid; place-items: center; color: #f87171; font-size: 13px; }
.osd { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; background: rgba(0,0,0,.5); font-size: 12px; }
.tile-bar { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; }
.tile-act { border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.45); color: #fff; border-radius: 4px; font-size: 12px; padding: 2px 6px; }
.tape { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 10px; min-height: 0; }
.play-box { position: relative; min-height: 280px; padding: 0; overflow: hidden; background: #070d14; }
.play-box canvas { width: 100%; height: 320px; display: block; background: #0c141c; }
.play-box .idle { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.panel { padding: 12px 14px; }
.panel h3, .page-head h2 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: #f4f8fc; }
.page-head { margin: 0 0 10px; }
.page-head p { margin: 0; }
table.data tr:hover td { background: rgba(47,107,255,.08); }
.stat-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; flex: none; }
.stat { display: flex; align-items: baseline; gap: 8px; background: rgba(20,27,36,.92); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; min-width: 0; }
.stat em { font-style: normal; color: var(--muted); font-size: 12px; }
.stat b { font-size: 18px; line-height: 1; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 12px; }
.cal i { text-align: center; padding: 4px 0; border-radius: 4px; font-style: normal; color: var(--muted); }
.cal b { text-align: center; padding: 4px 0; border-radius: 4px; background: #243044; cursor: pointer; }
.cal b.on { background: var(--accent); }
.timeline { height: 28px; margin-top: 8px; border-radius: 6px; background: #0e1620; position: relative; overflow: hidden; }
.timeline span { position: absolute; top: 6px; bottom: 6px; background: #2f6bff; border-radius: 4px; }
.cards { display: flex; gap: 12px; flex-wrap: wrap; }
.vcard { width: 240px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.vcard h3 { margin: 0 0 8px; }
.ops { display: flex; gap: 6px; margin-top: 10px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
table.data th { color: #9fd4ff; font-weight: 600; background: #123047; position: sticky; top: 0; }
#fieldLink { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 280px; padding: 10px; color: #d7e8f4; background: rgba(8, 20, 32, .92); border: 1px solid rgba(120, 190, 230, .35); border-radius: 12px; }
#fieldLink[hidden] { display: none; }
#fieldLink img { width: 100%; height: 158px; object-fit: cover; background: #081018; border-radius: 8px; margin-top: 8px; }
#fieldLink p { margin: 8px 0 0; color: #9fb4c4; font-size: 12px; }
#fieldLinkOps { display: flex; gap: 8px; margin-top: 8px; }
#fieldLinkOps button { flex: 1; height: 36px; border: 0; border-radius: 8px; color: #fff; }
#fieldAnswer { background: #16a34a; }
#fieldReject { background: #e11d48; }
.tag { display: inline-flex; padding: 1px 8px; border-radius: 99px; font-size: 12px; background: #243044; }
.tag.green { color: #86efac; }
.tag.red { color: #fca5a5; }
.tag.amber { color: #fcd34d; }
.modal-form .row, .row { display: flex; gap: 8px; flex-wrap: wrap; }
.person, .dev-tag { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; }
.dev-tag.sel { border-color: var(--accent); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast { position: fixed; right: 16px; bottom: 16px; background: #14324a; color: #fff; border-radius: 8px; padding: 10px 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; }
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 40; }
.mask[hidden] { display: none; }
.modal { width: min(480px, calc(100% - 24px)); background: #182230; border-radius: 12px; padding: 16px; border: 1px solid var(--line); }
.modal header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.meet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.meet .tile { background: #101820; border-radius: 10px; min-height: 180px; display: grid; place-items: center; border: 1px solid var(--line); }
.face-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.face { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #1d4ed8; margin-bottom: 8px; }
@media (max-width: 980px) {
  .login-wrap, .work, .bottom-dock, .cols-2, .desk, .desk.cols3, .tape { grid-template-columns: 1fr; }
  .login-hero { padding: 32px 20px 8px; }
  .login-hero h1 { font-size: 32px; }
}
.fnbar-wrap { margin-bottom: 8px; }
.fnbar { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.seg button { border: 1px solid rgba(255,255,255,.14); background: transparent; color: #d5e2ea; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.seg button.on, .node.hot { background: rgba(47,107,255,.22); color: #fff; }
.desk { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 10px; align-items: start; }
.desk.cols3 { grid-template-columns: 280px minmax(0, 1fr) 230px; }
.desk.flip { grid-template-columns: minmax(0, 1fr) 280px; }
.desk.flip > aside { order: 2; }
.lines { display: flex; gap: 8px; flex-wrap: wrap; }
.line { width: 210px; background: #101820; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.line.calling { border-color: #f59e0b; }
.line.wide { width: 320px; }
.desk-remote { height: 180px; margin: 8px 0; border-radius: 8px; background: #070d14; overflow: hidden; display: grid; place-items: center; color: #9fb4c4; font-size: 12px; }
.desk-remote img { width: 100%; height: 100%; object-fit: cover; }
.line.on { border-color: var(--accent); }
.line.empty { width: auto; color: var(--muted); }
.line p { margin: 6px 0; color: var(--muted); font-size: 12px; }
.btn.speak { background: #15803d; }
.btn.hang { background: #b91c1c; }
.pad-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.dial { min-height: 28px; font-size: 18px; letter-spacing: .12em; margin-bottom: 8px; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pad button, .mini { border: 1px solid rgba(255,255,255,.16); background: #0e1620; color: #fff; border-radius: 6px; min-height: 34px; cursor: pointer; }
.mini { min-height: 0; padding: 2px 6px; font-size: 12px; margin-left: auto; flex: none; }
.linkish { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
textarea, .row input, .panel > input { width: 100%; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: #0e1620; padding: 8px 10px; color: #f4f8fc; }
textarea::placeholder, .panel > input::placeholder { color: #8ea0b3; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.shot { position: relative; }
.ph { height: 150px; border-radius: 10px; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; background: linear-gradient(160deg, hsl(var(--h), 42%, 32%), #0e1620); }
.ph span { color: #c5d5df; font-size: 12px; }
.shot-del { position: absolute; right: 8px; bottom: 8px; border: 0; background: rgba(127,29,29,.9); color: #fff; border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.ptz, .mod-grid { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 13px; }
.disk-bar { background: #7f1d1d; color: #fff; border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.stat b.danger, tr.over td { color: #fca5a5; }
.heat { position: absolute; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: radial-gradient(circle, rgba(239,68,68,.45), transparent 70%); pointer-events: none; }
.ticker { position: absolute; left: 300px; right: 12px; bottom: 12px; background: rgba(8,12,18,.82); border-radius: 8px; padding: 6px 10px; font-size: 12px; color: #d7e4ea; overflow: hidden; white-space: nowrap; }
.page-head h2 { margin: 0 0 4px; font-size: 18px; }
