/* FC appearance tokens. UI only: originals, logos, SVG/CAD primitives, images and canvas pixels are unchanged. */
@layer fc-appearance {
 :root[data-fc-theme="light"] {
  color-scheme:light!important;
  --fc-bg:#f3f0e8!important;--fc-surface:#fffdf7!important;--fc-elevated:#ffffff!important;
  --fc-soft:#e9e5dc!important;--fc-ink:#242321!important;--fc-muted:#5c5952!important;--fc-line:#77736c!important;
  --fc-link:#215c48!important;--fc-selected:#dce6dc!important;--fc-selected-ink:#1f4936!important;
  --fc-primary:#333330!important;--fc-primary-ink:#fffdf7!important;--fc-focus:#4b735f!important;
  --fc-error:#9b3030!important;--fc-warning:#78550f!important;--fc-success:#28593d!important;
  --fc-shadow:0 8px 28px #24232116!important;
 }
 :root[data-fc-theme="dark"] {
  color-scheme:dark!important;
  --fc-bg:#18191b!important;--fc-surface:#232427!important;--fc-elevated:#2b2c30!important;
  --fc-soft:#303135!important;--fc-ink:#f3f0e8!important;--fc-muted:#c2bfb7!important;--fc-line:#75767b!important;
  --fc-link:#a9d5bd!important;--fc-selected:#34483d!important;--fc-selected-ink:#dbeade!important;
  --fc-primary:#e6e2d8!important;--fc-primary-ink:#242321!important;--fc-focus:#b8d5ba!important;
  --fc-error:#f2aaa4!important;--fc-warning:#e8c583!important;--fc-success:#b8d5ba!important;
  --fc-shadow:0 8px 28px #00000040!important;
 }
 :root[data-fc-theme] {
  --bg:var(--fc-bg)!important;--panel:var(--fc-surface)!important;--card:var(--fc-surface)!important;
  --ink:var(--fc-ink)!important;--text:var(--fc-ink)!important;--muted:var(--fc-muted)!important;
  --line:var(--fc-line)!important;--border:var(--fc-line)!important;--nav:var(--fc-surface)!important;
  --blue:var(--fc-link)!important;--accent:var(--fc-link)!important;--cyan:var(--fc-link)!important;
  --green:var(--fc-success)!important;--red:var(--fc-error)!important;
  --fc-gui-ink:var(--fc-ink)!important;--fc-gui-muted:var(--fc-muted)!important;--fc-gui-blue:var(--fc-link)!important;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
  background:var(--fc-bg)!important;color:var(--fc-ink)!important;
 }
 :root[data-fc-theme] body {
  font-family:inherit!important;font-size:16px!important;font-weight:400!important;line-height:1.5!important;
  background:var(--fc-bg)!important;background-image:none!important;color:var(--fc-ink)!important;
  text-shadow:none!important;-webkit-font-smoothing:auto;
 }
 :root[data-fc-theme] *:not([data-fc-theme-ignore] *, .gm-style *, .fc-dxf-viewer *, .fc-space-model-tools *, .cad-toolbar *, .dxf-toolbar *) {transition-property:transform,opacity,box-shadow!important}
 :root[data-fc-theme] body::before {opacity:0!important}
 :root[data-fc-theme] .panel::before {background:var(--fc-line)!important;box-shadow:none!important}
 :root[data-fc-theme] body>.space[aria-hidden=true] {opacity:0!important}
 :root[data-fc-theme] :is(.view,.auth-screen,.app-shell,.fc-world-home-stage) {background-color:var(--fc-bg)!important;background-image:none!important}
 :root[data-fc-theme] :is(.panel,.card,.auth-card,.modal,.modal-card,dialog,.popover,.sheet,.mast,.sidebar,.topbar,.toolbar,
  .fc-u-workbar,.fc-u-dock,.fc-ios-brand-wash,.fc-u-context,.fc-journey,.fc-journey-rail-shell,.fc-space-selection,
  .fc-space-controls,.fc-space-browser,.fc-space-switch,.fc-ingress-panel,.fc-ios-search-dialog,.fc-more-dialog,
  .archive-project-picker,.archive-preview,.archive-pages,.archive-filter-details,.archive-access,.fc-bank-card,.sources,.detail,.fog-controls,.globe-tools,.incident-workspace,.incident-workspace-bar,.fc-world-message,.document-space,.status,
  .kpi,.metric,.pathbox,.fc-status-panel,.fc-space-browser-header) {
  background:var(--fc-surface)!important;color:var(--fc-ink)!important;border-color:var(--fc-line)!important;
  text-shadow:none!important;box-shadow:var(--fc-shadow)!important;border-radius:18px!important;
 }
 :root[data-fc-theme] :is(h1,h2,h3,h4,.fc-journey-title,.fc-u-current,.section-head,.panel-title) {color:var(--fc-ink)!important;font-family:inherit!important;font-weight:650!important;letter-spacing:normal!important;text-shadow:none!important}
 :root[data-fc-theme] h1 {font-size:28px!important;line-height:1.2!important}
 :root[data-fc-theme] h2 {font-size:23px!important;line-height:1.25!important}
 :root[data-fc-theme] h3 {font-size:18px!important;line-height:1.35!important}
 :root[data-fc-theme] :is(p,li,label,summary,td,th,dt,dd) {font-family:inherit!important;line-height:1.5!important}
 :root[data-fc-theme] :is(p,li,label,summary,td,th,dt,dd):not([data-fc-theme-ignore] *, .gm-style *, .fc-dxf-viewer *, .cad-toolbar *, .dxf-toolbar *) {font-size:max(14px,1em)!important;color:var(--fc-ink)!important}
 :root[data-fc-theme] :is(.hint,.note,.muted,.identity,.auth-foot,.eyebrow,.badge,.tag,small,.fc-journey-eyebrow,
  .fc-journey-detail,.fc-journey-area-summary,.fc-journey-hint,.fc-u-feedback,.fc-space-browser-state,.fc-space-source-facts) {
  color:var(--fc-muted)!important;font-size:14px!important;font-weight:400!important;line-height:1.5!important;letter-spacing:normal!important;
 }
 :root[data-fc-theme] a:not([data-fc-theme-ignore] *, .gm-style *) {color:var(--fc-link)!important;text-shadow:none!important}
 :root[data-fc-theme] :is(button,input,select,textarea) {font-family:inherit!important;text-shadow:none!important}
 :root[data-fc-theme] :is(input,select,textarea):not([data-fc-theme-ignore] *, .gm-style *, .fc-dxf-viewer *, .cad-toolbar *, .dxf-toolbar *) {
  color:var(--fc-ink)!important;background:var(--fc-elevated)!important;border:1px solid var(--fc-line)!important;
  font-size:16px!important;font-weight:400!important;line-height:1.4!important;min-height:44px;
  -webkit-text-fill-color:currentColor!important;
 }
 :root[data-fc-theme] :is(input,textarea)::placeholder {color:var(--fc-muted)!important;opacity:1!important}
 :root[data-fc-theme] button:not([data-fc-theme-ignore] *, .gm-style *, .fc-dxf-viewer *, .fc-space-model-tools *, .cad-toolbar *, .dxf-toolbar *) {
  background:var(--fc-soft)!important;color:var(--fc-ink)!important;border:1px solid var(--fc-line)!important;
  font-size:14px!important;font-weight:600!important;line-height:1.35!important;min-height:44px;
  -webkit-text-fill-color:currentColor!important;box-shadow:none!important;
 }
 :root[data-fc-theme] :is(button.primary,button[type=submit],.fc-journey-open):not([data-fc-theme-ignore] *, .gm-style *, .fc-dxf-viewer *, .fc-space-model-tools *, .cad-toolbar *, .dxf-toolbar *) {
  background:var(--fc-primary)!important;color:var(--fc-primary-ink)!important;
 }
 :root[data-fc-theme] :is(button[aria-pressed=true],button[aria-selected=true],.nav.active,.fc-u-node.selected,.fc-journey-area[aria-pressed=true]):not([data-fc-theme-ignore] *, .gm-style *, .fc-dxf-viewer *, .fc-space-model-tools *, .cad-toolbar *, .dxf-toolbar *) {
  background:var(--fc-selected)!important;color:var(--fc-selected-ink)!important;border-color:var(--fc-line)!important;
 }
 :root[data-fc-theme] :is(button:disabled,input:disabled,select:disabled,textarea:disabled) {opacity:1!important;color:var(--fc-muted)!important;cursor:not-allowed}
 :root[data-fc-theme] :focus-visible {outline:3px solid var(--fc-focus)!important;outline-offset:3px!important}
 :root[data-fc-theme] :is(.fc-ingress-open,.fc-ios-search-open,.fc-u-identity) {background:var(--fc-soft)!important;color:var(--fc-ink)!important;border-color:var(--fc-line)!important;-webkit-text-fill-color:currentColor!important}
 :root[data-fc-theme] :is(.fc-u-node,.fc-journey-area-label,.fc-space-switch button) {font-size:14px!important;line-height:1.35!important;font-weight:600!important}
 :root[data-fc-theme] .fc-journey-area>svg {background:var(--fc-soft)!important;color:var(--fc-ink)!important}
 :root[data-fc-theme] :is(table,thead,tbody,tr,td,th,.table-scroll,.tablepanel) {border-color:var(--fc-line)!important}
 :root[data-fc-theme] :is(td,th) {background:var(--fc-surface)!important;color:var(--fc-ink)!important;font-size:14px!important}
 :root[data-fc-theme] th {background:var(--fc-soft)!important;font-weight:600!important}
 :root[data-fc-theme] :is(.bad,.negative,.danger,.error,.auth-error) {color:var(--fc-error)!important}
 :root[data-fc-theme] :is(.warning,.forecast-note,.warning-note) {color:var(--fc-warning)!important;background:var(--fc-surface)!important;border-color:var(--fc-line)!important;font-size:14px!important}
 :root[data-fc-theme] :is(.safe,.positive,.success) {color:var(--fc-success)!important}
 :root[data-fc-theme] :is(.brand,.auth-brand,.brand-mark,.brand-word,.fc-brand-original-lockup,.fc-ios-heading) {background:var(--fc-surface)!important}
 :root[data-fc-theme] :is(.fc-brand-original-lockup,.fc-ios-heading) {background:#fffdf7!important}
 :root[data-fc-theme] :is(.fc-bank-note,.fc-bank-step,.fc-bank-explainer,.fc-bank-source-note,.fc-bank-warning) {background:var(--fc-soft)!important;color:var(--fc-ink)!important;border-color:var(--fc-line)!important}
 :root[data-fc-theme] :is(.fc-bank-actions a,.document-download,a.button,a.btn) {background:var(--fc-primary)!important;color:var(--fc-primary-ink)!important;border:1px solid var(--fc-line)!important;font-size:14px!important;line-height:1.4!important}
 :root[data-fc-theme] :is(.topbar,.sidebar>.brand,.auth-brand,.mast) {background:#fffdf7!important;color:#242321!important}
 :root[data-fc-theme] .mast a {color:#215c48!important}
 :root[data-fc-theme] .topbar :is(h1,p) {color:#242321!important}
 :root[data-fc-theme] .avatar {background:var(--fc-soft)!important;color:var(--fc-ink)!important}
 :root[data-fc-theme] input:is([type=checkbox],[type=radio]) {width:20px!important;height:20px!important;min-height:20px!important;accent-color:var(--fc-link)}
 :root[data-fc-theme] :is(.mast,.topbar,.fc-u-workbar,.fc-ios-brand-wash,.fc-appearance-header) {border-radius:0!important;box-shadow:none!important}
 :root[data-fc-theme] body>header {background:#fffdf7!important;color:#242321!important}
 :root[data-fc-theme] header .brand {background:transparent!important}
 :root[data-fc-theme] header a {color:#215c48!important}
 :root[data-fc-theme] :is(.headline,.base-note,legend) {font-size:14px!important;line-height:1.5!important;color:var(--fc-ink)!important;letter-spacing:normal!important}
 :root[data-fc-theme] .base-note {background:var(--fc-surface)!important}
 :root[data-fc-theme] #fc-universe::before {font-size:14px!important;color:var(--fc-muted)!important;letter-spacing:normal!important}
 /* No filter/blend/inversion or generated lettering is applied to any brand asset. */
 :root[data-fc-theme] #fc-theme-control {position:relative;flex:none;font-family:inherit;isolation:isolate;line-height:1.35}
 :root[data-fc-theme] .fc-appearance-header {position:absolute;inset:0 0 auto;z-index:6;display:grid;grid-template-columns:minmax(160px,1fr) auto;align-items:center;gap:8px 16px;padding:12px 24px;background:#fffdf7!important;border-bottom:1px solid var(--fc-line);pointer-events:none}
 :root[data-fc-theme] .fc-appearance-header .fc-ios-heading {position:static!important;inset:auto!important;width:220px!important;max-width:100%!important;margin:0!important;background:transparent!important}
 :root[data-fc-theme] .fc-appearance-actions {display:flex;flex-wrap:wrap;max-width:calc(100vw - 300px);align-items:center;justify-content:flex-end;gap:8px;pointer-events:auto}
 :root[data-fc-theme] .fc-appearance-status-slot {display:contents;pointer-events:auto}
 :root[data-fc-theme] .fc-appearance-status-slot:empty {display:none}
 :root[data-fc-theme] .fc-appearance-header :is(.fc-ios-search-open,.fc-u-identity,.fc-ingress-open) {position:static!important;inset:auto!important;transform:none!important;margin:0!important;flex:none;min-width:44px!important;min-height:44px!important}
 :root[data-fc-theme] .fc-appearance-header #fc-u-identity {width:44px!important;height:44px!important;font-size:0!important;padding:0!important;overflow:hidden}
 :root[data-fc-theme] .fc-appearance-header .fc-ingress-open {grid-column:1/-1;justify-self:end}
 :root[data-fc-theme] .fc-ios-brand-wash {height:var(--fc-appearance-header-height,112px)!important;background:#fffdf7!important}
 :root[data-fc-theme] .fc-appearance-header #fc-theme-toggle {min-width:70px;padding-inline:8px}
 :root[data-fc-theme] .fc-appearance-header .fc-theme-options button {min-width:0}
 :root[data-fc-theme] .fc-brand-original-lockup {background:transparent!important}
 :root[data-fc-theme] .fc-u-workbar #fc-theme-control {margin-left:0}
 :root[data-fc-theme] .fc-u-workbar .fc-ios-search-open {position:static!important;inset:auto!important;transform:none!important;flex:none;width:44px!important;margin:0!important}
 :root[data-fc-theme] .fc-u-workbar .fc-ios-search-caption {display:none!important}
 :root[data-fc-theme] .fc-u-workbar .fc-u-current {flex:1;min-width:0;padding-right:0!important}
 :root[data-fc-theme] body.fc-universe-working .fc-appearance-header {display:none!important}
 :root[data-fc-theme] #fc-theme-toggle {display:flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;padding:10px 14px;min-width:70px;min-height:44px}
 :root[data-fc-theme] #fc-theme-menu {position:absolute;right:0;top:52px;width:248px;max-width:calc(100vw - 32px);padding:16px;border:1px solid var(--fc-line);border-radius:18px;background:var(--fc-elevated);color:var(--fc-ink);box-shadow:var(--fc-shadow)}
 :root[data-fc-theme] #fc-theme-menu[hidden] {display:none!important}
 :root[data-fc-theme] .fc-theme-label {display:block;margin:0 0 12px;font-size:16px;font-weight:600}
 :root[data-fc-theme] .fc-theme-options {display:grid;grid-template-columns:1fr 1fr;gap:8px}
 :root[data-fc-theme] .fc-theme-options button {border-radius:12px;min-height:44px}
 :root[data-fc-theme] .fc-theme-status {margin:12px 0 0;font-size:14px;color:var(--fc-muted)}
 :root[data-fc-theme] .fc-u-workbar {gap:8px!important;padding-inline:12px!important}
 @media(max-width:760px) {
  :root[data-fc-theme] .fc-appearance-header {grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 12px}
  :root[data-fc-theme] .fc-appearance-header .fc-ios-heading {width:160px!important}
  :root[data-fc-theme] .fc-appearance-header .fc-ios-search-open {width:44px!important;padding:0!important;justify-content:center!important}
  :root[data-fc-theme] .fc-appearance-header .fc-ios-search-caption {display:none!important}
  :root[data-fc-theme] .fc-appearance-actions {gap:6px;width:176px;max-width:176px}
  :root[data-fc-theme] #fc-theme-toggle {min-width:64px;padding-inline:6px}
  :root[data-fc-theme] .fc-u-workbar #fc-theme-toggle {min-width:64px}
  :root[data-fc-theme] .fc-u-workbar .fc-u-current {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
 }
 @media(prefers-reduced-motion:reduce) {:root[data-fc-theme] * {scroll-behavior:auto!important;transition:none!important}}
 @media(forced-colors:active) {
  :root[data-fc-theme] {--fc-bg:Canvas!important;--fc-surface:Canvas!important;--fc-elevated:Canvas!important;--fc-soft:Canvas!important;--fc-ink:CanvasText!important;--fc-muted:CanvasText!important;--fc-line:ButtonText!important;--fc-primary:ButtonFace!important;--fc-primary-ink:ButtonText!important;--fc-selected:Highlight!important;--fc-selected-ink:HighlightText!important;--fc-focus:Highlight!important;--fc-link:LinkText!important}
 }
 @media print {#fc-theme-control{display:none!important}}
}

/* UI33: neutral menu surfaces and the Owner-confirmed Conti presentation regression. */
@layer fc-appearance {
 :root[data-fc-theme] :is(.fc-u-actions,#fc-u-search>div) {background:var(--fc-surface)!important;border-color:var(--fc-line)!important}
 :root[data-fc-theme] #fc-accounts-root :is(.account-kpi,.account-detail,.account-calendar details) {
  background:var(--fc-surface)!important;color:var(--fc-ink)!important;border-color:var(--fc-line)!important;border-radius:18px!important;
 }
 :root[data-fc-theme] #fc-accounts-root :is(.account-kpi span,.account-kpi small,.account-count,.account-source,.account-status,.account-search) {
  color:var(--fc-muted)!important;font:400 14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:normal!important;
 }
 :root[data-fc-theme] #fc-accounts-root :is(.account-kpi strong,.account-value,.account-row strong,.account-months strong) {color:var(--fc-ink)!important;font-family:inherit!important}
 :root[data-fc-theme] #fc-accounts-root .account-kpi strong {font-size:clamp(23px,2.5vw,32px)!important;font-weight:650!important;line-height:1.35!important}
 :root[data-fc-theme] #fc-accounts-root :is(.account-kpi::before,.account-detail::after) {background:var(--fc-line)!important;box-shadow:none!important}
 :root[data-fc-theme] #fc-accounts-root .account-intro::after {border-color:var(--fc-line)!important;box-shadow:none!important;opacity:.3!important}
 :root[data-fc-theme] #fc-accounts-root .account-months i {background:var(--fc-link)!important;box-shadow:none!important}
 :root[data-fc-theme] .account-header>a:last-child {color:#215c48!important;font-size:14px!important}
 :root[data-fc-theme] .account-header .account-brand[data-fc-original-brand="1454"] {display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;background:transparent!important;max-width:58%;min-width:0}
 :root[data-fc-theme] .account-header .account-brand[data-fc-original-brand="1454"] .fc-appearance-original-brand {display:block!important;width:220px!important;max-width:100%!important;height:auto!important;object-fit:contain!important}
 @media(max-width:520px) {:root[data-fc-theme] .account-header .account-brand[data-fc-original-brand="1454"] .fc-appearance-original-brand {width:168px!important}}
}
