.catalyst-page { min-height:calc(100vh - 160px); padding:48px 0 96px; }
.catalyst-head { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; margin-bottom:24px; }
.catalyst-head h1 { margin:7px 0 4px; font-size:2rem; letter-spacing:0; }
.catalyst-head p { max-width:780px; color:var(--muted); }
.catalyst-freshness { color:var(--muted); font:11px 'SF Mono',Menlo,monospace; text-align:right; white-space:nowrap; }

.catalyst-stats { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--border); border-radius:8px; background:var(--surface); }
.catalyst-stats > div { display:flex; min-height:86px; flex-direction:column; justify-content:center; gap:3px; padding:15px 20px; border-right:1px solid var(--border); }
.catalyst-stats > div:last-child { border-right:0; }
.catalyst-stats strong { color:var(--text); font:22px 'SF Mono',Menlo,monospace; }
.catalyst-stats span { color:var(--muted); font-size:11px; }

.catalyst-market-health[hidden] { display:none; }
.catalyst-market-health { margin-top:12px; padding:12px 14px; border:1px solid var(--border); border-radius:8px; background:var(--surface); }
.catalyst-market-health > header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:9px; }
.catalyst-market-health > header strong { color:var(--text); font-size:10px; text-transform:uppercase; letter-spacing:.06em; }
.catalyst-market-health > header span { color:var(--muted-2); font-size:9px; }
.market-health-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; }
.market-health-card { min-width:0; padding:8px 10px; border:1px solid var(--border); border-radius:6px; background:var(--surface-2); }
.market-health-card > div { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.market-health-card strong { color:var(--text); font:11px 'SF Mono',Menlo,monospace; }
.market-health-card span { display:flex; align-items:center; gap:5px; color:var(--muted); font-size:8px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.market-health-card i,.catalyst-markets button[data-market-status]::after { width:6px; height:6px; flex:0 0 auto; border-radius:50%; background:var(--muted-2); content:""; }
.market-health-card small { display:block; overflow:hidden; margin-top:5px; color:var(--muted-2); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.market-health-fresh { border-color:rgba(63,185,80,.3); }
.market-health-fresh span { color:#56d364; }
.market-health-fresh i,.catalyst-markets button[data-market-status="fresh"]::after { background:#3fb950; }
.market-health-partial { border-color:rgba(210,153,34,.42); }
.market-health-partial span { color:#d2a033; }
.market-health-partial i,.catalyst-markets button[data-market-status="partial"]::after { background:#d2a033; }
.market-health-stale { border-color:rgba(219,109,40,.42); }
.market-health-stale span { color:#e88742; }
.market-health-stale i,.catalyst-markets button[data-market-status="stale"]::after { background:#e88742; }
.market-health-unavailable { opacity:.78; border-color:rgba(248,81,73,.28); }
.market-health-unavailable span { color:#ff7b72; }
.market-health-unavailable i,.catalyst-markets button[data-market-status="unavailable"]::after { background:#f85149; }

.catalyst-rule { margin:18px 0 12px; padding:15px 17px; border:1px solid var(--border); border-left:2px solid var(--accent); border-radius:0 7px 7px 0; background:var(--accent-dim); color:var(--muted); font-size:11px; }
.catalyst-rule-head,.catalyst-rule-foot { display:flex; flex-wrap:wrap; align-items:center; gap:9px 18px; }
.catalyst-rule-head strong { color:var(--accent); text-transform:uppercase; letter-spacing:.07em; }
.catalyst-rule b { color:var(--text); font-weight:650; }
.catalyst-rule-pillars { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; margin:13px -3px; }
.catalyst-rule-pillars span { min-width:0; padding:9px 10px; border:1px solid rgba(127,127,127,.13); background:rgba(127,127,127,.04); }
.catalyst-rule-pillars i { display:block; margin-bottom:4px; color:var(--text); font-size:9px; font-style:normal; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.catalyst-rule-foot em { margin-left:auto; color:var(--muted-2); font-style:normal; }

.catalyst-stage-legend { display:flex; flex-wrap:wrap; align-items:center; gap:8px 17px; margin:0 0 24px; color:var(--muted); font-size:10px; }
.catalyst-stage-legend span { display:flex; align-items:center; gap:5px; }
.catalyst-stage-legend small { margin-left:auto; color:var(--muted-2); }
.stage-dot { width:7px; height:7px; border-radius:50%; background:var(--muted-2); }

.catalyst-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; }
.catalyst-filters { display:flex; min-width:0; flex-wrap:wrap; gap:8px; }
.catalyst-markets,.catalyst-stages { display:flex; padding:3px; border:1px solid var(--border); border-radius:6px; background:var(--surface); }
.catalyst-markets button,.catalyst-stages button { min-height:32px; padding:0 11px; border:0; border-radius:4px; background:transparent; color:var(--muted); cursor:pointer; white-space:nowrap; }
.catalyst-markets button[data-market-status]::after { display:inline-block; margin-left:6px; vertical-align:1px; }
.catalyst-markets button.active,.catalyst-stages button.active { background:var(--surface-2); color:var(--text); }
.catalyst-legacy-toggle { min-height:38px; padding:0 12px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--muted); cursor:pointer; white-space:nowrap; }
.catalyst-legacy-toggle.active { border-color:rgba(210,153,34,.42); background:rgba(210,153,34,.08); color:#d2a033; }
.catalyst-toolbar input { width:290px; padding:9px 12px; border:1px solid var(--border); border-radius:6px; outline:0; background:var(--surface); color:var(--text); }
.catalyst-toolbar input:focus { border-color:var(--accent); }
.catalyst-count { margin-bottom:10px; color:var(--muted); font-size:12px; }
.catalyst-list { display:grid; gap:10px; }

.catalyst-card { overflow:hidden; border:1px solid var(--border); border-radius:8px; background:var(--surface); }
.catalyst-card-head { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 15px 10px; }
.catalyst-identity { min-width:0; }
.catalyst-identity > div { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.catalyst-card h2 { overflow:hidden; margin:5px 0 0; color:var(--muted); font-size:11px; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.catalyst-card code { color:var(--accent); font-weight:700; }
.market-badge { padding:2px 6px; border:1px solid var(--border); border-radius:4px; color:var(--muted); font:9px 'SF Mono',Menlo,monospace; }
.label-badge { padding:2px 6px; border:1px solid var(--border); border-radius:4px; background:transparent; color:var(--muted); font-size:8px; text-transform:uppercase; letter-spacing:.03em; }
.label-legacy { border-color:rgba(210,153,34,.42); background:rgba(210,153,34,.08); color:#d2a033; }
.label-native { border-color:rgba(63,185,80,.3); color:#56d364; }
.label-buy-zone { border-color:rgba(88,166,255,.35); color:#58a6ff; }
.label-agent { border-color:rgba(88,166,255,.28); color:#58a6ff; }
.label-agent-reject { border-color:rgba(248,81,73,.28); color:#ff7b72; }
.label-agent-review { border-color:rgba(210,153,34,.32); color:#d2a033; }
.label-invalidated { border-color:rgba(248,81,73,.35); background:rgba(248,81,73,.08); color:#ff7b72; }
.improvement-score { padding-left:3px; color:var(--text); font:9px 'SF Mono',Menlo,monospace; }

.catalyst-stage { display:flex; min-width:155px; align-items:flex-end; flex-direction:column; gap:3px; text-align:right; }
.catalyst-stage > strong { color:var(--text); font:10px 'SF Mono',Menlo,monospace; }
.catalyst-stage > small { color:var(--accent); font-size:8px; }
.stage-badge { padding:3px 7px; border:1px solid var(--border); border-radius:999px; color:var(--muted); font-size:8px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.stage-early_turn { border-color:rgba(88,166,255,.45); background:rgba(88,166,255,.09); color:#58a6ff; }
.stage-broad_turn { border-color:rgba(163,113,247,.45); background:rgba(163,113,247,.09); color:#a371f7; }
.stage-confirmed { border-color:rgba(63,185,80,.45); background:rgba(63,185,80,.09); color:#56d364; }
.stage-decaying { border-color:rgba(248,81,73,.4); background:rgba(248,81,73,.08); color:#ff7b72; }
.stage-monitoring { color:var(--muted); }
.stage-dot.stage-early_turn { background:#58a6ff; }
.stage-dot.stage-broad_turn { background:#a371f7; }
.stage-dot.stage-confirmed { background:#56d364; }
.stage-dot.stage-decaying { background:#ff7b72; }
.stage-dot.stage-monitoring { background:var(--muted-2); }

.catalyst-pillars { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.catalyst-pillar { min-width:0; padding:10px 13px 9px; border-right:1px solid var(--border); box-shadow:inset 2px 0 transparent; }
.catalyst-pillar:last-child { border-right:0; }
.catalyst-pillar > div { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.catalyst-pillar span { overflow:hidden; color:var(--muted); font-size:9px; font-weight:650; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; letter-spacing:.04em; }
.catalyst-pillar i { color:var(--muted-2); font-size:8px; font-style:normal; white-space:nowrap; }
.catalyst-pillar strong { display:block; margin:5px 0 2px; color:var(--text); font:14px 'SF Mono',Menlo,monospace; }
.catalyst-pillar small { display:block; overflow:hidden; color:var(--muted-2); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.pillar-pass { box-shadow:inset 2px 0 #3fb950; }
.pillar-pass strong,.pillar-pass i { color:#56d364; }
.pillar-fail { box-shadow:inset 2px 0 rgba(248,81,73,.7); }
.pillar-fail strong,.pillar-fail i { color:#ff7b72; }
.pillar-unknown,.pillar-not_comparable { opacity:.72; }
.catalyst-lifecycle { display:flex; flex-wrap:wrap; gap:4px 10px; padding:8px 13px; border-bottom:1px solid var(--border); background:rgba(248,81,73,.05); font-size:9px; }
.catalyst-lifecycle strong { color:#ff7b72; text-transform:uppercase; letter-spacing:.04em; }
.catalyst-lifecycle span { color:var(--muted); }

.catalyst-card-foot { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(105px,auto); align-items:center; gap:18px; padding:9px 14px; }
.catalyst-quality { display:flex; min-width:0; flex-wrap:wrap; align-items:center; gap:8px 18px; }
.catalyst-quality-item { display:flex; align-items:baseline; gap:6px; }
.catalyst-quality-item span { color:var(--muted-2); font-size:8px; text-transform:uppercase; letter-spacing:.04em; }
.catalyst-quality-item strong { font-size:9px; font-weight:650; }
.quality-high { color:#56d364; }
.quality-medium,.quality-early { color:#d2a033; }
.quality-weakening { color:#ff7b72; }
.quality-low,.quality-unavailable,.quality-unverified { color:var(--muted); }
.catalyst-support { overflow:hidden; color:var(--muted-2); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.catalyst-period { display:flex; align-items:flex-end; flex-direction:column; gap:2px; }
.catalyst-period strong { color:var(--text); font:11px 'SF Mono',Menlo,monospace; }
.catalyst-period time { color:var(--muted-2); font-size:9px; white-space:nowrap; }

.agent-report { display:flex; align-items:flex-start; flex-direction:column; gap:1px; padding:6px 8px; border:1px solid var(--border); border-radius:5px; background:transparent; color:var(--muted-2); text-align:left; }
.agent-report span { font-size:8px; text-transform:uppercase; letter-spacing:.05em; }
.agent-report strong { font-size:10px; font-weight:600; }
.agent-report.ready { border-color:rgba(88,166,255,.28); color:var(--accent); cursor:pointer; }
.agent-report.ready:hover { background:var(--accent-dim); }

.catalyst-report[hidden] { display:none; }
.catalyst-report { position:fixed; z-index:1000; inset:0; }
.report-backdrop { position:absolute; inset:0; width:100%; border:0; background:rgba(0,0,0,.68); cursor:default; }
.report-panel { position:absolute; top:0; right:0; bottom:0; width:min(760px,92vw); overflow:hidden; border-left:1px solid var(--border); background:var(--surface); box-shadow:-20px 0 60px rgba(0,0,0,.3); }
.report-panel > header { display:flex; height:72px; align-items:center; justify-content:space-between; padding:0 24px; border-bottom:1px solid var(--border); }
.report-panel > header span { color:var(--accent); font-size:9px; text-transform:uppercase; letter-spacing:.1em; }
.report-panel > header h2 { margin:3px 0 0; font-size:16px; }
.report-panel > header button { width:34px; height:34px; border:1px solid var(--border); border-radius:6px; background:transparent; color:var(--muted); font-size:22px; cursor:pointer; }
.report-body { height:calc(100% - 72px); overflow:auto; padding:24px 30px 70px; color:var(--text); font-size:13px; line-height:1.65; }
.report-body h1 { margin:0 0 24px; font-size:23px; }
.report-body h2 { margin:30px 0 10px; font-size:17px; }
.report-body h3 { margin:22px 0 8px; font-size:14px; }
.report-body h4 { margin:18px 0 6px; font-size:13px; }
.report-body p { margin:8px 0; }
.report-body ul,.report-body ol { margin:8px 0; padding-left:22px; }
.report-body li { margin:4px 0; }
.report-body code { padding:1px 4px; border-radius:3px; background:var(--surface-2); }
.report-body hr { margin:28px 0; border:0; border-top:1px solid var(--border); }
.report-table-wrap { margin:12px 0 20px; overflow-x:auto; }
.report-body table { width:100%; border-collapse:collapse; font-size:11px; }
.report-body th,.report-body td { padding:7px 8px; border:1px solid var(--border); text-align:left; }
.report-body th { background:var(--surface-2); }
.report-loading { padding:60px 0; color:var(--muted); text-align:center; }
.catalyst-empty { padding:50px 0; color:var(--muted); text-align:center; }
.catalyst-empty strong,.catalyst-empty span,.catalyst-empty small { display:block; }
.catalyst-empty strong { margin-bottom:6px; color:var(--text); font-size:12px; }
.catalyst-empty small { margin-top:6px; color:var(--muted-2); }
.catalyst-empty.coverage-warning strong { color:#d2a033; }
.catalyst-empty.error { color:#ff938a; }

@media (max-width:1000px) {
  .catalyst-rule-pillars,.catalyst-pillars { grid-template-columns:1fr 1fr; }
  .market-health-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .catalyst-pillar:nth-child(2) { border-right:0; }
  .catalyst-pillar:nth-child(-n+2) { border-bottom:1px solid var(--border); }
}
@media (max-width:800px) {
  .catalyst-head,.catalyst-toolbar { align-items:flex-start; flex-direction:column; }
  .catalyst-freshness { text-align:left; white-space:normal; }
  .catalyst-market-health > header { align-items:flex-start; flex-direction:column; gap:3px; }
  .catalyst-stats { grid-template-columns:1fr 1fr; }
  .catalyst-stats > div:nth-child(2) { border-right:0; }
  .catalyst-stats > div:nth-child(-n+2) { border-bottom:1px solid var(--border); }
  .catalyst-filters { width:100%; }
  .catalyst-markets,.catalyst-stages { max-width:100%; overflow-x:auto; }
  .catalyst-toolbar input { width:100%; }
  .catalyst-card-foot { grid-template-columns:1fr auto; }
  .catalyst-quality { grid-column:1 / -1; }
}
@media (max-width:560px) {
  .catalyst-page { padding-top:30px; }
  .market-health-grid { grid-template-columns:1fr; }
  .catalyst-rule-pillars,.catalyst-pillars { grid-template-columns:1fr; }
  .catalyst-pillar { border-right:0; border-bottom:1px solid var(--border); }
  .catalyst-pillar:nth-child(2) { border-right:0; }
  .catalyst-pillar:last-child { border-bottom:0; }
  .catalyst-card-head { align-items:flex-start; flex-direction:column; }
  .catalyst-stage { min-width:0; align-items:flex-start; text-align:left; }
  .catalyst-card-foot { grid-template-columns:1fr; }
  .catalyst-quality { grid-column:auto; }
  .catalyst-period { align-items:flex-start; }
  .agent-report { align-self:stretch; }
  .report-panel { width:100%; }
  .report-body { padding:20px 18px 60px; }
}
