/* Additive module. Every selector is scoped; no existing chart styles change. */
.coefficient-explorer,
.coefficient-watch-page { --ce-ink: #142238; --ce-muted: #65758b; --ce-line: #dfe7ef; --ce-blue: #0369a1; color: var(--ce-ink); font-family: inherit; }
.coefficient-explorer { margin: 24px 0; min-width: 0; overflow: hidden; border: 1px solid var(--ce-line); border-radius: 16px; background: #fff; }
.coefficient-explorer *, .coefficient-watch-page * { box-sizing: border-box; }
.coefficient-explorer [hidden], .coefficient-watch-page [hidden] { display: none !important; }
.coefficient-explorer .ce-header,
.coefficient-watch-page .ce-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px; border-bottom: 1px solid var(--ce-line); }
.coefficient-explorer .ce-header h2, .coefficient-watch-page h1 { margin: 0; color: var(--ce-ink); font-size: clamp(20px, 2.6vw, 29px); font-weight: 760; letter-spacing: -.035em; line-height: 1.25; }
.coefficient-explorer .ce-header p:not(.ce-kicker), .coefficient-watch-page .ce-header p:not(.ce-kicker) { margin: 7px 0 0; color: var(--ce-muted); font-size: 12px; line-height: 1.6; }
.coefficient-explorer .ce-kicker, .coefficient-watch-page .ce-kicker { margin: 0 0 8px; color: var(--ce-blue); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.coefficient-explorer .ce-button, .coefficient-watch-page .ce-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 35px; padding: 8px 11px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #34465e; line-height: 1.35; font-family: inherit; font-size: 11px; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
.coefficient-explorer .ce-button:hover, .coefficient-watch-page .ce-button:hover { border-color: #7cbcd8; background: #f0f9ff; }
.coefficient-explorer .ce-button--primary, .coefficient-watch-page .ce-button--primary { border-color: #087b9c; background: #087b9c; color: #fff; }
.coefficient-explorer .ce-button--primary:hover { background: #086984; }
.coefficient-explorer .ce-button:disabled { cursor: wait; opacity: .55; }
.coefficient-explorer button:focus-visible, .coefficient-explorer input:focus-visible, .coefficient-explorer select:focus-visible,
.coefficient-explorer a:focus-visible, .coefficient-watch-page a:focus-visible, .coefficient-watch-page button:focus-visible { outline: 2px solid #0284c7; outline-offset: 3px; }
.coefficient-explorer .ce-controls { display: flex; align-items: end; gap: 12px; padding: 17px 22px; flex-wrap: wrap; background: #fafcfe; border-bottom: 1px solid var(--ce-line); margin: 0; }
.coefficient-explorer label { display: grid; gap: 5px; min-width: 0; color: #52627a; font-size: 10px; font-weight: 650; line-height: 1.4; }
.coefficient-explorer input:not([type="checkbox"]):not([type="range"]), .coefficient-explorer select { min-height: 35px; min-width: 0; max-width: 100%; padding: 7px 8px; color: var(--ce-ink); border: 1px solid #cad6e1; border-radius: 7px; background: #fff; font: inherit; font-size: 11px; }
.coefficient-explorer .ce-tabs { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--ce-line); border-radius: 9px; background: #fff; }
.coefficient-explorer .ce-tabs button { min-height: 30px; padding: 6px 9px; border: 0; border-radius: 6px; background: transparent; color: #63748a; font-family: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
.coefficient-explorer .ce-tabs button[aria-pressed="true"] { background: #e8f5ff; color: #0759b7; box-shadow: inset 0 0 0 1px #b9d9ff; }
.coefficient-explorer .ce-context { display: flex; justify-content: space-between; gap: 12px; padding: 10px 22px; color: var(--ce-muted); font-size: 10px; border-bottom: 1px solid #eef2f6; }
.coefficient-explorer .ce-error { margin: 14px 22px; padding: 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fff5f5; color: #991b1b; font-size: 12px; line-height: 1.5; }
.coefficient-explorer .ce-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px 22px; }
.coefficient-explorer .ce-metrics article { min-width: 0; padding: 13px 14px; border: 1px solid var(--ce-line); border-radius: 10px; }
.coefficient-explorer .ce-metrics span { display: block; color: var(--ce-muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.coefficient-explorer .ce-metrics strong { display: block; margin-top: 9px; color: var(--ce-ink); font-size: 24px; letter-spacing: -.03em; font-weight: 730; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.coefficient-explorer .ce-metrics strong.ce-mono { font-size: 21px; }
.coefficient-explorer .ce-metrics small { display: block; margin-top: 6px; color: #65758b; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.coefficient-explorer .ce-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.coefficient-explorer {
  --ce-ui-build: "scientific-transition-2";
  --market-poly-positive-e03: #00e676;
  --market-poly-positive-e04: #20e353;
  --market-poly-positive-e05: #64dd17;
  --market-poly-positive-e06: #aeea00;
  --market-poly-positive-e07: #d5ea00;
  --market-poly-positive-e08: #e6e600;
  --market-poly-zero: #ffd600;
  --market-poly-negative-e08: #ffb300;
  --market-poly-negative-e07: #ff9100;
  --market-poly-negative-e06: #ff6500;
  --market-poly-negative-e05: #ff3d00;
  --market-poly-negative-e04: #ff2929;
  --market-poly-negative-e03: #ff1744;
  --market-poly-building: #94a3b8;
}
.coefficient-explorer .ce-legend { display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); align-items: stretch; gap: 10px; margin: 0 22px; }
.coefficient-explorer .ce-scale, .coefficient-explorer .ce-zero { min-width: 0; padding: 12px 14px; border: 1px solid #e1e7ee; border-radius: 12px; background: #fff; }
.coefficient-explorer .ce-scale-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.coefficient-explorer .ce-scale-head strong { color: #334155; font-size: 12px; font-weight: 800; }
.coefficient-explorer .ce-scale-head small { color: #7c8da3; font-size: 10px; }
.coefficient-explorer .ce-ramp { height: 13px; border-radius: 999px; }
.coefficient-explorer .ce-ramp--positive { background: linear-gradient(90deg, var(--market-poly-positive-e03) 0%, var(--market-poly-positive-e04) 20%, var(--market-poly-positive-e05) 40%, var(--market-poly-positive-e06) 60%, var(--market-poly-positive-e07) 80%, var(--market-poly-positive-e08) 100%); box-shadow: 0 0 10px rgba(0,230,118,.14); }
.coefficient-explorer .ce-ramp--negative { background: linear-gradient(90deg, var(--market-poly-negative-e08) 0%, var(--market-poly-negative-e07) 20%, var(--market-poly-negative-e06) 40%, var(--market-poly-negative-e05) 60%, var(--market-poly-negative-e04) 80%, var(--market-poly-negative-e03) 100%); box-shadow: 0 0 10px rgba(255,145,0,.14); }
.coefficient-explorer .ce-scale-ticks { position: relative; height: 16px; margin-top: 8px; color: #64748b; font: 10px/16px ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.coefficient-explorer .ce-scale-ticks > span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.coefficient-explorer .ce-scale-ticks > span:first-child { transform: none; }
.coefficient-explorer .ce-scale-ticks > span:last-child { transform: translateX(-100%); }
.coefficient-explorer .ce-zero { display: grid; justify-items: center; align-content: center; gap: 4px; background: linear-gradient(145deg, #fffef2, #ffffff); text-align: center; padding: 8px 6px; }
.coefficient-explorer .ce-zero > span { width: 11px; height: 30px; border-radius: 999px; background: var(--market-poly-zero); box-shadow: 0 0 12px rgba(255,214,0,.25); }
.coefficient-explorer .ce-zero strong { color: #665800; font-size: 11px; }
.coefficient-explorer .ce-zero small { color: #8a7a20; font-size: 9px; }
.coefficient-explorer .ce-legend-note { margin: 8px 22px 0; color: #65758b; font-size: 10px; line-height: 1.6; }
.coefficient-explorer .ce-presentation-build { margin: 0; padding: 6px 22px 10px; font-size: 9px; color: #65758b; background: #fafcfe; }
.coefficient-explorer .ce-explanation { margin: 12px 22px 6px; padding: 11px 13px; border-left: 3px solid #38bdf8; background: #f3faff; color: #475e77; font-size: 11px; line-height: 1.65; }
.coefficient-explorer .ce-chart-block { padding: 15px 22px 9px; border-bottom: 1px solid #edf2f6; min-width: 0; }
.coefficient-explorer .ce-chart-heading, .coefficient-watch-page .ce-chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.coefficient-explorer h3, .coefficient-watch-page h3 { margin: 0; color: #243851; font-size: 13px; font-weight: 750; }
.coefficient-explorer .ce-chart-heading span, .coefficient-watch-page .ce-chart-heading span { color: var(--ce-muted); font-size: 9px; text-align: right; line-height: 1.5; }
.coefficient-explorer .ce-chart { position: relative; height: 260px; min-width: 0; width: 100%; }
.coefficient-explorer .ce-chart--coefficient { height: 235px; }
.coefficient-explorer .ce-chart--quality { height: 135px; }
.coefficient-explorer .ce-chart canvas, .coefficient-explorer .ce-heat canvas { display: block; width: 100%; height: 100%; }
.coefficient-explorer .ce-chart canvas { cursor: crosshair; touch-action: pan-y; }
.coefficient-explorer .ce-heat { position: relative; height: 13px; margin: 3px 0 5px 70px; border-radius: 3px; overflow: hidden; }
.coefficient-explorer .ce-replay { display: flex; align-items: center; gap: 12px; padding: 13px 22px; background: #fafcfe; border-bottom: 1px solid var(--ce-line); }
.coefficient-explorer .ce-replay input { flex: 1; min-width: 45px; accent-color: #0284c7; }
.coefficient-explorer .ce-replay output { color: #526680; font-size: 10px; white-space: nowrap; }
.coefficient-explorer .ce-research-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 14px; padding: 18px 22px; align-items: start; background: #fbfcfe; }
.coefficient-explorer .ce-card, .coefficient-watch-page .ce-card { min-width: 0; padding: 16px; border: 1px solid var(--ce-line); border-radius: 11px; background: #fff; }
.coefficient-explorer .ce-muted { margin: 5px 0 14px; color: var(--ce-muted); font-size: 10px; line-height: 1.5; }
.coefficient-explorer .ce-note, .coefficient-watch-page .ce-note { margin: 10px 0; color: var(--ce-muted); font-size: 10px; line-height: 1.65; }
.coefficient-explorer .ce-table-wrap, .coefficient-watch-page .ce-table-wrap { overflow-x: auto; width: 100%; }
.coefficient-explorer table, .coefficient-watch-page table { width: 100%; border-collapse: collapse; text-align: left; font-size: 10px; font-variant-numeric: tabular-nums; }
.coefficient-explorer th, .coefficient-explorer td, .coefficient-watch-page th, .coefficient-watch-page td { padding: 10px 7px; border-bottom: 1px solid #e8eef4; line-height: 1.5; vertical-align: top; }
.coefficient-explorer thead th, .coefficient-watch-page thead th { color: #677b94; font-size: 9px; font-weight: 700; white-space: nowrap; }
.coefficient-explorer tbody th { white-space: nowrap; font-weight: 700; }
.coefficient-explorer .ce-selected-row { background: #f0f8ff; }
.coefficient-explorer .ce-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.coefficient-explorer .ce-thresholds { margin-top: 12px; }
.coefficient-explorer .ce-thresholds th { min-width: 75px; }
.coefficient-explorer .ce-thresholds input { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; }
.coefficient-explorer .ce-thresholds th small { display: block; margin-top: 3px; color: #718096; font-size: 8px; font-weight: 500; }
.coefficient-explorer .ce-events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 11px 0 0; margin: 10px 0 0; border: 0; }
.coefficient-explorer .ce-events legend { margin: 0 0 4px; font-size: 10px; font-weight: 750; color: #475569; }
.coefficient-explorer .ce-events label, .coefficient-explorer .ce-check { display: flex; align-items: flex-start; gap: 6px; color: #52627a; font-weight: 500; }
.coefficient-explorer input[type="checkbox"] { flex: none; margin: 1px 0 0; accent-color: #0284c7; }
.coefficient-explorer .ce-save { display: grid; gap: 12px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--ce-line); }
.coefficient-explorer .ce-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.coefficient-explorer .ce-ledger { margin: 0 22px 16px; }
.coefficient-explorer .ce-event-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.coefficient-explorer .ce-event { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 12px; border: 1px solid #e1e8f0; border-left: 3px solid #60a5fa; border-radius: 8px; background: #fff; }
.coefficient-explorer .ce-event[data-kind="epsilon_entry"] { border-left-color: #eab308; }
.coefficient-explorer .ce-event[data-kind="negative_flip"] { border-left-color: #f97316; }
.coefficient-explorer .ce-event[data-kind="model_change"] { border-left-color: #8b5cf6; }
.coefficient-explorer .ce-event strong { color: #293e58; font-size: 11px; }
.coefficient-explorer .ce-event small { color: #62748c; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.coefficient-explorer .ce-event code { color: #304b6c; font-size: 10px; overflow-wrap: anywhere; }
.coefficient-explorer .ce-event p { margin: 0; color: #62748c; font-size: 9px; line-height: 1.6; }
.coefficient-explorer .ce-watch-list { display: grid; gap: 8px; margin-top: 12px; }
.coefficient-explorer .ce-watch { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fbfe; }
.coefficient-explorer .ce-watch > div { min-width: 0; flex: 1; }
.coefficient-explorer .ce-watch strong { display: block; font-size: 11px; overflow-wrap: anywhere; }
.coefficient-explorer .ce-watch small { display: block; margin-top: 4px; font-size: 9px; color: #64748b; line-height: 1.5; overflow-wrap: anywhere; }
.coefficient-explorer [data-healthy="true"] { color: #047857; }
.coefficient-explorer [data-healthy="false"] { color: #b45309; }
.coefficient-explorer .ce-link, .coefficient-watch-page .ce-link { display: inline-block; margin-top: 12px; color: #0369a1; font-size: 11px; }
.coefficient-explorer .ce-method { padding: 17px 22px; border-top: 1px solid var(--ce-line); background: #fafcfe; }
.coefficient-explorer .ce-method summary { color: #3c526e; font-size: 12px; font-weight: 700; cursor: pointer; }
.coefficient-explorer .ce-method p { max-width: 1000px; margin: 12px 0 0; color: #65758b; font-size: 11px; line-height: 1.7; }
.coefficient-watch-page .ce-card { margin: 16px 0; }
.coefficient-watch-page .ce-header { padding-left: 0; padding-right: 0; }
.coefficient-watch-page td small { display: block; color: var(--ce-muted); }
.coefficient-watch-page form { display: inline-block; margin: 0 5px 5px 0; }
@media (max-width: 1000px) {
  .coefficient-explorer .ce-research-grid { grid-template-columns: 1fr; }
  .coefficient-explorer .ce-metrics strong.ce-mono { font-size: 17px; }
  .coefficient-explorer .ce-metrics strong { font-size: 21px; }
  .coefficient-explorer .ce-event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .coefficient-explorer { border-radius: 12px; }
  .coefficient-explorer .ce-header, .coefficient-watch-page .ce-header { flex-direction: column; }
  .coefficient-explorer .ce-header, .coefficient-explorer .ce-controls, .coefficient-explorer .ce-metrics,
  .coefficient-explorer .ce-research-grid, .coefficient-explorer .ce-context, .coefficient-explorer .ce-method { padding: 14px 12px; }
  .coefficient-explorer .ce-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .coefficient-explorer .ce-metrics article { padding: 11px; }
  .coefficient-explorer .ce-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .coefficient-explorer .ce-tabs { grid-column: 1 / -1; }
  .coefficient-explorer .ce-tabs button { flex: 1; }
  .coefficient-explorer .ce-controls label { min-width: 0; }
  .coefficient-explorer .ce-controls input, .coefficient-explorer .ce-controls select { width: 100%; }
  .coefficient-explorer .ce-context { flex-direction: column; gap: 4px; }
  .coefficient-explorer .ce-explanation { margin-right: 12px; margin-left: 12px; }
  .coefficient-explorer .ce-chart-block { padding-right: 6px; padding-left: 6px; }
  .coefficient-explorer .ce-chart-heading { padding: 0 6px; flex-direction: column; gap: 4px; }
  .coefficient-explorer .ce-chart-heading span { text-align: left; }
  .coefficient-explorer .ce-chart { height: 230px; }
  .coefficient-explorer .ce-chart--coefficient { height: 220px; }
  .coefficient-explorer .ce-chart--quality { height: 125px; }
  .coefficient-explorer .ce-replay { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 12px; }
  .coefficient-explorer .ce-replay output { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .coefficient-explorer .ce-ledger { margin-right: 12px; margin-left: 12px; }
  .coefficient-explorer .ce-card { padding: 12px; }
  .coefficient-explorer .ce-event-list { grid-template-columns: 1fr; }
  .coefficient-explorer .ce-watch { flex-wrap: wrap; }
  .coefficient-explorer .ce-watch > div { flex-basis: 100%; }
  .coefficient-explorer .ce-events { grid-template-columns: 1fr; }
  .coefficient-explorer .ce-button { min-height: 38px; }
  .coefficient-explorer .ce-thresholds th, .coefficient-explorer .ce-thresholds td { padding: 8px 4px; }
}

/* v2: isolated timeframe, provisional-state and transition-lab controls. */
.coefficient-explorer .ce-controls { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); }
.coefficient-explorer .ce-tabs { grid-column: 1 / -1; width: fit-content; }
.coefficient-explorer .ce-data-warnings { margin: 0 20px 14px; padding: 10px 12px; background: #fffbeb; border-left: 3px solid #f5b92e; color: #78551c; line-height: 1.6; }
.coefficient-explorer .ce-data-warnings:empty { display: none; }
.coefficient-explorer .ce-study-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 14px 0; }
.coefficient-explorer .ce-study-controls label { display: grid; gap: 5px; color: #667587; font-size: 11px; }
.coefficient-explorer .ce-study-controls label.ce-check { display: flex; align-items: center; min-height: 34px; }
.coefficient-explorer .ce-study-controls select { min-height: 34px; background: white; color: #102031; border: 1px solid #dce3e9; border-radius: 7px; padding: 6px 10px; font: inherit; }
.coefficient-explorer .ce-study-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #dce3e9; border-radius: 9px; overflow: hidden; }
.coefficient-explorer .ce-study-stats > div { min-width: 0; padding: 12px 14px; border-right: 1px solid #e7edf2; }
.coefficient-explorer .ce-study-stats > div:last-child { border: 0; }
.coefficient-explorer .ce-study-stats small, .coefficient-explorer .ce-study-stats strong { display: block; }
.coefficient-explorer .ce-study-stats small { font-size: 10px; color: #667587; }
.coefficient-explorer .ce-study-stats strong { margin-top: 5px; font-size: 21px; font-variant-numeric: tabular-nums; }
.coefficient-explorer .ce-link-button { border: none; background: none; color: #0d7089; cursor: pointer; font: inherit; text-align: left; padding: 3px 0; text-decoration: underline; }
.coefficient-explorer .ce-study-navigation { margin-top: 10px; }
.coefficient-explorer .ce-study-navigation small { color: #667587; }
.coefficient-explorer .ce-study .ce-mono { white-space: nowrap; }
@media (max-width: 700px) { .coefficient-explorer .ce-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .coefficient-explorer .ce-tabs { width: 100%; } .coefficient-explorer .ce-study-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .coefficient-explorer .ce-study-controls { display: grid; grid-template-columns: 1fr; } .coefficient-explorer .ce-data-warnings { margin-inline: 12px; } }

/* V3 scope summary; isolated from the existing SPY modal and other charts. */
.coefficient-explorer .ce-window-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 22px; border-bottom: 1px solid #e8eef4; background: #f5fafc; font-size: 11px; line-height: 1.6; }
.coefficient-explorer .ce-window-summary strong { color: #075985; }
.coefficient-explorer .ce-window-summary span { color: #526680; }
.coefficient-explorer .ce-controls select[name="fit_window"] { max-width: 100%; }
@media (max-width: 640px) { .coefficient-explorer .ce-window-summary { padding: 11px 14px; } }

@media (max-width: 640px) { .coefficient-explorer .ce-controls .ce-fit-window-field { grid-column: 1 / -1; } }


/* SPY-style inspection is an overlay: it never moves the replay cursor or fit. */
.coefficient-explorer .ce-tooltip { position: absolute; z-index: 5; width: max-content; max-width: calc(100% - 16px); padding: 11px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; background: rgba(15,23,42,.96); color: #f8fafc; pointer-events: none; font-variant-numeric: tabular-nums; box-shadow: 0 4px 14px rgba(15,23,42,.12); }
.coefficient-explorer .ce-tooltip > strong { display: block; color: #fff; font-size: 16px; line-height: 1.35; font-weight: 750; }
.coefficient-explorer .ce-tooltip-row { display: flex; align-items: flex-start; gap: 7px; margin-top: 7px; font-size: 14px; line-height: 1.5; }
.coefficient-explorer .ce-tooltip-row > div { min-width: 0; overflow-wrap: anywhere; }
.coefficient-explorer .ce-tooltip-row > div > span { display: inline; }
.coefficient-explorer .ce-tooltip-swatch { flex: none; width: 15px; height: 15px; margin-top: 3px; border: 2px solid rgba(255,255,255,.85); }
.coefficient-explorer .ce-tooltip > small { display: block; margin-top: 5px; color: #cbd5e1; font-size: 10px; line-height: 1.5; }
.coefficient-explorer .ce-tooltip::after { content: ""; display: none; position: absolute; top: var(--ce-caret-y, 50%); border: 6px solid transparent; transform: translateY(-50%); }
.coefficient-explorer .ce-tooltip[data-side="left"]::after { display: block; right: 100%; border-right-color: rgba(15,23,42,.96); }
.coefficient-explorer .ce-tooltip[data-side="right"]::after { display: block; left: 100%; border-left-color: rgba(15,23,42,.96); }
.coefficient-explorer .ce-hover-dot { position: absolute; z-index: 4; display: block; width: 12px; height: 12px; border: 2px solid white; border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(15,23,42,.10); }
.coefficient-explorer .ce-chart canvas:focus-visible { outline: 2px solid #0284c7; outline-offset: -2px; }
@media (max-width: 760px) {
  .coefficient-explorer .ce-legend { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .coefficient-explorer .ce-scale { padding: 11px 13px; }
  .coefficient-explorer .ce-zero { grid-template-columns: 11px auto auto; align-items: center; justify-content: center; gap: 9px; padding: 8px 12px; }
  .coefficient-explorer .ce-zero > span { height: 25px; }
}
@media (max-width: 640px) {
  .coefficient-explorer .ce-legend { margin-inline: 12px; }
  .coefficient-explorer .ce-legend-note { margin-inline: 12px; }
  .coefficient-explorer .ce-tooltip { padding: 10px 12px; }
  .coefficient-explorer .ce-tooltip > strong { font-size: 14px; }
  .coefficient-explorer .ce-tooltip-row { font-size: 12px; }
}

/* Visual Lens 1. All color meaning is explicit; the original SPY palette is unchanged. */
.coefficient-explorer { --ce-visual-build: "scientific-transition-2"; --ce-transition-build: "scientific-transition-2"; }
.coefficient-explorer .ce-ramp { position: relative; overflow: visible; }
.coefficient-explorer .vl-legend-marker { position: absolute; z-index: 2; top: 50%; width: 11px; height: 23px; border: 2px solid #fff; border-radius: 4px; background: #12243d; box-shadow: 0 0 0 1px #12243d; transform: translate(-50%, -50%); }
.coefficient-explorer .vl-legend-marker--previous { z-index: 1; width: 9px; height: 22px; background: transparent; border: 2px solid #334155; box-shadow: 0 0 0 1px #fff; }
.coefficient-explorer .vl-legend-position { margin: 0 22px 10px; color: #536983; font-size: 10px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.coefficient-explorer .vl-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 12px 16px; margin: 16px 22px 0; padding: 12px 14px; border: 1px solid #d5e7ef; border-radius: 12px; background: #f8fbfd; }
.coefficient-explorer .vl-controls .ce-check { min-height: 35px; align-items: center; }
.coefficient-explorer .vl-controls label { font-size: 10px; }
.coefficient-explorer .vl-workspace { display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: start; gap: 0; padding: 0 22px; }
.coefficient-explorer .vl-price-stack { min-width: 0; }
.coefficient-explorer .vl-workspace .ce-chart-block { padding: 17px 0 9px; border-bottom: 0; }
.coefficient-explorer .vl-workspace .ce-chart-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
.coefficient-explorer .vl-workspace .ce-chart-heading span { text-align: left; }
.coefficient-explorer .vl-workspace .ce-chart--price { height: 320px; border-radius: 11px; background: linear-gradient(180deg,#fff,#fbfdff); }
.coefficient-explorer .vl-price-guide { position: absolute; z-index: 1; top: 14px; bottom: 30px; width: 1px; background: #33415566; pointer-events: none; }
.coefficient-explorer .vl-mark-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 5px; color: #4e637e; font-size: 9px; }
.coefficient-explorer .vl-mark-key > span { display: inline-flex; align-items: center; gap: 5px; }
.coefficient-explorer .vl-low-key { display: inline-block; width: 9px; height: 9px; border: 1px solid #0086a8; background: #00d4ff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,212,255,.10); }
.coefficient-explorer .vl-confirm-key { display: inline-block; width: 8px; height: 8px; border: 1.5px solid #7c3aed; transform: rotate(45deg); background: #fff; opacity: .82; }
.coefficient-explorer .vl-pending-key { display: inline-block; width: 9px; height: 9px; border: 1.5px solid #b77900; border-radius: 50%; background: #fff; }
.coefficient-explorer .vl-direction-up { color: #087e94; }
.coefficient-explorer .vl-direction-down { color: #7545b5; }
.coefficient-explorer .vl-small { margin: 6px 0 10px; color: #64748b; font-size: 10px; line-height: 1.6; }
.coefficient-explorer .vl-lanes { margin-top: 6px; }
.coefficient-explorer .vl-lane-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.coefficient-explorer .vl-lane-heading span { font-size: 9px; color: #64748b; }
.coefficient-explorer .vl-lane { min-width: 0; padding: 7px 0 5px; border: 0; border-radius: 8px; }
.coefficient-explorer .vl-lane[data-active="true"] { box-shadow: inset 0 0 0 1px #a5d7ef; background: #f1faff; }
.coefficient-explorer .vl-lane-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 0 12px; font-size: 10px; }
.coefficient-explorer .vl-lane-meta strong { width: 100px; color: #334155; }
.coefficient-explorer .vl-lane-meta code { font-size: 11px; color: #17324a; font-variant-numeric: tabular-nums; }
.coefficient-explorer .vl-lane-meta small { color: #64748b; font-size: 9px; margin-left: auto; }
.coefficient-explorer .vl-lane-track { position: relative; height: 24px; margin-top: 5px; }
.coefficient-explorer .vl-lane-track canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.coefficient-explorer .vl-lane-track canvas:focus-visible { outline: 2px solid #0284c7; outline-offset: 2px; }
.coefficient-explorer .vl-lane-cursor { position: absolute; width: 2px; top: -2px; bottom: -2px; background: #142238; border-inline: 1px solid #fff; pointer-events: none; }
.coefficient-explorer .vl-lens { --vl-color: #00d4ff; margin: 16px 0 0 18px; min-width: 0; padding: 17px; border: 1px solid #d9e5f0; border-top: 4px solid var(--vl-color); border-radius: 14px; background: linear-gradient(155deg,#f7fdff,#fff 45%,#faf7ff); }
.coefficient-explorer .vl-lens-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; }
.coefficient-explorer .vl-lens-top > span { font-size: 10px; font-weight: 850; letter-spacing: .09em; color: #04748e; }
.coefficient-explorer .vl-lens small { display: block; color: #64748b; font-size: 9px; line-height: 1.6; overflow-wrap: anywhere; }
.coefficient-explorer .vl-lens h3 { margin-top: 10px; font-size: 14px; }
.coefficient-explorer .vl-number { display: block; margin: 9px 0 2px; font: 700 clamp(17px,1.65vw,22px)/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: -.04em; color: #112b47; overflow-wrap: anywhere; }
.coefficient-explorer .vl-price-fit { margin: 13px 0; padding: 10px 0; border-block: 1px solid #e2ebf3; }
.coefficient-explorer .vl-price-fit > strong { font-size: 18px; color: #183a54; }
.coefficient-explorer .vl-lens p { font-size: 10px; color: #475e78; line-height: 1.65; margin: 8px 0; }
.coefficient-explorer .vl-lens p.vl-direction { border-left: 2px solid #06b6d4; padding-left: 8px; }
.coefficient-explorer .vl-epsilon { margin-top: 15px; padding-top: 13px; border-top: 1px solid #e2e8f0; }
.coefficient-explorer .vl-epsilon > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.coefficient-explorer .vl-epsilon > div > span { font-size: 8px; font-weight: 800; letter-spacing: .05em; color: #7b6200; }
.coefficient-explorer .vl-epsilon > div > strong { font-size: 17px; color: #243a58; }
.coefficient-explorer .vl-epsilon-track { position: relative; height: 9px; margin: 15px 0 8px; border-radius: 8px; background: linear-gradient(90deg,#fff3b0 0%,#ffd600 50%,#cfdee9 50%,#d8e5f3 100%); }
.coefficient-explorer .vl-epsilon-boundary { position: absolute; left: 50%; top: -4px; height: 17px; width: 1px; background: #897800; }
.coefficient-explorer .vl-epsilon-marker { position: absolute; top: -3px; width: 9px; height: 15px; border: 2px solid #fff; border-radius: 4px; background: #152e4b; transform: translateX(-50%); box-shadow: 0 0 0 1px #1e3a52; }
.coefficient-explorer .vl-epsilon-ticks { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.coefficient-explorer .vl-epsilon-ticks > span { font-size: 8px; color: #687b93; font-weight: 500; }
.coefficient-explorer .vl-insight { margin: 13px 0; padding: 10px; border: 1px solid #c8e8f0; border-radius: 9px; background: #effbfe; font-size: 10px; color: #23506a; line-height: 1.7; }
.coefficient-explorer .vl-navigate { display: flex; gap: 7px; margin-bottom: 7px; }
.coefficient-explorer .vl-navigate button, .coefficient-explorer .vl-lens-top button { min-height: 30px; border: 1px solid #cadbe8; border-radius: 7px; background: #fff; color: #255474; font-family: inherit; font-size: 10px; line-height: 1.3; font-weight: 650; padding: 6px 9px; cursor: pointer; }
.coefficient-explorer .vl-navigate button { flex: 1; font-family: inherit; font-size: 11px; }
.coefficient-explorer .vl-navigate button:disabled { color: #8896a6; background: #f3f6fa; cursor: default; }
.coefficient-explorer .vl-pivot-section { padding: 15px 22px 10px; border-block: 1px solid #e5edf4; background: #fbfdff; }
.coefficient-explorer .vl-pivot-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.coefficient-explorer .vl-pivot-heading p { margin: 4px 0 10px; color: #64748b; font-size: 10px; }
.coefficient-explorer .vl-pivot-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 8px 0; }
.coefficient-explorer .vl-pivot-card { min-width: 0; padding: 10px; border: 1px solid #dce7ef; border-top: 2px solid #00c8ef; border-radius: 9px; background: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.coefficient-explorer .vl-pivot-card[data-selected="true"] { border-color: #4cc4e5; background: #f2fbfe; }
.coefficient-explorer .vl-pivot-card strong, .coefficient-explorer .vl-pivot-card span, .coefficient-explorer .vl-pivot-card small { display: block; overflow-wrap: anywhere; }
.coefficient-explorer .vl-pivot-card strong { color: #13435a; font-size: 10px; }
.coefficient-explorer .vl-pivot-card span { margin: 5px 0 3px; color: #556e84; font-size: 9px; }
.coefficient-explorer .vl-pivot-card small { color: #7350a8; font-size: 8px; line-height: 1.6; }
@media(max-width:1000px) {
  .coefficient-explorer .vl-workspace { grid-template-columns: minmax(0,1fr); }
  .coefficient-explorer .vl-lens { margin: 14px 0; }
  .coefficient-explorer .vl-number { font-size: 24px; }
  .coefficient-explorer .vl-pivot-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px) {
  .coefficient-explorer .vl-workspace { padding-inline: 10px; }
  .coefficient-explorer .vl-controls { margin-inline: 12px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .coefficient-explorer .vl-controls > label:first-child, .coefficient-explorer .vl-controls > label:last-child { grid-column: 1 / -1; }
  .coefficient-explorer .vl-controls .ce-check { min-height: 32px; font-size: 10px; }
  .coefficient-explorer .vl-workspace .ce-chart--price { height: 275px; }
  .coefficient-explorer .vl-lane-meta { gap: 4px 7px; }
  .coefficient-explorer .vl-lane-meta strong { width: 86px; }
  .coefficient-explorer .vl-lane-meta small { margin: 0 0 0 auto; font-size: 8px; }
  .coefficient-explorer .vl-lane-track { height: 29px; }
  .coefficient-explorer .vl-pivot-section { padding-inline: 12px; }
  .coefficient-explorer .vl-pivot-heading { flex-direction: column; align-items: flex-start; }
  .coefficient-explorer .vl-legend-position { margin-inline: 12px; }
  .coefficient-explorer .vl-pivot-card { padding: 9px; }
}


/* Swing cleanup 1: reduce chart annotation noise without changing coefficient math. */
.coefficient-explorer[data-ce-swing-build="swing-cleanup-1"] .vl-mark-key { opacity: .92; }
.coefficient-explorer[data-ce-swing-build="swing-cleanup-1"] .vl-pivot-card { border-top-width: 1px; }
.coefficient-explorer[data-ce-swing-build="swing-cleanup-1"] .vl-pivot-card[data-swing-level="major"] { border-left: 3px solid #00a8cf; }
.coefficient-explorer[data-ce-swing-build="swing-cleanup-1"] .vl-pivot-card[data-swing-level="medium"] { border-left: 3px solid #7dd3fc; }
.coefficient-explorer[data-ce-swing-build="swing-cleanup-1"] .vl-pivot-card[data-swing-level="minor"] { border-left: 3px solid #cbd5e1; }
.coefficient-explorer[data-ce-swing-build="swing-cleanup-1"] .vl-swing-score { color: #0f7891; font-weight: 700; }


/* Scientific Transition 2: simplified horizons + analytic fitted extrema. */
.coefficient-explorer .ce-controls.ce-controls--simple {
  display: grid;
  grid-template-columns: minmax(250px, auto) minmax(190px, .8fr) minmax(220px, 1fr) minmax(180px, .8fr) auto auto;
  align-items: end;
  gap: 10px 12px;
}
.coefficient-explorer .ce-controls--simple .ce-tabs { grid-column: 1 / -1; width: fit-content; }
.coefficient-explorer .ce-study-mode {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #d6e1e9;
  border-radius: 9px;
  background: #fff;
}
.coefficient-explorer .ce-study-mode button {
  min-height: 30px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #63748a;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 780;
}
.coefficient-explorer .ce-study-mode button[aria-pressed="true"] {
  background: #e8f5ff;
  color: #0759b7;
  box-shadow: inset 0 0 0 1px #b9d9ff;
}
.coefficient-explorer .ce-inline-help { margin-left: 3px; color: #94a3b8; font-size: 8px; font-weight: 550; text-transform: none; letter-spacing: 0; }
.coefficient-explorer .ce-advanced-control {
  align-self: end;
  min-width: 150px;
  position: relative;
}
.coefficient-explorer .ce-advanced-control > summary {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 8px 10px;
  border: 1px solid #cad6e1;
  border-radius: 7px;
  background: #fff;
  color: #52627a;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  list-style: none;
}
.coefficient-explorer .ce-advanced-control > summary::-webkit-details-marker { display: none; }
.coefficient-explorer .ce-advanced-control > summary::after { margin-left: 7px; color: #94a3b8; content: "▾"; }
.coefficient-explorer .ce-advanced-control[open] > summary::after { content: "▴"; }
.coefficient-explorer .ce-advanced-control__body {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: min(370px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15,23,42,.14);
}
.coefficient-explorer .ce-advanced-control__body p { margin: 0; color: #64748b; font-size: 9px; line-height: 1.55; }

.coefficient-explorer .vl-controls {
  justify-content: flex-start;
  background: #fbfdff;
  border-color: #dce8ef;
}
.coefficient-explorer .vl-fit-min-key,
.coefficient-explorer .vl-fit-max-key {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
}
.coefficient-explorer .vl-fit-min-key { border: 2px solid #00a8cf; box-shadow: inset 0 0 0 2px #e6fbff, 0 0 7px rgba(0,212,255,.18); }
.coefficient-explorer .vl-fit-max-key { border: 2px solid #d946ef; box-shadow: inset 0 0 0 2px #fff0fe, 0 0 7px rgba(255,43,214,.16); }
.coefficient-explorer .vl-science-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 7px;
  margin: 12px 0;
}
.coefficient-explorer .vl-science-grid > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: rgba(255,255,255,.82);
}
.coefficient-explorer .vl-science-grid span,
.coefficient-explorer .vl-science-grid strong { display: block; }
.coefficient-explorer .vl-science-grid span { color: #7b8aa0; font-size: 8px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.coefficient-explorer .vl-science-grid strong { margin-top: 4px; color: #17324a; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.coefficient-explorer .vl-lens[data-tone="weakening"] { background: linear-gradient(155deg,#fffdf3,#fff 47%,#f7fbff); }
.coefficient-explorer .vl-lens[data-tone="weakening"] .vl-lens-top > span { color: #a16207; }
.coefficient-explorer .vl-lens[data-tone="strengthening"] { background: linear-gradient(155deg,#f2fff8,#fff 47%,#f7fbff); }
.coefficient-explorer .vl-lens[data-tone="strengthening"] .vl-lens-top > span { color: #047857; }
.coefficient-explorer .vl-movement { font-weight: 700; }
.coefficient-explorer .vl-pivot-card--minimum { border-left: 3px solid #00a8cf; }
.coefficient-explorer .vl-pivot-card--maximum { border-left: 3px solid #d946ef; }
.coefficient-explorer .vl-pivot-card--minimum strong { color: #0e7490; }
.coefficient-explorer .vl-pivot-card--maximum strong { color: #a21caf; }
.coefficient-explorer .vl-pivot-card[data-selected="true"] { box-shadow: 0 0 0 2px rgba(14,165,233,.09); }

@media (max-width: 1120px) {
  .coefficient-explorer .ce-controls.ce-controls--simple { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .coefficient-explorer .ce-controls--simple .ce-tabs { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .coefficient-explorer .ce-controls.ce-controls--simple { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .coefficient-explorer .ce-study-mode { grid-column: 1 / -1; width: 100%; }
  .coefficient-explorer .ce-study-mode button { flex: 1 1 0; }
  .coefficient-explorer .ce-advanced-control { grid-column: 1 / -1; }
  .coefficient-explorer .ce-advanced-control__body { position: static; width: 100%; margin-top: 7px; box-shadow: none; }
}
@media (max-width: 480px) {
  .coefficient-explorer .ce-controls.ce-controls--simple { grid-template-columns: 1fr; }
  .coefficient-explorer .ce-tabs,
  .coefficient-explorer .ce-study-mode,
  .coefficient-explorer .ce-advanced-control { grid-column: 1; }
  .coefficient-explorer .vl-science-grid { grid-template-columns: 1fr; }
}
.coefficient-explorer .ce-reading-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  margin: 12px 22px 0;
}
.coefficient-explorer .ce-reading-steps > div {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr);
  gap: 8px;
  align-items: start;
  padding: 10px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fbfdff;
}
.coefficient-explorer .ce-reading-steps b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef8fc;
  color: #087f9d;
  font-size: 10px;
}
.coefficient-explorer .ce-reading-steps strong,
.coefficient-explorer .ce-reading-steps small { display: block; }
.coefficient-explorer .ce-reading-steps strong { color: #334155; font-size: 10px; }
.coefficient-explorer .ce-reading-steps small { margin-top: 3px; color: #64748b; font-size: 9px; line-height: 1.45; }
@media (max-width: 700px) {
  .coefficient-explorer .ce-reading-steps { grid-template-columns: 1fr; margin-inline: 12px; }
}
.coefficient-explorer .ce-watch-disclosure { padding: 0; overflow: visible; }
.coefficient-explorer .ce-watch-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}
.coefficient-explorer .ce-watch-disclosure > summary::-webkit-details-marker { display: none; }
.coefficient-explorer .ce-watch-disclosure > summary span { min-width: 0; }
.coefficient-explorer .ce-watch-disclosure > summary strong,
.coefficient-explorer .ce-watch-disclosure > summary small { display: block; }
.coefficient-explorer .ce-watch-disclosure > summary strong { color: #243851; font-size: 13px; }
.coefficient-explorer .ce-watch-disclosure > summary small { margin-top: 4px; color: #64748b; font-size: 9px; line-height: 1.4; }
.coefficient-explorer .ce-watch-disclosure > summary em { flex: none; color: #087f9d; font-size: 9px; font-style: normal; font-weight: 750; }
.coefficient-explorer .ce-watch-disclosure[open] > summary { border-bottom: 1px solid #e8eef4; }
.coefficient-explorer .ce-watch-disclosure__body { padding: 15px 16px 16px; }

/* V8 scientific-transition strategy research. Additive to Scientific Transition 2. */
.coefficient-explorer { --ce-research-build: "transition-watch-v93"; }
.coefficient-explorer .sr-lab {
  position: relative;
  overflow: hidden;
  border-top: 3px solid #00b8d9;
  background:
    radial-gradient(circle at 0 0, rgba(0,212,255,.055), transparent 18rem),
    radial-gradient(circle at 100% 0, rgba(255,43,214,.045), transparent 20rem),
    #fff;
}
.coefficient-explorer .sr-heading,
.coefficient-explorer .sr-section__heading,
.coefficient-explorer .sr-result-card__heading,
.coefficient-explorer .sr-lead-row__head,
.coefficient-explorer .sr-wf-stage__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.coefficient-explorer .sr-heading { margin-bottom: 14px; }
.coefficient-explorer .sr-heading > div,
.coefficient-explorer .sr-section__heading > div { min-width: 0; }
.coefficient-explorer .sr-heading h3 { font-size: 15px; }
.coefficient-explorer .sr-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px,1fr));
  gap: 10px;
  padding: 13px;
  border: 1px solid #dce7ee;
  border-radius: 12px;
  background: rgba(248,252,255,.9);
}
.coefficient-explorer .sr-controls label { font-size: 9px; }
.coefficient-explorer .sr-mode-note,
.coefficient-explorer .sr-status,
.coefficient-explorer .sr-warning {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.55;
}
.coefficient-explorer .sr-status {
  min-height: 22px;
  padding: 8px 10px;
  border-left: 3px solid #00b8d9;
  background: #f2fbfe;
  color: #35556b;
  font-weight: 700;
}
.coefficient-explorer .sr-lab[aria-busy="true"] .sr-status {
  border-left-color: #7c3aed;
  background: #faf7ff;
}
.coefficient-explorer .sr-section {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #e7edf2;
}
.coefficient-explorer .sr-section__heading { align-items: baseline; margin-bottom: 10px; }
.coefficient-explorer .sr-section__heading p { margin: 4px 0 0; color: #64748b; font-size: 9px; line-height: 1.45; }
.coefficient-explorer .sr-section__heading > span { flex: none; color: #7b8aa0; font-size: 9px; font-weight: 750; text-align: right; }
.coefficient-explorer .sr-results {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.coefficient-explorer .sr-result-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe4ee;
  border-top: 3px solid #94a3b8;
  border-radius: 12px;
  background: #fff;
}
.coefficient-explorer .sr-result-card--early_weakening { border-top-color: #facc15; background: linear-gradient(145deg,#fffef5,#fff); }
.coefficient-explorer .sr-result-card--fitted_turn { border-top-color: #00b8d9; background: linear-gradient(145deg,#f3fcff,#fff); }
.coefficient-explorer .sr-result-card--confirmed_flip { border-top-color: #7c3aed; background: linear-gradient(145deg,#faf7ff,#fff); }
.coefficient-explorer .sr-result-card__heading strong,
.coefficient-explorer .sr-result-card__heading small,
.coefficient-explorer .sr-wf-stage__heading strong,
.coefficient-explorer .sr-wf-stage__heading small { display: block; }
.coefficient-explorer .sr-result-card__heading strong,
.coefficient-explorer .sr-wf-stage__heading strong { color: #263548; font-size: 11px; }
.coefficient-explorer .sr-result-card__heading small,
.coefficient-explorer .sr-wf-stage__heading small { color: #7b8aa0; font-size: 8px; text-align: right; }
.coefficient-explorer .sr-result-card__metrics,
.coefficient-explorer .sr-preflip-summary,
.coefficient-explorer .sr-wf-metrics {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 5px;
  margin-top: 10px;
}
.coefficient-explorer .sr-wf-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.coefficient-explorer .sr-metric {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: rgba(248,250,252,.8);
}
.coefficient-explorer .sr-metric span,
.coefficient-explorer .sr-metric strong { display: block; }
.coefficient-explorer .sr-metric span { color: #8794a5; font-size: 7px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.coefficient-explorer .sr-metric strong { margin-top: 4px; color: #243851; font-size: 11px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.coefficient-explorer .sr-lead-examples { display: grid; gap: 7px; margin-top: 10px; }
.coefficient-explorer .sr-lead-row {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e3e9ef;
  border-radius: 10px;
  background: #fff;
}
.coefficient-explorer .sr-lead-row--flip { border-left: 3px solid #00b8d9; }
.coefficient-explorer .sr-lead-row--false_start { border-left: 3px solid #f59e0b; }
.coefficient-explorer .sr-lead-row--incomplete { border-left: 3px solid #94a3b8; opacity: .8; }
.coefficient-explorer .sr-lead-row__head strong { color: #334155; font-size: 10px; }
.coefficient-explorer .sr-lead-row__head small,
.coefficient-explorer .sr-lead-row > small { color: #7b8aa0; font-size: 8px; }
.coefficient-explorer .sr-lead-track {
  position: relative;
  height: 30px;
  margin: 7px 0 4px;
  border-radius: 8px;
  background: linear-gradient(90deg,rgba(250,204,21,.11),rgba(0,184,217,.07) 58%,rgba(124,58,237,.08));
}
.coefficient-explorer .sr-lead-track::before {
  position: absolute;
  top: 14px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(90deg,#facc15,#00b8d9,#7c3aed);
  content: "";
  opacity: .55;
}
.coefficient-explorer .sr-lead-marker {
  position: absolute;
  z-index: 1;
  top: 6px;
  min-width: 42px;
  padding: 3px 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #172033;
  font-size: 7px;
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(15,23,42,.08),0 4px 9px rgba(15,23,42,.08);
}
.coefficient-explorer .sr-lead-marker--early { left: 8%; background: #fde047; }
.coefficient-explorer .sr-lead-marker--turn { left: 55%; background: #67e8f9; }
.coefficient-explorer .sr-lead-marker--flip-long { left: 92%; background: #86efac; }
.coefficient-explorer .sr-lead-marker--flip-short { left: 92%; background: #fda4af; }
.coefficient-explorer .sr-walk-forward { display: grid; gap: 11px; }
.coefficient-explorer .sr-wf-stage {
  min-width: 0;
  padding: 11px;
  border: 1px solid #e1e8ef;
  border-radius: 11px;
  background: #fbfdff;
}
.coefficient-explorer .sr-wf-stage__heading { align-items: baseline; }
.coefficient-explorer .sr-fold-table { margin-top: 9px; min-width: 850px; }
.coefficient-explorer .sr-fold-table td { font-size: 8.5px; }
.coefficient-explorer .sr-warning {
  padding: 9px 10px;
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  color: #805b13;
}
@media (max-width: 1050px) {
  .coefficient-explorer .sr-controls { grid-template-columns: repeat(3,minmax(120px,1fr)); }
  .coefficient-explorer .sr-results { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .coefficient-explorer .sr-heading,
  .coefficient-explorer .sr-section__heading { align-items: stretch; flex-direction: column; }
  .coefficient-explorer .sr-heading .ce-button { width: 100%; }
  .coefficient-explorer .sr-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .coefficient-explorer .sr-result-card__metrics,
  .coefficient-explorer .sr-preflip-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .coefficient-explorer .sr-wf-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .coefficient-explorer .sr-section__heading > span { text-align: left; }
}
@media (max-width: 430px) {
  .coefficient-explorer .sr-controls { grid-template-columns: 1fr; }
}
/* V8 pre-flip summary adds scientific-decade weakening as a sixth headline metric. */
.coefficient-explorer .sr-preflip-summary { grid-template-columns: repeat(6,minmax(0,1fr)); }
@media (max-width: 1050px) {
  .coefficient-explorer .sr-preflip-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .coefficient-explorer .sr-preflip-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}


/* Adaptive-regime research V9. Research-only; the existing Adaptive Bands section is untouched. */
.coefficient-explorer .sr-qualification-summary,
.coefficient-explorer .sr-adaptive-current { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 10px 0 12px; }
.coefficient-explorer .sr-adaptive-current { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.coefficient-explorer .sr-qualification-table td,
.coefficient-explorer .sr-adaptive-table td { white-space: nowrap; }
.coefficient-explorer .sr-adaptive-groups { display: grid; gap: 14px; }
.coefficient-explorer .sr-adaptive-stage { padding: 12px; border: 1px solid #e4ebf3; border-radius: 10px; background: #fbfdff; }
.coefficient-explorer .sr-adaptive-table-wrap { margin-top: 10px; }
.coefficient-explorer .sr-section--qualification,
.coefficient-explorer .sr-section--adaptive { border-top: 1px solid #e8eef4; padding-top: 16px; }
@media (max-width: 900px) {
  .coefficient-explorer .sr-qualification-summary,
  .coefficient-explorer .sr-adaptive-current { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.coefficient-explorer .sr-state-exits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.coefficient-explorer .sr-exit-card { padding: 12px; border: 1px solid #e4ebf3; border-radius: 10px; background: #fff; }
.coefficient-explorer .sr-exit-card > strong { display: block; margin-bottom: 8px; font-size: 11px; color: #243b53; }
@media (max-width: 720px) { .coefficient-explorer .sr-state-exits { grid-template-columns: 1fr; } }


/* Decision Lens V9.2: evidence-first transition state + easy alert pack. */
.coefficient-explorer .sr-heading__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.coefficient-explorer .sr-research-snapshot {
  display: grid;
  grid-template-columns: .8fr .7fr 1.5fr;
  gap: 9px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #d7e7ef;
  border-radius: 12px;
  background: linear-gradient(145deg,#f6fbfe,#fff);
}
.coefficient-explorer .sr-research-snapshot > div { min-width: 0; padding: 10px; border: 1px solid #e3edf3; border-radius: 9px; background: rgba(255,255,255,.86); }
.coefficient-explorer .sr-research-snapshot span,
.coefficient-explorer .sr-research-snapshot strong,
.coefficient-explorer .sr-research-snapshot small { display: block; }
.coefficient-explorer .sr-research-snapshot span { color: #738397; font-size: 9px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.coefficient-explorer .sr-research-snapshot strong { margin-top: 5px; color: #153d56; font-size: 15px; line-height: 1.25; }
.coefficient-explorer .sr-research-snapshot small { margin-top: 5px; color: #5f7187; font-size: 11px; line-height: 1.55; }
.coefficient-explorer .sr-research-snapshot > p { grid-column: 1 / -1; margin: 0; color: #66788e; font-size: 10px; line-height: 1.55; }

.coefficient-explorer .sr-decision {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #cfe2ec;
  border-radius: 13px;
  background: linear-gradient(155deg,#f7fcff,#fff 58%,#fbf8ff);
  box-shadow: 0 10px 28px rgba(15,23,42,.045);
}
.coefficient-explorer .sr-decision-controls { display: grid; grid-template-columns: minmax(220px,1.2fr) minmax(180px,.8fr) minmax(230px,1fr) auto; gap: 9px; align-items: end; margin: 10px 0 12px; }
.coefficient-explorer .sr-decision-state { display: grid; grid-template-columns: 1.25fr repeat(3,minmax(0,1fr)); gap: 8px; padding: 9px; border: 1px solid #dce8ef; border-radius: 11px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.coefficient-explorer .sr-decision-state[aria-busy="true"] { opacity: .72; }
.coefficient-explorer .sr-decision-state[data-state="early_warning"] { border-color: #eab308; box-shadow: inset 4px 0 0 #eab308; }
.coefficient-explorer .sr-decision-state[data-state="early_reversal"] { border-color: #0891b2; box-shadow: inset 4px 0 0 #0891b2; }
.coefficient-explorer .sr-decision-state[data-state="aligned_confirmation"] { border-color: #7c3aed; box-shadow: inset 4px 0 0 #7c3aed; }
.coefficient-explorer .sr-decision-state[data-state="confirmed_transition"],
.coefficient-explorer .sr-decision-state[data-state="confirmed_without_warning"] { border-color: #2563eb; box-shadow: inset 4px 0 0 #2563eb; }
.coefficient-explorer .sr-decision-state > div { min-width: 0; padding: 9px 10px; border-radius: 8px; background: #f8fafc; }
.coefficient-explorer .sr-decision-state > div > span,
.coefficient-explorer .sr-decision-state > div > strong,
.coefficient-explorer .sr-decision-state > div > small { display: block; }
.coefficient-explorer .sr-decision-state > div > span { color: #7c8a9d; font-size: 9px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.coefficient-explorer .sr-decision-state > div > strong { margin-top: 5px; color: #17324d; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.coefficient-explorer .sr-decision-state > div > small { margin-top: 4px; color: #67788d; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.coefficient-explorer .sr-decision-state__lead > strong { font-size: 16px !important; letter-spacing: -.02em; }

.coefficient-explorer .sr-decision-evidence { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e3ebf2; }
.coefficient-explorer .sr-evidence-horizons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.coefficient-explorer .sr-evidence-card { min-width: 0; padding: 11px; border: 1px solid #dfe8f0; border-radius: 10px; background: #fff; }
.coefficient-explorer .sr-evidence-card > span { display: block; color: #74869b; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.coefficient-explorer .sr-evidence-card > strong { display: block; margin: 5px 0 8px; color: #17324d; font-size: 18px; font-variant-numeric: tabular-nums; }
.coefficient-explorer .sr-evidence-card__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.coefficient-explorer .sr-decision-checklist { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 9px; }
.coefficient-explorer .sr-decision-checklist > .ce-note { grid-column: 1 / -1; margin: 3px 0 0; }
.coefficient-explorer .sr-check { display: grid; grid-template-columns: 22px minmax(0,1fr); grid-template-areas: "icon label" "icon detail"; gap: 1px 6px; align-items: center; min-width: 0; padding: 8px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.coefficient-explorer .sr-check b { grid-area: icon; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #eef2f7; color: #64748b; font-size: 10px; }
.coefficient-explorer .sr-check--yes b { background: #e0f2fe; color: #0369a1; }
.coefficient-explorer .sr-check span { grid-area: label; color: #334155; font-size: 10px; font-weight: 760; }
.coefficient-explorer .sr-check small { grid-area: detail; color: #7b8aa0; font-size: 9px; overflow-wrap: anywhere; }

.coefficient-explorer .sr-alert-pack { display: grid; grid-template-columns: minmax(260px,1fr) auto auto auto; align-items: center; gap: 10px; margin-top: 12px; padding: 11px; border: 1px solid #dce7ef; border-radius: 10px; background: #fbfdff; }
.coefficient-explorer .sr-alert-pack > div strong,
.coefficient-explorer .sr-alert-pack > div small { display: block; }
.coefficient-explorer .sr-alert-pack > div strong { color: #243851; font-size: 12px; }
.coefficient-explorer .sr-alert-pack > div small { margin-top: 4px; color: #65758b; font-size: 10px; line-height: 1.5; }
.coefficient-explorer .sr-alert-pack > small { grid-column: 1 / -1; color: #66788e; font-size: 10px; }
.coefficient-explorer .sr-switch { display: inline-flex; grid-auto-flow: column; align-items: center; gap: 7px; min-width: max-content; cursor: pointer; }
.coefficient-explorer .sr-switch input { position: absolute; opacity: 0; pointer-events: none; }
.coefficient-explorer .sr-switch > span { position: relative; width: 36px; height: 20px; border-radius: 999px; background: #cbd5e1; transition: background .15s ease; }
.coefficient-explorer .sr-switch > span::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,.2); content: ""; transition: transform .15s ease; }
.coefficient-explorer .sr-switch input:checked + span { background: #0284c7; }
.coefficient-explorer .sr-switch input:checked + span::after { transform: translateX(16px); }
.coefficient-explorer .sr-switch input:focus-visible + span { outline: 2px solid #0284c7; outline-offset: 3px; }
.coefficient-explorer .sr-switch b { color: #334155; font-size: 10px; white-space: nowrap; }

@media (max-width: 1000px) {
  .coefficient-explorer .sr-research-snapshot { grid-template-columns: 1fr 1fr; }
  .coefficient-explorer .sr-research-snapshot > div:last-of-type { grid-column: 1 / -1; }
  .coefficient-explorer .sr-decision-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .coefficient-explorer .sr-decision-state { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .coefficient-explorer .sr-alert-pack { grid-template-columns: 1fr 1fr; }
  .coefficient-explorer .sr-alert-pack > div { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .coefficient-explorer .sr-heading__actions { width: 100%; }
  .coefficient-explorer .sr-heading__actions .ce-button { flex: 1; }
  .coefficient-explorer .sr-research-snapshot,
  .coefficient-explorer .sr-decision-controls,
  .coefficient-explorer .sr-decision-state,
  .coefficient-explorer .sr-evidence-horizons,
  .coefficient-explorer .sr-decision-checklist,
  .coefficient-explorer .sr-alert-pack { grid-template-columns: 1fr; }
  .coefficient-explorer .sr-research-snapshot > div:last-of-type,
  .coefficient-explorer .sr-alert-pack > div { grid-column: auto; }
  .coefficient-explorer .sr-decision { padding: 11px; }
}

.coefficient-explorer .ce-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .coefficient-explorer .ce-header-actions { width: 100%; justify-content: stretch; } .coefficient-explorer .ce-header-actions .ce-button { flex: 1; } }


/* Transition Watch V9.3 — Apple-like state → evidence → action hierarchy. */
.coefficient-explorer[data-ce-research-build="transition-watch-v93"] {
  --tw-stable: #94a3b8;
  --tw-weakening: #f59e0b;
  --tw-building: #eab308;
  --tw-reversal: #00b8d9;
  --tw-confirmed: #7c3aed;
  --tw-positive: #00a86b;
  --tw-negative: #e11d48;
}
.coefficient-explorer .tw-state-key {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding: 0 22px 14px;
  background: #fff;
}
.coefficient-explorer .tw-state-key__item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  grid-template-areas: "dot label" "dot detail";
  gap: 1px 7px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e8edf2;
  background: #fbfcfd;
}
.coefficient-explorer .tw-state-key__item:first-child { border-radius: 9px 0 0 9px; }
.coefficient-explorer .tw-state-key__item:last-child { border-radius: 0 9px 9px 0; }
.coefficient-explorer .tw-state-key__item i { grid-area: dot; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--tw-stable); box-shadow: 0 0 0 3px rgba(148,163,184,.10); }
.coefficient-explorer .tw-state-key__item b { grid-area: label; color: #334155; font-size: 9px; font-weight: 820; }
.coefficient-explorer .tw-state-key__item small { grid-area: detail; overflow: hidden; color: #8a98a9; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.coefficient-explorer .tw-state-key__item--weakening i { background: var(--tw-weakening); }
.coefficient-explorer .tw-state-key__item--building i { background: var(--tw-building); }
.coefficient-explorer .tw-state-key__item--reversal i { background: var(--tw-reversal); box-shadow: 0 0 0 3px rgba(0,184,217,.10); }
.coefficient-explorer .tw-state-key__item--confirmed i { background: var(--tw-confirmed); box-shadow: 0 0 0 3px rgba(124,58,237,.10); }

.coefficient-explorer .tw-watch {
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
  border-color: #d9e3ea;
  border-top: 0;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15,23,42,.045);
}
.coefficient-explorer .tw-watch__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 15px;
  border-bottom: 1px solid #edf1f5;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}
.coefficient-explorer .tw-watch__hero > div { min-width: 0; }
.coefficient-explorer .tw-watch__hero h3 { margin: 0; color: #0f172a; font-size: 20px; font-weight: 760; letter-spacing: -.025em; }
.coefficient-explorer .tw-watch__hero p:not(.ce-kicker) { max-width: 820px; margin: 7px 0 0; color: #64748b; font-size: 11px; line-height: 1.6; }
.coefficient-explorer .tw-watch__hero p strong { color: #334155; }
.coefficient-explorer .tw-watch__research-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f5f9ff;
  color: #315b8a;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.coefficient-explorer .tw-decision { margin: 0; padding: 18px 20px 20px; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.coefficient-explorer .tw-section-heading { margin-bottom: 11px; }
.coefficient-explorer .tw-section-heading h3 { color: #172033; font-size: 13px; }
.coefficient-explorer .tw-decision-controls { grid-template-columns: minmax(250px, 1.3fr) minmax(180px,.7fr) auto auto; margin: 0 0 12px; padding: 10px; border-radius: 11px; background: #f8fafc; }
.coefficient-explorer .tw-auto-switch { align-self: center; padding: 0 4px; }

.coefficient-explorer .tw-current-state { gap: 7px; padding: 7px; border-radius: 13px; }
.coefficient-explorer .tw-current-state > div { position: relative; overflow: hidden; border: 1px solid #e8edf2; background: #fff; }
.coefficient-explorer .tw-current-state > div::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--tw-stable); content: ""; }
.coefficient-explorer .tw-current-state__lead { background: linear-gradient(145deg,#fbfdff,#fff) !important; }
.coefficient-explorer .tw-step--warning::before { background: var(--tw-building) !important; }
.coefficient-explorer .tw-step--confirm::before { background: var(--tw-confirmed) !important; }
.coefficient-explorer .tw-step--context::before { background: var(--tw-reversal) !important; }
.coefficient-explorer .sr-decision-state[data-state="early_warning"] { border-color: #f3d27b; box-shadow: inset 4px 0 0 var(--tw-building); background: #fffdf5; }
.coefficient-explorer .sr-decision-state[data-state="early_reversal"] { border-color: #8dd8e8; box-shadow: inset 4px 0 0 var(--tw-reversal); background: #f5fdff; }
.coefficient-explorer .sr-decision-state[data-state="aligned_confirmation"] { border-color: #c4b5fd; box-shadow: inset 4px 0 0 var(--tw-confirmed); background: #fbf9ff; }
.coefficient-explorer .sr-decision-state[data-state="confirmed_transition"],
.coefficient-explorer .sr-decision-state[data-state="confirmed_without_warning"] { border-color: #93c5fd; box-shadow: inset 4px 0 0 #2563eb; background: #f7fbff; }
.coefficient-explorer .sr-decision-state[data-state="monitoring"] { border-color: #dce3e9; box-shadow: inset 4px 0 0 var(--tw-stable); background: #fbfcfd; }

.coefficient-explorer .tw-evidence { margin-top: 14px; padding: 14px; border: 1px solid #e5ebf1; border-radius: 13px; background: #fbfcfd; }
.coefficient-explorer .sr-evidence-card { position: relative; overflow: hidden; padding-top: 13px; transition: transform 120ms ease, box-shadow 120ms ease; }
.coefficient-explorer .sr-evidence-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--tw-stable); content: ""; }
.coefficient-explorer .sr-evidence-card--positive::before { background: var(--tw-positive); }
.coefficient-explorer .sr-evidence-card--negative::before { background: var(--tw-negative); }
.coefficient-explorer .sr-evidence-card--positive > strong { color: #047857; }
.coefficient-explorer .sr-evidence-card--negative > strong { color: #be123c; }
.coefficient-explorer .sr-evidence-comparison { display: block; margin-top: 8px; padding-top: 7px; border-top: 1px solid #eef2f6; color: #7c8a9d; font-size: 8px; line-height: 1.4; }
.coefficient-explorer .tw-evidence-note { margin-bottom: 7px; }
.coefficient-explorer .tw-support-heading { margin: 11px 0 6px; color: #64748b; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.coefficient-explorer .sr-check--yes { border-color: #cfe8dc; background: #f7fcf9; }
.coefficient-explorer .sr-check--yes b { background: #e0f7e9; color: #047857; }
.coefficient-explorer .sr-check--no { border-color: #e5e9ee; background: #fff; }

.coefficient-explorer .tw-alerts { margin-top: 14px; padding: 13px 14px; border-color: #dce7ef; border-radius: 12px; background: linear-gradient(145deg,#fbfdff,#fff); }
.coefficient-explorer .tw-alerts > div strong { font-size: 13px; }
.coefficient-explorer .tw-alert-details { grid-column: 1 / -1; margin-top: 2px; padding-top: 8px; border-top: 1px solid #eef2f6; }
.coefficient-explorer .tw-alert-details summary { width: fit-content; color: #64748b; cursor: pointer; font-size: 9px; font-weight: 700; }
.coefficient-explorer .tw-alert-details p { margin: 7px 0 0; color: #718096; font-size: 9px; line-height: 1.55; }

.coefficient-explorer .tw-why,
.coefficient-explorer .tw-research-details,
.coefficient-explorer .tw-past-transitions { margin: 0; padding: 0; border: 0; border-top: 1px solid #edf1f5; border-radius: 0; background: #fff; }
.coefficient-explorer .tw-why > summary,
.coefficient-explorer .tw-research-details > summary,
.coefficient-explorer .tw-past-transitions > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 13px 20px;
  cursor: pointer;
  list-style: none;
  background: #fff;
}
.coefficient-explorer .tw-why > summary::-webkit-details-marker,
.coefficient-explorer .tw-research-details > summary::-webkit-details-marker,
.coefficient-explorer .tw-past-transitions > summary::-webkit-details-marker { display: none; }
.coefficient-explorer .tw-why > summary:hover,
.coefficient-explorer .tw-research-details > summary:hover,
.coefficient-explorer .tw-past-transitions > summary:hover { background: #fbfcfd; }
.coefficient-explorer .tw-why > summary span,
.coefficient-explorer .tw-research-details > summary span,
.coefficient-explorer .tw-past-transitions > summary span { min-width: 0; }
.coefficient-explorer .tw-why > summary strong,
.coefficient-explorer .tw-why > summary small,
.coefficient-explorer .tw-research-details > summary strong,
.coefficient-explorer .tw-research-details > summary small,
.coefficient-explorer .tw-past-transitions > summary strong,
.coefficient-explorer .tw-past-transitions > summary small { display: block; }
.coefficient-explorer .tw-why > summary strong,
.coefficient-explorer .tw-research-details > summary strong,
.coefficient-explorer .tw-past-transitions > summary strong { color: #334155; font-size: 11px; }
.coefficient-explorer .tw-why > summary small,
.coefficient-explorer .tw-research-details > summary small,
.coefficient-explorer .tw-past-transitions > summary small { margin-top: 3px; color: #8a98a9; font-size: 9px; }
.coefficient-explorer .tw-why > summary em,
.coefficient-explorer .tw-research-details > summary em,
.coefficient-explorer .tw-past-transitions > summary em { flex: 0 0 auto; color: #0e7490; font-size: 9px; font-style: normal; font-weight: 750; }
.coefficient-explorer .tw-why[open] > summary,
.coefficient-explorer .tw-research-details[open] > summary,
.coefficient-explorer .tw-past-transitions[open] > summary { border-bottom: 1px solid #edf1f5; }
.coefficient-explorer .tw-why__body,
.coefficient-explorer .tw-research-details__body,
.coefficient-explorer .tw-past-transitions__body { padding: 15px 20px 18px; }
.coefficient-explorer .tw-research-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; padding: 12px; border: 1px solid #dce8ef; border-radius: 11px; background: #f8fbfd; }
.coefficient-explorer .tw-research-actions > div:first-child { min-width: 0; }
.coefficient-explorer .tw-research-actions strong,
.coefficient-explorer .tw-research-actions small { display: block; }
.coefficient-explorer .tw-research-actions strong { color: #334155; font-size: 11px; }
.coefficient-explorer .tw-research-actions small { margin-top: 4px; color: #718096; font-size: 9px; line-height: 1.5; }

/* Outside the primary Transition Watch card, raw event studies stay quiet by default. */
.coefficient-explorer > .tw-past-transitions { margin: 0 22px 16px; border: 1px solid var(--ce-line); border-radius: 11px; overflow: hidden; }
.coefficient-explorer > .tw-past-transitions .tw-past-transitions__body { padding: 15px 16px 16px; }

@media (max-width: 1000px) {
  .coefficient-explorer .tw-state-key { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .coefficient-explorer .tw-state-key__item,
  .coefficient-explorer .tw-state-key__item:first-child,
  .coefficient-explorer .tw-state-key__item:last-child { border-radius: 8px; }
  .coefficient-explorer .tw-watch__hero { flex-direction: column; }
  .coefficient-explorer .tw-decision-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .coefficient-explorer .tw-state-key { grid-template-columns: 1fr 1fr; padding-inline: 12px; }
  .coefficient-explorer .tw-watch { margin-right: 12px; margin-left: 12px; }
  .coefficient-explorer .tw-watch__hero,
  .coefficient-explorer .tw-decision,
  .coefficient-explorer .tw-why > summary,
  .coefficient-explorer .tw-research-details > summary,
  .coefficient-explorer .tw-why__body,
  .coefficient-explorer .tw-research-details__body { padding-right: 13px; padding-left: 13px; }
  .coefficient-explorer .tw-decision-controls { grid-template-columns: 1fr; }
  .coefficient-explorer .tw-research-actions { align-items: stretch; flex-direction: column; }
  .coefficient-explorer .tw-research-actions .sr-heading__actions { width: 100%; }
  .coefficient-explorer .tw-research-actions .ce-button { flex: 1; }
}
@media (max-width: 430px) {
  .coefficient-explorer .tw-state-key { grid-template-columns: 1fr; }
  .coefficient-explorer .tw-watch__research-badge { white-space: normal; }
}
