/* ═══════════════════════════════════════════════════════
   Э.Х.О. DESIGN SYSTEM — Liquid Glass
   Inspired by Apple's Liquid Glass (iOS 26 / WWDC 2025)
   ═══════════════════════════════════════════════════════ */

:root {
  /* ═══ Background ═══ */
  --bg: #0A0A0C;

  /* ═══ Glass Materials ═══ */
  --glass: rgba(255,255,255,0.06);
  --glass-hover: rgba(255,255,255,0.10);
  --glass-thick: rgba(255,255,255,0.09);
  --glass-border: rgba(255,255,255,0.12);
  --glass-highlight: rgba(255,255,255,0.08);  /* inset top edge */
  --glass-blur: blur(24px) saturate(200%);
  --glass-radius: 22px;
  --glass-radius-sm: 14px;
  --glass-radius-pill: 100px;

  /* ═══ Brand ═══ */
  --accent: #FF6B00;
  --accent-l: #FF8C00;
  --accent-glow: rgba(255,107,0,0.20);
  --accent-glass: rgba(255,107,0,0.08);

  /* ═══ Semantic ═══ */
  --green: #34D399;     /* slightly more vibrant for glass */
  --red: #F87171;       /* warmer red for glass */
  --yellow: #FBBF24;
  --cyan: #22D3EE;
  --purple: #A78BFA;

  /* ═══ Text ═══ */
  --t1: #FFFFFF;
  --t2: rgba(255,255,255,0.60);
  --t3: rgba(255,255,255,0.38);

  /* ═══ Typography ═══ */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* ═══ Shadows ═══ */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15);
  --shadow-elevated: 0 8px 40px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.20);
  --shadow-glow: 0 0 40px var(--accent-glow);

  /* ═══ Safe area ═══ */
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ═══ RESET ═══ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(72px + var(--safe-b));
  min-height: 100vh;
}

/* ═══ GRADIENT MESH BACKGROUND ═══ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 600px 400px at 20% 15%, rgba(255,107,0,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 30%, rgba(139,92,246,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 70%, rgba(6,182,212,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 10% 90%, rgba(34,211,153,0.04) 0%, transparent 70%);
}

.screen { max-width: 430px; margin: 0 auto; padding: 0 16px; }

/* ═══ STATUS BAR ═══ */
.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px 8px; font-size: 14px; font-weight: 600;
}
.status-icons { display: flex; gap: 4px; align-items: center; }
.status-icons svg { width: 16px; height: 16px; }

/* ═══ HEADER ═══ */
.header { padding: 8px 0 20px; }
.header h1 {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.15;
}
.header h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-row {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.header-sub {
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px; font-size: 13px; color: var(--t2);
}
.dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.period-chip {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: var(--glass-radius-pill);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 0.5px solid var(--glass-border);
  font-size: 12px; font-weight: 500; color: var(--t2);
}
.period-chip svg { width: 13px; height: 13px; }

/* ═══════════════════════════════════════════
   GLASS CARD — the core component
   ═══════════════════════════════════════════ */
.c {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--glass-radius);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--glass-highlight);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hero variant — glows with accent */
.c-hero {
  background: linear-gradient(145deg, rgba(255,107,0,0.10), rgba(255,140,0,0.04));
  border-color: rgba(255,107,0,0.20);
  box-shadow: var(--shadow-card), var(--shadow-glow), inset 0 1px 0 rgba(255,107,0,0.12);
}

/* Health variant — subtle tint */
.c-health {
  background: linear-gradient(145deg, rgba(34,211,153,0.06), rgba(139,92,246,0.04));
  border-color: rgba(34,211,153,0.15);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(34,211,153,0.08);
}

/* ═══ LABEL ═══ */
.l {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--t3); margin-bottom: 8px;
  display: flex; align-items: center; gap: 5px;
}
.l svg { width: 11px; height: 11px; opacity: .6; }

/* ═══ METRICS — type scale ═══ */
.m { font-family: var(--mono); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.m-xl { font-size: 38px; }
.m-lg { font-size: 26px; }
.m-md { font-size: 18px; }
.m-sm { font-size: 13px; }
.m-unit { font-size: 14px; font-weight: 500; color: var(--t2); margin-left: 2px; }

.delta {
  display: inline-flex; align-items: center; font-size: 11px;
  font-family: var(--mono); font-weight: 600; padding: 2px 7px;
  border-radius: 6px; margin-left: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.delta-up { color: var(--green); background: rgba(34,211,153,0.12); }
.delta-down { color: var(--red); background: rgba(248,113,113,0.12); }

/* ═══ STATS ROW ═══ */
.stats { display: flex; gap: 16px; margin-top: 14px; }
.stat-label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--t3);
}
.stat-val {
  font-family: var(--mono); font-size: 13px; font-weight: 600; margin-top: 2px;
}

/* ═══ SPARKLINE ═══ */
.spark { height: 36px; margin-top: 12px; }
.spark svg { width: 100%; height: 100%; }

/* ═══ 2-COL GRID ═══ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.grid-2 .c { margin-bottom: 0; }

/* ═══ PROGRESS BAR ═══ */
.prog {
  height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 3px; overflow: hidden; margin-top: 10px;
}
.prog-fill { height: 100%; border-radius: 3px; }

/* ═══ QUICK ACTIONS ═══ */
.actions {
  display: flex; gap: 8px; margin-bottom: 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.actions::-webkit-scrollbar { display: none; }
.act {
  flex-shrink: 0; height: 38px; padding: 0 14px;
  border-radius: var(--glass-radius-sm); 
  border: 0.5px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--t2);
  font-family: var(--font); font-size: 12px; font-weight: 500;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.act svg { width: 14px; height: 14px; flex-shrink: 0; }
.act-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  border-color: transparent; color: white; font-weight: 600;
  box-shadow: var(--shadow-glow);
}
.act-red { border-color: rgba(248,113,113,0.25); color: var(--red); }
.act-green { border-color: rgba(34,211,153,0.25); color: var(--green); }

/* ═══ ACCOUNT CHIPS ═══ */
.accs {
  display: flex; gap: 8px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: 4px; margin-bottom: 10px;
}
.accs::-webkit-scrollbar { display: none; }
.acc {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--glass-radius-sm);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 0.5px solid var(--glass-border);
  white-space: nowrap; flex-shrink: 0;
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--glass-highlight);
}
.acc-icon { font-size: 18px; }
.acc-name { font-size: 11px; color: var(--t2); font-weight: 500; }
.acc-bal { font-family: var(--mono); font-size: 13px; font-weight: 600; }

/* ═══ EVENT LIST ═══ */
.ev {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ev:last-child { border-bottom: none; }
.ev-icon {
  width: 36px; height: 36px; border-radius: var(--glass-radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ev-time {
  font-family: var(--mono); font-size: 12px; color: var(--t2); min-width: 40px;
}
.ev-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ev-info { flex: 1; min-width: 0; }
.ev-title { font-size: 13px; font-weight: 500; }
.ev-meta { font-size: 10px; color: var(--t3); margin-top: 1px; }
.ev-amount {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  text-align: right; flex-shrink: 0;
}
.ev-now {
  background: rgba(255,107,0,0.06);
  margin: 0 -16px; padding: 10px 16px;
  border-radius: 10px; border-bottom: none;
}

/* ═══ TASK / CATEGORY LIST ═══ */
.task {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.task:last-child { border-bottom: none; }
.task-ck {
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,0.2); flex-shrink: 0;
}
.task-ck.done { background: var(--accent); border-color: var(--accent); }
.task-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.task-info { flex: 1; min-width: 0; }
.task-txt { font-size: 13px; font-weight: 500; }
.task-txt.done { text-decoration: line-through; color: var(--t3); }
.task-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-top: 4px; }
.task-bar-fill { height: 100%; border-radius: 2px; }
.task-val {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  text-align: right; flex-shrink: 0;
}

.tag {
  font-size: 10px; padding: 2px 7px; border-radius: 5px; font-weight: 500; flex-shrink: 0;
}
.tag-red { background: rgba(248,113,113,0.12); color: var(--red); }
.tag-orange { background: rgba(255,107,0,0.12); color: var(--accent); }
.tag-gray { background: rgba(255,255,255,0.06); color: var(--t2); }

/* ═══ SECTION LABEL ═══ */
.sec {
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--t3);
  margin: 18px 0 10px; padding-left: 2px;
  display: flex; justify-content: space-between; align-items: center;
}
.sec-link {
  font-size: 11px; color: var(--accent); font-weight: 500; letter-spacing: 0;
}

/* ═══ WEEK STRIP ═══ */
.week { display: flex; gap: 4px; }
.wd { flex: 1; text-align: center; padding: 8px 2px; border-radius: var(--glass-radius-sm); }
.wd-today { background: var(--accent-glow); }
.wd-name { font-size: 10px; font-weight: 600; color: var(--t3); text-transform: uppercase; }
.wd-num { font-family: var(--mono); font-size: 15px; font-weight: 600; margin-top: 3px; }
.wd-today .wd-num { color: var(--accent); }
.wd-dots { display: flex; justify-content: center; gap: 2px; margin-top: 5px; min-height: 5px; }
.wd-dot { width: 4px; height: 4px; border-radius: 50%; }

/* ═══ RING ═══ */
.ring-wrap { display: flex; align-items: center; gap: 14px; }
.ring-box { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.ring-box svg { transform: rotate(-90deg); }
.ring-pct {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-family: var(--mono); font-size: 12px; font-weight: 700;
}

/* ═══ DONUT ═══ */
.donut-wrap { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.donut-box { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
.donut-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.donut-pct { font-family: var(--mono); font-size: 12px; font-weight: 700; }
.donut-sub { font-size: 9px; color: var(--t3); text-transform: uppercase; letter-spacing: 0.05em; }
.legend { display: flex; flex-direction: column; gap: 6px; }
.leg { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.leg-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.leg-val { font-family: var(--mono); font-weight: 600; margin-left: auto; }

/* ═══ CRON ═══ */
.cron { display: flex; gap: 20px; }
.cron-n { font-family: var(--mono); font-size: 22px; font-weight: 700; line-height: 1; }
.cron-l { font-size: 9px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t3); margin-top: 3px; }

/* ═══ BOTTOM TAB BAR — glass ═══ */
.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(64px + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(10,10,12,0.65);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-top: 0.5px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-around;
  padding-left: 8px; padding-right: 8px; z-index: 100;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0; color: var(--t3); text-decoration: none;
  -webkit-tap-highlight-color: transparent; min-width: 48px;
}
.tab svg { width: 22px; height: 22px; }
.tab-label { font-size: 9px; font-weight: 500; letter-spacing: 0.02em; }
.tab.active { color: var(--accent); }
.tab.active .tab-label { font-weight: 600; }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.c, .grid-2 { animation: fadeUp 0.4s ease backwards; }

/* ═══════════════════════════════════════════════════════
   LIGHT THEME — Liquid Glass Light
   Not an inversion. A separate design language.
   
   Apple Liquid Glass Light principles:
   - Warm cream background, not clinical white
   - White frosted glass cards with soft diffused shadows
   - Deeper, more saturated semantic colors for contrast
   - No glow effects — replaced with elevation shadows
   - Mesh gradients warmer, more muted
   - Text hierarchy via weight + opacity, not just color
   ═══════════════════════════════════════════════════════ */

[data-theme="light"] {
  /* ═══ Background — warm cream, not sterile white ═══ */
  --bg: #F5F3EF;

  /* ═══ Glass — white frosted, not translucent dark ═══ */
  --glass: rgba(255,255,255,0.78);
  --glass-hover: rgba(255,255,255,0.90);
  --glass-thick: rgba(255,255,255,0.88);
  --glass-border: rgba(0,0,0,0.06);
  --glass-highlight: rgba(255,255,255,1.0);
  /* lighter blur — content behind shows less */
  --glass-blur: blur(20px) saturate(180%);

  /* ═══ Brand — same hue, slightly deeper for cream bg ═══ */
  --accent: #E85D00;
  --accent-l: #FF7A1A;
  --accent-glow: rgba(232,93,0,0.08);
  --accent-glass: rgba(232,93,0,0.04);

  /* ═══ Semantic — deeper, richer for light backgrounds ═══ */
  --green: #0D9668;
  --red: #D92D2D;
  --yellow: #C27C00;
  --cyan: #0C7C98;
  --purple: #6D3AC7;

  /* ═══ Text — warm black hierarchy ═══ */
  --t1: #1A1A1C;
  --t2: rgba(26,26,28,0.55);
  --t3: rgba(26,26,28,0.30);

  /* ═══ Shadows — soft elevation, no glow ═══ */
  --shadow-card:
    0 1px 2px rgba(0,0,0,0.03),
    0 4px 16px rgba(0,0,0,0.05),
    0 0 0 0.5px rgba(0,0,0,0.04);
  --shadow-elevated:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 32px rgba(0,0,0,0.08),
    0 0 0 0.5px rgba(0,0,0,0.06);
  /* no glow on light — replaced with subtle warm shadow */
  --shadow-glow: 0 4px 20px rgba(232,93,0,0.12);
}

/* ═══ Mesh background — warmer, more subtle ═══ */
[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 600px 400px at 15% 10%, rgba(232,93,0,0.04) 0%, transparent 65%),
    radial-gradient(ellipse 500px 500px at 85% 25%, rgba(109,58,199,0.03) 0%, transparent 65%),
    radial-gradient(ellipse 400px 300px at 50% 75%, rgba(12,124,152,0.025) 0%, transparent 65%),
    radial-gradient(ellipse 700px 500px at 5% 85%, rgba(13,150,104,0.02) 0%, transparent 65%);
}

/* ═══ Hero card — warm glass, not dark gradient ═══ */
[data-theme="light"] .c-hero {
  background: linear-gradient(145deg, rgba(232,93,0,0.06), rgba(255,122,26,0.03));
  border-color: rgba(232,93,0,0.12);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ═══ Health card — soft tint ═══ */
[data-theme="light"] .c-health {
  background: linear-gradient(145deg, rgba(13,150,104,0.04), rgba(109,58,199,0.03));
  border-color: rgba(13,150,104,0.08);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ═══ Tab bar — frosted white, not dark ═══ */
[data-theme="light"] .tab-bar {
  background: rgba(245,243,239,0.78);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 0.5px solid rgba(0,0,0,0.06);
}

/* ═══ List dividers — warm gray ═══ */
[data-theme="light"] .ev {
  border-bottom-color: rgba(0,0,0,0.05);
}
[data-theme="light"] .task {
  border-bottom-color: rgba(0,0,0,0.05);
}

/* ═══ Task checkbox ═══ */
[data-theme="light"] .task-ck {
  border-color: rgba(0,0,0,0.15);
}
[data-theme="light"] .task-ck.done {
  border-color: var(--accent);
}

/* ═══ Progress bars ═══ */
[data-theme="light"] .prog {
  background: rgba(0,0,0,0.05);
}

/* ═══ Deltas — deeper for visibility ═══ */
[data-theme="light"] .delta-up {
  color: #0D9668;
  background: rgba(13,150,104,0.08);
}
[data-theme="light"] .delta-down {
  color: #D92D2D;
  background: rgba(217,45,45,0.08);
}

/* ═══ Tags ═══ */
[data-theme="light"] .tag-red {
  background: rgba(217,45,45,0.07);
  color: #D92D2D;
}
[data-theme="light"] .tag-orange {
  background: rgba(232,93,0,0.07);
  color: #E85D00;
}
[data-theme="light"] .tag-gray {
  background: rgba(0,0,0,0.04);
  color: var(--t2);
}

/* ═══ Account chips — white card feel ═══ */
[data-theme="light"] .acc {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.05);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,1);
}

/* ═══ Quick actions ═══ */
[data-theme="light"] .act {
  background: rgba(255,255,255,0.80);
  border-color: rgba(0,0,0,0.06);
  color: var(--t2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,1);
}
[data-theme="light"] .act-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(232,93,0,0.15);
}
[data-theme="light"] .act-red {
  border-color: rgba(217,45,45,0.12);
  color: var(--red);
}
[data-theme="light"] .act-green {
  border-color: rgba(13,150,104,0.12);
  color: var(--green);
}

/* ═══ Week strip ═══ */
[data-theme="light"] .wd-today {
  background: rgba(232,93,0,0.06);
}

/* ═══ Section labels ═══ */
[data-theme="light"] .sec {
  color: rgba(26,26,28,0.35);
}

/* ═══ Sparkline / chart SVG strokes ═══ */
[data-theme="light"] .spark svg path[stroke="var(--accent)"] {
  filter: brightness(0.9);
}

/* ═══ Stat values — ensure contrast ═══ */
[data-theme="light"] .stat-val {
  color: var(--t1);
}

/* ═══ Ring / donut ═══ */
[data-theme="light"] .ring-box svg circle[stroke="rgba(255,255,255,0.06)"] {
  stroke: rgba(0,0,0,0.06);
}

/* ═══ Cron numbers ═══ */
[data-theme="light"] .cron-n {
  /* colors stay via inline styles */
}

/* ═══ KPI cards ═══ */
[data-theme="light"] .kpi {
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,1);
}

/* ═══ Header gradient text — deeper orange ═══ */
[data-theme="light"] .header h1 span {
  background: linear-gradient(135deg, #D45000, #E87020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ═══ Dot live — deeper green ═══ */
[data-theme="light"] .dot-live {
  background: #0D9668;
}

/* ═══ Status bar mock (proto only) ═══ */
[data-theme="light"] .status-bar {
  color: var(--t1);
}
[data-theme="light"] .status-icons svg {
  fill: var(--t1);
}

/* ═══ KPI GRID (shared) ═══ */
.kpi-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;
}
.kpi {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--glass-radius);
  padding: 14px;
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--glass-highlight);
}

/* ═══ CHART AREA ═══ */
.chart-area {
  width: 100%; overflow: hidden; border-radius: 8px;
  margin-top: 8px;
}
.chart-area svg { width: 100%; height: 100%; display: block; }
