/* ==========================================================================
   LiquidityClock Pro · 美元水龙头 (Planet #7 · LQ) — 129 RSI Kinetic Open Access
   Swiss Central-Bank Editorial + Kinetic Hydro-Telemetry Design System (v6.0)
   Warm Alabaster Light (Default) + Obsidian Slate Dark
   ========================================================================== */

:root {
  --bg-canvas: #F6F4EF;
  --bg-card: #FFFFFF;
  --bg-inset: #EFECE4;
  --bg-inset-soft: #F9F7F3;
  --bg-topbar: rgba(246, 244, 239, 0.92);

  --ink-primary: #0F172A;
  --ink-secondary: #3B495E;
  --ink-muted: #526175;
  --ink-faint: #7B899C;

  --border-hair: #DCD6CA;
  --border-strong: #BFB6A4;

  --accent-cobalt: #1D4ED8;
  --accent-cobalt-hover: #1E40AF;
  --accent-cobalt-tint: rgba(29, 78, 216, 0.09);

  --accent-emerald: #047857;
  --accent-emerald-tint: rgba(5, 150, 105, 0.10);
  --accent-emerald-border: rgba(5, 150, 105, 0.34);

  --accent-crimson: #C81E1E;
  --accent-crimson-tint: rgba(220, 38, 38, 0.09);
  --accent-crimson-border: rgba(220, 38, 38, 0.32);

  --accent-amber: #B45309;
  --accent-amber-tint: rgba(180, 83, 9, 0.10);
  --accent-amber-border: rgba(180, 83, 9, 0.34);

  --accent-gold: #9A6D14;
  --accent-gold-bg: rgba(214, 178, 103, 0.18);
  --accent-gold-border: rgba(160, 120, 42, 0.44);

  --accent-asset-spy: #0F172A;
  --accent-asset-btc: #D97706;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.035);
  --shadow-modal: 0 24px 64px rgba(15, 23, 42, 0.24);

  --font-serif: 'Newsreader', Georgia, 'Songti SC', 'Noto Serif SC', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --max-w: 1320px;
}

html[data-theme="dark"] {
  --bg-canvas: #090E18;
  --bg-card: #111927;
  --bg-inset: #1A2538;
  --bg-inset-soft: #141E2F;
  --bg-topbar: rgba(9, 14, 24, 0.92);

  --ink-primary: #F4F7FB;
  --ink-secondary: #D1DCEB;
  --ink-muted: #9EB0C7;
  --ink-faint: #788CA8;

  --border-hair: #26354E;
  --border-strong: #394E70;

  --accent-cobalt: #4E93FF;
  --accent-cobalt-hover: #70A8FF;
  --accent-cobalt-tint: rgba(78, 147, 255, 0.16);

  --accent-emerald: #10B981;
  --accent-emerald-tint: rgba(16, 185, 129, 0.15);
  --accent-emerald-border: rgba(16, 185, 129, 0.40);

  --accent-crimson: #F87171;
  --accent-crimson-tint: rgba(248, 113, 113, 0.15);
  --accent-crimson-border: rgba(248, 113, 113, 0.40);

  --accent-amber: #F59E0B;
  --accent-amber-tint: rgba(245, 158, 11, 0.15);
  --accent-amber-border: rgba(245, 158, 11, 0.40);

  --accent-gold: #F0CB77;
  --accent-gold-bg: rgba(214, 178, 103, 0.15);
  --accent-gold-border: rgba(214, 178, 103, 0.48);

  --accent-asset-spy: #E8EEF6;
  --accent-asset-btc: #FBBF24;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.32), 0 14px 32px rgba(0, 0, 0, 0.28);
  --shadow-modal: 0 28px 80px rgba(0, 0, 0, 0.72);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

.serif {
  font-family: var(--font-serif);
}

/* ---------- Architectural Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-topbar);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hair);
}

.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink-primary);
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  color: var(--ink-primary);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-pro {
  color: var(--accent-cobalt);
}

.brand-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

.orbit-slot {
  display: inline-flex;
  align-items: center;
}

.orbit-slot .kzg-orbit-trigger {
  height: 32px;
  align-self: center;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-hair);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.live-status-pill:hover {
  border-color: var(--accent-cobalt);
  color: var(--ink-primary);
  background: var(--bg-inset-soft);
}

.live-status-pill.is-syncing .live-dot {
  animation: lqPulse 0.9s ease-in-out infinite;
}

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

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 3px var(--accent-emerald-tint);
  flex-shrink: 0;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hair);
  background: var(--bg-card);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.nav-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-inset-soft);
}

.nav-btn--icon {
  min-width: 32px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.nav-btn--broker {
  color: var(--accent-cobalt);
  border-color: rgba(29, 78, 216, 0.26);
  background: var(--accent-cobalt-tint);
}

.nav-btn--broker:hover {
  border-color: var(--accent-cobalt);
  background: rgba(29, 78, 216, 0.15);
}

.nav-btn--club {
  background: linear-gradient(135deg, #E5B95C 0%, #C8942E 100%);
  color: #0B0E14;
  border-color: rgba(160, 120, 42, 0.45);
  padding: 0 12px;
  font-weight: 700;
}

.nav-btn--club:hover {
  background: linear-gradient(135deg, #F0CB77 0%, #D4A13B 100%);
  border-color: #B48322;
  color: #0B0E14;
  transform: translateY(-1px);
}

/* ---------- Main Swiss Container ---------- */
.shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px 52px;
}

.section {
  margin-bottom: 24px;
}

.section-meta-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-hair);
  flex-wrap: wrap;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cobalt);
  background: var(--accent-cobalt-tint);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--ink-secondary);
  text-transform: uppercase;
}

.open-access-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-emerald-tint);
  border: 1px solid var(--accent-emerald-border);
  color: var(--accent-emerald);
  white-space: nowrap;
}

.section-source {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* ---------- Cards & Accessibility Focus ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent-cobalt);
  outline-offset: 2px;
}

.card-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.card-title {
  margin: 3px 0 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
}

/* ---------- Segmented Controls ---------- */
.seg-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg-inset);
  border: 1px solid var(--border-hair);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.seg-btn:hover {
  color: var(--ink-primary);
}

.seg-btn.active {
  background: var(--bg-card);
  color: var(--accent-cobalt);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* ---------- SECTION 01: HERO VERDICT + 4W WATERFALL SVG ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr);
  gap: 18px;
  align-items: stretch;
}

.hero-verdict-card {
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 2px solid var(--border-strong);
}

.verdict-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.regime-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

.regime-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.regime-badge--emerald {
  background: var(--accent-emerald-tint);
  border-color: var(--accent-emerald-border);
  color: var(--accent-emerald);
}

.regime-badge--crimson {
  background: var(--accent-crimson-tint);
  border-color: var(--accent-crimson-border);
  color: var(--accent-crimson);
}

.regime-badge--neutral {
  background: var(--accent-amber-tint);
  border-color: var(--accent-amber-border);
  color: var(--accent-amber);
}

.clock-meter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.clock-meter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}

.clock-meter-track {
  position: relative;
  width: 138px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-crimson) 0%, #D97706 50%, var(--accent-emerald) 100%);
  opacity: 0.92;
}

.clock-meter-mid {
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1.5px;
  margin-left: -0.75px;
  background: var(--bg-card);
  opacity: 0.9;
  pointer-events: none;
}

.clock-meter-needle {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 16px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ink-primary);
  box-shadow: 0 0 0 2px var(--bg-card);
  transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.clock-score-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-secondary);
  background: var(--bg-inset);
  border: 1px solid var(--border-hair);
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.hero-kpi-cluster {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hair);
}

.hero-metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.hero-number-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-big-number {
  font-size: clamp(36px, 4.1vw, 52px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink-primary);
}

.hero-sub-number {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-muted);
  padding-left: 10px;
  border-left: 1px solid var(--border-strong);
}

.hero-deltas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.delta-box {
  min-width: 0;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-inset-soft);
  border: 1px solid var(--border-hair);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.delta-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.delta-val {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.delta-pct {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.val-pos {
  color: var(--accent-emerald) !important;
}

.val-neg {
  color: var(--accent-crimson) !important;
}

.val-flat {
  color: var(--ink-secondary) !important;
}

.hero-headline {
  margin: 16px 0 8px;
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
}

.hero-summary {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-secondary);
}

.formula-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-inset);
  border: 1px solid var(--border-hair);
}

.formula-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-cobalt);
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.formula-code {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-primary);
}

.formula-action {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--accent-cobalt);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  white-space: nowrap;
}

.formula-action:hover {
  text-decoration: underline;
}

/* Attribution & 4W Waterfall Card */
.attribution-card {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--border-strong);
}

.attr-controls-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.attr-controls-wrap .seg-btn {
  padding: 4px 8px;
  font-size: 11px;
}

.attr-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: -4px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.attr-period-note {
  font-size: 11px;
  color: var(--ink-muted);
}

.wf-equation-hint {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg-inset-soft);
  border: 1px solid var(--border-hair);
  padding: 2px 7px;
  border-radius: 5px;
}

.waterfall-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.waterfall-stage {
  position: relative;
  width: 100%;
  height: 214px;
  border-radius: var(--radius-md);
  background: var(--bg-inset-soft);
  border: 1px solid var(--border-hair);
  overflow: hidden;
}

.waterfall-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wf-bar-group {
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.wf-bar-group:hover .wf-bar-rect,
.wf-bar-group.is-selected .wf-bar-rect {
  filter: brightness(1.08);
  stroke-width: 2;
}

.wf-inspector {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  border: 1px solid var(--border-hair);
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.42;
}

.wf-inspector-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  flex-shrink: 0;
}

.wf-inspector-text {
  min-width: 0;
}

.pipes-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pipes-panel[hidden],
.waterfall-panel[hidden] {
  display: none !important;
}

.pipe-scale-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 2px 8px;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--border-hair);
}

.pipe-scale-neg {
  color: var(--accent-crimson);
}

.pipe-scale-zero {
  color: var(--ink-muted);
}

.pipe-scale-pos {
  color: var(--accent-emerald);
}

.pipes-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  justify-content: center;
}

.pipe-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pipe-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pipe-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}

.pipe-val {
  font-size: 14px;
  font-weight: 700;
}

.pipe-track {
  position: relative;
  height: 13px;
  border-radius: 6px;
  background: var(--bg-inset);
  border: 1px solid var(--border-hair);
  overflow: hidden;
}

.pipe-zero {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--border-strong);
  z-index: 2;
}

.pipe-bar {
  position: absolute;
  top: 1px;
  bottom: 1px;
  border-radius: 4px;
  transition: left 0.35s ease, width 0.35s ease, background-color 0.25s ease;
}

.pipe-bar--pos {
  background: linear-gradient(90deg, var(--accent-emerald), #10B981);
}

.pipe-bar--neg {
  background: linear-gradient(270deg, var(--accent-crimson), #EF4444);
}

.pipe-bar--flat {
  background: var(--ink-faint);
}

.pipe-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.attr-sum-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.attr-sum-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.attr-sum-val {
  font-size: 17px;
  font-weight: 700;
}

/* ---------- SECTION 02: MACRO REGIME PLAYBOOK STRIP ---------- */
.playbook-regime-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  padding: 3px 10px;
  border-radius: 999px;
}

.playbook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.playbook-card {
  padding: 16px 18px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 3px solid var(--border-strong);
  transition: border-color 0.16s ease, transform 0.14s ease;
}

.playbook-card--emerald {
  border-left-color: var(--accent-emerald);
}

.playbook-card--crimson {
  border-left-color: var(--accent-crimson);
}

.playbook-card--amber {
  border-left-color: var(--accent-amber);
}

.playbook-card--cobalt {
  border-left-color: var(--accent-cobalt);
}

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

.playbook-asset-code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.playbook-asset-name {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
}

.playbook-beta-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-inset);
  border: 1px solid var(--border-hair);
  color: var(--ink-primary);
  white-space: nowrap;
}

.playbook-stance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.playbook-stance--emerald {
  background: var(--accent-emerald-tint);
  color: var(--accent-emerald);
}

.playbook-stance--crimson {
  background: var(--accent-crimson-tint);
  color: var(--accent-crimson);
}

.playbook-stance--amber {
  background: var(--accent-amber-tint);
  color: var(--accent-amber);
}

.playbook-stance--cobalt {
  background: var(--accent-cobalt-tint);
  color: var(--accent-cobalt);
}

.playbook-meter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: var(--ink-muted);
}

.playbook-meter-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-inset);
  overflow: hidden;
}

.playbook-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent-cobalt);
}

.playbook-card--emerald .playbook-meter-fill {
  background: var(--accent-emerald);
}

.playbook-card--crimson .playbook-meter-fill {
  background: var(--accent-crimson);
}

.playbook-card--amber .playbook-meter-fill {
  background: var(--accent-amber);
}

.playbook-rationale {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.52;
  color: var(--ink-secondary);
  flex: 1;
}

.playbook-foot {
  padding-top: 8px;
  border-top: 1px solid var(--border-hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-muted);
}

.playbook-jump-btn {
  border: 1px solid var(--border-hair);
  background: var(--bg-inset-soft);
  color: var(--accent-cobalt);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.playbook-jump-btn:hover {
  border-color: var(--accent-cobalt);
  background: var(--accent-cobalt-tint);
}

/* ---------- SECTION 03: LEAD-LAG PHASE SHIFTER & MULTI-SPAN CHART ---------- */
.chart-card {
  padding: 20px 24px 16px;
  border-top: 2px solid var(--border-strong);
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chart-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.legend-swatch--net {
  background: var(--accent-cobalt);
}

.legend-swatch--asset {
  background: var(--accent-asset-spy);
}

.chart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Interactive 0W -> 16W Phase Shifter Bar */
.phase-shifter-bar {
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr);
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-inset-soft);
  border: 1px solid var(--border-hair);
}

.phase-slider-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phase-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.phase-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
}

.phase-readout {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cobalt);
  background: var(--accent-cobalt-tint);
  border: 1px solid rgba(29, 78, 216, 0.26);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.phase-quick-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.phase-chip {
  border: 1px solid var(--border-hair);
  background: var(--bg-card);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.phase-chip:hover {
  border-color: var(--accent-cobalt);
  color: var(--accent-cobalt);
}

.phase-chip.active {
  background: var(--accent-cobalt);
  border-color: var(--accent-cobalt);
  color: #FFFFFF;
}

.phase-chip--opt {
  border-color: var(--accent-emerald-border);
  color: var(--accent-emerald);
  background: var(--accent-emerald-tint);
}

.phase-chip--opt.active {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #FFFFFF;
}

.phase-stats-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.85fr);
  gap: 10px;
  align-items: stretch;
}

.phase-stat-card {
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

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

.phase-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-cobalt);
  line-height: 1.15;
}

.phase-stat-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.phase-correlogram-box {
  padding: 8px 10px 6px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phase-correlogram-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-muted);
}

.lag-mini-svg {
  width: 100%;
  height: 46px;
  display: block;
}

.lag-bar-hit {
  cursor: pointer;
}

.chart-stage {
  position: relative;
  width: 100%;
  height: 382px;
  border-radius: var(--radius-md);
  background: var(--bg-inset-soft);
  border: 1px solid var(--border-hair);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.liquidity-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-tooltip {
  position: absolute;
  top: 14px;
  z-index: 10;
  min-width: 268px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
  pointer-events: none;
  font-size: 12px;
}

.tt-date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cobalt);
  margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0;
  color: var(--ink-secondary);
}

.tt-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.tt-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tt-row strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink-primary);
  font-weight: 700;
  white-space: nowrap;
}

.chart-foot-strip {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.chart-asset-spot {
  font-weight: 600;
  color: var(--ink-secondary);
}

/* ---------- SECTION 04: 4 LIVE MACRO FAUCET CARDS + TGA RUNWAY ---------- */
.faucets-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.faucet-card {
  padding: 18px 18px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

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

.faucet-code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.faucet-name {
  margin: 3px 0 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.faucet-dir-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.faucet-dir-tag--pos {
  background: var(--accent-emerald-tint);
  color: var(--accent-emerald);
}

.faucet-dir-tag--inv {
  background: var(--accent-amber-tint);
  color: var(--accent-amber);
}

.faucet-dir-tag--cobalt {
  background: var(--accent-cobalt-tint);
  color: var(--accent-cobalt);
}

.faucet-val-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.faucet-val {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
}

.faucet-delta {
  font-size: 12px;
  font-weight: 700;
}

.faucet-spark {
  height: 46px;
  width: 100%;
}

.faucet-spark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.rrp-exhaust-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-inset-soft);
  border: 1px solid var(--border-hair);
}

.rrp-exhaust-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.rrp-exhaust-track {
  height: 7px;
  border-radius: 999px;
  background: var(--bg-inset);
  overflow: hidden;
}

.rrp-exhaust-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-crimson));
  border-radius: 999px;
}

.yield-curve-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yield-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  font-size: 10.5px;
  color: var(--ink-muted);
}

.yield-pills span {
  background: var(--bg-inset-soft);
  border: 1px solid var(--border-hair);
  border-radius: 5px;
  padding: 3px 4px;
  text-align: center;
  white-space: nowrap;
}

.yield-pills b {
  color: var(--ink-primary);
  font-weight: 700;
}

.faucet-spark--curve {
  height: 34px;
}

.faucet-foot {
  padding-top: 9px;
  border-top: 1px solid var(--border-hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-muted);
}

/* Treasury TGA Runway Projection Strip */
.tga-runway-card {
  margin-top: 14px;
  padding: 18px 22px 16px;
  border-top: 2px solid var(--border-strong);
}

.tga-runway-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.runway-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-hair);
  background: var(--bg-inset);
  color: var(--ink-primary);
  white-space: nowrap;
}

.runway-status-pill--emerald {
  background: var(--accent-emerald-tint);
  border-color: var(--accent-emerald-border);
  color: var(--accent-emerald);
}

.runway-status-pill--crimson {
  background: var(--accent-crimson-tint);
  border-color: var(--accent-crimson-border);
  color: var(--accent-crimson);
}

.runway-status-pill--cobalt {
  background: var(--accent-cobalt-tint);
  border-color: rgba(29, 78, 216, 0.30);
  color: var(--accent-cobalt);
}

.tga-gauge-wrap {
  margin-bottom: 14px;
}

.tga-gauge-labels {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 7px;
  min-height: 16px;
}

.tga-target-lbl {
  position: absolute;
  left: 77.8%;
  transform: translateX(-50%);
  color: var(--accent-cobalt);
  font-weight: 700;
  white-space: nowrap;
}

.tga-gauge-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--bg-inset);
  border: 1px solid var(--border-hair);
}

.tga-gauge-zone-warn {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16%;
  border-radius: 999px 0 0 999px;
  background: var(--accent-crimson-tint);
}

.tga-gauge-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-cobalt) 0%, var(--accent-amber) 76%, var(--accent-emerald) 100%);
  transition: width 0.4s ease;
}

.tga-gauge-target-line {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2.5px;
  margin-left: -1.25px;
  background: var(--accent-cobalt);
  z-index: 3;
}

.tga-gauge-pin {
  position: absolute;
  top: -5px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--ink-primary);
  border: 3px solid var(--bg-card);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
  z-index: 4;
  transition: left 0.4s ease;
}

.tga-runway-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.runway-kpi {
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--bg-inset-soft);
  border: 1px solid var(--border-hair);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.runway-kpi-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.runway-kpi-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
}

.tga-runway-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

/* ---------- SECTION 05: CALENDAR + SIMULATOR ---------- */
.dual-grid {
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr);
  gap: 18px;
  align-items: stretch;
}

.calendar-card,
.simulator-card {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}

.badge-subtle {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg-inset);
  border: 1px solid var(--border-hair);
  padding: 4px 8px;
  border-radius: 6px;
}

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

.cal-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-inset-soft);
  border: 1px solid var(--border-hair);
  border-left: 3px solid var(--border-strong);
}

.cal-item--INJECT {
  border-left-color: var(--accent-emerald);
}

.cal-item--DRAIN {
  border-left-color: var(--accent-crimson);
}

.cal-item--WATCH {
  border-left-color: var(--accent-cobalt);
}

.cal-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
}

.cal-md {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
}

.cal-away {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-cobalt);
  margin-top: 2px;
}

.cal-content {
  min-width: 0;
}

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

.cal-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
}

.cal-impact {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.cal-impact--INJECT {
  background: var(--accent-emerald-tint);
  color: var(--accent-emerald);
}

.cal-impact--DRAIN {
  background: var(--accent-crimson-tint);
  color: var(--accent-crimson);
}

.cal-impact--WATCH {
  background: var(--accent-cobalt-tint);
  color: var(--accent-cobalt);
}

.cal-mech {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--ink-secondary);
  line-height: 1.48;
}

/* What-If Simulator */
.btn-reset {
  border: 1px solid var(--border-hair);
  background: var(--bg-inset-soft);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-reset:hover {
  border-color: var(--accent-cobalt);
  color: var(--accent-cobalt);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.preset-chip {
  border: 1px solid var(--border-hair);
  background: var(--bg-inset-soft);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.preset-chip:hover,
.preset-chip.active {
  border-color: var(--accent-cobalt);
  background: var(--accent-cobalt-tint);
  color: var(--accent-cobalt);
}

.sliders-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
}

.slider-readout {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cobalt);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 40px;
  margin: -12px 0;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background: var(--slider-bg, var(--bg-inset));
  border: 1px solid var(--border-hair);
}

input[type="range"]::-moz-range-track {
  height: 7px;
  border-radius: 999px;
  background: var(--slider-bg, var(--bg-inset));
  border: 1px solid var(--border-hair);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7.5px;
  border-radius: 50%;
  background: var(--accent-cobalt);
  border: 2.5px solid var(--bg-card);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.32);
  cursor: pointer;
  transition: transform 0.12s ease;
}

input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cobalt);
  border: 2.5px solid var(--bg-card);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.32);
  cursor: pointer;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ink-muted);
}

.sim-pipes-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.sim-pipe-chip {
  padding: 8px 10px 7px;
  border-radius: var(--radius-sm);
  background: var(--bg-inset-soft);
  border: 1px solid var(--border-hair);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--ink-muted);
}

.sim-pipe-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sim-pipe-chip strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
}

.sim-pipe-meter {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: var(--bg-inset);
  overflow: hidden;
}

.sim-pipe-meter-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0%;
  border-radius: 999px;
  background: var(--ink-faint);
  transition: left 0.32s cubic-bezier(0.22, 1, 0.36, 1), width 0.32s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
}

.sim-output-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-inset-soft);
  border: 1px solid var(--border-hair);
  margin-top: auto;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sim-output-panel.is-inject {
  border-color: var(--accent-emerald-border);
  box-shadow: inset 3px 0 0 var(--accent-emerald);
}

.sim-output-panel.is-drain {
  border-color: var(--accent-crimson-border);
  box-shadow: inset 3px 0 0 var(--accent-crimson);
}

.sim-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sim-kpi-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.sim-kpi-val {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-primary);
}

.sim-kpi-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}

.sim-verdict-bar {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  border: 1px solid var(--border-hair);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sim-regime-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  color: var(--ink-primary);
  white-space: nowrap;
}

.sim-verdict-note {
  font-size: 12px;
  color: var(--ink-secondary);
}

.sim-calib-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-hair);
  font-size: 10.5px;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ---------- SECTION 06: 100% FREE OPEN ACCESS GROWTH STRIP HARMONIZATION ---------- */
.growth-section .kzg-growth-strip {
  margin-top: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.kzg-club-modal #kzg-club-close {
  min-width: 40px !important;
  min-height: 40px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-hair);
  background: var(--bg-card);
  padding: 24px 24px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}

.footer-sources {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-club-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-cobalt);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  cursor: pointer;
}

.footer-links a:hover,
.footer-club-btn:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  max-width: var(--max-w);
  margin: 14px auto 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-hair);
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* ---------- Modals (2x Retina Poster) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-panel {
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-modal);
  padding: 18px 22px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border-hair);
  margin-bottom: 12px;
}

.modal-title {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-primary);
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-hair);
  background: var(--bg-inset-soft);
  color: var(--ink-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-close:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
}

.btn-submit {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: none;
  background: var(--accent-cobalt);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-submit:hover {
  background: var(--accent-cobalt-hover);
}

.poster-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.poster-preview-wrap {
  display: flex;
  justify-content: center;
  background: var(--bg-inset);
  border: 1px solid var(--border-hair);
  border-radius: 12px;
  padding: 14px;
}

.poster-preview-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  display: block;
}

/* Toast */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  background: #0F172A;
  color: #F8FAFC;
  border: 1px solid rgba(59, 130, 246, 0.45);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.35);
}

/* ---------- Responsive Multi-Viewport Lock (1440 / 1280 / 1024 / 768 / 390) ---------- */
@media (max-width: 1180px) {
  .live-status-pill {
    display: none;
  }
}

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .playbook-grid {
    grid-template-columns: 1fr;
  }
  .phase-shifter-bar {
    grid-template-columns: 1fr;
  }
  .faucets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tga-runway-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dual-grid {
    grid-template-columns: 1fr;
  }
  .sim-output-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar-inner {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .topbar-right {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .shell {
    padding: 16px 16px 44px;
  }
  .section-source,
  .playbook-regime-pill {
    display: none;
  }
  .phase-stats-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .phase-correlogram-box {
    grid-column: 1 / -1;
  }
  .chart-stage {
    height: 312px;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    padding: 8px 12px;
    gap: 8px;
  }
  .topbar-left {
    width: 100%;
    justify-content: space-between;
  }
  .brand {
    min-height: 40px;
  }
  .brand-sub {
    display: none;
  }
  .topbar .kzg-orbit-trigger {
    height: 40px !important;
    padding: 0 12px !important;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    overflow-x: visible;
  }
  .nav-btn {
    min-height: 40px;
    min-width: 40px;
    padding: 0 10px;
  }
  .nav-btn--icon {
    min-width: 40px;
    padding: 0 8px;
  }
  .nav-btn--club {
    flex: 1;
  }
  .nav-btn--broker {
    display: none;
  }
  .shell {
    padding: 14px 12px 42px;
  }
  .hero-verdict-card,
  .attribution-card,
  .chart-card,
  .tga-runway-card,
  .calendar-card,
  .simulator-card {
    padding: 16px 14px;
  }
  .hero-deltas-grid {
    width: 100%;
  }
  .delta-box {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
  }
  .formula-action {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 7px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }
  .seg-btn {
    min-height: 40px;
    min-width: 40px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .phase-chip,
  .playbook-jump-btn,
  .btn-reset,
  .preset-chip {
    min-height: 40px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .waterfall-stage {
    height: 204px;
  }
  .attr-controls-wrap {
    flex-wrap: wrap;
  }
  .tga-target-lbl {
    position: static;
    transform: none;
  }
  .faucets-grid,
  .tga-runway-kpis,
  .sim-output-panel,
  .sim-pipes-strip {
    grid-template-columns: 1fr;
  }
  .chart-stage {
    height: 282px;
  }
  .clock-meter {
    width: 100%;
    justify-content: space-between;
  }
  .clock-meter-track {
    flex: 1;
  }
  .footer-links {
    gap: 8px;
  }
  .footer-links a,
  .footer-club-btn {
    min-height: 40px;
    padding: 0 6px;
  }
  .modal-panel {
    padding: 16px 14px;
  }
  .kzg-growth-actions {
    width: 100%;
  }
  .kzg-growth-btn {
    flex: 1;
  }
}

/* ==========================================================================
   129-RSI KINETIC HYDRO-TELEMETRY & SECTORRRG-INSPIRED VISUAL LIFE (v6.0)
   Every continuous & entrance animation is strictly prefers-reduced-motion safe
   ========================================================================== */

/* R106: Subtle kinetic clock hand breath in topbar brand mark */
.brand-hand-kinetic {
  transform-origin: 16px 16px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.3s ease;
  animation: lqClockBreath 5.2s ease-in-out infinite;
}

.brand-mark.is-pumping .brand-hand-kinetic {
  stroke: var(--accent-emerald);
  animation: lqClockPump 3.4s ease-in-out infinite;
}

.brand-mark.is-draining .brand-hand-kinetic {
  stroke: var(--accent-crimson);
  animation: lqClockDrain 3.8s ease-in-out infinite;
}

.brand-mark.is-draining .brand-pivot-pulse {
  fill: var(--accent-crimson);
}

.brand-mark.is-pumping .brand-pivot-pulse {
  fill: var(--accent-emerald);
}

@keyframes lqClockBreath {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(7deg); }
}

@keyframes lqClockPump {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(12deg); }
}

@keyframes lqClockDrain {
  0%, 100% { transform: rotate(6deg); }
  50% { transform: rotate(-10deg); }
}

/* R113: Continuous calm radar pulse on LIVE dot */
.live-dot {
  position: relative;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-emerald);
  opacity: 0;
  animation: lqBeaconRing 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes lqBeaconRing {
  0% { transform: scale(0.6); opacity: 0.72; }
  70% { transform: scale(1.75); opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* R111: Regime-tuned Hero Card accent & breathing badge beacon */
.hero-verdict-card {
  position: relative;
  overflow: hidden;
  transition: border-top-color 0.35s ease, box-shadow 0.35s ease;
}

.hero-verdict-card.regime--emerald {
  border-top: 2.5px solid var(--accent-emerald);
}

.hero-verdict-card.regime--crimson {
  border-top: 2.5px solid var(--accent-crimson);
}

.hero-verdict-card.regime--neutral {
  border-top: 2.5px solid var(--accent-amber);
}

.regime-dot {
  position: relative;
  flex-shrink: 0;
}

.regime-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  animation: lqBeaconRing 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* R108: Animated directional fluid-flow ribbon inside Clock Meter */
.clock-meter-track {
  overflow: visible;
}

.clock-meter-flow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.55;
  background-size: 26px 8px;
}

.clock-meter.is-pumping .clock-meter-flow {
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 10px,
    rgba(255, 255, 255, 0.52) 13px,
    transparent 16px,
    transparent 26px
  );
  animation: lqFlowRight 1.8s linear infinite;
}

.clock-meter.is-draining .clock-meter-flow {
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 10px,
    rgba(255, 255, 255, 0.52) 13px,
    transparent 16px,
    transparent 26px
  );
  animation: lqFlowLeft 1.9s linear infinite;
}

@keyframes lqFlowRight {
  from { background-position: 0 0; }
  to { background-position: 26px 0; }
}

@keyframes lqFlowLeft {
  from { background-position: 26px 0; }
  to { background-position: 0 0; }
}

/* R107: Live Breathing Water-Pressure Dial (Hydro-Pulse Chamber) */
.hero-primary-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pressure-chamber {
  position: relative;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-inset-soft);
  border: 1px solid var(--border-hair);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.pressure-chamber--emerald {
  border-color: var(--accent-emerald-border);
  box-shadow: 0 0 0 3px var(--accent-emerald-tint);
  color: var(--accent-emerald);
}

.pressure-chamber--crimson {
  border-color: var(--accent-crimson-border);
  box-shadow: 0 0 0 3px var(--accent-crimson-tint);
  color: var(--accent-crimson);
}

.pressure-chamber--neutral {
  border-color: var(--accent-amber-border);
  box-shadow: 0 0 0 3px var(--accent-amber-tint);
  color: var(--accent-amber);
}

.pressure-sonar {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  pointer-events: none;
}

.pressure-chamber--emerald .pressure-sonar {
  animation: lqHydroPump 2.3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.pressure-chamber--crimson .pressure-sonar {
  animation: lqHydroDrain 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.pressure-chamber--neutral .pressure-sonar {
  animation: lqHydroCalm 3.4s ease-in-out infinite;
}

@keyframes lqHydroPump {
  0% { transform: scale(0.92); opacity: 0.65; }
  75% { transform: scale(1.24); opacity: 0; }
  100% { transform: scale(1.24); opacity: 0; }
}

@keyframes lqHydroDrain {
  0% { transform: scale(1.18); opacity: 0; }
  30% { opacity: 0.58; }
  100% { transform: scale(0.88); opacity: 0; }
}

@keyframes lqHydroCalm {
  0%, 100% { transform: scale(0.98); opacity: 0.24; }
  50% { transform: scale(1.10); opacity: 0.52; }
}

.pressure-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pressure-ring-track {
  stroke: var(--border-hair);
  opacity: 0.72;
}

.pressure-ring-arc {
  stroke: currentColor;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.3s ease;
}

.pressure-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 2px;
}

.pressure-val {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink-primary);
}

.pressure-unit {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: currentColor;
}

.hero-metric-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.hero-metric-label-row .hero-metric-label {
  margin-bottom: 0;
}

.pressure-state-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border-hair);
  background: var(--bg-inset);
  color: var(--ink-secondary);
  white-space: nowrap;
}

.pressure-state-pill--emerald {
  background: var(--accent-emerald-tint);
  border-color: var(--accent-emerald-border);
  color: var(--accent-emerald);
}

.pressure-state-pill--crimson {
  background: var(--accent-crimson-tint);
  border-color: var(--accent-crimson-border);
  color: var(--accent-crimson);
}

.pressure-state-pill--neutral {
  background: var(--accent-amber-tint);
  border-color: var(--accent-amber-border);
  color: var(--accent-amber);
}

/* R114: Hero Delta Box Directional Momentum Micro-Bars */
.delta-flow-track {
  margin-top: 4px;
  height: 3.5px;
  border-radius: 999px;
  background: var(--bg-inset);
  overflow: hidden;
}

.delta-flow-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--ink-faint);
  transition: width 0.72s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
}

.delta-flow-bar--pos {
  background: linear-gradient(90deg, var(--accent-emerald), #10B981);
}

.delta-flow-bar--neg {
  background: linear-gradient(90deg, var(--accent-crimson), #EF4444);
}

/* R110: Interactive 3-Valve Hydro-Pipeline Quick Selector Strip */
.hydro-pipeline-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}

.hydro-valve-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-hair);
  background: var(--bg-inset-soft);
  color: var(--ink-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.14s ease;
}

.hydro-valve-chip:hover,
.hydro-valve-chip.is-active {
  border-color: var(--accent-cobalt);
  background: var(--accent-cobalt-tint);
  color: var(--ink-primary);
  transform: translateY(-1px);
}

.hydro-valve-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex-shrink: 0;
}

.hydro-valve-chip.is-pos .hydro-valve-dot {
  background: var(--accent-emerald);
  box-shadow: 0 0 0 2.5px var(--accent-emerald-tint);
  animation: lqDotBreathe 2.1s ease-in-out infinite;
}

.hydro-valve-chip.is-neg .hydro-valve-dot {
  background: var(--accent-crimson);
  box-shadow: 0 0 0 2.5px var(--accent-crimson-tint);
  animation: lqDotBreathe 2.1s ease-in-out infinite;
}

@keyframes lqDotBreathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.28); opacity: 0.65; }
}

.hydro-valve-name {
  font-weight: 700;
  font-size: 10.5px;
  color: var(--ink-muted);
}

.hydro-valve-val {
  font-weight: 700;
  font-size: 11px;
}

.hydro-pace-pill {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-inset);
  border: 1px solid var(--border-hair);
  color: var(--ink-secondary);
  white-space: nowrap;
}

/* R122: Always-On 3-Valve Faucet Decomposition Mini-Bars + Kinetic Sheen on Expanded Bars */
.waterfall-stage {
  height: 196px;
}

.valve-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.valve-mini-item {
  border: 1px solid var(--border-hair);
  background: var(--bg-inset-soft);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.14s ease;
}

.valve-mini-item:hover,
.valve-mini-item.is-selected {
  border-color: var(--accent-cobalt);
  background: var(--bg-card);
  transform: translateY(-1px);
}

.valve-mini-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}

.valve-mini-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.valve-mini-val {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.valve-mini-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-inset);
  overflow: hidden;
}

.valve-mini-zero {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  margin-left: -0.75px;
  background: var(--border-strong);
  z-index: 2;
}

.valve-mini-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  transition: left 0.58s cubic-bezier(0.22, 1, 0.36, 1), width 0.58s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
}

.valve-mini-bar--pos {
  background: linear-gradient(90deg, var(--accent-emerald), #10B981);
}

.valve-mini-bar--neg {
  background: linear-gradient(270deg, var(--accent-crimson), #EF4444);
}

.valve-mini-bar--flat {
  background: var(--ink-faint);
}

/* Staggered Waterfall SVG bar spring entrance & connector draw-in */
.wf-bar-rect {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: lqWfBarRise 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--wf-delay, 0ms);
}

@keyframes lqWfBarRise {
  0% { transform: scaleY(0.12); opacity: 0.25; }
  100% { transform: scaleY(1); opacity: 1; }
}

.wf-connector {
  stroke-dasharray: 4 3;
  animation: lqWfConnectorFlow 2.6s linear infinite;
}

@keyframes lqWfConnectorFlow {
  from { stroke-dashoffset: 14; }
  to { stroke-dashoffset: 0; }
}

/* Expanded 3-Valve Decomposition Bars (pipesPanel) kinetic flow sheen + state pills */
.pipe-name-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.pipe-state-pill {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1.5px 6px;
  border-radius: 999px;
  background: var(--bg-inset);
  border: 1px solid var(--border-hair);
  color: var(--ink-muted);
  white-space: nowrap;
}

.pipe-state-pill--pos {
  background: var(--accent-emerald-tint);
  border-color: var(--accent-emerald-border);
  color: var(--accent-emerald);
}

.pipe-state-pill--neg {
  background: var(--accent-crimson-tint);
  border-color: var(--accent-crimson-border);
  color: var(--accent-crimson);
}

.pipe-bar {
  position: absolute;
  overflow: hidden;
  transition: left 0.58s cubic-bezier(0.22, 1, 0.36, 1), width 0.58s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
}

.pipe-bar--pos::after,
.pipe-bar--neg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 28px 100%;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 9px,
    rgba(255, 255, 255, 0.30) 14px,
    transparent 19px,
    transparent 28px
  );
  pointer-events: none;
}

.pipe-bar--pos::after {
  animation: lqPipeSheenRight 1.6s linear infinite;
}

.pipe-bar--neg::after {
  animation: lqPipeSheenLeft 1.6s linear infinite;
}

@keyframes lqPipeSheenRight {
  from { background-position: 0 0; }
  to { background-position: 28px 0; }
}

@keyframes lqPipeSheenLeft {
  from { background-position: 28px 0; }
  to { background-position: 0 0; }
}

/* R112: Playbook Kinetic Sensitivity Bars & Hover Micro-Lift */
.playbook-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .playbook-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

.playbook-meter-fill {
  position: relative;
  transform-origin: left center;
  animation: lqMeterGrow 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lqMeterGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.playbook-impact-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-inset);
  border: 1px solid var(--border-hair);
}

/* R115–R121: Kinetic 10Y Lead-Lag Chart — SVG Draw-In, Liquid-Flow Pulse, Phase Sweep & Span Pill */
.legend-swatch--pulse {
  position: relative;
  overflow: hidden;
}

.legend-swatch--pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  animation: lqLegendSweep 2.2s linear infinite;
}

@keyframes lqLegendSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.phase-chip--play {
  border-color: rgba(29, 78, 216, 0.35);
  background: var(--accent-cobalt-tint);
  color: var(--accent-cobalt);
}

.phase-chip--play.is-playing {
  background: var(--accent-cobalt);
  border-color: var(--accent-cobalt);
  color: #FFFFFF;
}

.lq-line-draw {
  stroke-dasharray: var(--path-len, 2400);
  stroke-dashoffset: var(--path-len, 2400);
  animation: lqLineDrawIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lq-asset-draw {
  stroke-dasharray: var(--path-len, 2400);
  stroke-dashoffset: var(--path-len, 2400);
  animation: lqLineDrawIn 0.96s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

@keyframes lqLineDrawIn {
  to { stroke-dashoffset: 0; }
}

.lq-area-fade {
  animation: lqAreaFadeIn 0.72s ease-out both;
}

@keyframes lqAreaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lq-flow-pulse {
  stroke-dasharray: 16 42;
  stroke-linecap: round;
  animation: lqLiquidCurrent 2.6s linear infinite;
  pointer-events: none;
}

@keyframes lqLiquidCurrent {
  from { stroke-dashoffset: 116; }
  to { stroke-dashoffset: 0; }
}

.lq-head-ripple {
  transform-box: fill-box;
  transform-origin: center;
  animation: lqHeadSonar 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes lqHeadSonar {
  0% { transform: scale(0.75); opacity: 0.82; }
  75% { transform: scale(2.45); opacity: 0; }
  100% { transform: scale(2.45); opacity: 0; }
}

.lq-runway-shimmer {
  animation: lqRunwayBreathe 3.2s ease-in-out infinite;
}

@keyframes lqRunwayBreathe {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.17; }
}

.lag-bar-rect {
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: opacity 0.16s ease, fill 0.16s ease, transform 0.16s ease;
}

.lag-bar-hit:hover .lag-bar-rect {
  opacity: 1 !important;
  transform: scaleY(1.08);
}

.chart-foot-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.chart-span-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--accent-cobalt-tint);
  border: 1px solid rgba(29, 78, 216, 0.24);
  color: var(--accent-cobalt);
  white-space: nowrap;
}

/* R123: 4 Macro Faucet Sparklines Draw-In & Live RRP Exhaustion Transition */
.pipe-row {
  transition: border-color 0.2s ease, background-color 0.2s ease;
  border-radius: var(--radius-sm);
}

.pipe-row.is-focused {
  background: var(--accent-cobalt-tint);
  padding: 6px 8px;
  margin: -6px -8px;
}

.spark-line-draw {
  stroke-dasharray: var(--path-len, 640);
  stroke-dashoffset: var(--path-len, 640);
  animation: lqLineDrawIn 0.82s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.spark-head-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: lqHeadSonar 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.rrp-exhaust-fill {
  position: relative;
  overflow: hidden;
  transition: width 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.rrp-exhaust-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  animation: lqLegendSweep 2.8s linear infinite;
}

/* R124: Treasury TGA Runway Kinetic Water-Level Fill & Pin Radar */
.tga-gauge-fill {
  overflow: hidden;
  transition: width 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.tga-gauge-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 36px 100%;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 12px,
    rgba(255, 255, 255, 0.25) 18px,
    transparent 24px,
    transparent 36px
  );
  animation: lqFlowRight 2.4s linear infinite;
}

.tga-gauge-pin::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent-emerald);
  opacity: 0;
  animation: lqBeaconRing 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* R101: KZG v6.0 Growth & 1-Click Verdict Bar Swiss Harmonization */
.growth-section .kzg-vote-btn {
  border-color: var(--border-strong);
  color: var(--ink-primary);
}

.growth-section .kzg-vote-input {
  border-color: var(--border-strong);
  color: var(--ink-primary);
}

/* Responsive Kinetic & Mobile 390px >=40px Touch-Target Locks */
@media (max-width: 1120px) {
  .hydro-pace-pill {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .hero-primary-wrap {
    gap: 11px;
  }
  .pressure-chamber {
    width: 58px;
    height: 58px;
  }
  .pressure-val {
    font-size: 14.5px;
  }
  .hydro-valve-chip {
    min-height: 40px;
    padding: 0 11px;
  }
  .valve-mini-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .valve-mini-item {
    min-height: 44px;
    padding: 8px 11px;
    justify-content: center;
  }
  .kzg-vote-btn {
    min-height: 40px !important;
    min-width: 44px !important;
  }
  .waterfall-stage {
    height: 192px;
  }
  .tga-gauge-labels {
    font-size: 9.5px;
    padding-bottom: 16px;
  }
  .tga-target-lbl {
    position: absolute;
    top: 15px;
    left: 77.8%;
    transform: translateX(-64%);
  }
}

/* R127: Comprehensive prefers-reduced-motion Safety Lock */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .brand-hand-kinetic,
  .live-dot::after,
  .live-status-pill.is-syncing .live-dot,
  .regime-dot::after,
  .clock-meter-flow,
  .pressure-sonar,
  .hydro-valve-dot,
  .wf-bar-rect,
  .wf-connector,
  .pipe-bar--pos::after,
  .pipe-bar--neg::after,
  .playbook-meter-fill,
  .legend-swatch--pulse::after,
  .lq-line-draw,
  .lq-asset-draw,
  .lq-area-fade,
  .lq-flow-pulse,
  .lq-head-ripple,
  .lq-runway-shimmer,
  .spark-line-draw,
  .spark-head-pulse,
  .rrp-exhaust-fill::after,
  .tga-gauge-fill::after,
  .tga-gauge-pin::after {
    animation: none !important;
  }
  .lq-line-draw,
  .lq-asset-draw,
  .spark-line-draw {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
  .lq-flow-pulse {
    opacity: 0.45 !important;
  }
  .clock-meter-needle,
  .pressure-ring-arc,
  .delta-flow-bar,
  .valve-mini-bar,
  .pipe-bar,
  .sim-pipe-meter-fill,
  .rrp-exhaust-fill,
  .tga-gauge-fill,
  .tga-gauge-pin {
    transition-duration: 0.01ms !important;
  }
}
