/* =========================================================================
 * 共享充电宝平台 · 管理后台原型 —— 样式
 * 设计语言：
 *   深色侧边导航 + 浅灰背景 + 白色圆角卡片 + 柔和阴影 + 彩色状态 pill
 * 分区：1 变量  2 壳层  3 通用组件  4 业务组件（仓位/图表/分账）
 *      5 弹窗抽屉  6 登录与语言  7 响应式
 * ========================================================================= */

/* ============================ 1. 设计变量 ============================ */
:root {
  --brand-accent: #00D9C0;
  --brand-accent-ink: #0F3443;
  --brand-accent-day: #0F3443;
  --brand-day-bg: #f3f7f8;
  --brand-navy: #0F3443;
  --brand-cyan: #00B4D8;
  --brand-orange: #FF7A00;
  --side-w: clamp(220px, 15vw, 272px);
  --page-pad: clamp(16px, 1.6vw, 36px);
  --bg: #0c1a22;
  --panel: #102028;
  --ink: #f4f7f8;
  --muted: #8b90a0;
  --line: rgba(255, 255, 255, 0.08);
  --navy: #07080b;
  --navy-2: #0e1014;
  --accent: var(--brand-accent);
  --accent-ink: var(--brand-accent-ink);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --ok: #00D9C0;
  --ok-soft: rgba(0, 217, 192, 0.14);
  --warn: #FF7A00;
  --warn-soft: rgba(255, 122, 0, 0.14);
  --danger: #ff6b7a;
  --danger-soft: rgba(255, 107, 122, 0.12);
  --violet: #d5eef3;
  --violet-soft: rgba(15, 52, 67, 0.55);
  --teal: #00D9C0;
  --teal-soft: rgba(0, 217, 192, 0.14);
  --radius: 16px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --glow: 0 0 18px color-mix(in srgb, var(--accent) 12%, transparent);
  --font: "Outfit", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
html[data-skin="night"] { color-scheme: dark; }

* { box-sizing: border-box; }
html, body, body * {
  touch-action: pan-x pan-y;
  -ms-touch-action: pan-x pan-y;
}
html, body {
  margin: 0;
  height: 100%;
}
.gmap, .gmap *, .gm-style, .gm-style *, .globe-stage, .globe-stage * {
  touch-action: none;
  -ms-touch-action: none;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(110,231,216,.05), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ============================ 2. 壳层 ============================ */
.app { display: flex; min-height: 100vh; position: relative; z-index: 1; }
html.has-session #loginPage { display: none !important; }
html.has-session #appShell { display: flex !important; }

.sidebar {
  width: var(--side-w);
  background: #0F3443;
  color: #b8becc;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex; gap: 12px; align-items: center;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center; flex-shrink: 0;
  background: transparent;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-title { font-size: 14px; font-weight: 700; color: #fff; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

.nav {
  padding: 8px 10px 18px; overflow: auto; flex: 1;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent;
}
.nav-block {
  margin: 16px 8px 6px;
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  color: #5f6573; text-transform: uppercase;
}
.nav-block .nav-ico { width: 12px; height: 12px; opacity: .9; }
.nav-block .nav-ico svg { width: 12px; height: 12px; }
.nav-block:first-child { margin-top: 6px; }
.nav-sec { margin-bottom: 2px; border-radius: 12px; }
.nav-sec:has(.nav-parent.open) { background: rgba(255,255,255,.03); }
.nav-ico {
  width: 16px; height: 16px; flex-shrink: 0; display: grid; place-items: center;
  opacity: .72;
}
.nav-ico svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav-parent {
  width: 100%; display: flex; align-items: center; gap: 10px;
  border: 0; background: transparent; color: #c3c8d4;
  padding: 9px 10px; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 650;
}
.nav-parent:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-parent .caret {
  width: 6px; height: 6px; margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .18s ease; opacity: .45;
  flex-shrink: 0;
}
.nav-parent.open { color: #fff; }
.nav-parent.open .caret { transform: rotate(45deg); opacity: .7; }
.nav-parent.has-active { color: var(--accent); }
.nav-parent.has-active .nav-ico { opacity: 1; color: var(--accent); }
.nav-sub {
  display: flex; flex-direction: column; gap: 1px;
  padding: 0 6px 8px 14px;
  margin: 0 4px 4px 12px;
  border-left: 1px solid rgba(255,255,255,.08);
}
.nav-item {
  width: 100%; text-align: left; border: 0; background: transparent;
  color: #9aa1b0; padding: 7px 10px; border-radius: 8px;
  cursor: pointer; font: inherit; font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}
.nav-item.solo { padding: 9px 10px; font-weight: 650; color: #c3c8d4; margin-bottom: 2px; }
.nav-item.solo .nav-ico { opacity: .72; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #eef0f4; }
.nav-item.active {
  background: rgba(0, 217, 192, 0.14);
  color: #f4fffd;
  font-weight: 650;
}
.nav-item.active .nav-ico { opacity: 1; color: #00D9C0; }
.nav-sub .nav-ico { width: 14px; height: 14px; opacity: .75; }
.btn-ico {
  width: 14px; height: 14px; display: inline-grid; place-items: center; flex-shrink: 0;
}
.btn-ico svg, .nav-sub .nav-ico svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav-item.solo.active {
  box-shadow: inset 2px 0 0 var(--accent);
  color: #fff;
}
.nav-item.solo.active .nav-ico { opacity: 1; color: var(--accent); }

.sidebar-foot {
  padding: 8px 10px 14px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-foot .nav-item { width: 100%; }
.sidebar-foot #csInboxBtn .cs-badge { margin-left: auto; }
.sidebar-foot .nav-item.is-on {
  background: rgba(0, 217, 192, 0.14);
  color: #f4fffd;
}
.sidebar-foot .btn-ghost { width: 100%; justify-content: flex-start; padding: 4px 8px; color: #7b8190; }
.sidebar-mask { position: fixed; inset: 0; background: rgba(11,36,56,.45); z-index: 29; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  min-height: 64px; background: rgba(17,19,24,.82); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 24px; position: sticky; top: 0; z-index: 12;
  backdrop-filter: blur(16px);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.menu-toggle {
  display: none; width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; font-size: 18px; cursor: pointer;
}
.page-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.page-title-text { min-width: 0; }
.page-ico {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; color: #0F3443; background: #00D9C0;
}
.page-ico svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.page-title { font-size: 18px; font-weight: 700; }
.page-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hd-ico, .kpi-ico, .tab-ico {
  display: inline-grid; place-items: center; flex-shrink: 0; color: #00D9C0;
}
.hd-ico { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.kpi .label { display: flex; align-items: center; gap: 6px; }
.kpi-ico { width: 14px; height: 14px; }
.tab { display: inline-flex; align-items: center; }
.tab-ico { width: 14px; height: 14px; margin-right: 4px; }
.hd-ico svg, .kpi-ico svg, .tab-ico svg {
  width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.card-hd h3 { display: flex; align-items: center; flex-wrap: wrap; }
.page-tab.is-on .tab-ico { color: #00D9C0; }
.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
  flex-wrap: nowrap;
}
.topbar-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.topbar-rule {
  width: 1px;
  height: 22px;
  background: var(--line);
  flex-shrink: 0;
}
.topbar-market {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}
.topbar-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar-market select {
  appearance: none;
  -webkit-appearance: none;
  height: 32px;
  max-width: 168px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%238b90a0' d='M1.2 1.1 6 6.3 10.8 1.1 12 2.3 6 8 0 2.3z'/></svg>") right 10px center / 9px 6px no-repeat,
    rgba(255,255,255,.05);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.topbar-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 1;
}
.topbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
}
.topbar-who-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.topbar-who-txt strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.topbar-who-txt em {
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.topbar-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.topbar-icon svg { width: 15px; height: 15px; display: block; }
.topbar-icon .ico-exit { display: none; }
.topbar-icon.is-on .ico-enter { display: none; }
.topbar-icon.is-on .ico-exit { display: block; }
.topbar-icon:hover,
.topbar-icon.is-on {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
}
.topbar-logout {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.topbar-logout:hover { color: var(--ink); }
.topbar-cs {
  position: relative;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-cs:hover,
.topbar-cs.is-on {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
}
.cs-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  font-style: normal;
}
.cs-toast {
  position: fixed;
  top: 76px;
  right: 20px;
  width: min(360px, calc(100vw - 32px));
  z-index: 70;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  padding: 14px 36px 12px 16px;
}
.cs-toast.hidden { display: none; }
.cs-toast-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.cs-toast-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--warn);
  letter-spacing: 0.04em;
}
.cs-toast-title {
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 6px;
}
.cs-toast p { margin: 0 0 6px; font-size: 13px; line-height: 1.45; }
.cs-toast-ft { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.cs-desk {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 0;
  min-height: min(68vh, 720px);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
.cs-list {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(255,255,255,.02);
}
.cs-list-hd {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
#cs-thread-list { overflow: auto; flex: 1; }
.cs-group-l {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
}
.cs-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 10px 14px;
  cursor: pointer;
}
.cs-row:hover { background: var(--accent-soft); }
.cs-row.is-on { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.cs-row.is-human .cs-row-who { color: var(--warn); }
.cs-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cs-row-who { font-weight: 700; font-size: 13px; }
.cs-row-preview {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-row-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.cs-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  line-height: 18px;
  text-align: center;
}
.cs-count.is-human { background: var(--danger); color: #fff; }
.cs-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 12px 16px 14px;
}
.cs-pane-empty {
  margin: auto;
  color: var(--muted);
  font-size: 13px;
}
.cs-pane-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cs-pane-hd strong { margin-right: 8px; }
.cs-facts { white-space: pre-wrap; font-size: 12px; margin: 10px 0; }
.cs-log {
  flex: 1;
  overflow: auto;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-bubble {
  max-width: 86%;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.cs-bubble-hd {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.cs-bubble-bd { white-space: pre-wrap; font-size: 13px; line-height: 1.45; }
.cs-user { margin-left: auto; background: var(--accent-soft); }
.cs-agent { background: rgba(255,176,32,.1); }
.cs-assistant { background: rgba(255,255,255,.04); }
.cs-compose { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.cs-compose textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  font: inherit;
  padding: 8px 10px;
  resize: vertical;
}
.cs-compose-ft { display: flex; justify-content: flex-end; }
@media (max-width: 900px) {
  .cs-desk { grid-template-columns: 1fr; min-height: 0; }
  .cs-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 280px; }
}
.topbar-right .lang-switch { flex-wrap: nowrap; }
.pill, .user {
  font-size: 12px; padding: 6px 10px; border-radius: 999px;
  background: #f3f6f9; color: var(--muted); border: 1px solid var(--line); white-space: nowrap;
}
.user { background: var(--accent-soft); color: var(--accent); border-color: #c9dcff; font-weight: 600; }

.content { padding: var(--page-pad) var(--page-pad) 48px; min-width: 0; }
.page-tabs {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  padding: 8px 24px 0;
  overflow-x: auto;
  min-height: 0;
}
.page-tabs:empty { display: none; }
.page-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 240px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  border-radius: 10px 10px 0 0;
  padding: 7px 8px 7px 12px;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}
.page-tab.is-on {
  color: var(--ink);
  background: var(--panel);
}
.page-tab > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-tab i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  opacity: .7;
}
.page-tab i:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.content:has(.cab-layout) { padding-bottom: 16px; }

/* ============================ 3. 通用组件 ============================ */
.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: 1.6fr 1fr; }
.mb14 { margin-bottom: 14px; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: 18px; box-shadow: none;
}
.card-hd {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.card-hd h3 { margin: 0; font-size: 14px; }
.card-hd .sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.card-bd { padding: 16px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.kpi {
  padding: 18px 18px 16px 18px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: 18px; box-shadow: none;
  position: relative; overflow: hidden;
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px;
  background: var(--accent); border-radius: 2px; opacity: .85;
}
.kpi .label { font-size: 12px; color: var(--muted); }
.kpi .value {
  font-size: 28px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.kpi .value small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kpi .up { color: var(--ok); font-weight: 700; }
.kpi .down { color: var(--danger); font-weight: 700; }
.kpi.danger { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); border-color: var(--line); }
.kpi.warn { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); border-color: var(--line); }
.kpi.ok { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); border-color: var(--line); }
.kpi.info { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); border-color: var(--line); }
.kpi.ok::before { background: var(--ok); }
.kpi.warn::before { background: var(--warn); }
.kpi.danger::before { background: var(--danger); }

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 18px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: none;
}
.toolbar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 12px 16px;
  align-items: end;
}
.toolbar-more {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field[hidden] { display: none !important; }
.field label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.field label .hd-ico { width: 13px; height: 13px; margin-right: 0; }
.field .hint { font-size: 11px; color: #8a97a6; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 40px; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 12px; font: inherit; font-size: 14px; background: #0c0e12; color: var(--ink);
  box-sizing: border-box;
}
.field input[type="checkbox"],
.field input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  margin: 0;
  padding: 0 !important;
  border-radius: 4px;
  flex: none;
  accent-color: var(--accent);
}
.field label.remember {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 8px 0;
  font-weight: 500;
  color: var(--ink);
}
.field label.remember span {
  display: inline;
  width: auto;
  white-space: normal;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.field textarea { height: 82px; padding: 9px 10px; resize: vertical; }
.field.full { flex-basis: 100%; }
.toolbar .btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.toolbar-acts,
.toolbar-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.toolbar-more[hidden] { display: none !important; }
@media (max-width: 960px) {
  .toolbar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .toolbar-grid { grid-template-columns: 1fr; }
  .toolbar .btn-row { flex-direction: column; align-items: stretch; }
}

.btn {
  height: 36px; border-radius: 10px; border: 1px solid transparent;
  padding: 0 14px; font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  position: relative;
  transition: transform .14s ease, filter .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-warn { background: #FF7A00; color: #0F3443; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ok { background: #00D9C0; color: #0F3443; }
.btn-ghost { background: transparent; color: var(--accent); border: 0; height: auto; padding: 2px 4px; font-size: 12px; }
.btn-ghost.danger { color: var(--danger); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:active:not(:disabled),
.btn.is-press:not(:disabled) { transform: translateY(1px) scale(0.97); }
.btn-primary:active:not(:disabled),
.btn-primary.is-press:not(:disabled) { filter: brightness(0.92); }
.btn.is-busy { pointer-events: none; }
.btn.is-busy::after {
  content: "";
  width: 12px; height: 12px; margin-left: 6px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin .55s linear infinite;
  flex-shrink: 0;
}
.nav-item, .nav-parent, .tab, .topbar-icon, .cab-bay,
.subnav button, .ad-tabs button, .skin-switch button, .lang-switch button {
  transition: transform .14s ease, background .14s ease, color .14s ease, filter .14s ease;
}
.nav-item:active, .nav-item.is-press,
.nav-parent:active, .nav-parent.is-press,
.tab:active, .tab.is-press,
.topbar-icon:active, .topbar-icon.is-press,
.subnav button:active, .subnav button.is-press,
.ad-tabs button:active, .ad-tabs button.is-press,
.skin-switch button:active, .skin-switch button.is-press,
.lang-switch button:active, .lang-switch button.is-press { transform: scale(0.97); }
.cab-bay:active, .cab-bay.is-press { transform: translateZ(8px) scale(0.96); filter: brightness(1.06); }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.busy-mask {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 14, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .16s ease;
}
.busy-mask.is-on { opacity: 1; pointer-events: auto; }
.busy-box {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 160px;
  padding: 18px 22px; border-radius: 16px;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 15px; font-weight: 650;
}
.busy-spin {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: btn-spin .7s linear infinite;
  flex-shrink: 0;
}

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: rgba(255,255,255,0.03); color: var(--muted); font-size: 12px; font-weight: 700; position: sticky; top: 0; z-index: 1; }
tbody tr:nth-child(even) td { background: rgba(255,255,255,0.015); }
tbody tr:hover td { background: rgba(255,255,255,0.04); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); }
.strong { font-weight: 700; }
.nowrap-actions { display: flex; gap: 6px; }
.cell-stack { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cell-k { font-weight: 700; line-height: 1.3; }
.cell-s { font-size: 12px; color: var(--muted); line-height: 1.4; }
.cell-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cab-low { color: var(--danger); font-weight: 700; }

.cab-list-page .toolbar {
  margin-bottom: 12px;
}
.cab-list-page .legend {
  margin: 0 4px 12px;
}
.cab-list .card { min-width: 0; }
.cab-list .table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.cab-list table {
  table-layout: auto;
  width: 100%;
  min-width: 1120px;
}
.cab-list-activate table { min-width: 960px; }
.cab-list th, .cab-list td {
  white-space: normal;
  vertical-align: middle;
  text-align: left;
  padding: 12px 10px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.cab-list thead th { white-space: nowrap; }
.cab-list .cell-stack.cell-2 {
  min-height: 0;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 6px;
}
.cab-list .cab-status { width: 100%; }
.cab-list .cab-status-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.cab-list .cab-status-top .tag { flex: 0 0 auto; }
.cab-list .cab-status-stock {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: left;
  line-height: 1.2;
}
.cab-list .cell-ellip {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  max-width: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.cab-list .cell-meta {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.cab-list .cell-meta .tag { flex: 0 0 auto; }
.cab-list-fleet th:nth-child(1), .cab-list-fleet td:nth-child(1) { min-width: 148px; width: 13%; }
.cab-list-fleet th:nth-child(2), .cab-list-fleet td:nth-child(2) { min-width: 118px; width: 11%; }
.cab-list-fleet th:nth-child(3), .cab-list-fleet td:nth-child(3) { min-width: 132px; width: 13%; }
.cab-list-fleet th:nth-child(4), .cab-list-fleet td:nth-child(4) { min-width: 96px; width: 9%; }
.cab-list-fleet th:nth-child(5), .cab-list-fleet td:nth-child(5) { min-width: 200px; width: 20%; }
.cab-list-fleet th:nth-child(6), .cab-list-fleet td:nth-child(6) { min-width: 128px; width: 12%; }
.cab-list-fleet th:nth-child(7), .cab-list-fleet td:nth-child(7) { min-width: 160px; width: 13%; }
.cab-list-fleet th:nth-child(8), .cab-list-fleet td:nth-child(8) { min-width: 276px; width: 18%; }
.cab-list-activate th:nth-child(1), .cab-list-activate td:nth-child(1) { min-width: 148px; width: 18%; }
.cab-list-activate th:nth-child(2), .cab-list-activate td:nth-child(2) { min-width: 120px; width: 14%; }
.cab-list-activate th:nth-child(3), .cab-list-activate td:nth-child(3) { min-width: 220px; width: 26%; }
.cab-list-activate th:nth-child(4), .cab-list-activate td:nth-child(4) { min-width: 140px; width: 18%; }
.cab-list-activate th:nth-child(5), .cab-list-activate td:nth-child(5) { min-width: 120px; width: 14%; }
.cab-list-activate th:nth-child(6), .cab-list-activate td:nth-child(6) { min-width: 72px; width: 10%; }
.cab-list .nowrap-actions {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
}
.cab-list .nowrap-actions .btn {
  width: auto;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.cab-list .nowrap-actions .btn:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.tag {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  border: 1px solid transparent;
}
.th-ico, .row-ico, .tag-ico {
  display: inline-grid; place-items: center; flex-shrink: 0; color: #00D9C0;
}
.th-ico { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; }
.row-ico { width: 14px; height: 14px; margin: 0 6px 0 0; vertical-align: -2px; }
.tag-ico { width: 12px; height: 12px; color: inherit; }
.th-ico svg, .row-ico svg, .tag-ico svg {
  width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.tag-blue { background: rgba(0, 180, 216, 0.14); color: #00B4D8; border-color: rgba(0, 180, 216, 0.32); }
.tag-green { background: var(--ok-soft); color: var(--ok); border-color: rgba(0, 217, 192, 0.32); }
.tag-orange { background: var(--warn-soft); color: var(--warn); border-color: rgba(255, 122, 0, 0.32); }
.tag-red { background: var(--danger-soft); color: var(--danger); border-color: rgba(255, 107, 122, 0.32); }
.tag-gray { background: rgba(255,255,255,0.08); color: #c5cad3; border-color: rgba(255,255,255,0.12); }
.tag-violet { background: var(--violet-soft); color: var(--violet); border-color: rgba(0, 180, 216, 0.35); }
.tag-teal { background: var(--teal-soft); color: var(--teal); border-color: rgba(0, 217, 192, 0.32); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow: auto; }
.tab {
  border: 0; background: transparent; padding: 10px 14px; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab.active { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }

.dict-group-hd {
  margin: 18px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dict-group:first-of-type .dict-group-hd { margin-top: 4px; }
.dict-search-row { margin: 0 0 12px; }
.dict-search {
  width: min(420px, 100%);
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  background: #fff;
}

.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.subnav button {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 12px; font: inherit; font-size: 12px; cursor: pointer; color: var(--muted);
}
.subnav button .hd-ico { width: 13px; height: 13px; margin-right: 0; color: inherit; }
.subnav button.active { background: #0F3443; color: #fff; border-color: #0F3443; font-weight: 600; }

.ad-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ad-cal-day { border: 1px solid var(--line, #dbe4ee); border-radius: 8px; padding: 8px; min-height: 88px; font-size: 12px; }
.ad-tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted);
}
.ad-tabs button.active { background: #0b2438; color: #fff; border-color: #0b2438; font-weight: 600; }
.ad-check { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; font-size: 13px; line-height: 1.4; }

.pager {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex-wrap: wrap;
}
.pager > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.pager > span:first-child .hd-ico { width: 13px; height: 13px; margin-right: 0; }
.pager select { height: 28px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 12px; }
.pager .pages { display: flex; align-items: center; gap: 8px; }

.section-note {
  margin-bottom: 14px; padding: 10px 12px; border-left: 3px solid var(--accent);
  background: #f4f8ff; color: #35506e; font-size: 12px; border-radius: 0 8px 8px 0; line-height: 1.6;
}
.section-note:not(.is-status) { display: none; }
.section-note.is-status { display: flex; align-items: flex-start; gap: 8px; }
.section-note .hd-ico { flex: none; width: 15px; height: 15px; margin: 2px 0 0; }
.capacity-banner { padding: 12px 18px 0; }
.capacity-banner.hidden { display: none; }
.capacity-banner .callout { margin: 0; }
.callout {
  display: flex; align-items: flex-start; gap: 8px;
  border-radius: 10px; padding: 11px 13px; font-size: 12px; line-height: 1.6;
  border: 1px solid var(--line); background: #f7f9fb; color: var(--muted);
}
.callout > .hd-ico { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.callout-body { min-width: 0; flex: 1; }
.callout.warn { background: var(--warn-soft); border-color: #f0d5a8; color: #7a4d00; }
.callout.danger { background: var(--danger-soft); border-color: #f3c0c0; color: #8f1d1d; }
.callout.info { background: var(--accent-soft); border-color: #c9dcff; color: #184ea8; }
.callout.ok { background: var(--ok-soft); border-color: #b7e4cb; color: #0b5b39; }
.callout.clickable { cursor: pointer; }
.callout.clickable:hover { filter: brightness(.98); }

.kv { display: grid; grid-template-columns: 128px 1fr; gap: 8px 12px; font-size: 13px; }
.kv .k { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.kv .v { font-weight: 600; word-break: break-all; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend span .hd-ico { width: 13px; height: 13px; margin-right: 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.two-col-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-col-form .span2 { grid-column: 1 / -1; }
.req::after { content: " *"; color: #e25555; font-weight: 700; }

.switch {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted);
}
.switch[aria-disabled="true"] { pointer-events: none; cursor: default; }
.switch i {
  width: 34px; height: 20px; border-radius: 999px; background: #cfd8e3; position: relative; transition: background .15s;
}
.switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .15s;
}
.switch.on i { background: var(--ok); }
.switch.on i::after { transform: translateX(14px); }

.empty { padding: 44px 24px; text-align: center; color: var(--muted); }
.empty h3 { margin: 0 0 8px; color: var(--ink); }

/* 字段字典表 */
.dict table th:first-child, .dict table td:first-child { width: 150px; }
.dict .type { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.dict td { white-space: normal; }

/* ============================ 4. 业务组件 ============================ */
/* 4.1 仓位视图 */
.slot-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.slot {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff;
  font-size: 12px; cursor: pointer; transition: box-shadow .15s, transform .15s;
}
.slot:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.slot .slot-no { font-weight: 800; font-family: var(--mono); font-size: 13px; }
.slot .slot-bank { color: var(--muted); font-size: 11px; margin: 4px 0 6px; font-family: var(--mono); }
.slot.free { background: #f7f9fb; border-style: dashed; }
.slot.rentable { border-color: #00D9C0; background: #e7faf6; }
.slot.charging { border-color: #00B4D8; background: #e7f6fb; }
.slot.locked { border-color: #FF7A00; background: #fff4e8; }
.slot.fault { border-color: #f3c0c0; background: #fff6f6; }

/* 电量条 */
.batt { height: 8px; border-radius: 999px; background: #e8eef4; overflow: hidden; }
.batt > i { display: block; height: 100%; background: var(--ok); }
.batt.mid > i { background: #FF7A00; }
.batt.low > i { background: var(--danger); }
.batt-txt { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.batt-inline { display: inline-flex; align-items: center; gap: 6px; min-width: 96px; }
.batt-inline .batt { width: 52px; }

/* 4.2 柱状图（纯 CSS） */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 8px 4px 0; }
.bars .bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.bars .bar {
  width: 100%; max-width: 44px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #00B4D8 0%, #0F3443 100%); position: relative;
}
.bars .bar.hi { background: linear-gradient(180deg, #00D9C0 0%, #0F3443 100%); }
.bars .bar-val { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars .bar-lbl { font-size: 11px; color: var(--muted); }

.month-bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding: 8px 4px 0; }
.month-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.month-pair { display: flex; align-items: flex-end; gap: 3px; height: 148px; }
.month-in, .month-out { width: 9px; min-height: 4px; border-radius: 4px 4px 1px 1px; }
.month-in { background: linear-gradient(180deg, #00D9C0 0%, #0F3443 100%); }
.month-out { background: linear-gradient(180deg, #ff9aa6 0%, #c45b68 100%); }
.month-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.month-legend .in::before, .month-legend .out::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px;
}
.month-legend .in::before { background: #00D9C0; }
.month-legend .out::before { background: #c45b68; }

/* 4.3 折线 / 面积图（内联 SVG） */
.chart-svg { width: 100%; height: 180px; display: block; }
.chart-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 4px 2px 0; }

/* 4.4 环形占比（conic-gradient） */
.donut-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 132px; height: 132px; border-radius: 50%; position: relative; flex-shrink: 0; }
.donut::after {
  content: ""; position: absolute; inset: 22px; border-radius: 50%; background: #fff;
}
.donut-legend { font-size: 12px; display: grid; gap: 8px; }
.donut-legend .row { display: flex; align-items: center; gap: 8px; }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend .pct { font-weight: 700; font-variant-numeric: tabular-nums; }

/* 4.5 排行榜 */
.rank-list { display: grid; gap: 8px; }
.rank-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.rank-no {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: #eef2f6; color: var(--muted); font-size: 12px; font-weight: 800;
}
.rank-item:nth-child(1) .rank-no { background: #fff0d6; color: #a06a00; }
.rank-item:nth-child(2) .rank-no { background: #e9eef5; color: #4a5b6e; }
.rank-item:nth-child(3) .rank-no { background: #f7e6da; color: #90542a; }
.rank-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-sub { font-size: 11px; color: var(--muted); font-weight: 400; }
.rank-bar { height: 6px; border-radius: 999px; background: #e8eef4; margin-top: 5px; overflow: hidden; }
.rank-bar > i { display: block; height: 100%; background: var(--accent); }
.rank-val { font-weight: 700; font-variant-numeric: tabular-nums; }

/* 4.6 进度条 */
.progress { height: 8px; border-radius: 999px; background: #e8eef4; overflow: hidden; min-width: 90px; }
.progress > i { display: block; height: 100%; background: var(--accent); }
.progress.ok > i { background: var(--ok); }
.progress.warn > i { background: #d69b00; }

/* 4.7 分账分配可视化 */
.split-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.split-bar > span {
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap;
}
.split-parties { display: grid; gap: 8px; margin-top: 12px; font-size: 12px; }
.split-parties .row { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 10px; align-items: center; }
.split-parties .dot { width: 10px; height: 10px; border-radius: 3px; }

/* 4.8 时间轴 */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.tl-item { display: grid; grid-template-columns: 14px 1fr; gap: 12px; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 5px;
  background: #c5d0db; box-shadow: 0 0 0 3px #eef2f6;
}
.tl-dot.done { background: var(--ok); }
.tl-dot.doing { background: var(--accent); }
.tl-dot.fail { background: var(--danger); }
.tl-title { display: flex; justify-content: flex-start; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; flex-wrap: wrap; }
.tl-title .tl-time { margin-left: auto; }
.tl-title .hd-ico, .step b .hd-ico, .flow-cond .hd-ico, .flow-yes > b .hd-ico, .flow-no-br > b .hd-ico {
  width: 13px; height: 13px; margin-right: 0;
}
.tl-time { color: var(--muted); font-weight: 400; font-family: var(--mono); font-size: 12px; }
.tl-desc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* 4.9 步骤条 */
.steps {
  display: flex; margin-bottom: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.step {
  flex: 1; padding: 12px 14px; font-size: 12px; color: var(--muted);
  border-right: 1px solid var(--line); display: flex; gap: 8px; align-items: center;
}
.step:last-child { border-right: 0; }
.step b, .flow-yes > b, .flow-no-br > b, .flow-cond { display: inline-flex; align-items: center; gap: 4px; }
.step .n { width: 22px; height: 22px; border-radius: 50%; background: #e8eef4; display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.step.active { background: #f0f6ff; color: var(--accent); font-weight: 700; }
.step.active .n { background: var(--accent); color: #fff; }
.step.done { color: var(--ok); }
.step.done .n { background: var(--ok); color: #fff; }

/* 4.10 权限矩阵 */
.matrix-wrap { overflow: auto; }
.perm-table th, .perm-table td { text-align: center; }
.perm-table th:first-child, .perm-table td:first-child { text-align: left; position: sticky; left: 0; background: #fbfcfd; z-index: 2; }
.perm-table thead th:first-child { z-index: 3; }
.perm-table td label { display: inline-flex; gap: 3px; align-items: center; font-size: 11px; color: var(--muted); }
.perm-chk { display: flex; gap: 8px; justify-content: center; }

/* 4.11 资质附件缩略 */
.file-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 12px; background: #f7f9fb; cursor: pointer;
}
.file-chip:hover { border-color: var(--accent); color: var(--accent); }
.upload {
  border: 1.5px dashed #9eb0c3; border-radius: 12px; padding: 22px;
  text-align: center; background: #f8fbff; font-size: 12px; color: var(--muted);
}

/* 4.12 Google 地图 */
.map-ph {
  height: 200px; border-radius: 10px; border: 1px dashed #9eb0c3;
  background:
    linear-gradient(90deg, rgba(31,111,235,.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgba(31,111,235,.06) 1px, transparent 1px) 0 0 / 32px 32px,
    #f6f9fd;
  display: grid; place-items: center; color: var(--muted); font-size: 12px;
}
.gmap-box { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f6f9fd; }
.gmap-box iframe { display: block; width: 100%; height: 220px; border: 0; }
.gmap-embed-links { display: flex; border-top: 1px solid var(--line); }
.gmap-embed-links a {
  flex: 1; text-align: center; padding: 10px 8px;
  font-size: 12px; font-weight: 650; color: var(--accent); text-decoration: none;
}
.gmap-embed-links a + a { border-left: 1px solid var(--line); }

/* ============================ 5. 弹窗与抽屉 ============================ */
.drawer-mask { position: fixed; inset: 0; background: rgba(6, 8, 12, .55); z-index: 40; }
.modal-mask {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(4, 6, 10, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.drawer {
  position: fixed; top: 0; right: 0; width: min(720px, 92vw); height: 100%;
  background: #fff; z-index: 50; box-shadow: -12px 0 40px rgba(0,0,0,.15);
  overflow: auto; padding: 20px 22px 32px;
}
.drawer.drawer-log { width: min(920px, 100%); }
.evt-log td { white-space: normal; vertical-align: top; }
.evt-log td:nth-child(3) { min-width: 22em; }
.evt-explain { max-width: 42em; line-height: 1.45; }
.evt-lead { margin-bottom: 8px; }
.evt-row {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 2px 10px;
  margin: 4px 0;
  align-items: start;
}
.evt-k { color: var(--muted); font-size: 12px; padding-top: 1px; }
.evt-v { word-break: break-word; }
.evt-note { color: var(--muted); font-size: 12px; }
.evt-raw { margin-top: 8px; font-size: 11px; word-break: break-all; }
.log-types { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; }
.log-types-k { color: var(--muted); font-size: 12px; margin-right: 2px; }
.log-types button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.log-types button.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.log-sec { margin: 0 0 22px; }
.log-sec-hd { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.log-sec-hd h3 { margin: 0; font-size: 15px; }
.log-sec-hd span { color: var(--muted); font-size: 12px; }
.log-sec .empty { padding: 18px 8px; }
.modal {
  width: min(880px, 100%);
  background: #252830;
  color: var(--ink);
  border-radius: 18px;
  padding: 22px 24px 20px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 4px 12px rgba(0,0,0,.28),
    0 32px 90px rgba(0,0,0,.7);
  max-height: calc(100vh - 48px); overflow: auto;
  position: relative;
  z-index: 41;
  animation: modalPop .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.modal:has(.modal-sheet) {
  width: min(440px, 100%);
  padding: 18px 18px 16px;
}
.modal-sheet .kv {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  overflow: hidden;
}
.modal-sheet .kv .k,
.modal-sheet .kv .v {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  min-height: 42px;
}
.modal-sheet .kv .k { font-weight: 500; font-size: 12px; }
.modal-sheet .kv .v { font-weight: 650; }
.modal-sheet .kv .k:nth-last-child(2),
.modal-sheet .kv .v:last-child { border-bottom: 0; }
.modal:has(.modal-sheet) .modal-ft { flex-wrap: wrap; }
.modal:has(.remote-sheet) {
  width: min(560px, 100%);
  padding: 20px 20px 16px;
}
.remote-sheet .modal-hd { margin-bottom: 14px; }
.remote-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 12px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
}
.remote-tab {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 4px;
  border-radius: 9px;
  cursor: pointer;
}
.remote-tab:hover { color: var(--ink); }
.remote-tab.is-on {
  background: var(--accent);
  color: var(--accent-ink);
}
.remote-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.remote-grid.is-on { display: grid; }
.remote-act {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .22);
  color: var(--ink);
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
  min-height: 62px;
  font: inherit;
}
.remote-act:hover { border-color: rgba(255, 255, 255, .16); }
.remote-act b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.remote-act span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.35;
}
.remote-act.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.remote-act.is-warn.is-on {
  border-color: var(--warn);
  background: var(--warn-soft);
  box-shadow: inset 0 0 0 1px var(--warn);
}
.remote-act.is-danger.is-on {
  border-color: var(--danger);
  background: var(--danger-soft);
  box-shadow: inset 0 0 0 1px var(--danger);
}
.remote-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.remote-params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
}
.remote-params .span2 { grid-column: 1 / -1; }
.remote-sheet .modal-ft { margin-top: 16px; }
@media (max-width: 560px) {
  .remote-grid, .remote-params { grid-template-columns: 1fr; }
  .remote-tabs { flex-wrap: wrap; }
  .remote-tab { flex: 1 1 40%; }
}
.modal:has(.bank-detail) { width: min(720px, 100%); }
.bank-detail { display: flex; flex-direction: column; gap: 18px; }
.bank-detail .modal-hd { margin-bottom: 0; }
.bank-detail .modal-ft { margin-top: 0; }
.bank-detail .grid { margin: 0; gap: 10px; }
.bank-detail .kpi { padding: 12px 14px 12px 16px; border-radius: 14px; }
.bank-detail .kpi::before { top: 12px; bottom: 12px; }
.bank-detail .kpi .value { font-size: 22px; margin-top: 2px; }
.bank-detail .kpi .sub { font-size: 11px; margin-top: 4px; line-height: 1.4; }
.bank-detail .kv {
  grid-template-columns: 76px 1fr 76px 1fr;
  gap: 12px 20px;
  padding: 16px 18px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
}
.bank-detail .kv .k { font-size: 12px; }
.bank-detail .kv .v { font-weight: 600; line-height: 1.45; }
.bank-detail .card { margin: 0; }
.bank-detail .card-hd { padding: 12px 16px; }
.bank-detail .card-bd { padding: 0; }
.bank-detail .card-bd .table-wrap { overflow: visible; }
.bank-detail table th,
.bank-detail table td {
  white-space: normal;
  vertical-align: top;
  padding: 10px 14px;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .bank-detail .kv { grid-template-columns: 76px 1fr; }
}
.modal-hd, .drawer-hd {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px;
}
.modal-hd h3, .drawer-hd h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.modal-hd .sub, .drawer-hd .sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.modal-ft, .drawer-ft {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08);
}
.x-close {
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08);
  width: 32px; height: 32px; border-radius: 9px;
  cursor: pointer; font-size: 16px; color: #e4e6ea; flex-shrink: 0;
}
.x-close:hover { background: rgba(255,255,255,.14); color: #fff; }
.activate-pop-lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
}
.hidden { display: none !important; }

/* ============================ 6. 登录与语言切换 ============================ */
.login-page {
  --pair-w: clamp(300px, 22vw, 440px);
  --pair-h: clamp(440px, 54vh, 600px);
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  color: #e7f6f4;
  color-scheme: dark;
  background:
    linear-gradient(180deg, rgba(7, 16, 24, .28) 0%, rgba(7, 16, 24, .08) 32%, rgba(7, 16, 24, .18) 100%),
    url("/ads/all-night.jpg") center bottom / cover no-repeat;
}
.login-fx {
  display: none;
}
.login-fx::after {
  content: "";
  position: absolute;
  left: -10%;
  right: 20%;
  bottom: -8%;
  height: 46%;
  background:
    linear-gradient(rgba(0, 217, 192, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 192, .16) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(420px) rotateX(68deg);
  transform-origin: center top;
  mask-image: linear-gradient(#000, transparent 78%);
  opacity: .45;
}
.login-orb { display: none; }
.login-orb-a {
  width: 520px; height: 520px; left: -140px; top: -120px;
  background: rgba(0, 217, 192, .22);
}
.login-orb-b {
  width: 380px; height: 380px; right: -60px; bottom: 6%;
  background: rgba(0, 180, 216, .16);
}
.login-copy {
  flex: 0 1 640px;
  min-width: 280px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-mast {
  position: static;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}
.login-mast .brand-mark { width: 64px; height: 64px; }
.login-mast .brand-title {
  font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.login-mast .brand-sub { font-size: 14px; color: #d7f4f0; margin-top: 2px; letter-spacing: .08em; }
.login-pitch { position: static; max-width: none; }
.login-pitch .login-kicker { letter-spacing: .22em; font-size: 12px; margin-bottom: 14px; }
.login-pitch h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 3.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -.05em;
  font-weight: 800;
  white-space: nowrap;
  color: #f7fffe;
  text-shadow: 0 8px 32px rgba(0, 0, 0, .45);
}
.login-pitch h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin-top: 18px;
  border-radius: 99px;
  background: #00D9C0;
  box-shadow: 0 0 18px #00D9C0;
}
.login-pitch p {
  margin: 0 0 14px;
  max-width: none;
  color: #e7f6f4;
  font-size: 15px;
  line-height: 1.65;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}
.login-pitch p span { display: block; }
.login-points {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.login-points li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 217, 192, .45);
  background: rgba(8, 24, 32, .42);
  color: #f4fffd;
  font-size: 13px;
  backdrop-filter: blur(8px);
}
.login-card-title { font-size: 20px; font-weight: 750; color: #fff; letter-spacing: -.02em; }
.login-top {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(36px, 4vw, 72px) 0;
}
.login-top .chrome-switch { margin-left: auto; }
.login-page .lang-switch,
.login-page .skin-switch {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(8, 24, 32, .45);
}
.login-page .lang-switch button,
.login-page .skin-switch button { color: #e7f6f4; }
.login-mark {
  position: absolute;
  z-index: 1;
  left: clamp(36px, 4vw, 72px);
  top: clamp(64px, 8vh, 110px);
  font-size: clamp(78px, calc((100vw - (var(--pair-w) * 2) - 200px) / 5), 280px);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 217, 192, .22);
  pointer-events: none;
  user-select: none;
}
.login-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 22px;
}
.login-lines span {
  font-size: clamp(28px, 2.2vw, 40px);
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.25;
  color: rgba(244, 255, 253, .78);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}
.login-lines span:first-child { color: #00D9C0; }
.login-shell {
  position: relative; z-index: 2;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) var(--pair-w, 420px) var(--pair-w, 420px);
  align-items: center;
  column-gap: clamp(28px, 3vw, 56px);
  width: 100%;
  padding: 12px clamp(72px, 6vw, 120px) 28px clamp(40px, 4vw, 72px);
  margin: 0;
  box-sizing: border-box;
}
.login-pair {
  display: contents;
}
.login-pair .login-card {
  width: var(--pair-w);
  height: var(--pair-h);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}
.login-pair .login-card-top,
.login-pair .login-card .field,
.login-pair .login-row { margin-bottom: 0; }
.login-stage {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: var(--pair-w);
  height: var(--pair-h);
  min-width: 0;
  position: relative;
  z-index: 1;
}
.login-pair::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -8%;
  right: 18%;
  top: 6%;
  bottom: 0;
  background: radial-gradient(closest-side, rgba(0, 217, 192, .34), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}
.login-card { width: min(100%, var(--pair-w, 420px)); flex: none; position: relative; z-index: 1; }
.login-input { position: relative; display: block; }
.login-input svg, .remember svg, .login-submit svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.login-input svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #7eb4be; pointer-events: none;
}
.login-card .login-input input { padding-left: 38px; }
.remember { gap: 6px; }
.remember svg { width: 14px; height: 14px; color: #9ec4cc; }
.login-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.login-card .lang-switch button,
.login-card .skin-switch button { display: inline-flex; align-items: center; gap: 4px; }
.login-card .lang-switch svg,
.login-card .skin-switch svg {
  width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.login-hero {
  color: #f4fbfa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  max-width: 520px;
}
.login-kicker {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .32em; color: #00D9C0;
  margin-bottom: 10px;
  flex-shrink: 0;
  text-shadow: 0 0 18px rgba(0, 217, 192, .45);
}
.login-hero h1 {
  margin: 0 0 10px; font-size: clamp(44px, 5.4vw, 72px);
  line-height: .92; letter-spacing: -.06em; font-weight: 800;
  flex-shrink: 0;
  color: #f7fffe;
}
.login-hero h1 span {
  color: #00D9C0;
  text-shadow: 0 0 24px rgba(0, 217, 192, .55);
}
.login-hero p { margin: 0 0 16px; color: #9ec4cc; font-size: 15px; line-height: 1.7; max-width: 380px; flex-shrink: 0; }

.hero-stage {
  width: min(100%, 440px);
  height: 360px;
  position: relative;
  margin: 2px 0 22px;
  border-radius: 22px;
  overflow: hidden;
  flex: 0 0 auto;
  background:
    radial-gradient(70% 48% at 50% 18%, rgba(0, 217, 192, .2), transparent 68%),
    linear-gradient(180deg, rgba(0, 217, 192, .08), transparent 28%),
    linear-gradient(180deg, #0e3c4c 0%, #0F3443 46%, #071820 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 217, 192, .35),
    0 0 0 1px rgba(0, 180, 216, .12),
    0 24px 60px rgba(0, 0, 0, .45);
}
.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.hero-stage::before {
  inset: 10px;
  background:
    linear-gradient(#00D9C0, #00D9C0) left top / 18px 2px no-repeat,
    linear-gradient(#00D9C0, #00D9C0) left top / 2px 18px no-repeat,
    linear-gradient(#00D9C0, #00D9C0) right top / 18px 2px no-repeat,
    linear-gradient(#00D9C0, #00D9C0) right top / 2px 18px no-repeat,
    linear-gradient(#00B4D8, #00B4D8) left bottom / 18px 2px no-repeat,
    linear-gradient(#00B4D8, #00B4D8) left bottom / 2px 18px no-repeat,
    linear-gradient(#FF7A00, #FF7A00) right bottom / 18px 2px no-repeat,
    linear-gradient(#FF7A00, #FF7A00) right bottom / 2px 18px no-repeat;
  opacity: .9;
}
.hero-stage::after {
  left: 8%;
  right: 8%;
  height: 2px;
  top: 14%;
  background: linear-gradient(90deg, transparent, #00D9C0, transparent);
  box-shadow: 0 0 16px #00D9C0;
  animation: login-scan 4.2s ease-in-out infinite;
}
.stage-spot {
  position: absolute;
  left: 26%;
  right: 26%;
  top: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(0, 217, 192, .32), transparent 80%);
  filter: blur(12px);
  pointer-events: none;
}
.stage-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78px;
  background:
    linear-gradient(180deg, rgba(0, 217, 192, .16), transparent 42%),
    repeating-linear-gradient(90deg, rgba(0, 217, 192, .2) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, #123844, #07141c);
}
.stage-floor::after {
  content: "";
  position: absolute;
  left: 18%;
  width: 46%;
  top: 6px;
  height: 22px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .5), transparent 72%);
  filter: blur(3px);
}
.kiosk {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 54px;
  width: 176px;
  height: auto;
  padding: 10px 10px 12px;
  transform: translateX(-56%) perspective(900px) rotateY(-16deg);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 14%),
    linear-gradient(180deg, #5a5f68 0%, #3a3e46 16%, #23262c 100%);
  border-radius: 18px 18px 8px 8px;
  box-shadow:
    14px 18px 26px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .28);
}
.kiosk::before {
  content: "";
  position: absolute;
  top: 14px;
  right: -10px;
  bottom: 10px;
  width: 10px;
  background: linear-gradient(180deg, #3c4048, #121418);
  transform: skewY(-16deg);
  transform-origin: left center;
  border-radius: 0 5px 4px 0;
}
.kiosk-cap {
  display: flex;
  align-items: center;
  height: 22px;
  margin: 0 2px 6px;
}
.kiosk-cap img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}
.kiosk-screen {
  position: relative;
  height: 92px;
  border-radius: 7px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 78%, rgba(0, 180, 216, .45), transparent 46%),
    linear-gradient(165deg, #14505c, #0F3443 62%);
  box-shadow: inset 0 0 0 2px #071820, 0 0 18px rgba(0, 217, 192, .28);
}
.kiosk-copy {
  position: absolute;
  left: 10px;
  top: 12px;
  z-index: 1;
  color: #00D9C0;
}
.kiosk-copy b {
  display: block;
  font-size: 22px;
  line-height: .9;
  letter-spacing: -.04em;
}
.kiosk-copy span {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: .18em;
  color: #00B4D8;
}
.kiosk-qr {
  position: absolute;
  right: 8px;
  top: 10px;
  z-index: 1;
  width: 28px;
  height: 28px;
  background:
    linear-gradient(#00D9C0, #00D9C0) 0 0 / 8px 8px no-repeat,
    linear-gradient(#00D9C0, #00D9C0) 20px 0 / 8px 8px no-repeat,
    linear-gradient(#00D9C0, #00D9C0) 0 20px / 8px 8px no-repeat,
    linear-gradient(#FF7A00, #FF7A00) 10px 10px / 8px 8px no-repeat,
    #0F3443;
  box-shadow: inset 0 0 0 1px rgba(0, 217, 192, .4);
}
.kiosk-glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, rgba(255, 255, 255, .22) 0 12%, transparent 28%);
  pointer-events: none;
}
.kiosk-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 7px;
  margin-top: 8px;
  padding: 7px 6px;
  background: #101216;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 8px 12px rgba(0, 0, 0, .35);
}
.kiosk-slots i {
  position: relative;
  display: block;
  height: 16px;
  padding: 0;
  border-radius: 3px;
  background: #07080a;
  box-shadow: inset 0 3px 4px rgba(0, 0, 0, .75);
  overflow: hidden;
}
.kiosk-slots i:not(.empty)::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8b919b, #3a3e46 55%, #2a2e34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.kiosk-slots i:not(.empty)::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00D9C0;
  box-shadow: 0 0 6px #00D9C0;
}
.kiosk-slots .chg::after {
  background: #FF7A00;
  animation: charge-pulse 1.6s ease-in-out infinite;
}

.login-stats {
  display: flex; gap: 0; margin-top: 0;
  border-top: 1px solid rgba(0, 217, 192, .28); padding-top: 16px; max-width: 380px;
  position: relative; z-index: 2;
  flex-shrink: 0;
  background: transparent;
}
.login-stats > div { flex: 1; }
.login-stats b { display: block; font-size: 18px; font-weight: 750; letter-spacing: -.03em; color: #f4fbfa; }
.login-stats span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7eb4be;
}

.login-card {
  width: min(420px, 100%);
  background: rgba(8, 24, 32, 0.82);
  border: 1px solid rgba(0, 217, 192, .28);
  border-radius: 28px;
  padding: 32px 30px 26px;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(0, 217, 192, .25);
  backdrop-filter: blur(24px);
}
.login-card .brand-title { color: #fff; }
.login-card .brand-sub { color: #8ec9d2; }
.login-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.login-brand { display: flex; gap: 12px; align-items: center; }
.login-card .field { margin-bottom: 14px; }
.login-card .field label { color: #9ec4cc; }
.login-card .field input {
  height: 44px; border-radius: 12px;
  background: rgba(4, 16, 22, .72);
  color: #f4fbfa;
  border-color: rgba(0, 217, 192, .22);
}
.login-card .field input:focus { border-color: #00D9C0; box-shadow: 0 0 0 3px rgba(0, 217, 192, .16); }
.login-captcha { display: flex; align-items: center; gap: 10px; }
.login-captcha input { flex: 1; min-width: 0; }
.login-captcha-pic {
  width: 148px; height: 48px; padding: 0; border: 0; border-radius: 12px;
  overflow: hidden; cursor: pointer; background: #0e1014; flex-shrink: 0;
}
.login-captcha-pic img { width: 100%; height: 100%; display: block; object-fit: cover; }
.login-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 2px 0 18px;
}
.login-submit {
  width: 100%; height: 48px; font-size: 15px; font-weight: 700; border-radius: 14px;
  background: #00D9C0;
  color: #0F3443;
  box-shadow: 0 12px 32px rgba(0, 217, 192, .28);
}
.login-hint { font-size: 12px; color: #7eb4be; line-height: 1.6; margin: 16px 0 0; text-align: center; }
.remember { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #9ec4cc; margin: 0; }
.login-error {
  background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(255,107,122,.3);
  border-radius: 10px; padding: 8px 10px; font-size: 12px; margin-bottom: 12px;
}
.login-card .lang-switch button { padding: 5px 9px; font-size: 11px; }
@media (max-width: 1280px) {
  .login-page { --pair-w: min(340px, 42vw); --pair-h: auto; }
  .login-mark { font-size: clamp(64px, 14vw, 120px); }
  .login-shell { grid-template-columns: minmax(180px, 1fr) minmax(240px, var(--pair-w)) minmax(260px, var(--pair-w)); column-gap: 16px; padding: 16px 20px 24px; }
  .login-pitch h1 { font-size: 36px; }
  .login-pair .login-card,
  .login-stage { width: 100%; height: auto; min-height: 0; }
}
@media (max-width: 1080px) {
  .login-shell { display: flex; flex-wrap: wrap; justify-content: center; padding: 28px 24px 32px; }
  .login-copy { flex: 1 1 100%; max-width: 720px; min-width: 0; }
  .login-pair { display: grid; grid-template-columns: minmax(240px, 320px) minmax(280px, 380px); column-gap: 20px; }
}
@media (max-width: 860px) {
  .login-shell { flex-direction: column; align-items: center; gap: 28px; min-height: 0; padding: 20px 18px 32px; }
  .login-copy { max-width: none; }
}

.lang-switch,
.skin-switch {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}
.lang-switch { flex-wrap: wrap; }
.lang-switch button,
.skin-switch button {
  border: 0; background: transparent; border-radius: 999px;
  padding: 5px 11px; font: inherit; font-size: 12px; cursor: pointer; color: var(--muted);
}
.lang-switch button.active,
.skin-switch button.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.lang-switch.compact button,
.skin-switch.compact button { padding: 4px 9px; font-size: 11px; }
.chrome-switch {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.skin-switch { flex-shrink: 0; }
.login-card-top {
  flex-wrap: wrap;
  align-items: center;
}
.login-brand { min-width: 0; }
.login-card-top .chrome-switch {
  flex-basis: auto;
  margin-left: 0;
  justify-content: flex-end;
}
.topbar-right .chrome-switch { margin-right: 4px; }
.dict-cell {
  width: 100%;
  min-width: 120px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-size: 12px;
}

/* ==================== 6.x 收款页折叠与说明 ==================== */
/* PRD 需求编号标注（页面 ↔ 需求可追溯） */
.prd {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px;
  background: #eef3fb; border: 1px solid #d3e0f5; color: #375f96;
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em; white-space: nowrap;
}

.pay-fold:not([open]) > :not(summary),
.pay-fold-in:not([open]) > :not(summary) { display: none !important; }
.pay-fold > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-weight: 650;
}
.pay-fold > summary .hd-ico { width: 16px; height: 16px; margin-right: 0; flex: none; }
.pay-fold > summary::-webkit-details-marker { display: none; }
.pay-fold > summary::after {
  margin-left: auto;
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.pay-fold[open] > summary { border-bottom: 1px solid var(--line); }
.pay-fold[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.pay-fold .card-bd { padding: 16px; }
.pay-sum-meta { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 12px; }
.pay-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pay-tabs button {
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.pay-tabs button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pay-channel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.pay-channel img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; }
.pay-channel-name { flex: 1 1 140px; min-width: 0; font-size: 15px; }
.pay-channel-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.pay-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.pay-icon-btn { font-size: 12px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.pay-icon-btn input { display: none; }
.pay-collect { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.pay-collect input[type="password"] { width: 180px; }
.pay-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pay-kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pay-kpi span { color: var(--muted); font-size: 12px; }
.pay-sec td {
  padding-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  background: transparent;
}
.pay-fold-in { margin-top: 16px; border-top: 1px solid var(--line); }
.pay-fold-in > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 650;
}
.pay-fold-in > summary::-webkit-details-marker { display: none; }
.pay-fold-in > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}
.pay-fold-in[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.pay-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.pay-keys h4 { margin: 0 0 10px; font-size: 13px; }
.pay-keys .field + .field { margin-top: 10px; }
@media (max-width: 860px) {
  .pay-kpis, .pay-keys { grid-template-columns: 1fr; }
}

/* 决策流程图（押金策略降级链） */
.flow { display: grid; gap: 0; }
.flow-row {
  display: grid; grid-template-columns: minmax(240px, 1fr) minmax(260px, 1.2fr); gap: 12px;
  align-items: stretch; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fbfdff;
}
.flow-node { display: flex; gap: 10px; align-items: flex-start; }
.flow-no {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #0b2438; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.flow-cond { font-weight: 600; font-size: 13px; line-height: 1.6; }
.flow-out { display: grid; gap: 6px; align-content: center; }
.flow-yes, .flow-no-br { font-size: 12px; line-height: 1.6; padding: 6px 8px; border-radius: 8px; }
.flow-yes { background: #e7f7ef; color: #0f5c3a; border: 1px solid #bfe6d2; }
.flow-no-br { background: #fff4e5; color: #8a4b00; border: 1px solid #f0d9b5; }
.flow-yes b, .flow-no-br b { margin-right: 4px; }
.flow-arrow { text-align: center; color: #9aa7b6; font-size: 14px; line-height: 20px; }

/* 醒目结论横幅（给业务方看的关键风险） */
.banner { border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid; }
.banner.risk { background: #fff6f5; border-color: #f3c0c0; }
.banner.info { background: #f4f8ff; border-color: #cfe0f8; }
.banner.warn { background: #fffaf1; border-color: #f0d9b5; }
.banner-hd { font-size: 15px; font-weight: 800; margin-bottom: 6px; color: #0b2438; }
.banner.risk .banner-hd::before { content: "▲ "; color: #c62828; }
.banner-bd { font-size: 13px; line-height: 1.8; color: #3b4a5a; }
.banner-ft { margin-top: 8px; font-size: 12px; line-height: 1.8; color: #5b6b7d; }
.banner-ref { margin-top: 8px; font-family: var(--mono); font-size: 11px; color: #8a94a6; }

/* 降级链 / 顺序清单 */
.chain { display: grid; gap: 8px; }
.chain-item {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff;
}
.chain-no {
  width: 28px; height: 28px; border-radius: 8px; background: #eef3fb; color: #375f96;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px;
}
.chain-main { font-size: 13px; line-height: 1.7; }
.chain-why { color: #5b6b7d; font-size: 12px; }

/* 策略试算器 */
.sim { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.sim-form { display: grid; gap: 10px; align-content: start; }
.sim-out { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfdff; }
.sim-hit { font-size: 18px; font-weight: 800; color: #0b2438; }
.sim-amount { font-family: var(--mono); font-size: 14px; color: #0F3443; margin-top: 4px; }
@media (max-width: 1200px) { .sim { grid-template-columns: 1fr; } }

/* 看板地图：窄高卡片，图例叠在图上 */
.globe-panel {
  display: block;
  background: #0b0d12;
  border: 0;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  min-height: 0;
  height: clamp(360px, 46vh, 720px);
}
.globe-stage {
  position: relative;
  height: 100%;
  min-height: 0;
  background: #10141a;
}
.globe-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.globe-stage canvas:active { cursor: grabbing; }
.gmap { width: 100%; height: 100%; min-height: 0; position: relative; }
.gmap canvas, .world-map { display: block; width: 100%; height: 100%; cursor: grab; }
.gmap canvas:active, .world-map:active { cursor: grabbing; }
.gmap-js { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.gmap-3d { display: none; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.gmap-3d gmp-map-3d { display: block; width: 100%; height: 100%; border: 0; }
.gmap-js .gm-err-container { display: none !important; }
.gmap-keygate {
  position: absolute; z-index: 4; left: 8px; right: 8px; bottom: 36px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  max-width: none; pointer-events: auto;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(12, 14, 18, 0.88);
  color: #c8c4ba;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
}
.gmap-keygate.hidden { display: none; }
.gmap-keygate h3, .gmap-keygate .pill { display: none; }
.gmap-keygate p { display: none; }
.gmap-keygate .gmap-key-err { display: none; min-height: 0; }
.gmap-keygate a {
  color: var(--accent); text-decoration: none; font-weight: 650;
}
.gmap-keygate .gmap-key-save {
  height: 24px; padding: 0 8px; font-size: 11px;
  border-radius: 6px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer;
}
.gmap-key-input {
  width: 110px; margin: 0; height: 24px;
  background: #1c1f26; color: #f4f1ea;
  border: 1px solid rgba(244,241,234,0.14);
  border-radius: 6px; padding: 0 8px; font: inherit; font-size: 11px;
}
.globe-hud {
  position: absolute; left: 10px; top: 10px; max-width: 180px; pointer-events: none;
  z-index: 2;
  padding: 6px 8px 7px;
  border-radius: 10px;
  background: rgba(10, 12, 16, 0.72);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.globe-hud .pill {
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  font-family: var(--mono); letter-spacing: .12em; font-size: 9px;
  padding: 2px 6px;
}
.globe-hud h3 { display: none; }
.globe-hud p { margin: 4px 0 0; font-size: 11px; color: var(--muted); line-height: 1.35; }
.globe-tip {
  position: absolute; z-index: 3; pointer-events: none;
  background: #14161a; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 10px; font-size: 12px; min-width: 160px;
  box-shadow: var(--shadow);
}
.globe-tip strong { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.globe-side {
  border: 0;
  padding: 0;
  background: transparent;
  display: flex; flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-left: auto;
}
.globe-legend {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  font-size: 10px; color: var(--muted);
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(10, 12, 16, 0.72);
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.globe-legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px;
  vertical-align: middle;
}
.globe-legend i.ring {
  background: transparent; box-shadow: inset 0 0 0 1.5px #7dd3c0;
}
.globe-countries { display: none; }
.gmap-modes {
  display: flex; gap: 0; margin: 0;
  padding: 2px; border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.gmap-modes .btn {
  flex: 0 0 auto; height: 24px; padding: 0 9px; font-size: 11px;
  border: 0; box-shadow: none; border-radius: 6px;
}
.globe-country {
  display: grid; grid-template-columns: 10px 1fr auto; grid-template-rows: auto auto;
  gap: 2px 8px; align-items: center;
  text-align: left; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: #171a20; color: inherit;
}
.globe-country:hover { border-color: rgba(255,255,255,.16); }
.globe-country.live { border-color: rgba(214,255,58,0.22); }
.gc-dot { width: 8px; height: 8px; border-radius: 50%; background: #7dd3c0; grid-row: 1 / span 2; }
.globe-country.live .gc-dot { background: var(--accent); box-shadow: 0 0 8px rgba(214,255,58,0.6); }
.gc-name { font-size: 13px; font-weight: 650; }
.gc-name b { font-family: var(--mono); font-weight: 500; color: var(--muted); font-size: 11px; }
.gc-n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.gc-n small { color: var(--muted); font-size: 10px; margin-left: 2px; }
.gc-st { grid-column: 2 / span 2; font-size: 11px; color: var(--muted); }

/* 国家扩张顺序标记 */
.order-no {
  display: inline-flex; width: 22px; height: 22px; border-radius: 6px; margin-right: 6px;
  align-items: center; justify-content: center; background: #0b2438; color: #fff;
  font-size: 11px; font-weight: 700; font-family: var(--mono);
}

/* ============================ 7. 响应式 ============================ */
@media (max-width: 1400px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-2-1, .grid-2 { grid-template-columns: 1fr; }
  .two-col-form { grid-template-columns: 1fr; }
  .dash-jump { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  /* 窄屏：侧边导航折叠为抽屉，顶栏出现汉堡按钮 */
  .sidebar {
    position: fixed; top: 0; left: 0; z-index: 30; height: 100vh;
    transform: translateX(-100%); transition: transform .2s ease;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 12px 0 40px rgba(0,0,0,.2); }
  .menu-toggle { display: block; }
  .content { padding: 16px 14px 40px; }
  .page-tabs { padding-left: 14px; padding-right: 14px; }
  .topbar { padding: 10px 14px; }
  .topbar-kicker { display: none; }
}
@media (max-width: 720px) {
  .grid-4, .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-mini { grid-template-columns: repeat(2, 1fr); }
  .dash-mini > div:nth-child(2n) { border-right: 0; }
  .dash-mini > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { flex-direction: column; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .topbar-who-txt,
  .topbar-market,
  .topbar-rule { display: none; }
  .page-desc { display: none; }
}

/* ============================ 8. 暗色指挥舱覆盖 ============================ */
.main { position: relative; z-index: 1; }
.pill, .user {
  background: rgba(255,255,255,0.04); color: var(--muted); border-color: var(--line);
}
.user { background: var(--accent-soft); color: var(--accent); border-color: rgba(46,230,200,.35); }
.menu-toggle { background: var(--panel); color: var(--ink); }
.tag-gray { background: rgba(255,255,255,0.06); color: var(--muted); border-color: rgba(255,255,255,0.12); }
.subnav button { background: transparent; color: var(--muted); }
.subnav button.active { background: var(--accent); color: #041016; border-color: var(--accent); }
.ad-tabs button { background: transparent; color: var(--muted); }
.ad-tabs button.active { background: var(--accent); color: #041016; border-color: var(--accent); }
.section-note { background: var(--accent-soft); color: var(--ink); border-left-color: var(--accent); }
.callout { background: rgba(255,255,255,0.04); color: var(--ink); }
.callout.ok { background: var(--ok-soft); border-color: rgba(126,232,164,.32); color: var(--ink); }
.callout.warn { background: var(--warn-soft); border-color: rgba(255,176,32,.38); color: var(--ink); }
.callout.danger { background: var(--danger-soft); border-color: rgba(255,107,122,.38); color: var(--ink); }
.callout.info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--ink); }
.switch i { background: #2a3a48; }
.switch i::after { background: #e8f2f8; }
.slot { background: #0b1520; }
.slot.free { background: rgba(255,255,255,0.03); }
.slot.rentable { background: var(--ok-soft); }
.slot.charging { background: var(--accent-soft); }
.slot.locked { background: var(--warn-soft); }
.slot.fault { background: var(--danger-soft); }
.batt { background: #1a2733; }
.rank-no { background: rgba(255,255,255,0.06); }
.rank-bar, .progress, .donut-legend { color: var(--ink); }
.rank-bar { background: #1a2733; }
.progress { background: #1a2733; }
.donut::after { background: var(--panel); }
.tl-dot { box-shadow: 0 0 0 3px #0d1520; }
.steps { background: var(--panel); }
.step .n { background: #1a2733; }
.step.active { background: var(--accent-soft); color: var(--accent); }
.perm-table th:first-child, .perm-table td:first-child { background: #0d1520; }
.file-chip, .upload { background: rgba(255,255,255,0.03); }
.map-ph {
  background:
    linear-gradient(90deg, rgba(0,217,192,.1) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgba(0,217,192,.1) 1px, transparent 1px) 0 0 / 32px 32px,
    #14161a;
}
.drawer { background: #111318; color: var(--ink); border: 1px solid var(--line); }
.modal {
  background: #252830;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 4px 12px rgba(0,0,0,.28),
    0 32px 90px rgba(0,0,0,.7);
}
.x-close { background: rgba(255,255,255,.08); color: #e4e6ea; border: 1px solid rgba(255,255,255,.12); }
.lang-switch button { background: transparent; }
.skin-switch button { background: transparent; }
.lang-switch button.active,
.skin-switch button.active { background: var(--accent); color: var(--accent-ink); }
.prd { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--accent); }
.matrix-wrap table th:first-child, .matrix-wrap table td:first-child { background: #111318; }
.matrix-wrap table thead th:first-child { background: rgba(255,255,255,0.04); }
.flow-row { background: rgba(255,255,255,0.03); }
.flow-no { background: var(--accent); color: var(--accent-ink); }
.banner.risk { background: var(--danger-soft); }
.banner.info { background: var(--accent-soft); }
.banner.warn { background: var(--warn-soft); }
.banner-hd { color: var(--ink); }
.banner-bd, .banner-ft { color: var(--muted); }
.chain-item { background: var(--panel); }
.chain-no { background: var(--accent-soft); color: var(--accent); }
.sim-out { background: rgba(255,255,255,0.03); }
.sim-hit { color: var(--ink); }
.sim-amount { color: var(--ok); }
.flow-yes { background: var(--ok-soft); color: var(--ok); border-color: rgba(126,232,164,.28); }
.flow-no-br { background: var(--warn-soft); color: var(--warn); border-color: rgba(255,176,32,.28); }
.gmap-box { background: #101216; }
.order-no { background: var(--accent); color: var(--accent-ink); }
.kpi.danger, .kpi.warn, .kpi.ok, .kpi.info { color: var(--ink); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); border-color: var(--line); }
.subnav button.active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.ad-tabs button.active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.bars .bar { background: linear-gradient(180deg, #00D9C0 0%, #0F3443 100%); }
.bars .bar.hi { background: linear-gradient(180deg, #9ee0b4 0%, #5cbc86 100%); }
.pager select { background: #0c0e12; color: var(--ink); border-color: var(--line); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.empty h3 { color: var(--ink); }
.nav-parent.has-active { color: var(--accent); }
.brand-title { letter-spacing: 0.03em; }
.page-title { letter-spacing: -0.02em; }

.inspect-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.inspect-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inspect-checks { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }

.insight-score {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); background: rgba(255,255,255,.04);
}
.insight-score.ok { color: var(--ok); background: var(--ok-soft); border-color: rgba(126,232,164,.32); }
.insight-score.warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(255,176,32,.38); }
.insight-score.danger { color: var(--danger); background: var(--danger-soft); border-color: rgba(255,107,122,.38); }
.insight-summary {
  margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: var(--ink);
}
.insight-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.insight-col h4, .insight-actions h4 {
  margin: 0 0 8px; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.insight-item {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 8px; padding: 11px 12px;
  border-radius: 12px; background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  color: var(--ink); font-size: 13px; line-height: 1.55;
  white-space: normal;
}
.insight-item:last-child { margin-bottom: 0; }
.insight-item i {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0;
}
.insight-item.ok i { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.insight-item.warn i { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.insight-item span { min-width: 0; word-break: break-word; }
.insight-item:last-child { margin-bottom: 0; }
.insight-item i {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0;
}
.insight-item.ok i { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.insight-item.warn i { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.insight-item span { min-width: 0; }
.insight-actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.insight-actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.insight-go {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left; height: auto; min-width: 168px; flex: 1 1 168px;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--ink);
  font: inherit;
}
.insight-go strong { font-size: 13px; font-weight: 650; }
.insight-go span { font-size: 12px; color: var(--muted); line-height: 1.45; font-weight: 400; }
.insight-go:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }

/* ============================ 9. 指挥舱看板 + 仓位图 ============================ */
.kpi .value { letter-spacing: -0.05em; }

.dash-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr);
  gap: 16px;
  align-items: stretch;
  min-height: clamp(420px, 58vh, 780px);
}
.dash-split-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  min-height: 0;
}
.dash-map-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.dash-map-card .card-hd { padding: 12px 16px; gap: 8px; flex-shrink: 0; }
.dash-map-card .card-hd h3 .sub { display: none; }
.dash-map-card .globe-side { margin-left: 0; }
.dash-map-card .globe-panel {
  flex: 1 1 auto;
  height: auto;
  min-height: clamp(300px, 40vh, 640px);
}
.dash-split > .card { min-height: 0; }
.dash-split .dash-feed { max-height: none; }

@media (max-width: 1100px) {
  .dash-split { grid-template-columns: 1fr; min-height: 0; }
  .dash-split-main { grid-template-rows: auto auto; }
  .dash-map-card .globe-panel { min-height: 360px; height: 380px; flex: none; }
}

.dash-hud {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 0;
  margin-bottom: 0;
}
.dash-live {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  color: var(--accent); display: flex; align-items: center; gap: 8px;
}
.dash-clock {
  font-family: var(--mono); font-size: 16px; color: var(--muted);
  letter-spacing: .06em; margin-left: auto; font-weight: 500;
}
.dash-live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); animation: led-breathe 1.8s ease-in-out infinite;
}
.dash-hud-copy { flex: 1; min-width: 140px; }
.dash-hud-copy strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.dash-hud-copy span { font-size: 12px; color: var(--muted); }
.dash-mini {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,.02);
}
.dash-mini > div {
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}
.dash-mini > div:last-child { border-right: 0; }
.dash-mini b { display: block; font-size: 18px; font-weight: 750; letter-spacing: -.04em; }
.dash-mini span { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }

.dash-fee {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 217, 192, 0.1);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dash-fee:hover { border-color: rgba(0, 217, 192, 0.55); }
.dash-fee span { font-size: 12px; color: var(--muted); margin-right: 4px; }
.dash-fee strong { font-size: 14px; font-weight: 750; letter-spacing: -.02em; }
.dash-fee em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.dash-jump {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dash-jump-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 16px 16px 14px;
  cursor: pointer;
  color: inherit;
}
.dash-jump-card:hover { border-color: var(--accent); }
.dash-jump-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.dash-jump-card span { font-size: 12px; color: var(--muted); line-height: 1.4; }

.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 112px;
  padding: 18px 16px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  text-align: center;
}
.field .upload-drop {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center;
  width: 100% !important;
  max-width: 100%;
  min-height: 96px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.field .upload-drop input[type="file"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  opacity: 0;
  cursor: pointer;
}
.field .upload-drop strong,
.field .upload-drop .upload-drop-hint {
  position: relative;
  z-index: 1;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  padding: 0 8px;
  box-sizing: border-box;
  line-height: 1.5;
  text-align: center;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  pointer-events: none;
}
.upload-drop strong { font-size: 14px; color: var(--ink); }
.upload-drop .upload-drop-hint { margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.upload-drop.is-over,
.upload-drop:hover { border-color: var(--accent); background: var(--accent-soft); }

.dash-ticker {
  display: flex; gap: 28px; overflow: hidden;
  padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.dash-ticker span { white-space: nowrap; animation: ticker 28s linear infinite; }
.dash-ticker b { color: var(--accent); margin-right: 6px; font-family: var(--mono); font-size: 10px; }
.dash-ticker em { font-style: normal; color: #6f6a62; margin-left: 8px; }
@keyframes ticker { from { transform: translateX(8%); } to { transform: translateX(-40%); } }

.dash-feed { display: grid; gap: 8px; }
.dash-feed-item {
  display: grid; grid-template-columns: 16px auto 1fr auto; gap: 10px; align-items: center;
  width: 100%; text-align: left; border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 14px; padding: 12px 14px; color: inherit; font: inherit; cursor: pointer;
  backdrop-filter: blur(10px);
}
.dash-feed-item:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.dash-feed-item i { width: 16px; height: 16px; border-radius: 0; background: none; box-shadow: none; color: #00B4D8; display: grid; place-items: center; }
.dash-feed-item i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dash-feed-item.danger i { background: none; box-shadow: none; color: #e23b4c; }
.dash-feed-item.warn i { background: none; box-shadow: none; color: #E06A00; }
.dash-feed-item strong { font-size: 12px; }
.dash-feed-item span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-feed-item em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); }

.cab-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.cab-toolbar .btn { flex-shrink: 0; height: 36px; }
.cab-toolbar label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--accent);
}
.cab-pick-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 280px;
  cursor: pointer;
}
.cab-toolbar select {
  height: 36px; width: 100%;
  border-radius: 10px; border: 1px solid var(--line);
  background: #101216; color: var(--ink); font: inherit;
  padding: 0 32px 0 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.cab-pick-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10px;
  height: 7px;
  transform: translateY(-50%);
  pointer-events: none;
  background: currentColor;
  color: var(--ink);
  opacity: 0.75;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='black' d='M1.2 1.1 6 6.3 10.8 1.1 12 2.3 6 8 0 2.3z'/></svg>") center / 10px 7px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='black' d='M1.2 1.1 6 6.3 10.8 1.1 12 2.3 6 8 0 2.3z'/></svg>") center / 10px 7px no-repeat;
}

.cab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  height: auto;
  min-height: 0;
  max-height: none;
}
.cab-stage-wrap {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  min-height: 0;
  height: auto;
  width: auto;
  max-width: none;
  justify-self: stretch;
  align-self: stretch;
  background: #d8dbe2;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 22px;
  padding: 28px 20px;
  overflow: hidden;
}
.cab-stage-cluster {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  min-width: 0;
}
.cab-booth {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  perspective: 880px;
  overflow: hidden;
  border-radius: 22px;
}
.cab-booth-spot {
  position: absolute;
  left: 18%; right: 18%; top: -8%;
  height: 46%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.7), transparent 68%);
}
.cab-booth-wall {
  position: absolute;
  left: 11%; right: 11%; top: 0; height: 58%;
  background:
    linear-gradient(90deg, rgba(0,0,0,.07) 0, transparent 14%, transparent 86%, rgba(0,0,0,.07)),
    repeating-linear-gradient(90deg, transparent 0 72px, rgba(0,0,0,.035) 72px 73px),
    linear-gradient(180deg, #e8eaef 0%, #d0d4dc 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.cab-booth-l,
.cab-booth-r {
  position: absolute;
  top: 0;
  width: 12%;
  height: 58%;
  background: linear-gradient(180deg, #c2c6ce, #aeb3bc);
}
.cab-booth-l {
  left: 0;
  transform: perspective(520px) rotateY(38deg);
  transform-origin: left center;
  box-shadow: inset -10px 0 18px rgba(0,0,0,.08);
}
.cab-booth-r {
  right: 0;
  transform: perspective(520px) rotateY(-38deg);
  transform-origin: right center;
  box-shadow: inset 10px 0 18px rgba(0,0,0,.08);
}
.cab-booth-floor {
  position: absolute;
  left: -8%; right: -8%;
  top: 54%;
  height: 58%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), transparent 18%),
    linear-gradient(#b8bcc6, #9ea3ad 55%, #8d929c);
  transform: rotateX(58deg);
  transform-origin: center top;
  box-shadow: 0 -16px 40px rgba(0,0,0,.08);
}
.cab-booth-sky {
  position: absolute; inset: 0 0 42% 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.35), transparent 42%),
    linear-gradient(180deg, #c5cbd6 0%, #d8dbe2 78%);
}
.cab-booth-ceiling {
  position: absolute; left: 0; right: 0; top: 0; height: 12%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 28px, transparent 28px 56px),
    linear-gradient(180deg, #8f96a2, #b7bcc6 72%, #c5cad2);
  box-shadow: inset 0 -8px 16px rgba(0,0,0,.12);
}
.cab-booth-rail {
  position: absolute; left: 10%; right: 10%; top: 9%; height: 6px;
  border-radius: 99px;
  background: linear-gradient(#6d7480, #9aa1ac);
  box-shadow: 0 8px 12px rgba(0,0,0,.12);
}
.cab-booth-ceiling::after {
  content: "";
  position: absolute; left: 16%; right: 16%; bottom: 4px; height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(255,248,220,.95), color-mix(in srgb, var(--accent) 55%, transparent), rgba(255,248,220,.95), transparent);
  box-shadow: 0 6px 18px rgba(255, 236, 180, .35);
}
.cab-booth-lights {
  position: absolute; left: 16%; right: 16%; top: 3.5%;
  display: flex; justify-content: space-between; align-items: center;
  height: 14px;
}
.cab-booth-lights i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff8e8;
  box-shadow: 0 0 10px 3px rgba(255,236,190,.8), 0 10px 18px rgba(255,220,140,.28);
  animation: booth-glow 2.4s ease-in-out infinite;
}
.cab-booth-lights i:nth-child(even) { animation-delay: 1.1s; }
@keyframes booth-glow {
  0%, 100% { opacity: .72; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.35); }
}
.cab-booth-banner {
  position: absolute; top: 11%; width: 42px; height: 58px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, white), var(--accent) 70%, color-mix(in srgb, var(--accent) 72%, black));
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  box-shadow: 0 8px 14px rgba(0,0,0,.12);
  opacity: .92;
}
.cab-booth-banner-l { left: 27%; transform: rotate(-6deg); }
.cab-booth-banner-r { right: 27%; transform: rotate(6deg); }
.cab-booth-sign {
  position: absolute; left: 50%; top: 7.5%;
  transform: translateX(-50%);
  min-width: 138px; padding: 7px 16px 8px;
  border-radius: 8px;
  background: #141806;
  color: var(--accent);
  font-size: 11px; font-weight: 800; letter-spacing: .14em;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0,0,0,.2), 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}
.cab-booth-sign::before {
  content: "CUBE X";
  display: block;
}
.cab-booth-sign::after {
  content: "自助充电";
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.62);
  font-size: 9px; font-weight: 600; letter-spacing: .28em;
}
.cab-booth-molding {
  position: absolute; left: 11%; right: 11%; top: 56%; height: 8px;
  background: linear-gradient(#cfd3db, #b4b9c3);
  box-shadow: 0 4px 8px rgba(0,0,0,.08);
}
.cab-booth-poster {
  position: absolute; top: 16%; width: 8.5%; height: 24%;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(20,24,8,.08) 0 18%, transparent 18%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 42%, transparent), rgba(20,24,8,.1) 46%, #e8eaef 46% 100%),
    linear-gradient(135deg, #dfe4ec, #c4c9d2);
  box-shadow: 0 8px 16px rgba(0,0,0,.14), inset 0 0 0 2px rgba(255,255,255,.6);
}
.cab-booth-poster::after {
  content: "";
  position: absolute; left: 14%; right: 14%; top: 54%; height: 28%;
  background:
    linear-gradient(#9aa1ac, #9aa1ac) 0 0 / 100% 4px no-repeat,
    linear-gradient(#c5cad2, #c5cad2) 0 10px / 72% 4px no-repeat,
    linear-gradient(#c5cad2, #c5cad2) 0 20px / 54% 4px no-repeat;
  opacity: .7;
}
.cab-booth-poster-l { left: 13.5%; transform: rotate(-2deg); }
.cab-booth-poster-r { right: 13.5%; transform: rotate(2deg); }
.cab-booth-shop {
  position: absolute; top: 14%; width: 10%; height: 40%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), transparent 22%),
    linear-gradient(90deg, rgba(0,0,0,.2), transparent 16%, transparent 84%, rgba(0,0,0,.2)),
    linear-gradient(#3a4252, #242a36);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 10px 18px rgba(0,0,0,.12);
}
.cab-booth-shop::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 16%;
  background: #141806;
}
.cab-booth-shop::after {
  content: "";
  position: absolute; left: 10%; right: 10%; top: 24%; height: 42%;
  background: linear-gradient(180deg, rgba(255,220,140,.28), rgba(255,180,80,.06));
  box-shadow: 0 0 18px rgba(255,200,110,.16), inset 0 0 0 1px rgba(255,255,255,.12);
}
.cab-booth-shop-l { left: 1.5%; }
.cab-booth-shop-r { right: 1.5%; }
.cab-volume {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  max-width: 100%;
  word-break: normal;
}
.cab-volume.is-off { opacity: .72; }
.cab-volume input[type="range"] {
  flex: 0 0 128px;
  width: 128px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
}
.cab-volume b {
  min-width: 2em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.cab-volume-hint {
  font-size: 12px;
  font-weight: 500;
}
.cab-booth-pillar {
  position: absolute; top: 8%; width: 10px; height: 50%;
  background: linear-gradient(90deg, #9aa1ac, #d5d9e0 40%, #8e95a0);
  box-shadow: 4px 0 10px rgba(0,0,0,.1);
  border-radius: 2px 2px 0 0;
}
.cab-booth-pillar-l { left: 10.2%; }
.cab-booth-pillar-r { right: 10.2%; }
.cab-booth-tile {
  position: absolute;
  left: -8%; right: -8%; top: 54%; height: 58%;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.16) 46px 47px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(0,0,0,.07) 46px 47px);
  transform: rotateX(58deg);
  transform-origin: center top;
  opacity: .55;
}
.cab-booth-guide {
  position: absolute; left: 50%; top: 68%;
  width: 54px; height: 54px;
  transform: translateX(-50%) rotateX(58deg);
  background:
    linear-gradient(var(--accent), var(--accent)) 50% 18% / 8px 22px no-repeat,
    conic-gradient(from 210deg at 50% 68%, var(--accent) 0 120deg, transparent 0);
  opacity: .35;
}
.cab-booth-rug {
  position: absolute; left: 24%; right: 24%; top: 61%; height: 16%;
  background: radial-gradient(ellipse at 50% 30%, rgba(20,24,8,.16), transparent 68%);
  transform: rotateX(58deg);
  transform-origin: center top;
}
.cab-booth-plant {
  position: absolute; bottom: 6%; width: 34px; height: 54px;
}
.cab-booth-plant::before {
  content: "";
  position: absolute; left: 10px; right: 10px; bottom: 0; height: 13px;
  background: linear-gradient(#7a5438, #5a3c28);
  border-radius: 2px 2px 5px 5px;
  box-shadow: 0 3px 6px rgba(0,0,0,.16);
}
.cab-booth-plant::after {
  content: "";
  position: absolute; left: 3px; right: 3px; bottom: 11px; height: 34px;
  background:
    radial-gradient(circle at 28% 42%, #3f8f62 0 8px, transparent 9px),
    radial-gradient(circle at 72% 28%, #2f7a52 0 9px, transparent 10px),
    radial-gradient(circle at 50% 62%, #4aa072 0 10px, transparent 11px),
    radial-gradient(circle at 46% 18%, #67b57f 0 7px, transparent 8px);
}
.cab-booth-plant-l { left: 6%; }
.cab-booth-plant-r { right: 6%; }
.cab-booth-figure {
  position: absolute; bottom: 16%; width: 16px; height: 38px; opacity: .2;
  background:
    radial-gradient(circle at 50% 7px, #2c3340 0 6px, transparent 7px),
    linear-gradient(#2c3340, #2c3340) 5px 14px / 6px 24px no-repeat,
    linear-gradient(#2c3340, #2c3340) 1px 22px / 5px 16px no-repeat,
    linear-gradient(#2c3340, #2c3340) 10px 22px / 5px 16px no-repeat;
}
.cab-booth-figure-l { left: 19%; }
.cab-booth-figure-r { right: 18%; transform: scaleX(-1); }
.cab-booth-reflect {
  position: absolute; left: 22%; right: 22%; top: 58%; height: 18%;
  background: linear-gradient(180deg, rgba(255,255,255,.28), transparent);
  filter: blur(6px); opacity: .45;
}
.cab-booth-vignette {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 80px rgba(40, 48, 60, .18);
}
.cab-meta {
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  padding: 16px 16px 14px;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: visible;
  position: static;
  align-self: stretch;
}
.cab-meta-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cab-meta-sn { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: .02em; line-height: 1.2; }
.cab-meta-sn .hd-ico { width: 18px; height: 18px; margin-right: 0; }
.cab-meta-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.cab-qr {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.cab-qr-face {
  flex-shrink: 0;
  padding: 5px;
  border-radius: 8px;
  background: #fff;
  line-height: 0;
}
.cab-qr canvas {
  display: block;
  width: 72px;
  height: 72px;
}
.cab-qr-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.cab-qr-cap {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cab-qr-id {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cab-qr .btn {
  height: auto;
  margin-top: 4px;
  padding: 0;
  font-size: 12px;
  font-weight: 650;
}
.cab-cmd {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 2px 0 10px;
  border-bottom: 1px solid var(--line);
}
.cab-cmd > .btn-primary {
  height: 36px;
  min-width: 112px;
  justify-content: center;
  font-weight: 700;
  box-shadow: var(--glow);
}
.cab-cmd-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 2px;
  min-width: 0;
}
.cab-cmd-links > .btn,
.cab-cmd-links .cab-actions-more > .btn {
  width: auto;
  height: auto;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.cab-cmd-links > .btn:hover,
.cab-cmd-links .cab-actions-more > .btn:hover {
  color: var(--ink);
  background: var(--accent-soft);
}
.cab-card {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}
.cab-card h4,
.cab-card-map h4 {
  margin: 0 0 8px;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 650; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.cab-card h4 .hd-ico,
.cab-fact > span .hd-ico,
.cab-op-k .hd-ico,
.cab-qr-cap .hd-ico,
.kv .k .hd-ico {
  width: 13px; height: 13px; margin-right: 0;
}
.cab-place-title {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}
.cab-place-sub,
.cab-place-addr {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.cab-place-addr { overflow-wrap: anywhere; }
.cab-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.cab-fact {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid transparent;
}
.cab-fact.is-wide { grid-column: 1 / -1; }
.cab-fact > span {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.cab-fact b {
  display: block;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.cab-fact b .mono {
  font-size: 11px;
  word-break: break-all;
}
.cab-ops {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}
.cab-op {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.cab-op:last-child { border-bottom: 0; }
.cab-op-k {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}
.cab-op-v {
  min-width: 0;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
}
.cab-op .cab-inline { margin-left: 0; }
.cab-card-map { padding-bottom: 10px; }
.cab-meta-sec h4 {
  margin: 0 0 6px;
  font-size: 11px; font-weight: 650; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.cab-meta-sec .kv {
  grid-template-columns: 88px 1fr;
  gap: 4px 10px;
  padding-top: 0;
  font-size: 12px;
}
.cab-meta-sec .kv .k,
.cab-meta-sec .kv .v {
  line-height: 1.35;
  padding: 0;
}
.cab-meta-sec .kv .v { font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.cab-meta-sec .kv .btn:not(.btn-ghost):not(.cab-inline):not(.cab-chip) { height: 26px; padding: 0 8px; font-size: 11px; }
.cab-inline {
  appearance: none;
  background: none;
  border: 0;
  margin: 0 0 0 8px;
  padding: 0;
  height: auto;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
  vertical-align: baseline;
}
.cab-inline:hover:not(:disabled) { text-decoration: underline; }
.cab-inline:disabled { opacity: .45; cursor: not-allowed; }
.cab-volume .cab-inline { margin-left: 0; }
.cab-meta-hd, .cab-card, .cab-cmd, .cab-ops { flex-shrink: 0; }
.cab-install-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cab-install-photo {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #0a0c10;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
  text-align: left;
}
.cab-install-photo:hover { border-color: rgba(0, 217, 192, 0.45); }
.cab-install-photo-well {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  max-height: 420px;
  background: #0a0c10;
}
.cab-install-photo img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.cab-install-photo span {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.activate-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 14px;
  align-items: start;
}
.activate-review-side {
  display: grid;
  gap: 14px;
}
.activate-probe-msg {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.activate-facts {
  display: grid;
  gap: 12px;
}
.activate-facts > div {
  display: grid;
  gap: 3px;
}
.activate-facts span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.activate-facts b {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.activate-hint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.activate-decide .card-bd {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.activate-decide .btn-primary { min-width: 132px; }
.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.install-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.install-steps li i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.06);
  color: var(--muted);
}
.install-steps li.ok i { background: var(--ok-soft); color: var(--ok); }
.install-steps li.bad i { background: var(--warn-soft); color: var(--warn); }
.install-steps li.skip i,
.install-steps li.wait i { background: rgba(139,144,160,.14); color: var(--muted); }
.install-steps li b { display: block; font-size: 13px; }
.install-steps li span,
.install-steps li em {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  margin-top: 2px;
  line-height: 1.4;
}
@media (max-width: 1100px) {
  .activate-review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cab-install-photos { grid-template-columns: 1fr; }
  .cab-install-photo-well,
  .cab-install-photo img { max-height: 320px; }
}
.cab-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.cab-actions > .btn,
.cab-actions .cab-actions-more > .btn {
  width: 100%;
  height: 32px;
  justify-content: center;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 9px;
}
.cab-actions-more { position: relative; min-width: 0; }
.cab-actions-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 12;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
}
.cab-actions-menu[hidden] { display: none; }
.cab-menu-item {
  appearance: none;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.cab-menu-item:hover:not(:disabled) { background: var(--accent-soft); }
.cab-menu-item.danger { color: var(--danger); }
.cab-menu-item:disabled { opacity: .45; cursor: not-allowed; }
.cab-stack {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  max-width: 100%;
  word-break: normal;
}
.cab-stack-sum { font-weight: 550; }
.cab-stack-actions {
  display: inline-flex;
  vertical-align: middle;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cab-chip {
  appearance: none;
  height: 24px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.cab-chip + .cab-chip { border-left: 1px solid var(--line); }
.cab-chip:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent);
}
.cab-chip:disabled { opacity: .4; cursor: not-allowed; }
.cab-meta-map {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cab-meta-map .gmap-box,
.cab-gmap {
  flex: 0 0 auto;
  min-height: 140px;
  height: 140px;
  margin: 0;
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.cab-gmap-canvas {
  flex: 1 1 auto;
  min-height: 140px;
  width: 100%;
  height: 140px;
}
.cab-gmap-canvas.is-empty {
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: #101216;
}
.cab-map-addr { flex-shrink: 0; font-size: 12px; line-height: 1.4; }
.cab-meta-map .card {
  margin: 0; box-shadow: none; background: #0c0e12;
  border: 1px solid var(--line); border-radius: 14px;
}
.cab-meta-map .card-hd { padding: 12px 14px 8px; }
.cab-meta-map .card-bd { padding: 0 14px 14px; }
.cab-legend {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center;
  flex-shrink: 0;
  max-width: 100%;
  margin-top: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  color: #15181e;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  box-shadow: 0 2px 10px rgba(0,0,0,.16);
  border: 1px solid rgba(0,0,0,.08);
}
.cab-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.cab-legend .rentable { background: #00D9C0; }
.cab-legend .charging { background: #00B4D8; }
.cab-legend .stocked { background: #6b7280; }
.cab-legend .locked { background: #FF7A00; }
.cab-legend .fault { background: #e23b4c; }
.cab-legend .free { background: #fff; box-shadow: inset 0 0 0 1.5px #3a3e46; }

.cab-lower {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.cab-lower .card-hd {
  padding: 12px 16px;
}
.cab-lower .card-hd h3 {
  font-size: 13px;
  font-weight: 750;
}
.cab-slots .cab-slot-rows {
  display: grid;
}
.cab-slot-row {
  display: grid;
  grid-template-columns: 40px 92px minmax(140px, 1.4fr) minmax(110px, .9fr) minmax(120px, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.cab-slot-row:last-child { border-bottom: 0; }
.cab-slot-row:hover { background: var(--accent-soft); }
.cab-slot-no {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
.cab-slot-bank { justify-self: start; min-width: 0; }
.cab-slot-row .batt-inline { min-width: 0; }
.cab-slot-row .batt-inline .batt { width: 64px; }
.cab-slot-meta {
  font-size: 12px;
  color: var(--muted);
}
.cab-slot-meta b { color: var(--ink); font-weight: 650; }
.cab-slot-go {
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
  white-space: nowrap;
}
.cab-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.cab-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.cab-panel .card-bd {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 0;
}
.cab-panel .table-wrap {
  flex: 1 1 auto;
}
.cab-panel table { font-size: 12px; }
.cab-panel th, .cab-panel td {
  padding: 8px 12px;
}
.cab-panel td:nth-child(3) { white-space: normal; }
.cab-empty {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 24px 16px;
  color: var(--muted);
  font-size: 13px;
}

html.is-fs .app,
html:fullscreen .app,
html:-webkit-full-screen .app {
  min-height: 100%;
  height: 100%;
}
html.is-fs .cab-layout,
html:fullscreen .cab-layout,
html:-webkit-full-screen .cab-layout {
  height: auto;
  max-height: none;
}

.cab-sim {
  --cols: 2;
  --rows: 3;
  --bay-h: 52px;
  --bay-gap: 10px;
  --cab-ar: 1.45;
  --glow: #f0f0f0;
  --recess-z: -8px;
  --eject-z: 48px;
  --ad-bar: 28px;
  --screen-share: 50%;
  --shell: #3f434c;
  --shell-hi: #555a64;
  --shell-lo: #2a2d34;
  height: auto;
  max-height: none;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: perspective(1600px) rotateX(3deg) rotateY(-12deg);
  transform-style: preserve-3d;
}
@supports not (width: 1cqi) {
  .cab-sim {
    max-width: 100%;
  }
}
.cab-bezel {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), transparent 18%),
    linear-gradient(180deg, var(--shell-hi) 0%, var(--shell) 46%, var(--shell-lo) 100%);
  border-radius: 34px;
  padding: 14px 14px 16px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.14),
    0 22px 44px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -10px 18px rgba(0,0,0,.18);
}
.cab-bezel::before,
.cab-bezel::after {
  display: none;
}
.cab-screw {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8b909a, #3a3d44 62%, #1c1e22);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.18);
  z-index: 3;
}
.cab-screw.s1 { left: 8px; top: 46%; }
.cab-screw.s2 { left: 8px; top: 58%; }
.cab-screw.s3 { left: 8px; bottom: 18px; }
.cab-screw.s4 { right: 8px; top: 46%; }
.cab-screw.s5 { right: 8px; top: 58%; }
.cab-screw.s6 { right: 8px; bottom: 18px; }
.cab-seam {
  display: block;
  height: 4px;
  margin: 8px 6px 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.38) 10%, rgba(0,0,0,.38) 90%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.16);
  flex-shrink: 0;
}
.cab-plinth {
  display: none;
}
.cab-floor {
  height: 18px;
  min-height: 12px;
  margin: 2px 8% 0;
  flex-shrink: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.28), transparent 74%);
  filter: blur(8px);
  pointer-events: none;
}

.cab-screen {
  position: relative;
  flex: 0 0 296px;
  width: 100%;
  height: 296px;
  min-height: 296px;
  max-height: 296px;
  aspect-ratio: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #050505;
  margin-bottom: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.55), 0 8px 18px rgba(0,0,0,.22);
}
.cab-sim.is-tall .cab-screen {
  flex-basis: 296px;
  height: 296px;
  min-height: 296px;
  max-height: 296px;
}
.cab-sim.is-noscreen {
  --cab-ar: 1.38;
}
.cab-sim.is-noscreen .cab-screen,
.cab-screen.is-placeholder {
  flex: 0 0 296px;
  height: 296px;
  min-height: 296px;
  max-height: 296px;
}
.cab-sim.is-noscreen .cab-ad-copy,
.cab-screen.is-placeholder .cab-ad-copy { display: none; }
.cab-sim.is-noscreen .cab-ad-slide img,
.cab-screen.is-placeholder .cab-ad-slide img {
  object-fit: cover;
}
.ad-thumb {
  display: inline-flex;
  width: 56px; height: 74px;
  border-radius: 8px;
  overflow: hidden;
  background: #12151c;
  border: 1px solid var(--line);
  vertical-align: middle;
  flex-shrink: 0;
}
button.ad-thumb {
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
}
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ad-thumb.is-empty,
.ad-thumb.is-broken { align-items: center; justify-content: center; font-size: 10px; color: var(--muted); cursor: default; }
.ad-thumb.is-broken img { display: none; }
.ad-thumb.is-broken::after { content: "缺图"; }
.ad-thumbs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ad-check-card {
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.ad-check-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ad-check-meta strong { font-size: 13px; }
.ad-asset-preview {
  min-height: 160px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c0e12;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.ad-asset-preview img { width: 100%; max-height: 280px; object-fit: contain; display: block; pointer-events: none; }
.ad-asset-preview.is-splash { min-height: 360px; background: #07141a; }
.ad-asset-preview.is-splash .ad-asset-zoom,
.ad-asset-preview.is-splash video.ad-splash-screen {
  width: 180px;
  height: 320px;
  max-height: none;
  border-radius: 18px;
  overflow: hidden;
  object-fit: cover;
  background: #000;
}
.ad-asset-preview.is-splash img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.ad-asset-preview.is-broken::after { content: "无法加载这张图"; color: var(--muted); font-size: 12px; }
.ad-asset-preview.is-broken img { display: none; }
.ad-asset-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.asset-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(4, 6, 10, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.asset-lightbox.hidden { display: none; }
.asset-lightbox-frame {
  margin: 0;
  max-width: min(1200px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.asset-lightbox-frame img {
  max-width: min(1200px, 94vw);
  max-height: calc(90vh - 36px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  background: #0c0e12;
}
.asset-lightbox-title {
  color: #e8edf5;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.asset-lightbox-x {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.asset-lightbox-x:hover { background: rgba(255,255,255,.22); }
.cab-ad-slide[data-asset-zoom] { cursor: zoom-in; }
.cab-ad-deck { position: absolute; inset: 0 0 var(--ad-bar); }
.cab-ad-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}
.cab-ad-slide.is-on { opacity: 1; z-index: 1; }
.cab-ad-slide:not(.is-on) img { animation: none; }
.cab-ad-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  animation: ad-ken 9s ease-in-out infinite alternate;
}
.cab-ad-hero { background: #142810; color: #fff; }
.hero-scene {
  height: 100%; padding: 12px 12px 10px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 18% 78%, #4a8a38 0 14%, transparent 40%),
    radial-gradient(circle at 88% 22%, #2f5c28 0 12%, transparent 38%),
    radial-gradient(circle at 55% 100%, #1a3d16 0 28%, transparent 55%),
    linear-gradient(180deg, #102010, #1c3c18 48%, #0c1a0c);
}
.hero-scene h2 {
  margin: 0; font-size: 22px; font-weight: 800; line-height: .95;
  letter-spacing: .01em; text-transform: uppercase;
}
.hero-bank {
  width: 72px; height: 28px; margin: auto;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffe85a, #e0b400);
  box-shadow: 0 10px 22px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.4);
  position: relative;
}
.hero-bank::after {
  content: ""; position: absolute; right: 5px; top: 50%; width: 5px; height: 5px;
  margin-top: -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px #fff;
}
.hero-scene p {
  margin: 0; text-align: center; font-size: 10px; font-style: italic; opacity: .92;
}
.hero-scene i { font-style: normal; font-size: 14px; }
.cab-ad-copy {
  display: none;
}
.cab-ad-kicker {
  display: block; font-family: var(--mono); font-size: 8px;
  letter-spacing: .16em; color: var(--glow); margin-bottom: 4px;
}
.cab-ad-copy strong { display: block; font-size: 18px; font-weight: 800; }
.cab-ad-copy em { display: block; margin-top: 4px; font-style: normal; font-size: 11px; color: #ddd; }
.cab-ad-glass {
  position: absolute; inset: 0 0 var(--ad-bar); z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.12) 0 10%, transparent 24%);
}
.cab-ad-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  height: var(--ad-bar); padding: 3px 6px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(10,10,10,.92); color: #e8e8e8;
  border-top: 1px solid #2a2a2a;
}
.cab-ad-qr {
  width: 26px; height: 26px; border-radius: 2px; flex-shrink: 0;
  background:
    linear-gradient(#eee,#eee) 2px 2px / 7px 7px no-repeat,
    linear-gradient(#eee,#eee) 17px 2px / 7px 7px no-repeat,
    linear-gradient(#eee,#eee) 2px 17px / 7px 7px no-repeat,
    #111;
  box-shadow: inset 0 0 0 1px #333;
}
.cab-ad-bar-txt { flex: 1; min-width: 0; line-height: 1.2; }
.cab-ad-bar-txt b { display: block; font-size: 8px; font-weight: 800; letter-spacing: .02em; }
.cab-ad-bar-txt span { display: block; font-size: 7px; color: #b0b0b0; letter-spacing: .02em; }
.cab-pays { display: flex; gap: 2px; flex-shrink: 0; }
.cab-pays i { width: 9px; height: 6px; border-radius: 1px; background: #888; }
.cab-pays i:nth-child(1) { background: #d0d0d0; }
.cab-pays i:nth-child(2) { background: #8a8f96; }
.cab-pays i:nth-child(3) { background: #eb001b; }
.cab-pays i:nth-child(4) { background: #4a6cf7; }
.cab-ad-status {
  position: absolute; left: 0; right: 0; bottom: var(--ad-bar); z-index: 6;
  display: none; flex-direction: column; align-items: flex-start;
  padding: 8px 10px;
  background: rgba(0,0,0,.82); color: var(--glow);
  font-family: var(--mono);
}
.cab-ad-status.on { display: flex; }
.cab-ad-status b { font-size: 11px; letter-spacing: .14em; }
.cab-ad-status span { font-size: 10px; opacity: .85; margin-top: 2px; }
.cab-screen.is-dead .cab-ad-deck { filter: grayscale(1) brightness(.2); }

.cab-lcd {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  gap: 2px 10px;
  flex-shrink: 0;
  width: 100%;
  background: #f4f5f7;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 8px 0 0;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: none;
  font-family: var(--mono);
  color: #15181e;
  font-weight: 650;
}
.cab-lcd-sn { font-size: 12px; letter-spacing: .06em; color: #15181e; }
.cab-lcd-stat { font-size: 12px; justify-self: end; color: #15181e; }
.cab-lcd-msg { grid-column: 1 / -1; font-size: 11px; opacity: 1; letter-spacing: .08em; color: #15181e; }
.cab-sim.is-offline .cab-lcd,
.cab-sim.is-offline .cab-lcd-stat { color: #15181e; background: #f4f5f7; box-shadow: none; border: 1px solid rgba(0,0,0,.12); }
.cab-sim.is-fault .cab-lcd { color: #b42332; background: #f4f5f7; border: 1px solid rgba(0,0,0,.12); }
.cab-sim.is-ejecting .cab-lcd { animation: lcd-pulse .45s ease-in-out 4; }
.cab-sim.is-ejecting .cab-lcd-msg { letter-spacing: .16em; color: #15181e; }

.cab-face {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: var(--bay-h);
  gap: var(--bay-gap) 14px;
  flex: 0 0 auto;
  min-height: 0;
  background: transparent;
  border-radius: 0;
  padding: 2px 8px 4px;
  overflow: visible;
  transform-style: preserve-3d;
  box-shadow: none;
  position: relative;
  z-index: 4;
  pointer-events: auto;
}
.cab-sim[data-cols="1"] .cab-face { grid-template-columns: minmax(0, 1fr); }
.cab-sim[data-cols="3"] .cab-face { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cab-sim[data-cols="4"] .cab-face { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cab-sim[data-cols="5"] .cab-face { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cab-sim[data-cols="6"] .cab-face { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cab-sim.is-ejecting .cab-face { animation: face-rumble .055s linear 18; }
.cab-bay {
  position: relative;
  height: var(--bay-h);
  min-height: var(--bay-h);
  max-height: none;
  border: 0; border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  cursor: pointer; color: inherit; font: inherit;
  display: flex; flex-direction: column; gap: 0;
  overflow: visible;
  transform-style: preserve-3d;
  animation: none;
  z-index: 2;
  pointer-events: auto;
}
.cab-bay:hover { filter: brightness(1.06); }
.cab-bay-no {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,.35); letter-spacing: .08em;
  z-index: 4;
  pointer-events: none;
}
.cab-slot-led { display: none; }
.cab-slot {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 999px;
  background: #121417;
  transform-style: flat;
  perspective: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 5px 12px rgba(0,0,0,.72), inset 0 -1px 0 rgba(255,255,255,.08);
}
.cab-contacts,
.cab-rail,
.cab-lip { display: none; }
.cab-pusher {
  position: absolute; left: 10px; right: 12px; top: 22%; height: 56%;
  background: transparent;
  border-radius: 2px; z-index: 1;
  transform: translateZ(-28px);
  opacity: 0;
}
.cab-latch {
  position: absolute; right: 8px; top: 28%; height: 44%; width: 4px;
  background: transparent;
  border-radius: 1px; z-index: 3;
  transform: translateY(0);
  opacity: 0;
  transition: transform .22s cubic-bezier(.2,.85,.2,1), opacity .22s;
}
.cab-empty {
  display: block;
  width: 70%;
  height: 42%;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  margin: 0 auto; z-index: 2;
}
.cab-bay.free .cab-slot,
.cab-slot.is-empty { background: #101215; }

.cab-brick {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78%;
  width: 90%;
  min-height: 28px;
  max-height: none;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #eceff4 0%, #c5cad3 48%, #9ea5b0 100%);
  box-shadow: 0 4px 8px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.7);
  transform: translate3d(0, 0, var(--recess-z));
  transform-style: preserve-3d;
  transform-origin: 50% 80%;
}
.cab-brick::before,
.cab-brick::after { display: none; }
.cab-pins,
.cab-body,
.cab-led-dot,
.cab-soc,
.cab-pct { display: none; }
.cab-brick-leds {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 3;
  transform: none;
  filter: none;
}
.cab-brick-leds i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a2e36;
  box-shadow: 0 0 0 1px rgba(0,0,0,.55);
  filter: none;
  opacity: 1;
}
.cab-brick-leds i.on {
  background: #f4f1e6;
  box-shadow: 0 0 0 1px rgba(40,44,20,.45);
}

.cab-bay.rentable { box-shadow: none; }
.cab-bay.rentable .cab-slot { box-shadow: inset 0 0 0 1.5px rgba(0, 217, 192, .55), inset 0 5px 12px rgba(0,0,0,.72); }
.cab-bay.rentable .cab-brick-leds i.on { background: #00D9C0; box-shadow: 0 0 0 1px #0F3443; }
.cab-bay.stocked { box-shadow: none; }
.cab-bay.stocked .cab-slot { box-shadow: inset 0 0 0 1px rgba(139,144,160,.35), inset 0 5px 12px rgba(0,0,0,.72); }
.cab-bay.stocked .cab-brick-leds i.on { background: #e8ebf0; box-shadow: 0 0 0 1px #5c6370; }
.cab-bay.charging { box-shadow: none; }
.cab-bay.charging .cab-brick { animation: none; filter: none; }
.cab-bay.charging .cab-brick-leds i.on {
  background: #00B4D8;
  box-shadow: 0 0 0 1px #0F3443;
  animation: led-breathe 1.8s ease-in-out infinite;
}
.cab-bay.locked { box-shadow: none; }
.cab-bay.locked .cab-slot { box-shadow: inset 0 0 0 2px #FF7A00, inset 0 5px 12px rgba(0,0,0,.72); }
.cab-bay.locked .cab-brick-leds i.on { background: #FF7A00; box-shadow: 0 0 0 1px #0F3443; }
.cab-bay.fault { box-shadow: none; animation: none; filter: none; }
.cab-bay.fault .cab-slot { box-shadow: inset 0 0 0 2px #ff4d5e, inset 0 5px 12px rgba(0,0,0,.72); }
.cab-bay.fault .cab-brick-leds i.on { background: #ff4d5e; box-shadow: 0 0 0 1px #6a1020; }
.cab-brick.lo .cab-brick-leds i.on { background: #ff4d5e; box-shadow: 0 0 0 1px #6a1020; }
.cab-brick.mid .cab-brick-leds i.on { background: #FF7A00; box-shadow: 0 0 0 1px #0F3443; }

.cab-bay.eject-wait .cab-slot,
.cab-bay.eject-unlock .cab-slot,
.cab-bay.ejecting .cab-slot,
.cab-bay.eject-hold .cab-slot,
.cab-bay.eject-take .cab-slot,
.cab-bay.eject-fail .cab-slot {
  perspective: 480px;
  transform-style: preserve-3d;
}
.cab-bay.eject-wait,
.cab-bay.eject-unlock,
.cab-bay.ejecting,
.cab-bay.eject-hold,
.cab-bay.eject-take,
.cab-bay.eject-fail {
  overflow: visible; z-index: 8; pointer-events: none; filter: none;
}
.cab-bay.ejecting .cab-slot,
.cab-bay.eject-hold .cab-slot,
.cab-bay.eject-take .cab-slot { overflow: visible; }
.cab-bay.eject-wait .cab-slot-led,
.cab-bay.eject-unlock .cab-slot-led,
.cab-bay.ejecting .cab-slot-led,
.cab-bay.eject-hold .cab-slot-led {
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: eject-led .14s steps(2) infinite;
}
.cab-bay.eject-wait .cab-brick,
.cab-bay.eject-wait.charging .cab-brick { animation: motor-chatter .1s linear infinite; }
.cab-bay.eject-unlock .cab-latch,
.cab-bay.ejecting .cab-latch,
.cab-bay.eject-hold .cab-latch,
.cab-bay.eject-take .cab-latch { transform: translateY(-130%); opacity: .2; }
.cab-bay.eject-unlock .cab-brick { animation: unlock-bump .32s ease-out forwards; }
.cab-bay.ejecting .cab-brick,
.cab-bay.ejecting.charging .cab-brick {
  z-index: 9; will-change: transform;
  animation: brick-eject .98s cubic-bezier(.16,.72,.12,1) forwards;
}
.cab-bay.ejecting .cab-pusher { animation: pusher-out .98s cubic-bezier(.16,.72,.12,1) forwards; }
.cab-bay.eject-hold .cab-brick,
.cab-bay.eject-hold.charging .cab-brick {
  z-index: 9;
  transform: translate3d(0, 9px, var(--eject-z)) scale(1.16);
  animation: brick-hold 1.15s ease-in-out infinite;
  box-shadow: 0 18px 28px rgba(0,0,0,.55), 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}
.cab-bay.eject-hold .cab-pusher { transform: translateZ(14px); }
.cab-bay.eject-take .cab-brick,
.cab-bay.eject-take.charging .cab-brick {
  z-index: 9;
  animation: brick-take .5s ease-in forwards;
}
.cab-bay.eject-fail { animation: eject-fail-shake .5s ease; box-shadow: inset 0 0 0 1px rgba(255,90,106,.7); }
.cab-bay.eject-fail .cab-brick { animation: eject-jam .62s cubic-bezier(.3,.05,.25,1); }
.cab-bay.eject-fail .cab-latch { animation: latch-jam .62s ease; }
.cab-bay.eject-fail .cab-slot-led { background: #ff5a6a; animation: eject-led .12s steps(2) infinite; }
.cab-bay.ejected { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }

.cab-base { display: none; }
.cab-vent { display: none; }

.cab-sim[data-n="6"] { --recess-z: -8px; --eject-z: 56px; --ad-bar: 32px; --bay-h: 54px; }
.cab-sim[data-n="6"] .cab-brick { max-height: none; }
.cab-sim.is-tall { --bay-h: 46px; --bay-gap: 8px; }
.cab-sim[data-n="8"] { --ad-bar: 30px; }
.cab-sim[data-n="12"] { --bay-h: 48px; }
.cab-sim[data-n="24"] { --eject-z: 42px; --recess-z: -8px; --ad-bar: 26px; --bay-h: 42px; --bay-gap: 8px; }
.cab-sim[data-n="48"] { --eject-z: 22px; --recess-z: -8px; --ad-bar: 26px; --bay-h: 36px; --bay-gap: 6px; }

@container cabscreen (max-height: 150px) {
  .hero-scene { padding: 8px 10px 6px; }
  .hero-scene h2 { font-size: 15px; }
  .hero-bank { width: 48px; height: 16px; }
  .hero-scene p { font-size: 8px; }
  .cab-ad-copy strong { font-size: 13px; }
  .cab-ad-copy { padding: 16px 10px 8px; }
}
@container cabscreen (max-height: 110px) {
  .hero-scene h2 { font-size: 13px; }
  .hero-scene p { display: none; }
  .hero-bank { margin: 6px auto; }
}

@keyframes led-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .22; }
}
@keyframes charge-pulse { 50% { filter: brightness(1.25); } }
@keyframes login-scan {
  0% { top: 12%; opacity: 0; }
  14% { opacity: 1; }
  86% { opacity: .85; }
  100% { top: 82%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stage::after,
  .kiosk-slots .chg::after { animation: none; }
}
@keyframes fault-blink { 50% { filter: brightness(1.4); } }
@keyframes bay-in { from { opacity: 0; transform: translateX(-10px) scale(.96); } }
@keyframes soc-fill { from { width: 0; } }
@keyframes lcd-pulse { 50% { filter: brightness(1.28); } }
@keyframes ad-ken {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(0, -2%, 0); }
}
@keyframes face-rumble {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0.45px, 0.25px, 0); }
}
@keyframes motor-chatter {
  0%, 100% { transform: translate3d(0, 0, var(--recess-z)); }
  35% { transform: translate3d(0.55px, 0, calc(var(--recess-z) + 3px)); }
  70% { transform: translate3d(-0.4px, 0.4px, var(--recess-z)); }
}
@keyframes unlock-bump {
  0% { transform: translate3d(0, 0, var(--recess-z)); }
  40% { transform: translate3d(0, 1px, calc(var(--recess-z) + 8px)); }
  100% { transform: translate3d(0, 0, calc(var(--recess-z) + 4px)); }
}
@keyframes brick-eject {
  0% { transform: translate3d(0, 0, var(--recess-z)) scale(1); }
  14% { transform: translate3d(0, 2px, 6px) scale(1.03); }
  42% { transform: translate3d(0, 6px, 28px) scale(1.08); }
  100% { transform: translate3d(0, 9px, var(--eject-z)) scale(1.16); }
}
@keyframes pusher-out {
  0% { transform: translateZ(-28px); }
  100% { transform: translateZ(14px); }
}
@keyframes brick-hold {
  50% { transform: translate3d(0, 10px, calc(var(--eject-z) + 5px)) scale(1.17); }
}
@keyframes brick-take {
  0% { transform: translate3d(0, 9px, var(--eject-z)) scale(1.16); opacity: 1; }
  100% {
    transform: translate3d(10px, -30px, calc(var(--eject-z) + 78px)) rotateX(-14deg) scale(1.24);
    opacity: 0;
  }
}
@keyframes eject-led { 50% { opacity: .18; } }
@keyframes eject-fail-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@keyframes eject-jam {
  0% { transform: translate3d(0, 0, var(--recess-z)); }
  28% { transform: translate3d(-1px, 2px, 10px); }
  55% { transform: translate3d(2px, 3px, 16px); }
  100% { transform: translate3d(0, 0, var(--recess-z)); }
}
@keyframes latch-jam {
  35% { transform: translateY(-50%); opacity: .5; }
  100% { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cab-bay.eject-wait .cab-brick,
  .cab-bay.eject-unlock .cab-brick,
  .cab-bay.ejecting .cab-brick,
  .cab-bay.eject-hold .cab-brick,
  .cab-bay.eject-take .cab-brick,
  .cab-bay.eject-fail .cab-brick,
  .cab-sim.is-ejecting .cab-face,
  .cab-bay.eject-fail,
  .cab-ad-slide img,
  .cab-booth-lights i,
  .kiosk-slots .chg::after,
  .cab-bay.charging .cab-brick-leds i.on,
  .busy-spin,
  .btn.is-busy::after { animation: none; }
  .cab-bay.ejecting .cab-brick,
  .cab-bay.eject-take .cab-brick { opacity: 0; }
  .btn:active:not(:disabled),
  .btn.is-press:not(:disabled),
  .nav-item:active, .nav-item.is-press,
  .nav-parent:active, .nav-parent.is-press,
  .tab:active, .tab.is-press,
  .topbar-icon:active, .topbar-icon.is-press,
  .cab-bay:active, .cab-bay.is-press { transform: none; }
}


@media (max-width: 1280px) {
  .cab-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 1180px) {
  .cab-layout {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    max-height: none;
  }
  .cab-stage-wrap {
    height: auto;
    max-height: none;
    min-height: 0;
    width: auto;
    margin-inline: 0;
  }
  .cab-stage-cluster { max-width: 380px; }
  .cab-meta { position: static; max-height: none; overflow: visible; height: auto; }
  .cab-meta-hd { flex-wrap: wrap; }
  .cab-gmap, .cab-gmap-canvas { min-height: 140px; height: 140px; }
}
@media (max-width: 720px) {
  .dash-clock { width: 100%; }
  .cab-stage-wrap {
    height: auto;
    min-height: 0;
    padding: 16px 12px 18px;
  }
  .cab-sim { transform: perspective(1400px) rotateX(2deg) rotateY(-8deg); }
  .cab-bezel { transform: none; }
  .cab-bezel::before { display: none; }
  .cab-toolbar .muted { display: none; }
  .cab-cmd { align-items: stretch; }
  .cab-cmd > .btn-primary { width: 100%; }
  .cab-facts { grid-template-columns: 1fr; }
  .cab-fact.is-wide { grid-column: auto; }
  .cab-op { grid-template-columns: 44px minmax(0, 1fr); }
  .cab-op .cab-inline { grid-column: 2; justify-self: start; }
  .cab-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cab-split { grid-template-columns: 1fr; }
  .cab-slot-row {
    grid-template-columns: 40px auto 1fr auto;
  }
  .cab-slot-row .batt-inline,
  .cab-slot-row .cab-slot-meta {
    grid-column: 2 / 4;
  }
}
@media (max-height: 640px) {
  .cab-toolbar { margin-bottom: 6px; }
}

html[data-skin="default"] .cab-stage-wrap,
html[data-skin="day"] .cab-stage-wrap {
  background: #d8dbe2;
}
html[data-skin="default"] .cab-install-photo,
html[data-skin="day"] .cab-install-photo,
html[data-skin="default"] .cab-install-photo-well,
html[data-skin="day"] .cab-install-photo-well {
  background: #eef1f5;
}
html[data-skin="default"] .cab-install-photo span,
html[data-skin="day"] .cab-install-photo span {
  background: #fff;
}
html[data-skin="dark"] .cab-stage-wrap {
  background: #16181e;
}
html[data-skin="dark"] .cab-booth-sky {
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 46%),
    linear-gradient(180deg, #1a1d24 0%, #16181e 70%);
}
html[data-skin="dark"] .cab-booth-ceiling {
  background: linear-gradient(180deg, #0e1014, #1a1d24);
}
html[data-skin="dark"] .cab-booth-rail {
  background: linear-gradient(#2a2e36, #3a404c);
}
html[data-skin="dark"] .cab-booth-wall {
  background:
    linear-gradient(90deg, rgba(0,0,0,.25) 0, transparent 14%, transparent 86%, rgba(0,0,0,.25)),
    linear-gradient(180deg, #23262e 0%, #1a1d24 100%);
}
html[data-skin="dark"] .cab-booth-molding {
  background: linear-gradient(#2c313a, #1c1f26);
}
html[data-skin="dark"] .cab-booth-l,
html[data-skin="dark"] .cab-booth-r {
  background: linear-gradient(180deg, #1c1f26, #14161b);
}
html[data-skin="dark"] .cab-booth-pillar {
  background: linear-gradient(90deg, #1a1d24, #3a404c 40%, #16181e);
}
html[data-skin="dark"] .cab-booth-floor {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 18%),
    linear-gradient(#2a2e36, #1c1f26);
}
html[data-skin="dark"] .cab-booth-poster {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 28%, transparent), rgba(20,24,8,.2) 46%, #2a2e36 46% 100%);
  box-shadow: 0 8px 16px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08);
}
html[data-skin="dark"] .cab-booth-vignette {
  box-shadow: inset 0 0 90px rgba(0,0,0,.45);
}
html[data-skin="dark"] .cab-lcd,
html[data-skin="dark"] .cab-lcd-sn,
html[data-skin="dark"] .cab-lcd-stat,
html[data-skin="dark"] .cab-sim.is-offline .cab-lcd-stat,
html[data-skin="dark"] .cab-legend {
  color: #15181e;
}
html[data-skin="dark"] .login-stage .cab-lcd,
html[data-skin="dark"] .login-stage .cab-lcd-sn,
html[data-skin="dark"] .login-stage .cab-lcd-msg,
html[data-skin="default"] .login-stage .cab-lcd,
html[data-skin="day"] .login-stage .cab-lcd,
html[data-skin="default"] .login-stage .cab-lcd-sn,
html[data-skin="day"] .login-stage .cab-lcd-sn,
html[data-skin="default"] .login-stage .cab-lcd-msg,
html[data-skin="day"] .login-stage .cab-lcd-msg {
  color: #d7f4f0;
  background: rgba(7, 28, 36, .9);
}
html[data-skin="dark"] .login-stage .cab-lcd-stat,
html[data-skin="default"] .login-stage .cab-lcd-stat,
html[data-skin="day"] .login-stage .cab-lcd-stat { color: #00D9C0; }

/* ============================ 默认 / 深色 ============================ */
html[data-skin="default"],
html[data-skin="day"] {
  --bg: var(--brand-day-bg);
  --panel: #ffffff;
  --ink: #0F3443;
  --muted: #667085;
  --line: rgba(20, 28, 40, 0.1);
  --navy: #f7f8fa;
  --navy-2: #ffffff;
  --accent: var(--brand-accent-day);
  --accent-ink: #fffdf2;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --ok: #0B7A70;
  --ok-soft: rgba(0, 217, 192, 0.16);
  --warn: #E06A00;
  --warn-soft: rgba(255, 122, 0, 0.14);
  --danger: #b42318;
  --danger-soft: rgba(180, 35, 24, 0.12);
  --shadow: 0 10px 28px rgba(20, 28, 40, 0.08);
  --glow: none;
  color-scheme: light;
}
html[data-skin="default"] body,
html[data-skin="day"] body {
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% -10%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(80,160,150,.05), transparent 50%),
    var(--bg);
}
html[data-skin="default"] .sidebar,
html[data-skin="day"] .sidebar {
  background: #f4f6f8;
  color: #5b6370;
  border-right-color: rgba(20, 28, 40, 0.08);
}
html[data-skin="default"] .brand { border-bottom-color: rgba(20, 28, 40, 0.08); }
html[data-skin="day"] .brand { border-bottom-color: rgba(20, 28, 40, 0.08); }
html[data-skin="default"] .brand-title { color: #111418; }
html[data-skin="day"] .brand-title { color: #111418; }
html[data-skin="default"] .login-page .brand-title,
html[data-skin="day"] .login-page .brand-title { color: #fff; }
html[data-skin="default"] .login-page .brand-sub,
html[data-skin="day"] .login-page .brand-sub { color: #d7f4f0; }
html[data-skin="default"] .nav-block { color: #8a93a3; }
html[data-skin="day"] .nav-block { color: #8a93a3; }
html[data-skin="default"] .nav-parent { color: #2e3440; }
html[data-skin="day"] .nav-parent { color: #2e3440; }
html[data-skin="default"] .nav-parent:hover,
html[data-skin="day"] .nav-parent:hover,
html[data-skin="default"] .nav-parent.open { background: rgba(20, 28, 40, 0.04); color: #111418; }
html[data-skin="day"] .nav-parent.open { background: rgba(20, 28, 40, 0.04); color: #111418; }
html[data-skin="default"] .nav-sub { border-left-color: rgba(20, 28, 40, 0.1); }
html[data-skin="day"] .nav-sub { border-left-color: rgba(20, 28, 40, 0.1); }
html[data-skin="default"] .nav-item { color: #5b6370; }
html[data-skin="day"] .nav-item { color: #5b6370; }
html[data-skin="default"] .nav-item:hover { background: rgba(20, 28, 40, 0.05); color: #1b1f27; }
html[data-skin="day"] .nav-item:hover { background: rgba(20, 28, 40, 0.05); color: #1b1f27; }
html[data-skin="default"] .nav-item.active,
html[data-skin="day"] .nav-item.active,
html[data-skin="default"] .nav-item.solo.active,
html[data-skin="day"] .nav-item.solo.active,
html[data-skin="default"] .sidebar-foot .nav-item.is-on,
html[data-skin="day"] .sidebar-foot .nav-item.is-on {
  background: rgba(0, 217, 192, 0.16);
  color: #0F3443;
}
html[data-skin="default"] .nav-item.active .nav-ico,
html[data-skin="day"] .nav-item.active .nav-ico { color: #0F3443; }
html[data-skin="default"] .btn-primary,
html[data-skin="day"] .btn-primary {
  background: #00D9C0;
  color: #0F3443;
}
html[data-skin="default"] .btn-ghost,
html[data-skin="day"] .btn-ghost { color: #0F3443; }
html[data-skin="default"] .btn-secondary,
html[data-skin="day"] .btn-secondary { color: #0F3443; border-color: rgba(15, 52, 67, 0.22); }
html[data-skin="default"] .dash-fee,
html[data-skin="day"] .dash-fee {
  background: var(--accent-soft);
}
html[data-skin="default"] .nav-sec:has(.nav-parent.open) { background: rgba(20, 28, 40, 0.03); }
html[data-skin="day"] .nav-sec:has(.nav-parent.open) { background: rgba(20, 28, 40, 0.03); }
html[data-skin="default"] .sidebar-foot { border-top-color: rgba(20, 28, 40, 0.08); }
html[data-skin="day"] .sidebar-foot { border-top-color: rgba(20, 28, 40, 0.08); }
html[data-skin="default"] .page-tab,
html[data-skin="day"] .page-tab {
  background: rgba(255, 255, 255, .72);
  color: #5b6370;
}
html[data-skin="default"] .page-tab.is-on,
html[data-skin="day"] .page-tab.is-on {
  background: #fff;
  color: #0F3443;
}
html[data-skin="default"] .page-tab i:hover,
html[data-skin="day"] .page-tab i:hover { background: rgba(20, 28, 40, .06); }
html[data-skin="default"] .topbar,
html[data-skin="day"] .topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--line);
}
html[data-skin="default"] .card,
html[data-skin="day"] .card,
html[data-skin="default"] .kpi,
html[data-skin="day"] .kpi,
html[data-skin="default"] .toolbar,
html[data-skin="day"] .toolbar,
html[data-skin="default"] [data-list-card],
html[data-skin="day"] [data-list-card] {
  background: #fff;
  box-shadow: var(--shadow);
}
html[data-skin="default"] table th { background: #f7f8fb; color: var(--muted); }
html[data-skin="day"] table th { background: #f7f8fb; color: var(--muted); }
html[data-skin="default"] table td { border-color: var(--line); }
html[data-skin="day"] table td { border-color: var(--line); }
html[data-skin="default"] .login-page,
html[data-skin="day"] .login-page {
  background:
    linear-gradient(180deg, rgba(7, 16, 24, .28) 0%, rgba(7, 16, 24, .08) 32%, rgba(7, 16, 24, .18) 100%),
    url("/ads/all-night.jpg") center bottom / cover no-repeat;
  color: #e7f6f4;
}
html[data-skin="default"] .login-card,
html[data-skin="day"] .login-card {
  background: rgba(8, 24, 32, 0.82);
  border-color: rgba(0, 217, 192, .28);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(0, 217, 192, .25);
}
html[data-skin="default"] .login-card .brand-title,
html[data-skin="day"] .login-card .brand-title { color: #fff; }
html[data-skin="default"] .login-card .field input,
html[data-skin="day"] .login-card .field input {
  background: rgba(4, 16, 22, .72);
  color: #f4fbfa;
  border-color: rgba(0, 217, 192, .22);
}
html[data-skin="default"] .login-card .login-submit,
html[data-skin="day"] .login-card .login-submit {
  background: #00D9C0;
  color: #0F3443;
}
html[data-skin="default"] .login-page .lang-switch,
html[data-skin="day"] .login-page .lang-switch,
html[data-skin="dark"] .login-page .lang-switch,
html[data-skin="default"] .login-page .skin-switch,
html[data-skin="day"] .login-page .skin-switch,
html[data-skin="dark"] .login-page .skin-switch {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(8, 24, 32, .55);
}
html[data-skin="default"] .login-page .lang-switch button,
html[data-skin="day"] .login-page .lang-switch button,
html[data-skin="dark"] .login-page .lang-switch button,
html[data-skin="default"] .login-page .skin-switch button,
html[data-skin="day"] .login-page .skin-switch button,
html[data-skin="dark"] .login-page .skin-switch button,
html[data-skin="default"] .login-page .field label,
html[data-skin="day"] .login-page .field label,
html[data-skin="dark"] .login-page .field label,
html[data-skin="default"] .login-page .remember,
html[data-skin="day"] .login-page .remember,
html[data-skin="dark"] .login-page .remember,
html[data-skin="default"] .login-page .login-card-title,
html[data-skin="day"] .login-page .login-card-title,
html[data-skin="dark"] .login-page .login-card-title {
  color: #e7f6f4;
}
html[data-skin="default"] .login-page input,
html[data-skin="day"] .login-page input,
html[data-skin="dark"] .login-page input {
  background: rgba(4, 16, 22, .72);
  color: #f4fbfa;
  border-color: rgba(0, 217, 192, .28);
}
html[data-skin="default"] .login-page input::placeholder,
html[data-skin="day"] .login-page input::placeholder,
html[data-skin="dark"] .login-page input::placeholder {
  color: #9ec4cc;
}
html[data-skin="default"] .login-page input[type="checkbox"],
html[data-skin="day"] .login-page input[type="checkbox"],
html[data-skin="dark"] .login-page input[type="checkbox"] {
  background: transparent;
  accent-color: #00D9C0;
}
html[data-skin="default"] .drawer { background: #fff; color: var(--ink); }
html[data-skin="day"] .drawer { background: #fff; color: var(--ink); }
html[data-skin="default"] .modal,
html[data-skin="day"] .modal {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 24px 64px rgba(20, 28, 40, 0.18);
}
html[data-skin="default"] .x-close { background: #eef1f5; color: #333; border-color: var(--line); }
html[data-skin="day"] .x-close { background: #eef1f5; color: #333; border-color: var(--line); }
html[data-skin="default"] input,
html[data-skin="day"] input,
html[data-skin="default"] select,
html[data-skin="day"] select,
html[data-skin="default"] textarea,
html[data-skin="day"] textarea {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
html[data-skin="default"] .pager select { background: #fff; color: var(--ink); }
html[data-skin="day"] .pager select { background: #fff; color: var(--ink); }
html[data-skin="default"] .matrix-wrap table th:first-child,
html[data-skin="day"] .matrix-wrap table th:first-child,
html[data-skin="default"] .matrix-wrap table td:first-child { background: #fff; }
html[data-skin="day"] .matrix-wrap table td:first-child { background: #fff; }
html[data-skin="default"] .matrix-wrap table thead th:first-child { background: #f7f8fb; }
html[data-skin="day"] .matrix-wrap table thead th:first-child { background: #f7f8fb; }
html[data-skin="default"] .globe-panel,
html[data-skin="day"] .globe-panel,
html[data-skin="default"] .globe-stage { background: #dce3ea; }
html[data-skin="day"] .globe-stage { background: #dce3ea; }
html[data-skin="default"] .gmap-box { background: #e8edf2; }
html[data-skin="day"] .gmap-box { background: #e8edf2; }
html[data-skin="default"] .pill,
html[data-skin="day"] .pill,
html[data-skin="default"] .user,
html[data-skin="day"] .user {
  background: #f2f4f7;
  color: var(--muted);
  border-color: var(--line);
}
html[data-skin="default"] .menu-toggle { background: #fff; color: var(--ink); }
html[data-skin="day"] .menu-toggle { background: #fff; color: var(--ink); }
html[data-skin="default"] .section-note { color: var(--ink); }
html[data-skin="day"] .section-note { color: var(--ink); }
html[data-skin="default"] .callout { background: #f7f8fb; color: var(--ink); }
html[data-skin="day"] .callout { background: #f7f8fb; color: var(--ink); }
html[data-skin="default"] .chain-item,
html[data-skin="day"] .chain-item,
html[data-skin="default"] .sim-out,
html[data-skin="day"] .sim-out,
html[data-skin="default"] .flow-row { background: #fff; }
html[data-skin="day"] .flow-row { background: #fff; }
html[data-skin="default"] .banner-hd,
html[data-skin="day"] .banner-hd,
html[data-skin="default"] .sim-hit { color: var(--ink); }
html[data-skin="day"] .sim-hit { color: var(--ink); }
html[data-skin="default"] .banner-bd,
html[data-skin="day"] .banner-bd,
html[data-skin="default"] .banner-ft { color: var(--muted); }
html[data-skin="day"] .banner-ft { color: var(--muted); }
html[data-skin="default"] .perm-table th:first-child,
html[data-skin="day"] .perm-table th:first-child,
html[data-skin="default"] .perm-table td:first-child { background: #f7f8fb; }
html[data-skin="day"] .perm-table td:first-child { background: #f7f8fb; }
html[data-skin="default"] .steps { background: #fff; }
html[data-skin="day"] .steps { background: #fff; }
html[data-skin="default"] .step .n { background: #eef1f5; }
html[data-skin="day"] .step .n { background: #eef1f5; }
html[data-skin="default"] .map-ph { background: #e8edf2; }
html[data-skin="day"] .map-ph { background: #e8edf2; }
html[data-skin="default"] .lang-switch,
html[data-skin="day"] .lang-switch,
html[data-skin="default"] .skin-switch,
html[data-skin="day"] .skin-switch {
  background: #fff;
  border-color: var(--line);
}
html[data-skin="default"] .lang-switch button,
html[data-skin="day"] .lang-switch button,
html[data-skin="default"] .skin-switch button,
html[data-skin="day"] .skin-switch button {
  background: transparent;
  color: var(--muted);
}
html[data-skin="default"] .lang-switch button.active,
html[data-skin="day"] .lang-switch button.active,
html[data-skin="default"] .skin-switch button.active,
html[data-skin="day"] .skin-switch button.active {
  background: var(--accent);
  color: var(--accent-ink);
}
html[data-skin="default"] .cab-qr,
html[data-skin="day"] .cab-qr {
  background: rgba(20, 28, 40, 0.04);
}
html[data-skin="default"] .cab-card,
html[data-skin="day"] .cab-card,
html[data-skin="default"] .cab-ops,
html[data-skin="day"] .cab-ops {
  background: #f7f8fb;
}
html[data-skin="default"] .cab-fact,
html[data-skin="day"] .cab-fact {
  background: #fff;
  border-color: var(--line);
}
html[data-skin="default"] .cab-cmd-links > .btn:hover,
html[data-skin="day"] .cab-cmd-links > .btn:hover,
html[data-skin="default"] .cab-cmd-links .cab-actions-more > .btn:hover,
html[data-skin="day"] .cab-cmd-links .cab-actions-more > .btn:hover {
  background: rgba(20, 28, 40, 0.05);
}
html[data-skin="default"] .cab-slot-no,
html[data-skin="day"] .cab-slot-no {
  background: #fff;
}
html[data-skin="default"] .cab-slot-row:hover,
html[data-skin="day"] .cab-slot-row:hover {
  background: rgba(20, 28, 40, 0.04);
}
html[data-skin="default"] .topbar-market select,
html[data-skin="day"] .topbar-market select {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23646b78' d='M1.2 1.1 6 6.3 10.8 1.1 12 2.3 6 8 0 2.3z'/></svg>") right 10px center / 9px 6px no-repeat,
    #fff;
  color: #1b1f27;
}
html[data-skin="default"] .topbar-icon,
html[data-skin="day"] .topbar-icon,
html[data-skin="default"] .topbar-cs,
html[data-skin="day"] .topbar-cs {
  background: #fff;
}
html[data-skin="default"] .topbar-who-txt strong,
html[data-skin="day"] .topbar-who-txt strong {
  color: #1b1f27;
}

html[data-skin="default"] .tag-green,
html[data-skin="day"] .tag-green {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: rgba(11, 122, 112, 0.28);
}
html[data-skin="default"] .tag-blue,
html[data-skin="day"] .tag-blue {
  background: rgba(0, 180, 216, 0.12);
  color: #0A6A82;
  border-color: rgba(0, 180, 216, 0.28);
}
html[data-skin="default"] .tag-orange,
html[data-skin="day"] .tag-orange {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: rgba(224, 106, 0, 0.28);
}
html[data-skin="default"] .tag-red,
html[data-skin="day"] .tag-red {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.2);
}
html[data-skin="default"] .tag-gray,
html[data-skin="day"] .tag-gray {
  background: #eef1f5;
  color: #3f4654;
  border-color: rgba(20, 28, 40, 0.12);
}
html[data-skin="default"] .tag-violet,
html[data-skin="day"] .tag-violet {
  background: rgba(15, 52, 67, 0.08);
  color: #0F3443;
  border-color: rgba(15, 52, 67, 0.18);
}
html[data-skin="default"] .tag-teal,
html[data-skin="day"] .tag-teal {
  background: rgba(0, 217, 192, 0.14);
  color: #0B7A70;
  border-color: rgba(0, 217, 192, 0.32);
}
html[data-skin="default"] .cs-list,
html[data-skin="day"] .cs-list {
  background: #f7f8fb;
}
html[data-skin="default"] .cs-assistant,
html[data-skin="day"] .cs-assistant {
  background: #f4f6f9;
}
html[data-skin="default"] .cs-compose textarea,
html[data-skin="day"] .cs-compose textarea {
  background: #fff;
}
html[data-skin="default"] .cs-count:not(.is-human),
html[data-skin="day"] .cs-count:not(.is-human) {
  background: #e8ecf2;
}
html[data-skin="default"] .cs-toast,
html[data-skin="day"] .cs-toast {
  background: #fff;
  box-shadow: 0 16px 40px rgba(20, 28, 40, 0.16);
}
html[data-skin="default"] .remote-tabs,
html[data-skin="day"] .remote-tabs {
  background: #f2f4f7;
  border-color: var(--line);
}
html[data-skin="default"] .remote-act,
html[data-skin="day"] .remote-act {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
html[data-skin="default"] .remote-params,
html[data-skin="day"] .remote-params {
  background: #f7f8fb;
  border-color: var(--line);
}
.country-flag { font-size: 22px; line-height: 1; }
.country-art { width: 112px; height: 63px; object-fit: cover; object-position: left center; border-radius: 6px; display: block; background: #0c1a22; }
.country-art-missing { width: 112px; height: 63px; border-radius: 6px; display: grid; place-items: center; background: #0c1a22; color: #9aa3ad; font-size: 12px; }
.login-stage .cab-sim {
  --shell: #0F3443;
  --shell-hi: #1c5a6e;
  --shell-lo: #0a2834;
  --glow: #d7f6f2;
  --bay-h: 46px;
  --bay-gap: 8px;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  transform: none;
}
.login-stage .cab-bezel { flex: 1 1 auto; min-height: 0; }
.login-stage .cab-screen,
.login-stage .cab-sim.is-tall .cab-screen,
.login-stage .cab-sim.is-noscreen .cab-screen {
  flex: 1 1 auto;
  height: auto;
  min-height: 96px;
  max-height: none;
}
.login-stage .cab-screw {
  background: radial-gradient(circle at 35% 30%, #8eb4c0, #1a4554 62%, #0a1c24);
}
.login-stage .cab-lcd,
.login-stage .cab-sim.is-offline .cab-lcd,
.login-stage .cab-sim.is-offline .cab-lcd-stat {
  background: rgba(7, 28, 36, .9);
  color: #d7f4f0;
  border-color: rgba(0, 217, 192, .28);
}
.login-stage .cab-lcd-sn,
.login-stage .cab-lcd-stat,
.login-stage .cab-lcd-msg {
  color: #d7f4f0;
}
.login-stage .cab-lcd-stat { color: #00D9C0; }
@media (max-width: 1080px) {
  .login-stage .cab-sim { width: min(280px, 100%); max-width: 280px; --bay-h: 44px; }
  .login-stage .cab-screen,
  .login-stage .cab-sim.is-tall .cab-screen,
  .login-stage .cab-sim.is-noscreen .cab-screen {
    flex-basis: 150px; height: 150px; min-height: 150px; max-height: 150px;
  }
}
@media (max-width: 860px) {
  .login-stage .cab-sim { width: min(260px, 100%); max-width: 260px; }
  .login-shell { flex-direction: column; justify-content: center; align-items: center; gap: 28px; min-height: 0; padding: 20px 18px 32px; }
}
@media (max-width: 720px) {
  .login-page { --pair-w: 100%; --pair-h: auto; }
  .login-mark { font-size: 20vw; top: 64px; left: 12px; }
  .login-top {
    padding: max(12px, env(safe-area-inset-top)) 14px 0;
    align-items: flex-start;
  }
  .login-mast .brand-mark { width: 44px; height: 44px; }
  .login-mast .brand-title { font-size: 20px; }
  .login-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 12px 14px max(28px, env(safe-area-inset-bottom));
  }
  .login-copy { width: 100%; max-width: none; }
  .login-pitch h1 { white-space: normal; font-size: 32px; }
  .login-lines span { font-size: 20px; }
  .login-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 18px;
  }
  .login-stage,
  .login-pair .login-card {
    width: min(100%, 420px);
    height: auto;
    min-height: 0;
  }
  .login-stage .cab-sim { width: 100%; max-width: 100%; height: auto; }
  .login-captcha { flex-wrap: wrap; }
  .login-captcha-pic { width: 118px; height: 44px; }
  .topbar { flex-wrap: wrap; gap: 8px; }
  .page-title-text { overflow: hidden; }
  .page-title { overflow: hidden; text-overflow: ellipsis; }
}
.user-cell { display:flex; align-items:center; gap:8px; }
.user-avatar, .avatar-ph { width:32px; height:32px; border-radius:10px; object-fit:cover; flex:none; }
.avatar-ph { display:inline-grid; place-items:center; background:#12343f; color:#f4f7f8; font-weight:700; }


