/* In-place Night Glass depth for the existing synthetic Back Office model.
   The source rows, calculations, controls, report previews and tour retain their layout. */
@media screen {
  html[data-ng="backoffice-book"] {
    --bk-bg:#05080b; --bk-panel:#0d151b; --bk-panel-2:#111d24; --bk-item:#101b22;
    --bk-line:#2b414b; --bk-line-2:#527483; --bk-text:#ecf5f7; --bk-muted:#b6c8cd;
    --bk-cyan:#a2e8f1; --bk-cyan-deep:#62a9b9; --bk-cyan-ink:#12313a; --bk-active:#15313b;
    --bk-red:#eaa29f; --bk-lav:#e6b086; --bk-blue:#9db8ce;
    --bg:#05080b; --panel:#0d151b; --quiet:#09131a; --ink:#ecf5f7;
    --muted:#b6c8cd; --line:#2b414b; --copper:#e6b086; --green:#a2e8f1; --gold:#e6b086;
  }
  html[data-ng="backoffice-book"] body { background:#05080b; }
  html[data-ng="backoffice-book"] .bk-screen.bo-screen {
    border-color:#34505d;
    background:#071015;
    box-shadow:inset 0 1px 0 #b0eaf514,0 18px 46px -15px #000c,0 0 35px #4cbfd914;
  }
  html[data-ng="backoffice-book"] .bo-app {
    background:radial-gradient(ellipse at 50% -16%,#172834 0,#081016 45%,#05090c 100%);
  }
  html[data-ng="backoffice-book"] .bk-mast.bo-mast { background:#0b141a; }
  html[data-ng="backoffice-book"] .bk-mark { background:#214350; }
  html[data-ng="backoffice-book"] .bk-mark i { background:#cef4f8; }
  html[data-ng="backoffice-book"] .bk-badge { border-color:#6599a7;background:#163a45;color:#e6f6f9;box-shadow:inset 0 1px 0 #ffffff1c; }
  html[data-ng="backoffice-book"] .bk-group { border-color:#30454f;background:#0a141a; }
  html[data-ng="backoffice-book"] .bk-item { background:#111d24; }
  html[data-ng="backoffice-book"] .bk-item[aria-selected="true"] {
    border-color:#67b4c3;
    background:linear-gradient(105deg,#1b4550,#132832 72%);
    box-shadow:inset 3px 0 #a2e8f1,0 0 18px #72d9ed55;
  }
  html[data-ng="backoffice-book"] .bk-item[aria-selected="true"] .bk-letter { border-color:#7ccad7;background:#23515c;color:#edfbfd; }
  html[data-ng="backoffice-book"] .bk-item[aria-selected="true"] .bk-item-sub { color:#cde5e9; }
  html[data-ng="backoffice-book"] .bo-receives,
  html[data-ng="backoffice-book"] :is(.bk-panel,.bo-fig,.bo-preview) {
    border-color:#304650;
    background:linear-gradient(145deg,#14232c 0,#0d171e 42%,#0a1117 100%);
    box-shadow:inset 0 1px 0 #c2f4fc0c,0 8px 17px #0005;
  }
  html[data-ng="backoffice-book"] .bo-tour {
    border-color:#34545e;
    background:linear-gradient(92deg,#0d2933,#0a161d 55%,#091117);
  }
  html[data-ng="backoffice-book"] .bo-tour-status { color:#c0f1f6; }
  html[data-ng="backoffice-book"] .bo-tour[data-playing="true"] .bo-tour-status::before { background:#a2e8f1;box-shadow:0 0 10px #80e2f2; }
  html[data-ng="backoffice-book"] .bo-tour-actions button { border-color:#588a97;background:#173642;color:#e2f8fa; }
  html[data-ng="backoffice-book"] .bo-tour-actions button:hover { border-color:#a2e8f1;background:#21505c; }
  html[data-ng="backoffice-book"] .bo-tour-actions #tour-browse:hover { background:#193440; }
  html[data-ng="backoffice-book"] .bo-step {
    border-color:#344b55;
    background:linear-gradient(160deg,#15212a,#101920);
    box-shadow:inset 0 1px 0 #d4f8fc0a;
  }
  html[data-ng="backoffice-book"] .bo-step[aria-selected="true"] {
    border-color:#8cd9e5;
    background:linear-gradient(145deg,#1b4753,#122c36);
    color:#effbfc;
    box-shadow:inset 0 0 0 1px #a2e8f166,0 0 18px #6be0f34d;
  }
  html[data-ng="backoffice-book"] .bo-step[aria-selected="true"] small { color:#d6eef1; }
  html[data-ng="backoffice-book"] .bo-summary,
  html[data-ng="backoffice-book"] .check-item>span { color:#c5d7db; }
  html[data-ng="backoffice-book"] .bo-fig {
    position:relative;
    background:radial-gradient(ellipse at 7% 0%,#9deaf616,transparent 62%),linear-gradient(145deg,#14232c 0,#0d171e 42%,#0a1117 100%);
    transform:translate3d(0,0,0);
    transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;
  }
  html[data-ng="backoffice-book"] .bo-fig:hover,
  html[data-ng="backoffice-book"] .bo-fig:focus-visible {
    border-color:#6594a2;border-left-color:var(--tone);
    background:linear-gradient(145deg,#1a303b,#0e1c25 68%);
    box-shadow:inset 0 1px 0 #c2f4fc1c,0 11px 21px #0008,0 0 20px #7adfed1a;
    transform:translate3d(0,-2px,0);
  }
  html[data-ng="backoffice-book"] .bo-meter { background:#273b44; }
  html[data-ng="backoffice-book"] .bo-meter i { box-shadow:0 0 8px color-mix(in srgb,var(--tone) 58%,transparent); }
  html[data-ng="backoffice-book"] :is(.bo-row,.check-item) { border-bottom-color:#2e434d; }
  html[data-ng="backoffice-book"] .bo-row {
    transition:background .22s ease,transform .22s ease;
  }
  html[data-ng="backoffice-book"] .bo-row:hover,
  html[data-ng="backoffice-book"] .bo-row:focus-visible {
    background:linear-gradient(90deg,#93e7f012,transparent 72%);
    transform:translate3d(2px,0,0);
  }
  html[data-ng="backoffice-book"] .bo-row .status { border-color:#487783;background:#173540;color:#b7edf4; }
  html[data-ng="backoffice-book"] .bo-row .status.hold { border-color:#906d52;background:#35271f;color:#f1c29d; }
  html[data-ng="backoffice-book"] .bo-gate {
    border-left-color:#e6b086;
    background:linear-gradient(90deg,#312219,#201b19 72%);
    box-shadow:inset 0 1px 0 #f8ddbd0b;
  }
  html[data-ng="backoffice-book"] .bo-gate p { color:#eed4c1; }
  html[data-ng="backoffice-book"] .detail-drawer { background:#081118; }
  html[data-ng="backoffice-book"] .detail-drawer::before { background:linear-gradient(180deg,transparent,#8fe0eb,transparent); }
  html[data-ng="backoffice-book"] .lp-inspector { background:#101c23; }
  html[data-ng="backoffice-book"] .formula { background:#84dbe80c; }
  html[data-ng="backoffice-book"] .technical-table th { background:#12232c; }
  html[data-ng="backoffice-book"] .technical-table td { border-bottom-color:#30434d; }
  html[data-ng="backoffice-book"] .bk-btn.is-accent { border-color:#6daebb;background:#143b45;color:#d9f5f9; }
  html[data-ng="backoffice-book"] .bk-btn.is-accent:hover { background:#205564;color:#f0fcfd; }
  html[data-ng="backoffice-book"] .bo-fig.skbo-react,
  html[data-ng="backoffice-book"] .bo-row.skbo-react,
  html[data-ng="backoffice-book"] .check-item.skbo-react {
    animation:skbo-react .62s ease-out backwards;
    animation-delay:var(--skbo-delay,0ms);
  }
  html[data-ng="backoffice-book"] .bo-fig.skbo-react .bo-fig-value {
    animation:skbo-value .62s ease-out backwards;
    animation-delay:var(--skbo-delay,0ms);
  }
  @keyframes skbo-react {
    from { transform:translate3d(0,5px,0);filter:brightness(1.22); }
    to { transform:translate3d(0,0,0);filter:brightness(1); }
  }
  @keyframes skbo-value {
    from { text-shadow:0 0 14px #a2e8f188; }
    to { text-shadow:0 0 0 transparent; }
  }
}
@media(prefers-reduced-motion:reduce){
  html[data-ng="backoffice-book"] .bo-fig,
  html[data-ng="backoffice-book"] .bo-row,
  html[data-ng="backoffice-book"] .check-item,
  html[data-ng="backoffice-book"] .bo-fig .bo-fig-value { animation:none!important;transition:none!important;transform:none!important; }
}
