:root {
  --bg: #080a0f;
  --bg-alt: #0c1018;
  --surface: #111622;
  --surface-elevated: #161d2c;
  --surface-subtle: #0d121c;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --grid-line: rgba(148, 163, 184, 0.05);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #f97316;
  --accent-bright: #fb923c;
  --accent-glow: rgba(249, 115, 22, 0.22);
  --accent-soft: rgba(249, 115, 22, 0.14);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.13);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.48);
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
}

[data-theme="light"] {
  --bg: #f8f7f4;
  --bg-alt: #f0eee8;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-subtle: #f5f4f0;
  --border: rgba(24, 24, 27, 0.1);
  --border-strong: rgba(24, 24, 27, 0.2);
  --grid-line: rgba(24, 24, 27, 0.04);
  --text: #14161c;
  --text-secondary: #4b5563;
  --text-muted: #71717a;
  --accent: #c2410c;
  --accent-bright: #ea580c;
  --accent-glow: rgba(234, 88, 12, 0.14);
  --accent-soft: rgba(234, 88, 12, 0.1);
  --ok: #059669;
  --ok-soft: rgba(5, 150, 105, 0.11);
  --info: #2563eb;
  --info-soft: rgba(37, 99, 235, 0.1);
  --warn: #b45309;
  --warn-soft: rgba(180, 83, 9, 0.11);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.11);
  --shadow-sm: 0 1px 3px rgba(20, 22, 28, 0.05);
  --shadow-lg: 0 18px 42px rgba(20, 22, 28, 0.09);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lab-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 35%, transparent 100%);
}

header, main, footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.accent-text {
  color: var(--accent-bright);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

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

.element-tile {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--surface-elevated), var(--surface-subtle));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 0 18px var(--accent-glow);
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
}

.el-num {
  position: absolute;
  top: 3px;
  left: 5px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--accent-bright);
  line-height: 1;
}

.el-sym {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-text strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.site-nav a {
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--accent-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
  flex-shrink: 0;
}

.pulse-dot.is-live {
  background: var(--ok);
  box-shadow: 0 0 10px color-mix(in srgb, var(--ok) 65%, transparent);
  animation: pulseRing 2.1s infinite;
}

.pulse-dot.is-stale {
  background: var(--warn);
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Hero */
.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(620px 300px at 84% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%),
    radial-gradient(500px 260px at 14% 20%, color-mix(in srgb, var(--ok) 9%, transparent), transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  gap: 32px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface));
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  margin-bottom: 18px;
}

.badge-sep {
  opacity: 0.5;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.headline-accent {
  background: linear-gradient(100deg, var(--accent-bright) 0%, #fbbf24 55%, var(--ok) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 22px;
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.78;
}

.hero-lead strong {
  color: var(--text);
}

.lab-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.78rem;
}

.spec-k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.06em;
}

.spec-v {
  color: var(--text-secondary);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

/* Hero Instrument Card */
.instrument-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-elevated), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.instrument-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mono-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.inst-title {
  font-family: var(--font-mono);
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.gauge-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.gauge-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 10;
}

.gauge-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-pct {
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.1;
}

.gauge-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 3px;
}

.gauge-metrics {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gm-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.86rem;
}

.gm-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gm-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.inst-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  overflow: hidden;
}

.ticker-prompt {
  color: var(--ok);
  font-weight: 700;
  flex-shrink: 0;
}

.ticker-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sections */
.section {
  padding: 52px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.42rem, 2.3vw, 1.82rem);
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  color: var(--text-secondary);
  max-width: 700px;
  font-size: 0.94rem;
}

.sync-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.77rem;
}

.sync-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sync-key {
  color: var(--text-muted);
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.kpi-accent {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent-soft) 65%, var(--surface)), var(--surface));
}

.kpi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.kpi-denom {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.kpi-highlight-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.kpi-sub {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Progress bars */
.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-fill.is-done {
  background: linear-gradient(90deg, #059669, #34d399);
}

.progress-fill.is-running {
  background: linear-gradient(90deg, #ea580c, #fbbf24);
  box-shadow: 0 0 10px var(--accent-glow);
}

.progress-fill.is-waiting {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.segmented-bar {
  display: flex;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-subtle);
  margin-top: 10px;
  gap: 2px;
}

.seg-done { background: var(--ok); }
.seg-running { background: var(--accent-bright); }
.seg-waiting { background: var(--info); }
.seg-other { background: var(--border-strong); }

/* Panels */
.panel {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head-wrap {
  flex-wrap: wrap;
  align-items: flex-end;
}

.panel-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.panel h3 {
  margin: 0;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
}

.panel-sub {
  margin: 4px 0 0;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.panel-note {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.count-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-done { background: var(--ok-soft); color: var(--ok); }
.status-running { background: var(--accent-soft); color: var(--accent-bright); }
.status-stage1 { background: var(--ok-soft); color: var(--ok); }
.status-waiting { background: var(--info-soft); color: var(--info); }
.status-paused, .status-pending { background: var(--surface-subtle); color: var(--text-muted); }
.status-blocked { background: var(--danger-soft); color: var(--danger); }

/* Active tasks */
.active-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 12px;
}

.active-card {
  padding: 15px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: border-color 0.15s ease;
}

.active-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.active-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.active-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
}

.active-round {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.active-pct-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.active-pct-row .mono-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-bright);
  min-width: 44px;
  text-align: right;
}

.active-action {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ok);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-summary {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Filter Bar */
.filter-bar {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  gap: 2px;
}

.filter-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.is-active {
  background: var(--surface-elevated);
  color: var(--accent-bright);
  box-shadow: var(--shadow-sm);
}

/* Toolchain Suites */
.suites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.suite-card {
  padding: 16px;
  border-radius: 13px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suite-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.suite-title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
}

.suite-replaces {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--accent-bright);
  margin-top: 2px;
}

.suite-desc {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.suite-pct-box {
  text-align: right;
  flex-shrink: 0;
}

.suite-pct {
  font-size: 1.15rem;
  font-weight: 700;
}

.suite-ratio {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-item {
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.tool-item:hover {
  border-color: var(--border-strong);
}

.tool-item summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tool-item summary::-webkit-details-marker {
  display: none;
}

.tool-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tool-name {
  font-size: 0.86rem;
  font-weight: 600;
}

.tool-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tool-pct {
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 44px;
  text-align: right;
}

.tool-perf-inline {
  font-size: 0.74rem;
  color: var(--ok);
}

.tool-sublist {
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  background: var(--surface-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-row {
  font-size: 0.8rem;
}

.sub-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.sub-row-name {
  font-weight: 600;
}

.sub-row-summary {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.sub-row-metrics {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.metric-chip {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--ok-soft);
  color: var(--ok);
}

/* Telemetry Split */
.telemetry-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px;
}

.telemetry-split .panel {
  margin-bottom: 0;
}

.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-row {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.highlight-name {
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.highlight-gain {
  font-size: 0.82rem;
  color: var(--ok);
  font-weight: 600;
}

.highlight-mem {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Pulse feed */
.pulse-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.pulse-row {
  display: grid;
  grid-template-columns: 64px auto minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 0.79rem;
}

.pulse-time {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
}

.pulse-mod {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-bright);
  background: var(--accent-soft);
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.pulse-act {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commits-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.commits-title {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.commits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.commits-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.commit-hash {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--accent-bright);
  flex-shrink: 0;
}

/* Lab Notes */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.note-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.note-card:hover {
  border-color: var(--border-strong);
}

.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.note-cat {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-bright);
}

.note-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.42;
}

.note-excerpt {
  margin: 0 0 14px;
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.note-details {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.note-details summary {
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.note-body {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.note-body p {
  margin: 0 0 10px;
}

.note-body p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 22px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-sep {
  margin: 0 7px;
  opacity: 0.6;
}

.icp-link {
  color: var(--text-secondary);
  font-weight: 600;
}

.icp-link:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

.empty-state {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .suites-grid,
  .telemetry-split,
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
  .gauge-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .gauge-metrics {
    width: 100%;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .pulse-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .pulse-mod {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
