  :root {
    --bg: #0a0e17;
    --surface: #111827;
    --surface2: #1a2332;
    --surface3: #1e293b;
    --border: #1e2d3d;
    --text: #e2e8f0;
    --text-dim: #64748b;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --green: #10b981;
    --red: #ef4444;
    --amber: #f59e0b;
    --purple: #8b5cf6;
    --font: 'SF Mono', 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { overflow-x: hidden; }
  body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; font-size: 13px; line-height: 1.6; }

  header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
  header::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: headerPulse 4s ease-in-out infinite; }
  .demo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 24px;
    border-bottom: 1px solid rgba(16,185,129,0.26);
    background:
      linear-gradient(90deg, rgba(16,185,129,0.13), rgba(6,182,212,0.08), rgba(59,130,246,0.05)),
      rgba(2,6,23,0.92);
    color: #d1fae5;
  }
  .demo-banner b {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green);
  }
  .demo-banner span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
  }
  body.demo-mode header::after { background: linear-gradient(90deg, transparent, var(--green), var(--accent), transparent); }
  @keyframes headerPulse { 0% { left: -30%; } 100% { left: 100%; } }
  @keyframes borderGlow {
    0% { border-color: rgba(59,130,246,0.5); box-shadow: 0 0 20px rgba(59,130,246,0.15), 0 0 60px rgba(59,130,246,0.05); }
    25% { border-color: rgba(139,92,246,0.6); box-shadow: 0 0 25px rgba(139,92,246,0.2), 0 0 60px rgba(139,92,246,0.08); }
    50% { border-color: rgba(16,185,129,0.6); box-shadow: 0 0 25px rgba(16,185,129,0.2), 0 0 60px rgba(16,185,129,0.08); }
    75% { border-color: rgba(245,158,11,0.5); box-shadow: 0 0 25px rgba(245,158,11,0.18), 0 0 60px rgba(245,158,11,0.06); }
    100% { border-color: rgba(59,130,246,0.5); box-shadow: 0 0 20px rgba(59,130,246,0.15), 0 0 60px rgba(59,130,246,0.05); }
  }
  #hero-carousel { animation: fadeInUp 0.3s ease 0.15s both, borderGlow 6s ease-in-out infinite !important; position: relative; overflow: hidden; }
  #hero-carousel::before { content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px; border-radius: 14px; background: conic-gradient(from 0deg, rgba(59,130,246,0.6), rgba(139,92,246,0.5), rgba(16,185,129,0.5), rgba(245,158,11,0.4), rgba(239,68,68,0.4), rgba(59,130,246,0.6)); z-index: -1; animation: rotateBorder 4s linear infinite; filter: blur(4px); }
  #hero-carousel::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 12px; background: var(--surface); z-index: -1; }
  @keyframes rotateBorder { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
  @keyframes textGlow {
    0% { text-shadow: 0 0 8px currentColor; }
    50% { text-shadow: 0 0 20px currentColor, 0 0 40px currentColor; }
    100% { text-shadow: 0 0 8px currentColor; }
  }
  #pain-text { animation: textGlow 2.5s ease-in-out infinite; }
  .logo { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; }
  .logo span { color: var(--accent); }
  .header-stats { display: flex; gap: 24px; font-size: 12px; color: var(--text-dim); }
  .stat-value { font-weight: 600; color: var(--text); }
  .stat-running { color: var(--green); font-weight: 700; }
  .status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
  .status-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
  .status-dot.offline { background: var(--red); }

  /* Tab bar */
  .tab-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 24px; display: flex; gap: 0; }
  .tab-btn { padding: 12px 20px; font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--text-dim); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.15s; text-transform: uppercase; letter-spacing: 0.5px; }
  .tab-btn:hover { color: var(--text); background: var(--surface2); }
  .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
  .tab-content { display: none; }
  .tab-content.active { display: block; }

  .container { max-width: 1280px; margin: 0 auto; padding: 24px; }

  .card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; min-width: 0; }
  .card-header { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); display: flex; justify-content: space-between; align-items: center; }
  .card-body { padding: 16px; min-width: 0; overflow-wrap: anywhere; }

  /* Scenario cards */
  .category-section { margin-bottom: 32px; }
  .category-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .scenario-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
  .scenario-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px; cursor: pointer; transition: all 0.2s; position: relative; }
  .scenario-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
  .scenario-card.selected { border-color: var(--accent); background: var(--accent-glow); }
  .scenario-card-name { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
  .scenario-card-desc { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin-bottom: 16px; min-height: 36px; }
  .scenario-card-meta { display: flex; justify-content: space-between; align-items: center; }
  .scenario-card-fault { font-size: 11px; color: var(--accent); background: var(--accent-glow); padding: 2px 8px; border-radius: 4px; }
  .scenario-card-duration { font-size: 11px; color: var(--text-dim); }
  .scenario-run-btn { margin-top: 12px; width: 100%; padding: 8px; background: var(--accent); color: #fff; border: none; border-radius: 4px; font-family: var(--font); font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
  .scenario-run-btn:hover { background: #2563eb; }

  /* Scenario launch panel */
  .launch-panel { background: var(--surface2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; margin-top: 16px; padding: 24px; }
  .launch-panel-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
  .guide-section { background: var(--surface3); border: 1px solid var(--border); border-left: 3px solid var(--purple); border-radius: 0 6px 6px 0; padding: 16px; margin-bottom: 20px; }
  .guide-heading { font-size: 12px; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
  .guide-text { font-size: 12px; color: var(--text-dim); line-height: 1.7; }
  .guide-list { list-style: none; padding: 0; }
  .guide-list li { font-size: 12px; color: var(--text-dim); line-height: 1.7; padding-left: 16px; position: relative; }
  .guide-list li::before { content: "->"; position: absolute; left: 0; color: var(--accent); }
  .guide-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
  .guide-good { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 6px; padding: 12px; }
  .guide-bad { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 6px; padding: 12px; }
  .guide-good .guide-heading { color: var(--green); }
  .guide-bad .guide-heading { color: var(--red); }
  .guide-realworld { font-size: 12px; color: var(--text-dim); font-style: italic; padding: 12px; background: rgba(245, 158, 11, 0.05); border: 1px solid rgba(245, 158, 11, 0.15); border-radius: 6px; margin-bottom: 16px; }
  .launch-agent-picker { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
  .launch-agent-picker h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin-bottom: 12px; }
  .launch-start-btn { margin-top: 16px; padding: 10px 24px; background: var(--green); color: #fff; border: none; border-radius: 4px; font-family: var(--font); font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.15s; }
  .launch-start-btn:hover { background: #059669; }
  .launch-start-btn:disabled { background: var(--text-dim); cursor: not-allowed; }

  /* Experiments tab */
  .exp-grid { display: grid; grid-template-columns: 360px 1fr; gap: 24px; }
  @media (max-width: 900px) { .exp-grid { grid-template-columns: 1fr; } }

  .form-group { margin-bottom: 12px; }
  .form-group label { display: block; font-size: 11px; color: var(--text-dim); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
  .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 8px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-family: var(--font); font-size: 13px; outline: none; transition: border-color 0.2s; }
  .form-group textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .fault-fields { display: none; }
  .fault-fields.active { display: block; }

  .btn { padding: 8px 16px; border: none; border-radius: 4px; font-family: var(--font); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
  .btn-primary { background: var(--accent); color: #fff; width: 100%; padding: 10px; }
  .btn-primary:hover { background: #2563eb; }
  .btn-sm { padding: 4px 10px; font-size: 11px; }
  .btn-green { background: var(--green); color: #fff; }
  .btn-green:hover { background: #059669; }
  .btn-red { background: var(--red); color: #fff; }
  .btn-red:hover { background: #dc2626; }
  .btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
  .btn-ghost:hover { color: var(--text); border-color: var(--text-dim); }

  .adv-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 16px; font-size: 12px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
  .adv-toggle:hover { color: var(--text); }
  .adv-toggle-arrow { transition: transform 0.2s; display: inline-block; }
  .adv-toggle-arrow.open { transform: rotate(90deg); }
  .adv-form-wrap { display: none; }
  .adv-form-wrap.open { display: block; }

  .exp-list { list-style: none; }
  .exp-item { padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
  .exp-item:last-child { border-bottom: none; }
  .exp-item:hover { background: var(--surface2); }
  .exp-item.active { background: var(--accent-glow); border-left: 2px solid var(--accent); }
  .exp-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
  .exp-name { font-weight: 600; font-size: 13px; }
  .exp-badge { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
  .badge-running { background: rgba(16, 185, 129, 0.15); color: var(--green); }
  .badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
  .badge-stopped { background: rgba(100, 116, 139, 0.15); color: var(--text-dim); }
  .badge-failed { background: rgba(239, 68, 68, 0.15); color: var(--red); }
  .badge-rolled_back { background: rgba(139, 92, 246, 0.15); color: var(--purple); }
  .exp-meta { font-size: 11px; color: var(--text-dim); }

  .detail-empty { display: flex; align-items: center; justify-content: center; height: 300px; color: var(--text-dim); font-size: 14px; }
  .detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
  .detail-title { font-size: 18px; font-weight: 700; }
  .detail-actions { display: flex; gap: 8px; }
  .detail-agent-info { display: flex; gap: 16px; margin-bottom: 16px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }
  .detail-agent-label { color: var(--text-dim); text-transform: uppercase; font-size: 10px; letter-spacing: 0.5px; }
  .detail-agent-value { font-weight: 600; margin-top: 2px; }
  .metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
  .metric-card { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 12px; text-align: center; }
  .metric-value { font-size: 24px; font-weight: 700; line-height: 1.2; }
  .metric-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
  .metric-value.green { color: var(--green); }
  .metric-value.red { color: var(--red); }
  .metric-value.amber { color: var(--amber); }
  .metric-value.blue { color: var(--accent); }

  /* ────────────────────────────────────────────────────────────────
     Attention-grabbing AI hero cards (preflight + postgame).
     The plain .ai-card form remains for muted/empty states; the
     .ai-hero variant is the loaded result that we want users' eyes
     to land on. Glass surface, animated entry, gauge / ring, ticket
     grid, and pill-shaped lists.
     ──────────────────────────────────────────────────────────────── */
  .ai-hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 22px 22px 20px;
    margin-top: 6px;
    color: var(--text);
    background:
      linear-gradient(160deg, rgba(15,23,42,0.92), rgba(2,6,23,0.92)),
      radial-gradient(circle at 20% 0%, rgba(103,232,249,0.18), transparent 55%);
    border: 1px solid rgba(103,232,249,0.22);
    box-shadow: 0 22px 60px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: aiHeroEnter 0.6s cubic-bezier(0.22,1,0.36,1);
  }
  .ai-hero-ok    { border-color: rgba(16,185,129,0.34); }
  .ai-hero-warn  { border-color: rgba(245,158,11,0.36); }
  .ai-hero-bad   { border-color: rgba(239,68,68,0.36); }
  .ai-hero-glow {
    position: absolute;
    inset: -40% -10% auto auto;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103,232,249,0.20), transparent 60%);
    pointer-events: none;
    animation: aiHeroSweep 9s ease-in-out infinite;
  }
  .ai-hero-bad .ai-hero-glow  { background: radial-gradient(circle, rgba(239,68,68,0.20), transparent 60%); }
  .ai-hero-warn .ai-hero-glow { background: radial-gradient(circle, rgba(245,158,11,0.20), transparent 60%); }
  .ai-hero-head {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
  }
  .ai-hero-kicker {
    color: #67e8f9;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
  }
  .ai-hero-status {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(2,6,23,0.6);
    border: 1px solid rgba(148,163,184,0.20);
  }
  .ai-hero-status.status-ok    { color: var(--green); border-color: rgba(16,185,129,0.40); background: rgba(16,185,129,0.08); }
  .ai-hero-status.status-warn  { color: var(--amber); border-color: rgba(245,158,11,0.40); background: rgba(245,158,11,0.08); }
  .ai-hero-status.status-bad   { color: var(--red);   border-color: rgba(239,68,68,0.40);  background: rgba(239,68,68,0.08); }
  .ai-hero-headline {
    position: relative;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 4px 0 6px;
  }
  .ai-hero-sub {
    position: relative;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .ai-summary-strip {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 12px 0 16px;
  }
  .ai-summary-card {
    position: relative;
    min-height: 112px;
    padding: 13px;
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(15,23,42,0.72), rgba(2,6,23,0.58)),
      radial-gradient(circle at 18% 0%, rgba(103,232,249,0.10), transparent 50%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;
  }
  .ai-summary-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(103,232,249,0.78), transparent);
    transform: translateX(-120%);
    animation: timelineSweep 6s ease-in-out infinite;
  }
  .ai-summary-card:nth-child(2)::after { animation-delay: 0.55s; }
  .ai-summary-card:nth-child(3)::after { animation-delay: 1.1s; }
  .ai-summary-label {
    color: #67e8f9;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .ai-summary-value {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
  }
  .ai-summary-note {
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.45;
    margin-top: 7px;
  }
  .ai-hero-block {
    position: relative;
    margin: 8px 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(239,68,68,0.10);
    border: 1px solid rgba(239,68,68,0.32);
    color: var(--red);
    font-size: 12px;
    line-height: 1.5;
  }

  /* Risk gauge for preflight. Track + animated fill that grows on
     entry from 0 to the configured score. Color tracks the bucket
     (green/amber/red). */
  .risk-gauge {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
  }
  .risk-gauge-track {
    flex: 1;
    height: 12px;
    border-radius: 999px;
    background: rgba(30,41,59,0.7);
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.10);
  }
  .risk-gauge-fill {
    width: var(--w);
    height: 100%;
    background: linear-gradient(90deg, rgba(103,232,249,0.4), var(--c));
    box-shadow: 0 0 18px var(--c);
    animation: gaugeFill 1.1s cubic-bezier(0.22,1,0.36,1);
  }
  .risk-gauge-label b {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text);
  }
  .risk-gauge-label span {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-left: 6px;
  }

  /* Tile grid for blast radius facets. */
  .ai-tile-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
  }
  .ai-tile {
    padding: 12px 12px;
    border-radius: 12px;
    background: rgba(2,6,23,0.6);
    border: 1px solid rgba(148,163,184,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
  .ai-tile:hover { transform: translateY(-2px); border-color: rgba(103,232,249,0.30); }
  .ai-tile-kicker {
    color: var(--text-dim);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .ai-tile-value { font-size: 14px; font-weight: 800; color: var(--text); }

  /* Section title used inside .ai-hero. */
  .ai-section-title {
    position: relative;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 14px 0 8px;
  }
  /* Pill list — replaces the bullet "->" list with chip-style items
     so the hero card stays scannable. */
  .ai-list-pills {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .ai-list-pills li {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(2,6,23,0.55);
    border: 1px solid rgba(148,163,184,0.16);
    color: var(--text);
    font-size: 11px;
    line-height: 1.4;
  }
  .ai-list-pills li::before { content: ''; }
  .ai-list-pills.accent li {
    border-color: rgba(103,232,249,0.30);
    background: rgba(6,182,212,0.07);
    color: #67e8f9;
  }

  /* Resilience ring for postgame — circular score with stroke
     animation so the number lands big. */
  .resilience-score {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 6px 0 10px;
  }
  .resilience-ring {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
  }
  .resilience-ring-track {
    fill: none;
    stroke: rgba(148,163,184,0.14);
    stroke-width: 10;
  }
  .resilience-ring-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px currentColor);
    animation: resilienceDraw 1.4s cubic-bezier(0.22,1,0.36,1);
  }
  .resilience-score-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 220px;
  }
  .resilience-score-value b { font-size: 56px; font-weight: 900; letter-spacing: -2px; line-height: 1; }
  .resilience-score-value span { font-size: 14px; color: var(--text-dim); }
  .resilience-score-value em { display: block; font-style: normal; font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.6px; width: 100%; margin-top: 2px; }

  /* Follow-up ticket grid — each ticket reads as a card with a
     priority pill, title, and body. */
  .ai-ticket-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 4px;
  }
  .ai-ticket {
    position: relative;
    padding: 14px 14px 12px;
    border-radius: 12px;
    background: rgba(2,6,23,0.6);
    border: 1px solid rgba(148,163,184,0.16);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, border-color 0.2s ease;
  }
  .ai-ticket:hover { transform: translateY(-3px); border-color: rgba(103,232,249,0.30); }
  .ai-ticket-prio {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
    background: rgba(148,163,184,0.16);
    color: var(--text-dim);
  }
  .ai-ticket-prio.p-high { background: rgba(239,68,68,0.18);  color: var(--red); }
  .ai-ticket-prio.p-mid  { background: rgba(245,158,11,0.18); color: var(--amber); }
  .ai-ticket-prio.p-low  { background: rgba(103,232,249,0.18); color: #67e8f9; }
  .ai-ticket-title { font-size: 12px; font-weight: 800; color: var(--text); line-height: 1.35; margin-bottom: 4px; }
  .ai-ticket-body { font-size: 11px; line-height: 1.5; color: var(--text-dim); }

  /* Protocol breakdown panel — observed packets per IANA protocol. */
  .protocol-panel {
    margin: 6px 0 14px;
    padding: 14px 16px 16px;
    border-radius: 12px;
    background: linear-gradient(155deg, rgba(15,23,42,0.85), rgba(2,6,23,0.85));
    border: 1px solid rgba(148,163,184,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  }
  .protocol-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  .protocol-filter-pill {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(6,182,212,0.10);
    border: 1px solid rgba(103,232,249,0.30);
    color: #67e8f9;
    white-space: nowrap;
  }
  .protocol-bars { display: flex; flex-direction: column; gap: 8px; }
  .protocol-row  { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; font-size: 11px; }
  .protocol-name {
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 10px;
  }
  .protocol-name-cyan   { color: #67e8f9; }
  .protocol-name-green  { color: var(--green); }
  .protocol-name-amber  { color: var(--amber); }
  .protocol-name-violet { color: #a78bfa; }
  .protocol-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(30,41,59,0.7);
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.08);
  }
  .protocol-bar-fill {
    width: var(--w);
    height: 100%;
    border-radius: inherit;
    animation: gaugeFill 1s cubic-bezier(0.22,1,0.36,1);
  }
  .protocol-bar-cyan   { background: linear-gradient(90deg, rgba(103,232,249,0.4), #67e8f9); box-shadow: 0 0 12px rgba(103,232,249,0.5); }
  .protocol-bar-green  { background: linear-gradient(90deg, rgba(16,185,129,0.4), var(--green)); box-shadow: 0 0 12px rgba(16,185,129,0.5); }
  .protocol-bar-amber  { background: linear-gradient(90deg, rgba(245,158,11,0.4), var(--amber)); box-shadow: 0 0 12px rgba(245,158,11,0.5); }
  .protocol-bar-violet { background: linear-gradient(90deg, rgba(167,139,250,0.4), #a78bfa); box-shadow: 0 0 12px rgba(167,139,250,0.5); }
  .protocol-count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); font-size: 11px; }

  @keyframes aiHeroEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes aiHeroSweep { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-30px, 20px, 0); } }
  @keyframes gaugeFill { from { width: 0; } to { width: var(--w); } }
  @keyframes resilienceDraw { from { stroke-dasharray: 0 327; } }

  .ai-panel { background: linear-gradient(135deg, rgba(59,130,246,0.10), rgba(16,185,129,0.06)); border: 1px solid rgba(59,130,246,0.25); border-radius: 8px; padding: 14px; margin-bottom: 16px; box-shadow: 0 18px 50px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.04); }
  .ai-panel.compact { margin-bottom: 0; }
  .ai-workbench {
    border-radius: 14px;
    background:
      radial-gradient(circle at 0% 0%, rgba(103,232,249,0.13), transparent 32%),
      linear-gradient(135deg, rgba(59,130,246,0.10), rgba(16,185,129,0.06));
  }
  .ai-workbench-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
  }
  .ai-action-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
  }
  .ai-action-pills .active {
    color: var(--text);
    border-color: rgba(103,232,249,0.48);
    background: rgba(103,232,249,0.10);
  }
  .ai-empty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  .ai-action-card {
    text-align: left;
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(15,23,42,0.76), rgba(2,6,23,0.62)),
      radial-gradient(circle at 100% 0%, rgba(103,232,249,0.09), transparent 34%);
    color: var(--text);
    padding: 12px;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  }
  .ai-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(103,232,249,0.42);
    background: rgba(14,165,233,0.10);
  }
  .ai-action-card b {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
  }
  .ai-action-card span {
    display: block;
    color: var(--text-dim);
    font-size: 10.5px;
    line-height: 1.5;
  }
  .ai-card { background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 12px; }
  .ai-card.ok { border-color: rgba(16,185,129,0.35); }
  .ai-card.bad { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.06); }
  .ai-card.muted { color: var(--text-dim); }
  .ai-title { font-size: 13px; font-weight: 700; color: var(--text); }
  .ai-sub { font-size: 11px; color: var(--text-dim); margin-top: 3px; line-height: 1.5; }
  .ai-mini-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); margin-top: 10px; margin-bottom: 4px; }
  .ai-list { list-style: none; margin-top: 6px; }
  .ai-list li { font-size: 11px; color: var(--text-dim); line-height: 1.7; padding-left: 14px; position: relative; }
  .ai-list li::before { content: "->"; position: absolute; left: 0; color: var(--accent); }
  .ai-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin-top: 10px; font-size: 11px; }
  .ai-kv span { color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.4px; }
  .ai-kv b { color: var(--text); font-weight: 600; }
  .ai-llm-box { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

  .info-table { width: 100%; font-size: 12px; }
  .info-table tr { border-bottom: 1px solid var(--border); }
  .info-table tr:last-child { border-bottom: none; }
  .info-table td { padding: 8px 0; }
  .info-table td:first-child { color: var(--text-dim); width: 120px; text-transform: uppercase; font-size: 10px; letter-spacing: 0.5px; }
  .info-table td:last-child { word-break: break-word; overflow-wrap: anywhere; }

  .chart-container { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 12px; margin-top: 16px; height: 180px; position: relative; }
  .chart-container canvas { width: 100%; height: 100%; }
  .chart-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
  .chart-legend { display: flex; gap: 16px; margin-top: 8px; }
  .chart-legend-item { font-size: 10px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; }
  .chart-legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

  /* Guide collapsible in experiment detail */
  .detail-guide-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 0; margin-top: 16px; font-size: 12px; color: var(--purple); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border-top: 1px solid var(--border); }
  .detail-guide-toggle:hover { color: var(--text); }
  .detail-guide-content { display: none; margin-top: 8px; }
  .detail-guide-content.open { display: block; }

  /* Agents tab */
  .agents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
  .agent-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
  .agent-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
  .agent-card-name { font-size: 15px; font-weight: 700; }
  .agent-card-id { font-size: 11px; color: var(--text-dim); margin-top: 4px; word-break: break-all; }
  .agent-card-status { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; }
  .agent-card-status.online { color: var(--green); }
  .agent-card-status.offline { color: var(--red); }
  .agent-card-info { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
  .agent-card-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12px; }
  .agent-card-row-label { color: var(--text-dim); text-transform: uppercase; font-size: 10px; letter-spacing: 0.5px; }
  .agent-iface-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .agent-iface-chip { padding: 3px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; font-size: 11px; }
  .iface-pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
  .iface-pulse.active { background: var(--green); box-shadow: 0 0 4px var(--green); animation: ifacePulse 1.5s ease-in-out infinite; }
  .iface-pulse.idle { background: var(--border); }
  @keyframes ifacePulse { 0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--green); } 50% { opacity: 0.4; box-shadow: 0 0 8px var(--green); } }
  .iface-rate { font-size: 9px; color: var(--green); margin-left: 4px; font-weight: 600; }
  .iface-rate.idle { color: var(--text-dim); }

  /* Label / pod chips on agent cards — replaces the previous comma-joined
     text dump that made labels unreadable for k8s agents. */
  .label-chip { display: inline-flex; align-items: center; padding: 2px 8px;
                background: var(--bg); border: 1px solid var(--border);
                border-radius: 999px; font-size: 10px; line-height: 1.4;
                color: var(--text-dim); white-space: nowrap; }
  .label-chip.pod-chip { color: var(--text); border-color: rgba(16,185,129,0.25); }
  .label-chip.pod-chip-more, .iface-toggle { color: var(--accent); cursor: pointer; }
  .label-chip.pod-chip-more:hover, .iface-toggle:hover { border-color: var(--accent); }
  .gameday-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 12px;
    align-items: start;
  }
  .gameday-main,
  .gameday-side {
    min-width: 0;
  }
  .gameday-side {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 12px;
  }
  .gd-composer-card,
  .gd-side-card {
    position: relative;
  }
  .gd-composer-card::before,
  .gd-side-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(103,232,249,0.46), transparent);
    opacity: 0.65;
    pointer-events: none;
  }
  .gd-side-body {
    display: grid;
    gap: 10px;
  }
  .gd-context-card .card-body {
    padding: 12px;
  }
  .gd-context-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  .gd-context-summary span {
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 10px;
    background:
      linear-gradient(135deg, rgba(15,23,42,0.78), rgba(2,6,23,0.58)),
      radial-gradient(circle at 100% 0%, rgba(103,232,249,0.08), transparent 44%);
  }
  .gd-context-summary em {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dim);
    font-size: 8.5px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
  .gd-context-summary b {
    display: block;
    color: var(--text);
    font-size: 14px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .gd-context-warning {
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(245,158,11,0.28);
    border-radius: 10px;
    background: rgba(245,158,11,0.06);
    color: var(--amber);
    font-size: 11px;
    line-height: 1.45;
  }
  .gd-context-details {
    margin-top: 8px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 10px;
    background: rgba(2,6,23,0.34);
    overflow: hidden;
  }
  .gd-context-details summary {
    padding: 8px 10px;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
  }
  .gd-context-details[open] summary {
    color: var(--accent);
    border-bottom: 1px solid rgba(148,163,184,0.12);
  }
  .gd-context-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
  }
  .gd-context-table th,
  .gd-context-table td {
    padding: 7px 10px;
    border-bottom: 1px solid rgba(148,163,184,0.10);
    text-align: left;
  }
  .gd-context-table th {
    color: var(--text-dim);
    font-size: 9px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
  .gd-context-table tr:last-child td {
    border-bottom: 0;
  }
  .gd-context-list {
    display: grid;
    gap: 0;
  }
  .gd-context-list div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(148,163,184,0.10);
    font-size: 11px;
  }
  .gd-context-list div:last-child {
    border-bottom: 0;
  }
  .gd-context-list span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .gd-context-list em {
    flex-shrink: 0;
    color: var(--text-dim);
    font-style: normal;
  }
  .gd-gamedays-card .card-header {
    align-items: center;
    gap: 10px;
  }
  .gd-side-section {
    min-width: 0;
  }
  .gd-side-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    color: var(--text-dim);
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
  .gd-side-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(103,232,249,0.20), transparent);
  }
  .gameday-composer {
    display: grid;
    gap: 12px;
  }
  .gd-intent-cards {
    padding: 12px;
    border: 1px solid rgba(103,232,249,0.14);
    border-radius: 10px;
    background:
      linear-gradient(135deg, rgba(14,165,233,0.08), rgba(16,185,129,0.05)),
      rgba(2,6,23,0.42);
  }
  .gd-intent-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }
  .gd-intent-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  .gd-intent-card {
    text-align: left;
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 10px;
    background: rgba(15,23,42,0.68);
    color: var(--text);
    padding: 10px;
    cursor: pointer;
    min-height: 94px;
    transition: transform 0.16s, border-color 0.16s, background 0.16s;
  }
  .gd-intent-card:hover,
  .gd-intent-card.selected {
    transform: translateY(-2px);
    border-color: rgba(103,232,249,0.52);
    background: rgba(14,165,233,0.12);
  }
  .gd-intent-card b {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
  }
  .gd-intent-card span {
    display: block;
    color: var(--text-dim);
    font-size: 10.5px;
    line-height: 1.45;
  }
  .gd-service-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
  }
  .gd-service-row > span {
    color: var(--text-dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-right: 3px;
  }
  .gd-service-chip {
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 999px;
    background: rgba(2,6,23,0.60);
    color: var(--text);
    padding: 6px 9px;
    font-size: 11px;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
  }
  .gd-service-chip em {
    color: var(--text-dim);
    font-style: normal;
    margin-left: 6px;
    font-size: 9px;
  }
  .gd-service-chip:hover,
  .gd-service-chip.selected {
    transform: translateY(-1px);
    border-color: var(--green);
    background: rgba(16,185,129,0.10);
  }
  .gd-goal-wrap {
    margin-bottom: 0;
  }
  .gd-goal-input {
    min-height: 118px;
    background:
      linear-gradient(180deg, rgba(15,23,42,0.92), rgba(2,6,23,0.84)),
      radial-gradient(circle at 18% 0%, rgba(103,232,249,0.10), transparent 42%);
  }
  .gd-target-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 8px;
    background: rgba(2,6,23,0.42);
  }
  .gd-namespace-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .gd-label-picker {
    padding: 12px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 8px;
    background: rgba(15,23,42,0.44);
  }
  .gd-label-picker-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
  }
  .gd-label-picker-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
  }
  .gd-label-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }
  .gd-label-chip {
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
  }
  .gd-label-chip:hover,
  .gd-label-chip.selected {
    border-color: var(--accent);
    color: var(--text);
    background: var(--accent-glow);
  }
  .gd-readiness-panel {
    position: relative;
    overflow: hidden;
    padding: 12px;
    border: 1px solid rgba(103,232,249,0.16);
    border-radius: 12px;
    background:
      radial-gradient(circle at 0% 0%, rgba(103,232,249,0.11), transparent 36%),
      linear-gradient(135deg, rgba(15,23,42,0.78), rgba(2,6,23,0.70));
  }
  .gd-readiness-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0%, rgba(103,232,249,0.08) 42%, transparent 58%);
    transform: translateX(-80%);
    animation: gdReadinessSweep 5s ease-in-out infinite;
  }
  @keyframes gdReadinessSweep {
    0%, 55% { transform: translateX(-90%); opacity: 0; }
    68% { opacity: 1; }
    100% { transform: translateX(90%); opacity: 0; }
  }
  .gd-flow-rail {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 10px;
  }
  .gd-flow-rail span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 8px;
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 999px;
    background: rgba(2,6,23,0.52);
    color: var(--text-dim);
    font-size: 10.5px;
    font-weight: 700;
  }
  .gd-flow-rail b {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(148,163,184,0.14);
    color: var(--text);
    font-size: 10px;
  }
  .gd-flow-rail span.done {
    border-color: rgba(16,185,129,0.38);
    color: var(--text);
    background: rgba(16,185,129,0.08);
  }
  .gd-flow-rail span.done b {
    background: rgba(16,185,129,0.22);
    color: var(--green);
  }
  .gd-flow-rail span.active {
    border-color: rgba(245,158,11,0.48);
    color: var(--amber);
    box-shadow: 0 0 18px rgba(245,158,11,0.08);
  }
  .gd-readiness-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
  }
  .gd-readiness-title {
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
    margin-bottom: 3px;
  }
  .gd-readiness-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(82px, 1fr));
    gap: 6px;
  }
  .gd-readiness-facts span,
  .gd-plan-stats span {
    padding: 8px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 9px;
    background: rgba(2,6,23,0.46);
  }
  .gd-readiness-facts em,
  .gd-plan-stats em {
    display: block;
    color: var(--text-dim);
    font-size: 8.5px;
    font-style: normal;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .gd-readiness-facts b,
  .gd-plan-stats b {
    display: block;
    color: var(--text);
    font-size: 11px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .gd-composer-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 2px;
    flex-wrap: wrap;
  }
  .gd-composer-actions .btn-primary {
    width: auto;
  }
  .gd-composer-actions .btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.35);
  }
  #gd-status {
    font-size: 11px;
    color: var(--text-dim);
  }
  .gd-plan-overview {
    padding: 12px;
    border: 1px solid rgba(103,232,249,0.16);
    border-radius: 12px;
    background:
      radial-gradient(circle at 88% 0%, rgba(16,185,129,0.11), transparent 34%),
      rgba(2,6,23,0.46);
  }
  .gd-plan-overview.muted {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-dim);
  }
  .gd-plan-overview.muted b {
    display: block;
    color: var(--text);
    font-size: 12px;
    margin-bottom: 4px;
  }
  .gd-plan-overview.muted span {
    display: block;
    font-size: 11px;
    line-height: 1.45;
  }
  .gd-plan-empty-pulse {
    flex-shrink: 0;
    padding: 7px 10px;
    border: 1px solid rgba(103,232,249,0.18);
    border-radius: 999px;
    color: var(--accent);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    animation: gdPulseText 2.8s ease-in-out infinite;
  }
  @keyframes gdPulseText {
    0%, 100% { opacity: 0.62; }
    50% { opacity: 1; }
  }
  .gd-plan-stats {
    display: grid;
    grid-template-columns: 0.7fr 0.7fr 0.9fr 2fr;
    gap: 8px;
  }
  .gd-mini-timeline {
    display: flex;
    gap: 6px;
    margin-top: 10px;
  }
  .gd-mini-step {
    flex: var(--step-flex) 1 48px;
    min-width: 48px;
    padding: 8px 9px;
    border: 1px solid rgba(103,232,249,0.16);
    border-radius: 10px;
    background:
      linear-gradient(90deg, rgba(103,232,249,0.10), rgba(16,185,129,0.07)),
      rgba(15,23,42,0.58);
    overflow: hidden;
  }
  .gd-mini-step b {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(103,232,249,0.16);
    color: var(--accent);
    font-size: 10px;
    margin-right: 6px;
  }
  .gd-mini-step em {
    color: var(--text);
    font-size: 10.5px;
    font-style: normal;
    font-weight: 750;
  }
  .gd-plan-caption {
    margin-top: 9px;
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.45;
  }
  .gd-edit-card {
    border-color: rgba(103,232,249,0.35);
    background:
      linear-gradient(180deg, rgba(15,23,42,0.86), rgba(2,6,23,0.76)),
      radial-gradient(circle at 18% 0%, rgba(103,232,249,0.10), transparent 44%);
  }
  .gd-edit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
  }
  .gd-edit-wide {
    grid-column: 1 / -1;
  }
  .gd-leg-editor {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 8px;
    background: rgba(2,6,23,0.50);
  }
  .gd-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
      radial-gradient(circle at 50% 18%, rgba(103,232,249,0.16), transparent 34%),
      rgba(2,6,23,0.74);
    backdrop-filter: blur(16px);
  }
  .gd-dialog-overlay.open {
    display: flex;
    animation: gdDialogFade 0.16s ease both;
  }
  .gd-dialog {
    position: relative;
    width: min(720px, calc(100vw - 28px));
    max-height: calc(100vh - 36px);
    overflow: hidden;
    border: 1px solid rgba(103,232,249,0.24);
    border-radius: 26px;
    background:
      linear-gradient(145deg, rgba(15,23,42,0.96), rgba(2,6,23,0.92)),
      radial-gradient(circle at 100% 0%, rgba(16,185,129,0.18), transparent 34%);
    box-shadow: 0 32px 90px rgba(0,0,0,0.46), inset 0 1px 0 rgba(255,255,255,0.06);
    animation: gdDialogRise 0.22s cubic-bezier(.2,.8,.2,1) both;
  }
  .gd-dialog::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(103,232,249,0.72), transparent);
  }
  .gd-dialog-shell {
    position: relative;
    padding: 24px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
  }
  .gd-dialog-orb {
    position: absolute;
    right: -44px;
    top: -46px;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(103,232,249,0.20), transparent 64%);
    pointer-events: none;
    animation: gdPulseText 3.8s ease-in-out infinite;
  }
  .gd-dialog-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 999px;
    background: rgba(2,6,23,0.62);
    color: var(--text-dim);
    cursor: pointer;
  }
  .gd-dialog-close:hover {
    color: var(--text);
    border-color: rgba(103,232,249,0.38);
  }
  .gd-dialog-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 9px;
    border: 1px solid rgba(103,232,249,0.22);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(103,232,249,0.07);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .gd-dialog-title {
    max-width: 560px;
    color: var(--text);
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.02;
  }
  .gd-dialog-subtitle {
    max-width: 620px;
    margin-top: 9px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.55;
  }
  .gd-dialog-body {
    margin-top: 18px;
  }
  .gd-dialog-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }
  .gd-dialog-summary span {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(148,163,184,0.13);
    border-radius: 13px;
    background: rgba(2,6,23,0.46);
  }
  .gd-dialog-summary em {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dim);
    font-size: 8.5px;
    font-style: normal;
    font-weight: 850;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
  .gd-dialog-summary b {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .gd-dialog-field {
    display: grid;
    gap: 7px;
    margin-top: 12px;
  }
  .gd-dialog-field label,
  .gd-dialog-section-title {
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
  .gd-dialog-field input,
  .gd-dialog-field textarea {
    width: 100%;
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 13px;
    background:
      linear-gradient(180deg, rgba(15,23,42,0.92), rgba(2,6,23,0.82)),
      radial-gradient(circle at 0% 0%, rgba(103,232,249,0.08), transparent 42%);
    color: var(--text);
    padding: 12px 13px;
    font: inherit;
    font-size: 13px;
    outline: none;
  }
  .gd-dialog-field input:focus,
  .gd-dialog-field textarea:focus {
    border-color: rgba(103,232,249,0.58);
    box-shadow: 0 0 0 3px rgba(103,232,249,0.09);
  }
  .gd-dialog-plan-preview {
    margin-top: 16px;
  }
  .gd-dialog-steps {
    display: grid;
    gap: 7px;
    margin-top: 8px;
    max-height: 220px;
    overflow-y: auto;
  }
  .gd-dialog-step {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: center;
    padding: 9px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 13px;
    background: rgba(2,6,23,0.42);
  }
  .gd-dialog-step span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 11px;
    background: rgba(103,232,249,0.13);
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
  }
  .gd-dialog-step b {
    display: block;
    color: var(--text);
    font-size: 12px;
    margin-bottom: 3px;
  }
  .gd-dialog-step em {
    display: block;
    color: var(--text-dim);
    font-size: 10.5px;
    font-style: normal;
  }
  .gd-dialog-note,
  .gd-dialog-empty {
    padding: 13px;
    border: 1px solid rgba(103,232,249,0.16);
    border-radius: 14px;
    background: rgba(2,6,23,0.46);
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.55;
  }
  .gd-dialog-note.danger {
    border-color: rgba(239,68,68,0.30);
    background: rgba(239,68,68,0.07);
    color: #fecaca;
  }
  .gd-dialog-error {
    display: none;
    margin-top: 12px;
    padding: 9px 11px;
    border: 1px solid rgba(245,158,11,0.32);
    border-radius: 12px;
    background: rgba(245,158,11,0.08);
    color: var(--amber);
    font-size: 12px;
  }
  .gd-dialog-error.visible {
    display: block;
  }
  .gd-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
  }
  .gd-dialog-actions .btn {
    width: auto;
  }
  .gd-dialog-danger {
    border-color: rgba(239,68,68,0.32);
  }
  .gd-dialog-run {
    border-color: rgba(16,185,129,0.30);
  }
  @keyframes gdDialogFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes gdDialogRise {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .gd-console-empty {
    padding: 18px;
    border: 1px solid rgba(103,232,249,0.16);
    border-radius: 14px;
    background:
      radial-gradient(circle at 82% 0%, rgba(103,232,249,0.13), transparent 36%),
      rgba(2,6,23,0.46);
    color: var(--text-dim);
  }
  .gd-console-empty.compact {
    padding: 13px;
  }
  .gd-console-empty span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 8px;
    border: 1px solid rgba(103,232,249,0.20);
    border-radius: 999px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .gd-console-empty b {
    display: block;
    color: var(--text);
    font-size: 13px;
    margin-bottom: 4px;
  }
  .gd-console-empty p {
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
  }
  .gd-plan-library {
    display: grid;
    gap: 10px;
  }
  .gd-plan-card {
    padding: 12px;
    border: 1px solid rgba(148,163,184,0.13);
    border-radius: 12px;
    background:
      linear-gradient(135deg, rgba(15,23,42,0.82), rgba(2,6,23,0.66)),
      radial-gradient(circle at 100% 0%, rgba(103,232,249,0.08), transparent 36%);
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  }
  .gd-plan-card:hover,
  .gd-plan-card.active {
    transform: translateY(-2px);
    border-color: rgba(103,232,249,0.38);
  }
  .gd-plan-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
  }
  .gd-plan-card-title {
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
  }
  .gd-plan-card-meta,
  .gd-plan-card-foot {
    color: var(--text-dim);
    font-size: 10px;
    line-height: 1.45;
  }
  .gd-plan-card-copy {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .gd-plan-card-foot {
    margin-top: 8px;
  }
  .gd-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }
  .gd-plan-actions .danger:hover {
    color: var(--red);
    border-color: rgba(239,68,68,0.42);
  }
  .gd-run-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 4px 7px;
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 999px;
    background: rgba(148,163,184,0.06);
    color: var(--text-dim);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
  }
  .gd-run-status.ok {
    border-color: rgba(16,185,129,0.34);
    background: rgba(16,185,129,0.10);
    color: var(--green);
  }
  .gd-run-status.running {
    border-color: rgba(103,232,249,0.42);
    background: rgba(103,232,249,0.10);
    color: var(--accent);
    animation: gdPulseText 1.6s ease-in-out infinite;
  }
  .gd-run-status.warn {
    border-color: rgba(245,158,11,0.38);
    background: rgba(245,158,11,0.10);
    color: var(--amber);
  }
  .gd-run-status.bad {
    border-color: rgba(239,68,68,0.40);
    background: rgba(239,68,68,0.10);
    color: var(--red);
  }
  .gd-run-live {
    padding: 13px;
    border: 1px solid rgba(103,232,249,0.20);
    border-radius: 14px;
    background:
      radial-gradient(circle at 96% 0%, rgba(103,232,249,0.12), transparent 40%),
      linear-gradient(180deg, rgba(15,23,42,0.82), rgba(2,6,23,0.70));
  }
  .gd-run-live.ok {
    border-color: rgba(16,185,129,0.28);
  }
  .gd-run-live.bad {
    border-color: rgba(239,68,68,0.30);
  }
  .gd-run-live-head,
  .gd-run-history-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }
  .gd-run-live-head .btn {
    flex: 0 0 auto;
  }
  .gd-run-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 10px 0;
  }
  .gd-run-kpis span {
    padding: 8px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 10px;
    background: rgba(2,6,23,0.46);
  }
  .gd-run-kpis em {
    display: block;
    color: var(--text-dim);
    font-size: 8px;
    font-style: normal;
    letter-spacing: 0.7px;
    text-transform: uppercase;
  }
  .gd-run-kpis b {
    display: block;
    color: var(--text);
    font-size: 12px;
    margin-top: 3px;
  }
  .gd-run-step {
    margin-top: 9px;
    padding: 10px;
    border: 1px solid rgba(148,163,184,0.12);
    border-left: 3px solid rgba(148,163,184,0.24);
    border-radius: 10px;
    background: rgba(2,6,23,0.44);
  }
  .gd-run-step.running {
    border-left-color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(103,232,249,0.08);
  }
  .gd-run-step.ok {
    border-left-color: var(--green);
  }
  .gd-run-step.bad {
    border-left-color: var(--red);
  }
  .gd-run-step-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 8px;
  }
  .gd-run-step-head span {
    display: block;
    color: var(--text-dim);
    font-size: 9px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
  .gd-run-step-head b {
    display: block;
    color: var(--text);
    font-size: 12px;
  }
  .gd-run-step-head em {
    color: var(--text-dim);
    font-size: 10px;
    font-style: normal;
    white-space: nowrap;
  }
  .gd-run-legs {
    display: grid;
    gap: 7px;
  }
  .gd-run-leg {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(148,163,184,0.10);
    border-radius: 9px;
    background: rgba(15,23,42,0.52);
  }
  .gd-run-leg-main b,
  .gd-run-leg-main span,
  .gd-run-leg-main em,
  .gd-run-leg-main strong {
    display: block;
  }
  .gd-run-leg-main b {
    color: var(--text);
    font-size: 10.5px;
    line-height: 1.35;
    word-break: break-all;
  }
  .gd-run-leg-main span {
    color: var(--text-dim);
    font-size: 10px;
  }
  .gd-run-leg-main em {
    color: var(--accent);
    font-size: 10px;
    font-style: normal;
  }
  .gd-run-leg-main strong {
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
  }
  .gd-run-history {
    display: grid;
    gap: 9px;
  }
  .gd-run-history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 7px;
    align-items: center;
    padding: 9px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 10px;
    background: rgba(2,6,23,0.42);
  }
  .gd-run-history-item b,
  .gd-run-history-item span {
    display: block;
  }
  .gd-run-history-item b {
    color: var(--text);
    font-size: 10.5px;
    word-break: break-all;
  }
  .gd-run-history-item span {
    color: var(--text-dim);
    font-size: 10px;
  }
  .gd-run-report {
    margin-top: 12px;
  }
  .gd-report-card {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(103,232,249,0.24);
    border-radius: 12px;
    background:
      radial-gradient(circle at 8% 0%, rgba(103,232,249,0.12), transparent 38%),
      linear-gradient(180deg, rgba(15,23,42,0.86), rgba(2,6,23,0.74));
  }
  .gd-report-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
  }
  .gd-report-score {
    min-width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(103,232,249,0.28);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(103,232,249,0.12), transparent 66%);
  }
  .gd-report-score b {
    color: var(--score-color);
    font-size: 25px;
    line-height: 1;
  }
  .gd-report-score span,
  .gd-report-score em {
    color: var(--text-dim);
    font-size: 10px;
    font-style: normal;
    margin-top: -12px;
  }
  .gd-report-outcome {
    margin-top: 12px;
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    background: rgba(103,232,249,0.06);
    color: var(--text);
    font-size: 12px;
    line-height: 1.55;
  }
  .gd-report-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
  }
  .gd-report-metrics div {
    padding: 9px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 8px;
    background: rgba(2,6,23,0.44);
  }
  .gd-report-metrics span {
    display: block;
    color: var(--text-dim);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 5px;
  }
  .gd-report-metrics b {
    font-size: 12px;
  }
  .gd-ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .gd-ticket {
    padding: 10px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 8px;
    background: rgba(2,6,23,0.42);
  }
  .gd-ticket span {
    color: var(--amber);
    font-size: 9px;
    font-weight: 900;
  }
  .gd-ticket b {
    display: block;
    margin-top: 4px;
    font-size: 12px;
  }
  .gd-ticket p {
    margin: 5px 0 0;
    color: var(--text-dim);
    font-size: 10.5px;
    line-height: 1.45;
  }
  .gd-report-details {
    margin-top: 12px;
    color: var(--text-dim);
    font-size: 11px;
  }
  .gd-report-details summary {
    cursor: pointer;
    color: var(--accent);
  }
  .gd-report-step {
    margin-top: 8px;
    padding: 8px;
    border: 1px solid rgba(148,163,184,0.10);
    border-radius: 8px;
    background: rgba(2,6,23,0.35);
  }
  .gd-report-leg {
    margin-top: 4px;
    font-size: 10.5px;
    line-height: 1.45;
  }
  .agent-card-experiments { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
  .agent-exp-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 12px; }

  /* Agent picker in launch panel and modal */
  .agent-option { padding: 12px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s; }
  .agent-option:hover { border-color: var(--accent); background: var(--accent-glow); }
  .agent-option.selected { border-color: var(--accent); background: var(--accent-glow); }
  .agent-option-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
  .agent-option-name { font-weight: 600; font-size: 13px; }
  .agent-option-meta { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
  .agent-option-ifaces { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
  .agent-option-ifaces-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 4px; width: 100%; }

  .iface-chip { padding: 4px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; cursor: pointer; transition: all 0.15s; }
  .iface-chip:hover { border-color: var(--accent); color: var(--accent); }
  .iface-chip.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

  /* Modal */
  .modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 100; align-items: center; justify-content: center; }
  .modal-overlay.open { display: flex; }
  .modal { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; width: 460px; max-height: 80vh; overflow-y: auto; }
  .modal-header { padding: 16px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; }
  .modal-body { padding: 16px; }
  .modal-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
  .modal-hint { font-size: 11px; color: var(--text-dim); margin-bottom: 12px; }

  .no-data { text-align: center; color: var(--text-dim); padding: 40px 20px; font-size: 13px; }

  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

  /* Landing page */
  .landing {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
      radial-gradient(circle at var(--cursor-x, 20vw) var(--cursor-y, 12vh), rgba(6,182,212,0.15), transparent 32vw),
      radial-gradient(circle at 80% 8%, rgba(16,185,129,0.14), transparent 28vw),
      linear-gradient(180deg, #050816 0%, #0a0e17 38%, #060912 100%);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    isolation: isolate;
  }
  .landing::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
      linear-gradient(rgba(148,163,184,0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148,163,184,0.035) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 68%);
    mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 68%);
  }
  .landing::after {
    content: '';
    position: fixed;
    width: 70vw;
    height: 70vw;
    left: 15vw;
    top: -32vw;
    z-index: 0;
    pointer-events: none;
    background: conic-gradient(from 140deg, rgba(59,130,246,0.16), rgba(6,182,212,0.20), rgba(16,185,129,0.14), rgba(245,158,11,0.08), rgba(59,130,246,0.16));
    filter: blur(74px);
    opacity: 0.55;
    animation: auroraDrift 18s ease-in-out infinite alternate;
  }
  .landing.hidden { display: none; }
  .landing.exiting { animation: landingExit 0.5s ease forwards; pointer-events: none; }
  @keyframes landingExit { 0% { opacity: 1; } 100% { opacity: 0; filter: blur(4px); } }

  /* Dashboard entrance */
  .dashboard-enter { animation: dashEnter 0.4s ease 0.2s both; }
  @keyframes dashEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .landing-inner { max-width: 1180px; margin: 0 auto; padding: 26px 24px 56px; background: transparent; position: relative; z-index: 1; }

  .hero { text-align: center; margin: 18px auto 22px; max-width: 980px; position: relative; }
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(6,182,212,0.24);
    border-radius: 999px;
    background: rgba(6,182,212,0.07);
    color: #67e8f9;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    animation: fadeInUp 0.45s ease both;
  }
  .hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 16px rgba(16,185,129,0.9);
    animation: pulse 1.7s ease-in-out infinite;
  }
  .hero .logo {
    font-size: clamp(44px, 8vw, 94px);
    line-height: 0.9;
    margin-bottom: 12px;
    letter-spacing: -5px;
    animation: fadeInUp 0.45s ease 0.03s both;
    text-shadow: 0 0 42px rgba(59,130,246,0.20);
  }
  .hero .tagline {
    font-size: clamp(24px, 4.8vw, 56px);
    color: var(--text);
    max-width: 930px;
    margin: 0 auto 14px;
    animation: fadeInUp 0.45s ease 0.08s both;
    line-height: 0.98;
    letter-spacing: -3px;
  }
  .hero .subtitle {
    color: #94a3b8;
    font-size: clamp(13px, 1.8vw, 17px);
    max-width: 760px;
    margin: 0 auto 18px;
    line-height: 1.7;
    animation: fadeInUp 0.45s ease 0.13s both;
  }
  .hero .btn-hero { padding: 14px 40px; font-size: 16px; border-radius: 8px; animation: fadeInUp 0.3s ease 0.15s both; }
  .hero-actions { display: inline-flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.45s ease 0.18s both; }
  .hero-actions .btn-primary { width: auto; }
  .hero-btn {
    position: relative;
    padding: 12px 22px;
    min-width: 156px;
    border-radius: 999px;
    overflow: hidden;
    white-space: nowrap;
  }
  .hero-btn-primary { box-shadow: 0 16px 42px rgba(59,130,246,0.28); }
  .hero-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
    animation: buttonSheen 3.8s ease-in-out infinite;
    pointer-events: none;
  }
  .hero-btn-secondary {
    background: rgba(15,23,42,0.55);
    border: 1px solid rgba(148,163,184,0.20);
    color: #cbd5e1;
    backdrop-filter: blur(18px);
  }
  .hero-btn-secondary:hover { border-color: rgba(6,182,212,0.45); color: var(--text); }
  .hero-btn-demo {
    color: #d1fae5;
    border: 1px solid rgba(16,185,129,0.36);
    background:
      linear-gradient(135deg, rgba(16,185,129,0.18), rgba(6,182,212,0.10)),
      rgba(15,23,42,0.70);
    box-shadow: 0 16px 40px rgba(16,185,129,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(18px);
  }
  .hero-btn-demo:hover {
    color: #ecfeff;
    border-color: rgba(16,185,129,0.62);
    transform: translateY(-2px);
  }
  /* Rotating capability carousel — one tag visible at a time, the
     others stacked underneath at opacity 0. .is-active fades in
     while the prior tag fades out. The wrapper has a fixed height
     so the layout doesn't jump as tags swap. */
  .hero-search-tags {
    position: relative;
    height: 32px;
    max-width: 520px;
    margin: 16px auto 0;
    animation: fadeInUp 0.45s ease 0.23s both;
  }
  .hero-search-tags span {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 6px);
    padding: 7px 14px;
    border: 1px solid rgba(103,232,249,0.28);
    border-radius: 999px;
    background: rgba(6,182,212,0.08);
    color: #67e8f9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 6px 18px rgba(6,182,212,0.10);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
  }
  .hero-search-tags span.is-active {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }

  .experience-stage {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --reveal-y: 18px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(210px, 0.72fr) minmax(420px, 1.28fr) minmax(210px, 0.72fr);
    gap: 18px;
    align-items: center;
    min-height: 470px;
    margin: 0 auto 18px;
    padding: 22px;
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 28px;
    overflow: hidden;
    background:
      linear-gradient(135deg, rgba(15,23,42,0.74), rgba(2,6,23,0.74)),
      radial-gradient(circle at 50% 50%, rgba(6,182,212,0.18), transparent 46%);
    box-shadow: 0 34px 110px rgba(0,0,0,0.46), inset 0 1px 0 rgba(255,255,255,0.04);
    transform: perspective(1300px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) translate3d(0, var(--reveal-y), 0);
    transform-style: preserve-3d;
  }
  .experience-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.08) 42%, transparent 48%),
      radial-gradient(circle at 20% 80%, rgba(16,185,129,0.12), transparent 30%);
    transform: translateX(-70%);
    animation: stageSheen 7s ease-in-out infinite;
    pointer-events: none;
  }
  .stage-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(6,182,212,0.14);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  .stage-orbit-one { width: 560px; height: 560px; animation: orbitSpin 30s linear infinite; }
  .stage-orbit-two { width: 780px; height: 310px; border-color: rgba(16,185,129,0.12); animation: orbitSpin 42s linear infinite reverse; }
  .stage-scanline {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(6,182,212,0.08), transparent);
    animation: scanDrop 7s linear infinite;
    pointer-events: none;
  }
  .motion-layer { transform: translate3d(var(--mx, 0), var(--my, 0), var(--z, 0)); transition: transform 0.18s ease-out; }
  .stage-panel {
    position: relative;
    z-index: 2;
    padding: 18px;
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 20px;
    background: rgba(2,6,23,0.68);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 22px 54px rgba(0,0,0,0.28);
    backdrop-filter: blur(22px);
  }
  .stage-panel-left { --z: 34px; }
  .stage-panel-right { --z: 30px; }
  /* Cycling left/right panels. Each .panel-slide stacks at the same
     coordinates; only the .is-active one is visible. The crossfade
     keyframe (panelDissolve) layers a soft glow on entry so the new
     slide reads as "the next thing we offer" rather than a hard cut.
     min-height keeps the panel from collapsing while slides change. */
  .stage-panel[data-panel-cycle] {
    min-height: 220px;
  }
  .stage-panel[data-panel-cycle] .panel-slide {
    position: absolute;
    inset: 18px;
    opacity: 0;
    transform: translateY(8px) scale(0.985);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
  }
  .stage-panel[data-panel-cycle] .panel-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: panelDissolveIn 0.7s ease-out;
  }
  @keyframes panelDissolveIn {
    0%   { filter: blur(6px); }
    60%  { filter: blur(0.4px); }
    100% { filter: blur(0); }
  }
  .panel-kicker {
    color: #67e8f9;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 10px;
  }
  .panel-title { font-size: 15px; font-weight: 800; line-height: 1.35; margin-bottom: 14px; }
  .risk-meter {
    height: 10px;
    border-radius: 999px;
    background: rgba(30,41,59,0.8);
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid rgba(148,163,184,0.10);
  }
  .risk-meter span {
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--c));
    box-shadow: 0 0 24px rgba(16,185,129,0.32);
    animation: meterPulse 2.4s ease-in-out infinite;
  }
  .panel-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 7px 12px;
    font-size: 11px;
  }
  .panel-grid span { color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.7px; }
  .panel-grid b { color: #e2e8f0; text-align: right; font-weight: 700; }
  .panel-grid b.ok { color: var(--green); }
  .hero-walkthrough-stage {
    grid-template-columns: minmax(190px, 0.72fr) minmax(480px, 1.65fr) minmax(190px, 0.72fr);
    align-items: stretch;
  }
  .walkthrough-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .panel-copy {
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.7;
    margin-bottom: 16px;
  }
  .trust-stack {
    display: grid;
    gap: 9px;
  }
  .trust-stack div,
  .proof-metrics div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 12px;
    background: rgba(15,23,42,0.50);
  }
  .trust-stack span,
  .proof-metrics span {
    color: var(--text-dim);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }
  .trust-stack b,
  .proof-metrics b {
    color: var(--text);
    font-size: 10px;
    text-align: right;
  }
  .proof-metrics b.ok { color: var(--green); }
  .proof-metrics {
    display: grid;
    gap: 9px;
    margin-bottom: 14px;
  }
  .walkthrough-deck {
    min-height: 444px;
  }
  .outcome-dashboard {
    position: relative;
    display: grid;
    grid-template-columns: minmax(160px, 0.84fr) minmax(0, 1.16fr);
    gap: 12px;
    padding: 14px 14px 0;
    z-index: 2;
  }
  .outcome-orb {
    position: relative;
    min-height: 118px;
    padding: 18px;
    border: 1px solid rgba(103,232,249,0.26);
    border-radius: 18px;
    background:
      radial-gradient(circle at 50% 18%, rgba(103,232,249,0.18), transparent 54%),
      rgba(2,6,23,0.62);
    box-shadow: 0 0 36px rgba(6,182,212,0.10), inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
  }
  .outcome-orb::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(103,232,249,0.16);
    border-radius: 999px;
    animation: outcomeRing 5s ease-in-out infinite;
  }
  .outcome-orb span,
  .outcome-lane span {
    position: relative;
    display: block;
    color: #67e8f9;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }
  .outcome-orb b {
    position: relative;
    display: block;
    margin-top: 12px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.25;
  }
  .outcome-orb em {
    position: relative;
    display: block;
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 10px;
    font-style: normal;
  }
  .outcome-lanes {
    display: grid;
    gap: 8px;
  }
  .outcome-lane {
    position: relative;
    padding: 10px 11px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 14px;
    background: rgba(2,6,23,0.50);
    overflow: hidden;
  }
  .outcome-lane b {
    position: relative;
    display: block;
    margin-top: 2px;
    color: #e2e8f0;
    font-size: 11px;
  }
  .outcome-lane i {
    position: relative;
    display: block;
    height: 5px;
    width: 100%;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(30,41,59,0.78);
    overflow: hidden;
  }
  .outcome-lane i::after {
    content: '';
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(103,232,249,0.38), rgba(16,185,129,0.86));
    box-shadow: 0 0 14px rgba(16,185,129,0.38);
    animation: outcomeBar 5s cubic-bezier(0.22,1,0.36,1) infinite;
  }
  .product-flow-map {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 312px;
    padding: 14px;
    overflow: hidden;
  }
  .product-flow-map::before {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 20px;
    background:
      radial-gradient(circle at 18% 22%, rgba(103,232,249,0.08), transparent 28%),
      radial-gradient(circle at 86% 72%, rgba(16,185,129,0.07), transparent 26%);
    pointer-events: none;
  }
  .flow-spine {
    position: absolute;
    left: 32px;
    top: 33px;
    bottom: 28px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(103,232,249,0.05), rgba(103,232,249,0.85), rgba(16,185,129,0.70), rgba(103,232,249,0.05));
    box-shadow: 0 0 22px rgba(103,232,249,0.22);
  }
  .flow-step {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-areas:
      "num title"
      "num copy"
      "num kv";
    column-gap: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 14px;
    background: rgba(2,6,23,0.54);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    animation: flowStepFocus 10s ease-in-out infinite;
  }
  .flow-plan { animation-delay: 2s; }
  .flow-run { animation-delay: 4s; }
  .flow-observe { animation-delay: 6s; }
  .flow-improve { animation-delay: 8s; }
  .flow-num {
    grid-area: num;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(6,182,212,0.12);
    border: 1px solid rgba(103,232,249,0.28);
    color: #67e8f9;
    font-size: 9px;
    font-weight: 900;
    box-shadow: 0 0 16px rgba(103,232,249,0.16);
  }
  .flow-step h3 {
    grid-area: title;
    font-size: 12px;
    line-height: 1.2;
    margin: 0 0 2px;
  }
  .flow-step p {
    grid-area: copy;
    margin: 0;
    color: var(--text-dim);
    font-size: 10px;
    line-height: 1.45;
  }
  .mini-kv {
    grid-area: kv;
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 4px 8px;
    margin-top: 6px;
    font-size: 9px;
  }
  .mini-kv span {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.7px;
  }
  .mini-kv b {
    color: #cbd5e1;
    font-weight: 800;
  }
  .proof-rail {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px 14px;
  }
  .proof-rail span {
    padding: 6px 9px;
    border: 1px solid rgba(103,232,249,0.18);
    border-radius: 999px;
    background: rgba(6,182,212,0.06);
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }
  .proof-rail i {
    width: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(103,232,249,0.8), transparent);
  }
  .command-deck {
    position: relative;
    z-index: 3;
    min-height: 390px;
    border: 1px solid rgba(103,232,249,0.22);
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(15,23,42,0.88), rgba(2,6,23,0.86)),
      radial-gradient(circle at 50% 35%, rgba(59,130,246,0.22), transparent 42%);
    box-shadow: 0 28px 95px rgba(0,0,0,0.52), 0 0 0 1px rgba(6,182,212,0.05), inset 0 1px 0 rgba(255,255,255,0.06);
    overflow: hidden;
  }
  .deck-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148,163,184,0.12);
    color: #cbd5e1;
    font-size: 11px;
  }
  .deck-topbar b { margin-left: 6px; color: var(--text); letter-spacing: 0.3px; }
  .deck-topbar em { margin-left: auto; color: var(--text-dim); font-style: normal; font-size: 10px; }
  .window-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px rgba(239,68,68,0.5); }
  .window-dot.amber { background: var(--amber); box-shadow: 0 0 12px rgba(245,158,11,0.5); }
  .window-dot.green { background: var(--green); box-shadow: 0 0 12px rgba(16,185,129,0.5); }
  .topology-map {
    position: relative;
    height: 282px;
    margin: 12px;
    border-radius: 22px;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 50%, rgba(6,182,212,0.10), transparent 34%),
      linear-gradient(180deg, rgba(15,23,42,0.55), rgba(2,6,23,0.20));
  }
  .map-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    animation: gridDrift 12s linear infinite;
  }
  .feature-constellation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
  }
  .constellation-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(103,232,249,0.14);
    box-shadow: inset 0 0 38px rgba(6,182,212,0.04);
  }
  .ring-one {
    width: 260px;
    height: 260px;
    animation: constellationSpin 28s linear infinite;
  }
  .ring-two {
    width: 390px;
    height: 170px;
    border-color: rgba(16,185,129,0.13);
    animation: constellationSpin 36s linear infinite reverse;
  }
  .constellation-ring::before,
  .constellation-ring::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #67e8f9;
    box-shadow: 0 0 18px rgba(103,232,249,0.8);
  }
  .constellation-ring::before { left: 14%; top: 10%; }
  .constellation-ring::after { right: 8%; bottom: 18%; background: var(--green); box-shadow: 0 0 18px rgba(16,185,129,0.78); }
  .feature-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(148,163,184,0.15);
    border-radius: 999px;
    background: rgba(2,6,23,0.72);
    color: #cbd5e1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: chipAwaken 9s ease-in-out infinite;
  }
  .feature-chip span {
    color: #67e8f9;
    font-size: 8px;
    letter-spacing: 1px;
  }
  .chip-preflight { left: 42%; top: 5%; border-color: rgba(103,232,249,0.30); animation-delay: 0s; }
  .chip-target { right: 7%; top: 30%; border-color: rgba(16,185,129,0.26); animation-delay: 1.5s; }
  .chip-inject { right: 20%; bottom: 6%; border-color: rgba(245,158,11,0.28); animation-delay: 3s; }
  .chip-metrics { left: 34%; bottom: 4%; border-color: rgba(59,130,246,0.30); animation-delay: 4.5s; }
  .chip-policy { left: 6%; top: 42%; border-color: rgba(239,68,68,0.25); animation-delay: 6s; }
  .chip-report { left: 15%; top: 13%; border-color: rgba(139,92,246,0.30); animation-delay: 7.5s; }
  .orbit-token {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #67e8f9;
    box-shadow: 0 0 18px rgba(103,232,249,0.92);
    transform-origin: 0 0;
  }
  .token-preflight { animation: orbitTokenA 4.5s linear infinite; }
  .token-target { background: var(--green); animation: orbitTokenB 5.8s linear infinite; animation-delay: -1.7s; }
  .token-metrics { background: var(--amber); animation: orbitTokenC 6.6s linear infinite; animation-delay: -3.1s; }
  .signal-path {
    position: absolute;
    height: 1.5px;
    transform-origin: left center;
    background: linear-gradient(90deg, transparent, rgba(103,232,249,0.22), #67e8f9, transparent);
    filter: drop-shadow(0 0 8px rgba(103,232,249,0.55));
    animation: signalFlow 2.8s ease-in-out infinite;
    z-index: 2;
    opacity: 0.7;
  }
  .path-a { width: 32%; left: 28%; top: 44%; transform: rotate(-22deg); }
  .path-b { width: 32%; left: 40%; top: 44%; transform: rotate(22deg); animation-delay: 0.45s; }
  .topology-node {
    position: absolute;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148,163,184,0.24);
    border-radius: 18px;
    background: rgba(15,23,42,0.78);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 16px 36px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: nodeFloat 5s ease-in-out infinite;
    z-index: 4;
  }
  .topology-node::after {
    content: '';
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(103,232,249,0.18);
    border-radius: 24px;
    opacity: 0;
    animation: nodePing 3.2s ease-in-out infinite;
  }
  .node-api { left: 13%; top: 18%; border-color: rgba(59,130,246,0.42); }
  .node-web { left: 14%; bottom: 16%; border-color: rgba(16,185,129,0.38); animation-delay: 0.4s; }
  .node-db { right: 14%; top: 18%; border-color: rgba(245,158,11,0.38); animation-delay: 0.8s; }
  .node-cache { right: 14%; bottom: 16%; border-color: rgba(239,68,68,0.34); animation-delay: 1.2s; }
  .ai-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 118px;
    height: 118px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border-radius: 36px;
    background: linear-gradient(145deg, rgba(6,182,212,0.16), rgba(59,130,246,0.08));
    border: 1px solid rgba(103,232,249,0.36);
    box-shadow: 0 0 54px rgba(6,182,212,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
    animation: coreBreathe 3.2s ease-in-out infinite;
    z-index: 6;
  }
  .ai-core span { font-size: 30px; font-weight: 900; letter-spacing: -1px; color: #67e8f9; }
  .ai-core small { display: block; color: var(--text-dim); font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px; margin-top: -18px; }
  .kernel-ribbon {
    position: absolute;
    left: 50%;
    bottom: 13px;
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    padding: 7px 12px;
    border: 1px solid rgba(103,232,249,0.20);
    border-radius: 999px;
    background: rgba(2,6,23,0.76);
    color: #94a3b8;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  }
  .kernel-ribbon i {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #67e8f9;
    box-shadow: 0 0 12px rgba(103,232,249,0.8);
    animation: packetPop 1.5s ease-in-out infinite;
  }
  .kernel-ribbon i:nth-child(3) { animation-delay: 0.22s; }
  .kernel-ribbon i:nth-child(4) { animation-delay: 0.44s; }
  .rollback-pulse {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 7;
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 24px;
    border: 1px solid rgba(16,185,129,0.25);
    background: rgba(16,185,129,0.08);
    box-shadow: 0 0 34px rgba(16,185,129,0.12);
    animation: rollbackBeat 5s ease-in-out infinite;
  }
  .rollback-pulse b {
    color: var(--green);
    font-size: 10px;
    line-height: 1;
  }
  .rollback-pulse span {
    color: var(--text-dim);
    font-size: 8px;
    margin-top: -16px;
  }
  .deck-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 0 12px 12px;
  }
  .deck-timeline div {
    position: relative;
    padding: 9px 7px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 12px;
    color: #94a3b8;
    background: rgba(2,6,23,0.52);
    font-size: 10px;
    text-align: center;
    overflow: hidden;
  }
  .deck-timeline div::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(103,232,249,0.12), transparent);
    transform: translateX(-120%);
    animation: timelineSweep 7.5s ease-in-out infinite;
  }
  .deck-timeline div:nth-child(2)::before { animation-delay: 0.35s; }
  .deck-timeline div:nth-child(3)::before { animation-delay: 0.7s; }
  .deck-timeline div:nth-child(4)::before { animation-delay: 1.05s; }
  .deck-timeline div:nth-child(5)::before { animation-delay: 1.4s; }
  .deck-timeline span { display: block; color: #67e8f9; font-weight: 900; margin-bottom: 2px; }
  .observer-feed { display: grid; gap: 10px; margin-top: 12px; }
  .observer-feed div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.5;
  }
  .feed-dot { width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto; }
  .feed-dot.ok { background: var(--green); box-shadow: 0 0 14px rgba(16,185,129,0.65); }
  .feed-dot.warn { background: var(--amber); box-shadow: 0 0 14px rgba(245,158,11,0.65); }
  .protocol-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
  .protocol-row span {
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(103,232,249,0.22);
    color: #67e8f9;
    background: rgba(6,182,212,0.07);
    font-size: 10px;
    font-weight: 800;
  }
  .value-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 auto 20px;
  }
  .value-rail div {
    padding: 13px 14px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 16px;
    background: rgba(15,23,42,0.58);
    backdrop-filter: blur(18px);
  }
  .value-rail span { display: block; color: var(--text-dim); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
  .value-rail b { color: var(--text); font-size: 13px; }
  .ai-loop-section {
    margin: 0 auto 44px;
    padding: 26px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(15,23,42,0.66), rgba(2,6,23,0.46));
    position: relative;
    overflow: hidden;
  }
  .ai-loop-section::before {
    content: '';
    position: absolute;
    inset: auto -10% -45% -10%;
    height: 260px;
    background: radial-gradient(circle, rgba(16,185,129,0.16), transparent 62%);
    pointer-events: none;
  }
  .section-kicker {
    color: #67e8f9;
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .ai-loop-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .ai-loop-card {
    min-height: 170px;
    padding: 18px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 18px;
    background: rgba(2,6,23,0.54);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  }
  .ai-loop-card:hover {
    transform: translateY(-5px);
    border-color: rgba(103,232,249,0.32);
    background: rgba(15,23,42,0.82);
  }
  .ai-loop-card span { color: #67e8f9; font-size: 10px; font-weight: 900; letter-spacing: 1.4px; }
  .ai-loop-card h3 { margin: 10px 0 8px; font-size: 15px; }
  .ai-loop-card p { color: var(--text-dim); font-size: 12px; line-height: 1.7; }
  .workflow-grid {
    max-width: 980px;
    margin: 0 auto 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .workflow-card {
    position: relative;
    min-height: 190px;
    padding: 20px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(15,23,42,0.74), rgba(2,6,23,0.58)),
      radial-gradient(circle at 20% 0%, rgba(103,232,249,0.12), transparent 38%);
    overflow: hidden;
  }
  .workflow-card::after {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(103,232,249,0.8), transparent);
    transform: translateX(-120%);
    animation: timelineSweep 6s ease-in-out infinite;
  }
  .workflow-card:nth-child(2)::after { animation-delay: 0.35s; }
  .workflow-card:nth-child(3)::after { animation-delay: 0.7s; }
  .workflow-card:nth-child(4)::after { animation-delay: 1.05s; }
  .workflow-step { color: #67e8f9; font-size: 11px; font-weight: 900; letter-spacing: 1.6px; margin-bottom: 28px; }
  .workflow-title { color: var(--text); font-size: 14px; font-weight: 800; margin-bottom: 10px; }
  .workflow-copy { color: var(--text-dim); font-size: 11px; line-height: 1.7; }
  .reveal-on-scroll { opacity: 0; --reveal-y: 18px; transform: translate3d(0, var(--reveal-y), 0); transition: opacity 0.65s ease, transform 0.65s ease; }
  .reveal-on-scroll.is-visible { opacity: 1; --reveal-y: 0px; }
  .experience-stage.reveal-on-scroll {
    transform: perspective(1300px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) translate3d(0, var(--reveal-y), 0);
  }

  @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
  @keyframes auroraDrift { from { transform: translate3d(-4%, 0, 0) rotate(-4deg); } to { transform: translate3d(6%, 9%, 0) rotate(6deg); } }
  @keyframes buttonSheen { 0%, 52% { transform: translateX(-120%); } 70%, 100% { transform: translateX(120%); } }
  @keyframes stageSheen { 0%, 58% { transform: translateX(-78%); opacity: 0; } 66% { opacity: 1; } 86%, 100% { transform: translateX(78%); opacity: 0; } }
  @keyframes orbitSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
  @keyframes scanDrop { from { transform: translateY(-130px); } to { transform: translateY(520px); } }
  @keyframes meterPulse { 0%, 100% { filter: saturate(1); } 50% { filter: saturate(1.6) brightness(1.12); } }
  @keyframes gridDrift { from { background-position: 0 0; } to { background-position: 56px 56px; } }
  @keyframes signalFlow { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 35% { opacity: 1; } 72% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 100%); } }
  @keyframes nodeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  @keyframes nodePing { 0%, 55% { opacity: 0; transform: scale(0.92); } 70% { opacity: 0.8; } 100% { opacity: 0; transform: scale(1.12); } }
  @keyframes coreBreathe { 0%, 100% { box-shadow: 0 0 54px rgba(6,182,212,0.22), inset 0 1px 0 rgba(255,255,255,0.08); transform: translate(-50%, -50%) scale(1); } 50% { box-shadow: 0 0 84px rgba(6,182,212,0.36), inset 0 1px 0 rgba(255,255,255,0.10); transform: translate(-50%, -50%) scale(1.035); } }
  @keyframes timelineSweep { 0%, 55% { transform: translateX(-120%); } 78%, 100% { transform: translateX(120%); } }
  @keyframes constellationSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
  @keyframes chipAwaken {
    0%, 15%, 100% { transform: translateY(0) scale(1); color: #cbd5e1; box-shadow: 0 12px 26px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.05); }
    7% { transform: translateY(-6px) scale(1.04); color: #fff; box-shadow: 0 18px 38px rgba(0,0,0,0.28), 0 0 28px rgba(103,232,249,0.18), inset 0 1px 0 rgba(255,255,255,0.08); }
  }
  @keyframes orbitTokenA {
    from { transform: rotate(0deg) translateX(135px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(135px) rotate(-360deg); }
  }
  @keyframes orbitTokenB {
    from { transform: rotate(120deg) translateX(184px) rotate(-120deg); }
    to { transform: rotate(480deg) translateX(184px) rotate(-480deg); }
  }
  @keyframes orbitTokenC {
    from { transform: rotate(240deg) translateX(96px) rotate(-240deg); }
    to { transform: rotate(600deg) translateX(96px) rotate(-600deg); }
  }
  @keyframes packetPop {
    0%, 100% { opacity: 0.35; transform: translateY(0) scale(0.88); }
    50% { opacity: 1; transform: translateY(-2px) scale(1.2); }
  }
  @keyframes rollbackBeat {
    0%, 66%, 100% { transform: scale(1); border-color: rgba(16,185,129,0.25); }
    72% { transform: scale(1.06); border-color: rgba(16,185,129,0.62); box-shadow: 0 0 48px rgba(16,185,129,0.24); }
  }
  /* Stronger focus pulse so the eye actually catches the active step.
     Width-of-focus widened (was 14% / 6%, now holds for longer with a
     visible glow + larger lateral shift). Each .flow-step inherits a
     2 s slot in the 10 s loop. */
  @keyframes flowStepFocus {
    0%, 18%, 100% {
      border-color: rgba(148,163,184,0.12);
      background: rgba(2,6,23,0.54);
      transform: translateX(0);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }
    6%, 14% {
      border-color: rgba(103,232,249,0.55);
      background: rgba(6,182,212,0.14);
      transform: translateX(8px);
      box-shadow:
        0 0 0 1px rgba(103,232,249,0.28),
        0 14px 38px rgba(6,182,212,0.22),
        inset 0 1px 0 rgba(255,255,255,0.08);
    }
  }
  /* Make the .flow-num pip light up in sync — when its parent step is
     active, the number badge gets a brighter ring + bigger glow. */
  .flow-step { --pip-glow: 0; }
  .flow-step .flow-num {
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  }
  @keyframes flowPipFocus {
    0%, 18%, 100% { transform: scale(1); box-shadow: 0 0 16px rgba(103,232,249,0.16); background: rgba(6,182,212,0.12); color: #67e8f9; }
    6%, 14% { transform: scale(1.18); box-shadow: 0 0 28px rgba(103,232,249,0.55); background: rgba(103,232,249,0.32); color: #fff; }
  }
  .flow-step .flow-num { animation: flowPipFocus 10s ease-in-out infinite; }
  .flow-plan .flow-num    { animation-delay: 2s; }
  .flow-run .flow-num     { animation-delay: 4s; }
  .flow-observe .flow-num { animation-delay: 6s; }
  .flow-improve .flow-num { animation-delay: 8s; }
  /* Travelling scan-dot down the flow spine — 5 stops in 10 s, one
     stop per step, syncing with the focus pulse so the eye reads the
     animation as one connected story. */
  .flow-spine {
    overflow: visible;
  }
  .flow-spine::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: radial-gradient(circle, #67e8f9 0%, rgba(103,232,249,0.6) 40%, transparent 70%);
    box-shadow: 0 0 24px rgba(103,232,249,0.9);
    animation: spineScan 10s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes spineScan {
    0%   { top: 0%;   opacity: 0; }
    4%   { opacity: 1; }
    20%  { top: 18%;  opacity: 1; }
    40%  { top: 38%;  opacity: 1; }
    60%  { top: 58%;  opacity: 1; }
    80%  { top: 78%;  opacity: 1; }
    96%  { top: 96%;  opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
  /* Side panels — sequential pulse on each row so the panels feel as
     active as the centre. Each row gets a 5 s loop, staggered by 1 s. */
  .trust-stack > div,
  .proof-metrics > div {
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease;
    animation: sidePanelPulse 5s ease-in-out infinite;
  }
  .trust-stack > div:nth-child(2),
  .proof-metrics > div:nth-child(2) { animation-delay: 1s; }
  .trust-stack > div:nth-child(3),
  .proof-metrics > div:nth-child(3) { animation-delay: 2s; }
  .trust-stack > div:nth-child(4),
  .proof-metrics > div:nth-child(4) { animation-delay: 3s; }
  @keyframes sidePanelPulse {
    0%, 100% { border-color: rgba(148,163,184,0.10); background: rgba(2,6,23,0.4); transform: translateX(0); }
    8%       { border-color: rgba(103,232,249,0.36); background: rgba(6,182,212,0.10); transform: translateX(3px); box-shadow: 0 0 16px rgba(103,232,249,0.18); }
    20%      { border-color: rgba(148,163,184,0.10); background: rgba(2,6,23,0.4); transform: translateX(0); box-shadow: none; }
  }
  /* Observer feed — the dots pulse like a streaming live feed. */
  .observer-feed > div {
    animation: feedRowPulse 6s ease-in-out infinite;
  }
  .observer-feed > div:nth-child(2) { animation-delay: 2s; }
  .observer-feed > div:nth-child(3) { animation-delay: 4s; }
  @keyframes feedRowPulse {
    0%, 100% { opacity: 0.65; transform: translateX(0); }
    8%       { opacity: 1;    transform: translateX(2px); }
    25%      { opacity: 0.65; transform: translateX(0); }
  }
  .observer-feed .feed-dot {
    animation: feedDotBeat 6s ease-in-out infinite;
  }
  .observer-feed > div:nth-child(2) .feed-dot { animation-delay: 2s; }
  .observer-feed > div:nth-child(3) .feed-dot { animation-delay: 4s; }
  @keyframes feedDotBeat {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
    8%       { transform: scale(1.4); box-shadow: 0 0 12px currentColor; }
    25%      { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  }
  @keyframes outcomeRing {
    0%, 100% { transform: scale(0.94); opacity: 0.24; }
    50% { transform: scale(1.05); opacity: 0.68; }
  }
  @keyframes outcomeBar {
    0% { transform: translateX(-16%); opacity: 0.62; }
    22%, 72% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(4%); opacity: 0.76; }
  }

  .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; animation: fadeInUp 0.6s ease 0.4s both; }
  @media (max-width: 768px) {
    .demo-banner { align-items: flex-start; flex-direction: column; padding: 10px 14px; }
    .demo-banner .btn { width: 100%; }
    input,
    select,
    textarea,
    .login-section input,
    .form-group input,
    .form-group select,
    .form-group textarea {
      font-size: 16px !important;
    }
    .features { grid-template-columns: 1fr; }
    .landing-inner { padding: 28px 14px 44px; max-width: 100%; }
    .hero .logo { font-size: clamp(42px, 16vw, 64px); }
    .hero .tagline { font-size: clamp(28px, 9vw, 40px); }
    .hero .subtitle { font-size: 13px; max-width: 95%; }
    .hero .btn-hero { padding: 10px 24px; font-size: 13px; }
    .stats-bar { gap: 20px; flex-wrap: wrap; }
    .stat-num { font-size: 22px; }
    .section-title { font-size: 14px; }
    .login-section { margin: 0 8px 24px; padding: 20px 14px; }
    /* Stack all inline 2-col and 3-col grids on mobile */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr 1fr"] {
      grid-template-columns: 1fr !important;
    }
    #hero-carousel { height: 140px !important; }
  }
  .feature-card {
    background: linear-gradient(145deg, rgba(17,24,39,0.92), rgba(10,14,23,0.72));
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  }
  .feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 0%, rgba(59,130,246,0.14), transparent 36%);
    opacity: 0;
    transition: opacity 0.22s ease;
  }
  .feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6,182,212,0.36);
    box-shadow: 0 22px 70px rgba(0,0,0,0.32), 0 0 0 1px rgba(6,182,212,0.05);
  }
  .feature-card:hover::before { opacity: 1; }
  .feature-card .feat-icon { font-size: 28px; margin-bottom: 10px; }
  .feature-card .feat-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
  .feature-card .feat-desc { color: var(--text-dim); font-size: 12px; line-height: 1.7; }

  .stats-bar { display: flex; justify-content: center; gap: 18px; margin-bottom: 34px; animation: fadeInUp 0.4s ease 0.35s both; flex-wrap: wrap; }
  .stat-item {
    text-align: center;
    min-width: 170px;
    padding: 14px 18px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 16px;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(18px);
  }
  .stat-num { font-size: 31px; font-weight: 700; color: #67e8f9; letter-spacing: -1px; text-shadow: 0 0 24px rgba(6,182,212,0.32); }
  .stat-lbl { font-size: 12px; color: var(--text-dim); text-transform: uppercase; margin-top: 6px; letter-spacing: 0.5px; }

  .section-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; text-align: center; }

  .login-section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; max-width: 480px; margin: 0 auto 48px; animation: fadeInUp 0.6s ease 0.6s both; }
  .login-section input { width: 100%; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--font); font-size: 14px; outline: none; margin-bottom: 12px; }
  .login-section input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
  .login-error { color: var(--red); font-size: 12px; margin-bottom: 8px; min-height: 16px; }

  .download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 48px; animation: fadeInUp 0.6s ease 0.7s both; }
  @media (max-width: 500px) { .download-grid { grid-template-columns: 1fr; } }
  .dl-card { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; transition: all 0.15s; }
  .dl-card:hover { border-color: var(--accent); background: var(--accent-glow); }
  .dl-card .dl-name { color: var(--text); font-size: 13px; font-weight: 600; }
  .dl-card .dl-note { color: var(--text-dim); font-size: 10px; margin-top: 4px; }
  .dl-card .dl-icon { color: var(--accent); margin-right: 8px; }

  .connect-box { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 18px; font-size: 13px; color: var(--green); line-height: 2; margin-top: 12px; overflow-x: auto; word-break: break-word; -webkit-overflow-scrolling: touch; }
  .connect-box,
  pre,
  code {
    max-width: 100%;
  }
  .key-scope-guide {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .key-scope-guide svg {
    min-width: 680px;
  }
  .key-form-actions {
    flex-wrap: wrap;
  }
  .keys-responsive-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .key-table {
    min-width: 720px;
    border-collapse: collapse;
  }
  .key-table td {
    padding: 8px 10px;
  }
  .key-mobile-list {
    display: none;
  }
  .key-mobile-card {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(148,163,184,0.13);
    border-radius: 12px;
    background: rgba(2,6,23,0.42);
  }
  .key-mobile-card.muted {
    opacity: 0.58;
  }
  .key-mobile-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
  }
  .key-mobile-head b {
    display: block;
    color: var(--text);
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .key-mobile-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-dim);
    font-size: 10px;
  }
  .key-mobile-cert {
    font-size: 10px;
  }
  .key-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .access-request-item {
    min-width: 0;
  }
  .access-request-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .setup-tab-row {
    flex-wrap: wrap;
  }

  /* ─── Modern Polish ─── */
  body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  header,
  .tab-bar {
    background: rgba(15,23,42,0.78);
    backdrop-filter: blur(18px);
  }
  .tab-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  }
  .tab-btn {
    position: relative;
    border-radius: 12px 12px 0 0;
  }
  .tab-btn.active {
    background: linear-gradient(180deg, rgba(59,130,246,0.14), rgba(59,130,246,0.04));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  }
  .tab-ai-btn {
    color: #67e8f9;
  }
  .tab-ai-btn::after {
    content: '';
    position: absolute;
    right: 9px;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 12px rgba(16,185,129,0.8);
  }
  .card,
  .agent-card,
  .metric-card,
  .ai-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }
  .card {
    background: linear-gradient(145deg, rgba(17,24,39,0.96), rgba(10,14,23,0.88));
    border-color: rgba(148,163,184,0.12);
  }
  .card:hover {
    transform: translateY(-2px);
    border-color: rgba(103,232,249,0.18);
    box-shadow: 0 18px 58px rgba(0,0,0,0.22);
  }
  .metric-card:hover,
  .ai-card:hover,
  .agent-card:hover {
    transform: translateY(-3px);
    border-color: rgba(103,232,249,0.22);
    box-shadow: 0 14px 42px rgba(0,0,0,0.18);
  }
  .scenario-card {
    overflow: hidden;
  }
  .scenario-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--card-x, 50%) var(--card-y, 0%), rgba(103,232,249,0.16), transparent 38%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
  }
  .scenario-card:hover::after { opacity: 1; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
  .protocol-panel .protocol-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    margin-top: 0;
  }

  /* Tab transitions */
  .tab-content { transition: opacity 0.15s ease; }
  .tab-content.active { animation: tabReveal 0.24s ease both; }

  /* Skeleton loading */
  .skeleton { background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 50%, var(--surface2) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
  @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
  .skeleton-card { height: 120px; }
  .skeleton-text { height: 14px; margin-bottom: 8px; width: 60%; }

  /* Toast notifications */
  .toast-container { position: fixed; top: 16px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
  .toast { padding: 10px 20px; border-radius: 6px; font-size: 12px; font-weight: 600; pointer-events: auto; animation: toastSlide 0.3s ease; }
  .toast-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: var(--green); }
  .toast-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: var(--red); }
  @keyframes toastSlide { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
  @keyframes tabReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

  /* Responsive */
  @media (max-width: 980px) {
    .exp-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    .agents-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .experience-stage {
      grid-template-columns: 1fr;
      min-height: auto;
      padding: 16px;
      transform: translate3d(0, var(--reveal-y), 0);
    }
    .stage-orbit { display: none; }
    .command-deck { min-height: 360px; }
    .walkthrough-deck { min-height: auto; }
    .product-flow-map { min-height: auto; }
    .feature-chip { font-size: 8px; padding: 6px 8px; }
    .chip-target { right: 4%; }
    .chip-policy { left: 4%; }
    .stage-panel { max-width: none; }
    .value-rail,
    .ai-loop-grid,
    .workflow-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-summary-strip { grid-template-columns: 1fr; }
    .gameday-workspace {
      grid-template-columns: 1fr;
    }
    .gameday-side {
      position: static;
      grid-template-columns: 1fr;
      align-items: start;
    }
    .gd-context-summary {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .ai-workbench-head,
    .ai-empty-grid {
      grid-template-columns: 1fr;
    }
    .ai-action-pills {
      justify-content: flex-start;
    }
    .gd-intent-grid,
    .gd-flow-rail,
    .gd-readiness-facts,
    .gd-plan-stats,
    .gd-run-kpis,
    .gd-report-metrics,
    .gd-ticket-grid { grid-template-columns: 1fr; }
    .gd-readiness-body { grid-template-columns: 1fr; }
    .gd-plan-overview.muted { align-items: flex-start; flex-direction: column; }
    .gd-mini-timeline { flex-direction: column; }
    .gd-target-panel,
    .gd-edit-grid { grid-template-columns: 1fr; }
    .gd-namespace-row { grid-template-columns: 1fr; }
  }
  @media (max-width: 768px) {
    header {
      align-items: stretch;
      flex-direction: column;
      gap: 12px;
      padding: 14px;
    }
    .header-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      font-size: 10.5px;
    }
    .header-stats > span {
      min-width: 0;
      padding: 7px 8px;
      border: 1px solid rgba(148,163,184,0.10);
      border-radius: 10px;
      background: rgba(2,6,23,0.32);
      text-align: center;
      white-space: nowrap;
    }
    .header-stats .btn {
      grid-column: 1 / -1;
      justify-self: stretch;
      margin-left: 0 !important;
    }
    .landing-inner { padding: 28px 14px 44px; }
    .hero .logo { letter-spacing: -2px; }
    .hero .tagline { letter-spacing: -1.5px; }
    .experience-stage { border-radius: 20px; }
    .deck-topbar em { display: none; }
    .topology-map { height: 250px; }
    .outcome-dashboard { grid-template-columns: 1fr; padding: 10px 10px 0; }
    .product-flow-map { padding: 10px; gap: 7px; }
    .flow-step {
      grid-template-columns: 24px 1fr;
      padding: 8px;
    }
    .flow-step p { font-size: 9px; }
    .mini-kv { grid-template-columns: auto 1fr; }
    .proof-rail span { font-size: 8px; }
    .proof-rail i { display: none; }
    .chip-report,
    .chip-inject { display: none; }
    .chip-preflight { left: 38%; top: 5%; }
    .chip-metrics { left: 28%; bottom: 6%; }
    .kernel-ribbon { bottom: 9px; font-size: 8px; }
    .rollback-pulse { display: none; }
    .deck-timeline { grid-template-columns: 1fr; }
    .value-rail,
    .ai-loop-grid,
    .workflow-grid { grid-template-columns: 1fr; }
    .ai-loop-section { padding: 18px; }
    .tab-bar {
      gap: 6px;
      overflow-x: auto;
      padding: 0 10px;
      scroll-snap-type: x proximity;
      -webkit-overflow-scrolling: touch;
    }
    .tab-btn {
      flex: 0 0 auto;
      padding: 11px 14px;
      scroll-snap-align: start;
      white-space: nowrap;
    }
    .container {
      max-width: 100%;
      width: 100%;
    }
    .scenario-grid {
      grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
      gap: 12px;
    }
    .scenario-card {
      padding: 16px;
    }
    .scenario-card-desc {
      min-height: 0;
    }
    .launch-panel {
      padding: 16px;
      border-left-width: 0;
      border-top: 3px solid var(--accent);
      border-radius: 12px;
    }
    .launch-params > div {
      grid-template-columns: 1fr !important;
      gap: 7px !important;
    }
    .launch-start-btn {
      width: 100%;
    }
    .k8s-target-form {
      max-width: 100%;
      overflow: hidden;
      padding: 12px !important;
    }
    .k8s-target-form input,
    .k8s-target-form select,
    .k8s-target-form button {
      max-width: 100%;
    }
    .k8s-target-form [style*="display:grid"] {
      grid-template-columns: 1fr !important;
    }
    .k8s-target-form [style*="display:flex"] {
      flex-wrap: wrap !important;
    }
    .k8s-target-form [style*="flex-shrink:0"] {
      flex: 1 1 auto !important;
    }
    .agent-option-header,
    .detail-header {
      align-items: flex-start;
      flex-direction: column;
      gap: 8px;
    }
    .agent-option-meta,
    .exp-meta,
    .exp-name {
      overflow-wrap: anywhere;
      white-space: normal !important;
    }
    .exp-filter-chips {
      overflow-x: auto;
      padding-bottom: 10px !important;
      -webkit-overflow-scrolling: touch;
    }
    .exp-filter-chips button {
      flex: 0 0 auto;
    }
    .detail-actions {
      display: flex;
      flex-wrap: wrap;
      width: 100%;
    }
    .detail-actions .btn {
      flex: 1 1 110px;
    }
    .detail-agent-info {
      align-items: stretch;
      flex-direction: column;
      gap: 8px;
    }
    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table td {
      display: block;
      width: 100% !important;
    }
    .info-table tr {
      padding: 8px 0;
    }
    .info-table td {
      padding: 3px 0;
    }
    .info-table td:first-child {
      width: auto;
    }
    .protocol-panel .protocol-panel-head {
      align-items: flex-start;
      flex-direction: column;
    }
    .protocol-panel .protocol-row {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 6px;
    }
    .protocol-panel .protocol-count {
      text-align: left;
    }
    .agents-grid {
      grid-template-columns: 1fr;
    }
    .agent-card {
      padding: 14px;
    }
    .agent-card-header,
    .agent-card-row,
    .agent-exp-item > div {
      align-items: flex-start !important;
      flex-direction: column;
      gap: 6px;
    }
    .agent-card-status {
      align-self: flex-start;
    }
    .agent-card-row > span:last-child {
      justify-content: flex-start !important;
      max-width: 100% !important;
    }
    .agent-iface-chip,
    .iface-chip {
      white-space: normal;
    }
    .key-scope-guide svg {
      min-width: 640px;
    }
    .key-form-actions {
      flex-direction: column;
    }
    .key-form-actions .btn {
      width: 100%;
    }
    .key-table {
      display: none;
    }
    .key-mobile-list {
      display: grid;
      gap: 10px;
      text-align: left;
    }
    .key-mobile-actions .btn {
      flex: 1 1 96px;
    }
    .access-request-item {
      align-items: stretch !important;
      flex-direction: column;
      gap: 10px;
      text-align: left;
    }
    .access-request-actions {
      justify-content: flex-start;
    }
    #tab-setup .container {
      max-width: 100% !important;
    }
    .setup-tab-row {
      gap: 6px !important;
    }
    .setup-tab {
      flex: 1 1 calc(50% - 6px);
      min-height: 34px;
    }
    .connect-box {
      font-size: 10.5px !important;
      line-height: 1.9 !important;
      padding: 12px;
    }
    .gameday-side {
      grid-template-columns: 1fr;
    }
    .gd-context-summary {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gd-context-list div {
      display: grid;
      gap: 4px;
    }
    .gd-context-list em {
      min-width: 0;
      overflow-wrap: anywhere;
    }
    .gd-run-live-head,
    .gd-run-history-item,
    .gd-run-leg,
    .gd-plan-card-head,
    .gd-report-head {
      grid-template-columns: 1fr;
      flex-direction: column;
    }
    .gd-run-live-head,
    .gd-report-head {
      align-items: stretch;
    }
    .gd-run-history-item .btn,
    .gd-run-leg .btn,
    .gd-plan-actions .btn,
    .ai-action-pills .btn {
      width: 100%;
    }
    .gd-report-score {
      align-self: flex-start;
    }
    .card-header {
      align-items: flex-start;
      flex-direction: column;
      gap: 8px;
    }
  }
  @media (max-width: 600px) {
    .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .metric-card {
      padding: 10px 8px;
    }
    .metric-value {
      font-size: 19px;
    }
    .metric-label {
      font-size: 8.5px;
    }
    .container { padding: 12px; }
    .card-body { padding: 12px; }
    .form-row,
    .guide-results {
      grid-template-columns: 1fr;
    }
    .gd-composer-actions .btn,
    .gd-namespace-row .btn,
    .gd-target-panel .btn {
      width: 100%;
    }
    .gd-flow-rail span {
      border-radius: 12px;
    }
    .gd-service-chip,
    .gd-label-chip,
    .label-chip {
      white-space: normal;
      text-align: left;
    }
    .card-header .btn,
    .gd-composer-actions .btn,
    .detail-actions .btn,
    .launch-start-btn,
    .scenario-run-btn {
      min-height: 38px;
    }
    .toast-container {
      left: 12px;
      right: 12px;
      top: 12px;
    }
    .toast {
      width: 100%;
      padding: 10px 12px;
    }
    .gd-dialog-overlay {
      align-items: flex-end;
      padding: 10px;
    }
    .gd-dialog {
      width: 100%;
      max-height: calc(100vh - 20px);
      border-radius: 22px 22px 12px 12px;
    }
    .gd-dialog-shell {
      padding: 20px 14px 14px;
    }
    .gd-dialog-summary {
      grid-template-columns: 1fr;
    }
    .gd-dialog-actions .btn {
      width: 100%;
    }
    .modal {
      width: calc(100vw - 24px);
      max-height: calc(100vh - 24px);
    }
    .modal-overlay {
      align-items: flex-end;
      padding: 8px;
    }
    .modal {
      border-radius: 18px 18px 10px 10px;
    }
    .modal-footer {
      align-items: stretch;
      flex-direction: column;
    }
    .modal-footer .btn {
      width: 100%;
      min-height: 38px;
    }
    .protocol-panel,
    .ai-panel,
    .ai-hero,
    .gd-report-card,
    .gd-run-live {
      max-width: 100%;
      overflow: hidden;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.001ms !important;
    }
    #splash-canvas { display: none !important; }
    .reveal-on-scroll {
      opacity: 1 !important;
      --reveal-y: 0px !important;
      transform: none !important;
    }
    .motion-layer,
    .experience-stage {
      transform: none !important;
    }
  }
