/* Shared chart language for the two ARKASCALE widget themes. */
#dashboard-section[data-widget-theme]{--chart-open:#F0A028;--chart-won:#13B879;--chart-lost:#EF5263;--chart-grid:#DEE5EA;--chart-track:#E7EAF0;--chart-ink:var(--theme-ink,#173B5D);--chart-muted:var(--theme-muted,#69747D)}
#dashboard-section[data-widget-theme=brand] .dashboard-widget{--metric-good:#066F3D}
#dashboard-section[data-widget-theme=navy]{--chart-open:#FFB547;--chart-won:#2BDD91;--chart-lost:#FF7885;--chart-grid:#39566D;--chart-track:#29485F}
#dashboard-section[data-widget-theme] .dashboard-widget .outcome-main{--chart-open:inherit;--chart-won:inherit;--chart-lost:inherit;display:grid;grid-template-columns:minmax(150px,.9fr) minmax(160px,1fr);gap:20px;padding:16px 20px 24px;align-items:center}
#dashboard-section[data-widget-theme] .dashboard-widget{--chart-ink:var(--theme-ink);--chart-muted:var(--theme-muted);}
/* Bright marks and contrast-safe numeric labels have separate roles. */
#dashboard-section[data-widget-theme] .outcome-main{--chart-open:#F0A028!important;--chart-won:#13B879!important;--chart-lost:#EF5263!important}
#dashboard-section[data-widget-theme=navy] .outcome-main{--chart-open:#FFB547!important;--chart-won:#2BDD91!important;--chart-lost:#FF7885!important}
#dashboard-section[data-widget-theme] .outcome-rings{width:min(208px,100%)!important;height:auto!important;aspect-ratio:1;flex-basis:auto!important;margin:0 auto!important;max-width:100%;}
#dashboard-section[data-widget-theme] .outcome-rings circle{transform:rotate(-90deg);transform-origin:100px 100px;stroke-width:5;fill:none;}
#dashboard-section[data-widget-theme] .outcome-ring-track{stroke:var(--chart-track);opacity:1;}
#dashboard-section[data-widget-theme] .outcome-ring-value{stroke-linecap:round;stroke-dasharray:100;transition:stroke-dashoffset .85s cubic-bezier(.22,.68,.2,1);}
#dashboard-section[data-widget-theme] .outcome-ring-label{gap:5px;}
#dashboard-section[data-widget-theme] .outcome-ring-label strong{font-size:30px!important;font-weight:600!important;letter-spacing:-.045em;line-height:1.2;white-space:nowrap;}
#dashboard-section[data-widget-theme] .outcome-ring-label .is-large-total{font-size:22px!important;}
#dashboard-section[data-widget-theme] .outcome-ring-label small{font-size:11px!important;line-height:1.4;color:var(--chart-muted)!important;}
#dashboard-section[data-widget-theme] .outcome-legend{gap:4px;min-width:0;}
#dashboard-section[data-widget-theme] .outcome-legend>button{min-height:44px;padding:10px 4px;border-radius:6px;border:0;border-bottom:1px solid var(--theme-line);grid-template-columns:8px minmax(0,1fr) auto;gap:10px;}
#dashboard-section[data-widget-theme] .outcome-legend>button>span{font-size:12px;line-height:1.5;}
#dashboard-section[data-widget-theme] .outcome-legend>button>b{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums;}
#dashboard-section[data-widget-theme] .outcome-legend i{width:7px;height:7px;border-radius:50%;}
#dashboard-section[data-widget-theme] .dashboard-source-body{display:grid;grid-template-columns:minmax(150px,.9fr) minmax(160px,1fr);gap:20px;align-items:center;padding:16px 20px 20px;}
#dashboard-section[data-widget-theme] .outcome-segments circle{stroke-width:10;}
#dashboard-section[data-widget-theme] .outcome-segments .outcome-ring-value{stroke-linecap:butt;animation:ark-source-reveal .85s cubic-bezier(.22,.68,.2,1) both;}
@keyframes ark-source-reveal{from{stroke-dasharray:0 100}to{stroke-dasharray:var(--segment-length) calc(100 - var(--segment-length))}}
#dashboard-section[data-widget-theme] .dashboard-sources-panel{--source-0:#367CEA;--source-1:#02A6A5;--source-2:#9270E5;--source-3:#F0A028;--source-4:#E66E8F;}
#dashboard-section[data-widget-theme=navy] .dashboard-sources-panel{--source-0:#70A9FF;--source-1:#36D3CE;--source-2:#B499FF;--source-3:#FFBE66;--source-4:#FF8EB2;}
#dashboard-section[data-widget-theme] .dashboard-widget .source-legend button{background:transparent!important;padding:7px 2px!important;min-height:44px;border-radius:6px;grid-template-columns:7px minmax(0,1fr) auto;gap:10px;border-bottom:1px solid var(--theme-line);}
#dashboard-section[data-widget-theme] .dashboard-widget .source-legend button:is(:hover,:focus-visible){background:var(--theme-chip)!important;}
#dashboard-section[data-widget-theme] .source-legend .source-figures{display:flex;align-items:baseline;gap:7px;}
#dashboard-section[data-widget-theme] .source-legend .source-figures b{font-size:16px;font-weight:600;}
#dashboard-section[data-widget-theme] .source-legend .source-figures small{font-size:11px;color:var(--theme-muted)!important;min-width:38px;}
#dashboard-section[data-widget-theme] .dashboard-sources-panel :is(.dashboard-source-scope,.dashboard-source-refresh){margin-left:20px;margin-right:20px;}
#dashboard-section[data-widget-theme] .source-legend>button>span:not(.source-figures){font-size:12px;}
#dashboard-section[data-widget-theme] #dashboard-sales-chart{display:grid!important;grid-template-columns:repeat(var(--sales-months,6),minmax(88px,1fr))!important;gap:18px;overflow-x:auto!important;overflow-y:hidden!important;min-height:0!important;height:auto!important;padding:24px 20px 20px!important;align-items:start!important;scrollbar-width:thin;}
#dashboard-section[data-widget-theme] #dashboard-sales-chart .sales-month{height:auto!important;min-height:0!important;grid-template-rows:180px auto auto!important;gap:9px;text-align:center;}
#dashboard-section[data-widget-theme] #dashboard-sales-chart .sales-bars{height:180px;min-height:0;gap:16px;position:relative;border-color:var(--chart-grid);background:repeating-linear-gradient(to top,transparent 0,transparent 44px,var(--chart-grid) 44px,var(--chart-grid) 45px);}
#dashboard-section[data-widget-theme] #dashboard-sales-chart .sales-bar{height:var(--bar-height);width:min(30px,29%);min-height:0;border-radius:5px 5px 0 0;background:var(--chart-open)!important;transform-origin:50% 100%;animation:ark-bar-reveal .75s cubic-bezier(.22,.68,.2,1) both;animation-delay:calc(var(--chart-order,0)*65ms);font-style:normal;}
#dashboard-section[data-widget-theme] #dashboard-sales-chart .sales-bar.won{background:var(--chart-won)!important;}
#dashboard-section[data-widget-theme] #dashboard-sales-chart .sales-bar span{font-size:11px;font-weight:600;font-style:normal;line-height:1.4;white-space:nowrap;bottom:calc(100% + 5px);}
#dashboard-section[data-widget-theme] #dashboard-sales-chart .sales-month>b{font-size:12px;line-height:1.4;color:var(--theme-ink)!important;}
#dashboard-section[data-widget-theme] #dashboard-sales-chart .sales-month>small{font-size:11px!important;line-height:1.4!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
#dashboard-section[data-widget-theme] .chart-legend i{background:var(--chart-open)!important;}
#dashboard-section[data-widget-theme] .chart-legend i.won{background:var(--chart-won)!important;}
/* Animate the mark without stretching numeric labels. */
#dashboard-section[data-widget-theme] #dashboard-sales-chart .sales-bar{background:transparent!important;animation:none;}
#dashboard-section[data-widget-theme] #dashboard-sales-chart .sales-bar::before{content:'';position:absolute;inset:0;background:var(--chart-open);border-radius:inherit;transform-origin:50% 100%;animation:ark-bar-reveal .75s cubic-bezier(.22,.68,.2,1) both;animation-delay:calc(var(--chart-order,0)*65ms);}
#dashboard-section[data-widget-theme] #dashboard-sales-chart .sales-bar.won::before{background:var(--chart-won);}
@keyframes ark-bar-reveal{from{transform:scaleY(0)}to{transform:scaleY(1)}}
#dashboard-section[data-widget-theme] .sales-goal-body{display:flex;align-items:center;gap:24px;max-width:none;padding:20px;}
#dashboard-section[data-widget-theme] .sales-goal-gauge{width:min(240px,100%);flex:0 1 240px;min-width:180px;position:relative;}
#dashboard-section[data-widget-theme] .sales-goal-gauge svg{display:block;width:100%;overflow:visible;}
#dashboard-section[data-widget-theme] .sales-goal-track{stroke:var(--chart-track);stroke-width:7;}
#dashboard-section[data-widget-theme] .sales-goal-progress{stroke-width:7;stroke:var(--chart-open)!important;transition:stroke-dashoffset .85s cubic-bezier(.22,.68,.2,1);}
#dashboard-section[data-widget-theme] .sales-goal-gauge.achieved .sales-goal-progress{stroke:var(--chart-won)!important;}
#dashboard-section[data-widget-theme] .sales-goal-gauge[data-metric-tone=bad] .sales-goal-progress{stroke:var(--chart-lost)!important;}
#dashboard-section[data-widget-theme] .sales-goal-gauge.incomplete .sales-goal-progress{stroke:var(--chart-muted)!important;}
#dashboard-section[data-widget-theme] .sales-goal-needle{stroke:var(--chart-ink)!important;stroke-width:2.5;transform-origin:120px 116px;transition:transform .85s cubic-bezier(.22,.68,.2,1);}
#dashboard-section[data-widget-theme] .sales-goal-hub{fill:var(--chart-ink);stroke:var(--theme-surface,var(--theme-paper));stroke-width:2;}
#dashboard-section[data-widget-theme] .sales-goal-tick{stroke:var(--chart-grid);stroke-width:1.5;}
#dashboard-section[data-widget-theme] .sales-goal-scale{fill:var(--chart-muted);font:500 10px Montserrat,sans-serif;text-anchor:middle;}
#dashboard-section[data-widget-theme] .sales-goal-gauge>strong{display:block;font-size:32px!important;line-height:1.2;font-weight:600!important;margin-top:5px;}
#dashboard-section[data-widget-theme] .sales-goal-result{gap:8px;flex:1;}
#dashboard-section[data-widget-theme] .sales-goal-result b{font-size:28px!important;font-weight:600!important;line-height:1.3;}
#dashboard-section[data-widget-theme] .sales-goal-result>span{font-size:12px;line-height:1.5;}
#dashboard-section[data-widget-theme] .sales-goal-result>small{padding-top:8px;border-top:1px solid var(--theme-line);font-size:11px;line-height:1.5;}
@container(max-width:420px){#dashboard-section[data-widget-theme] :is(.outcome-main,.dashboard-source-body){grid-template-columns:minmax(0,1fr)!important;gap:12px;}#dashboard-section[data-widget-theme] .outcome-rings{width:200px!important;}#dashboard-section[data-widget-theme] .sales-goal-body{flex-direction:column;gap:16px;align-items:stretch;}#dashboard-section[data-widget-theme] .sales-goal-gauge{flex-basis:auto;align-self:center;width:220px;min-width:0;}#dashboard-section[data-widget-theme] .sales-goal-result{grid-template-columns:1fr auto;align-items:baseline;}#dashboard-section[data-widget-theme] .sales-goal-result>small{grid-column:1/-1;}#dashboard-section[data-widget-theme] .sales-goal-result>span:nth-of-type(2){grid-column:1/-1;}}
@media(max-width:600px){#dashboard-section[data-widget-theme] #dashboard-sales-chart{gap:14px;padding-inline:14px!important;}#dashboard-section[data-widget-theme] :is(.outcome-main,.dashboard-source-body){padding:14px;}}
@media(prefers-reduced-motion:reduce){#dashboard-section[data-widget-theme] :is(.outcome-ring-value,.sales-goal-progress,.sales-goal-needle){transition:none!important;transition-delay:0s!important;}#dashboard-section[data-widget-theme] :is(.outcome-segments .outcome-ring-value,.sales-bar,.sales-bar::before){animation:none!important;}}
@media(prefers-reduced-motion:reduce){#dashboard-section[data-widget-theme] #dashboard-sales-chart .sales-bar::before{animation:none!important;}}
