/* Scoped to reference targets; existing Inter and theme tokens are authoritative. */
.ps-panel{--ps-up:#287c70;--ps-down:#ac5866;--ps-mid:#74649a;font-family:var(--ui-font-body,Inter,system-ui,sans-serif);font-size:14px;line-height:1.5;min-width:0;border:1px solid var(--ui-line,#dde1e7);border-radius:12px;padding:16px;color:var(--ui-ink,#171b20);background:var(--ui-surface,#fff)}
:root[data-theme="dark"] .ps-panel,body[data-theme="dark"] .ps-panel{--ps-up:#76b8aa;--ps-down:#d7919b;--ps-mid:#b2a1d1}
@media(prefers-color-scheme:dark){.ps-panel{--ps-up:#76b8aa;--ps-down:#d7919b;--ps-mid:#b2a1d1}}
.ps-panel *{box-sizing:border-box}.ps-panel h3,.ps-panel p{margin:0}.ps-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;flex-wrap:wrap}.ps-panel .ps-header h3{font:600 14px/1.4 var(--ui-font-body,Inter,system-ui,sans-serif)}.ps-header>span,.ps-note,.ps-chart-labels{font-size:11px;color:var(--ui-muted,#666f7b)}
.ps-targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}.ps-target-card{padding:10px;background:var(--ui-soft,#f5f6f8);border:1px solid var(--ui-line,#dde1e7);border-radius:8px;min-width:0}.ps-target-card span,.ps-target-card small{display:block;font-size:11px;color:var(--ui-muted,#666f7b)}.ps-target-card strong{display:block;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.ps-chart-labels{display:flex;justify-content:space-between;gap:8px;margin:12px 0 4px}
.ps-panel .ps-chart{display:block;width:100%;height:auto;max-height:360px;fill:none;stroke:none;overflow:visible}.ps-chart path,.ps-chart line{vector-effect:non-scaling-stroke}.ps-grid{stroke:var(--ui-line,#dde1e7);stroke-width:1;stroke-dasharray:2 5}.ps-axis{fill:var(--ui-muted,#666f7b);stroke:none;font:11px var(--ui-font-body,Inter,system-ui,sans-serif)}.ps-future{fill:var(--ps-mid);fill-opacity:.025;stroke:none}.ps-band{fill:var(--ps-mid);fill-opacity:.09;stroke:none}.ps-observed{stroke:var(--ui-ink,#171b20);stroke-width:2;fill:none}.ps-path{fill:none;stroke-width:1.8;stroke-dasharray:5 4}.ps-upper{stroke:var(--ps-up)}.ps-central{stroke:var(--ps-mid)}.ps-lower{stroke:var(--ps-down)}.ps-origin{stroke:var(--ui-muted,#666f7b);stroke-width:1;stroke-dasharray:2 4}.ps-anchor{fill:var(--ps-mid);stroke:var(--ui-surface,#fff)}.ps-target{stroke:var(--ui-muted,#666f7b);stroke-width:1;stroke-opacity:.5;stroke-dasharray:2 6}
.ps-outcomes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0}.ps-outcome{min-width:0;border-inline-start:2px solid currentColor;padding-inline-start:8px}.ps-outcome.ps-upper{color:var(--ps-up)}.ps-outcome.ps-central{color:var(--ps-mid)}.ps-outcome.ps-lower{color:var(--ps-down)}.ps-outcome span{display:block;font-size:11px}.ps-outcome strong{display:block;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ps-method,.ps-more{border-top:1px solid var(--ui-line,#dde1e7);margin-top:10px;padding-top:4px}.ps-panel summary{font-size:12px;line-height:1.5;padding:8px 0;min-height:32px;cursor:pointer}.ps-method>p{font-size:12px;color:var(--ui-muted,#666f7b);margin:10px 0}.ps-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.ps-facts div{min-width:0}.ps-facts dt{font-size:11px;color:var(--ui-muted,#666f7b)}.ps-facts dd{font-size:12px;font-variant-numeric:tabular-nums;margin:2px 0;overflow-wrap:anywhere}.ps-table{max-width:100%;overflow-x:auto}.ps-table table{width:100%;border-collapse:collapse;font-size:11px}.ps-table th,.ps-table td{text-align:start;padding:7px 5px;border-bottom:1px solid var(--ui-line,#dde1e7)}.ps-table small{display:block;font-size:10px;color:var(--ui-muted,#666f7b)}
.ps-compact{padding:12px;background:var(--op-surface,var(--ui-surface,#fff))}.ps-compact .ps-target-card{padding:7px}.ps-compact .ps-target-card strong{font-size:13px}.ps-compact .ps-header h3{font-size:12px}.ps-controls{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px;font:12px var(--ui-font-body,Inter,system-ui,sans-serif)}.ps-controls select,.ps-controls button{font:13px var(--ui-font-body,Inter,system-ui,sans-serif);min-height:40px;padding:8px;border:1px solid var(--ui-line,#dde1e7);border-radius:8px;background:var(--ui-surface,#fff);color:var(--ui-ink,#171b20)}.ps-controls label{display:flex;align-items:center;gap:8px}#forecastPriceScenario{min-width:0;margin-bottom:16px}.ps-note{overflow-wrap:anywhere}
@media(max-width:600px){.ps-panel{padding:12px}.ps-target-card strong{font-size:14px}.ps-panel .ps-chart{max-height:none}.ps-facts{gap:8px}.ps-header>span{font-size:10px}}
.ps-timing{display:flex;align-items:center;gap:8px;justify-content:space-between;flex-wrap:wrap;margin:4px 0 10px;color:var(--ui-muted);font-size:11px;font-variant-numeric:tabular-nums}.ps-status{border:1px solid var(--ui-line);border-radius:6px;padding:3px 7px;color:var(--ui-ink)}
.ps-chart-wrap{min-width:0;touch-action:pan-y;border-radius:6px}.ps-chart-wrap:focus-visible{outline:2px solid var(--ps-mid);outline-offset:3px}.ps-chart [hidden]{display:none}.ps-entry-zone{fill:var(--ps-up);fill-opacity:.08;stroke:none}.ps-stop{stroke:var(--ps-down);stroke-width:1.3;stroke-dasharray:7 4}.ps-actual{stroke:var(--ui-ink);stroke-width:2.2;fill:none}.ps-actual-dot{fill:var(--ui-ink);stroke:var(--ui-surface);stroke-width:1.5}.ps-cursor line{stroke:var(--ui-muted);stroke-dasharray:2 3}.ps-cursor circle{fill:var(--ps-mid);stroke:var(--ui-surface)}
.ps-level-key{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.ps-level-key>span{border:1px solid var(--ui-line);background:var(--ui-soft);border-radius:5px;padding:4px 6px;font-size:10px;font-variant-numeric:tabular-nums}.ps-level-key strong{font-weight:500}.ps-level-key .ps-stop-key{border-color:var(--ps-down)}.ps-readout{min-height:32px;font-size:11px;color:var(--ui-muted);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ps-panel .ps-actual-dot{transition:cx .2s ease,cy .2s ease}@media(prefers-reduced-motion:reduce){.ps-panel .ps-actual-dot{transition:none}}
.ps-evidence-status{display:flex;gap:6px 12px;justify-content:space-between;flex-wrap:wrap;color:var(--ui-muted);font-size:11px;line-height:1.5}.ps-evidence-status>span:first-child{color:var(--ui-ink);font-weight:500}.ps-target-card .ps-odds{border-top:1px solid var(--ui-line);margin-top:7px;padding-top:6px;font-size:10px;line-height:1.4;color:var(--ui-ink)}.ps-odds b{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}.ps-probability-evidence{display:grid;gap:8px;margin:12px 0}.ps-probability-evidence>div{display:grid;gap:3px;padding:10px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-soft);font-size:11px;overflow-wrap:anywhere}.ps-probability-evidence strong{font-size:12px;font-weight:600}.ps-probability-evidence small{font-size:10px;color:var(--ui-muted)}
.ps-time-profile{padding:12px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-soft);min-width:0}.ps-time-profile h4{margin:0;font:600 12px/1.4 var(--ui-font-body,Inter,system-ui,sans-serif)}.ps-time-profile svg{display:block;width:100%;max-height:180px}.ps-time-profile line{stroke:var(--ui-line)}.ps-time-profile text{fill:var(--ui-muted);font:11px var(--ui-font-body,Inter,system-ui,sans-serif)}.ps-prob-line{fill:none;stroke-width:2;vector-effect:non-scaling-stroke}.ps-prob-0{stroke:var(--ps-up);color:var(--ps-up)}.ps-prob-1{stroke:var(--ps-mid);color:var(--ps-mid)}.ps-prob-2{stroke:var(--ps-down);color:var(--ps-down)}.ps-profile-key{display:flex;gap:12px;flex-wrap:wrap;font-size:11px}.ps-time-profile p{font-size:11px;line-height:1.5;color:var(--ui-muted);margin-top:8px;overflow-wrap:anywhere}
@media(max-width:380px){.ps-targets{grid-template-columns:repeat(2,minmax(0,1fr))}.ps-target-card:last-child:nth-child(odd){grid-column:1/-1}.ps-evidence-status{font-size:10px}.ps-outcome span{font-size:10px}}
.ps-time-profile .ps-prob-line:nth-of-type(n+4){stroke-dasharray:5 3}
.ps-plan-summary{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:10px;margin:10px 0;padding:10px;border:1px solid var(--ui-line);background:var(--ui-soft);border-radius:8px}.ps-plan-summary>div{min-width:0}.ps-plan-summary dt{font-size:11px;color:var(--ui-muted)}.ps-plan-summary dd{margin:3px 0 0;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.ps-context{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;font-size:11px;color:var(--ui-muted)}.ps-context strong{font-size:11px;font-weight:600;color:var(--ui-ink)}.ps-context small{font-size:10px;font-variant-numeric:tabular-nums}.ps-compact .ps-plan-summary{padding:8px}.ps-compact .ps-plan-summary dd{font-size:12px}
/* Direction is separate from frozen TP geometry; the median is the visual focus. */
.ps-direction-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0 6px;padding:10px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-soft)}.ps-direction-summary>div{min-width:0}.ps-direction-summary span,.ps-direction-summary small{display:block;font-size:11px;color:var(--ui-muted);overflow-wrap:anywhere}.ps-direction-summary strong{display:block;margin:3px 0;font-size:13px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}.ps-direction-summary small{font-size:10px;font-variant-numeric:tabular-nums}.ps-direction-summary .ps-bias-bullish{color:var(--ps-up)}.ps-direction-summary .ps-bias-bearish{color:var(--ps-down)}.ps-direction-note{font-size:11px;color:var(--ui-muted);line-height:1.5;margin-bottom:10px}.ps-panel .ps-direction-note{margin-bottom:10px}.ps-direction-note.ps-disagreement{padding-inline-start:8px;border-inline-start:2px solid var(--ps-down);color:var(--ui-ink)}
.ps-chart .ps-path.ps-central{stroke-width:2.5;stroke-dasharray:6 3;stroke-opacity:1}.ps-chart .ps-path.ps-upper,.ps-chart .ps-path.ps-lower{stroke-width:1.4;stroke-opacity:.65;stroke-dasharray:3 5}.ps-chart .ps-band{fill-opacity:.045}.ps-chart .ps-entry-zone{fill:var(--ps-mid)}.ps-chart .ps-stop{stroke-width:1.6}
.ps-outcome small{display:block;font-size:10px;color:var(--ui-muted);font-variant-numeric:tabular-nums}.ps-outcome.ps-central{background:var(--ui-soft);border-radius:0 5px 5px 0}.ps-outcome.ps-central strong{font-weight:700}.ps-outcome.ps-upper strong,.ps-outcome.ps-lower strong{color:var(--ui-ink)}.ps-compact .ps-direction-summary{padding:8px;gap:8px}
.ps-downside-watch{display:grid;gap:5px;padding:10px;margin:8px 0 12px;border:1px solid var(--ui-line);border-inline-start:3px solid var(--ps-down);border-radius:8px;background:var(--ui-soft);min-width:0;overflow-wrap:anywhere}.ps-downside-watch>div{display:flex;align-items:baseline;justify-content:space-between;gap:5px 12px;flex-wrap:wrap}.ps-downside-watch strong{font-size:12px;font-weight:600;color:var(--ui-ink)}.ps-downside-watch p{font-size:12px;color:var(--ui-ink);line-height:1.5}.ps-downside-watch small{font-size:10px;color:var(--ui-muted);line-height:1.5;font-variant-numeric:tabular-nums}
.ps-panel .ps-payoff-note{margin-top:8px}
.ps-trade-status,.ps-observed-alert{display:grid;gap:4px;min-width:0;padding:10px;margin:8px 0;border:1px solid var(--ui-line,#dde1e7);border-radius:8px;background:var(--ui-soft,#f5f6f8);font-family:var(--ui-font-body,Inter,system-ui,sans-serif);line-height:1.5;overflow-wrap:anywhere}.ps-trade-status strong,.ps-observed-alert strong{font-size:12px;font-weight:600;color:var(--ui-ink,#171b20)}.ps-trade-status span,.ps-observed-alert span{font-size:11px;color:var(--ui-ink,#171b20)}.ps-trade-status small,.ps-observed-alert small{font-size:10px;color:var(--ui-muted,#666f7b)}.ps-trade-status[data-trade-state^="READY_"]{border-inline-start:3px solid #508d79}.ps-trade-status[data-trade-state="NO_TRADE"],.ps-observed-stop{border-inline-start:3px solid #b06d7a}.ps-observed-tp{border-inline-start:3px solid #508d79}

/* Scoped modal direction display, no global typography change. */
.ps-modal-law{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 10px;min-width:0;font-family:var(--ui-font-body,Inter,system-ui,sans-serif)}
.ps-modal-law>div{min-width:0;padding:8px;border:1px solid var(--ui-line,#dde1e7);border-radius:7px;background:var(--ui-surface,#fff);color:var(--ui-muted,#666f7b)}
.ps-modal-law>div.is-leading{border-color:currentColor;background:var(--ui-soft,#f5f6f8)}
.ps-modal-law span{display:block;font-size:10px;line-height:1.4;overflow-wrap:anywhere;color:var(--ui-ink,#171b20)}
.ps-modal-law strong{display:block;font-size:13px;line-height:1.5;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ui-ink,#171b20)}
.ps-modal-law>.ps-modal-bullish{color:var(--ps-up)}.ps-modal-law>.ps-modal-bearish{color:var(--ps-down)}.ps-modal-law>.ps-modal-neutral{color:var(--ps-mid)}
.ps-modal-track{height:3px;margin-top:5px;border-radius:3px;background:var(--ui-line,#dde1e7);overflow:hidden}.ps-modal-track i{display:block;height:100%;background:currentColor;border-radius:3px}
.ps-modal-law>small{grid-column:1/-1;font-size:10px;line-height:1.5;color:var(--ui-muted,#666f7b);overflow-wrap:anywhere}
@media(max-width:380px){.ps-modal-law{gap:6px}.ps-modal-law>div{padding:6px}.ps-modal-law strong{font-size:12px}}
