/* Daily workspace, 24 October 2026.
   Appearance only for the existing Fund Model and AI Back Office. Their layout,
   charts, inputs, tabs, drilldowns and tours remain owned by the original assets.
   Screen-only rules leave the existing print treatment intact. */
@media screen {
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) {
    --bk-bg:#0b0d0d; --bk-panel:#171b19; --bk-panel-2:#202620; --bk-item:#1b221d;
    --bk-line:#303731; --bk-line-2:#586950; --bk-text:#ebeee9; --bk-muted:#a6ada8;
    --bk-cyan:#9db8aa; --bk-cyan-deep:#64816d; --bk-cyan-ink:#26352a; --bk-active:#2a372d;
    --bk-red:#dc9b9b; --bk-lav:#bda38b; --bk-blue:#9aadb5;
    --bk-display:"DM Sans","Segoe UI",system-ui,sans-serif;
  }
  html[data-ng="backoffice-book"] {
    --bg:var(--bk-bg); --panel:var(--bk-panel); --quiet:#141a16;
    --ink:var(--bk-text); --muted:var(--bk-muted); --line:var(--bk-line);
    --copper:var(--bk-lav); --green:var(--bk-cyan); --gold:var(--bk-lav);
  }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) body { background:#0b0d0d; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-screen {
    padding:6px; border-color:#343d34; border-radius:18px; background:#171d18;
    box-shadow:inset 0 1px 0 #ffffff08,0 18px 44px -20px #0009;
  }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-app { border-radius:12px; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-mast { background:#151b17; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-mark { background:#344337; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-mark i { background:#d2dece; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-badge {
    border-color:var(--bk-line-2); background:#27352a; color:var(--bk-text); box-shadow:none;
  }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-group { border-color:#303a31; background:#141a16; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) :is(.bk-panel,.bk-kpi,.fmb-slider,.bo-fig,.bo-preview) {
    background:linear-gradient(145deg,#1e261f,var(--bk-panel) 70%);
    box-shadow:inset 0 1px 0 #ffffff06,0 4px 12px #0002;
  }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-item:is([aria-current="page"],[aria-selected="true"],[aria-pressed="true"]) {
    background:var(--bk-active); color:var(--bk-text); box-shadow:inset 2px 0 var(--bk-cyan);
  }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-item:is([aria-current="page"],[aria-selected="true"],[aria-pressed="true"]) .bk-letter {
    border-color:#6c846b; background:#344536; color:#e2eadc;
  }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-item:is([aria-current="page"],[aria-selected="true"],[aria-pressed="true"]) .bk-item-sub { color:#c9d5c3; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) :is(.bk-app a:hover,.fmb-link:hover) { color:#d2dfcc; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-btn.is-accent { box-shadow:none; border-color:var(--bk-cyan-deep); }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-btn.is-accent:hover { background:#314135; color:#dce7d6; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-chip.is-lav { border-color:#76624d; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-chip.is-blue { border-color:#566e77; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-chip.is-red { border-color:#815e4b; }

  /* Readable labels with less tracking; values and source evidence keep their hierarchy. */
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) :is(.bk-item-name,.bk-label,.bk-kpi-label,.bk-btn,.bk-seg button,.bk-table th) { font-size:12px; letter-spacing:.035em; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) :is(.bk-item-sub,.bk-group-title,.bk-id-sub,.bk-asof,.bk-meta,.bk-chip) { font-size:11px; letter-spacing:.04em; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) :is(.bk-title,.fmb-title) { font-size:28px; font-weight:500; letter-spacing:-.035em; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) :is(.bk-panel-head h2,.bk-panel-head h3,.fmb-panel-head h3,.fmb-rules h3,.bo-panel-head h3,.bo-preview-head h3) { font-size:17px; font-weight:500; }
  html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-table td { border-bottom-color:#303a31; }

  /* Fund Model: preserve every capital category and the existing flow graph. */
  html[data-ng="fundmodel"] .fmb .fmb-seg button[aria-pressed="true"] { background:var(--bk-active); color:var(--bk-text); box-shadow:inset 0 -2px 0 var(--bk-lav); }
  html[data-ng="fundmodel"] .fmb .fmb-seg button { font-size:12px; letter-spacing:.03em; }
  html[data-ng="fundmodel"] :is(.fmb-slider-top,.fmb-alloc-key li,.fmb-legend) { color:#c4cebf; }
  html[data-ng="fundmodel"] :is(.fmb-slider-foot,.fmb-box-note,.fmb-row small,.fmb-bridge-line small,.fmb-legend,.fmb-alloc-key li,.fmb .fmb-kpi .bk-kpi-note) { font-size:12px; }
  html[data-ng="fundmodel"] .fmb-slider.is-moved { border-color:#8d7258; }
  html[data-ng="fundmodel"] .fmb .fmb-kpi .bk-kpi-value { font-family:var(--bk-display); font-weight:500; }
  html[data-ng="fundmodel"] :is(.fmb-row,.fmb-exits-table td,.fmb-exits-table th,.fmb-rules li) { border-top-color:#303a31; }
  html[data-ng="fundmodel"] :is(.fmb-delta,.fmb-live) { background:#1d2b20; border-color:#4b634e; }
  html[data-ng="fundmodel"] .fmb-delta.is-down { background:#30251e; border-color:#7d5a45; }
  html[data-ng="fundmodel"] .fmb-error { background:#33231e; border-color:#956b55; color:#f3d3bf; }
  html[data-ng="fundmodel"] :is(.fmb-company.is-invalid,.fmb-modenote) { border-color:var(--bk-line-2); }
  html[data-ng="fundmodel"] .fmb-company.is-invalid { border-color:#956b55; }
  html[data-ng="fundmodel"] :is(.fmb-bridge-bar,.fmb-share) { background:#303c31; }
  html[data-ng="fundmodel"] :is(.fmb-bridge-row.is-paid i,.fmb-key-call) { background:#9b8a76; }
  html[data-ng="fundmodel"] .fmb-bar-call { fill:#9b8a76; }
  html[data-ng="fundmodel"] .fmb-grid-line { stroke:#344036; }
  html[data-ng="fundmodel"] .fmb-seg-uncalled { background:repeating-linear-gradient(135deg,#65745f 0 2px,transparent 2px 5px); box-shadow:inset 0 0 0 1px #65745f; }
  html[data-ng="fundmodel"] .fmb-chart text { font-size:12px; }
  html[data-ng="fundmodel"] .fmb .fmb-table td.is-neg { color:var(--bk-red); }
  html[data-ng="fundmodel"] .fmb-table-wrap { scrollbar-color:var(--bk-line-2) transparent; }
  html[data-ng="fundmodel"] .fmb-tour { background:#1a241d; border-color:var(--bk-line); color:var(--bk-text); }
  html[data-ng="fundmodel"] .fmb-tour-orbit { background:#26352a; border-color:#61755d; color:#c2d6bb; box-shadow:none; }
  html[data-ng="fundmodel"] :is(.fmb-tour-title small,.fmb-tour-hint,.fmb-tour-preview p,.fmb-tour-cohort>span,.fmb-tour-cohort>small) { color:var(--bk-muted); font-size:12px; }
  html[data-ng="fundmodel"] .fmb .fmb-tour-toggle { border-color:#62765d; color:#d0dfc8; background:#28372b; box-shadow:none; font-size:12px; }
  html[data-ng="fundmodel"] .fmb .fmb-tour-toggle:hover { background:#344738; border-color:#8ca582; }
  html[data-ng="fundmodel"] .fmb-tour-toggle:focus-visible { outline-color:var(--bk-lav); }
  html[data-ng="fundmodel"] .fmb-tour-cohort { background:#202a22; border-color:var(--bk-line); }
  html[data-ng="fundmodel"] .fmb-tour-cohort>strong { color:var(--bk-text); }

  /* Back Office: the same muted workspace, including the existing review drawers. */
  html[data-ng="backoffice-book"] .bo-step[aria-selected="true"] { border-color:var(--bk-line-2); background:var(--bk-active); color:var(--bk-text); box-shadow:inset 0 -2px 0 var(--bk-lav); }
  html[data-ng="backoffice-book"] .bo-step[aria-selected="true"] small { color:#cad8c3; }
  html[data-ng="backoffice-book"] :is(.bo-step strong,.bo-step small,.bo-fig-head,.bo-fig-note,.bo-row .row-label,.bo-row .evidence,.check-item>span,.bo-gate p) { font-size:12px; letter-spacing:.025em; }
  html[data-ng="backoffice-book"] :is(.bo-summary,.check-item>span) { color:#bfccba; }
  html[data-ng="backoffice-book"] .bo-fig:hover { background:#242f26; }
  html[data-ng="backoffice-book"] .bo-meter { background:#324034; }
  html[data-ng="backoffice-book"] :is(.bo-row,.check-item) { border-bottom-color:#303a31; }
  html[data-ng="backoffice-book"] .bo-row .status { background:#26362a; border-color:#546e51; }
  html[data-ng="backoffice-book"] .bo-row .status.hold { background:#342b22; border-color:#78624b; }
  html[data-ng="backoffice-book"] .bo-row:hover { background:linear-gradient(90deg,#a7c2b10b,transparent 70%); }
  html[data-ng="backoffice-book"] .bo-gate { background:#30281f; }
  html[data-ng="backoffice-book"] .bo-gate p { color:#dfcbb7; }
  html[data-ng="backoffice-book"] .bo-tour { background:#19231c; }
  html[data-ng="backoffice-book"] .bo-tour-status { color:#c1d2ba; font-size:12px; }
  html[data-ng="backoffice-book"] .bo-tour[data-playing="true"] .bo-tour-status::before { box-shadow:none; }
  html[data-ng="backoffice-book"] .bo-tour-note { font-size:12px; }
  html[data-ng="backoffice-book"] .bo-tour-actions button { background:#29382d; border-color:#5c7457; color:#d2dfca; font-size:12px; }
  html[data-ng="backoffice-book"] .bo-tour-actions button:hover { background:#354938; border-color:#87a37c; }
  html[data-ng="backoffice-book"] .bo-tour-actions #tour-browse:hover { background:#27372b; }
  html[data-ng="backoffice-book"] .bo-tour-progress { background:#2c3c30; }
  html[data-ng="backoffice-book"] .bo-tour-progress i { background:var(--bk-cyan); }
  html[data-ng="backoffice-book"] .detail-drawer { background:#121914; }
  html[data-ng="backoffice-book"] .detail-drawer::before { background:linear-gradient(180deg,transparent,#758c6d,transparent); }
  html[data-ng="backoffice-book"] .lp-inspector { background:#1a231c; }
  html[data-ng="backoffice-book"] .formula { background:#a7c2b10a; }
  html[data-ng="backoffice-book"] :is(.technical-table table,.technical-table th,.technical-table td small,.lp-detail,.rule-grid small,.tech-metrics small,.basis-buttons button,.detail-layer-buttons button) { font-size:12px; }
  html[data-ng="backoffice-book"] .technical-table th { background:#202b22; }
  html[data-ng="backoffice-book"] .technical-table td { border-bottom-color:#344035; }
  html[data-ng="backoffice-book"] .scenario-controls option { background:var(--bk-panel-2); }
  @media (min-width:621px) {
    html[data-ng="fundmodel"] .fmb .fmb-kpi .bk-kpi-value { font-size:30px; }
  }
  /* Tighten the existing dashboard, without removing a single control or value. */
  @media (min-width:1101px) {
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-intro { padding:12px 40px 10px; }
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-intro h1 { font-size:30px; }
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .sk-model-notice { padding:7px 14px; margin-bottom:10px; }
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-mast { min-height:44px; padding-block:5px; }
    html[data-ng="fundmodel"] .fmb-tour { padding:6px 20px; }
    html[data-ng="fundmodel"] .fmb-sliders { margin-top:8px; }
    html[data-ng="fundmodel"] .fmb-slider { padding:7px 12px; }
    html[data-ng="fundmodel"] .fmb .fmb-slider input[type="range"] { margin:4px 0; }
    html[data-ng="fundmodel"] .fmb .fmb-kpi { padding:7px 12px; }
    html[data-ng="fundmodel"] .fmb .fmb-kpi .bk-kpi-value { margin:3px 0; }
    html[data-ng="fundmodel"] :is(.fmb-kpis,.fmb-grid) { margin-top:7px; }
  }
  @media (max-width:620px) {
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-screen { padding:0; border-radius:0; background:none; box-shadow:none; }
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-app { border-radius:0; }
    /* All views remain ordinary buttons, now visible without hunting along a strip. */
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-body { padding-inline:12px; }
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-intro { padding:12px 14px 10px; gap:7px; }
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-intro h1 { font-size:26px; }
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-lede { font-size:13px; line-height:1.45; }
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-mast { padding:10px 12px; gap:7px 12px; }
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-asof { gap:6px; }
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-item { min-height:56px; width:100%; gap:6px; padding:7px; white-space:normal; }
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-item-name { font:600 13px/1.25 var(--bk-body); letter-spacing:0; text-transform:none; white-space:normal; overflow-wrap:anywhere; }
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-item-sub { font-size:11px; line-height:1.3; letter-spacing:0; white-space:normal; }
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) .bk-group-title { padding:2px 4px 5px; letter-spacing:.04em; }
    html:is([data-ng="fundmodel"], [data-ng="backoffice-book"]) :is(.bk-btn,.bk-seg button) { font-size:13px; min-height:44px; }

    /* The same six Fund Model views and four assumptions take less vertical space. */
    html[data-ng="fundmodel"] .fmb .fmb-rail { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:auto; max-width:100%; gap:6px; overflow:visible; padding:10px 0 6px; }
    html[data-ng="fundmodel"] .fmb .fmb-rail:is(.is-more-left,.is-more-right) { mask-image:none; -webkit-mask-image:none; }
    html[data-ng="fundmodel"] .fmb-rail>.bk-group { min-width:0; padding:5px; }
    html[data-ng="fundmodel"] .fmb-rail .bk-items { display:grid; grid-auto-rows:1fr; gap:5px; }
    html[data-ng="fundmodel"] .fmb-rail .bk-items>li { min-width:0; }
    html[data-ng="fundmodel"] .fmb-rail .bk-item { height:100%; }
    html[data-ng="fundmodel"] .sk-model-notice { margin:0 12px 10px; padding:9px 11px; font-size:13px; line-height:1.45; }
    html[data-ng="fundmodel"] .fmb-tour { padding:8px 12px 9px; gap:6px; }
    html[data-ng="fundmodel"] .fmb-tour-copy { gap:7px; }
    html[data-ng="fundmodel"] .fmb-tour-title strong { font-size:13px; }
    html[data-ng="fundmodel"] .fmb .fmb-tour-toggle { min-width:100px; min-height:44px; padding:7px 10px; font-size:13px; }
    html[data-ng="fundmodel"] .fmb .fmb-seg button { font-size:13px; }
    html[data-ng="fundmodel"] .fmb .bk-main { padding-top:9px; }
    html[data-ng="fundmodel"] .fmb-sliders { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:10px; }
    html[data-ng="fundmodel"] .fmb-slider { padding:8px 9px; }
    html[data-ng="fundmodel"] .fmb-slider-top { display:grid; gap:1px; align-content:start; min-height:52px; font-size:13px; line-height:1.3; }
    html[data-ng="fundmodel"] .fmb-slider output { font-size:13px; white-space:normal; }
    html[data-ng="fundmodel"] .fmb-slider-foot { font-size:11px; line-height:1.35; letter-spacing:0; }
    html[data-ng="fundmodel"] :is(.fmb-row,.fmb-bridge-line,.fmb-rules li,.fmb-company summary,.fmb-fields label,.fmb-scenario-grid label,.fmb-round-fields label) { font-size:13px; }
    html[data-ng="fundmodel"] .fmb-table-wrap { overscroll-behavior-x:contain; scrollbar-width:auto; }
    html[data-ng="fundmodel"] .fmb-company summary { min-height:48px; }

    /* Seven workflows stay grouped; every tab is shown and its label can wrap. */
    html[data-ng="backoffice-book"] .bo-cases { display:grid; grid-template-columns:minmax(0,1fr); overflow:visible; gap:6px; padding:10px 0 6px; }
    html[data-ng="backoffice-book"] .bo-cases .bk-group { min-width:0; padding:5px; }
    html[data-ng="backoffice-book"] .bo-cases .bk-items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
    html[data-ng="backoffice-book"] .bo-mast .bk-mast-actions { gap:7px; margin-left:auto; }
    html[data-ng="backoffice-book"] .bo-mast .bk-badge { width:26px; height:26px; font-size:15px; }
    html[data-ng="backoffice-book"] .bo-tour { padding:7px 12px 9px; gap:5px 10px; }
    html[data-ng="backoffice-book"] .bo-tour-actions { width:100%; gap:6px; }
    html[data-ng="backoffice-book"] .bo-tour-actions button { flex:1; min-height:44px; padding:7px; font-size:13px; }
    html[data-ng="backoffice-book"] .bk-main.bo-main { gap:8px; padding-top:9px; }
    html[data-ng="backoffice-book"] :is(.bo-summary,.bo-row .evidence,.check-item>span,.bo-gate p,.bo-step strong,.bo-step small,.bo-fig-note) { font-size:13px; letter-spacing:0; line-height:1.4; }
    html[data-ng="backoffice-book"] .bo-step { min-height:58px; padding:8px; }
    html[data-ng="backoffice-book"] .bo-fig { padding:10px; }
    html[data-ng="backoffice-book"] .bo-row { min-height:48px; }

    /* Drawer toolbar stays separate from its scroll area; values keep their labels. */
    html[data-ng="backoffice-book"] :is(.detail-tools,.detail-drawer-head,.detail-layers,.detail-body) { padding-inline:14px; }
    html[data-ng="backoffice-book"] .detail-drawer-head { padding-block:12px; }
    html[data-ng="backoffice-book"] .detail-drawer-head h2 { font-size:24px; margin:6px 0; }
    html[data-ng="backoffice-book"] .detail-drawer-head p { font-size:13px; }
    html[data-ng="backoffice-book"] .detail-layers { padding-block:9px; }
    html[data-ng="backoffice-book"] .detail-body { padding-top:12px; }
    html[data-ng="backoffice-book"] :is(.detail-close,.detail-layer-buttons button,.basis-buttons button,.detail-other summary,.inspector-close) { min-height:44px; font-size:13px; letter-spacing:0; }
    html[data-ng="backoffice-book"] .detail-selection { margin-bottom:12px; padding:9px 11px; }
    html[data-ng="backoffice-book"] .detail-selection strong { font-size:18px; }
    html[data-ng="backoffice-book"] :is(.detail-selection small,.tech-metrics span,.tech-metrics small,.technical-table td,.technical-table td.numeric-cell,.rule-grid small) { font-size:13px; letter-spacing:0; }
    html[data-ng="backoffice-book"] .technical-table { margin-block:16px; }
    html[data-ng="backoffice-book"] .technical-table td:before { font-size:12px; letter-spacing:0; }
    html[data-ng="backoffice-book"] .technical-table td { gap:9px; }
    html[data-ng="backoffice-book"] .scenario-controls :is(input,select) { min-height:44px; font-size:16px; }
  }
  /* Deliverables keep their light paper, dark ink and original editorial type. */
  html[data-ng="backoffice-book"] :is(.institution-page,.doc-cover) { --bk-display:"Fraunces",Georgia,"Times New Roman",serif; color-scheme:light; }
}
