/* ==========================================================================
   站点综合体 · Spatial Bento & 3-Mode Theme Design System (v2.0)
   Themes: glass (空间毛玻璃, default) | light (纯净昼白) | dark (深邃曜黑)
   Viewports: Mobile (<768px) | Tablet (768px-1179px) | Win Desktop (>=1180px)
   Zero external CDN dependencies · Hardware-accelerated GPU friendly
   ========================================================================== */

:root,
html[data-theme="glass"],
body[data-theme="glass"] {
  color-scheme: light;
  --bg: #e8f0f8;
  --rail-bg: rgba(15, 29, 46, 0.84);
  --rail-ink: #f1f7fc;
  --rail-muted: #94adc4;
  --rail-line: rgba(255, 255, 255, 0.10);

  --surface: rgba(255, 255, 255, 0.66);
  --surface-2: rgba(246, 250, 254, 0.56);
  --surface-elevated: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --dock-bg: rgba(255, 255, 255, 0.76);

  --ink: #0f2133;
  --ink-2: #243b53;
  --muted: #566f86;
  --line: rgba(148, 174, 200, 0.34);
  --line-strong: rgba(255, 255, 255, 0.78);

  --pri: #0d7a82;
  --pri-hi: #095e65;
  --pri-glow: rgba(13, 122, 130, 0.24);
  --pri-soft: rgba(13, 122, 130, 0.12);

  --ok: #15803d;
  --ok-soft: rgba(21, 128, 61, 0.12);
  --ok-ink: #146c34;

  --warn: #c26a0c;
  --warn-soft: rgba(217, 119, 6, 0.14);
  --warn-ink: #9a4f06;

  --err: #c82829;
  --err-soft: rgba(200, 40, 41, 0.12);
  --err-ink: #b01c1c;

  --info-soft: rgba(13, 122, 130, 0.11);
  --info-line: rgba(13, 122, 130, 0.30);
  --info-ink: #0a5f66;

  --blur-panel: blur(20px) saturate(170%);
  --blur-dock: blur(24px) saturate(185%);
  --shadow: 0 10px 30px -8px rgba(15, 36, 62, 0.08), 0 2px 6px rgba(15, 36, 62, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --shadow-hover: 0 16px 36px -8px rgba(15, 36, 62, 0.13), 0 4px 10px rgba(15, 36, 62, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --shadow-modal: 0 24px 64px -12px rgba(8, 22, 38, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.85);

  --tone-accepted-bg: rgba(226, 247, 235, 0.74);
  --tone-accepted-line: #278352;
  --tone-picked-bg: rgba(255, 238, 240, 0.76);
  --tone-picked-line: #d65b6a;
  --tone-over-bg: rgba(254, 224, 226, 0.84);
  --tone-over-line: #c42329;
  --tone-waiting-bg: rgba(245, 239, 228, 0.76);
  --tone-waiting-line: #a0824e;

  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 8px;

  --card: var(--surface);
  --panel: var(--surface);
  --txt: var(--ink);
  --dispatch-alert: #b4232a;
  --dispatch-gold: #945d0e;
}

/* ☀️ 纯净昼白模式（零模糊开销 · 强光户外高对比度） */
html[data-theme="light"],
body[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --rail-bg: #ffffff;
  --rail-ink: #0f172a;
  --rail-muted: #64748b;
  --rail-line: #e2e8f0;

  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-elevated: #ffffff;
  --surface-solid: #ffffff;
  --dock-bg: #ffffff;

  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #5a6b82;
  --line: #dfe6f0;
  --line-strong: #cbd5e1;

  --pri: #0f766e;
  --pri-hi: #115e59;
  --pri-glow: rgba(15, 118, 110, 0.16);
  --pri-soft: #e6f6f4;

  --blur-panel: none;
  --blur-dock: none;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 6px 18px -6px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 10px 26px -6px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 24px 56px -12px rgba(15, 23, 42, 0.22);

  --tone-accepted-bg: #eef9f2;
  --tone-accepted-line: #278352;
  --tone-picked-bg: #fff4f5;
  --tone-picked-line: #d65b6a;
  --tone-over-bg: #fde8e9;
  --tone-over-line: #c42329;
  --tone-waiting-bg: #f6f1e8;
  --tone-waiting-line: #a0824e;
}

/* 🌙 深邃曜黑模式（夜班护眼 · OLED 层次黑） */
html[data-theme="dark"],
body[data-theme="dark"],
body.night {
  color-scheme: dark;
  --bg: #090e17;
  --rail-bg: #0d1421;
  --rail-ink: #e8f0f8;
  --rail-muted: #8296ae;
  --rail-line: rgba(148, 163, 184, 0.12);

  --surface: rgba(18, 27, 42, 0.88);
  --surface-2: rgba(13, 20, 33, 0.92);
  --surface-elevated: #172336;
  --surface-solid: #131d2e;
  --dock-bg: rgba(14, 22, 35, 0.90);

  --ink: #eef4fa;
  --ink-2: #cbd8e6;
  --muted: #8da2b9;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(255, 255, 255, 0.08);

  --pri: #20b2aa;
  --pri-hi: #38cfc7;
  --pri-glow: rgba(32, 178, 170, 0.25);
  --pri-soft: rgba(32, 178, 170, 0.16);

  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, 0.16);
  --ok-ink: #6ee7b7;

  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.18);
  --warn-ink: #fcd34d;

  --err: #ef4444;
  --err-soft: rgba(239, 68, 68, 0.18);
  --err-ink: #fca5a5;

  --info-soft: rgba(32, 178, 170, 0.18);
  --info-line: rgba(56, 207, 199, 0.36);
  --info-ink: #99f6e4;

  --blur-panel: blur(18px) saturate(140%);
  --blur-dock: blur(22px) saturate(160%);
  --shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-hover: 0 16px 38px -8px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --shadow-modal: 0 28px 68px -10px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --tone-accepted-bg: rgba(20, 52, 40, 0.78);
  --tone-accepted-line: #34d399;
  --tone-picked-bg: rgba(58, 30, 40, 0.78);
  --tone-picked-line: #f472b6;
  --tone-over-bg: rgba(74, 25, 34, 0.86);
  --tone-over-line: #f87171;
  --tone-waiting-bg: rgba(48, 43, 35, 0.80);
  --tone-waiting-line: #cbb07a;

  --dispatch-alert: #ff9ea2;
  --dispatch-gold: #f7c96e;
}

/* ── 基础重置与折射氛围光底 ── */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* 毛玻璃与深邃黑的背景折射光晕层（纯白模式下完全关闭保持纯净） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, rgba(14, 165, 233, 0.18) 0%, transparent 46%),
    radial-gradient(circle at 86% 12%, rgba(13, 148, 136, 0.17) 0%, transparent 44%),
    radial-gradient(circle at 76% 84%, rgba(99, 102, 241, 0.13) 0%, transparent 48%),
    radial-gradient(circle at 20% 86%, rgba(245, 158, 11, 0.09) 0%, transparent 42%);
}
html[data-theme="light"] body::before,
body[data-theme="light"]::before {
  background: linear-gradient(180deg, #f8fafd 0%, #f1f5f9 100%);
}
html[data-theme="dark"] body::before,
body[data-theme="dark"]::before,
body.night::before {
  background:
    radial-gradient(circle at 16% 12%, rgba(20, 184, 166, 0.11) 0%, transparent 42%),
    radial-gradient(circle at 85% 18%, rgba(56, 189, 248, 0.09) 0%, transparent 44%),
    radial-gradient(circle at 50% 95%, rgba(99, 102, 241, 0.07) 0%, transparent 48%);
}

[hidden] { display: none !important; }

/* ── 表单与按钮交互基元 ── */
input, select, textarea, button {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 7px 12px;
  background: var(--surface-elevated);
  color: var(--ink);
  min-height: 36px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.12s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pri);
  box-shadow: 0 0 0 3px var(--pri-soft);
}
button, a.btn {
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  user-select: none;
}
button:hover:not(:disabled), a.btn:hover {
  border-color: var(--pri);
}
button:active:not(:disabled), a.btn:active {
  transform: scale(0.985);
}
button:disabled { opacity: 0.48; cursor: not-allowed; }

button.pri, button.btn.pri, a.btn.pri {
  background: linear-gradient(135deg, var(--pri) 0%, var(--pri-hi) 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px -2px var(--pri-glow);
}
html[data-theme="dark"] button.pri,
body[data-theme="dark"] button.pri,
body.night button.pri,
html[data-theme="dark"] a.btn.pri,
body.night a.btn.pri {
  color: #041f1e;
  font-weight: 700;
}
button.pri:hover:not(:disabled), a.btn.pri:hover {
  filter: brightness(1.06);
}
button.danger, button.btn.danger, a.btn.danger {
  background: var(--err-soft);
  border-color: rgba(200, 40, 41, 0.30);
  color: var(--err-ink);
}
button.danger:hover:not(:disabled), a.btn.danger:hover {
  background: var(--err);
  border-color: var(--err);
  color: #fff;
}
button.ghost { background: transparent; border-color: transparent; }
button[aria-pressed="true"] {
  background: var(--pri);
  border-color: var(--pri);
  color: #fff;
}
html[data-theme="dark"] button[aria-pressed="true"],
body.night button[aria-pressed="true"] {
  color: #041f1e;
}
a.btn {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  color: var(--ink);
  background: var(--surface-elevated);
  min-height: 36px;
}
a.btn.active { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12.5px; min-height: 31px; border-radius: 8px; }

/* ── 三态主题分段胶囊切换器 (.theme-seg) ── */
.theme-seg {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  backdrop-filter: var(--blur-panel);
  -webkit-backdrop-filter: var(--blur-panel);
}
.side-rail .theme-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  background: rgba(128, 152, 178, 0.14);
  border-color: var(--rail-line);
}
.theme-seg button {
  min-height: 28px;
  padding: 3px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
}
.side-rail .theme-seg button {
  color: var(--rail-muted);
  padding: 4px 4px;
  font-size: 11.5px;
}
.theme-seg button.active,
.theme-seg button[aria-pressed="true"] {
  background: var(--surface-solid);
  color: var(--pri);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}
html[data-theme="dark"] .theme-seg button.active,
body.night .theme-seg button.active {
  background: #22324a;
  color: var(--pri-hi);
}

/* ==========================================================================
   三端响应式主骨架：Win 宽屏 (>=1180px) · 平板 (768px-1179px) · 手机 (<768px)
   ========================================================================== */
.app-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.side-rail {
  background: var(--rail-bg);
  backdrop-filter: var(--blur-dock);
  -webkit-backdrop-filter: var(--blur-dock);
  color: var(--rail-ink);
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  border-right: 1px solid var(--rail-line);
  z-index: 30;
}
.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--rail-line);
}
.rail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
  flex-shrink: 0;
}
.rail-dot.warn {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.24);
}
.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}
.rail-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--rail-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background 0.16s ease, transform 0.12s ease;
}
.rail-link:hover {
  background: rgba(148, 163, 184, 0.14);
  border-color: transparent;
}
.rail-link.active {
  background: linear-gradient(135deg, var(--pri) 0%, var(--pri-hi) 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px -4px var(--pri-glow);
}
html[data-theme="dark"] .rail-link.active,
body.night .rail-link.active {
  color: #041f1e;
  font-weight: 700;
}
.rail-foot {
  border-top: 1px solid var(--rail-line);
  padding-top: 14px;
  font-size: 12px;
  color: var(--rail-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rail-user-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(148, 163, 184, 0.10);
  color: var(--rail-ink);
  font-weight: 600;
  font-size: 12.5px;
}

.main-stage {
  padding: 18px 24px 36px;
  min-width: 0;
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
}

/* 顶部悬浮控制台 (.cmd-bar / .topbar) */
.cmd-bar, .topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  background: var(--surface);
  backdrop-filter: var(--blur-panel);
  -webkit-backdrop-filter: var(--blur-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

/* 宽屏双栏主舞台 + 右侧遥测塔 */
.cockpit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(350px, 29vw, 420px);
  gap: 16px;
  align-items: start;
}
.side-tower {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 16px;
}

/* ── 通用面板、徽标与 Bento KPI 矩阵 ── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 16px; }
.wrap-sm { max-width: 820px; margin: 0 auto; padding: 16px 14px 42px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; letter-spacing: 0.01em; }
.nav, .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--pri-soft);
  color: var(--pri);
  font-weight: 650;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge.ok { background: var(--ok-soft); color: var(--ok-ink); border-color: rgba(21, 128, 61, 0.18); }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); border-color: rgba(217, 119, 6, 0.22); }
.badge.err { background: var(--err-soft); color: var(--err-ink); border-color: rgba(200, 40, 41, 0.24); }

/* Bento KPI Cards */
.kpi-row, .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi, .stat {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: var(--blur-panel);
  -webkit-backdrop-filter: var(--blur-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.kpi::before, .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #2563eb;
}
.kpi:nth-child(2)::before, .stat:nth-child(2)::before { background: var(--pri); }
.kpi:nth-child(3)::before, .stat:nth-child(3)::before { background: #e11d48; }
.kpi:nth-child(4)::before, .stat:nth-child(4)::before { background: #16a34a; }

button.kpi, .kpi.clickable {
  cursor: pointer;
  text-align: left;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  gap: 2px;
}
button.kpi:hover, .kpi.clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--pri);
}
.kpi[data-alert-active="true"] {
  border-color: rgba(200, 40, 41, 0.42);
  background: linear-gradient(135deg, var(--err-soft), var(--surface));
}
.kpi .k, .stat .k {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.kpi .v, .stat .v {
  font-size: 27px;
  font-weight: 800;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.kpi .sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* Panels */
.panel {
  background: var(--surface);
  backdrop-filter: var(--blur-panel);
  -webkit-backdrop-filter: var(--blur-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.panel h2, .panel h3 {
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* ── 通用卡片与订单四色时效契约卡片 ── */
.card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--pri);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--surface-elevated);
  backdrop-filter: var(--blur-panel);
  -webkit-backdrop-filter: var(--blur-panel);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card[data-tone="accepted"] {
  background: var(--tone-accepted-bg);
  border-left-color: var(--tone-accepted-line);
}
.card[data-tone="picked"] {
  background: var(--tone-picked-bg);
  border-left-color: var(--tone-picked-line);
}
.card.over, .card[data-tone="over"] {
  background: var(--tone-over-bg);
  border-left-color: var(--tone-over-line);
}
.card.stale, .dispatch-order[data-tone="waiting"] {
  background: var(--tone-waiting-bg);
  border-left-color: var(--tone-waiting-line);
  opacity: 0.92;
}

/* 双时钟读数舱 */
.clocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.clock-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}
.clock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.clock-head time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink-2);
}
.clock-num {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin: 3px 0 6px;
  line-height: 1.25;
  white-space: nowrap;
}
.bar-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(128, 150, 174, 0.22);
  position: relative;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--pri);
  transition: width 0.35s ease;
}
.bar-mark {
  position: absolute;
  left: 66.66%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--ink);
  opacity: 0.42;
}

.form-stack { display: flex; flex-direction: column; gap: 11px; }
.muted { color: var(--muted); font-size: 12.5px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  padding: 10px 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  text-align: left;
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:hover { background: rgba(148, 163, 184, 0.06); }
code.box {
  display: block;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  word-break: break-all;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12.5px;
}

/* ==========================================================================
   实时调度台专属精细样式 (.dispatch-shell / .dispatch-board)
   ========================================================================== */
.dispatch-shell #stationTitle {
  font-size: clamp(1.02rem, 1.4vw, 1.24rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.dispatch-shell #syncState {
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}
.dispatch-board { min-width: 0; }
.dispatch-board .cockpit > *, .dispatch-board .side-tower, .dispatch-kpis .kpi { min-width: 0; }

.board-heading, .dispatch-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 12px;
}
.dispatch-board .board-heading h2,
.dispatch-board .board-heading h3,
.dispatch-dialog h2 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 780;
}
.dispatch-board .board-heading a {
  color: var(--pri);
  font-weight: 650;
  text-decoration: none;
  font-size: 13px;
}
.dispatch-board .board-heading a:hover { text-decoration: underline; }

/* 筛选胶囊带与排序工具栏 */
.dispatch-tools, .view-choices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.dispatch-tools {
  justify-content: space-between;
  margin-bottom: 14px;
}
.filter-strip, .density-choice {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}
.dispatch-tools .filter-strip button,
.dispatch-tools .density-choice button {
  background: transparent;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid transparent;
  font-size: 13px;
  color: var(--muted);
  border-radius: 8px;
  box-shadow: none;
}
.dispatch-tools button[aria-pressed="true"] {
  background: var(--surface-solid);
  border-color: var(--line);
  color: var(--pri);
  font-weight: 750;
  box-shadow: 0 2px 6px rgba(15, 35, 58, 0.08);
}
html[data-theme="dark"] .dispatch-tools button[aria-pressed="true"],
body.night .dispatch-tools button[aria-pressed="true"] {
  background: #22324a;
  color: var(--pri-hi);
}
.dispatch-tools select {
  font-size: 13px;
  min-height: 36px;
  border-radius: 10px;
}

/* 订单卡片网格 */
.dispatch-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dispatch-board[data-columns="3"] .dispatch-order-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dispatch-order {
  min-width: 0;
  padding: 13px 14px;
  container-type: inline-size;
}
.dispatch-order:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.dispatch-board[data-columns="3"] .dispatch-order { padding: 10px 11px; }

.order-title, .order-person {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 4px;
}
.order-title strong {
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.order-state {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-2);
  border: 1px solid rgba(128, 150, 174, 0.22);
}
html[data-theme="dark"] .order-state,
body.night .order-state {
  background: rgba(15, 23, 38, 0.55);
  color: var(--ink-2);
}
.order-person {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 7px;
}
.contact-link {
  color: var(--pri);
  background: var(--surface-solid);
  border: 1px solid rgba(13, 122, 130, 0.28);
  border-radius: 999px;
  min-height: 29px;
  padding: 2px 11px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.contact-link:hover {
  background: var(--pri);
  color: #ffffff;
  border-color: var(--pri);
}
html[data-theme="dark"] .contact-link,
body.night .contact-link {
  background: rgba(20, 32, 48, 0.9);
  color: var(--pri-hi);
}

.dispatch-order[data-tone="over"] .order-state {
  background: var(--err-soft);
  color: var(--dispatch-alert);
  border-color: rgba(200, 40, 41, 0.35);
}
.dispatch-board .clock-box[data-state="over"] .clock-num { color: var(--dispatch-alert); }
.dispatch-board .clock-box[data-state="near"] .clock-num,
.dispatch-board .clock-box[data-state="urgent"] .clock-num { color: var(--dispatch-gold); }
.dispatch-board .clock-box[data-state="waiting"] .clock-num,
.dispatch-board .clock-box[data-state="unknown"] .clock-num { color: var(--muted); font-size: 0.96rem; }
.dispatch-board .clock-box[data-state="over"] .bar-fill { background: #dc2626; }
.dispatch-board .clock-box[data-state="near"] .bar-fill,
.dispatch-board .clock-box[data-state="urgent"] .bar-fill { background: #d97706; }

@container (max-width: 225px) {
  .dispatch-order .clocks { gap: 5px; }
  .dispatch-order .clock-box { padding: 5px 6px; }
  .dispatch-order .clock-num { font-size: 1rem; }
  .dispatch-order .clock-head { font-size: 0.72rem; }
}

.board-empty {
  padding: 32px 12px;
  color: var(--muted);
  text-align: center;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin: 6px 0 0;
}

/* ── 右侧运力达成 Hero 舱 & 窄窗雷达台 ── */
.dispatch-board .side-tower > .panel { margin-bottom: 0; }

.capacity-hero-box {
  background: linear-gradient(135deg, var(--pri-soft), rgba(59, 130, 246, 0.06));
  border: 1px solid var(--info-line);
  border-radius: 13px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.capacity-score {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.capacity-score strong {
  font-size: 2.35rem;
  font-weight: 850;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.dispatch-board progress[data-cap-bar] {
  appearance: none;
  width: 100%;
  height: 9px;
  display: block;
  margin: 10px 0 2px;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(128, 150, 174, 0.24);
}
.dispatch-board progress[data-cap-bar]::-webkit-progress-bar {
  background: rgba(128, 150, 174, 0.24);
  border-radius: 99px;
}
.dispatch-board progress[data-cap-bar]::-webkit-progress-value {
  background: linear-gradient(90deg, var(--pri) 0%, #10b981 100%);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.dispatch-board progress[data-cap-bar]::-moz-progress-bar {
  background: linear-gradient(90deg, var(--pri) 0%, #10b981 100%);
  border-radius: 99px;
}

.board-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}
.board-stats > div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.board-stats dt {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}
.board-stats dd {
  margin: 3px 0 0;
  font-size: 15px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* 实时雷达四叶分段面板 (.dispatch-watch) */
.dispatch-watch {
  margin: 0;
  min-width: 0;
  container-type: inline-size;
  scroll-margin: 12px 0 calc(84px + env(safe-area-inset-bottom));
}
.dispatch-watch .watch-head, .dispatch-watch .watch-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dispatch-watch .watch-line {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--pri-soft);
  border: 1px solid var(--info-line);
}
.dispatch-watch .watch-number {
  color: var(--pri);
  font-size: 1.45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.dispatch-watch .watch-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.dispatch-watch .watch-tabs button {
  padding: 6px 2px;
  min-height: 36px;
  font-size: 12.5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.dispatch-watch .watch-tabs button[aria-pressed="true"] {
  background: var(--surface-solid);
  color: var(--pri);
  font-weight: 750;
  box-shadow: 0 2px 6px rgba(15, 35, 58, 0.08);
}
html[data-theme="dark"] .dispatch-watch .watch-tabs button[aria-pressed="true"],
body.night .dispatch-watch .watch-tabs button[aria-pressed="true"] {
  background: #22324a;
  color: var(--pri-hi);
}

.dispatch-watch .watch-body {
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.dispatch-watch details {
  padding: 4px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.dispatch-watch summary {
  cursor: pointer;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 650;
  list-style: none;
}
.dispatch-watch summary::-webkit-details-marker { display: none; }
.dispatch-watch summary strong {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.dispatch-watch .watch-names {
  line-height: 1.8;
  padding: 6px 2px 8px;
  font-size: 13px;
  color: var(--ink-2);
  border-top: 1px dashed var(--line);
  margin-top: 4px;
  max-height: 12rem;
  overflow: auto;
}
.dispatch-watch .watch-item {
  padding: 9px 11px;
  margin-bottom: 7px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.dispatch-watch .watch-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 10px;
}
.dispatch-watch .watch-week button {
  min-width: 0;
  padding: 5px 0;
  min-height: 46px;
  line-height: 1.25;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  flex-direction: column;
  gap: 1px;
}
.dispatch-watch .watch-week small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}
.dispatch-watch .watch-week button[aria-pressed="true"] {
  background: var(--pri);
  border-color: var(--pri);
  color: #ffffff;
}
.dispatch-watch .watch-week button[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.85); }
html[data-theme="dark"] .dispatch-watch .watch-week button[aria-pressed="true"],
body.night .dispatch-watch .watch-week button[aria-pressed="true"] {
  color: #041f1e;
}
html[data-theme="dark"] .dispatch-watch .watch-week button[aria-pressed="true"] small,
body.night .dispatch-watch .watch-week button[aria-pressed="true"] small {
  color: #063735;
}

.dispatch-watch dl {
  margin: 4px 0;
  display: grid;
  gap: 6px;
}
.dispatch-watch dl div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.dispatch-watch dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.dispatch-watch dd { margin: 0; text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.dispatch-watch .watch-source { color: var(--muted); display: block; font-size: 11px; font-weight: 500; }

.radar-contact {
  margin-top: 12px;
  width: 100%;
  color: var(--pri);
  background: var(--pri-soft);
  border-color: var(--info-line);
  font-weight: 700;
}
.radar-contact:hover {
  background: var(--pri);
  color: #fff;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn-ink);
}
.signal::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.signal[data-live="true"] {
  background: var(--ok-soft);
  color: var(--ok-ink);
}

/* ── 弹窗与拨号抽屉 (.dispatch-dialog) ── */
.dispatch-dialog {
  box-sizing: border-box;
  width: min(92vw, 450px);
  max-height: min(84vh, 660px);
  max-height: min(84dvh, 660px);
  padding: 20px;
  color: var(--ink);
  background: var(--surface-elevated);
  backdrop-filter: var(--blur-dock);
  -webkit-backdrop-filter: var(--blur-dock);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-modal);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dispatch-dialog::backdrop {
  background: rgba(8, 18, 32, 0.52);
  backdrop-filter: blur(4px);
}
.contact-search, .dispatch-more-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.dispatch-more-links { grid-template-columns: 1fr 1fr; }
.contact-search input { width: 100%; min-width: 0; }
.dispatch-dialog [data-contact-status] { font-size: 12.5px; color: var(--muted); margin: 10px 0; }
.rider-alerts, .contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 6px;
  min-height: 44px;
  border-radius: 8px;
}
.contact-list button:hover { background: var(--pri-soft); }
.contact-list button span { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.contact-result {
  padding: 14px;
  margin: 8px 0 12px;
  background: linear-gradient(135deg, var(--pri-soft), var(--ok-soft));
  border: 1px solid var(--info-line);
  border-radius: 14px;
}
.contact-result strong { display: block; font-size: 15px; }
.dial-number {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 4px;
  color: var(--pri);
  font-size: 1.32rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.dial-number:hover { text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ── 登录/注册卡片 & 跨板块通用组件 ── */
.auth-hero-card {
  max-width: 460px;
  margin: 32px auto;
  padding: 26px 24px;
  border-radius: 22px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 16px;
}
.auth-tabs button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
  font-size: 13.5px;
  min-height: 38px;
  box-shadow: none;
}
.auth-tabs button.active {
  background: var(--surface-solid);
  border-color: var(--line);
  color: var(--pri);
  font-weight: 750;
  box-shadow: 0 2px 8px rgba(15, 35, 58, 0.08);
}
html[data-theme="dark"] .auth-tabs button.active,
body.night .auth-tabs button.active {
  background: #22324a;
  color: var(--pri-hi);
}

.grant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dorm-quick-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-top: 10px; }
.dorm-quick-form input { min-height: 34px; padding: 5px 10px; font-size: 12.5px; }
.dorm-quick-form button { min-height: 34px; padding: 5px 12px; font-size: 12.5px; }

.cross-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--info-soft);
  backdrop-filter: var(--blur-panel);
  -webkit-backdrop-filter: var(--blur-panel);
  border: 1px solid var(--info-line);
  color: var(--info-ink);
  font-size: 13.5px;
}

.hist-list { display: flex; flex-direction: column; gap: 8px; }
.hist-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
}
.hist-item.undone { opacity: 0.70; border-style: dashed; }

/* 手机底部悬浮胶囊导航栏（默认桌面隐藏） */
.mobile-dock { display: none; }

/* ==========================================================================
   📟 平板端专属适配 (768px ~ 1179.98px · iPad / 安卓平板横竖屏)
   紧凑侧边导轨 + 顶部双卡并排遥测舱 + 下方双列订单/房态矩阵
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1179.98px) {
  .app-shell {
    grid-template-columns: 176px minmax(0, 1fr);
  }
  .side-rail { padding: 16px 10px; }
  .rail-brand { font-size: 14.5px; padding: 4px 6px 12px; }
  .rail-link { padding: 9px 10px; font-size: 13px; }
  .main-stage { padding: 14px 16px 32px; }

  /* 平板端：遥测区双卡并排置顶，订单双列铺开，兼顾大视野与触控面积 */
  .cockpit {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .side-tower {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }
  .side-tower > .signal-panel,
  .side-tower > #dormQuickCard {
    grid-column: span 1;
  }
  .dispatch-order-grid,
  .dispatch-board[data-columns="3"] .dispatch-order-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dispatch-board .density-choice { display: none; }
  .kpi-row, .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .kpi .v, .stat .v { font-size: 22px; }
  input, select, button, a.btn { min-height: 40px; }
  .theme-seg button { min-height: 30px; }
}

/* ==========================================================================
   📱 手机端专属适配 (< 768px · 单手拇指触控 + 悬浮毛玻璃底栏 + 2×2 KPI)
   ========================================================================== */
@media (max-width: 767.98px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .side-rail { display: none; }
  .main-stage {
    padding: 10px 12px calc(104px + env(safe-area-inset-bottom));
  }
  .cmd-bar, .topbar {
    padding: 10px 12px;
    gap: 8px;
    border-radius: 14px;
    margin-bottom: 12px;
  }
  .dispatch-shell #syncState { font-size: 11.5px; padding: 3px 8px; }

  /* 2×2 呼吸感 Bento KPI，彻底告别 4 列挤小字 */
  .kpi-row, .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }
  .kpi, .stat {
    padding: 11px 13px;
    border-radius: 14px;
  }
  .kpi .k, .stat .k { font-size: 11.5px; }
  .kpi .v, .stat .v { font-size: 22px; margin-top: 2px; }
  .kpi .sub { font-size: 10.5px; }

  .grid-2, .grant-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cockpit { grid-template-columns: minmax(0, 1fr); }
  .side-tower { position: static; order: 0; gap: 12px; }

  .dispatch-board[data-pane="orders"] .side-tower,
  .dispatch-board[data-pane="radar"] .order-panel,
  .dispatch-board .density-choice {
    display: none;
  }
  .dispatch-board .dispatch-order-grid,
  .dispatch-board[data-columns="3"] .dispatch-order-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .dispatch-board .order-panel { padding: 13px; }
  .dispatch-tools { gap: 8px; }
  .dispatch-tools .filter-strip { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .dispatch-tools .filter-strip button { min-height: 36px; padding: 4px 2px; }
  .dispatch-tools .view-choices { width: 100%; }
  .dispatch-tools select { width: 100%; min-height: 40px; font-size: 15px; }

  .dispatch-order .contact-link { min-height: 36px; padding: 4px 13px; font-size: 12.5px; }
  .dispatch-dialog button, .dispatch-dialog input { min-height: 44px; }
  .dispatch-dialog input, .auth-hero-card input { font-size: 16px; }
  .board-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* 悬浮胶囊毛玻璃底栏 */
  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 60;
    background: var(--dock-bg);
    backdrop-filter: var(--blur-dock);
    -webkit-backdrop-filter: var(--blur-dock);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 5px 6px;
    box-shadow: 0 12px 32px rgba(8, 20, 36, 0.18), inset 0 1px 0 var(--line-strong);
  }
  .dispatch-shell #mobileDock {
    grid-template-columns: none;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
  }
  .dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    font-size: 11.5px;
    min-height: 46px;
    padding: 4px 2px;
    text-decoration: none;
    font-weight: 650;
    box-shadow: none;
  }
  .dock-btn.active,
  .dispatch-shell .dock-btn.active {
    background: var(--pri-soft);
    color: var(--pri);
    font-weight: 800;
  }
  html[data-theme="dark"] .dock-btn.active,
  body.night .dock-btn.active {
    color: var(--pri-hi);
  }
}

@container (max-width: 240px) {
  .dispatch-watch .watch-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dispatch-watch .watch-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
