:root[data-appearance-style] body{background:var(--palette-canvas);color:var(--palette-text)}
:root[data-appearance-style=emerald] .ps-appearance-header{background:var(--ps-page-header)!important;border:1px solid var(--palette-border)!important}
:root[data-appearance-style=emerald] .overview-card,:root[data-appearance-style=emerald] .overview-kpi-strip,:root[data-appearance-style=emerald] .overview-stats{background:var(--palette-surface);border-color:var(--palette-border)}
:root[data-appearance-style=emerald] .overview-result,:root[data-appearance-style=emerald] .ps-calculated-result{color:var(--ps-results)!important;font-variant-numeric:tabular-nums}
:root[data-appearance-style] .overview-band{fill:var(--ps-range-fill)}
:root[data-appearance-style] .overview-line{stroke:var(--chart-primary)}
:root[data-appearance-style] .overview-benchmark{stroke:var(--ps-alternative-line)}
:root[data-appearance-style=emerald] :is(.workspace-nav-link,.nav-item,.sidebar-nav-item):is(.active,.is-active),:root[data-appearance-style=emerald] :is(.workspace-sidebar,.sidebar) :is(button,a):is(.active,.is-active,[aria-current=page]),:root[data-appearance-style=emerald] .workspace-main :is(button[aria-pressed=true],[role=option][aria-selected=true]){background:var(--ps-selection)}
.ps-appearance-controls{min-width:0;max-width:100%}
.ps-scheme-icon{display:inline-block;width:17px;height:17px;flex-shrink:0;border-radius:50%;background:conic-gradient(#ae5377,#a3762f,#5b9142,#26938a,#6a77b5,#ae5377)}
.ps-appearance-expanded{padding:12px 8px!important;min-width:0;max-width:100%;box-sizing:border-box}
.ps-appearance-presets{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 13px}
.ps-appearance-presets button{font:inherit;font-size:11px;line-height:1.4;color:var(--palette-text);background:var(--field-bg);border:1px solid var(--palette-border);border-radius:6px;padding:7px 8px;min-height:32px}
.ps-appearance-presets button[aria-pressed=true]{background:var(--ps-selection);border-color:var(--palette-muted);font-weight:600}
.ps-hue-wheel{position:relative;width:min(168px,100%);aspect-ratio:1;margin:12px auto;touch-action:none;border-radius:50%;background:conic-gradient(oklch(60% .13 0),oklch(60% .13 30),oklch(60% .13 60),oklch(60% .13 90),oklch(60% .13 120),oklch(60% .13 150),oklch(60% .13 180),oklch(60% .13 210),oklch(60% .13 240),oklch(60% .13 270),oklch(60% .13 300),oklch(60% .13 330),oklch(60% .13 360))}
.ps-hue-wheel[aria-disabled=true]{filter:grayscale(1);opacity:.5}
.ps-hue-wheel-center{position:absolute;inset:24%;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--palette-muted);background:var(--palette-surface);font-size:11px;pointer-events:none}
.ps-hue-dot{position:absolute;transform:translate(-50%,-50%);width:17px;height:17px;box-sizing:border-box;border:3px solid #ffffff;border-radius:50%;box-shadow:0 0 0 1px #17251e;pointer-events:none}
.ps-appearance-note{font-size:11px!important;line-height:1.55!important;color:var(--palette-muted)!important;margin:12px 0!important}
.ps-appearance-controls button:focus-visible,.ps-appearance-controls select:focus-visible,.ps-hue-wheel:focus-visible{outline:2px solid var(--field-focus);outline-offset:3px}
@media(pointer:coarse){.ps-appearance-controls button,.ps-appearance-controls select{min-height:44px}.ps-appearance-controls select{font-size:16px}}

/* Match the chart treatment in the approved Clean Emerald preview. */
:root[data-appearance-style=emerald] .ps-chart-surface{background:var(--ps-plot-surface)!important}
:root[data-appearance-style=emerald] :is(.overview-band,.ps-chart-band){fill:var(--ps-range-fill);opacity:.6;fill-opacity:1}
:root[data-appearance-style=emerald] :is(.overview-line,.ps-chart-expected){stroke:var(--chart-primary);stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
:root[data-appearance-style=emerald] .ps-chart-bound{stroke:var(--chart-primary);stroke-width:1;opacity:.4}
:root[data-appearance-style=emerald] :is(.overview-benchmark,.ps-chart-benchmark){stroke:var(--ps-alternative-line);stroke-width:1.6;stroke-dasharray:3 4}
:root[data-appearance-style=emerald] .overview-card{background:var(--ps-plot-surface);border-radius:11px}

.overview-property-select > label{padding-inline-start:13px;position:relative;top:1px}
.overview-property-select > .property-menu-trigger{padding-inline-start:12px}
.property-menu-trigger{border:1px solid var(--field-border)!important}
.ps-appearance-header{margin-block-start:var(--ps-overview-top-offset,0px)}
[data-ps-overview-row]{position:relative;top:3px}
.ps-appearance-controls :is(.scheme-trigger,.theme-toggle){font-family:inherit;font-size:12px;line-height:1.4}
.ps-appearance-controls .theme-toggle{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:8px 12px;border:0;background:transparent;color:var(--palette-muted);font-weight:400;text-align:start}
.ps-appearance-controls .theme-toggle:hover{background:var(--ps-selection)}
.ps-appearance-controls .theme-switch-track{margin-inline-start:auto;flex-shrink:0}
.ps-dark-mode-icon{display:inline-grid;place-items:center;width:17px;flex:0 0 17px;font-size:17px;line-height:1}
.ps-overview-outcome{display:flex;align-items:center;flex-wrap:wrap;gap:5px 9px;margin:0 0 8px;color:var(--palette-muted);font-size:11px;line-height:1.45}
.ps-overview-change{padding:3px 7px;border-radius:5px;background:var(--palette-raised);color:var(--palette-text);font-weight:600;font-variant-numeric:tabular-nums}
.ps-overview-change.is-positive{background:var(--ps-selection);color:var(--ps-results)}
.ps-overview-change-pair{display:inline-flex;align-items:center;gap:5px}
.ps-overview-change-divider{width:1px;height:.85em;background:currentColor;opacity:.32}
.overview-trend .ps-overview-endpoint{fill:var(--ps-results);font-size:11px;font-weight:600}
.ps-overview-question{box-sizing:border-box;padding-inline:19px}
[data-ps-bound-legend]{display:none!important}
:root[data-appearance-style] .overview-card :is(.overview-trend,.ps-chart-surface){background:var(--palette-canvas)!important;border-radius:11px}

.ps-appearance-header :is(.ps-overview-brand-copy,.ps-overview-header-controls){align-self:center}

/* Consistent, theme-aware range edges; legends remain unchanged. */
:root .ps-chart-bound{fill:none!important;stroke:var(--chart-primary)!important;stroke-width:1.25!important;stroke-opacity:1!important;opacity:1!important;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}

.overview-trend text,.ps-chart-surface svg text{paint-order:stroke fill;stroke:var(--ps-fafafa);stroke-width:4px;stroke-linejoin:round;stroke-opacity:1}

/* Approved Growth beside value overview layout. */
.overview-card-grid .overview-card{gap:0}
.overview-card .ps-growth-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(115px,.95fr);align-items:center;gap:16px;margin:0 0 14px;min-height:60px}
.ps-growth-value{min-width:0;display:flex;flex-direction:column;gap:3px}
.ps-growth-value .overview-result{font-size:30px;line-height:1.1;letter-spacing:-.7px;overflow-wrap:anywhere}
.ps-growth-unit{color:var(--palette-muted,var(--ps-64748b));font-size:11px;line-height:1.5}
.ps-growth-details{min-width:0;border-left:1px solid var(--palette-border,var(--ps-dedfe3));padding-left:14px;font-size:11px;line-height:1.45;color:var(--palette-muted,var(--ps-64748b))}
.ps-growth-details .ps-overview-outcome{margin:0;display:flex;flex-direction:column-reverse;align-items:flex-start;gap:5px}
.ps-growth-details .ps-overview-change{font-size:13px;padding:5px 7px;max-width:100%;box-sizing:border-box}
.ps-growth-details .ps-overview-change-pair{flex-wrap:wrap;row-gap:3px}
.ps-growth-description{display:block;color:var(--ps-results,var(--chart-primary));font-size:12px;font-weight:600;margin-bottom:4px}
.overview-card>.overview-trend{display:block;width:100%;height:auto;aspect-ratio:550/240;margin:0 0 12px}
.overview-card>.ps-chart-surface{width:100%;margin:0 0 8px;padding-top:0!important;padding-bottom:0!important}
.overview-card>.ps-chart-surface svg{display:block;width:100%;height:auto!important;aspect-ratio:550/240}
.overview-card .overview-card-footer{padding-top:10px;margin-top:auto}
.overview-card .overview-return-legend{font-size:11px;margin:0 0 10px;flex-wrap:wrap}
@media(max-width:390px){.overview-card .ps-growth-summary{grid-template-columns:minmax(0,1fr) minmax(100px,.9fr);gap:9px}.ps-growth-details{padding-left:9px}.ps-growth-value .overview-result{font-size:26px}.ps-growth-details .ps-overview-change{font-size:11px;padding:4px 5px}}

/* Match approved Growth beside value reference. */
.overview-card-grid{gap:16px!important}
.overview-card-grid .overview-card{padding:18px 16px 10px!important;border-radius:12px;gap:0;min-height:0!important;display:flex;flex-direction:column}
.overview-card .overview-card-heading{margin:0 0 15px!important;min-height:0!important}
.overview-card .overview-card-heading h3{font-size:13px!important;line-height:1.3;margin:0!important;font-weight:600}
.overview-card .ps-growth-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:47px;margin:0 0 12px}
.ps-growth-value{gap:2px}.ps-growth-value .overview-result{font-size:30px;line-height:1.05;letter-spacing:-1px;white-space:nowrap}
.ps-growth-details{min-width:115px;max-width:150px;padding-left:12px;flex-shrink:0}
.ps-growth-details .ps-overview-outcome{gap:3px}.ps-growth-description{margin-bottom:0}
.ps-reference-chart{background:var(--palette-canvas,#f6f8f7);border-radius:9px;overflow:hidden;flex:1;min-height:175px}
.ps-reference-chart svg{display:block;width:100%;height:100%;min-height:175px;max-height:290px;aspect-ratio:324/175}
.ps-reference-chart text{font-size:11px;fill:var(--palette-muted,#607067);font-family:Arial,Helvetica,sans-serif}
.ps-ref-grid{stroke:var(--palette-border,#e2e8e4);stroke-dasharray:2 6}.ps-ref-band{fill:var(--chart-primary,#009660);fill-opacity:.12}
.ps-ref-bound{fill:none;stroke:var(--chart-primary,#009660);stroke-width:1.1;stroke-linejoin:round;stroke-linecap:round;opacity:1}
.ps-ref-line{fill:none;stroke:var(--chart-primary,#009660);stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
.ps-ref-benchmark{stroke:var(--palette-muted,#6c7178);stroke-width:1.2;stroke-dasharray:3 4}.ps-ref-guide{stroke:var(--chart-primary,#009660);stroke-dasharray:2 4}
.ps-ref-dot{fill:var(--chart-primary,#009660);stroke:var(--palette-canvas,#f6f8f7);stroke-width:.6}
.ps-reference-chart .ps-ref-label{fill:var(--ps-results,#076c46);font-weight:600;paint-order:stroke;stroke:var(--palette-canvas,#f6f8f7);stroke-width:2px}
.overview-card .overview-card-footer{border-top:0!important;margin-top:9px!important;padding-top:0!important;min-height:26px;display:flex;align-items:center;justify-content:flex-end}
.overview-card .overview-link{font-size:11px}
@media(max-width:390px){.ps-growth-details{min-width:0;max-width:125px;padding-left:8px}.ps-growth-value .overview-result{font-size:27px}.ps-growth-summary{gap:8px!important}}

/* Keep overview gains together in a consistent right-hand column. */
.overview-card .ps-growth-summary{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;column-gap:12px;min-height:52px}
.overview-card .ps-growth-details{width:max-content;min-width:150px;max-width:none;box-sizing:border-box;justify-self:end}
.overview-card .ps-growth-details .ps-overview-change,.overview-card .ps-growth-details .ps-overview-change-pair{white-space:nowrap;flex-wrap:nowrap!important}
.overview-card .ps-growth-description{max-width:150px}
@media(max-width:450px){.overview-card .ps-growth-summary{column-gap:8px}.overview-card .ps-growth-details{min-width:0;padding-left:8px}.overview-card .ps-growth-details .ps-overview-change{font-size:11px;padding:4px}.overview-card .ps-growth-value .overview-result{font-size:clamp(20px,6vw,27px)}}

.ps-reference-chart .ps-ref-guide{stroke-dasharray:none}

.ps-reference-chart .ps-ref-guide{stroke-dasharray:none!important;stroke-opacity:1}
