/* ============================================================
   CROSS TRADING — Terminal Dashboard
   Nexus 2 design language.
   Glass · soft glow · Avenir Next · green accent · rounded.
   ============================================================ */

:root {
  color-scheme: dark;

  /* Backgrounds */
  --bg:      #0a0c0a;
  --bg-deep: #07090a;

  /* Glass surfaces */
  --surface:        rgba(10, 12, 11, 0.68);
  --surface-strong: rgba(13, 15, 14, 0.88);
  --surface-soft:   rgba(14, 17, 15, 0.55);

  /* Lines */
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(57, 255, 136, 0.38);

  /* Text */
  --text-strong: #f0eff5;
  --text:        #8d9a90;
  --text-muted:  #556b5a;

  /* Accents (Nexus 2 palette) */
  --accent-green:   #39ff88;
  --accent-green-soft: rgba(57, 255, 136, 0.13);
  --accent-cyan:    #67e8f9;
  --accent-amber:   #ffd166;
  --accent-magenta: #df4fd8;
  --accent-red:     #ff5d73;
  --accent-blue:    #22d3ee;

  /* Glow */
  --glow-green: 0 0 28px rgba(57, 255, 136, 0.20);
  --glow-cyan:  0 0 22px rgba(103, 232, 249, 0.16);
  --glow-amber: 0 0 22px rgba(255, 209, 102, 0.16);
  --glow-red:   0 0 22px rgba(255, 93, 115, 0.16);
  --glow-magenta: 0 0 22px rgba(223, 79, 216, 0.16);

  /* Radii */
  --panel-radius: 20px;
  --card-radius:  18px;
  --pill-radius:  999px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 48% 4%, rgba(57, 255, 136, 0.12), transparent 60rem),
    radial-gradient(circle at 92% 96%, rgba(34, 211, 238, 0.05), transparent 40rem),
    linear-gradient(180deg, #0a0c0a 0%, #07090a 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Avenir Next", "SF Pro Display", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Inter", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricprecision;
  letter-spacing: 0.01em;
}

button { font: inherit; }
input, select, textarea { -webkit-user-select: auto; user-select: auto; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 999px; }

.screen {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 22px 56px;
}

.hidden { display: none; }

/* ─────────── LOGIN ─────────── */

.login-panel {
  max-width: 440px;
  margin: 12vh auto;
  background: var(--surface-strong);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.16);
  border-radius: var(--panel-radius);
  padding: 32px;
  box-shadow: var(--shadow, 0 24px 64px rgba(0, 0, 0, 0.44));
  position: relative;
  overflow: hidden;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(57, 255, 136, 0.10), transparent 70%);
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.login-panel > * { position: relative; z-index: 1; }

.login-tape {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-green);
}

.login-tape .dot {
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.86); }
}

.login-tape .sep {
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.06em;
  font-size: 12px;
}

.login-panel label { display: block; margin-bottom: 16px; }

.login-panel label > span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.login-panel input[type="password"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-strong);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top-color: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: "SF Mono", "Menlo", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-panel input[type="password"]:focus {
  outline: none;
  border-color: rgba(57, 255, 136, 0.5);
  box-shadow: var(--glow-green);
}

.cta {
  width: 100%;
  background: linear-gradient(150deg, rgba(57, 255, 136, 0.95), rgba(57, 255, 136, 0.78));
  color: #062014;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  cursor: pointer;
  box-shadow: var(--glow-green);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cta:hover { transform: translateY(-1px); box-shadow: 0 0 36px rgba(57, 255, 136, 0.32); }
.cta:active { transform: translateY(0); }

.err {
  color: var(--accent-red);
  margin-top: 12px;
  font-size: 13px;
}

/* ─────────── TOPBAR ─────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface-strong);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.16);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow, 0 18px 52px rgba(0, 0, 0, 0.34));
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
  animation: pulse 1.6s ease-in-out infinite;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-strong);
  text-transform: uppercase;
}

.brand-tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent-green);
  border: 1px solid rgba(57, 255, 136, 0.30);
  padding: 3px 8px;
  border-radius: var(--pill-radius);
  background: var(--accent-green-soft);
  font-weight: 700;
  text-transform: uppercase;
}

.ticker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.10em;
}

.ticker-label {
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ticker-val {
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: "SF Mono", "Menlo", Consolas, monospace;
}

.ticker .sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.10);
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ─────────── BUTTONS ─────────── */

.btn {
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-strong);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.btn:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.04); }
.btn:active { transform: translateY(1px); }

.btn-good {
  color: var(--accent-green);
  border-color: rgba(57, 255, 136, 0.30);
  background: var(--accent-green-soft);
}
.btn-good:hover { background: rgba(57, 255, 136, 0.20); }

.btn-warn {
  color: var(--accent-amber);
  border-color: rgba(255, 209, 102, 0.30);
  background: rgba(255, 209, 102, 0.10);
}
.btn-warn:hover { background: rgba(255, 209, 102, 0.20); }

.btn-bad {
  color: var(--accent-red);
  border-color: rgba(255, 93, 115, 0.30);
  background: rgba(255, 93, 115, 0.10);
}
.btn-bad:hover { background: rgba(255, 93, 115, 0.20); }

/* ─────────── HERO STRIP ─────────── */

.hero-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 1024px) { .hero-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .hero-strip { grid-template-columns: 1fr; } }

.metric {
  position: relative;
  isolation: isolate;
  min-height: 124px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(var(--accent-rgb, 103, 232, 249), 0.20);
  border-radius: var(--card-radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.025), transparent 55%),
    var(--surface);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 18px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 12px auto;
  height: 64px;
  background: radial-gradient(ellipse at 50% 0, rgba(var(--accent-rgb, 103, 232, 249), 0.18), transparent 72%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
}

.metric:hover { transform: translateY(-2px); }

.metric.tone-positive { --accent-rgb: 57, 255, 136; }
.metric.tone-danger   { --accent-rgb: 255, 93, 115; }
.metric.tone-caution  { --accent-rgb: 255, 209, 102; }
.metric.tone-magenta  { --accent-rgb: 223, 79, 216; }
.metric.tone-neutral  { --accent-rgb: 103, 232, 249; }
.metric.tone-muted    { --accent-rgb: 80, 80, 80; opacity: 0.7; }

.metric-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric-label {
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.metric-icon {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.16);
  color: rgb(var(--accent-rgb));
  font-size: 11px;
  font-weight: 800;
}

.metric-value {
  font-family: "SF Pro Display", "Avenir Next", -apple-system, sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric.tone-positive .metric-value { color: var(--accent-green); }
.metric.tone-danger   .metric-value { color: var(--accent-red); }
.metric.tone-caution  .metric-value { color: var(--accent-amber); }
.metric.tone-magenta  .metric-value { color: var(--accent-magenta); }

.metric-subdetail {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.05em;
}

/* ─────────── PANELS ─────────── */

.grid-main, .grid-bottom, .grid-controls, .grid-mappings, .grid-log {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.grid-main { grid-template-columns: 1.45fr 1fr; }
.grid-bottom { grid-template-columns: 1fr 1fr; }
.grid-controls { grid-template-columns: 1fr 1fr; }
.grid-mappings { grid-template-columns: 1fr; }
.grid-log { grid-template-columns: 1fr; }

@media (max-width: 980px) {
  .grid-main, .grid-bottom, .grid-controls, .grid-mappings, .grid-log { grid-template-columns: 1fr; }
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.16);
  border-radius: var(--panel-radius);
  overflow: hidden;
  box-shadow: var(--shadow, 0 12px 36px rgba(0, 0, 0, 0.30));
}

.section-header {
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin: 0;
}

.section-header h2::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
}

.section-header .right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-header .meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.panel-note {
  font-size: 12px;
  color: var(--text-muted);
  padding: 14px 18px;
  margin: 0;
  line-height: 1.55;
  border-top: 1px solid var(--line);
}

.panel-empty {
  padding: 28px 18px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.panel-empty code {
  color: var(--accent-green);
  background: var(--accent-green-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
}

/* ─────────── EVENT LOG ─────────── */

.log-filters {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.log-filters input,
.log-filters select {
  background: rgba(0, 0, 0, 0.30);
  color: var(--text-strong);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.log-filters input {
  flex: 1 1 240px;
  min-width: 180px;
}

.log-filters input:focus,
.log-filters select:focus {
  outline: none;
  border-color: rgba(57, 255, 136, 0.4);
  box-shadow: var(--glow-green);
}

.log-filters select { flex: 0 0 auto; min-width: 140px; }

.log-list {
  max-height: 520px;
  overflow-y: auto;
}

.log-list .entry {
  display: grid;
  grid-template-columns: 96px 90px 80px 64px 1fr;
  gap: 12px;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: baseline;
  font-size: 12px;
  transition: background 160ms ease;
}

.log-list .entry:hover { background: rgba(57, 255, 136, 0.04); }
.log-list .entry:last-child { border-bottom: 0; }

.log-list .ts {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.log-list .kind {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 10px;
  text-transform: uppercase;
}

.log-list .kind.COMMAND_RECEIVED { color: var(--accent-cyan); }
.log-list .kind.COMMAND_REJECTED { color: var(--accent-amber); }
.log-list .kind.COMMAND_EXECUTED { color: var(--accent-green); }
.log-list .kind.ATAS_CALLBACK   { color: var(--accent-cyan); }
.log-list .kind.KILLSWITCH_TOGGLE { color: var(--accent-red); }
.log-list .kind.RECONNECT       { color: var(--accent-magenta); }
.log-list .kind.ERROR           { color: var(--accent-red); }

.log-list .severity {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.log-list .severity.info  { color: var(--text-muted); }
.log-list .severity.warn  { color: var(--accent-amber); }
.log-list .severity.error { color: var(--accent-red); }

.log-list .symbol {
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 0.04em;
}

.log-list .msg {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-list .msg.error { color: var(--accent-red); }

.log-empty {
  padding: 48px 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ─────────── DENSE TABLE ─────────── */

.dense-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.dense-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.20);
  border-bottom: 1px solid var(--line);
}

.dense-table th.num { text-align: right; }

.dense-table td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-strong);
}

.dense-table td.num {
  text-align: right;
  font-family: "SF Mono", "Menlo", Consolas, monospace;
}

.dense-table tbody tr:last-child td { border-bottom: 0; }

.dense-table tbody tr {
  transition: background 160ms ease;
}

.dense-table tbody tr:hover {
  background: rgba(57, 255, 136, 0.04);
}

.dense-table tbody tr.flash {
  animation: flash 0.7s ease-out;
}

@keyframes flash {
  0%   { background: rgba(57, 255, 136, 0.18); }
  100% { background: transparent; }
}

/* ─────────── PILLS / CHIPS ─────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: var(--pill-radius);
  font-variant-numeric: tabular-nums;
}

.pill::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.pill.good    { color: var(--accent-green); background: var(--accent-green-soft); }
.pill.warn    { color: var(--accent-amber); background: rgba(255, 209, 102, 0.12); }
.pill.bad     { color: var(--accent-red);   background: rgba(255, 93, 115, 0.12); }
.pill.info    { color: var(--accent-cyan);  background: rgba(103, 232, 249, 0.12); }
.pill.magenta { color: var(--accent-magenta); background: rgba(223, 79, 216, 0.12); }
.pill.neutral { color: var(--text);         background: rgba(141, 154, 144, 0.12); }

/* ─────────── ACTIVITY FEED ─────────── */

.feed {
  max-height: 480px;
  overflow-y: auto;
}

.feed .event {
  display: grid;
  grid-template-columns: 92px 156px 80px 1fr auto;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: baseline;
  transition: background 160ms ease;
}

.feed .event:hover { background: rgba(57, 255, 136, 0.04); }
.feed .event:last-child { border-bottom: 0; }

.event-time {
  font-family: "SF Mono", "Menlo", Consolas, monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.event-cb {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.event-sym {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 0.04em;
}

.event-msg {
  font-family: "SF Mono", "Menlo", Consolas, monospace;
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-empty {
  padding: 48px 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* ─────────── KILL SWITCH ─────────── */

.control-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  flex-wrap: wrap;
}

.switch-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.switch-big input { display: none; }

.switch-track {
  width: 52px;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: var(--pill-radius);
  display: inline-block;
  position: relative;
  transition: background 200ms ease, border-color 200ms ease;
}

.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: var(--text-muted);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: left 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease;
}

.switch-big input:checked + .switch-track {
  background: rgba(255, 93, 115, 0.16);
  border-color: rgba(255, 93, 115, 0.4);
}

.switch-big input:checked + .switch-track .switch-thumb {
  left: 26px;
  background: var(--accent-red);
  box-shadow: 0 0 12px rgba(255, 93, 115, 0.4);
}

.switch-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-strong);
}

/* ─────────── FOOTER ─────────── */

.footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding: 0 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.footer .brand-tag-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer .brand-tag-mini::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
}

/* ─────────── RESPONSIVE ─────────── */

@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .ticker { flex-wrap: wrap; gap: 10px; }
  .metric { padding: 14px; min-height: 110px; }
  .metric-value { font-size: 26px; }
  .feed .event { grid-template-columns: 1fr; gap: 4px; padding: 12px; }
  .event-msg { white-space: normal; }
}