:root {
  --navy: #05090f;
  --navy-2: #0a111b;
  --primary: #0068a9;
  --primary-bright: #0a84c6;
  --cyan: #4aa8e0;
  --blue: #1677c8;
  --green: #19a974;
  --orange: #e8923a;
  --red: #df5b63;
  --purple: #7868df;
  --ink: #111c28;
  --text: #344454;
  --muted: #7e91a3;
  --line: #e1e8ef;
  --surface: #ffffff;
  --background: #f0f3f7;
  --shadow: 0 10px 34px rgba(0, 31, 61, .09);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: var(--text); background: var(--background); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; color: var(--primary); font-size: 11px; letter-spacing: 2px; font-weight: 800; }
.eyebrow.dark { color: #62b5e5; }

/* 登录 */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(520px, 1.12fr) minmax(420px, .88fr); background: #fff; }
.login-brand-panel { position: relative; overflow: hidden; padding: 48px 64px; color: #fff; background: radial-gradient(circle at 76% 60%, rgba(0, 104, 169, .28), transparent 36%), linear-gradient(145deg, #03060a 0%, #07111d 55%, #062d4d 100%); }
.login-brand-panel::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.brand-login, .sidebar-brand { position: relative; display: flex; align-items: center; gap: 13px; z-index: 1; }
.brand-login strong { display: block; font-size: 24px; letter-spacing: 4px; }
.brand-login small { display: block; margin-top: 4px; color: #8ca8b8; font-size: 9px; letter-spacing: 2.2px; }
.brand-mark { width: 38px; height: 42px; display: inline-flex; align-items: flex-end; justify-content: center; gap: 3px; transform: skew(-8deg); }
.brand-mark span { display: block; width: 8px; border-radius: 2px 2px 0 0; background: linear-gradient(to top, #0068a9, #65b5e7); box-shadow: 0 0 18px rgba(56,198,217,.2); }
.brand-mark span:nth-child(1) { height: 24px; }
.brand-mark span:nth-child(2) { height: 40px; }
.brand-mark span:nth-child(3) { height: 31px; }
.login-hero { position: relative; z-index: 2; margin-top: 15vh; max-width: 610px; }
.login-hero h1 { margin: 20px 0; font-size: clamp(38px, 4vw, 58px); line-height: 1.28; letter-spacing: 1px; font-weight: 650; }
.login-hero > p { max-width: 520px; color: #a9bdc9; font-size: 16px; line-height: 1.9; }
.login-feature-row { display: flex; gap: 52px; margin-top: 46px; }
.login-feature-row div { display: flex; flex-direction: column; gap: 7px; }
.login-feature-row strong { font-size: 25px; font-weight: 600; color: #e9fbff; }
.login-feature-row span { font-size: 12px; color: #7f9dad; }
.login-orbit { position: absolute; width: 360px; height: 360px; right: -80px; bottom: -90px; opacity: .65; }
.orbit-ring { position: absolute; border: 1px solid rgba(40,137,199,.32); border-radius: 50%; }
.ring-one { inset: 45px; }
.ring-two { inset: 105px; border-style: dashed; }
.orbit-center { position: absolute; inset: 140px; border-radius: 50%; background: rgba(0,104,169,.22); display: grid; place-items: center; color: #68b9eb; }
.orbit-center svg { width: 32px; height: 32px; }
.orbit-center span { font-size: 9px; }
.orbit-node { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #1684c3; box-shadow: 0 0 20px #1684c3; }
.node-a { top: 52px; left: 175px; }.node-b { top: 225px; left: 55px; }.node-c { right: 67px; top: 155px; }
.login-copyright { position: absolute; left: 64px; bottom: 28px; color: #607f92; font-size: 11px; }
.login-form-panel { display: grid; place-items: center; padding: 40px; background: linear-gradient(140deg, #fff, #f8fbfc); }
.login-card { width: min(420px, 100%); }
.login-card h2 { color: var(--ink); margin: 14px 0 8px; font-size: 32px; letter-spacing: 1px; }
.login-card > .muted { margin: 0 0 38px; }
.field-label { display: block; color: var(--ink); font-weight: 600; font-size: 13px; margin: 20px 0 9px; }
.input-with-icon { height: 50px; border: 1px solid #dce7ec; border-radius: 9px; display: flex; align-items: center; padding: 0 15px; background: #fff; transition: .2s; }
.input-with-icon:focus-within { border-color: var(--primary-bright); box-shadow: 0 0 0 3px rgba(27,138,170,.09); }
.input-with-icon svg { color: #8ba1ae; width: 18px; }
.input-with-icon input { flex: 1; border: 0; outline: 0; padding-left: 12px; color: var(--ink); background: transparent; }
.btn { border: 0; border-radius: 8px; min-height: 36px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 13px; transition: .18s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #005b96, #007bbb); box-shadow: 0 5px 14px rgba(23,107,135,.18); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(23,107,135,.25); }
.btn-secondary { color: var(--primary); background: #e9f3f6; }
.btn-secondary:hover { background: #dcecf1; }
.btn-ghost { color: var(--text); background: #fff; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #b8ccd7; background: #f9fbfc; }
.btn-danger { color: #c94b55; background: #fff0f1; }
.btn-warning { color: #a66620; background: #fff5e9; }
.btn-sm { min-height: 30px; padding: 0 10px; font-size: 12px; }
.btn-login { width: 100%; height: 50px; margin-top: 26px; justify-content: space-between; padding: 0 22px; font-size: 15px; }
.form-error { min-height: 20px; padding-top: 8px; color: var(--red); font-size: 12px; }
.demo-account { margin-top: 22px; padding: 12px 15px; border-radius: 8px; background: #f1f6f8; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.demo-account code { color: var(--primary); }
.login-note { color: #9aaab4; font-size: 11px; line-height: 1.7; margin-top: 24px; }
.mobile-login-brand { display: none; }

/* 应用框架 */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: 232px; display: flex; flex-direction: column; color: #c3d0d9; background: linear-gradient(180deg, #03060a, #091321); box-shadow: 5px 0 25px rgba(11,28,44,.06); }
.sidebar-brand { height: 84px; padding: 0 25px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-brand .brand-mark { transform: scale(.78) skew(-8deg); transform-origin: left center; width: 32px; }
.brand-copy strong { display: block; color: #fff; font-size: 16px; letter-spacing: .5px; }
.brand-copy small { display: block; margin-top: 3px; color: #708c9d; font-size: 10px; letter-spacing: 2px; }
.main-nav { flex: 1; padding: 18px 13px; overflow-y: auto; }
.nav-section { display: block; padding: 16px 13px 8px; color: #587487; font-size: 10px; letter-spacing: 1.5px; }
.nav-item { position: relative; width: 100%; height: 43px; padding: 0 13px; margin: 3px 0; border: 0; border-radius: 8px; display: flex; align-items: center; gap: 12px; color: #91a6b4; background: transparent; text-align: left; transition: .18s; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { color: #e6f3f6; background: rgba(255,255,255,.045); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(0,104,169,.4), rgba(0,104,169,.13)); }
.nav-item.active::before { content: ""; position: absolute; left: -13px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #0a84c6; box-shadow: 0 0 12px rgba(10,132,198,.55); }
.nav-item.active svg { color: #65b5e7; }
.nav-new { margin-left: auto; padding: 2px 5px; border-radius: 4px; color: #85c7ef; background: rgba(10,132,198,.16); font-size: 9px; font-style: normal; }
.nav-count { margin-left: auto; min-width: 20px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; color: #dceaf0; background: rgba(255,255,255,.09); font-size: 10px; font-style: normal; }
.sidebar-model { margin: 10px 15px 8px; padding: 13px 11px; border: 1px solid rgba(70,151,207,.14); border-radius: 10px; display: flex; align-items: center; gap: 9px; background: rgba(0,104,169,.1); }
.model-mini-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #65b5e7; border-radius: 7px; background: rgba(10,132,198,.14); }
.model-mini-icon svg { width: 16px; }
.sidebar-model strong { display: block; font-size: 11px; color: #c6dce4; }
.sidebar-model span { display: block; max-width: 112px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; color: #6f91a2; }
.sidebar-model > .status-dot { margin-left: auto; }
.sidebar-footer { padding: 12px 25px 18px; color: #4e6b7c; font-size: 9px; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(25,169,116,.1); }
.status-dot.warning { background: var(--orange); box-shadow: 0 0 0 3px rgba(232,146,58,.12); }
.status-dot.danger { background: var(--red); box-shadow: 0 0 0 3px rgba(223,91,99,.1); }
.main-area { min-height: 100vh; margin-left: 232px; }
.topbar { height: 84px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.95); border-bottom: 1px solid #e8eef2; position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.breadcrumb { color: #98a8b3; font-size: 10px; }
.breadcrumb span { margin: 0 4px; }
.topbar h1 { margin: 5px 0 0; color: var(--ink); font-size: 20px; font-weight: 650; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.global-search { width: 240px; height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid #e5edf2; border-radius: 8px; background: #f7f9fb; }
.global-search svg { width: 15px; color: #91a4b0; }
.global-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; color: var(--text); }
.icon-btn { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; color: #758c9a; background: transparent; }
.icon-btn:hover { background: #f1f5f7; color: var(--primary); }
.icon-btn svg { width: 18px; }
.notification-btn { position: relative; }
.notification-btn i { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); border: 1px solid #fff; }
.notification-btn b { position: absolute; top: 0; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 9px; color: #fff; background: var(--red); font-size: 8px; font-weight: 700; }
.notification-btn b[hidden], .notification-btn i[hidden] { display: none; }
.model-status-button { height: 34px; padding: 0 11px; display: flex; align-items: center; gap: 7px; border: 1px solid #e5edf2; border-radius: 8px; color: #607988; background: #fff; font-size: 11px; }
.user-menu { display: flex; align-items: center; gap: 9px; padding-left: 8px; border-left: 1px solid var(--line); }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #005b96, #1684c3); font-weight: 600; }
.user-menu strong { display: block; color: var(--ink); font-size: 11px; }
.user-menu span:not(.avatar) { display: block; margin-top: 3px; color: #96a6b1; font-size: 9px; }
.mobile-menu { display: none; }
.page-content { padding: 24px 28px 36px; max-width: 1920px; margin: 0 auto; }
.page-loading { min-height: 50vh; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid #d8e5ea; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 通用组件 */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.page-head h2 { margin: 0 0 7px; color: var(--ink); font-size: 22px; }
.page-head p { margin: 0; color: var(--muted); font-size: 12px; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.card { border: 1px solid rgba(226,235,240,.85); border-radius: var(--radius); background: var(--surface); box-shadow: 0 3px 15px rgba(24,55,72,.025); }
.card-header { min-height: 58px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf2f5; }
.card-header h3 { margin: 0; color: var(--ink); font-size: 14px; }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.card-body { padding: 20px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-main { grid-template-columns: minmax(0, 1.8fr) minmax(280px, .8fr); }
.dashboard-bottom { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); margin-top: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { position: relative; overflow: hidden; padding: 19px 20px; min-height: 124px; }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -38px; top: -35px; background: #edf5f7; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--primary); background: #eaf5f7; }
.stat-icon.blue { color: var(--blue); background: #edf3ff; }.stat-icon.orange { color: var(--orange); background: #fff4e9; }.stat-icon.green { color: var(--green); background: #eaf8f3; }
.stat-icon svg { width: 18px; }
.stat-change { color: #8ba0ad; font-size: 10px; }
.stat-value { margin-top: 12px; color: var(--ink); font-size: 29px; font-weight: 650; letter-spacing: -.5px; }
.stat-value small { margin-left: 4px; color: #879aa7; font-size: 12px; font-weight: 400; }
.stat-label { margin-top: 3px; color: #7c919f; font-size: 11px; }
.notice-banner { padding: 12px 16px; margin-bottom: 18px; border: 1px solid #f0dfc8; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8c622e; background: #fffaf2; font-size: 12px; }
.notice-banner strong { margin-right: 6px; }
.notice-banner.info { color: #336e81; border-color: #d7e9ee; background: #f2fafc; }
.badge { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 2px 8px; border-radius: 5px; color: #607684; background: #eef3f6; font-size: 10px; white-space: nowrap; }
.badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge.no-dot::before { display: none; }
.badge.pending { color: #b47625; background: #fff3e3; }.badge.processing { color: #3575c6; background: #edf4ff; }.badge.closed { color: #4a8b72; background: #eaf6f0; }.badge.urgent { color: #c64b55; background: #ffedef; }.badge.important { color: #b47725; background: #fff4e5; }.badge.normal { color: #5d7e92; background: #eef4f7; }.badge.ai { color: #6857bc; background: #f0edff; }
.text-link { border: 0; padding: 0; color: var(--primary); background: transparent; font-size: 11px; }
.text-link:hover { text-decoration: underline; }
.filter-bar { padding: 15px 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-bar .search-input { min-width: 220px; flex: 1; }
.input, .select, .textarea { width: 100%; border: 1px solid #dfe8ed; border-radius: 7px; color: var(--ink); background: #fff; outline: 0; transition: .15s; }
.input, .select { height: 36px; padding: 0 11px; }
.textarea { min-height: 90px; padding: 10px 11px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: #6db4c4; box-shadow: 0 0 0 3px rgba(27,138,170,.07); }
.select { min-width: 120px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-group { min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 7px; color: #5b7281; font-size: 11px; font-weight: 600; }
.form-group label em { color: var(--red); font-style: normal; }
.form-hint { margin-top: 6px; color: #94a5b0; font-size: 10px; line-height: 1.6; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 15px; color: #8b9eaa; background: #f8fafb; font-size: 10px; font-weight: 600; text-align: left; white-space: nowrap; }
td { padding: 14px 15px; border-bottom: 1px solid #edf2f5; color: #4c6372; font-size: 11px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: .12s; }
tbody tr:hover { background: #fafcfd; }
.cell-title { color: var(--ink); font-weight: 600; font-size: 12px; }
.cell-sub { margin-top: 4px; color: #93a4af; font-size: 9px; }
.cell-actions { display: flex; gap: 8px; align-items: center; }
.empty-state { padding: 50px 20px; text-align: center; color: #8ba0ac; }
.empty-state svg { width: 38px; height: 38px; margin-bottom: 12px; color: #b8c7cf; }
.empty-state strong { display: block; margin-bottom: 6px; color: #637d8b; }
.segmented { display: inline-flex; padding: 3px; border-radius: 8px; background: #edf2f5; }
.segmented button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 6px; color: #7a8f9c; background: transparent; font-size: 11px; }
.segmented button.active { color: var(--primary); background: #fff; box-shadow: 0 2px 7px rgba(20,50,70,.08); }
.checkbox-label { display: inline-flex; align-items: center; gap: 7px; color: #5d7482; font-size: 11px; }
.checkbox-label input { accent-color: var(--primary); }

/* 图表与地图 */
.chart-legend { display: flex; gap: 16px; color: #879aa6; font-size: 10px; }
.chart-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 2px; background: var(--primary); }
.line-chart { width: 100%; height: 225px; overflow: visible; }
.line-chart text { fill: #92a3ae; font-size: 9px; font-family: inherit; }
.line-chart .grid-line { stroke: #edf2f5; stroke-width: 1; }
.line-chart .data-line { fill: none; stroke: #0068a9; stroke-width: 2.5; }
.line-chart .data-point { fill: #fff; stroke: #0068a9; stroke-width: 2; }
.donut-layout { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 225px; }
.donut { position: relative; flex: 0 0 auto; width: 142px; height: 142px; border-radius: 50%; }
.donut::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: #fff; }
.donut-center { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center strong { color: var(--ink); font-size: 25px; }
.donut-center span { color: var(--muted); font-size: 10px; }
.legend-list { flex: 1; max-width: 180px; }
.legend-item { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-size: 11px; }
.legend-item i { width: 7px; height: 7px; border-radius: 2px; }
.legend-item span { color: #6d8290; }
.legend-item strong { margin-left: auto; color: var(--ink); }
.rank-list { padding: 4px 0; }
.rank-item { margin: 17px 0; }
.rank-meta { display: flex; justify-content: space-between; margin-bottom: 7px; color: #647c8b; font-size: 11px; }
.rank-meta strong { color: var(--ink); }
.progress { height: 6px; border-radius: 5px; background: #edf2f5; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #004f82, #0a84c6); }
.event-mini-list { padding: 4px 20px 10px; }
.event-mini { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf2f5; }
.event-mini:last-child { border: 0; }
.event-level-mark { width: 4px; height: 34px; border-radius: 3px; background: #8da4b1; }
.event-level-mark.紧急 { background: var(--red); }.event-level-mark.重要 { background: var(--orange); }
.event-mini-content { flex: 1; min-width: 0; }
.event-mini-content strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 11px; }
.event-mini-content span { display: block; margin-top: 5px; color: #91a2ad; font-size: 9px; }
.map-canvas { position: relative; height: 300px; overflow: hidden; border-radius: 10px; background: linear-gradient(145deg, #edf5f5, #e7f0f2); }
.map-canvas::before { content: ""; position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(30deg, transparent 48%, #d4e2e5 49%, #d4e2e5 51%, transparent 52%), linear-gradient(-25deg, transparent 47%, #d9e5e7 48%, #d9e5e7 50%, transparent 51%); background-size: 90px 80px, 130px 120px; }
.map-river { position: absolute; width: 130%; height: 60px; left: -15%; top: 42%; border: 12px solid rgba(122,192,207,.18); border-left: 0; border-right: 0; transform: rotate(-12deg); }
.map-label { position: absolute; color: #91a8b0; font-size: 10px; letter-spacing: 3px; }
.map-marker { position: absolute; width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.85); border-radius: 50% 50% 50% 5px; transform: rotate(-45deg); background: #0068a9; box-shadow: 0 4px 10px rgba(0,72,120,.28); }
.map-marker.offline { background: #91a4ae; }
.map-marker svg { width: 12px; height: 12px; margin: 2px; color: #fff; transform: rotate(45deg); }
.map-marker:hover { z-index: 3; transform: rotate(-45deg) scale(1.2); }
.map-legend { position: absolute; left: 13px; bottom: 12px; padding: 7px 10px; border-radius: 7px; color: #6c8793; background: rgba(255,255,255,.85); font-size: 9px; }

/* 视频 */
.video-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; }
.camera-panel { min-height: 670px; }
.camera-search { padding: 14px; border-bottom: 1px solid var(--line); }
.camera-tree { padding: 10px; max-height: 590px; overflow-y: auto; }
.camera-region { padding: 10px 8px 6px; color: #8a9ca7; font-size: 10px; font-weight: 600; }
.camera-node { width: 100%; padding: 10px 9px; border: 0; border-radius: 7px; display: flex; align-items: center; gap: 8px; color: #526b79; background: transparent; text-align: left; font-size: 11px; }
.camera-node:hover, .camera-node.active { color: var(--primary); background: #edf6f8; }
.camera-node svg { flex: 0 0 auto; width: 15px; }
.camera-node .status-dot { margin-left: auto; width: 6px; height: 6px; box-shadow: none; }
.video-workspace { min-width: 0; }
.video-toolbar { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.video-toolbar-left, .video-toolbar-right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.video-toolbar-title { color: var(--ink); font-weight: 600; font-size: 12px; }
.video-grid { display: grid; gap: 5px; padding: 5px; background: #0a161f; }
.video-grid.grid-1 { grid-template-columns: 1fr; }.video-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }.video-grid.grid-9 { grid-template-columns: repeat(3, 1fr); }
.video-tile { position: relative; min-height: 255px; overflow: hidden; background: #101f29; border: 1px solid transparent; }
.video-grid.grid-9 .video-tile { min-height: 180px; }
.video-grid.grid-1 .video-tile { min-height: 560px; }
.video-tile.selected { border-color: #0a84c6; box-shadow: inset 0 0 0 1px #0a84c6; }
.video-tile img, .video-tile video { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.video-tile video { background: #000; }
.video-overlay-top, .video-overlay-bottom { position: absolute; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; color: #e0edf2; background: linear-gradient(to bottom, rgba(4,15,22,.65), transparent); font-size: 9px; pointer-events: none; }
.video-overlay-top { top: 0; }.video-overlay-bottom { bottom: 0; background: linear-gradient(to top, rgba(4,15,22,.75), transparent); }
.video-detect-layer { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.video-overlay-bottom strong { font-size: 11px; }
.video-live { display: flex; align-items: center; gap: 5px; color: #c9f4e3; }
.video-live i { width: 5px; height: 5px; border-radius: 50%; background: #4ed098; }
.video-live.disconnected { color: #ffd2c9; }
.video-live.disconnected i { background: #ef7d67; }
.video-3d-help { color: #7f929e; font-size: 10px; white-space: nowrap; }
.video-3d-surface { position: absolute; inset: 0; z-index: 1; pointer-events: none; cursor: default; touch-action: none; user-select: none; }
.video-3d-armed .video-3d-surface { pointer-events: auto; cursor: crosshair; }
.video-3d-armed .video-3d-surface.busy { pointer-events: none; cursor: wait; }
.video-tile.video-3d-armed, .focus-player.video-3d-armed .video-tile { box-shadow: inset 0 0 0 2px rgba(242,201,76,.75); }
.video-3d-selection { position: absolute; pointer-events: none; border: 2px solid #27a5ec; background: rgba(0, 104, 169, .16); box-shadow: 0 0 0 1px rgba(255,255,255,.7) inset; }
.video-3d-selection[hidden] { display: none; }
.video-3d-selection::after { content: '放大'; position: absolute; right: 0; top: -25px; padding: 3px 7px; color: #fff; background: #0068a9; font-size: 10px; white-space: nowrap; }
.video-3d-selection.zoom-out { border-color: #e69a42; background: rgba(230, 154, 66, .16); }
.video-3d-selection.zoom-out::after { content: '缩小'; background: #b86b16; }
.video-3d-tag { position: absolute; right: 10px; bottom: 43px; z-index: 2; padding: 4px 7px; border: 1px solid rgba(93,190,239,.55); border-radius: 4px; color: #b9e7ff; background: rgba(4,32,53,.72); font-size: 9px; pointer-events: none; }
.video-ptz-badge { position: absolute; left: 11px; top: 34px; z-index: 3; display: flex; gap: 8px; padding: 4px 8px; border: 1px solid rgba(93,190,239,.45); border-radius: 4px; color: #cfeaff; background: rgba(4,20,32,.72); font-size: 9px; font-variant-numeric: tabular-nums; letter-spacing: .02em; pointer-events: none; }
.video-ptz-badge span { white-space: nowrap; }
.video-ptz-badge[hidden] { display: none; }
.video-empty { height: 100%; min-height: inherit; display: grid; place-content: center; text-align: center; color: #58707e; }
.video-empty svg { margin: 0 auto 8px; width: 30px; height: 30px; }
.video-controls { padding: 16px; display: grid; grid-template-columns: 1fr 220px; gap: 20px; }
.selected-camera-info strong { color: var(--ink); font-size: 12px; }
.selected-camera-info p { margin: 6px 0 12px; color: var(--muted); font-size: 10px; }
.ptz-panel { display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
.ptz-pad { display: grid; grid-template-columns: repeat(3, 30px); gap: 3px; }
.ptz-pad button { width: 30px; height: 28px; border: 1px solid #dde7ec; border-radius: 4px; color: #6c8492; background: #f8fafb; font-size: 10px; }
.ptz-pad button:hover { color: var(--primary); border-color: #8dc4d0; }
.ptz-zoom { display: flex; flex-direction: column; gap: 5px; }
.playback-timeline { padding: 15px 20px 20px; color: #7f929e; background: #f8fafb; }
.playback-timeline input[type="range"] { width: 100%; accent-color: var(--primary); }
.timeline-labels { display: flex; justify-content: space-between; font-size: 9px; }

/* 识别 */
.active-recognition-card { margin-bottom: 18px; overflow: hidden; background: linear-gradient(135deg, #fff 55%, #edf6fc); }
.active-recognition-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.active-recognition-heading h3 { margin: 7px 0; color: var(--ink); font-size: 20px; }
.active-recognition-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.active-scan-mark { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg, #05090f, #0068a9); }
.active-scan-mark svg { width: 25px; height: 25px; }
.active-recognition-form { margin-top: 20px; }
.active-target-field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 600; }
.active-target-field textarea { min-height: 96px; font-size: 14px; line-height: 1.8; }
.active-options { margin-top: 13px; display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 16px; }
.active-options .btn { min-width: 170px; }
.active-pipeline { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.active-pipeline > div { display: flex; align-items: center; gap: 9px; }
.active-pipeline i { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #0068a9; background: #e5f1f9; font-size: 10px; font-style: normal; font-weight: 700; }
.active-pipeline span { display: grid; gap: 3px; }
.active-pipeline strong { color: var(--ink); font-size: 11px; }.active-pipeline small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.active-pipeline b { height: 1px; min-width: 12px; flex: 1; background: #ccdde9; }
.manual-review-card { margin-bottom: 18px; }
.manual-review-card > summary { padding: 17px 21px; display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; color: var(--ink); }
.manual-review-card > summary span { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; }
.manual-review-card > summary small { color: var(--muted); font-size: 10px; }
.manual-review-card[open] > summary { border-bottom: 1px solid var(--line); }
.manual-review-card .recognition-layout { padding: 18px; }
.frame-progress { margin-top: 13px; }
.global-view-list { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.global-view-chip { padding: 3px 6px; border-radius: 4px; color: #567286; background: #edf3f7; font-size: 8px; }
.global-view-chip.hit { color: #a15d20; background: #fff0df; }.global-view-chip.failed { color: #b8404b; background: #ffeaec; }
.restore-state { padding: 2px 5px; border-radius: 4px; font-size: 8px !important; }.restore-state.success { color: #237757 !important; background: #e7f5ee; }.restore-state.failed { color: #b8404b !important; background: #ffeaec; }
.recognition-layout { display: grid; grid-template-columns: minmax(360px, .85fr) minmax(420px, 1.15fr); gap: 18px; }
.upload-zone { position: relative; min-height: 210px; border: 1.5px dashed #c8d9e0; border-radius: 11px; display: grid; place-items: center; overflow: hidden; text-align: center; background: #f9fbfc; transition: .18s; }
.upload-zone.dragging { border-color: var(--primary); background: #eef8fa; }
.upload-zone input { position: absolute; inset: 0; opacity: .001; cursor: pointer; z-index: 3; }
.upload-prompt { padding: 30px; color: #8a9da8; }
.upload-prompt .upload-icon { width: 48px; height: 48px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 13px; color: var(--primary); background: #e7f3f6; }
.upload-prompt strong { display: block; margin-bottom: 7px; color: #496473; font-size: 13px; }
.upload-prompt p { margin: 0; font-size: 10px; line-height: 1.7; }
.upload-preview { width: 100%; max-height: 340px; object-fit: contain; display: block; }
.upload-change { position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 6px; color: #fff; background: rgba(11,28,44,.7); font-size: 10px; }
.recognition-form { margin-top: 18px; }
.recognition-form .btn-primary { width: 100%; min-height: 43px; margin-top: 17px; }
.task-hint { padding: 10px 12px; border-radius: 7px; color: #5b7b88; background: #f0f7f9; font-size: 10px; line-height: 1.7; }
details.advanced-fields { margin-top: 13px; }
details.advanced-fields summary { color: #708894; cursor: pointer; font-size: 11px; }
details.advanced-fields .form-group { margin-top: 12px; }
.recognition-result { min-height: 540px; }
.result-placeholder { min-height: 450px; display: grid; place-content: center; text-align: center; color: #91a4af; }
.result-placeholder .scan-visual { position: relative; width: 84px; height: 84px; margin: 0 auto 20px; border: 1px solid #d8e7eb; border-radius: 20px; display: grid; place-items: center; color: #79a7b4; background: #f5fafb; }
.result-placeholder .scan-visual::after { content: ""; position: absolute; left: 13px; right: 13px; height: 1px; background: #0a84c6; box-shadow: 0 0 8px #0a84c6; animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 20px; } 50% { top: 62px; } }
.result-image-wrap { position: relative; max-width: 100%; margin-bottom: 16px; overflow: hidden; border-radius: 9px; background: #0d1a23; }
.result-image-wrap img { display: block; width: 100%; height: auto; }
.detection-box { position: absolute; box-sizing: border-box; border: 1.5px solid #ff3b4e; border-radius: 2px; background: rgba(255,59,78,.06); pointer-events: none; z-index: 2; }
.detection-box > i { position: absolute; width: 6px; height: 6px; border-color: #ff3b4e; border-style: solid; border-width: 0; }
.detection-box > i.c-tl { top: -2px; left: -2px; border-top-width: 2px; border-left-width: 2px; }
.detection-box > i.c-tr { top: -2px; right: -2px; border-top-width: 2px; border-right-width: 2px; }
.detection-box > i.c-bl { bottom: -2px; left: -2px; border-bottom-width: 2px; border-left-width: 2px; }
.detection-box > i.c-br { bottom: -2px; right: -2px; border-bottom-width: 2px; border-right-width: 2px; }
.detection-box span { position: absolute; left: -1px; top: 0; transform: translateY(-100%); display: inline-flex; align-items: center; padding: 2px 8px; background: #ff3b4e; color: #fff; font-size: 10px; font-weight: 600; line-height: 1.4; letter-spacing: .02em; white-space: nowrap; z-index: 3; border-radius: 2px 2px 0 0; }
.detection-box span::before { content: ""; width: 4px; height: 4px; margin-right: 5px; border-radius: 50%; background: #fff; opacity: .95; flex: 0 0 auto; }
.detection-box.label-inside { border-color: #ff6a78; background: rgba(255,106,120,.08); }
.detection-box.label-inside > i { border-color: #ff6a78; }
.detection-box.label-inside span { left: -1px; top: -1px; transform: none; border-radius: 0 0 2px 0; background: #ff6a78; }
/* === 框级标注样式 === */
.detection-box.fp-marked { border-style: dashed; border-color: #9ca3af; opacity: .55; filter: grayscale(.4); }
.detection-box.fp-marked > i { border-color: #9ca3af; }
.detection-box.fp-marked span { background: #6b7280 !important; }
.annotation-missing { border: 2px dashed #f97316 !important; background: rgba(249,115,22,.1) !important; pointer-events: none; }
.annotation-new { position: absolute; box-sizing: border-box; z-index: 5; pointer-events: none; }
.annotation-toolbar { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; padding: 8px 12px; border: 1px dashed #38bdf855; border-radius: 6px; background: rgba(249,115,22,.04); }
.annotation-toolbar .badge { background: rgba(249,115,22,.12); color: #f97316; border: 1px solid rgba(249,115,22,.3); }
.annotation-toolbar .btn-sm { font-size: 12px; padding: 2px 10px; }
.event-image-tabs { margin-bottom: 18px; }
.event-image-tabs .tab-bar { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 10px; border: 1px solid #e0e9ee; border-radius: 9px; background: #f2f6f8; }
.event-image-tabs .tab { padding: 6px 13px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; color: #6e8591; font-size: 11px; line-height: 1.4; transition: color .16s, background .16s, box-shadow .16s; }
.event-image-tabs .tab:hover { color: #315c70; }
.event-image-tabs .tab.active { color: #174f68; background: #fff; box-shadow: 0 1px 4px rgba(34,68,84,.12); font-weight: 600; }
.event-image-tabs .result-image-wrap { margin-bottom: 0; cursor: zoom-in; border: 1px solid #dfe8ed; border-radius: 10px; box-shadow: 0 4px 14px rgba(24,55,70,.06); }
.event-image-tabs .result-image-wrap > .badge { position: absolute; right: 12px; top: 12px; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,.16); }
.event-image-tabs .result-image-wrap::after { content: '点击放大'; position: absolute; right: 10px; bottom: 10px; z-index: 3; padding: 4px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; background: rgba(15,25,34,.58); backdrop-filter: blur(5px); color: rgba(255,255,255,.88); font-size: 10px; letter-spacing: .02em; }
.result-answer { padding: 14px; margin-bottom: 14px; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; color: #3d5a69; background: #f3f8fa; line-height: 1.8; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.result-meta { display: flex; gap: 16px; margin-bottom: 14px; color: #8599a5; font-size: 10px; flex-wrap: wrap; }
.geolocation-summary { margin-bottom: 14px; padding: 11px 13px; border: 1px solid #dce8ed; border-radius: 8px; color: #5d7683; background: #f5f9fb; font-size: 10px; line-height: 1.7; }
.geolocation-summary strong { display: block; color: #315666; font-size: 11px; }
.geolocation-summary.completed { border-color: #cce6da; background: #f0f8f4; }.geolocation-summary.completed strong { color: #237757; }
.geolocation-summary.partial { border-color: #eddfc8; background: #fff9ef; }.geolocation-summary.partial strong { color: #a15d20; }
.geolocation-summary.calibration_required, .geolocation-summary.calibrated_failed { border-color: #efb9bf; color: #b42330; background: #fff2f3; }
.geolocation-summary.calibration_required strong, .geolocation-summary.calibrated_failed strong { color: #a91d2a; }
.notice-banner.geo-state-warning { border-color: #efb9bf; color: #b42330; background: #fff2f3; }
.notice-banner.geo-state-warning strong, .geo-state-label { color: #b42330; }
.geo-coordinate.calibration_required strong { color: #9a5b2d; }
.geo-unavailable.calibration_required strong, .geo-unavailable.calibrated_failed strong { color: #b42330; }
.geo-result-grid.calibration_required > div { border-color: #edc7cb; background: #fff7f7; }
.geo-coordinate strong { display: block; color: #176c68; font-size: 10px; font-weight: 600; white-space: nowrap; }
.geo-coordinate span, .geo-unavailable span { display: block; margin-top: 4px; color: #8298a3; font-size: 9px; line-height: 1.55; }
.geo-unavailable strong { color: #9a6b3c; font-size: 10px; }.geo-unavailable span { max-width: 260px; color: #967e67; }
.geo-result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.geo-result-grid > div { padding: 16px; border: 1px solid #dfebef; border-radius: 9px; background: #f6fafb; }
.geo-result-grid span { display: block; margin-bottom: 7px; color: #8298a3; font-size: 10px; }.geo-result-grid strong { color: #155f71; font-size: 17px; }
.geo-result-note { margin-top: 16px; }
.geo-config-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.geo-config-layout section { min-width: 0; padding: 17px; border: 1px solid #e0e9ed; border-radius: 10px; background: #fbfcfd; }
.geo-config-layout h4 { margin: 0; color: var(--ink); font-size: 13px; }.geo-config-layout form { margin-top: 14px; }.geo-config-layout .btn { margin-top: 12px; }
.geo-scene-calibration { margin-top: 16px; padding: 17px; border: 1px solid #e0e9ed; border-radius: 10px; background: #fbfcfd; }
.geo-scene-calibration h4 { margin: 0 0 8px; color: var(--ink); font-size: 13px; }
.geo-scene-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 12px 0; }
.geo-scene-toolbar label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #58717e; }
.geo-scene-toolbar .input { width: 118px; }
.geo-scene-wrap { position: relative; display: inline-block; max-width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid #d5e1e7; }
.geo-scene-wrap img { display: block; max-width: 100%; height: auto; }
.geo-scene-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#dem-workflow { display: flex; flex-direction: column; gap: 16px; }
#dem-workflow > section[id^="dem-step-"] { padding-top: 16px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
#dem-workflow > section[id^="dem-step-"] > h4 { margin-bottom: 10px; }
#dem-stepbar { position: sticky; top: 0; z-index: 3; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(251,252,253,.96); backdrop-filter: blur(6px); }
#dem-stepbar .btn { flex: 1 1 125px; justify-content: center; }
#geo-frame-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; padding: 12px; background: #f4f8fb; }
#geo-frame-list .empty-state { grid-column: 1 / -1; }
#geo-frame-list .card { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
#geo-frame-list .card .calib-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
#geo-frame-list .card strong, #geo-capture-feedback strong { overflow-wrap: anywhere; }
#geo-frame-list details { margin-top: 10px; }
#geo-frame-list pre.code-textarea, #geo-confirm-result pre.code-textarea { min-height: 0; max-height: 240px; margin: 8px 0 0; padding: 10px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f8fb; }
#geo-capture-feedback .calib-meta-grid { margin-top: 10px; }
#dem-step-observe .geo-scene-wrap { display: block; width: 100%; margin-bottom: 12px; background: #0f1720; }
#dem-step-observe .geo-scene-wrap[hidden] { display: none; }
#dem-step-observe .geo-scene-wrap img { width: 100%; }
#dem-step-review .geo-scene-toolbar > label { flex-direction: row; align-items: center; gap: 8px; }
#geo-dem-notes { width: 100%; resize: vertical; }
#geo-confirm-result { margin-top: 12px; }
#geo-confirm-result h4 { margin: 14px 0 8px; }
@media (max-width: 720px) { #geo-frame-list { grid-template-columns: 1fr; padding: 8px; } #geo-frame-list .card .calib-meta-grid, #geo-capture-feedback .calib-meta-grid { grid-template-columns: 1fr; } #dem-stepbar .btn { flex-basis: 100px; } }
.client-presets { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 8px; }
.client-presets header { display: flex; justify-content: space-between; align-items: baseline; }
.client-presets header strong { font-size: 12px; }
.client-presets header span { font-size: 11px; opacity: .7; }
.preset-row, .cruise-row { display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 4px 6px; border-radius: 6px; background: rgba(255,255,255,.04); }
.preset-row b, .cruise-row b { min-width: 18px; color: var(--brand, #2f81f7); }
.preset-row span, .cruise-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preset-row small { opacity: .6; font-size: 10px; }
.preset-row button, .cruise-row button { font-size: 10px; padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: inherit; cursor: pointer; }
.preset-row button.danger, .cruise-row button.danger { color: #ff6b6b; border-color: rgba(255,107,107,.4); }
.preset-new, .cruise-new { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11px; }
.preset-new input, .cruise-new input[type="text"], .cruise-new input[type="number"] { width: 70px; font-size: 11px; padding: 3px 6px; }
.preset-new button, .cruise-new button { font-size: 11px; padding: 4px 10px; border-radius: 6px; border: none; background: var(--brand, #2f81f7); color: #fff; cursor: pointer; }
.cruise-preset-picks { display: flex; flex-wrap: wrap; gap: 4px 10px; width: 100%; }
.cruise-preset-picks label { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; }
.cruise-status-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; opacity: .9; }
.cruise-status-line span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cruise-status-line button { font-size: 10px; padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(255,107,107,.5); color: #ff6b6b; background: transparent; cursor: pointer; }
.code-textarea { min-height: 330px; resize: vertical; font-family: Consolas, "Courier New", monospace; font-size: 10px; line-height: 1.55; tab-size: 2; }
.calibration-summary { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 11px; border-radius: 8px; color: #58717e; background: #eef4f7; font-size: 10px; flex-wrap: wrap; }
.recognition-history { margin-top: 18px; }

/* 事件详情与弹窗 */
#modal-root:empty { display: none; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 25px; background: rgba(7,22,32,.48); backdrop-filter: blur(3px); animation: fadeIn .15s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 50px); overflow-y: auto; border-radius: 14px; background: #fff; box-shadow: 0 25px 70px rgba(5,24,35,.24); }
.modal-lg { width: min(800px, 100%); }
.modal-header { padding: 20px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; color: var(--ink); font-size: 17px; }
.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.modal-body { padding: 22px; }
.modal-footer { padding: 14px 22px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); background: #fafcfd; }
.drawer-backdrop { justify-content: flex-end; padding: 0; }
.drawer { width: min(720px, 95vw); height: 100vh; max-height: none; border-radius: 14px 0 0 14px; animation: slideIn .2s ease-out; }
@keyframes slideIn { from { transform: translateX(50px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }
.event-detail-image { position: relative; overflow: hidden; border-radius: 10px; background: #10202a; }
.event-detail-image img { display: block; width: 100%; max-height: 330px; object-fit: cover; }
.event-detail-image .badge { position: absolute; left: 12px; top: 12px; }
.detail-section { margin-top: 22px; }
.detail-section h4 { margin: 0 0 12px; color: var(--ink); font-size: 13px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.detail-item span { display: block; margin-bottom: 4px; color: #91a3ae; font-size: 10px; }
.detail-item strong { color: #49616f; font-size: 11px; font-weight: 500; }
.flow-steps { display: flex; align-items: flex-start; padding: 10px 0; }
.flow-step { position: relative; flex: 1; text-align: center; color: #99aab4; font-size: 10px; }
.flow-step::before { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: #e6edf1; }
.flow-step:first-child::before { left: 50%; }.flow-step:last-child::before { right: 50%; }
.flow-step i { position: relative; z-index: 1; width: 21px; height: 21px; margin: 0 auto 7px; display: grid; place-items: center; border: 2px solid #dfe8ec; border-radius: 50%; color: #fff; background: #fff; font-size: 9px; font-style: normal; }
.flow-step.done, .flow-step.current { color: var(--primary); }
.flow-step.done::before, .flow-step.current::before { background: #83b9df; }
.flow-step.done i { color: #fff; border-color: #0068a9; background: #0068a9; }
.flow-step.current i { border-color: #0a84c6; background: #fff; box-shadow: inset 0 0 0 5px #dceef9; }
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 7px; bottom: 7px; width: 1px; background: #e1eaee; }
.timeline-item { position: relative; padding: 0 0 18px 10px; }
.timeline-item::before { content: ""; position: absolute; left: -19px; top: 5px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: #64aebb; box-shadow: 0 0 0 1px #a9cbd2; }
.timeline-item strong { color: #4d6674; font-size: 11px; }
.timeline-item span { float: right; color: #9aabb4; font-size: 9px; }
.timeline-item p { margin: 6px 0 0; color: #8296a2; font-size: 10px; line-height: 1.6; }
.event-action-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.kanban-board { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; }
.kanban-column { padding: 12px; border-radius: 11px; background: #edf2f5; min-height: 450px; }
.kanban-title { display: flex; justify-content: space-between; margin-bottom: 12px; color: #5e7684; font-size: 11px; font-weight: 600; }
.kanban-card { padding: 13px; margin-bottom: 10px; border: 1px solid #e1e9ed; border-radius: 9px; background: #fff; box-shadow: 0 3px 10px rgba(20,50,60,.03); cursor: pointer; }
.kanban-card:hover { border-color: #9fc7d1; }
.kanban-card strong { display: block; margin: 9px 0; color: var(--ink); font-size: 11px; line-height: 1.5; }
.kanban-card p { margin: 0 0 10px; color: #8c9fa9; font-size: 9px; }
.kanban-card-footer { display: flex; justify-content: space-between; align-items: center; color: #98a8b2; font-size: 9px; }

/* Piercing Eyes 全域识别 */
.global-ai-button { height: 42px; padding: 0 13px; border: 1px solid rgba(91,174,226,.28); border-radius: 9px; display: flex; align-items: center; gap: 9px; color: #fff; background: linear-gradient(135deg, #05090f, #0068a9); box-shadow: 0 5px 16px rgba(0,60,105,.16); }
.global-ai-button:hover { background: linear-gradient(135deg, #091321, #0a84c6); }
.global-ai-button svg { width: 19px; }
.global-ai-button span { font-size: 11px; font-weight: 700; line-height: 1.15; text-align: left; }
.global-ai-button small { display: block; margin-top: 4px; color: #a9d5f1; font-size: 8px; font-weight: 400; letter-spacing: 2px; }
.modal-xl { width: min(980px, 100%); }
.global-dialog-intro { margin-bottom: 20px; padding: 20px; border-radius: 12px; display: flex; align-items: center; gap: 16px; color: #fff; background: radial-gradient(circle at 90% 20%, rgba(10,132,198,.42), transparent 40%), linear-gradient(135deg, #03060a, #091321 60%, #064878); }
.global-dialog-intro > span { width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(117,190,237,.35); border-radius: 13px; color: #7cc5f2; background: rgba(0,104,169,.22); }
.global-dialog-intro > span svg { width: 26px; height: 26px; }
.global-dialog-intro h4 { margin: 0 0 7px; font-size: 19px; }
.global-dialog-intro p { margin: 0; color: #b5c9d9; font-size: 11px; line-height: 1.7; }
.global-target-input { min-height: 112px; font-size: 14px; line-height: 1.8; }
.global-scope-notice { margin: 16px 0 0; }
.global-job-modal .modal-body { background: #f3f6fa; }
.global-job-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.global-job-summary > div { min-width: 0; display: flex; align-items: center; gap: 13px; }
.global-job-mark { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #05090f, #0068a9); }
.global-job-summary span:not(.global-job-state):not(.global-job-mark) { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.global-job-summary strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.5; word-break: break-word; }
.global-job-summary small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.global-job-state { flex: 0 0 auto; padding: 7px 10px; border-radius: 7px; display: inline-flex; align-items: center; gap: 6px; color: #0068a9; background: #e5f1f9; font-size: 10px; font-weight: 600; }
.global-job-state.completed { color: #237757; background: #e7f5ee; }.global-job-state.completed_with_errors, .global-job-state.failed { color: #b26b27; background: #fff2e3; }
.global-job-state .spinner { width: 12px; height: 12px; border-width: 1.5px; }
.global-mode-notice { margin: 16px 0; }
.global-job-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.global-job-stats > div { padding: 14px 16px; border: 1px solid #e1e8ef; border-radius: 10px; background: #fff; }
.global-job-stats span { display: block; color: var(--muted); font-size: 10px; }
.global-job-stats strong { display: block; margin-top: 6px; color: #0068a9; font-size: 24px; }
.global-progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.global-progress-meta strong { color: var(--ink); }
.global-progress { height: 8px; overflow: hidden; border-radius: 6px; background: #dfe8f0; }
.global-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #05090f, #0068a9 45%, #0a84c6); transition: width .35s ease; }
.global-result-heading { margin: 22px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.global-result-heading strong { color: var(--ink); font-size: 12px; }.global-result-heading span { color: var(--muted); font-size: 9px; }
.global-result-list { max-height: 360px; padding-right: 3px; overflow-y: auto; display: grid; gap: 8px; }
.global-result-row { padding: 12px 13px; border: 1px solid #e1e8ef; border-radius: 9px; display: flex; align-items: flex-start; gap: 11px; background: #fff; }
.global-result-row.scanning { border-color: #73b6e2; background: #f2f8fd; }.global-result-row.hit { border-color: #e5b372; background: #fffaf2; }.global-result-row.failed { border-color: #e8b5b9; background: #fff8f8; }
.global-result-icon { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #0068a9; background: #e8f2f9; }
.global-result-icon svg { width: 14px; height: 14px; }.global-result-row.failed .global-result-icon, .global-result-row.hit .global-result-icon { color: #bf702d; background: #fff0df; }
.global-result-main { min-width: 0; flex: 1; }
.global-result-main > div:first-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.global-result-main strong { color: var(--ink); font-size: 11px; }.global-result-main > div:first-child span { color: var(--muted); font-size: 9px; }
.global-result-main p { margin: 5px 0 0; overflow: hidden; color: #6c808f; font-size: 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.global-result-status { flex: 0 0 auto; padding-top: 5px; color: #617b8e; font-size: 10px; font-weight: 600; }.global-result-row.scanning .global-result-status, .global-result-row.hit .global-result-status { color: #0068a9; }.global-result-row.failed .global-result-status { color: #c64b55; }
.global-result-actions { display: flex; gap: 13px; margin-top: 7px; }
.global-job-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.fusion-panel { margin-top: 20px; padding: 15px; border: 1px solid #dce6ee; border-radius: 10px; background: #fff; }
.fusion-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fusion-panel-head strong { color: var(--ink); font-size: 12px; }.fusion-panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.fusion-card { padding: 13px; border: 1px solid #e1e8ef; border-radius: 9px; background: #f8fafc; }
.fusion-card + .fusion-card { margin-top: 10px; }.fusion-card.success { border-color: #bfdfcf; background: #f3faf6; }
.fusion-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fusion-card-head strong { color: var(--ink); font-size: 11px; }.fusion-card-head span { color: var(--muted); font-size: 9px; }
.fusion-observations { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 9px; margin-top: 11px; }
.fusion-observation { overflow: hidden; border: 1px solid #dfe7ed; border-radius: 7px; background: #fff; }
.fusion-observation img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #eaf0f4; }
.fusion-observation div { padding: 8px 9px; }.fusion-observation strong { display: block; color: #315666; font-size: 10px; }
.fusion-observation span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.fusion-metrics { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: #617b8e; font-size: 9px; line-height: 1.6; }
.fusion-coordinate { margin-top: 10px; color: #176c68; font-size: 13px; font-weight: 600; }.fusion-coordinate small { display: block; margin-top: 4px; color: #617b8e; font-size: 9px; font-weight: 400; }
.fusion-warning { margin-top: 9px; padding: 8px 10px; border-radius: 6px; color: #986127; background: #fff3e3; font-size: 9px; line-height: 1.6; }
.fusion-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; }.fusion-actions small { color: var(--muted); font-size: 9px; }
.fusion-skipped { margin-top: 10px; color: var(--muted); font-size: 9px; line-height: 1.7; }

/* 系统、提示与响应式 */
.role-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.role-card { padding: 20px; border: 1px solid var(--line); border-radius: 11px; }
.role-card .stat-icon { margin-bottom: 14px; }
.role-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 14px; }
.role-card p { min-height: 40px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.permission-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.permission-tags span { padding: 4px 7px; border-radius: 5px; color: #55717f; background: #f0f5f7; font-size: 9px; }
.model-detail { display: grid; gap: 12px; }
.model-detail-row { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 11px; border-bottom: 1px solid var(--line); font-size: 11px; }
.model-detail-row span { color: var(--muted); }.model-detail-row strong { color: var(--ink); text-align: right; word-break: break-all; }
.toast-root { position: fixed; z-index: 200; right: 24px; top: 100px; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: 260px; max-width: 420px; padding: 13px 16px; border: 1px solid #d8e8e3; border-radius: 9px; display: flex; align-items: center; gap: 9px; color: #356552; background: #f3fbf7; box-shadow: 0 12px 35px rgba(13,42,52,.13); font-size: 11px; animation: toastIn .2s ease-out; }
.toast.error { color: #9f444b; border-color: #f0d5d7; background: #fff5f5; }
.toast.warning { color: #9a641f; border-color: #efdfc5; background: #fffaf0; }
.toast svg { width: 16px; flex: 0 0 auto; }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } }
.tab-bar { display: flex; gap: 22px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.tab-bar button { padding: 16px 2px 13px; border: 0; border-bottom: 2px solid transparent; color: #7c919e; background: transparent; font-size: 12px; }
.tab-bar button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bar-chart { padding: 10px 0; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 36px; align-items: center; gap: 12px; margin: 17px 0; font-size: 11px; }
.bar-row label { color: #647d8b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 6px; background: #edf2f5; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #005b96, #0a84c6); }
.bar-row strong { color: var(--ink); text-align: right; }
.hourly-chart { height: 210px; display: flex; align-items: flex-end; gap: 12px; padding: 20px 10px 0; border-bottom: 1px solid var(--line); }
.hour-column { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.hour-column i { width: 70%; min-height: 3px; border-radius: 5px 5px 0 0; background: linear-gradient(to top, #005b96, #0a84c6); }
.hour-column strong { color: #57717f; font-size: 10px; }
.hour-column span { color: #91a2ac; font-size: 9px; }

/* 客户端 GIS 与视频 */
.client-header { position: fixed; z-index: 1000; inset: 0 0 auto; height: 64px; display: flex; align-items: center; color: #b8d4e7; background: linear-gradient(180deg, rgba(5,20,38,.98), rgba(7,29,50,.94)); border-bottom: 1px solid rgba(75,170,231,.35); box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.client-header::after { content: ""; position: absolute; left: 32%; right: 32%; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, #43b9fa, transparent); box-shadow: 0 0 16px #1c9ee8; }
.client-time { position: absolute; left: 18px; display: flex; flex-direction: column; }
.client-time strong { color: #e2f4ff; font-size: 15px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.client-time span { margin-top: 3px; color: #7094ae; font-size: 8px; }
.client-nav { display: flex; align-items: stretch; height: 100%; }
.client-nav-left { margin-left: 165px; }
.client-nav-right { margin-left: auto; margin-right: 118px; }
.client-nav-item { position: relative; min-width: 68px; padding: 0 10px; border: 0; color: #91b2c9; background: transparent; font-size: 11px; white-space: nowrap; }
.client-nav-item:hover, .client-nav-item.active { color: #fff; background: linear-gradient(180deg, transparent, rgba(30,143,216,.18)); }
.client-nav-item.active::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 7px; height: 2px; background: #4bc4ff; box-shadow: 0 0 8px #4bc4ff; }
.client-brand { position: absolute; left: 50%; top: 0; height: 64px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; color: #fff; pointer-events: none; }
.client-brand .brand-mark { transform: scale(.62) skew(-8deg); width: 27px; }
.client-brand strong { display: block; font-size: 18px; letter-spacing: 1px; white-space: nowrap; }
.client-brand small { display: block; margin-top: 2px; color: #83a9c3; font-size: 8px; letter-spacing: 5px; text-align: center; }
.client-actions { position: absolute; right: 10px; display: flex; gap: 2px; }
.client-actions .icon-btn { width: 32px; height: 32px; color: #9bbcd2; }
.client-actions .icon-btn:hover { color: #fff; background: rgba(69,170,231,.15); }
.client-mode .sidebar, .client-mode .topbar { display: none; }
.client-mode .main-area { margin-left: 0; }
.client-mode .page-content { max-width: none; height: 100vh; padding: 0; margin: 0; overflow: hidden; background: #06111d; }
.client-mode .page-loading { min-height: 100vh; color: #8cb4cd; background: #06111d; }
.client-screen { position: relative; height: 100vh; padding-top: 64px; overflow: hidden; color: #c4d9e8; background: #06111d; }
.client-map { position: absolute; z-index: 1; inset: 64px 0 0; background: #0a1d2a; }
.client-map .leaflet-tile-pane { filter: saturate(.76) brightness(.72) contrast(1.08); }
.client-map .leaflet-control-layers, .client-map .leaflet-control-zoom a, .client-map .leaflet-control-attribution { color: #b8d6e8; background: rgba(5,27,44,.86); border: 1px solid rgba(88,166,211,.25); box-shadow: none; }
.client-map .leaflet-control-zoom a { border-bottom-color: rgba(88,166,211,.2); }
.client-map .leaflet-control-layers-toggle { width: 34px; height: 34px; background-size: 20px; }
.client-map .leaflet-control-attribution { font-size: 8px; }
.client-map .leaflet-control-attribution a { color: #83c7ec; }
.client-map .leaflet-tooltip { color: #d9effc; background: rgba(5,28,45,.94); border: 1px solid #285b78; box-shadow: 0 4px 15px rgba(0,0,0,.25); font-size: 10px; }
.client-map .leaflet-tooltip-top::before { border-top-color: #285b78; }
.gis-marker-wrap { border: 0; background: transparent; }
.gis-marker { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid #bdeaff; border-radius: 50% 50% 50% 7px; transform: rotate(-45deg); color: #fff; background: linear-gradient(145deg, #28b4f4, #0067b2); box-shadow: 0 0 0 5px rgba(38,168,235,.18), 0 4px 12px rgba(0,0,0,.45); }
.gis-marker.offline { border-color: #b2c0ca; background: #617787; box-shadow: 0 0 0 5px rgba(120,143,158,.15); }
.gis-marker svg { width: 16px; height: 16px; transform: rotate(45deg); }
.gis-popup { min-width: 190px; display: flex; flex-direction: column; gap: 7px; }
.gis-popup > strong { color: #132c3d; font-size: 13px; }
.gis-popup > span { color: #6d8492; font-size: 10px; }
.gis-popup > b { color: #c07526; font-size: 10px; }
.gis-popup .btn { margin-top: 3px; align-self: flex-start; }
.map-unavailable { height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; color: #87a9bd; background: radial-gradient(circle, #13344a, #071522); }
.map-unavailable svg { width: 36px; height: 36px; }
.map-unavailable strong { color: #d4e8f4; }
.map-unavailable span { font-size: 11px; }
.client-searchbar { position: absolute; z-index: 650; top: 77px; left: 50%; transform: translateX(-50%); height: 39px; display: flex; align-items: center; border: 1px solid rgba(74,169,224,.45); border-radius: 5px; background: rgba(5,29,49,.88); box-shadow: 0 8px 25px rgba(0,0,0,.22); backdrop-filter: blur(8px); }
.client-searchbar select, .client-searchbar input { height: 100%; border: 0; outline: 0; color: #d2e6f3; background: transparent; font-size: 10px; }
.client-searchbar select { width: 100px; padding: 0 9px; border-right: 1px solid rgba(100,170,210,.2); }
.client-searchbar option { color: #183247; }
.client-searchbar input { width: 190px; padding: 0 12px; }
.client-searchbar button { width: 38px; height: 100%; display: grid; place-items: center; border: 0; color: #77c8f3; background: transparent; }
.client-searchbar button svg { width: 15px; }
.client-model-state { height: 100%; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-left: 1px solid rgba(100,170,210,.2); color: #8fadc0; font-size: 9px; white-space: nowrap; }
.client-dock { position: absolute; z-index: 600; top: 77px; bottom: 40px; width: 268px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.client-dock-left { left: 13px; }
.client-dock-right { right: 13px; width: 292px; }
.client-panel { padding: 12px; border: 1px solid rgba(64,145,196,.38); border-radius: 5px; background: linear-gradient(145deg, rgba(7,34,56,.91), rgba(5,24,42,.84)); box-shadow: inset 0 0 25px rgba(27,112,167,.06), 0 8px 24px rgba(0,0,0,.16); backdrop-filter: blur(7px); pointer-events: auto; }
.client-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid rgba(83,153,194,.18); }
.client-panel > header h3 { margin: 0; color: #d9eefb; font-size: 12px; font-weight: 600; }
.client-panel > header h3::before { content: ""; display: inline-block; width: 3px; height: 12px; margin-right: 7px; vertical-align: -2px; background: #39b7f2; box-shadow: 0 0 7px #39b7f2; }
.client-panel > header > span { color: #658da7; font-size: 8px; }
.client-panel > header button { display: flex; align-items: center; gap: 3px; padding: 0; border: 0; color: #66b9e6; background: transparent; font-size: 9px; }
.client-panel > header button svg { width: 11px; height: 11px; }
.client-panel-grow { flex: 1; min-height: 0; overflow: hidden; }
.client-kpis, .client-resource-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.client-kpis > div, .client-resource-numbers > div { padding: 9px 4px; text-align: center; border: 1px solid rgba(68,140,184,.13); background: rgba(28,88,128,.1); }
.client-kpis strong, .client-resource-numbers strong { display: block; color: #7ed5ff; font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.client-kpis > div:nth-child(2) strong { color: #f0b868; }
.client-kpis > div:nth-child(3) strong { color: #72d4b0; }
.client-kpis span, .client-resource-numbers span { display: block; margin-top: 4px; color: #7d9eb3; font-size: 8px; }
.client-resource-numbers strong { font-size: 19px; }
.client-progress { height: 5px; margin-top: 13px; overflow: hidden; border-radius: 4px; background: #16364a; }
.client-progress i { display: block; height: 100%; background: linear-gradient(90deg, #168bc6, #62d5ee); box-shadow: 0 0 9px #2ea9dc; }
.client-progress-meta { display: flex; justify-content: space-between; margin-top: 7px; color: #7397ad; font-size: 9px; }
.client-progress-meta strong { color: #8fddff; }
.client-region-list, .industry-rank-list { max-height: 100%; overflow-y: auto; }
.client-region-list button, .industry-rank-list button { position: relative; width: 100%; padding: 9px 2px 12px; display: flex; justify-content: space-between; border: 0; color: #a9c4d5; background: transparent; font-size: 10px; text-align: left; }
.client-region-list em { color: #7fc7ec; font-style: normal; }
.client-region-list i, .industry-rank-list i { position: absolute; left: 2px; right: 2px; bottom: 5px; height: 2px; background: #17374b; }
.client-region-list b, .industry-rank-list b { display: block; height: 100%; background: #299cd2; }
.client-donut-layout { display: flex; align-items: center; gap: 15px; }
.client-donut { flex: 0 0 auto; width: 102px; height: 102px; padding: 14px; border-radius: 50%; box-shadow: 0 0 18px rgba(30,144,206,.1); }
.client-donut > div { width: 100%; height: 100%; display: grid; place-content: center; text-align: center; border-radius: 50%; background: #092137; }
.client-donut strong { color: #d7efff; font-size: 19px; }
.client-donut span { color: #7096ad; font-size: 8px; }
.client-legend { flex: 1; min-width: 0; }
.client-legend > div { display: flex; align-items: center; gap: 6px; margin: 7px 0; font-size: 9px; }
.client-legend i { width: 5px; height: 5px; border-radius: 50%; }
.client-legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8caabd; }
.client-legend strong { margin-left: auto; color: #c1d9e8; }
.client-legend p { color: #6f91a7; font-size: 10px; }
.client-event-list { height: 100%; overflow-y: auto; }
.client-event-row { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 0; border: 0; border-bottom: 1px solid rgba(91,145,177,.13); color: inherit; background: transparent; text-align: left; }
.client-event-row:hover { background: rgba(47,139,193,.08); }
.client-event-row .event-level-mark { flex: 0 0 auto; height: 29px; width: 3px; }
.client-event-row > span { flex: 1; min-width: 0; }
.client-event-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #bed6e6; font-size: 10px; font-weight: 500; }
.client-event-row small { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #668ba2; font-size: 8px; }
.client-event-row em { color: #d4a45f; font-size: 8px; font-style: normal; white-space: nowrap; }
.client-source-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.client-source-list > div { display: flex; justify-content: space-between; padding: 7px 8px; color: #87a7bb; background: rgba(38,96,133,.1); font-size: 9px; }
.client-source-list strong { color: #c7e2f2; }
.client-empty { padding: 25px 8px; color: #6e91a6; text-align: center; font-size: 10px; }
.client-map-footer { position: absolute; z-index: 650; left: 0; right: 0; bottom: 0; height: 30px; padding: 0 15px; display: flex; align-items: center; gap: 22px; color: #668da6; background: rgba(4,20,34,.94); border-top: 1px solid rgba(63,134,177,.25); font-size: 8px; }
.client-map-footer span { display: flex; align-items: center; gap: 5px; }
.client-map-footer span:nth-last-child(2) { margin-left: auto; }
.client-resource-top { position: absolute; z-index: 620; top: 77px; left: 308px; right: 14px; min-height: 40px; display: flex; align-items: center; gap: 22px; padding: 6px 12px; color: #9db9cb; background: rgba(5,29,49,.82); border: 1px solid rgba(69,145,192,.28); border-radius: 5px; font-size: 10px; backdrop-filter: blur(6px); }
.client-resource-top > span { display: flex; align-items: center; gap: 6px; }
.client-resource-top svg { width: 14px; }
.client-resource-top strong { color: #d6edfa; }
.client-resource-top .btn { margin-left: auto; }
.resource-tree-panel { position: absolute; z-index: 620; top: 77px; bottom: 40px; left: 13px; width: 280px; display: flex; flex-direction: column; border: 1px solid rgba(64,145,196,.4); border-radius: 5px; background: rgba(5,27,46,.93); box-shadow: 0 8px 25px rgba(0,0,0,.25); backdrop-filter: blur(8px); }
.resource-search { padding: 11px; border-bottom: 1px solid rgba(83,151,190,.18); }
.resource-search select, .resource-search input { height: 32px; border: 1px solid rgba(83,151,190,.28); outline: 0; color: #b9d3e3; background: #0b2a43; font-size: 10px; }
.resource-search select { width: 100%; padding: 0 8px; }
.resource-search > div { display: flex; margin-top: 7px; }
.resource-search input { min-width: 0; flex: 1; padding: 0 9px; }
.resource-search button { width: 34px; border: 0; color: #8bd2f7; background: #10547c; }
.resource-search button svg { width: 14px; }
.resource-tree-meta { display: flex; justify-content: space-between; padding: 11px 12px 7px; color: #83a8bf; font-size: 10px; }
.resource-tree-meta strong { color: #5f8ba5; font-size: 9px; }
.resource-tree-list { flex: 1; min-height: 0; padding: 0 7px 8px; overflow-y: auto; }
.resource-tree-list section > header { display: flex; align-items: center; gap: 6px; padding: 10px 6px 6px; color: #8cb2c9; }
.resource-tree-list section > header svg { width: 13px; }
.resource-tree-list section > header strong { font-size: 10px; }
.resource-tree-list section > header span { margin-left: auto; color: #5e8ba6; font-size: 9px; }
.resource-camera-node { width: 100%; display: flex; align-items: center; gap: 7px; padding: 8px 7px 8px 20px; border: 0; border-radius: 3px; color: #8eafc2; background: transparent; text-align: left; }
.resource-camera-node:hover { color: #d7effc; background: rgba(45,139,195,.14); }
.resource-camera-node > svg { flex: 0 0 auto; width: 13px; }
.resource-camera-node > span { flex: 1; min-width: 0; }
.resource-camera-node strong, .resource-camera-node small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-camera-node strong { font-size: 10px; font-weight: 500; }
.resource-camera-node small { margin-top: 3px; color: #547c94; font-size: 8px; }
.resource-selection { padding: 11px 13px; border-top: 1px solid rgba(83,151,190,.18); color: #628ba4; font-size: 9px; }
.resource-selection strong, .resource-selection span { display: block; }
.resource-selection strong { margin-bottom: 5px; color: #c6deec; font-size: 11px; }
.resource-selection .text-link { margin-top: 8px; color: #65c1ef; }
.industry-app-bar { position: absolute; z-index: 620; top: 77px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 640px); display: flex; gap: 5px; padding: 5px; overflow-x: auto; border: 1px solid rgba(69,145,192,.28); border-radius: 5px; background: rgba(5,29,49,.85); }
.industry-app-bar button { padding: 7px 10px; border: 1px solid transparent; border-radius: 3px; color: #86a9bf; background: transparent; font-size: 9px; white-space: nowrap; }
.industry-app-bar button.active, .industry-app-bar button:hover { color: #d9f2ff; border-color: #267ca9; background: #0d4b70; }
.industry-app-bar strong { margin-left: 4px; color: #74cef7; }
.industry-rank-list button { align-items: center; }
.industry-rank-list button.active > span { color: #73d2ff; }
.industry-rank-list button strong { color: #8cc9e8; }

/* 视频客户端与沉浸播放 */
.client-video-layout { height: 100%; display: grid; grid-template-columns: 278px minmax(0, 1fr); }
.client-video-sidebar { min-height: 0; display: flex; flex-direction: column; color: #9db9ca; background: linear-gradient(180deg, #081d30, #071725); border-right: 1px solid rgba(64,145,196,.35); }
.client-side-heading, .client-ptz-section > header, .client-mini-map-wrap > header { min-height: 40px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid rgba(83,151,190,.17); }
.client-side-heading strong, .client-ptz-section strong, .client-mini-map-wrap strong { color: #c9e0ee; font-size: 11px; }
.client-side-heading span, .client-ptz-section header span, .client-mini-map-wrap header span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #5f8aa3; font-size: 8px; }
.client-video-sidebar .camera-search { padding: 10px; border-bottom-color: rgba(83,151,190,.17); }
.client-video-sidebar .camera-search input { width: 100%; height: 32px; padding: 0 10px; border: 1px solid rgba(83,151,190,.25); outline: 0; color: #c1d9e8; background: #0b293f; font-size: 10px; }
.client-camera-tree { flex: 1; min-height: 100px; max-height: none; padding: 5px 8px; overflow-y: auto; }
.client-camera-tree .camera-region { color: #5f8ba4; }
.client-camera-tree .camera-node { color: #8baabd; }
.client-camera-tree .camera-node:hover, .client-camera-tree .camera-node.active { color: #d6effc; background: rgba(38,134,189,.17); }
.client-ptz-section { border-top: 1px solid rgba(83,151,190,.17); }
.client-ptz-section .ptz-panel { justify-content: center; padding: 11px 8px; gap: 18px; }
.client-ptz-section .ptz-pad { grid-template-columns: repeat(3, 32px); gap: 4px; }
.client-ptz-section .ptz-pad button { width: 32px; height: 29px; color: #91c6e3; border-color: rgba(83,151,190,.25); background: #0d2d45; }
.client-ptz-section .ptz-pad button:hover { color: #fff; border-color: #3b9fd1; background: #135479; }
.client-ptz-section .ptz-zoom { gap: 6px; }
.client-ptz-section .ptz-zoom button { width: 52px; height: 44px; border: 1px solid rgba(83,151,190,.25); border-radius: 4px; color: #91c6e3; background: #0d2d45; font-size: 9px; }
.client-ptz-section .ptz-zoom button:hover { color: #fff; border-color: #3b9fd1; background: #135479; }
.client-ptz-section .ptz-pad button:active,
.client-ptz-section .ptz-zoom button:active,
.client-ptz-section .ptz-aux button:active { color: #fff; border-color: #6fc6ec; background: #1b6f9f; transform: translateY(1px); }
.client-ptz-section .ptz-panel button:disabled { opacity: .4; cursor: not-allowed; }
.client-ptz-section .ptz-panel button:disabled:hover { color: #91c6e3; border-color: rgba(83,151,190,.25); background: #0d2d45; transform: none; }
.client-mini-map-wrap { margin-top: auto; }
#video-mini-map { height: 145px; background: #0a2437; }
#video-mini-map .leaflet-control-layers, #video-mini-map .leaflet-control-attribution { display: none; }
.client-video-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #050f19; }
.client-video-main .video-toolbar { flex: 0 0 auto; min-height: 47px; padding: 7px 12px; color: #91aec1; border-bottom-color: rgba(75,143,183,.25); background: #0a1d2d; }
.client-video-main .video-toolbar-title { color: #c7dfed; }
.client-video-main .segmented { background: #071522; }
.client-video-main .segmented button { color: #6f96ad; }
.client-video-main .segmented button.active { color: #bde9ff; background: #145479; box-shadow: none; }
.client-video-main .video-3d-help { color: #557f98; }
.client-video-main .video-grid { flex: 1; min-height: 0; gap: 2px; padding: 2px; background: #020a11; }
.client-video-main .video-grid.grid-1 { grid-template-rows: minmax(0, 1fr); }
.client-video-main .video-grid.grid-4 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.client-video-main .video-grid.grid-9 { grid-template-rows: repeat(3, minmax(0, 1fr)); }
.client-video-main .video-grid .video-tile { min-height: 0; }
.client-video-main .video-empty { color: #385f76; background: radial-gradient(circle, rgba(22,64,90,.18), transparent 60%); }
.client-video-main .playback-timeline { flex: 0 0 auto; color: #6e94aa; background: #0a1c2b; }
.client-video-status { flex: 0 0 auto; min-height: 58px; padding: 8px 12px; display: flex; align-items: center; gap: 16px; color: #789caf; border-top: 1px solid rgba(75,143,183,.25); background: #0a1d2d; }
.client-video-status .selected-camera-info { min-width: 190px; }
.client-video-status .selected-camera-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c8e0ed; font-size: 11px; }
.client-video-status .selected-camera-info span { display: block; max-width: 360px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #5e859c; font-size: 8px; }
.video-source-badge { padding: 4px 7px; border: 1px solid #245675; border-radius: 3px; color: #79b6d8; font-size: 8px; white-space: nowrap; }
.client-video-status .page-actions { margin-left: auto; flex-wrap: nowrap; }
.client-video-status .page-actions button { min-height: 29px; padding: 0 9px; display: flex; align-items: center; gap: 4px; border: 1px solid #265673; border-radius: 4px; color: #8fb9d0; background: #0c2a40; font-size: 9px; }
.client-video-status .page-actions button:hover { color: #fff; border-color: #3d9bcd; }
.client-video-status .page-actions button svg { width: 12px; }
.focus-player { position: fixed; z-index: 3000; inset: 0; overflow: hidden; color: #d5e8f4; background: #02080e; }
.focus-media, .focus-media .video-tile { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; }
.focus-media .video-tile img, .focus-media .video-tile video { object-fit: contain; }
.focus-header { position: absolute; z-index: 6; top: 0; left: 0; right: 0; min-height: 66px; padding: 12px 18px; display: flex; align-items: center; gap: 20px; background: linear-gradient(180deg, rgba(2,11,19,.88), transparent); pointer-events: none; }
.focus-header > div:not(.focus-brand) { flex: 1; }
.focus-header strong, .focus-header span { display: block; }
.focus-header strong { font-size: 14px; }
.focus-header span { margin-top: 5px; color: #81a4b9; font-size: 9px; }
.focus-brand { color: #76c9f3; font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.focus-header .icon-btn { color: #c5dfed; pointer-events: auto; }
.focus-mini-map { position: absolute; z-index: 5; top: 78px; left: 16px; width: 220px; padding: 5px; border: 1px solid rgba(87,170,219,.45); border-radius: 5px; background: rgba(4,25,40,.82); }
#focus-mini-map { height: 145px; }
#focus-mini-map .leaflet-control-layers { display: none; }
#focus-mini-map .leaflet-control-attribution { font-size: 6px; }
.focus-mini-map > span { display: block; padding: 5px 3px 1px; color: #8baec1; font-size: 8px; }
.focus-tool-rail { position: absolute; z-index: 5; top: 80px; right: 16px; display: flex; flex-direction: column; gap: 5px; }
.focus-tool-rail button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(82,157,202,.4); border-radius: 4px; color: #b8d9eb; background: rgba(5,31,49,.82); font-size: 15px; }
.focus-tool-rail button:hover { color: #fff; border-color: #56b6e8; background: #12577d; }
.focus-tool-rail svg { width: 16px; }
.tool-rail-divider { width: 2px; height: 8px; background: rgba(82,157,202,.25); margin: 3px auto; border-radius: 1px; }
.focus-footer { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; min-height: 66px; padding: 13px 18px; display: flex; align-items: center; gap: 20px; background: linear-gradient(0deg, rgba(2,11,19,.88), transparent); }
.focus-footer > span { color: #7b9eb3; font-size: 9px; }
.focus-footer > strong { flex: 1; text-align: center; font-size: 13px; }

@media (max-width: 1280px) {
  .global-search { width: 180px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .video-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .video-tile { min-height: 210px; }
  .model-status-button span { display: none; }
}
@media (max-width: 1050px) {
  .sidebar { width: 78px; }
  .sidebar-brand { padding: 0 20px; }.brand-copy, .nav-section, .nav-item span, .nav-new, .sidebar-model div:not(.model-mini-icon), .sidebar-model > .status-dot, .sidebar-footer { display: none; }
  .nav-item { justify-content: center; padding: 0; }.nav-item svg { width: 20px; }.nav-count { position: absolute; top: 3px; right: 3px; min-width: 15px; height: 15px; font-size: 8px; }
  .sidebar-model { justify-content: center; margin: 10px; padding: 10px; }
  .main-area { margin-left: 78px; }
  .dashboard-main, .dashboard-bottom, .recognition-layout { grid-template-columns: 1fr; }
  .topbar { padding: 0 20px; }.page-content { padding: 20px; }
  .user-menu > div { display: none; }
  .video-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .video-controls { grid-template-columns: 1fr; }.ptz-panel { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .login-page { display: block; background: #f5f9fa; }.login-brand-panel { display: none; }.login-form-panel { min-height: 100vh; padding: 25px; }.mobile-login-brand { display: block; margin-bottom: 45px; color: var(--primary); font-size: 24px; font-weight: 700; letter-spacing: 3px; }
  .sidebar { width: 232px; transform: translateX(-100%); transition: transform .2s; }.sidebar.open { transform: translateX(0); box-shadow: 20px 0 50px rgba(5,20,30,.3); }
  .sidebar.open .brand-copy, .sidebar.open .nav-section, .sidebar.open .nav-item span, .sidebar.open .nav-new, .sidebar.open .sidebar-model div:not(.model-mini-icon), .sidebar.open .sidebar-model > .status-dot, .sidebar.open .sidebar-footer { display: block; }
  .sidebar.open .nav-item { justify-content: flex-start; padding: 0 13px; }.sidebar.open .nav-count { position: static; margin-left: auto; }.sidebar.open .sidebar-model { justify-content: flex-start; }
  .main-area { margin-left: 0; }.mobile-menu { display: grid; }.topbar { height: 72px; padding: 0 14px; }.topbar h1 { font-size: 16px; }.breadcrumb, .global-search, .model-status-button, .user-menu { display: none; }.topbar-actions { gap: 4px; }
  .page-content { padding: 15px; }.page-head { flex-direction: column; }.page-head h2 { font-size: 19px; }.page-actions { width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.stat-card { padding: 15px; min-height: 112px; }.stat-value { font-size: 24px; }
  .grid-2, .grid-3, .analytics-grid { grid-template-columns: 1fr; }.card-header, .card-body { padding-left: 15px; padding-right: 15px; }
  .video-layout { grid-template-columns: 1fr; }.camera-panel { min-height: auto; }.camera-tree { max-height: 220px; }.video-tile, .video-grid.grid-9 .video-tile { min-height: 160px; }.video-grid.grid-1 .video-tile { min-height: 360px; }.video-toolbar { align-items: flex-start; flex-direction: column; }
  .recognition-layout { display: block; }.recognition-result { margin-top: 16px; min-height: 350px; }.form-grid { grid-template-columns: 1fr; }.form-group.full { grid-column: auto; }
  .geo-config-layout, .geo-result-grid { grid-template-columns: 1fr; }.code-textarea { min-height: 240px; }
  .role-cards { grid-template-columns: 1fr; }.detail-grid { grid-template-columns: 1fr; }.flow-step { font-size: 8px; }.modal-backdrop { padding: 12px; }.drawer-backdrop { padding: 0; }.drawer { width: 100vw; border-radius: 0; }
  .toast-root { left: 15px; right: 15px; top: 82px; }.toast { min-width: 0; max-width: none; }
  .filter-bar { align-items: stretch; }.filter-bar .search-input { min-width: 100%; }.filter-bar .select { flex: 1; }
  .global-ai-button { width: 38px; height: 38px; padding: 0; justify-content: center; }.global-ai-button span { display: none; }
  .global-dialog-intro { padding: 16px; }.global-dialog-intro > span { display: none; }
  .global-job-summary { flex-direction: column; }.global-job-state { align-self: flex-start; }
  .global-job-stats { grid-template-columns: repeat(2, 1fr); }.global-result-heading { align-items: flex-start; flex-direction: column; }
  .global-result-row { padding: 10px; gap: 8px; }.global-result-list { max-height: 42vh; }.global-job-actions { flex-wrap: wrap; }
  .active-options { grid-template-columns: 1fr; gap: 11px; }.active-options .btn { width: 100%; }
  .active-pipeline { align-items: flex-start; flex-wrap: wrap; }.active-pipeline b { display: none; }.active-pipeline > div { width: calc(50% - 8px); }
  .manual-review-card > summary { align-items: flex-start; flex-direction: column; }.manual-review-card .recognition-layout { padding: 12px; }
}

@media (max-width: 1280px) {
  .client-time span { display: none; }
  .client-nav-left { margin-left: 115px; }
  .client-nav-item { min-width: 61px; padding: 0 7px; font-size: 10px; }
  .client-dock { width: 238px; }
  .client-dock-right { width: 254px; }
  .client-model-state { display: none; }
  .client-video-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .client-video-status .selected-camera-info span { max-width: 210px; }
  .video-source-badge { display: none; }
  .industry-app-bar { max-width: calc(100% - 530px); }
}
@media (max-width: 1050px) {
  .client-time { display: none; }
  .client-nav-left { margin-left: 5px; }
  .client-nav-right { margin-right: 104px; }
  .client-brand strong { font-size: 15px; }
  .client-brand small { letter-spacing: 3px; }
  .client-dock { width: 216px; }
  .client-dock-right { width: 230px; }
  .client-searchbar input { width: 135px; }
  .client-donut-layout { gap: 8px; }
  .client-donut { width: 82px; height: 82px; padding: 11px; }
  .client-donut strong { font-size: 15px; }
  .client-video-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .client-video-main .video-3d-help { display: none; }
  .client-video-status { gap: 8px; }
  .client-video-status .selected-camera-info { min-width: 120px; }
  .client-video-status .selected-camera-info span { max-width: 150px; }
  .client-video-status .page-actions button { padding: 0 6px; }
  .client-mini-map-wrap { display: none; }
}
@media (max-width: 760px) {
  .client-header { height: 104px; align-items: flex-end; padding: 0 5px; }
  .client-brand { top: 7px; height: 44px; }
  .client-brand .brand-mark { display: none; }
  .client-brand strong { font-size: 14px; }
  .client-brand small { font-size: 7px; }
  .client-actions { top: 12px; right: 5px; }
  .client-actions .icon-btn { width: 29px; height: 29px; }
  .client-nav-left, .client-nav-right { position: static; flex: 1; height: 42px; margin: 0; overflow-x: auto; }
  .client-nav-item { flex: 1 0 auto; min-width: 58px; height: 42px; padding: 0 6px; font-size: 9px; }
  .client-nav-item.active::after { bottom: 3px; }
  .client-mode .page-content { height: auto; min-height: 100vh; overflow: visible; }
  .client-screen { height: auto; min-height: 100vh; padding-top: 104px; overflow: visible; }
  .client-map { position: relative; inset: auto; height: 50vh; min-height: 350px; }
  .client-searchbar { top: 115px; width: calc(100% - 20px); }
  .client-searchbar input { flex: 1; width: auto; min-width: 0; }
  .client-dock { position: relative; inset: auto; width: auto; margin: 10px; display: grid; grid-template-columns: 1fr; }
  .client-panel-grow { overflow: visible; }
  .client-event-list, .client-region-list, .industry-rank-list { max-height: 260px; }
  .client-map-footer { position: relative; height: auto; min-height: 30px; padding: 8px 10px; flex-wrap: wrap; gap: 8px 15px; }
  .client-map-footer span:nth-last-child(2) { margin-left: 0; }
  .client-resource-top { top: 115px; left: 10px; right: 10px; gap: 8px 13px; flex-wrap: wrap; }
  .client-resource-top .btn { display: none; }
  .resource-tree-panel { position: relative; inset: auto; width: auto; margin: 10px; }
  .resource-tree-list { max-height: 320px; }
  .industry-app-bar { top: 115px; left: 10px; right: 10px; max-width: none; transform: none; }
  .client-video-layout { display: block; height: auto; }
  .client-video-sidebar { max-height: none; }
  .client-camera-tree { max-height: 220px; }
  .client-ptz-section .ptz-panel { padding: 10px; }
  .client-video-main { height: auto; min-height: 720px; }
  .client-video-main .video-toolbar { align-items: flex-start; }
  .client-video-main .video-grid { min-height: 500px; }
  .client-video-main .video-grid .video-tile { min-height: 0; }
  .client-video-status { flex-wrap: wrap; }
  .client-video-status .selected-camera-info { flex: 1; }
  .client-video-status .selected-camera-info span { max-width: 240px; }
  .client-video-status .page-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .focus-header { padding: 10px; }
  .focus-brand { display: none; }
  .focus-mini-map { top: 70px; left: 8px; width: 150px; }
  #focus-mini-map { height: 95px; }
  .focus-tool-rail { top: 70px; right: 8px; }
  .focus-tool-rail button { width: 32px; height: 32px; }
  .focus-footer { padding: 10px; }
  .focus-footer > span { display: none; }
  .focus-footer > strong { text-align: left; font-size: 10px; }
}

/* 算法配置 */
.algorithm-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.algorithm-camera-list { max-height: 620px; overflow-y: auto; padding: 10px; }
.count-badge { min-width: 18px; padding: 1px 6px; border-radius: 9px; background: #eef3f6; color: #6c8793; font-size: 9px; text-align: center; }
.camera-node .count-badge { margin-left: auto; flex: 0 0 auto; }
.camera-node.active .count-badge { background: #d4ebf5; color: var(--primary); }
.camera-node .node-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.algorithm-toolbar { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.algorithm-toolbar .spacer { flex: 1; }
.algorithm-toolbar .video-toolbar-title { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.algo-thumb { width: 78px; height: 44px; border-radius: 5px; object-fit: cover; display: block; background: #0f1c26; }
.algo-thumb-placeholder { width: 78px; height: 44px; border-radius: 5px; background: #eef3f6; display: flex; align-items: center; justify-content: center; color: #9db2bd; }
.algo-thumb-placeholder svg { width: 18px; height: 18px; }
.switch { position: relative; display: inline-block; width: 34px; height: 19px; vertical-align: middle; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 19px; background: #cbd8de; transition: .2s; cursor: pointer; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(15px); }
.switch input:disabled + i { opacity: .5; cursor: not-allowed; }
.algorithm-table input[type="checkbox"] { accent-color: var(--primary); width: 14px; height: 14px; cursor: pointer; }
.algo-target { max-width: 220px; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.algo-detail-grid { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; font-size: 12px; }
.algo-detail-grid dt { color: #7a8f9a; }
.algo-detail-grid dd { margin: 0; color: var(--ink); word-break: break-all; }
@media (max-width: 1100px) {
  .algorithm-layout { grid-template-columns: 1fr; }
  .algorithm-camera-list { max-height: 220px; }
}

/* 多屏监控增强 */
.video-grid.grid-8 { grid-template-columns: repeat(4, 1fr); }
.video-grid.grid-16 { grid-template-columns: repeat(4, 1fr); }
.client-video-main .video-grid.grid-8 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.client-video-main .video-grid.grid-16 { grid-template-rows: repeat(4, minmax(0, 1fr)); }
.carousel-control { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.carousel-control input { width: 54px; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); }
.client-video-main .carousel-control { color: #8fb0c2; }
.client-video-main .carousel-control input { border-color: rgba(83,151,190,.28); background: #0d2d45; color: #d6ecf7; }
.batch-camera-list { max-height: 380px; overflow-y: auto; display: grid; gap: 8px; }
.batch-camera-list label { display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 4px 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.batch-camera-list label:has(input:checked) { border-color: var(--primary-bright); background: #f2f9fc; }
.batch-camera-list label input { grid-row: span 2; accent-color: var(--primary); }
.batch-camera-list label span { font-weight: 600; color: var(--ink); }
.batch-camera-list label small { color: var(--muted); font-size: 11px; }
.ptz-aux { display: grid; grid-template-columns: repeat(2, 52px); gap: 5px; }
.ptz-aux button { height: 21px; border: 1px solid rgba(83,151,190,.25); border-radius: 4px; color: #91c6e3; background: #0d2d45; font-size: 9px; }
.ptz-aux button:hover { color: #fff; border-color: #3b9fd1; background: #135479; }
.ptz-aux-outputs header { grid-column: 1 / -1; font-size: 10px; color: #6e9db7; letter-spacing: .5px; padding: 2px 0 0; }
.ptz-aux-outputs { display: grid; grid-template-columns: 1fr; gap: 4px; padding-top: 4px; border-top: 1px dashed rgba(83,151,190,.15); margin-top: 2px; }
.ptz-aux-row { display: flex; gap: 5px; }
.ptz-aux-row button { flex: 1; height: 26px; font-size: 10px; border: 1px solid rgba(83,151,190,.35); border-radius: 4px; background: #0d2d45; color: #c6e4f5; cursor: pointer; transition: all .15s; white-space: nowrap; }
.ptz-aux-row button:hover:not(:disabled) { color: #fff; border-color: #3b9fd1; background: #135479; }
.ptz-aux-row button:disabled { opacity: .4; cursor: not-allowed; }
.ptz-options { display: flex; flex-direction: column; gap: 7px; }
.ptz-options label { display: flex; align-items: center; gap: 6px; color: #8fb0c2; font-size: 11px; }
.ptz-options select { height: 24px; border: 1px solid rgba(83,151,190,.25); border-radius: 4px; background: #0d2d45; color: #d6ecf7; }
.ptz-stream button { min-height: 24px; padding: 0 8px; font-size: 10px; }
.client-ptz-section .ptz-panel { flex-wrap: wrap; }
@media (max-width: 1100px) { .video-grid.grid-8, .video-grid.grid-16 { grid-template-columns: repeat(3, 1fr); } }

/* 告警中心增强 */
.event-chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.event-chart-card { padding: 16px 18px; }
.event-chart-card h4 { margin: 0 0 14px; color: var(--ink); font-size: 14px; }
.chart-bars { display: flex; flex-direction: column; gap: 10px; }
.chart-bar-row { display: grid; grid-template-columns: 110px 1fr 42px; align-items: center; gap: 10px; font-size: 12px; }
.chart-bar-row span:first-child { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-bar-track { height: 10px; border-radius: 6px; background: #eef3f6; overflow: hidden; }
.chart-bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #0068a9, #4aa8e0); }
.chart-bar-row strong { color: var(--ink); font-size: 12px; text-align: right; }
.chart-donut-wrap { display: flex; align-items: center; gap: 18px; }
.chart-donut { width: 132px; height: 132px; border-radius: 50%; flex: 0 0 auto; position: relative; }
.chart-donut::after { content: ''; position: absolute; inset: 26px; border-radius: 50%; background: #fff; }
.chart-legend { display: grid; gap: 7px; font-size: 12px; }
.chart-legend div { display: flex; align-items: center; gap: 8px; color: var(--text); }
.chart-legend i { width: 9px; height: 9px; border-radius: 50%; }
.chart-legend strong { margin-left: auto; color: var(--ink); }
.event-detail-image { position: relative; cursor: zoom-in; }
.event-detail-image::after { content: '点击放大'; position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 12px; background: rgba(5,9,15,.62); color: #fff; font-size: 11px; }
.image-lightbox { overflow: auto; max-height: 66vh; display: grid; place-items: center; background: #061019; border-radius: 10px; padding: 12px; }
.image-lightbox img { max-width: 100%; transition: transform .18s; transform-origin: center; }
.lightbox-overlay { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 36px; background: rgba(3,7,12,.82); backdrop-filter: blur(2px); }
.lightbox-panel { width: min(1100px, 94vw); padding: 14px; border-radius: 12px; background: #0a1621; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.lightbox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #e6f3f8; }
.lightbox-head > div { display: flex; gap: 8px; }
.lightbox-head .btn-ghost { color: #bcd7e4; border-color: rgba(120,179,209,.25); background: rgba(255,255,255,.05); }

/* 录像回放 */
.playback-panel { margin: 10px 16px 0; padding: 12px 14px; border: 1px solid rgba(74,168,224,.16); border-radius: 10px; background: #0b2133; }
.playback-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #9fc2d5; font-size: 12px; }
.playback-controls label { display: inline-flex; align-items: center; gap: 6px; }
.playback-controls input { height: 28px; padding: 0 8px; border: 1px solid rgba(83,151,190,.3); border-radius: 6px; background: #0d2d45; color: #d6ecf7; color-scheme: dark; }
.playback-controls .btn-secondary { color: #9fd6f5; background: rgba(10,132,198,.22); }
.playback-hint { margin-left: auto; color: #7fa3b8; font-size: 11px; }
.playback-track { position: relative; height: 26px; margin-top: 10px; overflow: hidden; border-radius: 6px; background: #071a29; cursor: crosshair; }
.playback-track-bg { position: absolute; inset: 9px 0; border-radius: 4px; background: rgba(120,179,209,.12); }
.playback-segment { position: absolute; top: 9px; bottom: 9px; display: block; border-radius: 3px; background: linear-gradient(90deg, #1677c8, #4aa8e0); }
.playback-cursor { position: absolute; top: 2px; bottom: 2px; width: 2px; background: #ffd166; box-shadow: 0 0 8px rgba(255,209,102,.8); }
.playback-panel .timeline-labels { display: flex; justify-content: space-between; margin-top: 4px; color: #64869a; font-size: 10px; }

/* 登录验证码 */
.captcha-row { display: flex; gap: 10px; margin-bottom: 16px; }
.captcha-row .input-with-icon { flex: 1; }
.captcha-image { flex: 0 0 128px; height: 50px; padding: 0; border: 1px solid #dce7ec; border-radius: 9px; background: #eef3f7; overflow: hidden; cursor: pointer; }
.captcha-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.captcha-image:hover { border-color: var(--primary-bright); }

/* 系统管理：角色矩阵、工单流程、组织架构 */
.tab-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eef2f5; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 16px 8px; font-size: 13px; color: var(--ink); }
.matrix-table th { text-align: center; font-size: 11px; white-space: nowrap; }
.matrix-table td { text-align: center; }
.matrix-table td:first-child { text-align: left; }
.matrix-check input { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
.matrix-check input:disabled { cursor: not-allowed; opacity: .55; }
.row-actions { display: flex; gap: 6px; }
#system-tab-content .table-wrap table td .input,
#system-tab-content .table-wrap table td .select { min-width: 110px; height: 32px; }
#system-tab-content .table-wrap table td select.select { padding-right: 6px; }

/* 视频截图识别 */
.snapshot-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); gap: 18px; align-items: start; }
.snapshot-preview { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #07111d; }
.snapshot-preview img { display: block; width: 100%; max-height: 46vh; object-fit: contain; background: #07111d; }
.snapshot-preview figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; color: #cfe0ef; font-size: 12px; background: rgba(7, 17, 29, .94); }
.snapshot-preview .text-link { color: #62b5e5; }
.snapshot-form { display: flex; flex-direction: column; }
.snapshot-form select, .snapshot-form input:not([type="checkbox"]) { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
.snapshot-form select:focus, .snapshot-form input:not([type="checkbox"]):focus { outline: 2px solid rgba(0, 104, 169, .16); border-color: var(--primary); }
.snapshot-form .field-label { margin: 0 0 6px; }
.snapshot-form .field-label:not(:first-child) { margin-top: 14px; }
.snapshot-form .field-hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--text); cursor: pointer; }
.checkbox-row input { width: auto; }
#snapshot-result:not(:empty) { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
#snapshot-result .result-placeholder { padding: 24px 0; }
@media (max-width: 820px) { .snapshot-layout { grid-template-columns: 1fr; } }

/* 视频右键菜单与电子放大 */
.video-context-menu { position: fixed; z-index: 1200; min-width: 158px; padding: 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(9, 20, 31, .97); box-shadow: 0 18px 44px rgba(0, 0, 0, .38); backdrop-filter: blur(10px); }
.video-context-menu button { display: block; width: 100%; padding: 8px 14px; border: 0; border-radius: 7px; background: transparent; color: #d7e6f1; font-size: 13px; text-align: left; }
.video-context-menu button:hover:not(:disabled) { background: rgba(74, 168, 224, .18); color: #fff; }
.video-context-menu button:disabled { color: #607588; cursor: not-allowed; }
.video-context-menu hr { margin: 5px 8px; border: 0; border-top: 1px solid rgba(255,255,255,.1); }
.video-tile.digital-zoom-mode { cursor: crosshair; }
.video-tile.digital-zoomed img, .video-tile.digital-zoomed video { transition: transform .18s ease-out; }
.video-digital-selection { position: absolute; z-index: 6; border: 1.5px dashed #f2c94c; background: rgba(242, 201, 76, .12); pointer-events: none; }
.video-3d-prompt { box-shadow: inset 0 0 0 2px #f2c94c; animation: video3dPulse 1.1s ease-in-out 2; }
@keyframes video3dPulse { 0%, 100% { box-shadow: inset 0 0 0 2px rgba(242,201,76,.18); } 50% { box-shadow: inset 0 0 0 3px rgba(242,201,76,.9); } }
.focus-mini-map em { display: block; margin-top: 3px; padding: 0 6px 4px; color: #f2c94c; font-size: 10px; font-style: normal; line-height: 1.35; }

/* 空间检索：以图找视频 / 以视频找图 */
.spatial-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 16px; min-height: 520px; }
.spatial-map-pane { position: relative; min-height: 520px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #07111d; }
#spatial-map { position: absolute; inset: 0; }
.spatial-map-toolbar { position: absolute; z-index: 500; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(7, 17, 29, .9); color: #cfe0ef; font-size: 12px; backdrop-filter: blur(8px); }
.spatial-map-toolbar .btn.active { box-shadow: 0 0 0 2px rgba(242, 201, 76, .55); }
.spatial-map-toolbar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9fb8ca; }
.spatial-side { display: flex; flex-direction: column; min-width: 0; }
.spatial-side .segmented { margin-bottom: 14px; }
.spatial-intro { padding: 12px 14px; border-radius: 10px; background: #f4f8fb; border: 1px solid var(--line); }
.spatial-intro strong { display: block; color: var(--ink); font-size: 14px; }
.spatial-intro p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.spatial-query { display: flex; flex-direction: column; gap: 3px; margin: 14px 0 4px; padding: 9px 12px; border: 1px dashed #c9d8e4; border-radius: 9px; }
.spatial-query span { color: var(--muted); font-size: 11px; }
.spatial-query strong { color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.45; word-break: break-all; }
.spatial-side .field-label { margin: 14px 0 6px; }
.spatial-side .input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
.spatial-submit { width: 100%; justify-content: center; margin-top: 16px; }
.spatial-results { flex: 1; min-height: 120px; margin-top: 14px; overflow-y: auto; max-height: 300px; }
.spatial-result-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 8px; font-size: 12px; color: var(--muted); }
.spatial-result-head strong { color: var(--ink); font-size: 13px; }
.spatial-result { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(0, 31, 61, .05); }
.spatial-result + .spatial-result { margin-top: 10px; }
.spatial-result header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.spatial-result header strong { display: block; color: var(--ink); font-size: 13px; }
.spatial-result header span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.spatial-result p { margin: 7px 0 0; color: var(--text); font-size: 12px; line-height: 1.55; }
.spatial-result small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.spatial-result-actions { display: flex; gap: 8px; margin-top: 9px; }
.spatial-scene-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.spatial-scene-metrics > div { padding: 9px 10px; border-radius: 9px; background: #f4f8fb; border: 1px solid var(--line); }
.spatial-scene-metrics span { display: block; color: var(--muted); font-size: 11px; }
.spatial-scene-metrics strong { display: block; margin-top: 3px; color: var(--ink); font-size: 12px; font-weight: 600; }
.spatial-results .notice-banner { margin: 0; }
@media (max-width: 960px) { .spatial-layout { grid-template-columns: 1fr; } .spatial-map-pane, #spatial-map { min-height: 320px; } .spatial-results { max-height: 360px; } }


/* ===== 参考点标定 ===== */
.calib-panel { display: flex; flex-direction: column; gap: 12px; }
.calib-panel h4 { margin: 0; font-size: 14px; }
.calib-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.calib-toolbar .input { min-width: 200px; }
.calib-install { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.calib-install .input { width: 84px; }
.calib-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; min-height: 340px; }
.calib-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: #0f1720; }
.calib-scene { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: #0f1720; display: flex; align-items: center; justify-content: center; }
.calib-scene img { width: 100%; height: 100%; object-fit: contain; display: block; }
.calib-scene img[hidden] { display: none; }
.calib-scene-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8fa3b5; font-size: 12px; }
.calib-crosshair { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); pointer-events: none; }
.calib-crosshair::before, .calib-crosshair::after { content: ""; position: absolute; background: rgba(255, 69, 69, 0.95); box-shadow: 0 0 4px rgba(0, 0, 0, 0.7); }
.calib-crosshair::before { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.calib-crosshair::after { top: 50%; left: 0; height: 1.5px; width: 100%; transform: translateY(-50%); }
.calib-meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.calib-meta-grid > div { padding: 8px 10px; border-radius: 9px; background: #f4f8fb; border: 1px solid var(--line); }
.calib-meta-grid span { display: block; color: var(--muted); font-size: 11px; }
.calib-meta-grid strong { display: block; margin-top: 3px; font-size: 12px; color: var(--ink); }
.calib-pad { display: flex; align-items: center; gap: 14px; }
.calib-pad small { color: var(--muted); font-size: 11px; }
.calib-points-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.calib-points-head .form-hint { margin: 0; }
.calib-points-actions { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.calib-points-actions .input { width: 118px; }
.calib-points-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.calib-points-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.calib-points-table th, .calib-points-table td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.calib-points-table th { background: #f4f8fb; color: var(--muted); font-weight: 600; }
.calib-points-table tbody tr:last-child td { border-bottom: none; }
.geo-advanced { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.geo-advanced > summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
@media (max-width: 960px) { .calib-layout { grid-template-columns: 1fr; } .calib-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== 预置位增强 ===== */
.preset-toolbar { margin-bottom: 8px; }
.preset-toolbar .input { width: 100%; }
.preset-capture { width: 100%; margin-bottom: 8px; }
.preset-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.preset-row-main span { font-weight: 600; font-size: 12px; }
.preset-row-main small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preset-row { display: flex; align-items: center; gap: 6px; }
.preset-row button { white-space: nowrap; }
.preset-edit-form { display: flex; flex-direction: column; gap: 10px; }
.preset-edit-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.preset-edit-form label.preset-edit-check { flex-direction: row; align-items: center; gap: 8px; }
.preset-region-actions { display: flex; gap: 8px; }
.cruise-new label input[type="time"] { width: 96px; }

/* ===== 区域绘制 ===== */
.roi-editor { display: flex; flex-direction: column; gap: 10px; }
.roi-editor-wrap { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0f1720; }
.roi-editor-wrap img { display: block; width: 100%; height: auto; }
.roi-editor-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.roi-toolbar { display: flex; align-items: center; gap: 8px; }

/* ===== 管理员训练优化 ===== */
.training-shell { min-width: 0; }
.training-production-notice { margin-bottom: 14px; }
.training-tabs { display: flex; gap: 4px; padding: 6px; margin-bottom: 16px; overflow-x: auto; }
.training-tabs button { flex: 1 0 auto; min-width: 118px; padding: 11px 18px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 600; transition: color .18s, background .18s, box-shadow .18s; }
.training-tabs button:hover { color: var(--primary); background: #f3f8fb; }
.training-tabs button.active { color: #fff; background: var(--primary); box-shadow: 0 5px 14px rgba(0, 104, 169, .2); }
.training-tab-content { min-width: 0; }
.training-section { margin-top: 16px; }
.training-center-action { padding: 0 20px 24px; text-align: center; }
.training-danger-link { color: var(--red); }
.training-shell .text-link:disabled { opacity: .45; cursor: not-allowed; }
.training-model-actions { display: flex; flex-wrap: wrap; gap: 7px 12px; min-width: 150px; }
.training-error-text { max-width: 250px; margin-top: 6px; overflow: hidden; color: var(--red); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.training-progress { width: 120px; height: 5px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #e8eef3; }
.training-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--cyan)); transition: width .25s; }
.training-filter-total { margin-left: auto; color: var(--muted); font-size: 12px; }
.training-camera-multiple { min-height: 112px; padding: 7px; }
.training-camera-multiple option { padding: 6px; }

/* 总览、worker 与能力状态 */
.training-overview-top { align-items: stretch; }
.training-active-model { display: flex; align-items: center; gap: 12px; min-width: 0; }
.training-active-model > div { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.training-active-model strong { color: var(--ink); font-size: 16px; }
.training-active-model .mono { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; }
.training-model-mark { display: grid; flex: 0 0 44px; height: 44px; place-items: center; border-radius: 12px; color: var(--primary); background: #e9f5fb; }
.training-detail-list { margin: 16px 0 0; }
.training-detail-list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.training-detail-list dt { color: var(--muted); font-size: 12px; }
.training-detail-list dd { margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: 12px; }
.training-resource-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.training-resource-summary > div { display: flex; flex-direction: column; gap: 6px; padding: 13px; border-radius: 10px; background: #f5f8fa; }
.training-resource-summary span { color: var(--muted); font-size: 11px; }
.training-resource-summary strong { color: var(--ink); font-size: 16px; }
.training-worker-list { display: flex; flex-direction: column; gap: 5px; }
.training-worker-list > div { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.training-worker-list > div:last-child { border-bottom: 0; }
.training-worker-list section { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.training-worker-list section strong { color: var(--ink); }
.training-worker-list section span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.training-worker-list aside { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.training-worker-list small { color: var(--muted); font-size: 10px; }
.training-capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.training-capability { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd; }
.training-capability header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.training-capability header strong { color: var(--ink); }
.training-capability-flags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.training-capability-flags span { padding: 3px 7px; border-radius: 5px; color: #567080; background: #edf3f6; font-size: 10px; }
.training-capability p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.training-research-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.training-research-list article { padding: 15px; border: 1px solid var(--line); border-radius: 10px; }
.training-research-list article > div { display: flex; align-items: center; gap: 9px; }
.training-research-list article strong { color: var(--ink); }
.training-research-list p { min-height: 36px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.training-research-list footer { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--muted); font-size: 10px; }
.training-research-list a { margin-left: auto; color: var(--primary); }

/* 数据、数据集与审核 */
.training-data-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.training-data-actions > span { margin-left: auto; color: var(--muted); font-size: 12px; }
.training-data-actions > span strong { color: var(--primary); }
.training-bulk-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.training-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.training-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.training-detail-grid > div { min-width: 0; padding: 12px; border-radius: 9px; background: #f5f8fa; }
.training-detail-grid dt { margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.training-detail-grid dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; }
.training-split-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.training-split-grid > div { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border: 1px solid var(--line); border-radius: 9px; }
.training-split-grid span { color: var(--muted); text-transform: uppercase; }
.training-split-grid strong { color: var(--primary); font-size: 20px; }
.training-warning-list { margin-top: 14px; padding: 12px 15px; border-radius: 9px; color: #8a6425; background: #fff7e9; }
.training-warning-list p { margin: 6px 0 0; font-size: 12px; }
.training-subtitle { margin: 20px 0 10px; color: var(--ink); font-size: 14px; }
.training-class-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.training-class-cloud span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 7px; color: #45606f; background: #edf4f7; font-size: 12px; }
.training-class-cloud b { color: var(--primary); }
.training-dataset-items { max-height: 340px; overflow: auto; }
.training-error-list { max-height: 400px; overflow: auto; }
.training-error-list p { display: flex; gap: 10px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--red); }
.training-error-list code { flex: 0 0 85px; color: var(--muted); }

/* 两阶段任务编排 */
.training-orchestration-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 18px; }
.training-orchestration-grid > section { min-width: 0; }
.training-orchestration-grid h4 { margin: 0 0 12px; color: var(--ink); font-size: 14px; }
.training-orchestration-plan { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f7fafb; }
.training-orchestration-plan > header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.training-orchestration-plan dl { margin: 0 0 12px; }
.training-orchestration-plan dl > div { padding: 7px 0; border-top: 1px solid var(--line); }
.training-orchestration-plan dt { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.training-orchestration-plan dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; }
.training-orchestration-plan .training-json { max-height: 220px; margin: 10px 0; background: #edf3f6; }
.training-orchestration-result { margin-top: 12px; }
.training-orchestration-result summary { cursor: pointer; color: var(--primary); font-size: 12px; }

/* 任务日志与评估 */
.training-log-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.training-log-content { min-height: 340px; max-height: 62vh; margin: 0; padding: 18px; overflow: auto; border-radius: 10px; color: #c9e6ef; background: #07111b; font: 12px/1.75 Consolas, "Microsoft YaHei", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.training-metric { display: inline-block; margin: 2px 8px 2px 0; color: var(--muted); font-size: 11px; }
.training-metric b { color: var(--ink); font-weight: 600; }
.training-evaluation-summary { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.training-evaluation-summary > span { margin-left: auto; color: var(--muted); font-size: 12px; }
.training-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.training-metric-grid > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px; border-radius: 8px; background: #f4f8fa; }
.training-metric-grid span { color: var(--muted); font-size: 11px; }
.training-metric-grid strong { overflow-wrap: anywhere; color: var(--ink); font-size: 15px; }
.training-json { max-height: 300px; padding: 14px; overflow: auto; border-radius: 9px; color: #405d6d; background: #f3f7f9; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.training-release-active { border-top: 3px solid var(--green); }
.training-history-table { max-height: 480px; overflow: auto; }
.training-form-error { margin: 12px 0; padding: 11px 13px; border: 1px solid #f0c5c8; border-radius: 8px; color: #b9424b; background: #fff2f3; font-size: 12px; line-height: 1.6; }

/* 可视化标注 */
.modal.training-annotation-modal { width: min(1420px, 100%); }
.training-annotation-modal .modal-body { padding-top: 14px; }
.training-editor-notice { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 11px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.training-editor-notice span { flex: 0 0 auto; }
.training-editor-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 11px; }
.training-editor-toolbar > span { margin-left: auto; color: var(--muted); font-size: 11px; }
.training-editor-error { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 11px; padding: 11px 13px; border: 1px solid #efc7ca; border-radius: 8px; color: #b6424b; background: #fff3f4; font-size: 12px; }
.training-editor-error span { flex: 1; min-width: 240px; }
.training-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; min-height: 440px; }
.training-canvas-column { min-width: 0; border: 1px solid #203442; border-radius: 11px; background: #08121b; }
.training-canvas-column > .page-loading { min-height: 440px; color: #a3bcc9; }
.training-canvas-stage { max-height: 66vh; overflow: auto; border-radius: inherit; }
.training-canvas-stage canvas { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: none; user-select: none; }
.training-box-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #f8fafb; }
.training-box-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.training-box-panel-head strong { color: var(--ink); }
.training-box-panel-head span { color: var(--muted); font-size: 11px; }
#training-box-list { max-height: 245px; padding: 8px; overflow-y: auto; }
.training-box-row { display: flex; align-items: center; gap: 3px; border: 1px solid transparent; border-radius: 8px; }
.training-box-row.active { border-color: #b7d9e9; background: #eaf5fa; }
.training-box-row > button:first-child { display: grid; flex: 1; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 6px; min-width: 0; padding: 9px 6px; border: 0; text-align: left; background: transparent; }
.training-box-row > button:first-child b { grid-row: span 2; color: var(--primary); }
.training-box-row > button:first-child span { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.training-box-row > button:first-child small { color: var(--muted); font-size: 10px; }
.training-box-row .icon-btn { width: 28px; height: 28px; color: var(--muted); }
.training-box-row .icon-btn:hover { color: var(--red); }
.training-box-empty { padding: 20px 13px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.training-selected-box { margin: 0 10px 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.training-selected-box > strong { display: block; margin-bottom: 10px; color: var(--ink); }
.training-selected-box label { display: block; margin: 9px 0 5px; color: var(--muted); font-size: 11px; }
.training-box-coordinates { margin-top: 9px; color: var(--muted); font: 10px/1.7 Consolas, monospace; }
.training-no-selection { padding: 10px 14px; font-size: 12px; }
.training-class-contract { display: flex; flex-wrap: wrap; gap: 5px; padding: 12px; border-top: 1px solid var(--line); }
.training-class-contract > strong { flex: 0 0 100%; margin-bottom: 4px; color: var(--ink); font-size: 11px; }
.training-class-contract span { padding: 4px 6px; border-radius: 5px; color: #55707f; background: #eaf0f3; font-size: 10px; }
.training-class-contract span b { margin-right: 5px; color: var(--primary); }
.training-class-contract p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.training-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.training-editor-footer > span { color: var(--muted); font-size: 11px; }
.training-editor-footer > div { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 1200px) {
  .training-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .training-data-actions > span { margin-left: 0; }
  .training-bulk-actions { width: 100%; }
  .training-editor-toolbar > span { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 980px) {
  .training-orchestration-grid { grid-template-columns: 1fr; }
  .training-editor-layout { grid-template-columns: 1fr; }
  .training-box-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .training-box-panel-head, .training-class-contract { grid-column: 1 / -1; }
  #training-box-list { max-height: 260px; }
  .training-selected-box { margin-top: 10px; }
  .training-class-contract { border-top: 1px solid var(--line); }
  .training-editor-notice { flex-direction: column; }
  .training-editor-notice span { flex: auto; }
}
@media (max-width: 760px) {
  .training-tabs button { min-width: 106px; padding: 10px 13px; }
  .training-capability-grid, .training-research-list, .training-detail-grid, .training-metric-grid { grid-template-columns: 1fr; }
  .training-data-actions { align-items: stretch; }
  .training-data-actions > .btn { flex: 1; }
  .training-bulk-actions .btn { flex: 1 1 30%; }
  .training-filter-total { flex-basis: 100%; margin-left: 0; }
  .training-split-grid { grid-template-columns: 1fr; }
  .training-editor-footer { align-items: flex-start; flex-direction: column; }
  .training-editor-footer > div { width: 100%; }
  .training-editor-footer .btn { flex: 1 1 42%; }
  .training-box-panel { display: block; }
  .training-canvas-column > .page-loading { min-height: 280px; }
  .training-editor-layout { min-height: 0; }
  .training-detail-list > div { grid-template-columns: 90px minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .training-stat-grid { grid-template-columns: 1fr; }
  .training-resource-summary { grid-template-columns: 1fr; }
  .training-active-model { align-items: flex-start; flex-wrap: wrap; }
  .training-bulk-actions .btn { flex-basis: 100%; }
  .training-log-content { min-height: 280px; padding: 12px; }
}

/* AI 视频监控与告警闭环 */
.notification-list { display: grid; gap: 8px; padding: 12px 16px; }
.notification-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.notification-item.unread { border-color: #b9d9e9; background: #f0f8fc; }
.notification-item > button:first-child { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.notification-item > button:first-child > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notification-item strong { color: var(--ink); font-size: 13px; }
.notification-item p { margin: 6px 0; color: var(--text); font-size: 12px; line-height: 1.55; }
.notification-item > button:first-child > span { color: var(--muted); font-size: 11px; }
.sound-preference { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; color: var(--text); font-size: 12px; cursor: pointer; }
.camera-list-actions { display: flex; align-items: center; gap: 4px; }
.camera-list-actions button { padding: 3px 5px; border: 1px solid rgba(83,151,190,.22); border-radius: 4px; color: #79a4ba; background: transparent; font-size: 9px; cursor: pointer; }
.camera-list-actions button.active, .camera-list-actions button:hover { color: #ffd166; border-color: rgba(255,209,102,.45); }
.camera-node-row { display: flex; align-items: center; gap: 2px; }
.camera-node-row .camera-node { flex: 1; min-width: 0; }
.camera-favorite { flex: 0 0 25px; align-self: stretch; border: 0; color: #52778c; background: transparent; cursor: pointer; }
.camera-favorite.active { color: #ffd166; }
.batch-camera-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 52vh; padding: 12px 16px; overflow: auto; }
.batch-camera-list label { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 3px 7px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.batch-camera-list label input { grid-row: span 2; margin-top: 3px; }
.batch-camera-list label span { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.batch-camera-list label small { color: var(--muted); font-size: 10px; }
.ptz-lease-status { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 12px; border-bottom: 1px solid rgba(83,151,190,.17); color: #7599ae; background: rgba(4,20,32,.25); font-size: 9px; }
.ptz-lease-status.owned { color: #8dd8bb; }
.ptz-lease-status.locked { color: #efb3ad; }
.ptz-lease-status button { flex: 0 0 auto; padding: 2px 6px; border: 1px solid currentColor; border-radius: 4px; color: inherit; background: transparent; font-size: 9px; cursor: pointer; }
.record-capability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; padding: 14px 16px 0; }
.record-capability { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #f8fafb; font-size: 11px; }
.record-export-progress { width: 120px; margin-top: 6px; }
.weekday-picker { display: flex; flex-wrap: wrap; gap: 7px 13px; }
.weekday-picker .checkbox-label, .end-of-day { margin-top: 7px; }
.record-sync-list { display: grid; gap: 12px; }
.record-sync-item { padding: 13px; border: 1px solid var(--line); border-radius: 9px; }
.record-sync-item > header { display: flex; justify-content: space-between; gap: 8px; }
.record-sync-item pre, .record-sync-item details pre { max-height: 210px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: var(--text); font: 11px/1.55 Consolas, monospace; }
.rain-rule-list { margin-top: 16px; }
.rain-rule-list h4 { margin: 0 0 9px; color: var(--ink); }
.rain-rule-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rain-rule-list article div { display: grid; gap: 3px; }
.rain-rule-list article span, .rain-rule-list article small { color: var(--muted); font-size: 11px; }
.event-tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.event-collaboration-bar { position: sticky; bottom: 0; z-index: 2; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.96); }
.leader-instruction-list { display: grid; gap: 9px; }
.leader-instruction { padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafb; }
.leader-instruction.pending { border-left: 3px solid var(--orange, #e69a42); }
.leader-instruction.completed { border-left: 3px solid var(--green, #36a77b); }
.leader-instruction header { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.leader-instruction p { margin: 7px 0; color: var(--text); font-size: 12px; }
.leader-answer { margin: 7px 0; padding: 8px; border-radius: 6px; color: var(--text); background: #fff; font-size: 12px; }
.leader-answer small { display: block; margin-top: 5px; color: var(--muted); }
.workflow-version-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.workflow-version-bar > label { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 12px; }
.workflow-version-bar > .cell-sub { margin-right: auto; }
.workflow-settings-grid { display: grid; grid-template-columns: minmax(180px, 1fr) 160px minmax(300px, 1.4fr); gap: 12px; padding: 14px 16px; background: #f8fafb; }
.workflow-permissions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.binding-create { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto; gap: 9px; margin: 0 16px 12px; }
.suppression-cameras { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suppression-camera-select { min-height: 126px; }
.code-input { font-family: Consolas, monospace; font-size: 12px; }
@media (max-width: 900px) {
  .batch-camera-list, .workflow-settings-grid, .binding-create { grid-template-columns: 1fr; }
  .workflow-version-bar > .cell-sub { flex-basis: 100%; margin-right: 0; }
  .record-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rain-rule-list article { align-items: flex-start; flex-direction: column; }
}

/* Piercing Eyes 多语言切换 */
html.pe-i18n-loading body { visibility: hidden; }
.pe-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line, #d8e2ea);
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, .06);
  vertical-align: middle;
}
.pe-lang-switch svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .85;
}
.pe-lang-switch select {
  max-width: 112px;
  padding: 0;
  border: 0;
  outline: none;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.pe-lang-switch select option { color: #1b2a38; background: #fff; }
.login-card { position: relative; }
.pe-lang-switch-login {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 5;
  border-color: rgba(52, 68, 84, .18);
  background: rgba(255, 255, 255, .7);
}
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .pe-lang-switch-login { right: auto; left: 20px; }
html[dir="rtl"] .sidebar { right: 0; left: auto; border-right: 0; border-left: 1px solid var(--line, #d8e2ea); box-shadow: -5px 0 25px rgba(11, 28, 44, .06); }
html[dir="rtl"] .main-area { margin-left: 0; margin-right: 232px; }
@media (max-width: 900px) {
  html[dir="rtl"] .main-area { margin-right: 0; }
  .pe-lang-switch { padding: 2px 6px; }
  .pe-lang-switch select { max-width: 82px; font-size: 11px; }
}

/* 客户端顶部导航为语言选择器预留空间，避免与右侧导航重叠 */
#client-header .client-actions { align-items: center; }
#client-header .pe-lang-switch { margin-right: 4px; }
@media (min-width: 1281px) {
  .client-nav-right { margin-right: 270px; }
}
@media (max-width: 1280px) {
  .client-nav-right { margin-right: 272px; }
}
@media (max-width: 1050px) {
  .client-nav-right { margin-right: 160px; }
  #client-header .pe-lang-switch { position: relative; width: 32px; height: 32px; padding: 0; justify-content: center; }
  #client-header .pe-lang-switch svg { width: 16px; height: 16px; }
  #client-header .pe-lang-switch select { position: absolute; inset: 0; width: 100%; max-width: none; opacity: 0; }
}
@media (max-width: 760px) {
  .client-nav-left, .client-nav-right { margin: 0; }
  #client-header .pe-lang-switch { margin-right: 0; }
}

.training-class-contract em.training-class-en {
  font-style: normal;
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.55;
}

.training-class-custom {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.training-class-custom strong { display: block; margin-bottom: 8px; }
.training-class-custom-row { display: grid; grid-template-columns: 90px 1fr 1fr auto; gap: 6px; }
.training-class-custom .muted { margin: 6px 0 0; font-size: 11px; }
