:root{--ft-bg:#f1f5f9;--ft-card:#fff;--ft-field:#f8fafc;--ft-border:#e2e8f0;--ft-text:#0f172a;--ft-muted:#64748b;--ft-primary:#2563eb;--ft-selected:#dbeafe}
html[data-freedom-theme=dark],html[data-theme=dark],body[data-theme=dark]{--ft-bg:#0b1220;--ft-card:#111a2e;--ft-field:#1a2540;--ft-border:#2d3b57;--ft-text:#e2e8f0;--ft-muted:#a4b2c6;--ft-primary:#3b82f6;--ft-selected:#1e3a60}
html[data-freedom-theme=matte],html[data-theme=matte],body[data-theme=matte]{--ft-bg:#0a0a0a;--ft-card:#141414;--ft-field:#1c1c1c;--ft-border:#353535;--ft-text:#e7e7e7;--ft-muted:#ababab;--ft-primary:#3b82f6;--ft-selected:#262626}
html body,html body .content,html body #main,html body .shell,html body .topbar{background:var(--ft-bg)!important;color:var(--ft-text)!important;--ink:var(--ft-text);--muted:var(--ft-muted);--freedom-ink:var(--ft-text);--line:var(--ft-border)}
html body .sidebar,html body .module-banner,html body dialog,html body .ft-surface{background-color:var(--ft-card)!important;background-image:none!important;border-color:var(--ft-border)!important;box-shadow:none!important}
html body :is(h1,h2,h3),html body .module-banner h1{color:var(--ft-text)!important}
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea){background:var(--ft-field)!important;color:var(--ft-text)!important;border-color:var(--ft-border)!important}
html body :is(.ui-btn,.btn){background:var(--ft-field);color:var(--ft-text);border-color:var(--ft-border)}
html body :is(button,.ui-btn,.btn):is(.on,.active,.pri,[aria-pressed=true]){background:var(--ft-primary)!important;color:white!important;border-color:var(--ft-primary)!important}
html body .sidebar .nav-item{color:var(--ft-text)!important}html body .sidebar .nav-item.active{background:var(--ft-selected)!important;color:var(--ft-text)!important}
html body .sidebar :is(strong,small,.side-label,.freedom-theme-control){color:var(--ft-text)!important}
.ft-command-icon{width:16px;height:16px;display:inline-block;vertical-align:-3px;margin-right:6px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;flex-shrink:0}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte],html[data-theme=dark],html[data-theme=matte],body[data-theme=dark],body[data-theme=matte]) :is(.ft-copy,small,label,th,td,legend){color:var(--ft-text)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte],html[data-theme=dark],html[data-theme=matte],body[data-theme=dark],body[data-theme=matte]) :is(.muted,.sub,.nota,.ops-note){color:var(--ft-muted)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte],html[data-theme=dark],html[data-theme=matte],body[data-theme=dark],body[data-theme=matte]) svg text{fill:var(--ft-text)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte],html[data-theme=dark],html[data-theme=matte],body[data-theme=dark],body[data-theme=matte]) :is(input,select,textarea){color-scheme:dark}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte],html[data-theme=dark],html[data-theme=matte],body[data-theme=dark],body[data-theme=matte]) button:not(.on):not(.active):not(.pri):not([aria-pressed=true]){background-color:var(--ft-field);color:var(--ft-text)}
html body .good,html body .good.ft-copy{color:#10b981!important}html body .bad,html body .bad.ft-copy{color:#e5676f!important}
[data-theme=dark],[data-theme=matte]{--bg:var(--ft-bg);--card:var(--ft-card);--bd:var(--ft-border);--tx:var(--ft-text);--mu:var(--ft-muted);--in:var(--ft-field);--int:var(--ft-text);--row:var(--ft-field);--fl:var(--ft-card);--flt:var(--ft-muted);--pris:var(--ft-selected)}
[data-theme=matte] :is(.kpi.main,.ops-sync,.logo){background:#1c1c1c!important;background-image:none!important;border-color:#353535!important;color:#e7e7e7!important;box-shadow:none!important}
[data-theme=dark] :is(.kpi.main,.ops-sync){background:#172b46!important;color:#e2e8f0!important;border-color:#2d4d6a!important}
@media print{body,.ft-surface{background:white!important;color:#0f172a!important}}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(.ov-card,.dp-module-card,.ui-btn,.v95-style-button){background:var(--ft-field)!important;color:var(--ft-text)!important;border-color:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(.ov-card,.dp-module-card){background:var(--ft-card)!important}
html body .module-banner .ui-btn:has(.ft-command-icon){white-space:nowrap}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte],body[data-theme=dark],body[data-theme=matte]) body .ft-small-surface{background-color:var(--ft-field)!important;color:var(--ft-text)!important}
html[data-freedom-theme] body .r94-unit-menu summary{background:var(--ft-field)!important;color:var(--ft-text)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .ov-card :is([class*=donut],[class*=ring]){background-color:var(--ft-card)!important}
html[data-freedom-theme] body #dialog fieldset,html[data-freedom-theme] body #dialog .ft-surface{background:var(--ft-card)!important;color:var(--ft-text)!important;border-color:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #dialog :is(.ui-btn,button){background:var(--ft-field)!important;color:var(--ft-text)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #main .module-banner :is(summary,.ui-btn){background:var(--ft-field)!important;color:var(--ft-text)!important}
html[data-freedom-theme] body .content .module-banner h1{color:var(--ft-text)!important}
html[data-freedom-theme] #fc-view,html[data-freedom-theme] #fc-view main,html[data-freedom-theme] #fc-view .kpi,html[data-freedom-theme] #fc-view .fp-kpi-select{background:var(--ft-card)!important;color:var(--ft-text)!important;border-color:var(--ft-border)!important}
html[data-freedom-theme] #fc-view :is(.kpi-title,.catlabel,.pill,.close){color:var(--ft-text)!important}
html[data-freedom-theme] #fc-view :is(.pill,.close){background:var(--ft-field)!important;border-color:var(--ft-border)!important}
html[data-freedom-theme] #fc-view .pill[aria-pressed=true]{background:var(--ft-primary)!important;color:#fff!important}
html[data-freedom-theme] #fc-view h1{color:var(--ft-text)!important}
html body #nav-modules .nav-item:nth-child(5n+1) .freedom-icon{--icon-bg:#60a5fa!important}html body #nav-modules .nav-item:nth-child(5n+2) .freedom-icon{--icon-bg:#f6ad45!important}html body #nav-modules .nav-item:nth-child(5n+3) .freedom-icon{--icon-bg:#34d399!important}html body #nav-modules .nav-item:nth-child(5n+4) .freedom-icon{--icon-bg:#9f7aea!important}html body #nav-modules .nav-item:nth-child(5n) .freedom-icon{--icon-bg:#e5676f!important}
.ft-command-icon{width:16px!important;height:16px!important;fill:none!important}
html[data-freedom-theme] body .er-initiative{background:transparent!important}
html[data-freedom-theme] body .er-initiative.er-selected{background:var(--ft-selected)!important}
html[data-freedom-theme] body #main :is(button,.ui-btn).r94-active,html[data-freedom-theme] body #main button.chosen{background:var(--ft-primary)!important;color:white!important}
/* Shared chart identity: theme controls surfaces and grid only. */
.r94-palette,.v95-swatches{display:none!important}
html[data-freedom-theme] body table{border-color:var(--ft-border)!important}
html[data-freedom-theme] body table th{background:var(--ft-field)!important;color:var(--ft-text)!important;border-color:var(--ft-border)!important}
html[data-freedom-theme] body table td{border-color:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body table :is(tr,td){background-color:var(--ft-card)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body table tbody tr:nth-child(even) td{background-color:var(--ft-field)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .dp-ring>div{background:var(--ft-card)!important;color:var(--ft-text)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .good.ft-copy{color:#10b981!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .bad.ft-copy{color:#e5676f!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body svg line:not([data-series]):not([stroke-dasharray]){stroke:var(--ft-border)}

/* v109 — component surfaces, semantic commands and chart contrast. */
html{min-height:100%;background:var(--ft-bg)!important}
html body{min-height:100vh}
@media screen{
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(.er-band,.er-initiatives,.lp-intro,.pp-hero,.pp-league-hero,.r22-meeting-layers>section>header,.tower-layer>header,.tower-layer-row,.lp-sheet,.lp-preview,.lp-pattern){background:var(--ft-card)!important;background-image:none!important;color:var(--ft-text)!important;border-color:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(.lp-intro,.pp-hero){border-left:3px solid #60a5fa!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .er-category{background:color-mix(in srgb,var(--er-tone) 14%,var(--ft-card))!important;border-left:3px solid var(--er-tone)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .er-track{background:repeating-linear-gradient(to right,transparent 0,transparent calc(25% - 1px),var(--ft-border) calc(25% - 1px),var(--ft-border) 25%)!important;border-color:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(.er-initiative,.er-band,.er-header h2 span,.er-column-head,.pp-rank-row,.pp-area-row,.ah-summary,.module-banner .mb-top){border-color:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .er-initiative:hover .er-name,:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .er-selected .er-name{background:var(--ft-selected)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .er-duration{color:#081321!important;font-weight:650;border:0!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .er-duration.ft-copy{color:#081321!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(.lp-button,.ui-btn,button.ex-blue,.er-present,.rm-tabs button,.pp-people-button){background:var(--ft-field)!important;color:var(--ft-text)!important;border-color:var(--ft-border)!important;box-shadow:none!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(button,.ui-btn,.lp-button):is(.primary,.pri,.on,.active,.selected,.chosen,.r94-active,[aria-pressed=true]){background:#2563eb!important;color:#fff!important;border-color:#60a5fa!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .r22-meeting-layers>section>header{background:color-mix(in srgb,var(--tone) 16%,var(--ft-card))!important;border-left:3px solid var(--tone)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .lp-categories>section>header{background:color-mix(in srgb,var(--lp-color) 14%,var(--ft-card))!important;border-left:3px solid var(--lp-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(.pp-track,.r94-mini-track,.pb){background:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(.lp-tool-card,.pp-panel,.pp-summary article,.ov-card,.dp-module-card){border-color:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(.lp-tool-card,.lp-categories>section>header){border-top-color:var(--lp-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(.soft,.cell-sub,.inline-note,.pp-note,.lp-note,.lp-caption,.er-name small,.er-footer,.er-subtitle){color:var(--ft-muted)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(input,textarea)::placeholder{color:var(--ft-muted)!important;opacity:1}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #60a5fa!important;outline-offset:3px}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body hr{border-color:var(--ft-border)!important;opacity:.65}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body svg :is(line,path,polyline)[stroke-dasharray]{stroke:#a9bbd1!important;opacity:1!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .kpi.main .ic{color:#93c5fd!important;background:var(--ft-selected)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .kpi.main .pb i{background:#60a5fa!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(.ov-card,.r94-kpi) svg text[font-size="11"]{font-size:13px}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(.good,.good.ft-copy){color:#53d6a7!important;background:transparent!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(.bad,.bad.ft-copy){color:#ff8791!important;background:transparent!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .r94-unit-menu summary{border-color:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body :is(.module-banner,.r94-common-nav) .sv-help{background:#8c3046!important;color:#fff!important;border-color:#bc6072!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .sv-tutorial{border:0!important;box-shadow:none!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .tower-layer>header{background:color-mix(in srgb,var(--layer-color) 16%,var(--ft-card))!important;border-left:3px solid var(--layer-color)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .tower-layer-row{background:var(--ft-card)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #main .module-banner button.r94-new-action,:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body button.r94-new-action,html body .r94-new-action{background:#99d98c!important;color:#173b23!important;border-color:#99d98c!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .r94-new-action :is(svg,span){color:#173b23!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .fp-kpi-select{padding:8px 12px!important;min-height:0!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .fp-kpi-select label{font-size:12px!important}
}
@media screen {
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #main :is(.r22-meeting-layers footer,.er-support,.rm-tabs,.inner-tabs) button{background:var(--ft-field)!important;color:var(--ft-text)!important;border-color:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #main :is(.r22-meeting-layers>section,.ap-stats,.metrics-row,.r94-common-nav){border-color:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #main .er-initiative[aria-pressed=true]{background:var(--ft-selected)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #main .module-banner :is(button.selected,button.r94-active,button.chosen){background:#2563eb!important;color:#fff!important}
html[data-freedom-theme] body #main .module-banner button.r94-new-action{background:#99d98c!important;color:#173b23!important}
}
@media screen {
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #main .r94-roadmap-switch .ui-btn{background:var(--ft-field)!important;color:var(--ft-text)!important;border-color:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #main .r94-roadmap-switch .ui-btn.r94-active{background:#2563eb!important;color:#fff!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #main .r22-meeting-layers footer button{border:1px solid var(--ft-border)!important}
}

@media screen {
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #main :is(.r94-detail,.pp-people-button,.pp-hero .ui-btn,.pp-league-grid .ui-btn,.r94-common-nav .ui-btn){background:var(--ft-field)!important;color:var(--ft-text)!important;border-color:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body{color-scheme:dark}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #main .module-banner{padding-top:18px;padding-bottom:16px}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #main .ah-summary{grid-template-columns:minmax(180px,.85fr) 112px minmax(350px,1.65fr);padding:10px 0;gap:10px 20px}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #main .ah-ring svg{width:108px;height:108px}
}
@media screen {
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .pv-meter{background:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .pv-meter>b{border-color:var(--ft-text)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .v95-map-step .tile{background:var(--ft-field)!important;box-shadow:none!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body .v95-map-grid article>small{border-color:var(--ft-border)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) body #main .r94-detail{background:var(--ft-field)!important;color:var(--ft-text)!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) #fc-view .fp-kpi-select{padding:8px 12px!important;min-height:0!important;height:auto!important}
:is(html[data-freedom-theme=dark],html[data-freedom-theme=matte]) #fc-view .kpi .bottom{border-color:var(--ft-border)!important}
}
