@media screen {
  html body[data-auth-state="authenticated"] #app#app :is(.fp-workspace,.sb-plan-section){padding:20px;margin-bottom:20px;background:var(--panel,#fff);border:1px solid var(--line,#cbd5e1);border-radius:14px;box-shadow:0 1px 2px rgba(15,42,68,.05);color:var(--ink,#0f2a44)}
  html body[data-auth-state="authenticated"] #app#app :is(.fp-heading,.sb-section-head){display:flex!important;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
  html body[data-auth-state="authenticated"] #app#app :is(.fp-workspace h2,.sb-section-head h2,.sb-section-head h3){font-size:19px;font-weight:750;margin:0 0 6px;line-height:1.3;color:var(--ink,#0f2a44)}
  html body[data-auth-state="authenticated"] #app#app :is(.fp-heading p,.sb-plan-subtitle){display:block!important;margin:0!important;color:var(--muted,#475569)!important;font-size:13.5px!important;line-height:1.45;max-width:76ch;opacity:1!important}
  html body[data-auth-state="authenticated"] #app#app .sb-plan-actions{display:flex!important;align-items:center;gap:8px;flex-wrap:wrap;margin:0!important;position:static!important;opacity:1!important;visibility:visible!important}
  html body[data-auth-state="authenticated"] #app#app .fp-tabs{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--line,#cbd5e1);padding-bottom:14px;margin-bottom:18px}
  html body[data-auth-state="authenticated"] #app#app .fp-tabs :is(button,.btn)[aria-selected="true"]{background:#14506a!important;background-color:#14506a!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#14506a!important;font-weight:700!important;box-shadow:0 1px 2px rgba(20,80,106,.25)!important}
  html body[data-auth-state="authenticated"] #app#app .fp-workspace .form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:14px}
  html body[data-auth-state="authenticated"] #app#app .fp-workspace .field :is(input,select){width:100%;min-height:40px;box-sizing:border-box}
  html body[data-auth-state="authenticated"] #app#app .fp-workspace .field label{display:block;font-weight:650;margin-bottom:6px}
  html body[data-auth-state="authenticated"] #app#app :is(.fp-workspace,.sb-plan-section) .table-wrap{overflow-x:auto;overflow-y:visible!important;margin:0!important;border:1px solid var(--line,#cbd5e1);border-radius:10px}
  html body[data-auth-state="authenticated"] #app#app :is(.fp-workspace,.sb-plan-section) table{min-width:640px;width:100%;margin:0!important}
  html body[data-auth-state="authenticated"] #app#app :is(.fp-workspace,.sb-plan-section) th{font-weight:700;white-space:normal}
  html body[data-auth-state="authenticated"] #app#app .fp-result-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
  html body[data-auth-state="authenticated"] #app#app .fp-decision{font-weight:700}
  html body[data-auth-state="authenticated"] #app#app :is(.fp-buy,.btn.danger-outline){color:var(--esb-danger,#a52a20)!important}
  html body[data-auth-state="authenticated"] #app#app .btn.danger-outline{border-color:color-mix(in srgb,var(--esb-danger,#a52a20) 40%,var(--line,#cbd5e1))!important}
  html body[data-auth-state="authenticated"] #app#app .fp-workspace details{margin:16px 0}
  html body[data-auth-state="authenticated"] #app#app .fp-workspace summary{font-weight:700;cursor:pointer;padding:8px 0}
  html body[data-auth-state="authenticated"] #app#app .fp-assumptions li{margin:8px 0;line-height:1.5}
  html body[data-auth-state="authenticated"] #app#app .fp-save{border-top:1px solid var(--line,#cbd5e1);padding-top:16px;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
  html body[data-auth-state="authenticated"] #app#app .fp-save input{min-height:40px;max-width:100%;width:320px}
  html body[data-auth-state="authenticated"] #app#app .fp-save p{width:100%;font-size:13px;color:var(--muted,#475569)}
  html body[data-auth-state="authenticated"] #app#app .fp-error{color:var(--esb-danger,#a52a20);font-weight:650;padding:12px;border:1px solid currentColor;border-radius:8px}
  html body[data-auth-state="authenticated"] #app#app .fp-saved-chip{display:inline-flex;align-items:center;border:1px solid var(--line,#cbd5e1);border-radius:8px;overflow:hidden;background:var(--surface-2,#f8fafc)}
  html body[data-auth-state="authenticated"] #app#app .fp-saved-chip .btn{border:0!important;border-radius:0!important;margin:0!important}
  html body[data-auth-state="authenticated"] #app#app .fp-saved-chip .fp-chip-del{border-left:1px solid var(--line,#cbd5e1)!important;padding-inline:10px;color:var(--esb-danger,#a52a20)!important}
  html body[data-auth-state="authenticated"] #app#app .sb-row-actions{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
  html[data-theme="dark"] body[data-auth-state="authenticated"] #app#app :is(.fp-workspace,.sb-plan-section){background:var(--panel,#0e2136)!important;border-color:var(--line,#2a4560)!important;color:var(--ink,#eef4fb)!important}
  html[data-theme="dark"] body[data-auth-state="authenticated"] #app#app :is(.fp-heading p,.sb-plan-subtitle,.fp-save p){color:var(--muted,#9eb4c9)!important}
  html[data-theme="dark"] body[data-auth-state="authenticated"] #app#app :is(.sb-section-head h2,.fp-workspace h2){color:var(--ink,#f8fafc)!important}
  html[data-theme="dark"] body[data-auth-state="authenticated"] #app#app .fp-saved-chip{background:#152c44!important;border-color:#2a4560!important}

  html:is([data-theme],:not([data-theme])):not([data-public-surface="1"]) body[data-auth-state="authenticated"] #app#app#app .fp-tabs :is(button,.btn)[aria-selected="true"]{background:#14506a!important;background-color:#14506a!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#14506a!important;font-weight:700!important}
  html[data-theme="dark"]:not([data-public-surface="1"]) body[data-auth-state="authenticated"] #app#app#app .fp-tabs :is(button,.btn)[aria-selected="true"]{background:#1d6fa5!important;background-color:#1d6fa5!important;border-color:#3898d4!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
  html body[data-auth-state="authenticated"] #app#app#app :is(.fp-heading,.sb-section-head){display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;width:100%!important}
  html body[data-auth-state="authenticated"] #app#app#app :is(.sb-plan-actions,.fp-actions,#fc-new,#bd-new){display:inline-flex!important;visibility:visible!important;opacity:1!important;position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto!important;flex-shrink:0!important}
  html body[data-auth-state="authenticated"] #app#app#app :is(.fp-workspace,.sb-plan-section) .table-wrap table{border:0!important;box-shadow:none!important}
  html body[data-auth-state="authenticated"] #app#app#app :is(.fp-workspace,.sb-plan-section) .table-wrap :is(th,td):last-child{border-right:0!important}

  html body[data-auth-state="authenticated"] #app#app .fp-group{border:1px solid var(--line,#cbd5e1);border-radius:12px;padding:14px 16px;margin:0 0 14px}
  html body[data-auth-state="authenticated"] #app#app .fp-group>legend{font-weight:750;padding:0 6px}
  html body[data-auth-state="authenticated"] #app#app .fp-workspace .field small{display:block;margin-top:4px;font-size:12px;line-height:1.4;color:var(--muted,#475569)}
  html body[data-auth-state="authenticated"] #app#app .fp-views{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 10px}
  html:is([data-theme],:not([data-theme])):not([data-public-surface="1"]) body[data-auth-state="authenticated"] #app#app#app .fp-views :is(button,.btn)[aria-pressed="true"]{background:#14506a!important;background-color:#14506a!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#14506a!important;font-weight:700!important} html[data-theme="dark"]:not([data-public-surface="1"]) body[data-auth-state="authenticated"] #app#app#app .fp-views :is(button,.btn)[aria-pressed="true"]{background:#1d6fa5!important;background-color:#1d6fa5!important;border-color:#3898d4!important}
  html body[data-auth-state="authenticated"] #app#app .fp-stmt td.num,html body[data-auth-state="authenticated"] #app#app .fp-stmt th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
  html body[data-auth-state="authenticated"] #app#app .fp-stmt tr.fp-total td{font-weight:750;border-top:1px solid var(--line,#cbd5e1)}
  html body[data-auth-state="authenticated"] #app#app .fp-stmt td:first-child,html body[data-auth-state="authenticated"] #app#app .fp-stmt th:first-child{position:sticky;left:0;background:var(--panel,#fff);z-index:1;min-width:220px}
  html body[data-auth-state="authenticated"] #app#app .fp-neg{color:var(--esb-danger,#a52a20)!important}
  html body[data-auth-state="authenticated"] #app#app .fp-ok{color:#1f6f43;font-weight:650}
  html[data-theme="dark"] body[data-auth-state="authenticated"] #app#app .fp-stmt :is(td,th):first-child{background:var(--panel,#0e2136)}
  html[data-theme="dark"] body[data-auth-state="authenticated"] #app#app .fp-workspace .field small{color:var(--muted,#9eb4c9)}
  html[data-theme="dark"] body[data-auth-state="authenticated"] #app#app .fp-ok{color:#7fd4a2}
  html body[data-auth-state="authenticated"] #app#app .metric.fp-neg{color:inherit!important}
  html body[data-auth-state="authenticated"] #app#app .metric.fp-neg strong{color:var(--esb-danger,#a52a20)!important}
}

/* Forecast views, budget approval and budget warnings (forecast-plus.js), light and dark. */
/* Company forecast view tabs: same look and strength as the forecast tabs above (.fp-tabs), so the chosen view is always readable. */
html:is([data-theme],:not([data-theme])):not([data-public-surface="1"]) body[data-auth-state="authenticated"] #app#app#app .fpx-views :is(button,.btn)[role="tab"][aria-selected="true"]{background:#14506a!important;background-color:#14506a!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#14506a!important;font-weight:700!important;box-shadow:none!important;opacity:1!important}
html:is([data-theme],:not([data-theme])):not([data-public-surface="1"]) body[data-auth-state="authenticated"] #app#app#app .fpx-views :is(button,.btn)[role="tab"]:not([aria-selected="true"]){background:var(--panel,#fff)!important;background-image:none!important;color:var(--ink,#0f2a44)!important;-webkit-text-fill-color:var(--ink,#0f2a44)!important;border:1px solid var(--line,#cbd5e1)!important;box-shadow:none!important;opacity:1!important}
html[data-theme="dark"]:not([data-public-surface="1"]) body[data-auth-state="authenticated"] #app#app#app .fpx-views :is(button,.btn)[role="tab"][aria-selected="true"]{background:#1d6fa5!important;background-color:#1d6fa5!important;border-color:#3898d4!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme="dark"]:not([data-public-surface="1"]) body[data-auth-state="authenticated"] #app#app#app .fpx-views :is(button,.btn)[role="tab"]:not([aria-selected="true"]){background:#152c44!important;color:#f4f8ff!important;-webkit-text-fill-color:#f4f8ff!important;border-color:#2a4560!important}
html body[data-auth-state="authenticated"] #app#app#app .fpx-views :is(button,.btn)[role="tab"]:focus-visible{outline:2px solid #248e9b!important;outline-offset:2px}
html body[data-auth-state="authenticated"] #app#app .fp-stmt .fpx-actual{background:rgba(20,80,106,.07)}
html[data-theme="dark"] body[data-auth-state="authenticated"] #app#app .fp-stmt .fpx-actual{background:rgba(111,211,199,.08)}
html body[data-auth-state="authenticated"] #app#app .fp-stmt th small{font-weight:600;color:var(--muted,#5b6b7f)}
html body[data-auth-state="authenticated"] #app#app tr.fpx-off td{opacity:.55}
html body[data-auth-state="authenticated"] .fpx-pill{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.6;white-space:nowrap}
html body[data-auth-state="authenticated"] .fpx-pill.fpx-green{background:#e3f4ec;color:#0f5c3c}
html body[data-auth-state="authenticated"] .fpx-pill.fpx-amber{background:#fbf0d9;color:#6b4708}
html body[data-auth-state="authenticated"] .fpx-pill.fpx-red{background:#fde8e6;color:#8f1d14}
html body[data-auth-state="authenticated"] .fpx-pill.fpx-slate{background:#e8edf2;color:#34475b}
html[data-theme="dark"] body[data-auth-state="authenticated"] .fpx-pill.fpx-green{background:#123a2c;color:#8fe0b9}
html[data-theme="dark"] body[data-auth-state="authenticated"] .fpx-pill.fpx-amber{background:#3a2e12;color:#f2cf7c}
html[data-theme="dark"] body[data-auth-state="authenticated"] .fpx-pill.fpx-red{background:#43201d;color:#ffb3ab}
html[data-theme="dark"] body[data-auth-state="authenticated"] .fpx-pill.fpx-slate{background:#1d3248;color:#c1d0e0}
html body .fpx-budget-warn{position:fixed;right:20px;bottom:20px;z-index:40000;max-width:420px;padding:14px 16px;border-radius:12px;background:#fff7e6;color:#4a3305;border:1px solid #e2b04a;box-shadow:0 12px 32px rgba(15,42,68,.22);font-size:14px;line-height:1.45}
html body .fpx-budget-warn p{margin:6px 0}
html body .fpx-budget-warn .btn{margin-top:6px}
html[data-theme="dark"] body .fpx-budget-warn{background:#2b2312;color:#f6e3b4;border-color:#8a6a22}
