/* IOVO Office: ONE shared theme layer; no screen defines its own palette. Loaded after calm.css and d8-mission.css.
   Exactly three themes: aqua, light (Day), dark (Night, IOVO orange #f47920). The sea (app/shared/iovo-sea/) sits behind a
   transparent page. Text must stay WCAG AA: office-theme-contrast.test.mjs parses the values below.
   Low-end, reduced transparency and no backdrop-filter get solid fills (html[data-glass="solid"], glass-kit.js). */

/* ---------- palettes ---------- */
html:root[data-theme="aqua"] {
  color-scheme: dark;
  --c-surface-page: #064b57;
  --c-surface-1: rgba(0, 30, 42, .26); --c-surface-2: rgba(0, 30, 42, .26); --c-surface-3: rgba(0, 30, 42, .26);
  --og-solid-1: #042f39; --og-solid-2: #063b47; --og-solid-3: #084957;
  --c-hairline: rgba(120, 230, 255, .11); --c-hairline-strong: rgba(120, 230, 255, .22);
  --c-text-1: #fbffff; --c-text-2: #f2fcfe;
  --office-text-halo: 0 0 1px rgba(1, 20, 28, .9), 0 0 4px rgba(1, 20, 28, .85), 0 0 10px rgba(1, 20, 28, .8), 0 0 18px rgba(1, 20, 28, .6); --office-tag-halo: none;
  --office-rail-group: #e3f5f8; --office-brand-line2: #d9feff; --office-header-sub: #e8fbfd;
  --office-topbar-band: rgba(8, 104, 122, .62);
  --c-primary: #c5fff6; --c-primary-ink: #022027;
  --c-cta: #56ecdb; --c-cta-ink: #03242c; --c-cta-soft: rgba(86, 236, 219, .16);
  --c-success: #3ee6a0; --c-warning: #ffb347; --c-danger: #ff6b6b; --c-info: #29b6f6;
  --c-success-ink: #c8ffe5; --c-warning-ink: #fff1d6; --c-danger-ink: #fff0f0; --c-info-ink: #e1f7ff;
  --c-track-credit: #fb923c; --c-track-contracts: #9ea8ff; --c-track-verification: #22d3ee;
  --c-track-install: #38bdf8; --c-track-financing: #a78bfa; --c-track-service: #2dd4bf;
  --c-glass-bg: rgba(0, 30, 42, .26); --c-glass-border: rgba(119, 236, 223, .70);
  --c-shadow-pop: 0 18px 48px rgba(0, 8, 16, .55), 0 2px 8px rgba(0, 8, 16, .35); --c-scrim: rgba(1, 10, 18, .6);
  --c-nav-active-bg: linear-gradient(90deg, rgba(10, 112, 120, .70), rgba(10, 98, 112, .56)); --c-nav-active-ring: rgba(96, 244, 228, .72); --c-nav-active-ink: #f4feff; --c-map-bg: #053540;
  --calm-fill: rgba(120, 230, 255, .05); --calm-fill-hover: rgba(120, 230, 255, .09);
  --og-page: radial-gradient(1200px 700px at 78% -10%, #167580 0%, transparent 60%), linear-gradient(180deg, #08535f 0%, #064b57 70%);
  --og-panel: rgba(0, 30, 42, .26); --og-panel-solid: #042f39; --og-pop: rgba(2, 44, 54, .88); --og-pop-solid: #063b47;
  --og-hi: rgba(160, 250, 255, .10); --og-field: rgba(120, 230, 255, .06); --og-field-hover: rgba(120, 230, 255, .1);
  --office-glass-sheen: rgba(190, 255, 250, .06);
  --og-shadow: inset 0 1px 2px #d8ffffa8, inset 0 0 9px #53fff94a, 0 0 2px #3ffffdcc, 0 0 14px #25e9d333, 0 12px 24px #001c2533;
  --og-sel: rgba(62, 230, 211, .16);
}
html:root, html:root[data-theme="dark"] {
  color-scheme: dark;
  /* Night (owner NIGHT UPDATE, Nov 4 00:05; values from CEO r9, app/shared/iovo-night-tokens.css on task/ceo-platform-look): near-black, black glass, thin neutral borders, orange for accents only. */
  --c-surface-page: #0a0a0a;
  --c-surface-1: rgba(10, 10, 10, .72); --c-surface-2: rgba(10, 10, 10, .72); --c-surface-3: rgba(10, 10, 10, .72);
  --og-solid-1: #0a0a0a; --og-solid-2: #0e0e0e; --og-solid-3: #141414;
  --c-hairline: rgba(255, 255, 255, .07); --c-hairline-strong: rgba(255, 255, 255, .14);
  --c-text-1: #f5f3f0; --c-text-2: #c4bfb9;
  --office-text-halo: 0 1px 2px rgba(0, 0, 0, .45);
  --office-rail-group: #c4bfb9; --office-brand-line2: #f5f3f0; --office-header-sub: #c4bfb9;
  --office-topbar-band: rgba(10, 10, 10, .30);
  --c-primary: #ff8a3d; --c-primary-ink: #1a0b00;
  --c-cta: #ff8a3d; --c-cta-ink: #1a0b00; --c-cta-soft: rgba(255, 138, 61, .14);
  /* Owner order 03:55 and review 05:00: black glass, thin neutral borders, orange for accents only. Success, info and every track are orange shades; only danger stays red. */
  --c-success: #ffb27a; --c-warning: #ffb347; --c-danger: #ff6b5b; --c-info: #ffb06b;
  --c-success-ink: #ffcfa6; --c-warning-ink: #ffce87; --c-danger-ink: #ffd5cf; --c-info-ink: #ffdbc0;
  --c-track-credit: #ff9d4d; --c-track-contracts: #e8b48a; --c-track-verification: #ffb27a;
  --c-track-install: #fbbf24; --c-track-financing: #ffc08a; --c-track-service: #d6b89c;
  --c-glass-bg: rgba(10, 10, 10, .72); --c-glass-border: rgba(255, 255, 255, .07);
  --c-shadow-pop: 0 18px 48px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .5); --c-scrim: rgba(0, 0, 0, .6);
  --c-nav-active-bg: linear-gradient(90deg, rgba(255, 138, 61, .24), rgba(255, 138, 61, .08)); --c-nav-active-ring: rgba(255, 138, 61, .45); --c-nav-active-ink: #ffffff; --c-map-bg: #0a0a0a;
  --calm-fill: rgba(255, 255, 255, .035); --calm-fill-hover: rgba(255, 255, 255, .07);
  --og-page: radial-gradient(ellipse at 50% -10%, #0e0e0e 0%, #0a0a0a 55%, #060606 100%);
  --og-panel: rgba(10, 10, 10, .72); --og-panel-solid: #0e0e0e; --og-pop: rgba(10, 10, 10, .92); --og-pop-solid: #121212;
  --og-hi: rgba(255, 255, 255, .04); --og-field: rgba(255, 255, 255, .035); --og-field-hover: rgba(255, 255, 255, .07);
  --office-glass-sheen: rgba(255, 255, 255, .03);
  --og-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 32px rgba(0, 0, 0, .55);
  --og-sel: rgba(255, 138, 61, .14);
}
/* Night only. The block above also starts with a bare html:root, so any token Aqua and Day do not redefine would leak into them. */
html:root:not([data-theme="light"], [data-theme="aqua"]) {
  --dot-aqua-a: #ff8a3d; --dot-aqua-b: #4a2a12; --mf-action-fill: #ff8a3d; --mf-action-ink: #1a0b00;
  --night-line: rgba(255, 255, 255, .1); --night-line-strong: rgba(255, 255, 255, .2); --night-fill: rgba(255, 138, 61, .08); --night-fill-strong: rgba(255, 138, 61, .18);
}
html:root[data-theme="light"] {
  color-scheme: light;
  --c-surface-page: #f5f8fa;
  --c-surface-1: rgba(255, 255, 255, .3); --c-surface-2: rgba(255, 255, 255, .3); --c-surface-3: rgba(255, 255, 255, .3);
  --og-solid-1: #ffffff; --og-solid-2: #ffffff; --og-solid-3: #eef3f6;
  --c-hairline: rgba(15, 30, 45, .08); --c-hairline-strong: rgba(15, 30, 45, .15);
  --c-text-1: #111c26; --c-text-2: #3f4d59;
  --office-text-halo: none;
  --office-rail-group: #0d4f6f; --office-brand-line2: #0b141a; --office-header-sub: #123a52;
  --office-topbar-band: rgba(244, 246, 248, .34);
  --c-primary: #054d63; --c-primary-ink: #ffffff;
  --c-cta: #b04a06; --c-cta-ink: #ffffff; --c-cta-soft: rgba(244, 121, 32, .12);
  /* The sheet's frozen kit palette (aqua-kit.css) is lighter than the Day text tokens; Day text sits on pale water, so it uses the AA tokens. */
  --aq-muted: var(--c-text-2); --aq-success: var(--c-success-ink);
  --c-success: #16a05a; --c-warning: #7f4a00; --c-danger: #a51f1f; --c-info: #08708c;
  --c-success-ink: #0f6438; --c-warning-ink: #7a4900; --c-danger-ink: #a51f1f; --c-info-ink: #055067;
  --c-track-credit: #a8560f; --c-track-contracts: #4b56c9; --c-track-verification: #087f70;
  --c-track-install: #1f5fbf; --c-track-financing: #7d36b8; --c-track-service: #2f7088;
  --c-glass-bg: rgba(255, 255, 255, .6); --c-glass-border: rgba(20, 40, 60, .16);
  --c-shadow-pop: 0 18px 48px rgba(15, 30, 45, .16), 0 2px 8px rgba(15, 30, 45, .08); --c-scrim: rgba(15, 30, 45, .28);
  --c-nav-active-bg: linear-gradient(90deg, rgba(10, 120, 150, .16), rgba(10, 120, 150, .10)); --c-nav-active-ring: rgba(10, 120, 150, .5); --c-nav-active-ink: #0b4d63; --c-map-bg: #e8eef2;
  --calm-fill: rgba(15, 30, 45, .03); --calm-fill-hover: rgba(15, 30, 45, .055);
  --og-page: linear-gradient(180deg, #ffffff 0%, #f5f8fa 60%);
  --og-panel: rgba(255, 255, 255, .6); --og-panel-solid: #ffffff; --og-pop: rgba(255, 255, 255, .64); --og-pop-solid: #ffffff;
  --og-hi: rgba(255, 255, 255, .35); --og-field: rgba(15, 30, 45, .035); --og-field-hover: rgba(15, 30, 45, .06);
  --office-glass-sheen: rgba(255, 255, 255, .55);
  --og-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 1px 0 #fff, 0 0 0 1px rgba(20, 40, 60, .09), 0 1px 2px rgba(20, 40, 60, .06), 0 12px 32px rgba(20, 40, 60, .10);
  --og-sel: rgba(10, 120, 150, .1);
}
:root {
  --office-space: 8px; --office-gap: 16px; --office-pad: 24px;
  --office-sidebar: 190px; --office-inset: 16px; --office-gutter: 0px;
  --aquis-corner-size: 101.2px; --aquis-corner-height: 117.5px; --aquis-corner-clearance: 127.2px;
  /* AQUIS slot (owner Nov 3 11:30, OWNER-RULES 2.6): a full-height right column as wide as the AQUIS drop plus a 12px gap.
     Every screen's content (title row and every panel) ends on the slot's left edge; nothing sits under AQUIS. */
  --office-aquis-pocket-width: 101.2px;
  --office-aquis-slot: calc(var(--office-aquis-pocket-width) + 12px);
  --office-aquis-rail: calc(var(--office-inset) + var(--office-aquis-slot));
  /* ONE FRAME, ONE SCROLLER, ONE SCROLL DISTANCE (Daniel, 12 Nov 2026: "make today the standard scroll").
     Every Office screen and sub-screen uses these named values and no private copy of them:
       --office-frame-top     space above the title line inside the content area
       --office-aquis-rail    the right line every title row and card ends on (above)
       --office-scroll-foot   empty space under the last card when the content area is scrolled to its end (Today's 32px)
     The content area (main#contenido.shx-content) is the only thing that scrolls a screen; it never scrolls further
     than Today does at the same window size (S). The guard test scripts/tests/office-one-scroll-rule.browser.test.mjs
     measures S on Today and fails any screen that breaks the frame, the scroller or S. */
  --office-frame-top: 12px;
  --office-scroll-foot: 32px;
  /* Glass panel laws L1/L2: 20px inside padding (16px at 1366), 16px gutters. Shared by every screen. */
  --office-panel-pad: 20px; --office-panel-gap: 16px;
  --office-avatar: 32px; --office-img-radius: 12px;
  --aq-bg: var(--c-surface-page); --aq-card: var(--og-panel); --aq-field: var(--og-field);
  --aq-ink: var(--c-text-1); --aq-muted: var(--c-text-2); --aq-accent: var(--c-primary);
  --aq-edge: var(--c-glass-border); --aq-line: var(--c-hairline-strong); --aq-shadow: var(--og-shadow);
  --aq-blur: var(--og-blur-panel);
  --og-radius: 17px; --og-radius-s: 12px; --og-radius-c: 10px;
  --og-spring: cubic-bezier(.2, .9, .25, 1.15);
}
/* Only material tokens beat the legacy water selector; geometry keeps its specificity for AQUIS and phone states. */
html:root, html:root[data-theme] {
  --og-blur: saturate(170%) blur(28px);
  --og-blur-panel: blur(3px) saturate(145%);
}

/* Expanded AQUIS: its width token stays authoritative. */
:root[data-aquis-dock="open"] { --office-aquis-rail: max(calc(var(--office-inset) + var(--office-aquis-slot)), calc(var(--aq-dock-w, 380px) + 24px)); }
@media (max-width: 1440px) { :root { --office-panel-pad: 16px; } }

/* Shared image frame (L5) and avatar (L6) for every screen job. Photos 4:3, products 1:1 (data-ratio="1/1"), captions go under the frame. */
.og-img { margin: 0; display: grid; gap: 6px; min-width: 0; }
.og-img > :is(img, picture, .og-img__media) { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--office-img-radius); border: 1px solid var(--c-glass-border); background: none; overflow: hidden; }
.og-img[data-ratio="1/1"] > :is(img, picture, .og-img__media) { aspect-ratio: 1 / 1; }
.og-img > figcaption { font-size: 13px; line-height: 1.3; color: var(--c-text-2); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Avatar: the person's real profile photo (img), initials only when none is set (.og-avatar--initials, no img). */
.og-avatar { box-sizing: border-box; flex: none; display: inline-grid; place-items: center; width: var(--office-avatar); height: var(--office-avatar); border-radius: 50%; overflow: hidden; border: 1px solid var(--c-glass-border); font: 600 12px/1 var(--font-ui); color: var(--c-text-1); background: color-mix(in srgb, var(--c-primary) 18%, transparent); }
.og-avatar > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Owner rule 2.2: only authorized navigation. Departments and Control wait for the capability read so a forbidden label never flashes; Trabajo shows at once. */
html body [data-shell] .shx-rail__retry { display: grid; grid-template-columns: 18px 1fr; gap: 6px 8px; align-items: start; margin: 12px 16px; font: 400 13px/18px var(--font-ui); color: var(--c-text-2); }
html body [data-shell] .shx-rail__retry-btn { grid-column: 2; justify-self: start; min-height: 32px; padding: 0 12px; border: 1px solid var(--c-glass-border); border-radius: 10px; background: var(--office-pill-fill); color: var(--c-text-1); font: inherit; cursor: pointer; }
html body [data-shell] .shx-rail [data-group][hidden], html body [data-shell] .shx-rail__sections > li[hidden], html body [data-shell] .shx-subtab[hidden] { display: none !important; }
html body [data-shell] .shx-rail[data-rail]:not([data-nav-ready]) :is([data-group="departments"], [data-group="control"]) { visibility: hidden; }
/* Review F7: the embedded Despacho calendar painted near-opaque navy in Aqua. Same glass fill as every panel; Day and Night keep their own. */
html[data-office-frame][data-theme="aqua"] .aqua-cal { background: var(--og-panel) !important; border: 1px solid var(--c-glass-border) !important; border-radius: var(--og-radius) !important; }
html[data-office-frame][data-theme="aqua"] :is(.aqua-cal-lanes, .ds-table.queue-table) { background: transparent !important; }
html[data-office-frame][data-theme="aqua"] .aqua-cal-visit { background: rgba(0, 30, 42, .38) !important; }
html[data-office-frame][data-theme="aqua"] .aqua-cal :is(button, a):not(.primary-btn, [aria-pressed="true"]) { background: rgba(0, 30, 42, .34) !important; }
/* Aqua water light: page mean was 4-6 levels brighter than the approved standard, which also held text under 4.5:1 near the top. */
html:root[data-theme="aqua"] #sea-light { opacity: .76; }
/* The brightest animal passing behind panel text is what still held some runs under 4.5:1 (office-frame-contrast-sweep). Day and Night already dim this layer (aqua-sea.css). */
html:root[data-theme="aqua"] #study-life { opacity: .78; }
/* Text a screen puts directly on the water, with no panel under it: a soft local scrim (same tint as the glass, no blur), so it holds 4.5:1 while an animal passes. */
html:root[data-theme="aqua"] [data-shell] :is(.mf-lender-overview > h2, .mf-lender-overview > .money-note, .keeper-embedded p.muted, .shx-section-label, .scv-kpi__label) { width: fit-content; background: rgba(0, 30, 42, .34); box-shadow: 0 0 10px 6px rgba(0, 30, 42, .34); border-radius: 8px; }
/* ---------- low-end and reduced transparency: same colors, solid tinted fills, no blur ---------- */
html:root[data-glass="solid"] {
  --c-surface-1: var(--og-solid-1); --c-surface-2: var(--og-solid-2); --c-surface-3: var(--og-solid-3); --c-glass-bg: var(--og-panel-solid);
  --og-panel: var(--og-panel-solid); --og-pop: var(--og-pop-solid); --og-blur: none; --og-blur-panel: none;
}
html:root[data-theme="aqua"][data-glass="solid"] { --office-text-halo: none; }
@media (prefers-reduced-transparency: reduce) {
  html:root[data-theme="aqua"] { --office-text-halo: none; }
  html:root:is([data-theme], :not([data-theme])) {
    --c-surface-1: var(--og-solid-1); --c-surface-2: var(--og-solid-2); --c-surface-3: var(--og-solid-3); --c-glass-bg: var(--og-panel-solid);
    --og-panel: var(--og-panel-solid); --og-pop: var(--og-pop-solid); --og-blur: none; --og-blur-panel: none;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html:root[data-theme="aqua"] { --office-text-halo: none; }
  html:root:is([data-theme], :not([data-theme])) {
    --c-surface-1: var(--og-solid-1); --c-surface-2: var(--og-solid-2); --c-surface-3: var(--og-solid-3); --c-glass-bg: var(--og-panel-solid);
    --og-panel: var(--og-panel-solid); --og-pop: var(--og-pop-solid);
  }
}

/* ---------- page: solid root color under the sea; the body turns transparent while the sea runs ---------- */
html:root { background: var(--c-surface-page) !important; background-image: none !important; }
html body { background: var(--og-page), var(--c-surface-page) !important; min-height: 100vh; }
html:root[data-theme="aqua"] { --office-ray-opacity: 1; --office-pill-fill: rgba(0, 80, 98, .6); --office-search-fill: rgba(15, 141, 159, .5); --office-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3f5f8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5l9-2v18M13 9l7 2v10M2 21h20M8 8h1M8 12h1M8 16h1M16 13h1M16 17h1'/%3E%3C/svg%3E"); }
html:root[data-theme="light"] { --office-ray-opacity: 0; --office-pill-fill: rgba(255, 255, 255, .7); --office-search-fill: rgba(255, 255, 255, .78); --office-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111c26' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5l9-2v18M13 9l7 2v10M2 21h20M8 8h1M8 12h1M8 16h1M16 13h1M16 17h1'/%3E%3C/svg%3E"); }
html:root[data-theme="dark"], html:root { --office-ray-opacity: .36; --office-pill-fill: rgba(16, 16, 16, .7); --office-search-fill: rgba(255, 255, 255, .05); --office-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4bfb9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5l9-2v18M13 9l7 2v10M2 21h20M8 8h1M8 12h1M8 16h1M16 13h1M16 17h1'/%3E%3C/svg%3E"); }
html[data-glass="solid"] body { background: var(--c-surface-page) !important; }
/* An admitted department iframe shares the parent's sea: no opaque fallback rectangle. */
html:root[data-office-frame], html[data-office-frame] body { background: transparent !important; background-image: none !important; }
html [data-shell], html [data-office-next], html [data-shell] :is(.shx-main, .shx-content, .shx-app, section[data-view]) { background: transparent !important; background-image: none !important; }

/* One glass layer: fill token plus sheen, never a second full-surface coat. Backing stays local to text runs (--office-text-halo,
   owner Nov 2 17:20); filled controls and tags clear it. office-frame-glass.browser.mjs measures the result. */
html [data-shell] { text-shadow: var(--office-text-halo); }
html [data-shell] :is(button, .button, a.button, input, select, textarea, [role="tab"], [aria-current="page"], svg, svg *, canvas, .shx-nav[aria-current="page"], .iox-chip, .iox-status, .og-pill, .cb-avatar) { text-shadow: none; }
html [data-shell] :is([class*="badge"], [class*="chip"], [class*="pill"], [class*="avatar"], [role="button"]:not(tr), summary, kbd, code) { text-shadow: var(--office-tag-halo, inherit); }
/* Text on bare glass keeps its backing even inside a control: sidebar labels and table-row text have no fill of their own, so a glowing animal passing behind them must not drop them under 4.5:1. */
html [data-shell] .shx-rail .shx-nav:not([aria-current="page"]) .shx-rail__label { text-shadow: var(--office-text-halo); }
html [data-shell] .ff-record > summary { text-shadow: var(--office-text-halo); }
/* Header actions sit on open water: a light tint lifted the lit water behind their label under 4.5:1. They take the same dark pill as the Sección selector beside them. */
html:root[data-theme="aqua"] [data-shell] [data-office-header] .button:not(.primary-btn, .primary, [aria-pressed="true"], [aria-current="page"]) { background: var(--office-pill-fill) !important; }
/* Review F1 without a plate: behind the expanded sidebar the glowing animals fade to 30% (full again 80 px past the rail). The rail labels sit on bare glass, so the brightest pixel behind them stays low enough for 4.5:1; the glass, the labels' layout and the animals everywhere else are untouched. */
@media (min-width: 881px) {
  /* The same fade covers the header band (top bar, title, subtitle, Sección selector sit on open sea with no panel under them): 30% down to the header's lower edge, full again 110 px below. */
  html:root[data-theme="aqua"] #study-life { --header-fade-edge: 140px; -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .3) var(--header-fade-edge), #000 calc(var(--header-fade-edge) + 110px)); mask-image: linear-gradient(180deg, rgba(0, 0, 0, .3) var(--header-fade-edge), #000 calc(var(--header-fade-edge) + 110px)); }
  html:root[data-theme="aqua"]:has([data-shell] .shx-rail[data-rail-expanded="true"]) #study-life { --rail-edge: calc(var(--office-inset) + var(--office-sidebar)); -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) calc(var(--rail-edge) - 20px), #000 calc(var(--rail-edge) + 80px)), linear-gradient(180deg, rgba(0, 0, 0, .3) var(--header-fade-edge), #000 calc(var(--header-fade-edge) + 110px)); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) calc(var(--rail-edge) - 20px), #000 calc(var(--rail-edge) + 80px)), linear-gradient(180deg, rgba(0, 0, 0, .3) var(--header-fade-edge), #000 calc(var(--header-fade-edge) + 110px)); -webkit-mask-composite: source-in; mask-composite: intersect; }
}
/* A status paragraph inside a translucent clickable card needs its own local
   text backing; the control and its icons keep their explicit halo reset. */
html:root[data-theme="aqua"] [data-shell] [role="button"] [role="status"] { text-shadow: var(--office-text-halo); }
html body dialog[data-office-modal] { text-shadow: var(--office-text-halo); }
/* ---------- rail + top bar: glass ---------- */
html [data-shell] .shx-rail { background: var(--og-panel) !important; background-image: var(--og-panel-layers, linear-gradient(160deg, var(--office-glass-sheen), transparent 40%)) !important; background-attachment: var(--og-panel-attach, scroll) !important; background-size: var(--og-panel-size, auto) !important; -webkit-backdrop-filter: var(--og-blur-panel); backdrop-filter: var(--og-blur-panel); border-right: 1px solid var(--c-hairline) !important; }
/* At the top the controls float as glass pills; once content scrolls under the bar (data-office-scrolled) the band returns. */
html:root body [data-shell] .shx-topbar.shx-topbar { background: transparent !important; background-image: none !important; border-bottom: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html:root body [data-shell] .shx-topbar.shx-topbar[data-office-scrolled] { background: var(--og-panel) !important; background-image: linear-gradient(var(--office-topbar-band), var(--office-topbar-band)) !important; -webkit-backdrop-filter: var(--og-blur-panel) !important; backdrop-filter: var(--og-blur-panel) !important; }
html:root body [data-shell] .shx-topbar :is(.shx-office-picker, .shx-command, .shx-sync, .shx-lang, .shx-bell > button, .iovo-sea-seg) {
  background: var(--office-pill-fill) !important; border: 1px solid var(--c-glass-border) !important; border-radius: 12px !important; box-shadow: inset 0 1px 0 var(--og-hi) !important;
}
html:root body [data-shell] .shx-topbar .shx-command.shx-command.shx-command { background: var(--office-search-fill) !important; }
html:root body [data-shell] .shx-topbar .shx-command input::placeholder { color: var(--c-text-2); opacity: 1; }
/* A native select takes no pseudo-elements, so the icons sit on the picker. */
html:root body [data-shell] .shx-topbar .shx-office-picker.shx-office-picker.shx-office-picker {
  background: var(--office-building) no-repeat 10px center / 20px 20px, var(--og-chev) no-repeat right 10px center / 12px 12px, var(--office-pill-fill) !important;
}
@media (min-width: 881px) {
  html:root body [data-shell] .shx-topbar :is(.shx-office-picker, .shx-command, .shx-sync) { height: 38px !important; min-height: 38px !important; box-sizing: border-box; }
  html:root body [data-shell] .shx-topbar .shx-bell { display: grid; place-items: center; }
  html:root body [data-shell] .shx-topbar .shx-bell > button { width: 38px; height: 38px; min-width: 38px; min-height: 38px; padding: 0; }
  html:root body [data-shell] .shx-topbar .shx-user { width: 44px; min-width: 44px; flex: 0 0 44px; height: 40px; }
  html:root body [data-shell] .shx-topbar .shx-user .iox-avatar { width: 36px; height: 36px; }
}
/* Universal concentric EN | ES pill (36px outer / 28px inner, 3px inset) matching Field Mode, Dashboard, League & Tech Portal */
html:root body [data-shell] .shx-topbar :is(.shx-lang, #office-lang-picker, [data-lang-toggle]) {
  display: inline-flex !important;
  align-items: center !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 3px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
html:root body [data-shell] .shx-topbar :is(.shx-lang, #office-lang-picker, [data-lang-toggle]) .shx-seg {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
}
html:root body [data-shell] .shx-topbar :is(.shx-lang, #office-lang-picker, [data-lang-toggle]) .shx-seg [data-lang-opt] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--c-text-2) !important;
  font: 700 11.5px/1 var(--font-ui, 'DM Sans', system-ui, sans-serif) !important;
  letter-spacing: 0.04em !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
html:root[lang^="en"] body [data-shell] .shx-topbar :is(.shx-lang, #office-lang-picker, [data-lang-toggle]) [data-lang-opt="en"],
html:root[lang^="es"] body [data-shell] .shx-topbar :is(.shx-lang, #office-lang-picker, [data-lang-toggle]) [data-lang-opt="es"],
html:root body [data-shell] .shx-topbar :is(.shx-lang, #office-lang-picker, [data-lang-toggle]) [data-lang-opt]:is([data-active="true"], [aria-current="true"], .is-active) {
  background: #4dd9c0 !important;
  color: #032129 !important;
  box-shadow: 0 2px 10px rgba(77, 217, 192, 0.36) !important;
  text-shadow: none !important;
}
html:root[data-theme="light"][lang^="en"] body [data-shell] .shx-topbar :is(.shx-lang, #office-lang-picker, [data-lang-toggle]) [data-lang-opt="en"],
html:root[data-theme="light"][lang^="es"] body [data-shell] .shx-topbar :is(.shx-lang, #office-lang-picker, [data-lang-toggle]) [data-lang-opt="es"],
html:root[data-theme="light"] body [data-shell] .shx-topbar :is(.shx-lang, #office-lang-picker, [data-lang-toggle]) [data-lang-opt]:is([data-active="true"], [aria-current="true"], .is-active) {
  background: #0e7490 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(14, 116, 144, 0.28) !important;
  text-shadow: none !important;
}
html:root[data-theme="dark"][lang^="en"] body [data-shell] .shx-topbar :is(.shx-lang, #office-lang-picker, [data-lang-toggle]) [data-lang-opt="en"],
html:root[data-theme="dark"][lang^="es"] body [data-shell] .shx-topbar :is(.shx-lang, #office-lang-picker, [data-lang-toggle]) [data-lang-opt="es"],
html:root[data-theme="dark"] body [data-shell] .shx-topbar :is(.shx-lang, #office-lang-picker, [data-lang-toggle]) [data-lang-opt]:is([data-active="true"], [aria-current="true"], .is-active) {
  background: #f47920 !important;
  color: #1a0b02 !important;
  box-shadow: 0 2px 10px rgba(244, 121, 32, 0.38) !important;
  text-shadow: none !important;
}
html [data-shell] .shx-nav[aria-current="page"] { background: var(--c-nav-active-bg) !important; color: var(--c-nav-active-ink) !important; border-radius: 12px !important; box-shadow: inset 0 0 0 1px var(--c-nav-active-ring), 0 0 10px color-mix(in srgb, var(--c-nav-active-ring) 30%, transparent) !important; }
html [data-shell] .shx-workspace { background: var(--og-field) !important; border: 1px solid var(--c-hairline) !important; }
html [data-shell] .shx-command { background: var(--og-field) !important; border: 1px solid var(--c-hairline-strong) !important; border-radius: 12px !important; }

/* ---------- cards / panels: one glass card on every screen ---------- */
html [data-shell] .shx-content :is(
  .tb-panel, .tb-brief, .tb-approve, .cb-panel, .cb-kpi, .cb-tablewrap, .cb-preview, .cp-panel, .cp-card, .cp-head,
  .hr-panel, .hr-card, .iox-card, .shx-empty, .department-access, .osi-panel, .iog-panel, .osf-panel, .imr-root, .omc,
  .keeper-embedded .glass, .og-card, [data-og-card],
  .op-deal, .op-empty, [data-intake-state="read-only"], .ccw-panel, .ccw-work .office-overview__metric, .scw-view > .iox-card, .scw-grid > .iox-card, .scw-lenders > .iox-card,
  .dsp-panel, .ins-panel, .ins-week, .osw-panel, .osw-kpi, .mf-panel, .mf-kpi, .mf-flow, .money-card, .money-tracks,
  .sup8-panel, .adm-card, .adm-metric, .svc-stat, .tec-card, .verify-queue, .verify-selected, .verify-evidence,
  .scv-panel, .vivo-panel, .cs-panel
):not(:is(.og-card, .hr-panel, .cp-panel, .cb-panel, .tb-panel, .iox-card, .keeper-embedded .glass) :is(.og-card, .hr-card, .iox-card, .cp-card, .cb-kpi, .glass)),
html[data-office-frame] :is(.date-strip, .panel, .tech-column, .board-status, .ds-stat) {
  background: var(--og-panel) !important; background-image: var(--og-panel-layers, linear-gradient(160deg, var(--office-glass-sheen), transparent 40%)) !important; background-attachment: var(--og-panel-attach, scroll) !important; background-size: var(--og-panel-size, auto) !important;
  border: 1px solid var(--c-glass-border) !important; border-radius: var(--og-radius) !important;
  box-shadow: var(--og-shadow) !important;
  -webkit-backdrop-filter: var(--og-blur-panel); backdrop-filter: var(--og-blur-panel);
}
/* nested cards stay flat inside a glass card (no box-in-box glass) */
html [data-shell] .shx-content :is(.og-card, .hr-panel, .cp-panel, .cb-panel, .tb-panel, .iox-card, .keeper-embedded .glass) :is(.og-card, .hr-card, .iox-card, .cp-card, .cb-kpi, .glass, .tb-dept, .tb-call) {
  background: var(--og-field) !important; background-image: none !important; border: 1px solid var(--c-hairline) !important;
  border-radius: var(--og-radius-s) !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* ---------- tables ---------- */
html [data-shell] .shx-content table { border-collapse: separate; border-spacing: 0; background: transparent !important; }
html [data-shell] .shx-content :is(th, [role="columnheader"]) { background: transparent !important; color: var(--c-text-2) !important; font: 600 12px/1.3 var(--font-ui) !important; letter-spacing: 0 !important; text-transform: none !important; border-bottom: 1px solid var(--c-hairline) !important; }
html [data-shell] .shx-content td { border-bottom: 1px solid var(--c-hairline) !important; background-color: transparent; }
html [data-shell] .shx-content tbody tr:hover > td { background-color: var(--calm-fill) !important; }
html [data-shell] .shx-content tbody tr[aria-selected="true"] > td, html [data-shell] .shx-content tbody tr.is-selected > td { background-color: var(--og-sel) !important; }

/* ---------- tabs + segmented controls ---------- */
html [data-shell] .shx-subtab[aria-selected="true"], html [data-shell] .shx-subtab[aria-current="page"] { color: var(--c-text-1) !important; }
html [data-shell] .shx-subtab[aria-selected="true"]::after, html [data-shell] .shx-subtab[aria-current="page"]::after { background: var(--c-primary) !important; }
html [data-shell] :is(.shx-seg, .og-seg, .hr-tabs, .cb-tabs, .tb-seg, [data-og-seg]) {
  display: inline-flex; gap: 2px; padding: 3px !important; border-radius: 999px !important; border: 1px solid var(--c-hairline-strong) !important;
  background: var(--og-field) !important; box-shadow: inset 0 1px 0 var(--og-hi) !important;
}
html [data-shell] :is(.shx-seg, .og-seg, .hr-tabs, .cb-tabs, .tb-seg, [data-og-seg]) > :is(button, a, [role="tab"]) {
  border: 0 !important; border-radius: 999px !important; background: transparent !important; color: var(--c-text-2) !important; box-shadow: none !important;
  transition: background-color 160ms ease, color 160ms ease;
}
html [data-shell] :is(.shx-seg, .og-seg, .hr-tabs, .cb-tabs, .tb-seg, [data-og-seg]) > :is(button, a, [role="tab"]):hover { color: var(--c-text-1) !important; }
html [data-shell] :is(.shx-seg, .og-seg, .hr-tabs, .cb-tabs, .tb-seg, [data-og-seg]) > :is([aria-selected="true"], [aria-pressed="true"], [aria-current="true"], [aria-current="page"], .is-active, [data-active="true"]) {
  background: var(--c-surface-3) !important; color: var(--c-text-1) !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .18), inset 0 1px 0 var(--og-hi) !important;
}
:root[data-theme="light"] [data-shell] :is(.shx-seg, .og-seg, .hr-tabs, .cb-tabs, .tb-seg, [data-og-seg]) > :is([aria-selected="true"], [aria-pressed="true"], [aria-current="true"], [aria-current="page"], .is-active, [data-active="true"]) { background: #fff !important; box-shadow: 0 1px 3px rgba(15, 30, 45, .12) !important; }

/* ---------- inputs (skip Mail's nested search input inside .im-search pill) ---------- */
html [data-shell] :is(.shx-content, .og-sheet) :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [data-im-search], [data-im-team-search], .im-mb-search), textarea, select) {
  background-color: var(--og-field) !important; border: 1px solid var(--c-hairline-strong) !important; border-radius: var(--og-radius-c) !important;
  color: var(--c-text-1) !important; box-shadow: inset 0 1px 0 rgba(0, 0, 0, .04) !important; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
html [data-shell] :is(.shx-content, .og-sheet) :is(input:not([data-im-search], [data-im-team-search], .im-mb-search), textarea, select):hover:not(:disabled) { background-color: var(--og-field-hover) !important; }
html [data-shell] :is(.shx-content, .og-sheet) :is(input:not([data-im-search], [data-im-team-search], .im-mb-search), textarea, select):focus-visible { outline: none !important; border-color: var(--c-primary) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 28%, transparent) !important; }
html [data-shell] :is(.shx-content, .og-sheet) ::placeholder { color: color-mix(in srgb, var(--c-text-2) 80%, transparent); }
html [data-shell] :is(.shx-content, .og-sheet) :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--c-primary); }

/* ---------- buttons (Apple Glass circular pill standard across desktop & mobile) ---------- */
html [data-shell] .shx-content .iox-btn--secondary, html [data-shell] .shx-content :where(button:not([class])) {
  background: var(--og-field) !important; border: 1px solid var(--c-hairline-strong) !important; border-radius: 999px !important; color: var(--c-text-1) !important;
  box-shadow: inset 0 1px 0 var(--og-hi) !important; transition: background-color 160ms ease, border-color 160ms ease;
}
html [data-shell] .shx-content .iox-btn--secondary:hover:not(:disabled) { background: var(--og-field-hover) !important; border-color: color-mix(in srgb, var(--c-primary) 40%, var(--c-hairline-strong)) !important; }
html [data-shell] .iox-btn--primary, html [data-shell] .shx-content :is(.og-btn--primary, [data-og-primary]) {
  background: var(--c-cta) !important; color: var(--c-cta-ink) !important; border: 0 !important; border-radius: 999px !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 16px color-mix(in srgb, var(--c-cta) 26%, transparent) !important;
}
html [data-shell] .iox-btn--primary:hover:not(:disabled) { filter: brightness(1.06) !important; }
html [data-shell] .iox-btn:disabled, html [data-shell] .iox-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* screen-local buttons that painted their own colors read the one palette */
html [data-shell] .shx-content :is(.tb-btn, .cb-btn, .cp-btn, .hr-btn, .hr-mini) {
  background: var(--og-field) !important; background-image: none !important; border: 1px solid var(--c-hairline-strong) !important; border-radius: 999px !important;
  color: var(--c-text-1) !important; box-shadow: inset 0 1px 0 var(--og-hi) !important; text-shadow: none !important;
}
html [data-shell] .shx-content :is(.tb-btn, .cb-btn, .cp-btn, .hr-btn, .hr-mini):hover:not(:disabled) { background: var(--og-field-hover) !important; border-color: color-mix(in srgb, var(--c-primary) 45%, var(--c-hairline-strong)) !important; }
html [data-shell] .shx-content :is(.tb-cta, .cb-new, .cp-cta, .hr-primary, .tb-approve .tb-btn) { background: var(--c-cta) !important; color: var(--c-cta-ink) !important; border: 0 !important; border-radius: 999px !important; }

/* ---------- pills / chips ---------- */
html [data-shell] .shx-content :is(.iox-chip, .iox-status, .og-pill) { border-radius: 999px !important; border: 1px solid var(--c-hairline-strong) !important; background: var(--og-field) !important; color: var(--c-text-2) !important; }

/* ---------- empty state ---------- */
html [data-shell] .shx-empty { justify-items: start; }

/* ---------- drawers, menus, popovers: frosted glass ---------- */
html [data-shell] .iox-drawer, html .iox-drawer {
  background: var(--og-pop) !important; -webkit-backdrop-filter: var(--og-blur); backdrop-filter: var(--og-blur);
  border-left: 1px solid var(--c-glass-border) !important;
}
html [data-shell] :is(.shx-bell__panel, .shx-command__panel, .shx-user-menu, [class*="account-menu"], [class*="usermenu"], [role="menu"], [role="listbox"]:not(select)) {
  background: var(--og-pop) !important; -webkit-backdrop-filter: var(--og-blur); backdrop-filter: var(--og-blur);
  border: 1px solid var(--c-glass-border) !important; border-radius: 14px !important;
  box-shadow: inset 0 1px 0 var(--og-hi), var(--c-shadow-pop) !important;
}
html [data-shell] [data-drawer-scrim][data-open="true"] { background: var(--c-scrim) !important; }

/* ---------- AQUIS orb space: content never sits under the floating orb ---------- */
html [data-shell] .shx-content { --og-orb-clear: 88px; }

/* ---------- decorative maps and waveforms follow the theme (Night = warm black + orange) ---------- */
html:root[data-theme="dark"] .tb-ops .tb-map { --geo-dark: #0b0a09; --geo-light: #1a1714; --geo-street: #6f6a64; --geo-art: #85807a; --geo-hw: #8f8a84; --geo-case: #050505; --geo-water: #24211e; background: #0b0a09; }
html:root[data-theme] .tb-wave line { stroke: var(--c-primary); }
html:root[data-theme] .tb-wave { filter: none; }

/* Shared modal frame; native dialog keeps focus trapping and Escape, callers keep actions. */
html:root body dialog[data-office-modal] {
  --office-dialog-label-scrim: transparent; --office-dialog-fill: var(--og-panel); --office-dialog-radius: var(--og-radius);
  box-sizing: border-box; position: fixed; inset: auto;
  top: 137px; right: max(16px, calc(50vw - 504px)); margin: 0;
  width: min(824px, calc(100vw - 32px)); max-height: min(660px, calc(100dvh - 153px));
  padding: var(--office-pad); color: var(--c-text-1);
  background: var(--office-dialog-fill); border: 1px solid var(--c-glass-border);
  border-radius: var(--og-radius); box-shadow: var(--og-shadow);
  -webkit-backdrop-filter: var(--og-blur-panel); backdrop-filter: var(--og-blur-panel);
  overflow: auto;
}
html:root body dialog[data-office-modal] [data-office-modal-label] { width: max-content; max-width: 100%; padding: 0 2px; border-radius: 3px; background: var(--office-dialog-label-scrim); color: var(--c-text-1); }
/* Pop-ups (targets 3c, 5f): the page must not read through as a ghost (owner defect), so a pop-up uses the near-solid surface and a real blur, keeping only the water's colour. Low-power and solid modes keep their own fill and no blur. */
html:root body dialog[data-office-modal] { --office-dialog-fill: var(--og-pop); }
@media (prefers-reduced-transparency: no-preference) {
  html:root[data-theme="aqua"]:not([data-glass="solid"], [data-glass-power="light"]) body dialog[data-office-modal] { --office-dialog-fill: rgba(10, 66, 78, .86); }
  html:root[data-theme="dark"]:not([data-glass="solid"], [data-glass-power="light"]) body dialog[data-office-modal] { --office-dialog-fill: rgba(10, 10, 10, .66); }
  html:root:not([data-glass="solid"], [data-glass-power="light"]) body dialog[data-office-modal] { -webkit-backdrop-filter: blur(18px) saturate(1.45); backdrop-filter: blur(18px) saturate(1.45); }
}
html:root[data-theme="light"] body dialog[data-office-modal] { --office-dialog-label-scrim: transparent; }
html:root[data-theme="dark"] body dialog[data-office-modal] { --office-dialog-label-scrim: transparent; }
html:root body dialog[data-office-modal="assign"] { top: 115px; width: min(732px, calc(100vw - 32px)); max-height: calc(100dvh - 131px); }
@media (max-width: 880px) {
  html:root body dialog[data-office-modal] { inset: 16px; width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 16px; }
}

/* ---------- one shell chrome on every screen: the shell owns these sizes, the AQUIS dock its own ---------- */
/* Shared frame: floating 195px rail, 56px toolbar, compact subsection picker. */
html body [data-shell] { --shx-rail-w-open: var(--office-sidebar); --shx-topbar-h: 56px !important; padding: 0; }
/* One type on every screen. */
html body [data-shell] :is(.shx-rail, .shx-topbar, [data-office-header]) { --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'DM Sans', system-ui, sans-serif; }
html body [data-shell] .shx-layout { min-height: 100dvh; margin: 0; gap: var(--office-inset); padding-left: var(--office-inset); }
html body [data-shell] .shx-layout::before { content: none; }
html:root body [data-shell] .shx-rail {
  top: var(--office-inset); box-sizing: border-box;
  height: calc(100dvh - 2 * var(--office-inset)); padding: 16px 8px; border: 1px solid var(--c-glass-border) !important;
  border-radius: var(--og-radius); box-shadow: var(--og-shadow);
  -webkit-backdrop-filter: var(--og-blur-panel) !important; backdrop-filter: var(--og-blur-panel) !important;
}
html:root body [data-shell] .shx-rail[data-rail-expanded="true"] { width: var(--office-sidebar); inline-size: var(--office-sidebar); }
html:root body [data-shell] .shx-rail[data-rail-expanded="true"] .shx-rail__head { position: relative; flex-direction: row; align-items: center; justify-content: flex-start; gap: 7px; width: auto; margin: 0; padding: 0 18px 14px 4px !important; }
html:root body [data-shell] .shx-rail[data-rail-expanded="true"] .shx-rail__head > .shx-rail__brand { margin: 0; min-width: 0; flex: 1 1 auto; }
html body [data-shell] .shx-rail__logo { width: 44px; height: 44px; flex: none; overflow: visible; }
html body [data-shell] .shx-rail__mark { width: 44px; height: 44px; max-height: none; object-fit: contain; }
/* Clean official IOVO ring sized to give the company brand full unclipped breathing room inside the 190px rail. */
@media (min-width: 881px) {
  html:root body [data-shell] .shx-rail[data-rail-expanded="true"] .shx-rail__mark { transform: scale(1.06); }
  html:root body [data-shell] .shx-rail[data-rail-expanded="true"] .shx-rail__toggle { position: absolute; top: 0; right: 0; width: 18px; min-width: 18px; height: 44px; padding: 0; opacity: .6; }
  html:root body [data-shell] .shx-rail[data-rail-expanded="true"] .shx-rail__toggle:is(:hover, :focus-visible) { opacity: 1; }
}
html body [data-shell] .shx-rail[data-rail-expanded="true"] .shx-rail__brand { display: block; font: 600 15.5px/1.1 Georgia, serif; }
html body [data-shell] .shx-rail__brand .shx-brand__kicker { display: block; font: 600 15.5px/1.1 Georgia, serif !important; letter-spacing: 0 !important; color: var(--office-brand-line2) !important; white-space: nowrap; }
html body [data-shell] .shx-rail__brand .shx-brand__kicker::first-line { color: var(--c-text-1); }
html body [data-shell] .shx-topbar .shx-user .iox-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
html body [data-shell] .shx-topbar .shx-user .iox-avatar { display: grid; place-items: center; }
html body [data-shell] .shx-topbar .shx-user .shx-user__initials { font: 600 14px/1 var(--font-ui); letter-spacing: .02em; color: var(--c-text-1); }
html body [data-shell] .shx-topbar .shx-user__chevron { width: 12px; height: 12px; }
html body [data-shell] .shx-topbar .shx-user .iox-avatar { background: var(--office-pill-fill) !important; box-shadow: inset 0 0 0 1px var(--c-glass-border); }
html body [data-shell] .shx-rail__scroll { gap: var(--office-space); padding: var(--office-space) 0; }
html body [data-shell] .shx-rail__sections { gap: 0; }
/* A locked row's chip wraps inside its row. */
html body [data-shell] .shx-rail__scroll { padding-right: 4px; }
html body [data-shell] :is(.shx-rail__group, .shx-rail__sections, .shx-rail__sections > li) { min-width: 0; max-width: 100%; }
html body [data-shell] .shx-rail__sections .shx-nav { width: 100%; max-width: 100%; box-sizing: border-box; }
html body [data-shell] .shx-rail__sections .shx-nav:has(.shx-nav__lock:not([hidden])) { gap: 6px; }
html body [data-shell] .shx-rail__sections .shx-nav__lock { flex: 0 1 auto; min-width: 0; gap: 2px; font-size: 10px; line-height: 1.1; white-space: normal; }
html body [data-shell] .shx-rail[data-rail-expanded="true"] .shx-rail__grouplabel { position: static; width: auto; height: auto; clip-path: none; padding: 8px; font-size: 12px; letter-spacing: 0; text-transform: none; }
html body [data-shell] .shx-nav { min-height: 44px; padding: 6px 8px; gap: 8px; font-size: 13px; }
/* Desktop 40px pitch; phones keep the 44px touch row. */
@media (min-width: 881px) {
  html:root body [data-shell] .shx-rail .shx-rail__sections .shx-nav { min-height: 40px; padding: 4px 4px 4px 9px; gap: 9px !important; } /* v8 sidebar is 190px (was 195): gap 15->9 keeps long labels on one line and the shared 40px row pitch */
  /* A locked row keeps the common icon and label positions and tucks its small chip into the rest of the row. */
  html:root body [data-shell] .shx-rail .shx-rail__sections .shx-nav:has(.shx-nav__lock:not([hidden])) { gap: 6px !important; }
  html:root body [data-shell] .shx-rail .shx-rail__sections .shx-nav:has(.shx-nav__lock:not([hidden])) > .iox-icon { margin-inline-end: 9px; }
  html:root body [data-shell] .shx-rail .shx-rail__sections .shx-nav .shx-nav__lock { margin-inline: auto 0; flex: 0 0 auto; white-space: nowrap; }
  html body [data-shell] .shx-rail__scroll { gap: 0; padding: 8px 0 0; }
  html body [data-shell] .shx-rail__sections, html body [data-shell] .shx-rail__group { gap: 0; }
  html body [data-shell] .shx-rail__group:first-child { margin-top: 5px; }
  html body [data-shell] .shx-rail__group + .shx-rail__group { margin-top: 22px; }
}
html body [data-shell] .shx-rail[data-rail-expanded="true"] .shx-nav .shx-rail__label { position: static; width: auto; height: auto; clip-path: none; white-space: normal; }
html body [data-shell] .shx-nav[aria-current=page]::before { content: none; }
html body [data-shell] .shx-main { min-width: 0; }
html:root body [data-shell] .shx-topbar.shx-topbar {
  height: 56px !important; min-height: 56px !important; flex-wrap: nowrap !important; gap: 6px !important; padding: 4px 18px 0 0 !important; /* the search starts on the content column origin (x 222, picture) */
}
/* Desktop: the control row sits on the 16px outer margin (owner rule 2.1), like the sidebar's top edge. */
@media (min-width: 881px) { html:root body [data-shell] .shx-topbar.shx-topbar { padding-top: 14px !important; } }
/* Route breadcrumbs stay available to assistive technology, visually hidden. */
html body [data-shell] .tp-screen:has(> [data-office-header]) > .tp-crumbs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html body [data-shell] .tp-screen:has(> [data-office-header]) > .tp-crumbs:focus-within { position: relative; width: auto; height: auto; clip-path: none; }
html body [data-shell] .tp-title[data-office-header] { margin-bottom: 0 !important; }
html body [data-shell] [data-office-header-slot="subtitle"] .dsp-week-scope { display: inline; margin: 0; font: inherit; }
html body [data-shell] .shx-topbar .shx-crumbs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html body [data-shell] .shx-office-picker { flex: 0 0 122px; width: 122px; min-height: 44px; padding: 0 26px 0 36px; border: 1px solid var(--c-hairline); border-radius: var(--radius-8); color: var(--text-1); background: var(--og-panel); font: inherit; font-size: 14px; -webkit-appearance: none; appearance: none; }
html body [data-shell] .shx-office-picker:focus-visible { outline: 2px solid var(--text-1); outline-offset: 2px; }
html:root body [data-shell] .shx-topbar .shx-crumbs :is([data-crumb-dealer], [data-crumb-dealer-sep], [data-crumb-tab], [data-crumb-tab-sep]) { display: none !important; }
/* Match the shared search slot over the inherited water-kit compact rule. */
html:root body [data-shell] .shx-topbar .shx-command { min-width: 0 !important; flex: 1 1 200px !important; margin: 0 !important; max-width: none !important; }
/* Top bar = the owner's list (rule 2.3): search, import state, ES/EN, Aqua/Día/Noche, profile. The picker no longer reserves the width of the removed Water/Network buttons (the search takes it), and the notifications bell, whose panel only ever says "none", is not part of the desktop bar (phones keep it). */
html:root body [data-shell] .shx-topbar .iovo-sea-picker { min-width: 0; }
@media (min-width: 881px) { html:root body [data-shell] .shx-topbar .shx-bell { display: none; } }
/* Compact import dot; live text stays available to assistive technology. */
html body [data-shell] .shx-topbar .shx-sync { flex: 0 1 auto; min-width: 24px; height: 36px; max-width: 152px !important; padding: 0 8px !important; margin-left: auto; box-sizing: border-box; gap: 6px; display: inline-flex; align-items: center; color: var(--c-text-1) !important; }
html body [data-shell] .shx-topbar [data-sync-text] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
/* Narrow: same dot; status text stays available to assistive technology. */
@media (max-width: 1279px) {
  html body [data-shell] .shx-topbar .shx-sync { flex: 0 0 24px; width: 24px; padding: 0 8px !important; }
  html body [data-shell] .shx-topbar [data-sync-text] { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
}
html body [data-shell] .shx-topbar .shx-user { min-width: 54px; width: 54px; flex: 0 0 54px; padding: 0 !important; justify-content: center; }
html body [data-shell] .shx-topbar .shx-user::after { content: none !important; }
/* Avatar alone; the name stays on the button's accessible label. */
html body [data-shell] .shx-topbar .shx-user__text { display: none !important; }
html body [data-shell] .shx-topbar [data-sea-row] { flex: 0 0 auto !important; width: auto !important; max-width: none !important; height: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; order: 0 !important; }
html body [data-shell] .shx-topbar [data-sea-row] :is(.iovo-sea-lbl, .iovo-sea-sp) { display: none; }
html body [data-shell] .shx-topbar [data-sea-theme] { width: auto; padding: 0 8px; }
html body [data-shell] .shx-topbar [data-sea-theme]::after { content: none; }
html:root body [data-shell] .shx-topbar [data-sea-row] .iovo-sea-seg--fx .iovo-sea-opt { width: 28px !important; height: 30px !important; padding: 0 !important; display: grid !important; place-items: center; }
html:root body [data-shell] .shx-topbar [data-sea-row] .iovo-sea-seg--fx .iovo-sea-ico { display: block !important; }
html:root body [data-shell] .shx-topbar [data-sea-row] .iovo-sea-seg--fx .iovo-sea-opt__label { position: absolute !important; width: 1px !important; height: 1px !important; clip-path: inset(50%) !important; overflow: hidden !important; }
@media (max-width: 1100px) {
  html body [data-shell] .shx-topbar [data-sea-theme]::after { content: none; }
  html body [data-shell] .shx-topbar [data-sea-theme] { width: 30px; padding: 0; }
}
html body [data-shell] .iovo-sea-seg { -webkit-backdrop-filter: none; backdrop-filter: none; }
html body [data-shell] .shx-lang-note:empty { display: none; }
html:not(#og-frame):not(#lp-frame) body [data-shell] .shx-content {
  position: relative; min-width: 0; max-width: none; margin: 0 !important;
  --aquis-clearance: 0px; --og-orb-clear: 0px;
  padding: var(--office-frame-top) var(--office-aquis-rail) 0 var(--office-gutter) !important; /* the 16px outer margin below is the content margin; no extra bottom padding (panels end on the margin) */
}
html body [data-shell] :is(.shx-view, .iox-page) { width: 100%; max-width: none !important; min-width: 0; }
/* The outer margin below the column is the content margin (16px): a screen view adds no bottom padding of its own, so its last panel ends on the margin like the sidebar. */
html body [data-shell] .shx-content > .shx-view { padding-bottom: 0 !important; }
/* The embedded Despacho board fills the column down to the margin: bar 56 + origin 12 + header 56 + gap 16 above it, 16 margin below (the old 100dvh - 8rem ended 31px past the margin). */
@media (min-width: 881px) { html body [data-shell] [data-dispatch-embedded] .dispatch-embedded__frame { height: calc(100dvh - 160px); } }
/* Bounded frame law (the slow-sea warning dock sits above the foot): the window never scrolls; the column ends at --office-content-foot (the 16px margin on desktop) and scrolls itself. On a phone the AQUIS shelf is --office-main-foot, padding after ALL main children (content and status dock), so neither a control nor a notice sits under the launcher. */
html body [data-shell] .shx-main { height: 100dvh; min-height: 0; position: sticky; top: 0; box-sizing: border-box; padding-bottom: var(--office-main-foot, 0px); }
html:not(#og-frame):not(#lp-frame) body [data-shell] .shx-main > .shx-content { min-height: 0; overflow: auto; flex: 1 1 0; margin-bottom: var(--office-content-foot, var(--office-inset)) !important; scrollbar-width: thin; }
/* ONE SCROLLER (Daniel, 12 Nov 2026). On a computer screen the content area is the only thing that scrolls a screen, and
   nothing is ever cut off out of reach: no screen sets the content area to overflow hidden (the fit kit, Credit and
   Verification used to), and every screen ends the same way as Today: the 16px outer margin below the content area and
   --office-scroll-foot of empty space under the last card at the end of the scroll. A list or table may still scroll
   inside its own card. Five ids so it outranks every section's own copy (Today uses four, the fit kit two). Phones and
   tablets keep their own layout (the fit kit's range).
   The foot is kept only by the screens that take their own height and scroll the content area (Today in today-board.css,
   Credit and Contracts, the Money funding desk, Loaded-window reports, below; Spreadsheet import in supervisor.css). A screen that fills the window and does not scroll keeps its old
   bottom: a foot there only made it 32px shorter (fewer rows, Dispatch's visit buttons cut). */
@media (min-width: 1024px) and (min-height: 600px) {
  html:not(#of1):not(#of2):not(#of3):not(#of4):not(#of5) body [data-shell] .shx-main > .shx-content {
    overflow-y: auto !important; overscroll-behavior: contain;
    margin-bottom: var(--office-content-foot, var(--office-inset)) !important;
  }
  /* Merge of Office screens 3 (13 Nov): from 1200 px wide the Credit and Contracts desks (.ccw-desk-view) fit the window and do
     not scroll, so they get no foot there (the rule above: a foot on a screen that fits only steals room); below 1200 px they
     fall back to one column that the content area scrolls, and keep the foot (the block after this one). */
  html:not(#of1):not(#of2):not(#of3):not(#of4):not(#of5) body [data-shell] .shx-main > .shx-content:is(:has(> .ccw-view:not([hidden]):not(.ccw-desk-view)), :has(> [data-view="money"]:not([hidden]) .money-host--funding)),
  html:not(#of1):not(#of2):not(#of3):not(#of4):not(#of5) body [data-shell] .shx-main > .shx-content:has([data-case-path]):is(:has(> [data-view="cases"]:not([hidden])), :has(> [data-view="money"]:not([hidden]))),
  html:not(#of1):not(#of2):not(#of3):not(#of4):not(#of5) body [data-shell] .shx-main > .shx-content:has([data-keeper-tool="keeper-reports"][aria-current="page"]) {
    padding-bottom: var(--office-scroll-foot) !important; scroll-padding-bottom: var(--office-scroll-foot);
  }
  @media (max-width: 1199.98px) {
    html:not(#of1):not(#of2):not(#of3):not(#of4):not(#of5) body [data-shell] .shx-main > .shx-content:has(> .ccw-view.ccw-desk-view:not([hidden])) {
      padding-bottom: var(--office-scroll-foot) !important; scroll-padding-bottom: var(--office-scroll-foot);
    }
  }
  /* The title row keeps its own height: a screen that takes its own height (Credit, Contracts) must not squeeze it, or the
     first card rides up onto the Section picker. */
  html:not(#of1):not(#of2):not(#of3):not(#of4):not(#of5) body [data-shell] .shx-main > .shx-content > .shx-pagehead { flex-shrink: 0 !important; }
}
/* Dive on AQUIS's top-right shoulder, as on the CEO dashboard; protected button unchanged. Yields to dialogs as the shell does. */
@media (min-width: 881px) {

  html:not(#ofx3a):not(#ofx3b) body:has(.tb-mapx, [data-drawer-open="true"], dialog[open]) .iovo-sea-dive-btn { visibility: hidden !important; pointer-events: none !important; }
}
/* Print pages the whole screen. */
@media print {
  html body [data-shell] .shx-main { height: auto !important; position: static !important; }
  html:not(#og-frame):not(#lp-frame) body [data-shell] .shx-main > .shx-content { overflow: visible !important; flex: none !important; height: auto !important; margin-bottom: 0 !important; }
}
html body [data-shell] [data-office-status] { display: grid; flex: 0 0 auto; gap: 8px; padding: 8px var(--office-aquis-rail) 8px var(--office-gutter); min-width: 0; }
html body [data-shell] [data-office-status]:empty { display: none; }
html body [data-shell] [data-office-status] > .og-toast { max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
/* An adopted route heading starts at the shared column origin. */
html body [data-shell] .shx-view > .cb:has(> [data-office-header]) { padding-top: 0; }
html body [data-shell] .keeper-embedded { padding: 0; background: transparent; }
/* Screen headers keep their DOM so delegated actions keep working. */
html body [data-shell] :is(.shx-pagehead, [data-office-header]) {
  display: flex !important; position: relative !important; align-items: center; flex-wrap: wrap;
  gap: 8px 16px; min-height: 56px; margin: 0 0 16px !important; padding: 0 !important;
  width: auto; height: auto; clip-path: none; overflow: visible;
}
html body [data-shell] .shx-subtabs:not([hidden]) { display: flex !important; }
html body [data-shell] .shx-pagehead[data-header-adopted] { display: none !important; }
html body [data-shell] [data-office-header] {
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
}
html body [data-shell] [data-office-header] > [data-office-header-slot="text"] { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
html body [data-shell] [data-office-header] > [data-office-header-slot="text"] > [data-office-header-slot="title"] { order: -1; }
/* Shared date line under the title: one compact line that fits the header's own minimum height, so it never moves the first panel. */
html body [data-shell] [data-office-header] [data-office-date-line] { margin: 0; font: 400 13px/15px var(--font-ui); color: var(--office-header-sub); }
html body [data-shell] [data-office-header] > [data-office-date-line] { grid-column: 1; }
html body [data-shell] [data-office-header]:not(:has(> [data-office-header-slot="actions"])),
html body [data-shell] [data-office-header]:has(> [data-office-header-slot="actions"] .day-nav) { grid-template-columns: minmax(0, 1fr) auto; }
html body [data-shell] [data-office-header] > [data-office-header-slot="section"] { grid-column: 2; grid-row: 1; }
html body [data-shell] [data-office-header] > [data-office-header-slot="actions"] { grid-column: 3; grid-row: 1; }
/* Full calendar toolbar: its own row, every control kept. */
html body [data-shell] [data-office-header] > [data-office-header-slot="actions"]:has(.day-nav) { grid-column: 1 / -1; grid-row: 2; }
html body [data-shell] [data-office-header] > :first-child { flex: 1 1 240px; width: auto; min-width: 0; }
html body [data-shell] [data-office-header] > :is(.osw-kpis, .hr-cards, .heading-metrics) { order: 3; flex: 1 1 100%; width: 100%; }
html body [data-shell] [data-office-header] > .shx-subtabs { order: 1; flex: 0 1 auto; width: auto !important; }
html body [data-shell] [data-office-header] > :is(button, .shx-pagehead__actions) { order: 2; flex: 0 1 auto; }

html body [data-shell] [data-office-header] :is(h1, h2.tp-h1) { position: static !important; width: auto; height: auto; clip-path: none !important; pointer-events: auto; font-family: Georgia, serif !important; font-size: var(--office-header-title-size, 36px) !important; font-weight: 600 !important; line-height: 1.15 !important; margin: 0; }
html body [data-shell] [data-office-header] > * { min-width: 0; max-width: 100%; }
html body [data-shell] [data-office-header] > .page-heading-actions { display: flex !important; flex-wrap: wrap; gap: 8px; order: 2; flex: 0 1 auto; width: auto !important; margin: 0 !important; }
html body [data-shell] [data-office-header] .eyebrow { display: none; }
html body [data-shell] [data-office-header] p { margin: 4px 0 0; font-size: 13px; line-height: 1.3; }
html:root body [data-shell] [data-office-header] > [data-office-header-slot="text"] > :is(p, [data-office-header-slot="subtitle"]) { color: var(--office-header-sub) !important; }
@media (min-width: 881px) {
  /* Title and subtitle inset about 12 px from the panel edge (targets: x230 vs x216). */
  html:root body [data-shell] [data-office-header] > :is([data-office-header-slot="text"], [data-office-header-slot="title"]) { padding-inline-start: 8px; }
}
html body [data-shell] [data-office-header] > .shx-subtabs { display: flex !important; grid-template-columns: none; margin-top: 0 !important; }
/* The component sheet has its own specimen selector. */
html:root body [data-shell][data-component-sheet] [data-office-header] > .shx-subtabs { display: none !important; }
@media (min-width: 1024px) {
  /* Calendar: title and subtitle share a row; date controls take a compact second row. */
  html body [data-shell] [data-office-header]:has(> [data-office-header-slot="actions"] .day-nav) { row-gap: 4px; margin-bottom: 6px !important; }
  html body [data-shell] [data-office-header]:has(> [data-office-header-slot="actions"] .day-nav) > [data-office-header-slot="text"] { flex-direction: row; align-items: baseline; gap: 12px; min-width: 0; }
  html body [data-shell] [data-office-header]:has(> [data-office-header-slot="actions"] .day-nav) > [data-office-header-slot="text"] > p { margin: 0; min-width: 0; }
  html body [data-shell] [data-office-header] .day-nav { min-height: 36px; gap: 6px; }
  html body [data-shell] [data-office-header] .day-nav :is(.button, .icon-button, .input) { min-height: 36px; height: 36px; }
  html body [data-shell] [data-office-header] .day-nav .icon-button { min-width: 36px; width: 36px; }
  html body [data-shell] [data-office-header] .day-nav .range-field { height: 36px; }
  /* Supervision: date and first note on one line, second note on the next. */
  html body [data-shell] .sup8-head[data-office-header] { margin-bottom: 0 !important; min-height: 0; }
  html body [data-shell] .sup8-head[data-office-header] > [data-office-header-slot="text"] { flex-flow: row wrap; align-items: baseline; }
  html body [data-shell] .sup8-head[data-office-header] > [data-office-header-slot="text"] > [data-office-header-slot="title"] { flex: 0 0 100%; }
  html body [data-shell] .sup8-head[data-office-header] > [data-office-header-slot="text"] > p { margin: 2px 0 0; font-size: 12.5px; }
  html body [data-shell] .sup8-head[data-office-header] > [data-office-header-slot="text"] > [data-office-header-slot="title"] + .sup8-sub::before { content: "·"; margin: 0 6px; }
  html body [data-shell] .sup8-head[data-office-header] > [data-office-header-slot="text"] > .sup8-sub:last-child { flex: 0 0 100%; }
}
/* The date's length changes daily: its line takes the full header width, so a longer date cannot push the panels. */
@media (min-width: 1280px) {
  html body [data-shell] .sup8-head[data-office-header] > [data-office-header-slot="text"] { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
  html body [data-shell] .sup8-head[data-office-header] > [data-office-header-slot="section"] { grid-column: 2; grid-row: 1; align-self: start; }
  html body [data-shell] .sup8-head[data-office-header] > [data-office-header-slot="actions"] { grid-column: 3; grid-row: 1; align-self: start; }
}
/* Below 1360px the selector and tools no longer fit beside the title: they take the row under the text instead of covering it. */
@media (min-width: 1280px) and (max-width: 1359px) {
  html body [data-shell] .sup8-head[data-office-header] > [data-office-header-slot="section"] { grid-column: 1; grid-row: 2; justify-self: start; }
  html body [data-shell] .sup8-head[data-office-header] > [data-office-header-slot="actions"] { grid-column: 2 / -1; grid-row: 2; justify-self: end; }
}
/* Header-to-content spacing is one value: no margin on top of the owning layout's gap. */
html body [data-shell] .hr-ws > [data-office-header], html body [data-shell] .shx-view > [data-office-header]:has(+ .shx-settings-host) { margin-bottom: 0 !important; }
html body [data-shell] .cb > [data-office-header], html body [data-shell] .osw--intake > [data-office-header] { margin-bottom: 8px !important; }
@media (min-width: 881px) {
  html body [data-shell] .sup8-view { row-gap: 4px; }
  /* Installs serves 5a (143) and 5d (155): within 8 px of both. */
  html body [data-shell] .shx-view:not([hidden]) > .dsp { margin-top: 4px; }
  /* Payouts: target row at 155. */
  html:not(#og-frame) body [data-shell][data-current-view="payouts"] .shx-content > .shx-pagehead:not([data-header-adopted]) { margin-bottom: 16px !important; }
  /* A first block with no padding starts 8 px below the header. */
  html body [data-shell] .shx-content:not(:has(.shx-view:not([hidden]) > :is(.tb, .dsp))) > .shx-pagehead:not([data-header-adopted]) { margin-bottom: 8px !important; }
}
@media (min-width: 1024px) {
  /* Secondary header text shares the title's row. */
  html body [data-shell] .verify-heading[data-office-header] { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 24px; align-items: center; margin-bottom: 12px !important; }
  html body [data-shell] .verify-heading[data-office-header] > [data-office-header-slot="title"] { grid-column: 1; grid-row: 1; white-space: nowrap; }
  html body [data-shell] .verify-heading[data-office-header] > .verify-metrics { grid-column: 2; grid-row: 1; margin: 0; justify-self: end; min-width: 0; }
/* The three live numbers and the Sección selector each get their own column (they used to share column 2 and overlap). */
html body [data-shell] .verify-heading[data-office-header] { grid-template-columns: minmax(0, 1fr) auto auto; --office-header-title-size: 30px; } /* the long title shares one row with the numbers and the selector */
html body [data-shell] .verify-heading[data-office-header] > [data-office-header-slot="section"] { grid-column: 3; }
html body [data-shell] .verify-heading[data-office-header] .verify-metrics .scv-kpi { padding-inline: 10px; min-width: 0; }
html body [data-shell] .verify-heading[data-office-header] > .verify-metrics { max-width: 320px; }
  /* Long labels wrap at word boundaries; no column narrows below its longest word. */
  html body [data-shell] .verify-heading[data-office-header] .scv-kpi { min-width: min-content; padding: 0 10px; }
  html body [data-shell] .verify-heading[data-office-header] .scv-kpi__label { white-space: normal; overflow-wrap: normal; word-break: normal; line-height: 1.15; }
  html body [data-shell] .verify-heading[data-office-header] > [data-office-header-slot="section"] { grid-column: 3; grid-row: 1; }
  html body [data-shell] .mf-head[data-office-header] > .mf-date { grid-column: 1; grid-row: 1; justify-self: end; align-self: end; margin: 0; }
  /* A long subtitle runs on one line below the selector. */
  html body [data-shell] .page-heading[data-office-header]:not(:has(.day-nav)) > [data-office-header-slot="text"] { grid-column: 1 / -1; }
  html body [data-shell] .page-heading[data-office-header]:not(:has(.day-nav)) > [data-office-header-slot="text"] > :not(h1) { max-width: 100%; }
  html body [data-shell] .page-heading[data-office-header]:not(:has(.day-nav)) > [data-office-header-slot="text"] > h1 { max-width: calc(100% - 320px); }
}
/* Service keeps its cold header until the adopted picker is present. */
html body [data-shell] .osw-head[data-office-header]:has(> .shx-subtabs:not([hidden])) .osw-tabs { display: none; }
html body [data-shell] .osw-head[data-office-header]:has(> .shx-subtabs:not([hidden])) .osw-titles__row { margin-top: 0; }
html body [data-shell] [data-office-header] + :is(.osw-kpis, .hr-cards, .heading-metrics) { margin: 0 0 16px; width: 100%; }
/* Relocated summary nodes keep a full-width row. */
html body [data-shell] .hr-ws:has(> .hr-cards) { grid-template-areas: "head head" "metrics metrics" "roster person"; }
html body [data-shell] .hr-ws > .hr-cards { grid-area: metrics; }
html body [data-shell] [data-office-header] > .heading-metrics { display: flex; flex-wrap: wrap; gap: 16px; }
html body [data-shell] [data-office-header] .shx-subtabs { flex: 0 0 auto; margin-left: auto !important; }
html body [data-shell] .shx-pagehead > .shx-pagehead__text { flex: 1 1 240px; }

html body [data-shell] .shx-pagehead__eyebrow { display: none; }
/* Shell title slots use the compact row; empty slots add no row. */
html body [data-shell] .shx-pagehead:not([data-header-adopted]) { --office-header-title-size: 36px; margin-bottom: 0 !important; display: flex !important; position: relative; width: auto; height: auto; clip-path: none; overflow: visible; }
html body [data-shell] .shx-pagehead__text { min-width: 0; }
html body [data-shell] :is(.shx-pagehead__count, .shx-pagehead__tabs):empty { display: none; }
html body [data-shell] .shx-pagehead__tabs { order: 5; flex: 1 1 100%; min-width: 0; }
html body [data-shell] .shx-pagehead__actions { min-width: 0; }
html body [data-shell] .shx-pagehead__title { font-size: 36px; line-height: 1.15; }
html body [data-shell] .shx-pagehead__sub { font-size: 14px; margin: 4px 0 0; }
html body [data-shell] .shx-subtabs { position: relative; top: auto; right: auto; flex: 0 0 auto; margin: 0 !important; padding: 0; border: 0 !important; overflow: visible; z-index: 20; }
html body [data-shell] .shx-subtabs:not([hidden]) { align-items: center; gap: 16px; }
html body [data-shell] .shx-section-label { color: var(--c-text-1); font-size: 14px; white-space: nowrap; }
html body [data-shell] .shx-section-picker { position: relative; min-width: 176px; }
html body [data-shell] .shx-section-picker summary { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 0 16px; list-style: none; cursor: pointer; background: var(--office-pill-fill); border: 1px solid var(--c-glass-border); border-radius: 12px; box-shadow: inset 0 1px 0 var(--og-hi); font-weight: 400; }
@media (min-width: 881px) {
  html:root body [data-shell] .shx-section-picker summary { height: 40px !important; min-height: 40px !important; }
  /* Selector and route action start 4 px below the header top. */
  html:root body [data-shell] [data-office-header] > .shx-subtabs.shx-subtabs[data-office-header-slot="section"],
  html:root body [data-shell] [data-office-header] > [data-office-header-slot="actions"]:not(:has(.day-nav)) { align-self: flex-start; margin-top: 4px !important; }
}
html body [data-shell] .shx-section-picker summary::-webkit-details-marker { display: none; }
html body [data-shell] .shx-section-picker summary::after { content: '⌄'; }
html body [data-shell] .shx-section-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 100%; width: max-content; max-width: min(360px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--c-hairline-strong); border-radius: 12px; background: var(--og-pop-solid); box-shadow: var(--c-shadow-pop); }
html body [data-shell] .shx-section-menu .shx-subtab { display: flex; width: 100%; min-height: 44px; white-space: normal; text-align: left; }
@media (max-width: 1100px) and (min-width: 881px) {
  html body [data-shell] .shx-topbar .shx-crumbs { display: none; }
  html body [data-shell] .shx-topbar .shx-user { flex: 0 0 40px; width: 40px; }
  html body [data-shell] .shx-topbar .shx-user__text { display: none; }
  html body [data-shell] .shx-topbar .shx-sync [data-sync-text] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 880px) {
  html body [data-shell] { --office-aquis-rail: 16px; --office-pad: 16px; --office-main-foot: calc(var(--aquis-corner-height) + 24px + env(safe-area-inset-bottom, 0px)); --office-content-foot: 0px; }
  /* Phone clearance: the bounded main ends on --office-main-foot (AQUIS height + 24px + safe-area inset) after the content and any status dock, full width. */
  html body [data-shell] .shx-layout { padding: 0; gap: 0; }
  html:root body [data-shell] .shx-rail { position: fixed; width: min(280px, 86vw); inline-size: min(280px, 86vw); }
  html:root body [data-shell] .shx-topbar.shx-topbar { height: auto !important; min-height: 112px !important; flex-wrap: wrap !important; padding: 8px 16px !important; }
  html body [data-shell] .shx-topbar__navbtn { flex: none; }
  html body [data-shell] .shx-topbar .shx-crumbs, html body [data-shell] .shx-bell, html body [data-shell] .shx-office-picker { display: none; }
  html:root body [data-shell] .shx-topbar .shx-command { order: 20; flex: 1 1 100% !important; max-width: none !important; }
  html body [data-shell] .shx-topbar .shx-sync { order: 0; }
  html body [data-shell] .shx-topbar .shx-sync [data-sync-text] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  html body [data-shell] .shx-topbar [data-sea-row] { order: 2; margin-left: auto; }
  html body [data-shell] .shx-topbar .shx-lang { order: 3; padding: 0 4px; }
  html body [data-shell] .shx-topbar .shx-user { order: 4; flex: none; width: 40px; }
  html body [data-shell] .shx-topbar .shx-user__text { display: none; }
  html body [data-shell] [data-office-header],
  html body [data-shell] [data-office-header]:not(:has(> [data-office-header-slot="actions"])),
  html body [data-shell] [data-office-header]:has(> [data-office-header-slot="actions"] .day-nav) { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  html body [data-shell] [data-office-header] > [data-office-header-slot] { grid-column: 1; grid-row: auto; }
  html body [data-shell] [data-office-header] > [data-office-header-slot="text"] { grid-row: 1; }
  html body [data-shell] [data-office-header] > [data-office-header-slot="section"] { grid-row: 2; }
  html body [data-shell] [data-office-header] > [data-office-header-slot="actions"],
  html body [data-shell] [data-office-header] > [data-office-header-slot="actions"]:has(.day-nav) { grid-row: 3; }
  html body [data-shell] .hr-ws:has(> .hr-cards) { grid-template-areas: "head" "metrics" "roster" "person"; }
  html body [data-shell] [data-office-header] > .shx-subtabs { flex: 0 1 auto; width: 100% !important; margin-left: 0 !important; }
  html body [data-shell] [data-office-header] > :is(:first-child, .osw-kpis, .hr-cards, .heading-metrics, .page-heading-actions) { flex: 0 1 auto; width: 100%; }
  html:not(#og-frame):not(#lp-frame) body [data-shell] .shx-content { padding: 16px 16px 16px !important; }
  /* On a phone the floating AQUIS button covers the bottom-right corner; the Verification hand-off action row stops before it (button width + 12 px) so no action ever sits under it, wherever the page is scrolled. */
  html body [data-shell] .verify-handoff .verify-actions { margin-inline-end: calc(var(--aquis-corner-size) + 12px); }
  html body [data-shell] .shx-pagehead { padding: 0; min-height: 0; margin-bottom: 16px; }
  html body [data-shell] .shx-pagehead__title { font-size: 24px; }
  html body [data-shell] .shx-pagehead:not([data-header-adopted]) { --office-header-title-size: 30px; }
  html body [data-shell] .shx-subtabs { position: relative; top: auto; right: auto; margin-bottom: 16px; }
  html body [data-shell] .shx-section-picker { width: 100%; }
  html body [data-shell] .shx-section-label { display: none; }
}

/* Day: official mark with dark wordmark (iovo-mark-day.png, only the wordmark recoloured). */
:root[data-theme="light"] [data-shell] img.shx-rail__mark[src] { content: url("./iovo-mark-day.png"); filter: contrast(1.16) saturate(1.06); }
:root[data-theme="light"] [data-shell] .shx-rail__brand,
:root[data-theme="light"] [data-shell] .shx-rail__brand .shx-brand__kicker { color: #0b141a !important; font-weight: 700; }

/* Office-only behaviour on top of the approved glass kit, whose bytes stay unchanged because other surfaces import it.
   Status toasts stay click-through so they never block a department control; a real action inside one still takes the click. */
html body .og-toast { pointer-events: none; }
html body .og-toast :is(button, a, [role="button"]) { pointer-events: auto; }
/* Shared decision and assignment pop-ups use the frame's glass and leave the screen behind them at full brightness, as AQ-3c
   and AQ-5f show. The native backdrop stays, so the page behind still takes no clicks. */
html body dialog:is([open], .og-sheet) { background: var(--office-dialog-fill, var(--og-pop)) !important; border-radius: var(--office-dialog-radius, 16px) !important; }
html body dialog[data-office-modal][open]::backdrop { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* ---------- v8.1 top bar: one row, as in the owner picture (desktop) ----------
   Search | sync | ES EN | Aqua Día Noche (text) | avatar. The shortcut hint and the bell stay reachable but out of the row's weight. */
@media (min-width: 881px) {
  html:root body [data-shell] .shx-topbar .shx-command kbd { display: none; }
  html:root body [data-shell] .shx-topbar .shx-lang .shx-seg [data-lang-opt="es"] { order: -1; }
  html:root body [data-shell] .shx-topbar .shx-lang .shx-seg [data-lang-opt] { padding: 0 7px; border-radius: 999px; line-height: 1; font-size: 11.5px; }
  html:root body [data-shell] .shx-topbar .shx-sync { flex: 0 1 auto !important; max-width: 224px !important; margin-left: 0; overflow: hidden !important; }
  html:root body [data-shell] .shx-topbar [data-sync-text] { overflow: hidden; text-overflow: ellipsis; }
  html:root body [data-shell] .shx-topbar .shx-fresh { flex: 0 0 auto; padding: 0 8px; height: 28px; border-radius: 999px; background: color-mix(in srgb, var(--og-field) 72%, transparent); border: 1px solid var(--c-hairline); font-size: 11.5px; color: var(--c-text-2); }
  /* Theme control: Aqua | Día | Noche as concentric circular Apple Glass pills. */
  html:root body [data-shell] .shx-topbar .iovo-sea-seg--themes { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 3px; border-radius: 999px; box-sizing: border-box; }
  html:root body [data-shell] .shx-topbar .iovo-sea-seg--themes .iovo-sea-opt { width: auto !important; min-width: 0; height: 28px; padding: 0 10px !important; display: inline-flex; align-items: center; font-size: 12.5px; line-height: 1; border-radius: 999px !important; }
  html:root body [data-shell] .shx-topbar .iovo-sea-seg--themes .iovo-sea-ico { display: none !important; }
  html:root body [data-shell] .shx-topbar [data-sea-theme]::after { content: attr(data-theme-word); }
  html:root[lang^="es"] body [data-shell] .shx-topbar [data-sea-theme="aqua"]::after { content: "Aqua"; }
  html:root[lang^="es"] body [data-shell] .shx-topbar [data-sea-theme="light"]::after { content: "Día"; }
  html:root[lang^="es"] body [data-shell] .shx-topbar [data-sea-theme="dark"]::after { content: "Noche"; }
  html:root[lang^="en"] body [data-shell] .shx-topbar [data-sea-theme="aqua"]::after { content: "Aqua"; }
  html:root[lang^="en"] body [data-shell] .shx-topbar [data-sea-theme="light"]::after { content: "Day"; }
  html:root[lang^="en"] body [data-shell] .shx-topbar [data-sea-theme="dark"]::after { content: "Night"; }
  html:root body [data-shell] .shx-topbar [data-sea-theme][aria-pressed="true"] { background: var(--c-nav-active-bg) !important; color: var(--c-nav-active-ink) !important; box-shadow: inset 0 0 0 1px var(--c-nav-active-ring) !important; }
  html:root body [data-shell] .shx-topbar .shx-bell > button { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
}
@media (min-width: 881px) and (max-width: 1460px) {
  /* Hide secondary Updated timestamp on compact laptops so it never crowds the import pill or language switcher. */
  html:root body [data-shell] .shx-topbar .shx-fresh:not(:has(.shx-fresh__show)) { display: none !important; }
}

/* ---------- Night overrides for colours hard-coded in screen files (screen builders own those files; listed in the Day/Night port report) ---------- */
/* Hoy: today-board.css paints its Night panels, owner chips, nav and map with navy/teal literals. */
html:root[data-theme="dark"] .tb { --map-bg: var(--c-map-bg); --surface-1: var(--og-solid-1); --surface-2: var(--og-solid-2); --surface-3: var(--og-solid-3); --hairline-strong: var(--c-hairline-strong); }
html:root[data-theme="dark"] body :is(.tb-panel, .tb-dept, .tb-call) { border-color: var(--c-hairline); box-shadow: var(--og-shadow); }
html:root[data-theme="dark"] body :is(.tb-owner, .tb-table--queue .tb-owner, .tb-table--aging .tb-owner) { background: rgba(255, 255, 255, .08); border-color: var(--c-hairline-strong); color: var(--c-text-1); }
html:root[data-theme="dark"] body [data-shell] .shx-nav .iox-icon { color: currentColor; }
html:root[data-theme="dark"] body [data-shell]:has([data-view="today"]:not([hidden])) .shx-nav[aria-current="page"] { background: var(--c-nav-active-bg); }
html:root[data-theme="dark"] body .tb-wave line { stroke: var(--c-primary); }
html:root[data-theme="dark"] body .tb-badge.tb-tone-info { --tone: var(--c-info); color: var(--c-info-ink); }
html:root[data-theme="dark"] body .tb-map__highways path { stroke: #8f8a84; }
html:root[data-theme="dark"] body .tb-ops .tb-tone-info.tb-pin { background: radial-gradient(circle at 50% 42%, var(--c-primary) 0%, #c9642a 100%); }
html:root[data-theme="dark"] body .tb-approve { background: var(--og-field); border-color: rgba(255, 138, 61, .2); box-shadow: none; }

html:root[data-theme="dark"] body .tb--live .hy-queue .tb-aging .tb-tr:not(.tb-tr--head) { border-color: var(--c-hairline) !important; background: var(--og-field) !important; }

html:root[data-theme="dark"] body .tb.tb--live .tb-pulse .tb-dept { background: rgba(255, 255, 255, .02) !important; }

/* ---------- Day overrides: Personas pills paint their text with a mid-tone status colour (2.4-2.9:1 on white glass); darken the text only, the pill keeps its colour. ---------- */
html:root[data-theme="light"] body [data-shell][data-current-view="hr"] .hr-actpill { color: color-mix(in srgb, var(--band) 62%, #000); }
html:root[data-theme="light"] body [data-shell][data-current-view="hr"] .hr-accpill[data-account="yes"] { color: var(--c-success-ink); }
html:root[data-theme="light"] body [data-shell] :is(.verify-chip[data-tone="ok"], .verify-chip[data-tone="completed"], .verify-procedure-head .verify-chip) { color: var(--c-success-ink); }

/* ---------- Day and Night: Credito's review picker (.ccw-select) has no fill of its own and shows the browser default button (grey, 2px white or black outline). ---------- */
html:root:is([data-theme="light"], [data-theme="dark"]) body [data-shell] .ccw-select { background-color: var(--og-field); border: 1px solid var(--c-hairline-strong); color: var(--c-text-1); }

/* ---------- Night = black glass, thin neutral borders, orange for accents only (owner order 03:55, review 05:00). Screen files keep their Aqua literals; this block is their only Night override, so a new screen needs a line here, not its own palette.
   Every selector starts with the Night guard, so Aqua and Day never match. :not(#night-orange) adds id weight to beat the screens' id-weighted !important rules. Red for errors stays; lender logos and the Ajustes theme previews stay. ---------- */
/* Screen-local glass and line tokens */
html:root[data-theme="dark"]:not(#night-orange) body :is(.mf, .mf-payment-board, .mf-receipts, .crmx-money-overview) { --mf-line: var(--night-line); --mf-glass: rgba(10, 10, 10, .5); --mf-ok-ink: var(--c-success-ink); }
html:root[data-theme="dark"]:not(#night-orange) body :is(.tp-roster-layout, .tp-roster-visits) { --tp-glass: rgba(10, 10, 10, .5); --tp-line: var(--night-line); }
html:root[data-theme="dark"]:not(#night-orange) body :is(.dsp, .dsp-drawer, .dsp-tools-inline) { --dispatch-glass: rgba(10, 10, 10, .5); --dsp-glass-fill: rgba(10, 10, 10, .5); --dsp-glass-depth: inset 0 1px 0 rgba(255, 255, 255, .05); --dsp-glass-edge: var(--night-line); }
html:root[data-theme="dark"]:not(#night-orange) body [data-shell] .cb { --case-glass: rgba(10, 10, 10, .5); }
html:root[data-theme="dark"]:not(#night-orange) body [data-view="department-unconnected"] { --warehouse-glass: rgba(10, 10, 10, .3); }
html:root[data-theme="dark"]:not(#night-orange) body [data-dispatch-calendar] { --dispatch-calendar-glass: rgba(10, 10, 10, .45); --dispatch-cal-chip-done: rgba(255, 138, 61, .24); --dispatch-cal-chip-plan: rgba(255, 255, 255, .07); --dispatch-cal-chip-open: rgba(255, 179, 71, .16); --dispatch-ico-done: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8' fill='%23ff8a3d'/%3E%3Cpath d='m5.2 9.3 2.5 2.5 5-5.2' fill='none' stroke='%231a0b00' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --dispatch-ico-plan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='7' fill='none' stroke='%23ffb06b' stroke-width='2'/%3E%3C/svg%3E"); --dispatch-ico-work: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='5' fill='%23ffb06b'/%3E%3C/svg%3E"); }
html:root[data-theme="dark"]:not(#night-orange) body [data-shell] { --hy-fill: rgba(10, 10, 10, .34); --hy-line: var(--c-hairline-strong); --hy-tile-line: var(--c-hairline); --ofx-glass-hover: rgba(255, 138, 61, .14); }
html:root[data-theme="dark"]:not(#night-orange) body dialog[data-office-modal] { --office-dialog-label-scrim: transparent; }
html:root[data-theme="dark"]:not(#night-orange) body :is(.cb-owner__badge.cb-tone-cyan, .cb-owner__badge.cb-tone-purple, .cb-owner__badge.cb-tone-info, .cb-owner__badge.cb-tone-green) { --tone: var(--c-primary); }
html:root[data-theme="dark"]:not(#night-orange) body .tb-call:nth-child(2) .tb-avatar { --tone: #6f6a64; }
html:root[data-theme="dark"]:not(#night-orange) body [data-shell][data-current-view="hr"] [data-band="recent"] { --band: var(--c-info); }
/* Maps: warm dark tiles and hand-drawn streets, orange pins and routes */
html:root[data-theme="dark"]:not(#night-orange) body .cb-map { --map-bg: #0a0a0a; --st-ground: #0e0e0e; --st-patch: rgba(255, 255, 255, .03); --st-street: #6f6a64; --st-water: #24211e; background: #0a0a0a; }
html:root[data-theme="dark"]:not(#night-orange) body .cb-map .tb-map__blocks path, html:root[data-theme="dark"]:not(#night-orange) body .cb-map .tb-map__park path { fill: rgba(255, 255, 255, .03); }
html:root[data-theme="dark"]:not(#night-orange) body .cb-map .tb-map__water path { stroke: #24211e; }
html:root[data-theme="dark"]:not(#night-orange) body .cb-map :is(.tb-map__fine, .tb-map__roads, .tb-map__arterials) path { stroke: #6f6a64; }
html:root[data-theme="dark"]:not(#night-orange) body .cb-map :is(.tb-map__highways, .tb-map__beltway) path { stroke: #8f8a84; }
html:root[data-theme="dark"]:not(#night-orange) body .tb-ops .tb-tone-info.tb-pin { --tone: var(--c-primary); --pin-rim: #c9642a; }
html:root[data-theme="dark"]:not(#night-orange) body .dsp-dfw { background: #0b0a09 !important; }
html:root[data-theme="dark"]:not(#night-orange) body .aq-map-tiles { filter: grayscale(1) sepia(.25) brightness(.28) contrast(1.2) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .aq-map { background: #0e0e0e !important; }
html:root[data-theme="dark"]:not(#night-orange) body .aq-map a { background: #0a0a0a !important; }
html:root[data-theme="dark"]:not(#night-orange) body .dsp-dfw__route { stroke: #ff8a3d !important; filter: drop-shadow(0 0 3px rgba(255, 138, 61, .45)) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .dsp-dfw__pin { color: #ff8a3d !important; filter: drop-shadow(rgba(0, 0, 0, .8) 0 2px 4px) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .dsp-dfw__place { background: rgba(10, 10, 10, .88) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .dsp-dfw__pin[data-pin-state="unassigned"] { color: #ffd2ad !important; }
html:root[data-theme="dark"]:not(#night-orange) body .dsp-dfw__pin :is(i, .ic)::before { color: inherit !important; }
html:root[data-theme="dark"]:not(#night-orange) body .dsp-dfw__callout { background: rgba(10, 10, 10, .94) !important; color: var(--c-text-1) !important; box-shadow: inset 0 0 0 1px var(--night-line-strong) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .dsp-dfw__callout * { color: inherit !important; }
html:root[data-theme="dark"]:not(#night-orange) body .dsp-dfw__credit { background: #0a0a0a !important; color: var(--c-text-2) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .dsp-dfw__notice { background: rgba(10, 10, 10, .92) !important; border-color: var(--night-line) !important; }
/* Warm hairlines where screens hard-code teal */
html:root[data-theme="dark"]:not(#night-orange) body :is(.cb-row > td, .cb-area-row, .cb-lender-choice, .cb-detail-tabs, .cb-stage-pill, .verify-call, .vfy-filters button, .vfy-fact, .verify-destination, .vfy-handoff-list article, .vfy-activity-items article, .vfy-event-icon, .vfy-actions, .vfy-return-guide, .vfy-return-guide li, .verify-payment-summary, .verify-procedure-disclosure, .verify-summary, .vfy-section-switch select, .vfy-call-head .verify-avatar, .tp-tech-card, .tp-roster-search, .tp-roster-visit, .tp-roster-visits, .tp-directory, .tp-directory-columns, .mf-beneficiaries, .mf-payment-detail, .mf-payment-view, .mf-receipts .glass, .mf-payment-toolbar strong, .dsp-visits__date, .dispatch-warehouse-card, .dispatch-warehouse-product, [data-view="department-unconnected"] [data-package], .settings-transfer-state-row, [data-dispatch-calendar] .dispatch-calendar-bar) { border-color: var(--night-line) !important; }
/* Warm fills where screens hard-code teal glass */
html:root[data-theme="dark"]:not(#night-orange) body :is(.cb-area, .cb-area-row, .cb-detail-fact, .cb-lenders, .cb-lender-choice, .cb-stage-pill, .cb-summary-chips button, .verify-call, .vfy-fact, .verify-destination, .vfy-handoff-list article, .vfy-activity-items article, .vfy-return-guide, .vfy-return-guide li, .aq-lender, .aq-chip.aq-neutral, .aq-field) { background: var(--og-field) !important; box-shadow: none !important; }
html:root[data-theme="dark"]:not(#night-orange) body :is(.tp-directory, .tp-roster-preview, .tp-roster-toolbar) { background: rgba(10, 10, 10, .5) !important; }
html:root[data-theme="dark"]:not(#night-orange) body #aq-cases-screen .office-filter { background: var(--og-field) !important; box-shadow: none !important; }
html:root[data-theme="dark"]:not(#night-orange) body #aq-cases-screen input.cb-local-search { background: var(--og-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.5' fill='none' stroke='%23c4bfb9' stroke-width='1.5'/%3E%3Cpath d='M10.5 10.5L14 14' stroke='%23c4bfb9' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") 14px center/16px no-repeat !important; box-shadow: none !important; }
html:root[data-theme="dark"]:not(#night-orange) body .vfy-section-switch select { background-color: var(--og-field) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .aquis-mini-sr { background: rgba(10, 10, 10, .94) !important; }
/* Selected and active: orange fill + orange edge */
html:root[data-theme="dark"]:not(#night-orange) body :is(.vfy-filters button[aria-pressed="true"], .mf-modes [aria-current], .mf-beneficiary[aria-pressed="true"], .mf .mf-pkg__row.is-selected, .tp-roster-layout .tp-tech-card.is-selected, .cb-area-row.is-current, .dispatch-warehouse-table tr[aria-selected="true"], .dispatch-warehouse-table tr.is-selected, .verify-call[aria-pressed="true"], .verify-call[aria-selected="true"]) { background: var(--night-fill-strong) !important; border-color: var(--c-primary) !important; box-shadow: inset 0 0 0 1px var(--c-primary) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .cb-detail-tabs button[aria-pressed="true"] { border-bottom-color: var(--c-primary) !important; color: var(--c-primary) !important; }
html:root[data-theme="dark"]:not(#night-orange) body [data-dispatch-calendar] .day-nav [aria-pressed="true"] { background: var(--night-fill-strong) !important; box-shadow: inset 0 0 0 1px var(--c-primary) !important; }
html:root[data-theme="dark"]:not(#night-orange) body [data-dispatch-calendar] .page-heading .dispatch-calendar-week-strip [aria-pressed="true"] { border-color: var(--c-primary) !important; box-shadow: 0 0 0 1px var(--c-primary), 0 0 14px rgba(255, 138, 61, .22) !important; }
html:root[data-theme="dark"]:not(#night-orange) body [data-dispatch-calendar] .install-calendar .dispatch-calendar-event-selected { border-color: var(--c-primary) !important; box-shadow: 0 0 0 1px var(--c-primary), 0 0 16px rgba(255, 138, 61, .25) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .dispatch-warehouse-table tr { box-shadow: none; }
html:root[data-theme="dark"]:not(#night-orange) body .mf-receipts .mf-receipt-list .queue-item[aria-pressed="true"] { background: var(--night-fill-strong) !important; box-shadow: inset 4px 0 var(--c-primary) !important; }
/* Primary actions */
html:root[data-theme="dark"]:not(#night-orange) body :is(.cb-new, .mf .mf-expand-package, .mf button.mf-expand-package) { background: var(--c-cta) !important; color: var(--c-cta-ink) !important; border: 1px solid var(--c-cta) !important; text-shadow: none !important; }
html:root[data-theme="dark"]:not(#night-orange) body .tp-roster-actions .tp-btn:first-child { background: var(--c-cta-soft) !important; border-color: var(--c-primary) !important; box-shadow: none !important; }
/* Status chips: orange shades + their icon and text */
html:root[data-theme="dark"]:not(#night-orange) body :is(.mf-payment-detail .op-status, .mf-beneficiary-status, .mf-funded-state, .mf-package-state)[data-tone="ok"] { background: var(--night-fill-strong) !important; border-color: var(--night-line-strong) !important; color: var(--c-success-ink) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .mf-beneficiary-status * { color: inherit !important; }
html:root[data-theme="dark"]:not(#night-orange) body .mf-payment-detail .op-totals .op-line:first-child { background: var(--night-fill-strong) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .mf .mf-check.is-ok .mf-check__box { background: var(--c-primary) !important; color: var(--c-primary-ink) !important; box-shadow: 0 0 12px rgba(255, 138, 61, .25) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .dsp-evidence__row > .is-ok::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8' fill='%23ff8a3d'/%3E%3Cpath d='m5.2 9.3 2.5 2.5 5-5.2' fill='none' stroke='%231a0b00' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat !important; }
html:root[data-theme="dark"]:not(#night-orange) body .tp-roster-visit-grid .tp-visit-status { border-color: var(--night-line-strong) !important; background: rgba(255, 255, 255, .06) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .tp-roster-visit-grid :is([data-status="active"], [data-status="done"]) .tp-visit-status { border-color: var(--c-success) !important; background: var(--night-fill-strong) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .tp-roster-visit-grid .tp-visit-status::before { background: var(--c-text-2) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .tp-roster-visit-grid :is([data-status="active"], [data-status="done"]) .tp-visit-status::before { background: var(--c-success) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .tp-tech-status:is([data-state="active"], [data-state="done"]) .tp-tech-status__mark::before { background: var(--c-primary-ink) !important; }
/* Shared kit (AQ-0) */
html:root[data-theme="dark"]:not(#night-orange) body .aq-metric.aq-info { background: var(--night-fill-strong) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .aq-avatar { background: #4a2a12 !important; color: var(--c-text-1) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .aq-timeline-dot { background: var(--c-primary) !important; }
/* Text: the screens' teal halos and pale teal muted text */
html:root[data-theme="dark"]:not(#night-orange) body [data-shell] :is(.mf, .mf-payment-board, .mf-receipts) { text-shadow: 0 1px 2px rgba(0, 0, 0, .7) !important; }
html:root[data-theme="dark"]:not(#night-orange) body [data-shell] :is(.mf, .mf-payment-board, .mf-receipts) :is(.mf-muted, .money-note, .mf-date) { color: var(--c-text-2) !important; }
html:root[data-theme="dark"]:not(#night-orange) body :is(#aq-cases-screen, #office-main:has(#customers-layout)) { color: var(--c-text-1); text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
html:root[data-theme="dark"]:not(#night-orange) body #aq-cases-screen :is(td, th, p, small, strong, h1, h2, h3) { text-shadow: 0 1px 1px rgba(0, 0, 0, .7) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .dsp-dfw__place { text-shadow: 0 1px 3px #000, 0 0 6px #000 !important; }
/* Last small pieces: product-photo edge glow, evidence photo slot, Casos area dot, map pin icon */
html:root[data-theme="dark"]:not(#night-orange) body :is(.dsp-product__picture img, .dispatch-warehouse-product img) { filter: drop-shadow(0 0 1px rgba(255, 220, 190, .3)) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .dsp-evidence__photo { border-color: var(--night-line) !important; color: var(--c-text-2) !important; }
html:root[data-theme="dark"]:not(#night-orange) body #aq-cases-screen .cb-area-row .cb-stage-pill::before { background: var(--c-text-2) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .dsp-dfw__pin > .ic.dsp-i { color: currentColor !important; }
/* Review 05:00: structure stays neutral. Crédito's night tokens, Supervisión's tinted rows, transcript bubbles and report tiles carry no orange or brown; selection, primary actions, chips and key numbers keep it. */
html:root[data-theme="dark"]:not(#night-orange) { --ccw-bd: rgba(255, 255, 255, .22); --ccw-line: var(--night-line); --ccw-proposal-fill: var(--og-field); --ccw-proposal-edge: var(--night-line); --ccw-terms-edge: var(--night-line); --ccw-terms-fill: var(--og-field); --ccw-wash-hi: rgba(255, 255, 255, .03); --ccw-wash-lo: rgba(10, 10, 10, .5); --ccw-response-bg: rgba(10, 10, 10, .5); --ccw-value-bg: rgba(255, 255, 255, .03); --ccw-pop-bg: rgba(14, 14, 14, .95); }
html:root[data-theme="dark"]:not(#night-orange) body .sup8-view :is(.sup8-dept, .sup9-scope-box, .sup8-vrow:not(.is-selected-case), .sup9-audit-link) { background: var(--og-field) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .sup8-view .sup8-dept__sum { background: none !important; }
html:root[data-theme="dark"]:not(#night-orange) body .sup8-view .sup9-report-type { border-color: var(--night-line) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .verify-transcript .verify-turn:not([data-flag="true"]) p, html:root[data-theme="dark"]:not(#night-orange) body .verify-transcript .verify-turn[data-who="event"]:not([data-flag="true"]) > div { background: var(--og-field) !important; border-color: var(--night-line) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .verify-transcript .verify-speaker { background: rgba(255, 255, 255, .08) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .aq-index { background: var(--og-field) !important; }
html:root[data-theme="dark"]:not(#night-orange) body :is(.tp-directory, .tp-roster-preview, .tp-roster-toolbar, .tp-roster-visits) { border-color: var(--c-hairline-strong) !important; box-shadow: var(--og-shadow) !important; }
html:root[data-theme="dark"]:not(#night-orange) body :is(.ccw-decision-cell, .ccw-response) { background-image: none !important; box-shadow: inset 0 0 0 1px var(--night-line) !important; }
html:root[data-theme="dark"]:not(#night-orange) body .ccw-hero__right > .iox-btn--secondary { border-color: var(--night-line-strong) !important; }

/* P1v: one section control, below the title, on every Office page. */
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] [data-office-header-active] {
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px 16px !important; align-items: start !important; padding-bottom: 0 !important;
}
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] [data-office-header-active] > :is([data-office-header-slot="text"], [data-office-header-slot="title"], [data-office-header-slot="subtitle"], [data-office-date-line]) {
  grid-column: 1 / -1 !important; grid-row: auto !important; min-width: 0;
}
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] [data-office-header-active] > [data-office-header-slot="section"] {
  grid-column: 1 !important; grid-row: auto !important; justify-self: start; position: static !important; width: max-content !important; max-width: 100%;
}
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] [data-office-header-active] > [data-office-header-slot="actions"] {
  grid-column: 2 !important; grid-row: auto !important; margin: 0 !important; align-self: end;
}
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] [data-office-header-active] > .cb-heading-actions { grid-column: 1 / -1 !important; justify-content: flex-start; width: 100%; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] [data-office-header-active] .cb-new { margin-inline-start: auto; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] [data-office-header-active] p { margin-top: 8px !important; line-height: 1.45 !important; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-subtabs { width: max-content !important; max-width: 100%; align-items: center; gap: 8px; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-subtabs[hidden] { display: none !important; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-section-picker { width: 184px; max-width: 100%; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-section-picker > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-section-picker > summary::after { position: static !important; margin-inline-start: auto; }

/* Keep search and its filters in one self-contained popover over the current page. */
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-command { position: relative; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-command > input { flex: 1 1 0; min-width: 0; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-command > kbd { display: none; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-search-filter { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--office-pill-fill); color: var(--c-text-1); cursor: pointer; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-search-filter[aria-expanded="true"] { outline: 1px solid var(--c-glass-border); background: var(--og-field); }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-search-filters {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 30; display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px; padding: 16px; box-sizing: border-box; border: 1px solid var(--c-glass-border); border-radius: 14px;
  background: var(--og-pop-solid); color: var(--c-text-1); box-shadow: var(--og-shadow); backdrop-filter: blur(24px);
}
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-search-filters[hidden] { display: none; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-search-filters label { display: grid; gap: 6px; font: 500 13px/1.3 var(--font-ui); min-width: 0; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-search-filters :is(input,select) { width: 100%; min-width: 0; height: 36px; padding: 6px 10px; box-sizing: border-box; border: 1px solid var(--c-glass-border); border-radius: 8px; color: var(--c-text-1); background: var(--og-field); font: 400 14px/1.3 var(--font-ui); }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-command:has(.shx-search-filters:not([hidden])) > .shx-command__panel { top: calc(100% + 260px); max-height: min(360px,calc(100dvh - 350px)); }

/* The existing real street map owns the top row; no change to map source or pins. */
/* Follow-ups are a full-height triage list; stage, action, age and next step remain visible. */
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb--followups { display: flex !important; flex-direction: column; gap: 12px !important; min-height: 0; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb--followups .tb-fup { flex: 1; min-height: 0; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .tb-tr { min-height: 50px !important; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .tb-age { display: flex !important; gap: 4px; white-space: nowrap; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .tb-fup__contact { min-width: 0; }
@media (max-width: 700px) {
  html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] [data-office-header-active] { grid-template-columns: minmax(0,1fr) !important; }
  html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] [data-office-header-active] > [data-office-header-slot="actions"] { grid-column: 1 !important; justify-self: stretch; }
  html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-search-filters { padding: 12px; gap: 10px; }
  html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .tb-tr { grid-template-columns: minmax(0,1fr) auto !important; grid-template-rows:auto auto auto !important; align-content:start; row-gap:6px; min-height: 112px !important; max-height:none; }
  html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .tb-cust { grid-column: 1 / -1; grid-row:1; }
  html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .tb-reason { grid-column: 1; grid-row:2; }
  html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .tb-age { grid-column: 2; grid-row: 2; }
  html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .tb-fup__contact { grid-column: 1 / -1; grid-row:3; }
  html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .tb-reason { display:grid !important; gap:3px; white-space:normal; }
  html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .tb-fup__contact { display:block !important; justify-self:start; }
  html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .nb-followups__case-number { display:inline !important; margin-inline-start:auto; font-size:11px; }
  html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .tb-cust__t { order:1; flex:1; min-width:0; }
  html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .nb-followups__case-number { order:2; }
  html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .nb-followups__chevron { display:none !important; }
}

html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-subtabs { margin:0 !important; justify-self:start !important; justify-content:flex-start !important; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .tb-age { position:static; width:auto; height:auto; overflow:visible; clip-path:none; }
@media(min-width:881px){
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .tb-table--fup .tb-tr:not(.tb-tr--head) { grid-template-columns:minmax(250px,1.3fr) minmax(240px,1.3fr) 70px 140px 18px !important; }
}
html:root body [data-shell] .tb-team-scope { display:flex; align-items:center; gap:8px; font:400 13px/1.4 var(--font-ui); }
html:root body [data-shell] .tb-team-scope select { max-width:240px; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] .shx-subtabs:not([hidden]) { display:flex !important; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] [data-office-header-active] > [data-office-header-slot="section"] { grid-row:2 !important; }
html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] [data-office-header-active] > [data-office-header-slot="actions"] { grid-column:2 !important; grid-row:2 !important; width:auto; }
@media(max-width:700px){html:root:not(#p1v1):not(#p1v2):not(#p1v3):not(#p1v4) body [data-shell] [data-office-header-active] > [data-office-header-slot="actions"] { grid-column:1 !important;grid-row:3 !important; }}
/* Search popovers own the layer above page-section controls. */
html:root body [data-shell] .shx-topbar:has([data-command-input][aria-expanded="true"], .shx-search-filters:not([hidden])) { z-index:1000 !important; }
html:root body [data-view="rescue"] .rq-head h3 { display:none; }
/* Today uses its owned fit grid; content-sized desktop overrides would clip the pulse and calls row. */
