/* ============================================================================
   MAESTROS — control room. Deep space-ink, an aurora presence, quiet glass.
   The Core (canvas) is the one loud thing; everything here stays disciplined.
   ============================================================================ */
:root {
  --ink: #070a0f;
  --ink-2: #0a0e15;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);
  --hair: rgba(255, 255, 255, 0.09);
  --hair-2: rgba(255, 255, 255, 0.14);
  --text: #e7ebf2;
  --muted: #8b93a6;
  --faint: #59617a;
  --cyan: #34e7e4;
  --aqua: #22d3ee;
  --violet: #8b7cf6;
  --amber: #ffb020;
  --red: #ff5246;
  --green: #4ade80;
  --aurora: linear-gradient(110deg, var(--cyan), var(--violet));
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
button { cursor: pointer; font-family: var(--body); color: inherit; }
input, select, textarea {
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--body);
  font-size: 13px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(52, 231, 228, 0.6);
  box-shadow: 0 0 0 3px rgba(52, 231, 228, 0.12);
}
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
::selection { background: rgba(139, 124, 246, 0.35); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); }

/* ---- ambient field ---- */
.bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(52, 231, 228, 0.06), transparent 60%),
    radial-gradient(100% 100% at 50% 120%, rgba(139, 124, 246, 0.05), transparent 55%),
    radial-gradient(140% 120% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55));
}

/* ---- login ---- */
.login {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 330px; padding: 38px 30px 30px;
  background: var(--glass); border: 1px solid var(--hair);
  border-radius: 18px; backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: reveal .8s cubic-bezier(.2, .8, .2, 1) both;
}
.login-orb {
  width: 60px; height: 60px; border-radius: 50%; margin-bottom: 4px;
  background: var(--aurora); filter: blur(2px);
  box-shadow: 0 0 40px rgba(52, 231, 228, 0.6);
  animation: breathe 3.4s ease-in-out infinite;
}
.login-orb span {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff, transparent 55%); opacity: .8;
}
.login-card .wordmark { font-family: var(--display); font-size: 27px; font-weight: 800; letter-spacing: 5px; }
.login-sub { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 6px; }
.login-card input { width: 100%; text-align: center; }
.login-card button {
  width: 100%; padding: 11px; border: none; border-radius: 9px; font-weight: 700; letter-spacing: 2px;
  font-family: var(--mono); font-size: 11px; color: #04121f; background: var(--aurora);
  box-shadow: 0 6px 24px rgba(52, 231, 228, 0.25); transition: transform .15s, box-shadow .2s;
}
.login-card button:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(52, 231, 228, 0.4); }
.login-error { color: var(--red); font-size: 12px; min-height: 14px; }

/* ============================================================================
   APP SHELL
   ============================================================================ */
.app { position: relative; z-index: 5; display: flex; flex-direction: column; height: 100vh; }

/* boot reveal — staggered when JS adds .booted */
.app .topbar, .app .col-left, .app .col-center, .app .col-right {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2, .85, .25, 1);
}
.app.booted .topbar { opacity: 1; transform: none; transition-delay: .05s; }
.app.booted .col-center { opacity: 1; transform: none; transition-delay: .18s; }
.app.booted .col-left { opacity: 1; transform: none; transition-delay: .34s; }
.app.booted .col-right { opacity: 1; transform: none; transition-delay: .46s; }

/* ---- command bar ---- */
.topbar {
  display: flex; align-items: center; gap: 18px; flex: 0 0 auto;
  padding: 12px 20px; margin: 10px 10px 0; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--hair); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-glyph {
  width: 16px; height: 16px; border-radius: 50%; background: var(--aurora);
  box-shadow: 0 0 14px rgba(52, 231, 228, 0.7); animation: breathe 3s ease-in-out infinite;
}
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: 4px; font-size: 18px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 20px; font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; border: 1px solid var(--hair); color: var(--muted);
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill.live { color: var(--cyan); border-color: rgba(52, 231, 228, 0.4); background: rgba(52, 231, 228, 0.08); }
.pill.live::before { animation: blink-soft 1.6s ease-in-out infinite; }
.pill.paused { color: var(--amber); border-color: rgba(255, 176, 32, 0.4); background: rgba(255, 176, 32, 0.08); }
.pill.killed { color: var(--red); border-color: rgba(255, 82, 70, 0.45); background: rgba(255, 82, 70, 0.1); }
.pill.killed::before { animation: blink-hard 0.9s steps(2) infinite; }

.meter-wrap { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.meter-cap { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; color: var(--faint); }
.meter { flex: 1; height: 7px; background: rgba(0, 0, 0, 0.5); border-radius: 5px; overflow: hidden; border: 1px solid var(--hair); }
.meter-fill {
  height: 100%; width: 0%; border-radius: 5px; background: var(--aurora);
  background-size: 200% 100%; transition: width .6s cubic-bezier(.2, .8, .2, 1), background .4s;
  animation: shimmer 3s linear infinite;
}
.meter-fill.warn { background: linear-gradient(110deg, var(--amber), #ff8a3d); }
.meter-fill.over { background: linear-gradient(110deg, var(--red), #ff7a6b); }
.meter-label { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.dry-toggle { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .5px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.dry-toggle input { width: 14px; height: 14px; accent-color: var(--cyan); }
.btn-secondary {
  background: var(--glass-2); border: 1px solid var(--hair); padding: 8px 16px; border-radius: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px; transition: border-color .2s, background .2s, transform .15s;
}
.btn-secondary:hover { border-color: var(--hair-2); background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.btn-kill {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #ff5b4d, #e23a2c); color: #fff; border: none;
  padding: 9px 18px; border-radius: 9px; font-weight: 800; letter-spacing: 1.5px;
  font-family: var(--mono); font-size: 11px; box-shadow: 0 6px 22px rgba(240, 66, 50, 0.35);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn-kill .kill-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: blink-hard 1s steps(2) infinite; }
.btn-kill:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(240, 66, 50, 0.55); }
.btn-kill.resume {
  background: linear-gradient(180deg, #4cf0a3, #1fb673); color: #042016; box-shadow: 0 6px 22px rgba(63, 220, 150, 0.3);
}
.btn-kill.resume .kill-dot { background: #042016; box-shadow: none; animation: none; }

/* ---- grid ---- */
.grid {
  flex: 1; display: grid; grid-template-columns: 264px minmax(0, 1fr) 304px;
  gap: 10px; padding: 10px; min-height: 0;
}
.panel {
  background: var(--glass); border: 1px solid var(--hair); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; min-height: 0; backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.panel h2 {
  margin: 0 0 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 2.5px;
  color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.h2-mark { width: 5px; height: 5px; border-radius: 50%; background: var(--aurora); box-shadow: 0 0 8px rgba(52, 231, 228, 0.7); }
.panel h3 { margin: 16px 0 7px; font-family: var(--mono); font-size: 9px; letter-spacing: 2.5px; color: var(--faint); font-weight: 700; }
.col-left { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }
.col-left .panel { flex: 0 0 auto; }
.col-center { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.col-right { overflow-y: auto; }

/* ============================================================================
   THE CORE — Maestros, alive
   ============================================================================ */
.core-stage {
  position: relative; flex: 0 0 auto; height: 168px; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(80% 140% at 50% 30%, rgba(52, 231, 228, 0.05), transparent 70%),
    var(--glass);
  border: 1px solid var(--hair); backdrop-filter: blur(12px);
}
#core-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.core-meta { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; pointer-events: none; }
.core-name { font-family: var(--display); font-weight: 800; letter-spacing: 7px; font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.core-state {
  font-family: var(--mono); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; margin-top: 3px; color: var(--muted);
  transition: color .3s;
}
.core-state[data-mode="listening"] { color: var(--cyan); }
.core-state[data-mode="thinking"] { color: var(--violet); }
.core-state[data-mode="speaking"] { color: var(--aqua); }

/* ---- console (tabs + views) ---- */
.console { flex: 1; min-height: 0; padding: 0; overflow: hidden; }
.tabs { display: flex; align-items: center; gap: 4px; padding: 9px 12px 0; border-bottom: 1px solid var(--hair); }
.tab {
  background: none; border: none; color: var(--muted); font-family: var(--mono);
  font-size: 11px; letter-spacing: 2px; font-weight: 700; padding: 8px 12px 10px;
  border-bottom: 2px solid transparent; position: relative; transition: color .2s;
}
.tab.active { color: var(--text); }
.tab.active::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px;
  background: var(--aurora); border-radius: 2px; box-shadow: 0 0 10px rgba(52, 231, 228, 0.6);
}
.tab:hover { color: var(--text); }
.tab-hint { margin-left: auto; color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: 1px; padding-right: 4px; }
.voice-toggle {
  background: var(--glass-2); border: 1px solid var(--hair); color: var(--muted);
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px; font-weight: 700;
  padding: 5px 10px; border-radius: 8px; margin: 0 4px 7px 4px; transition: color .2s, border-color .2s, box-shadow .3s;
}
.voice-toggle.on { color: var(--cyan); border-color: rgba(52, 231, 228, 0.4); }
.voice-toggle.speaking { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px rgba(52, 231, 228, 0.4); }
.voice-toggle.unsupported { display: none; }

.wake-toggle {
  background: var(--glass-2); border: 1px solid var(--hair); color: var(--muted);
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px; font-weight: 700;
  padding: 5px 10px; border-radius: 8px; margin: 0 0 7px 0; transition: color .2s, border-color .2s, box-shadow .3s;
}
.wake-toggle.on { color: var(--violet); border-color: rgba(139, 124, 246, 0.45); }
.wake-toggle.armed { color: var(--violet); border-color: var(--violet); animation: wake-listen 1.8s ease-in-out infinite; }
.wake-toggle.unsupported { display: none; }
@keyframes wake-listen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 124, 246, 0.0); }
  50% { box-shadow: 0 0 14px 0 rgba(139, 124, 246, 0.5); }
}

.view { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ---- conversation ---- */
.chat { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.bubble {
  max-width: 80%; padding: 11px 15px; border-radius: 14px; line-height: 1.55; white-space: pre-wrap;
  word-break: break-word; animation: rise .35s cubic-bezier(.2, .8, .2, 1) both;
}
.bubble.user {
  align-self: flex-end; color: #04141a; border-bottom-right-radius: 4px;
  background: linear-gradient(120deg, var(--cyan), #5fd6ff);
  box-shadow: 0 6px 20px rgba(52, 231, 228, 0.18);
}
.bubble.cos {
  align-self: flex-start; background: var(--glass-2); border: 1px solid var(--hair);
  border-bottom-left-radius: 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.bubble.cos .who {
  display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 2.5px; background: var(--aurora); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.bubble.cos.greet { border-style: dashed; border-color: var(--hair-2); background: rgba(139, 124, 246, 0.06); }
.bubble.cos.local { border-color: rgba(139, 124, 246, 0.28); }
.bubble.cos.local .who { background: linear-gradient(110deg, var(--violet), #b3a7ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bubble.cos.streaming::after {
  content: '▋'; margin-left: 2px; color: var(--cyan); animation: blink-soft 1s steps(2) infinite;
}
.toolline {
  align-self: flex-start; max-width: 92%; font-family: var(--mono); font-size: 11px; color: var(--green);
  background: rgba(74, 222, 128, 0.06); border: 1px solid rgba(74, 222, 128, 0.22); border-left: 2px solid var(--green);
  padding: 6px 12px; border-radius: 8px; letter-spacing: .2px; animation: rise .35s cubic-bezier(.2, .8, .2, 1) both;
}
.toolline.refused { color: var(--amber); border-color: rgba(255, 176, 32, 0.22); border-left-color: var(--amber); background: rgba(255, 176, 32, 0.06); }

.chat-form { display: flex; gap: 9px; padding: 12px; border-top: 1px solid var(--hair); align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; max-height: 120px; border-radius: 11px; }
#chat-send {
  background: var(--aurora); color: #04121f; border: none; padding: 0 18px; height: 38px; border-radius: 11px;
  font-family: var(--mono); font-weight: 700; letter-spacing: 1.5px; font-size: 11px;
  box-shadow: 0 6px 20px rgba(52, 231, 228, 0.22); transition: transform .15s, box-shadow .2s;
}
#chat-send:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(52, 231, 228, 0.4); }
.chat-form button:disabled { opacity: .5; cursor: default; }
.mic {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 42px; height: 38px; border-radius: 11px; background: var(--glass-2); border: 1px solid var(--hair);
  color: var(--text); transition: border-color .2s, background .2s, color .2s;
}
.mic:hover { border-color: var(--cyan); color: var(--cyan); }
.mic.listening { background: linear-gradient(180deg, #ff5b4d, #e23a2c); border-color: transparent; color: #fff; animation: micpulse 1.2s infinite; }
.mic.unsupported { display: none; }

/* ---- worker log ---- */
.view-log { padding: 12px; }
.log {
  flex: 1; overflow-y: auto; font-family: var(--mono); font-size: 12px; line-height: 1.55;
  background: rgba(0, 0, 0, 0.32); border: 1px solid var(--hair); border-radius: 11px; padding: 12px;
}
.msg { padding: 2px 0 2px 10px; border-left: 2px solid transparent; margin-bottom: 2px; white-space: pre-wrap; word-break: break-word; }
.msg .meta { color: var(--faint); font-size: 10px; margin-right: 8px; }
.msg.run-sep { border: none; color: var(--faint); margin: 12px 0 4px; padding-left: 0; letter-spacing: 2px; }
.msg.role-system { color: var(--muted); border-left-color: rgba(255, 255, 255, 0.12); }
.msg.role-agent { color: var(--text); border-left-color: var(--cyan); }
.msg.role-tool { color: #9fe7c4; border-left-color: var(--green); }
.msg.role-supervisor { color: var(--amber); border-left-color: var(--amber); }

/* ---- fleet (agents) ---- */
.agents-list, .tasks-list, .runs-list { list-style: none; margin: 0; padding: 0; }
.agents-list li {
  display: flex; align-items: center; gap: 9px; padding: 8px 4px; border-bottom: 1px solid var(--hair);
  font-family: var(--mono); font-size: 12px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--faint); position: relative; }
.dot.idle { background: var(--faint); }
.dot.running { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse-dot 1.3s infinite; }
.dot.disabled { background: #3a3f4d; }
.agents-list .a-name { color: var(--text); }
.agents-list .a-model { color: var(--cyan); }
.agents-list .a-role { color: var(--faint); margin-left: auto; font-size: 11px; }

/* ---- queue (tasks) ---- */
.tasks-list li { padding: 9px 6px; border-bottom: 1px solid var(--hair); font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.tasks-list .t-row { display: flex; align-items: center; gap: 7px; }
.tasks-list .t-title { color: var(--text); }
.tasks-list .t-cancel {
  margin-left: auto; background: none; border: 1px solid var(--hair); color: var(--muted);
  border-radius: 6px; padding: 1px 7px; font-size: 11px; transition: border-color .2s, color .2s;
}
.tasks-list .t-cancel:hover { border-color: var(--red); color: var(--red); }
.badge {
  font-family: var(--mono); font-size: 9px; letter-spacing: .5px; padding: 2px 7px; border-radius: 20px;
  border: 1px solid var(--hair); color: var(--muted); text-transform: uppercase;
}
.badge.queued { color: var(--aqua); border-color: rgba(34, 211, 238, 0.35); }
.badge.running { color: var(--green); border-color: rgba(74, 222, 128, 0.4); }
.badge.done { color: var(--muted); }
.badge.failed { color: var(--red); border-color: rgba(255, 82, 70, 0.4); }
.badge.cancelled { color: var(--amber); }
.badge.blocked_budget { color: var(--red); border-color: rgba(255, 82, 70, 0.4); background: rgba(255, 82, 70, 0.1); }

/* ---- add forms ---- */
.add-form { margin-top: 12px; }
.add-form summary { color: var(--cyan); cursor: pointer; font-family: var(--mono); font-size: 11px; list-style: none; transition: opacity .2s; }
.add-form summary::-webkit-details-marker { display: none; }
.add-form summary:hover { opacity: .8; }
.add-form form { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.add-form form button {
  background: var(--glass-2); border: 1px solid rgba(52, 231, 228, 0.4); color: var(--cyan);
  padding: 8px; border-radius: 8px; font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 1px;
  transition: background .2s;
}
.add-form form button:hover { background: rgba(52, 231, 228, 0.1); }

/* ---- run detail ---- */
.run-detail { font-family: var(--mono); font-size: 12px; }
.run-detail .kv { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--hair); }
.run-detail .kv .k { color: var(--faint); }
.run-detail .kv .v { text-align: right; word-break: break-all; color: var(--text); }
.runs-list li {
  font-family: var(--mono); font-size: 11px; padding: 7px 6px; border-bottom: 1px solid var(--hair);
  cursor: pointer; display: flex; align-items: center; gap: 7px; border-radius: 7px; transition: background .15s;
}
.runs-list li:hover { background: var(--glass-2); }
.runs-list li.sel { background: rgba(52, 231, 228, 0.08); outline: 1px solid rgba(52, 231, 228, 0.4); }

/* ============================================================================
   MOTION
   ============================================================================ */
@keyframes reveal { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.12); filter: brightness(1.25); } }
@keyframes blink-soft { 50% { opacity: .35; } }
@keyframes blink-hard { 50% { opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); } 50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); } }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 66, 50, .5); } 50% { box-shadow: 0 0 0 8px rgba(240, 66, 50, 0); } }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: 220px minmax(0, 1fr) 240px; }
}
@media (max-width: 880px) {
  body { overflow: auto; }
  .grid { grid-template-columns: 1fr; }
  .col-left, .col-right { flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .col-left .panel, .col-right { flex: 1 1 240px; }
  .meter-wrap { display: none; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
