/* Scoped to the reform explorer so existing historical charts keep their layout. */
#cluster-explorer { --cx-accent:#7eb7ff; --cx-green:#65d8b0; --cx-soft:#b0bac9; scroll-margin-top:150px; font-variant-numeric:tabular-nums; -webkit-font-smoothing:antialiased; }
#cluster-explorer .cx-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:18px; }
#cluster-explorer .cx-eyebrow { color:var(--cx-accent); font-size:10.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; margin:0 0 5px; }
#cluster-explorer h2 { font-size:25px; line-height:1.25; text-wrap:balance; }
#cluster-explorer .cx-intro { max-width:480px; color:var(--muted); font-size:13px; line-height:1.6; text-wrap:pretty; }
#cluster-explorer .cx-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; align-items:stretch; }
#cluster-explorer .cx-card { display:flex; flex-direction:column; min-width:0; padding:22px; border-radius:16px; background:var(--panel); box-shadow:0 0 0 1px rgba(255,255,255,.085),0 4px 14px rgba(0,0,0,.12); }
#cluster-explorer .cx-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#cluster-explorer h3 { color:var(--text); font-size:20px; line-height:1.3; font-weight:700; letter-spacing:-.3px; text-wrap:balance; }
#cluster-explorer .cx-badge { flex:none; border-radius:999px; padding:5px 9px; background:rgba(25,158,112,.12); color:var(--cx-green); font-size:10px; font-weight:600; }
#cluster-explorer .cx-badge-neutral { color:var(--cx-soft); background:rgba(255,255,255,.055); }
#cluster-explorer .cx-asof { margin:9px 0 17px; color:var(--muted); font-size:11.5px; }
#cluster-explorer button { font:inherit; color:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
#cluster-explorer button:focus-visible,#cluster-explorer a:focus-visible { outline:2px solid var(--cx-accent); outline-offset:4px; }
#cluster-explorer button:disabled { opacity:.5; cursor:not-allowed; }
#cluster-explorer .cx-timeline,#cluster-explorer .cx-funnel { list-style:none; padding:0; margin:0; }
#cluster-explorer .cx-timeline { margin-bottom:16px; }
#cluster-explorer .cx-timeline-item { position:relative; }
#cluster-explorer .cx-timeline-item:not(:last-child)::before { content:''; position:absolute; left:22px; top:34px; bottom:-17px; width:1px; background:rgba(255,255,255,.16); }
#cluster-explorer .cx-stage { position:relative; display:flex; width:100%; align-items:flex-start; gap:12px; padding:10px 10px 10px 8px; min-height:84px; background:transparent; border:1px solid transparent; border-radius:10px; text-align:left; transition:background-color .16s,border-color .16s; }
#cluster-explorer .cx-stage:hover { background:rgba(255,255,255,.035); }
#cluster-explorer .cx-stage[aria-pressed="true"] { background:rgba(57,135,229,.09); border-color:rgba(126,183,255,.28); }
#cluster-explorer .cx-step-dot { display:flex; flex:none; align-items:center; justify-content:center; width:28px; height:28px; border:1px solid rgba(255,255,255,.2); border-radius:50%; color:var(--cx-soft); background:var(--panel); font-size:11px; font-weight:700; margin-top:1px; }
#cluster-explorer .cx-complete .cx-step-dot { background:#173d34; color:var(--cx-green); border-color:#2b6c58; }
#cluster-explorer .cx-current .cx-step-dot { background:#163759; color:var(--cx-accent); border-color:#457cab; box-shadow:0 0 0 3px rgba(57,135,229,.08); }
#cluster-explorer .cx-step-copy { display:block; min-width:0; }
#cluster-explorer .cx-step-name { display:block; font-size:13px; font-weight:600; color:var(--text); line-height:1.45; }
#cluster-explorer .cx-step-date { display:block; font-size:11.5px; color:var(--cx-soft); line-height:1.5; margin-top:2px; }
#cluster-explorer .cx-step-status { display:block; font-size:10px; color:var(--muted); margin-top:3px; line-height:1.4; }
#cluster-explorer .cx-current .cx-step-status { color:var(--cx-accent); }
#cluster-explorer .cx-complete .cx-step-status { color:var(--cx-green); }
#cluster-explorer .cx-detail { background:rgba(255,255,255,.035); border-radius:10px; padding:15px; color:var(--cx-soft); font-size:12px; line-height:1.65; }
#cluster-explorer .cx-detail h4 { color:var(--text); font-size:13px; font-weight:600; line-height:1.45; margin:0 0 6px; text-wrap:balance; }
#cluster-explorer .cx-detail p { margin:0; text-wrap:pretty; }
#cluster-explorer .cx-detail .cx-detail-note { color:var(--muted); margin-top:7px; font-size:11.5px; }
#cluster-explorer #cx-stage-detail { min-height:158px; }
#cluster-explorer #cx-funnel-detail { min-height:175px; }
#cluster-explorer .cx-card-end { margin-top:auto; padding-top:16px; }
#cluster-explorer .cx-report-count,#cluster-explorer .cx-small-note { color:var(--muted); font-size:11.5px; line-height:1.65; margin:0 0 8px; text-wrap:pretty; }
#cluster-explorer .cx-report-count strong { color:var(--text); font-size:15px; }
#cluster-explorer .cx-browse { display:inline-flex; gap:12px; justify-content:space-between; align-items:center; min-height:42px; margin-top:4px; padding:8px 12px; border:1px solid rgba(126,183,255,.2); border-radius:7px; color:var(--cx-accent); background:rgba(57,135,229,.065); font-size:12px; font-weight:600; transition:background-color .16s,scale .16s; }
#cluster-explorer .cx-browse:not(:disabled):hover { background:rgba(57,135,229,.15); }
#cluster-explorer .cx-browse:not(:disabled):active { scale:.96; }
#cluster-explorer .cx-source { color:var(--muted); font-size:10.5px; line-height:1.6; margin:12px 0 0; }
#cluster-explorer .cx-source a { color:var(--cx-accent); text-underline-offset:3px; }
#cluster-explorer .cx-funnel-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
#cluster-explorer .cx-metric-toggle { display:inline-flex; flex:none; padding:3px; border-radius:9px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.09); }
#cluster-explorer .cx-metric-toggle button { min-height:40px; padding:7px 11px; background:transparent; color:var(--muted); border:0; border-radius:6px; font-size:11.5px; transition:background-color .16s,color .16s; }
#cluster-explorer .cx-metric-toggle button[aria-pressed="true"] { color:var(--text); background:rgba(126,183,255,.12); box-shadow:0 1px 3px rgba(0,0,0,.2); }
#cluster-explorer .cx-metric-toggle button:hover { color:var(--text); }
#cluster-explorer .cx-bar-key { max-width:150px; font-size:10px; line-height:1.45; color:var(--muted); text-align:right; }
#cluster-explorer .cx-funnel { display:grid; gap:4px; margin-bottom:15px; }
#cluster-explorer .cx-funnel-stage { display:block; width:100%; min-height:75px; padding:9px 10px; border:1px solid transparent; border-radius:9px; background:transparent; text-align:left; transition:background-color .16s,border-color .16s; }
#cluster-explorer .cx-funnel-stage:hover { background:rgba(255,255,255,.035); }
#cluster-explorer .cx-funnel-stage[aria-pressed="true"] { background:rgba(57,135,229,.07); border-color:rgba(126,183,255,.26); }
#cluster-explorer .cx-funnel-label { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; font-weight:500; color:var(--text); }
#cluster-explorer .cx-funnel-label strong { font-size:17px; line-height:1.3; font-weight:700; white-space:nowrap; }
#cluster-explorer .cx-funnel-date { display:block; color:var(--muted); font-size:10.5px; line-height:1.4; margin:2px 0 5px; }
#cluster-explorer .cx-bar-line { display:flex; align-items:center; gap:10px; }
#cluster-explorer .cx-bar-track { flex:1; height:8px; overflow:hidden; border-radius:3px; background:rgba(255,255,255,.055); }
#cluster-explorer .cx-bar-fill { display:block; height:100%; border-radius:3px; background:#599add; transition:width .22s ease; }
#cluster-explorer .cx-funnel-stage[aria-pressed="true"] .cx-bar-fill { background:var(--cx-accent); }
#cluster-explorer .cx-bar-percent { min-width:43px; color:var(--cx-soft); font-size:10px; text-align:right; }
#cluster-explorer .cx-ratios { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:10px 0; }
#cluster-explorer .cx-ratios strong { display:block; color:var(--cx-accent); font-size:20px; line-height:1.2; letter-spacing:-.3px; }
#cluster-explorer .cx-ratios span { display:block; font-size:10.5px; color:var(--muted); margin-top:4px; line-height:1.4; }
#cluster-explorer .cx-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:940px) {
    #cluster-explorer .cx-section-head { display:block; }
    #cluster-explorer .cx-intro { margin-top:9px; max-width:700px; }
    #cluster-explorer .cx-card { padding:18px; }
    #cluster-explorer .cx-card-head { align-items:flex-start; flex-wrap:wrap; gap:8px; }
    #cluster-explorer .cx-badge { font-size:9.5px; }
}
@media (max-width:760px) {
    #cluster-explorer { scroll-margin-top:160px; }
    #cluster-explorer .cx-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
    #cluster-explorer .cx-card-head { flex-wrap:nowrap; align-items:center; }
    #cluster-explorer #cx-stage-detail,#cluster-explorer #cx-funnel-detail { min-height:0; }
    #cluster-explorer .cx-stage { min-height:83px; }
    #cluster-explorer h2 { font-size:23px; }
}
@media (max-width:380px) {
    #cluster-explorer .cx-card { padding:15px; }
    #cluster-explorer .cx-card-head { flex-wrap:wrap; }
    #cluster-explorer .cx-funnel-toolbar { gap:8px; }
    #cluster-explorer .cx-metric-toggle button { padding:7px 9px; }
}
@media (prefers-reduced-motion:reduce) {
    #cluster-explorer *,#cluster-explorer *::before { transition:none!important; scroll-behavior:auto!important; }
    #cluster-explorer .cx-browse:not(:disabled):active { scale:1; }
}
