/* /fonts/console.css */
/* The console's fonts, self-hosted. Open Sans is the one text face (body and headings, every appearance), weights 300-800
   at normal width, latin and latin-ext. IBM Plex Mono is the one face for code, hashes and identifiers. Both carry the
   SIL Open Font License 1.1; the licence files sit beside the assets. */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/fonts/opensans-300-800-latinext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/fonts/opensans-300-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/plexmono-400-1.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/plexmono-400-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/plexmono-400-3.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/plexmono-400-4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/plexmono-400-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/plexmono-500-6.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/plexmono-500-7.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/plexmono-500-8.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/plexmono-500-9.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/plexmono-500-10.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* /css/tokens.css */
/* EQUA CyberRunner — shared component tokens.
   Brand sources: the EQUA CRM tokens and equa.dk (forest #223d31, sequoia #007354, sage,
   moss, ivory and stone). Semantic state colours stay distinct from the brand accent.
     html[data-theme="dark"] → dark   html[data-theme="light"] → light   unset → follows the system.
   Load order: fonts/console.css (Open Sans, IBM Plex Mono) → tokens.css → base.css → app.css → screen CSS. */

/* Light tokens + base type on :root, the 2x-screen hairline, @property. */
/* EQUA CRM — macOS vibrancy in EQUA colours. Tokens first; every surface reads from them. */
:root{color-scheme:light dark;font-family:var(--font-text);font-size:14px;line-height:1.45;letter-spacing:-.005em;font-optical-sizing:auto;font-synthesis:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;color:var(--label);background:var(--canvas)
;--canvas:#f5ede1;--surface:#fcf5e9;--label:#3d3329;--label-2:#716452;--label-4:#aeaeb2
;--fill-1:rgb(120 120 128/.08);--fill-2:rgb(120 120 128/.13);--fill-3:rgb(120 120 128/.19);--row-alt:rgb(120 120 128/.04)
;--hairline-w:1px;--hairline:#d7c9b4;--accent:#396648;--accent-hover:#0f2d27;--accent-tint:rgb(23 63 53/.07);--accent-tint-2:rgb(23 63 53/.12);--on-accent:#fff;--focus-ring:rgb(36 120 94/.42)
;--green-text:#1d5c49;--green-tint:rgb(36 130 96/.11);--green-dot:#2f8a67
;--amber-text:#8a5300;--amber-tint:rgb(255 159 10/.14);--amber-dot:#e38b00
;--rose-text:#b3261e;--rose-tint:rgb(255 59 48/.1);--rose-dot:#e5484d
;--blue-text:#0a5bc4;--blue-tint:rgb(0 122 255/.1);--blue-dot:#2f7cf6
;--chart-1:#22634f;--segment-bg:#fff;--control-bg:#fff;--control-bg-hover:#f7f7f8;--control-ring:0 0 0 var(--hairline-w) rgb(0 0 0/.13),0 1px 1.5px rgb(0 0 0/.07)
;--field-bg:#fff;--field-line:#98876e;--field-ring:0 0 0 var(--hairline-w) var(--field-line),inset 0 1px 1.5px rgb(0 0 0/.04)
;--glass-strong:rgb(251 251 252/.8);--glass-blur:blur(30px) saturate(185%)
;--shadow-1:0 0 0 var(--hairline-w) rgb(0 0 0/.045),0 1px 2px rgb(0 0 0/.04),0 3px 10px rgb(0 0 0/.025)
;--shadow-2:0 0 0 var(--hairline-w) rgb(0 0 0/.06),0 4px 12px rgb(0 0 0/.06),0 14px 34px rgb(0 0 0/.05)
;--shadow-pop:0 0 0 var(--hairline-w) rgb(0 0 0/.09),0 2px 6px rgb(0 0 0/.06),0 14px 36px rgb(0 0 0/.14)
;--shadow-modal:0 0 0 var(--hairline-w) rgb(0 0 0/.1),0 8px 20px rgb(0 0 0/.08),0 30px 80px rgb(0 0 0/.22)
;--shadow-segment:0 0 0 var(--hairline-w) rgb(0 0 0/.06),0 1px 2px rgb(0 0 0/.08),0 2px 6px rgb(0 0 0/.04)
;--scrim:rgb(0 0 0/.26)
/* The scales: type, weight, spacing, radius, the page layers and (above) the shadows. tests/test_historian_css_scales.cjs fails on a
   new raw value outside them. Breakpoints cannot be custom properties: the three are 700px (phone), 1000px (the side
   column stacks) and 1280px (wide), written min-width:N / max-width:N-1 so no width matches both sides. */
;--focus-color:var(--hist-rust)
;--z-page:20;--z-bar:150;--z-overlay:160;--z-float:170;--z-pop:180;--z-boot:400;--z-top:1000
;--text-xs:11px;--text-sm:12px;--text-md:13px;--text-base:14px;--text-lg:16px;--text-xl:18px;--text-2xl:20px;--text-3xl:24px;--text-title:28px
;--weight-regular:400;--weight-medium:500;--weight-strong:600
;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px
;--r-xs:4px;--r-sm:8px;--r-md:10px;--r-lg:14px;--r-pill:999px
;--ease-spring:linear(0,.075 5%,.227 10%,.389 15%,.536 20%,.656 25%,.75 30%,.821 35%,.873 40%,.911 45%,.938 50%,.971 60%,.986 70%,.994 80%,.997 90%,1);--ease-out:cubic-bezier(.22,.8,.26,1);--d-fast:160ms;--d-pop:340ms;--d-settle:480ms
;
/* The brand action colour (primary buttons, the sign-in band); --accent is the ink that reads on paper. */
--equa-brand:#173f35;--equa-brand-deep:var(--accent-hover);--equa-sequoia:#007354;--equa-moss:#a2b59a;
/* The app bar: every fixed page starts under it. */
--hs-bar-height:64px;--hs-shell-height:64px;
/* Historian names. The first six are the semantic tokens above under their former names; themes override the semantic one. */
--hist-paper:var(--canvas);--hist-card:var(--surface);--hist-ink:var(--label);--hist-muted:var(--label-2);--hist-green-ink:var(--accent);--hist-line:var(--hairline);
--hist-people:#5b4bb7;--hist-asset:#286a70;--hist-green:#407957;--hist-rust:#b9390e;--hist-brown:#aa865e;--hist-assessment:#efe3c8;--hist-chip:#faf0df;--hist-shadow:#5e472416;
/* Two families, in every appearance: one for text (body and headings alike) and one for code, hashes and identifiers. */
--font-text:'Open Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;--font-mono:'IBM Plex Mono',ui-monospace,'SF Mono',Menlo,Consolas,monospace}
@media(min-resolution:2dppx){:root{--hairline-w:.5px}}
@property --tabs-fade{syntax:'<length>';inherits:false;initial-value:0px}

/* Dark — system appearance (no explicit choice) … */
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]):not([data-theme="unifi"]):not([data-theme="jysk"]):not([data-theme="equa"]){--canvas:#292822;--surface:#35342c;--label:#f1e7d6;--segment-bg:rgb(118 118 128/.44);--label-2:#c5b59d;--label-4:#636366
;--fill-1:rgb(118 118 128/.16);--fill-2:rgb(118 118 128/.24);--fill-3:rgb(118 118 128/.32);--row-alt:rgb(255 255 255/.028)
;--hairline:#675d4c;--accent:#a2c6a5;--accent-hover:#34906f;--accent-tint:rgb(102 193 155/.1);--accent-tint-2:rgb(102 193 155/.17);--focus-ring:rgb(102 193 155/.5)
;--green-text:#7fd1ad;--green-tint:rgb(102 193 155/.16);--green-dot:#4fbf8f
;--amber-text:#ffc266;--amber-tint:rgb(255 159 10/.18);--amber-dot:#ffa51f
;--rose-text:#ff8f86;--rose-tint:rgb(255 69 58/.18);--rose-dot:#ff5d53
;--blue-text:#7ab7ff;--blue-tint:rgb(10 132 255/.2);--blue-dot:#409cff
;--chart-1:#66c19b;--control-bg:rgb(255 255 255/.1);--control-bg-hover:rgb(255 255 255/.15);--control-ring:inset 0 1px 0 rgb(255 255 255/.06),0 0 0 var(--hairline-w) rgb(255 255 255/.07),0 1px 2px rgb(0 0 0/.4)
;--field-bg:rgb(255 255 255/.055);--field-line:#95876f;--field-ring:0 0 0 var(--hairline-w) var(--field-line),inset 0 1px 1.5px rgb(0 0 0/.25)
;--glass-strong:rgb(42 42 46/.8);--shadow-1:0 0 0 var(--hairline-w) rgb(255 255 255/.06),0 1px 2px rgb(0 0 0/.35)
;--shadow-2:0 0 0 var(--hairline-w) rgb(255 255 255/.09),0 6px 16px rgb(0 0 0/.35),0 16px 40px rgb(0 0 0/.3)
;--shadow-pop:0 0 0 var(--hairline-w) rgb(255 255 255/.1),0 2px 8px rgb(0 0 0/.35),0 18px 44px rgb(0 0 0/.5)
;--shadow-modal:0 0 0 var(--hairline-w) rgb(255 255 255/.1),0 10px 24px rgb(0 0 0/.4),0 34px 90px rgb(0 0 0/.6)
;--shadow-segment:0 0 0 var(--hairline-w) rgb(255 255 255/.08),0 1px 3px rgb(0 0 0/.4)
;--scrim:rgb(0 0 0/.5);
--equa-brand:#2c7a60;
--hist-people:#b7a9f7;--hist-asset:#84c3c8;--hist-green:#83b28d;--hist-rust:#efa57b;--hist-brown:#c2a078;--hist-assessment:#45412f;--hist-chip:#403b30;--hist-shadow:#00000030}}
/* … and the explicit toggle. */
:root[data-theme="dark"]{--canvas:#292822;--surface:#35342c;--label:#f1e7d6;--segment-bg:rgb(118 118 128/.44);--label-2:#c5b59d;--label-4:#636366
;--fill-1:rgb(118 118 128/.16);--fill-2:rgb(118 118 128/.24);--fill-3:rgb(118 118 128/.32);--row-alt:rgb(255 255 255/.028)
;--hairline:#675d4c;--accent:#a2c6a5;--accent-hover:#34906f;--accent-tint:rgb(102 193 155/.1);--accent-tint-2:rgb(102 193 155/.17);--focus-ring:rgb(102 193 155/.5)
;--green-text:#7fd1ad;--green-tint:rgb(102 193 155/.16);--green-dot:#4fbf8f
;--amber-text:#ffc266;--amber-tint:rgb(255 159 10/.18);--amber-dot:#ffa51f
;--rose-text:#ff8f86;--rose-tint:rgb(255 69 58/.18);--rose-dot:#ff5d53
;--blue-text:#7ab7ff;--blue-tint:rgb(10 132 255/.2);--blue-dot:#409cff
;--chart-1:#66c19b;--control-bg:rgb(255 255 255/.1);--control-bg-hover:rgb(255 255 255/.15);--control-ring:inset 0 1px 0 rgb(255 255 255/.06),0 0 0 var(--hairline-w) rgb(255 255 255/.07),0 1px 2px rgb(0 0 0/.4)
;--field-bg:rgb(255 255 255/.055);--field-line:#95876f;--field-ring:0 0 0 var(--hairline-w) var(--field-line),inset 0 1px 1.5px rgb(0 0 0/.25)
;--glass-strong:rgb(42 42 46/.8);--shadow-1:0 0 0 var(--hairline-w) rgb(255 255 255/.06),0 1px 2px rgb(0 0 0/.35)
;--shadow-2:0 0 0 var(--hairline-w) rgb(255 255 255/.09),0 6px 16px rgb(0 0 0/.35),0 16px 40px rgb(0 0 0/.3)
;--shadow-pop:0 0 0 var(--hairline-w) rgb(255 255 255/.1),0 2px 8px rgb(0 0 0/.35),0 18px 44px rgb(0 0 0/.5)
;--shadow-modal:0 0 0 var(--hairline-w) rgb(255 255 255/.1),0 10px 24px rgb(0 0 0/.4),0 34px 90px rgb(0 0 0/.6)
;--shadow-segment:0 0 0 var(--hairline-w) rgb(255 255 255/.08),0 1px 3px rgb(0 0 0/.4)
;--scrim:rgb(0 0 0/.5);
--equa-brand:#2c7a60;
--hist-people:#b7a9f7;--hist-asset:#84c3c8;--hist-green:#83b28d;--hist-rust:#efa57b;--hist-brown:#c2a078;--hist-assessment:#45412f;--hist-chip:#403b30;--hist-shadow:#00000030}
:root[data-theme="light"]{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark}

/* Increased contrast (prefers-contrast: more), following whichever appearance is in effect: separators and control
   boundaries reach 3:1, input boundaries 4.5:1, secondary text 7:1 and tertiary text 4.5:1. The EQUA, JYSK and UniFi
   appearances carry their own values in their files. */
@media(prefers-contrast:more) and (prefers-color-scheme:light){:root:not([data-theme]){--fill-1:rgb(120 120 128/.14);--hairline:#98876e;--field-line:#786a55;--label-2:#584e40;--label-4:#6c6c71}}
@media(prefers-contrast:more){:root[data-theme="light"]{--fill-1:rgb(120 120 128/.14);--hairline:#98876e;--field-line:#786a55;--label-2:#584e40;--label-4:#6c6c71}}
@media(prefers-contrast:more) and (prefers-color-scheme:dark){:root:not([data-theme="light"]):not([data-theme="unifi"]):not([data-theme="jysk"]):not([data-theme="equa"]){--fill-1:rgb(118 118 128/.26);--hairline:#95876f;--field-line:#b2a897;--label-2:#cec0ac;--label-4:#9b9b9e}}
@media(prefers-contrast:more){:root[data-theme="dark"]{--fill-1:rgb(118 118 128/.26);--hairline:#95876f;--field-line:#b2a897;--label-2:#cec0ac;--label-4:#9b9b9e}}

/* Reduced transparency wins in either appearance (listed last, matching the dark selectors' weight). */
@media(prefers-reduced-transparency:reduce){:root,:root:not([data-theme="light"]):not([data-theme="unifi"]):not([data-theme="jysk"]):not([data-theme="equa"]),:root[data-theme="dark"]{--glass-strong:var(--surface);--glass-blur:none}}

/* /css/base.css */
/* ==========================================================================================
   CyberRunner · css/base.css — the EQUA CRM component layer (E:/localcrm/equa-crm-v2/src: styles.css,
   follow-me.css, assistant.css, flows/flow.css, links/links.css, tags/tags.css, account-logo.css),
   ported faithfully from understand/localcrm-components.css. Group headers name each React component
   and its source lines; rule text is verbatim except:
     · CRM-only groups dropped: [25e] contract consumption + contract table, [34] sign-in; CRM-only
       selectors pruned from shared/responsive rules (contracts, signatures, timesheets, planner,
       invoices, cash flow, auth, co-working cursor);
     · [31] the truncated @media(forced-colors:active) block restored (unclosed in the extract, it
       swallowed every later group);
     · every @media(prefers-color-scheme:dark) component rule also applies under
       :root[data-theme="dark"] and yields to :root[data-theme="light"] (the console's theme toggle).
   Generated by work/ui-foundation/tools/build_base.py. The security layer on top is css/app.css.
   ========================================================================================== */

/* ===== [01 BASE, BROWSER SURFACES, TYPOGRAPHY] =====
   used by: global (main.tsx imports styles.css). body::before paints the green "desktop" tint that glass samples.
   source:  styles.css:54-82 */
/* Base and browser surfaces */
*,*::before,*::after{box-sizing:border-box}
html{scrollbar-color:rgb(120 120 128/.42) transparent;scrollbar-width:thin}
body{margin:0;min-height:100vh}
body::before{content:'';position:fixed;inset:0;z-index:-1;background:var(--canvas);pointer-events:none}
*{scrollbar-width:thin;scrollbar-color:rgb(120 120 128/.42) transparent}
button,input,select,textarea{font:inherit;letter-spacing:inherit;color:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;border:0;background:none;padding:0}
button:disabled{cursor:default;opacity:.5}
.button.primary:disabled{opacity:1;background:var(--fill-2);color:var(--label-2);box-shadow:none}
a{color:inherit;text-decoration:none}
a,button,input,select,textarea,summary,[tabindex]{outline-offset:2px}
:focus-visible{outline:2px solid var(--focus-color);outline-offset:2px;border-radius:var(--r-xs)}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:0}
svg{flex-shrink:0}
svg.lucide{stroke-width:1.75}
h1,h2,h3,p{margin:0}
h1{font-size:30px;line-height:1.12;letter-spacing:-.022em;font-weight:700;text-wrap:balance}
h2{font-size:var(--text-xl);line-height:1.3;letter-spacing:-.012em;font-weight:var(--weight-strong);text-wrap:balance}
h3{font-size:var(--text-lg);line-height:1.35;letter-spacing:-.008em;font-weight:var(--weight-strong)}
p{text-wrap:pretty}
::selection{background:var(--accent-tint-2);color:inherit}
input,textarea{caret-color:var(--accent)}
::placeholder{color:var(--label-2);opacity:1}
:root :is(code,kbd,samp,pre,.mono){font-family:var(--font-mono)}
code{font-size:.92em}
.numeric,td,.stat>strong{font-variant-numeric:tabular-nums}
@supports(corner-shape:superellipse(1.4)){.panel,.modal,.search-results,.stat,.person-card{corner-shape:superellipse(1.4)}}

/* ===== [02 MOTION VOCABULARY (keyframes materialize / settle / sheet-in / scrim-in / rise-in / toolbar-title / toolbar-edge / loading / sheet-up)] =====
   used by: everything; settle runs on .page-content>* on every mount
   source:  styles.css:84-92, styles.css:1495
   note:    Other keyframes live with their component: tabs-fade (group 08), assistant-thinking (26), ai-pulse (33), assistant-drawer-in / assistant-launcher-in / cowork-click / entra-waiting (27), flow-* (29), cx-* (30), tag-pop (31), cfp-pulse (33). */
/* Motion vocabulary */
@keyframes materialize{from{opacity:0;transform:scale(.97) translateY(-4px);filter:blur(6px)}}
@keyframes settle{from{opacity:.35;transform:translateY(6px)}}
@keyframes sheet-in{from{opacity:0;transform:translateY(10px) scale(.97)}}
@keyframes scrim-in{from{opacity:0}}
@keyframes rise-in{from{opacity:0;transform:translate(-50%,10px) scale(.97)}}
@keyframes toolbar-title{from{opacity:0}}
@keyframes toolbar-edge{to{box-shadow:0 var(--hairline-w) 0 var(--hairline),0 8px 24px rgb(0 0 0/.045)}}
@keyframes loading{to{transform:translateX(220%)}}
@keyframes sheet-up{from{transform:translateY(24px);opacity:.4}}

/* ===== [03 APP SHELL — FLOATING GLASS SIDEBAR (brand, workspace switch, nav groups, nav links, nav counts, footer cards, status line)] =====
   used by: App.tsx <aside class="sidebar"> (App.tsx:82)
   source:  styles.css:94-132 */
/* Shell: floating vibrancy sidebar */
.app{min-height:100vh}
.brand{display:flex;flex-direction:column;gap:3px;padding:2px 10px 16px}
.workspace-switch{display:flex;align-items:center;gap:10px;width:100%;margin-bottom:18px;padding:7px 10px 7px 7px;text-align:left;border-radius:var(--r-md);background:var(--fill-1);transition:background var(--d-fast) var(--ease-out)}
.workspace-switch:hover{background:var(--fill-2)}
.workspace-switch>span:nth-child(2){flex:1;min-width:0}
.workspace-switch strong{display:block;font-size:var(--text-md);font-weight:var(--weight-strong);line-height:1.25}
.workspace-switch small{display:block;margin-top:1px;font-size:var(--text-sm);color:var(--label-2)}
.workspace-switch>svg{color:var(--label-2)}
.workspace-symbol{display:grid;place-items:center;width:30px;height:30px;border-radius:var(--r-xs);background:linear-gradient(180deg,#2d735c,#173f35);color:#fff;font-size:var(--text-lg);font-weight:760;letter-spacing:-.02em;box-shadow:inset 0 1px 0 rgb(255 255 255/.18),0 1px 2px rgb(23 63 53/.3)}

/* ===== [03b COLLAPSIBLE ICON RAIL (.app.sidebar-railed; toolbar toggle or Cmd/Ctrl+B)] =====
   used by: App.tsx <div class="app sidebar-railed"> + .sidebar-toggle (App.tsx:81 wrapper, :83 toggle)
   source:  styles.css:1523-1539 */
/* Collapsible sidebar: an icon rail on desktop (toolbar toggle or Cmd/Ctrl+B); phones and tablets keep the drawer. */
@media(min-width:1000px){
.workspace,.toast{transition:width var(--d-settle,420ms) var(--ease-out),margin-left var(--d-settle,420ms) var(--ease-out),left var(--d-settle,420ms) var(--ease-out)}
}
@media(prefers-reduced-motion:reduce){.workspace,.toast{transition:none}}


/* ===== [04 UNIFIED GLASS TOOLBAR (location/breadcrumb, search capsule + keycap + results popover, Ask-assistant capsule, demo pill, icon buttons, bell + unread dot, divider, profile capsule)] =====
   used by: App.tsx <header class="topbar"> (App.tsx:83)
   source:  styles.css:134-176 */
/* Shell: unified glass toolbar */
.workspace{min-width:0}
.breadcrumb{color:var(--label-2)}
.search-results{position:absolute;top:calc(100% + 8px);left:0;right:0;min-width:340px;z-index:60;padding:6px;border-radius:var(--r-xs);background:var(--glass-strong);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:var(--shadow-pop);transform-origin:top center;animation:materialize var(--d-pop) var(--ease-spring)}
.search-results>button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border-radius:var(--r-xs);text-align:left;color:var(--label)}
.search-results>button>svg{color:var(--label-2)}
.search-results>button:hover,.search-results>button:focus-visible{background:var(--accent);color:var(--on-accent);outline:0}
.search-results>button:hover svg,.search-results>button:hover small,.search-results>button:focus-visible svg,.search-results>button:focus-visible small{color:rgb(255 255 255/.78)}
.search-results>button>span{flex:1;min-width:0;font-size:var(--text-md);font-weight:var(--weight-medium)}
.search-results small{display:block;margin-top:1px;font-size:var(--text-sm);font-weight:var(--weight-regular);color:var(--label-2);text-transform:capitalize}
.search-results>p{padding:12px;font-size:var(--text-md);color:var(--label-2)}
.icon-button{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:32px;height:32px;border-radius:var(--r-xs);color:var(--label-2);transition:background var(--d-fast) var(--ease-out),color var(--d-fast) var(--ease-out),transform 90ms var(--ease-out)}
.icon-button:hover{background:var(--fill-1);color:var(--label)}
.icon-button:active{background:var(--fill-2);transform:scale(.94)}
.icon-button>svg{width:18px;height:18px}

/* ===== [04b PRESENCE STACK + POPOVER + FOLLOW PILL] =====
   used by: Presence.tsx (whole component). Responsive rules for presence are inside the Intelligence media blocks of group 26 (styles.css:1417-1444).
   source:  styles.css:1378-1416 */
/* Live workspace presence */
.presence-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px 12px;box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
.presence-heading>span:first-child{display:grid;gap:2px}
.presence-heading strong{font-size:var(--text-base);font-weight:var(--weight-strong);letter-spacing:-.01em;color:var(--label)}
.presence-heading small{font-size:var(--text-sm);color:var(--label-2)}

/* ===== [04c AVATARS / MONOGRAMS (person avatars) + AVATAR STACK] =====
   used by: ui.tsx Avatar; ui.tsx ProjectCard .avatar-stack; CRM.tsx Person
   source:  styles.css:177-183, styles.css:508-515 */
.avatar{position:relative;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:32px;height:32px;overflow:hidden;border-radius:50%;background:var(--accent-tint-2);color:var(--accent);font-size:var(--text-sm);font-weight:var(--weight-strong);letter-spacing:0;box-shadow:inset 0 0 0 var(--hairline-w) rgb(0 0 0/.06)}
.avatar.small{width:24px;height:24px;font-size:var(--text-sm);letter-spacing:-.03em}
.avatar.large{width:56px;height:56px;font-size:var(--text-xl)}
.avatar.teal{background:var(--green-tint);color:var(--green-text)}
.avatar.rose,.avatar.amber,.avatar.blue{background:var(--fill-2);color:var(--label-2)}
.avatar.neutral{background:var(--fill-2);color:var(--label-2)}
.avatar>img,.avatar img{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;background:var(--fill-1)}

/* ===== [05 PREVIEW BANNER, SKIP LINK, MAIN CONTENT, PAGE CONTENT, PAGE HEADING (large title + subtitle + heading actions)] =====
   used by: App.tsx (skip link, <main id="main-content">), CRM.tsx PageHeading (CRM.tsx:15), Dashboard.tsx:34
   source:  styles.css:184-186, styles.css:189-197, styles.css:1540-1541 */
.skip-link{position:fixed;top:-100px;left:14px;z-index:var(--z-top);padding:9px 16px;border-radius:var(--r-pill);background:var(--accent);color:var(--on-accent);font-weight:var(--weight-strong)}
.skip-link:focus{top:14px}
.main-content{padding:24px 28px 48px 18px;outline:0}
.page-content{max-width:1520px;margin:0 auto}
.page-content>*{animation:settle var(--d-settle) var(--ease-spring) backwards}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:8px 0 24px}
.page-heading p{margin-top:6px;font-size:var(--text-base);color:var(--label-2)}
.heading-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.heading-actions:empty{display:none}
/* Room under the last row for the floating @EQUA launcher. */
.page-content{padding-bottom:56px}

/* ===== [06 TOAST + NOTIFICATION POPOVER] =====
   used by: App.tsx toast (App.tsx:87) and notifications popover (App.tsx:93)
   source:  styles.css:212-221 */
.toast{position:fixed;bottom:24px;left:50%;z-index:100;display:flex;align-items:center;gap:12px;max-width:min(560px,calc(100vw - 32px));padding:10px 10px 10px 16px;transform:translateX(-50%);border-radius:var(--r-md);background:rgb(29 29 31/.9);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);color:#f5f5f7;font-size:var(--text-md);font-weight:var(--weight-medium);box-shadow:var(--shadow-pop);animation:rise-in var(--d-pop) var(--ease-spring)}
.toast>.icon-button{width:26px;height:26px;color:rgb(255 255 255/.72)}
.toast>.icon-button:hover{background:rgb(255 255 255/.12);color:#fff}

/* ===== [07 BUTTONS (primary / secondary / danger / small / text / full-width) — press = scale(.97) in 90ms] =====
   used by: ui.tsx + every page; disabled primary rule is in group 01 (styles.css:64); icon-button is in group 04 (styles.css:165-168)
   source:  styles.css:223-237 */
/* Controls */
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:0 16px;border-radius:var(--r-xs);background:var(--control-bg);box-shadow:var(--control-ring);color:var(--label);font-size:var(--text-md);font-weight:var(--weight-strong);letter-spacing:-.005em;white-space:nowrap;transition:background var(--d-fast) var(--ease-out),box-shadow var(--d-fast) var(--ease-out),transform 90ms var(--ease-out)}
.button>svg{width:16px;height:16px}
.button:hover{background:var(--control-bg-hover)}
.button:active:not(:disabled){transform:scale(.97)}
.button.primary{background:var(--equa-brand);color:var(--on-accent);box-shadow:inset 0 1px 0 rgb(255 255 255/.14),0 1px 2px rgb(15 45 39/.28),0 3px 10px rgb(15 45 39/.14)}
.button.primary:hover{background:var(--equa-brand-deep)}
.button.small{min-height:28px;padding:0 12px;font-size:var(--text-sm)}
.button.small>svg{width:14px;height:14px}
.button.danger{background:var(--rose-tint);color:var(--rose-text);box-shadow:none}
.button.danger:hover{background:rgb(255 59 48/.16)}
.full-width{width:100%}
.text-button{display:inline-flex;align-items:center;gap:5px;font-size:var(--text-md);font-weight:var(--weight-strong);color:var(--accent);white-space:nowrap;transition:opacity var(--d-fast) var(--ease-out)}
.text-button>svg{width:15px;height:15px}
.text-button:hover{opacity:.72}

/* ===== [08 TABS TRACK (pill tabs + counts) / SEGMENTED CONTROL / SEARCH BOX / LIST TOOLBAR] =====
   used by: CRM.tsx Tabs (CRM.tsx:16), ui.tsx SearchBox, CRM.tsx list-toolbar record-toolbar
   source:  styles.css:238-258 */
.tabs{display:flex;align-items:center;gap:2px;width:max-content;max-width:100%;margin:18px 0 20px;padding:3px;overflow:auto;border-radius:var(--r-xs);background:var(--fill-1);white-space:nowrap;scrollbar-width:none}
.tabs>button{position:relative;min-height:30px;padding:0 14px;border-radius:var(--r-xs);color:var(--label-2);font-size:var(--text-md);font-weight:var(--weight-strong);transition:background var(--d-fast) var(--ease-out),color var(--d-fast) var(--ease-out)}
.tabs>button:hover{color:var(--label)}
.tabs>button.active{background:var(--segment-bg);color:var(--label);font-weight:var(--weight-strong);box-shadow:var(--shadow-segment)}
.tabs>button.active::after{content:none}
@supports(animation-timeline:scroll()){.tabs{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - var(--tabs-fade)),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - var(--tabs-fade)),transparent);animation:tabs-fade linear both;animation-timeline:scroll(self inline)}}
@keyframes tabs-fade{0%,92%{--tabs-fade:28px}100%{--tabs-fade:0px}}
.tabs>button:has(.tab-count){display:inline-flex;align-items:center;gap:7px;padding-right:8px}
.tab-count{display:inline-grid;place-items:center;min-width:20px;height:18px;padding:0 6px;border-radius:var(--r-pill);background:var(--fill-2);color:var(--label-2);font-size:var(--text-sm);font-weight:var(--weight-strong);font-variant-numeric:tabular-nums}
.tabs>button.active .tab-count{background:var(--accent-tint-2);color:var(--accent)}
.search-box{display:flex;align-items:center;gap:8px;min-width:200px;height:32px;padding:0 12px;border-radius:var(--r-pill);background:var(--fill-1);color:var(--label-2);transition:background var(--d-fast) var(--ease-out),box-shadow var(--d-fast) var(--ease-out)}
.search-box:focus-within{background:var(--field-bg);box-shadow:var(--field-ring),0 0 0 3.5px var(--focus-ring)}
.search-box>svg{width:15px;height:15px}
.search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;font-size:var(--text-md);color:var(--label)}
.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px 12px 20px;box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
.list-toolbar.standalone{margin:20px 0 16px;padding:0;box-shadow:none}
.list-toolbar .tabs{margin:0}

/* ===== [09 FIELDS / SELECTS / TEXTAREA / CHECKBOX / CHOICE CHIPS / UPLOAD BUTTON] =====
   used by: ui.tsx Field (<label class="field">), filter-select / inline-select everywhere
   source:  styles.css:259-283 */
.field{display:flex;flex-direction:column;gap:7px;min-width:0;text-align:left}
.field>span{font-size:var(--text-md);font-weight:var(--weight-strong);color:var(--label)}
.field.full{grid-column:1/-1}
.field input,.field select,.field textarea{width:100%;min-height:36px;padding:7px 12px;border:0;border-radius:var(--r-xs);background:var(--field-bg);box-shadow:var(--field-ring);color:var(--label);font-size:var(--text-base);outline:0;transition:box-shadow var(--d-fast) var(--ease-out)}
.field input:focus,.field select:focus,.field textarea:focus{box-shadow:0 0 0 1px var(--accent),0 0 0 4px var(--focus-ring)}
.field select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center}
.field textarea{min-height:92px;line-height:1.5;resize:vertical}
.field input[type=checkbox]{width:16px;min-height:16px;box-shadow:none}
.field small{font-size:var(--text-sm);line-height:1.5;color:var(--label-2)}
input[type=checkbox],input[type=radio]{width:16px;height:16px;accent-color:var(--accent)}
.checkbox-control{display:flex;align-items:center;gap:9px;min-height:36px;font-size:var(--text-md)}
.choice-chip{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 12px;border-radius:var(--r-pill);background:var(--fill-1);color:var(--label);font-size:var(--text-md);font-weight:var(--weight-medium);transition:background var(--d-fast) var(--ease-out)}
.choice-chip:hover{background:var(--fill-2)}
.choice-chip.selected{background:var(--accent-tint-2);color:var(--accent);box-shadow:inset 0 0 0 1px rgb(36 120 94/.28);font-weight:var(--weight-strong)}

/* ===== [09b SWITCH (macOS "Tag along" switch) + GUIDED FORM NOTE + CO-WORKING CURSOR] =====
   used by: App.tsx assistant drawer <label class="follow-toggle"> (App.tsx:92); RecordEditor guided note; App.tsx .cowork-cursor (App.tsx:86)
   source:  follow-me.css:14-36 */
/* Tag along: macOS switch, guided form note and the co-working cursor */








@supports(corner-shape:superellipse(1.4)){.assistant-drawer{corner-shape:superellipse(1.4)}}

/* ===== [10 PANELS + PANEL HEADINGS + SECTION HEADINGS] =====
   used by: ui.tsx Panel (<section class="panel">), Dashboard/CRM section-heading
   source:  styles.css:285-295 */
/* Containers */
.panel{min-width:0;overflow:hidden;border-radius:var(--r-xs);background:var(--surface);box-shadow:var(--shadow-1)}
.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px 0}
.panel-heading>.text-button{margin-top:2px}
.panel-heading+.table-scroll{margin-top:10px}
.panel-heading p{margin-top:3px;font-size:var(--text-md);color:var(--label-2)}
.panel-body{padding:20px}
.padded-heading{padding:18px 20px 0}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:34px 0 14px}
.section-heading h2{font-size:var(--text-2xl);font-weight:700;letter-spacing:-.018em}
.section-heading p{margin-top:3px;font-size:var(--text-md);color:var(--label-2)}

/* ===== [11 BADGES / STATE BADGES / STATUS DOTS / MINI DOTS / COUNT BADGES / PROGRESS / LOCK BADGE] =====
   used by: ui.tsx Badge, Progress; Dashboard count-badge; lock-badge in ui.tsx ProjectCard
   source:  styles.css:296-318, styles.css:1446-1449 */
.badge{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px 0 8px;border-radius:var(--r-pill);background:var(--fill-1);color:var(--label-2);font-size:var(--text-sm);font-weight:var(--weight-strong);letter-spacing:0;white-space:nowrap}
.status-dot{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:var(--label-2)}
.badge.teal{background:var(--green-tint);color:var(--green-text)}
.badge.teal .status-dot{background:var(--green-dot)}
.badge.amber{background:var(--amber-tint);color:var(--amber-text)}
.badge.amber .status-dot{background:var(--amber-dot)}
.badge.rose{background:var(--rose-tint);color:var(--rose-text)}
.badge.rose .status-dot{background:var(--rose-dot)}
.badge.blue{background:var(--blue-tint);color:var(--blue-text)}
.badge.blue .status-dot{background:var(--blue-dot)}
.count-badge{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 8px;border-radius:var(--r-pill);background:var(--fill-2);color:var(--label-2);font-size:var(--text-sm);font-weight:var(--weight-strong);font-variant-numeric:tabular-nums}
.progress{height:6px;overflow:hidden;border-radius:var(--r-pill);background:var(--fill-2)}
.progress>span{display:block;height:100%;border-radius:inherit;background:var(--chart-1)}
.progress.teal>span{background:var(--green-dot)}
.progress.amber>span{background:var(--amber-dot)}
.progress.rose>span{background:var(--rose-dot)}
.progress.blue>span{background:var(--blue-dot)}

/* ===== [12 ZEBRA TABLES + RECORD LINKS + CELL SUBLINES + MUTED] =====
   used by: ui.tsx Table (<div class="table-scroll"><table class="data-table">)
   source:  styles.css:319-336 */
.table-scroll{width:100%;overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;font-size:var(--text-md)}
th{padding:10px 16px;border-bottom:var(--hairline-w) solid var(--hairline);background:transparent;color:var(--label-2);font-size:var(--text-sm);font-weight:var(--weight-strong);white-space:nowrap}
td{padding:11px 16px;color:var(--label);white-space:nowrap}
th:first-child,td:first-child{padding-left:20px}
th:last-child,td:last-child{padding-right:20px}
tbody tr:nth-child(even){background:var(--row-alt)}
tbody tr{transition:background var(--d-fast) var(--ease-out)}
tbody tr:hover{background:var(--fill-1)}
.record-link{font-weight:var(--weight-strong);color:var(--label);text-align:left}
.record-link:hover{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.muted{font-size:var(--text-md);line-height:1.55;color:var(--label-2)}
.muted code{font-size:inherit}
.danger-text{color:var(--rose-text)!important}

/* ===== [12b PHONE TABLE -> CARD STACKING (<=640px; td[data-label] set by ui.tsx Table)] =====
   used by: ui.tsx Table
   source:  styles.css:1497-1512 */
@media(max-width:640px){
.table-scroll:has(>table.data-table){overflow:visible;-webkit-mask-image:none;mask-image:none}
.table-scroll table.data-table{min-width:0;width:100%}
table.data-table,table.data-table>tbody{display:block}
table.data-table>thead{display:none}
table.data-table>tbody>tr{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;padding:14px 16px;box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
table.data-table>tbody>tr:last-child{box-shadow:none}
table.data-table>tbody>tr>td{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:3px;min-width:0;padding:0!important;border:0;text-align:left;white-space:normal;overflow-wrap:anywhere;box-shadow:none;background:none}
table.data-table>tbody>tr>td::before{content:attr(data-label);font-size:var(--text-sm);font-weight:var(--weight-medium);line-height:1.3;color:var(--label-2)}
table.data-table>tbody>tr>td:first-child{grid-column:1/-1;padding-right:40px!important;font-size:var(--text-lg)}
table.data-table>tbody>tr>td:first-child::before,table.data-table>tbody>tr>td[data-label=""]::before{content:none}
table.data-table>tbody>tr>td[colspan]{grid-column:1/-1}
table.data-table>tbody>tr>td:empty{display:none}
table.data-table>tbody>tr>td:last-child:not(:first-child):has(>.icon-button:only-child){position:absolute;top:10px;right:8px}
table.data-table>tbody>tr>td:not(:first-child):has(>.button,>.icon-button:not(:only-child)){grid-column:1/-1;flex-direction:row;flex-wrap:wrap;gap:8px}
}

/* ===== [13 EMPTY STATE / ERROR / ALL-CLEAR] =====
   used by: ui.tsx Empty, ErrorMessage; Dashboard .all-clear
   source:  styles.css:337-344 */
.all-clear{display:flex;align-items:center;gap:10px;padding:36px 20px;color:var(--green-text);font-size:var(--text-base);font-weight:var(--weight-strong)}
.empty{padding:56px 24px;text-align:center;color:var(--label-2)}
.empty>svg{width:34px;height:34px;margin-bottom:14px;color:var(--label-2)}
.empty>.button,.empty>p+.button{margin-top:16px}
.empty h3{font-size:var(--text-xl);font-weight:var(--weight-strong);color:var(--label)}
.empty p{max-width:42ch;margin:8px auto 18px;font-size:var(--text-md);line-height:1.55}
.error{display:flex;align-items:flex-start;gap:9px;margin-bottom:16px;padding:12px 14px;border-radius:var(--r-xs);background:var(--rose-tint);color:var(--rose-text);font-size:var(--text-md);line-height:1.5}
.error>svg{width:17px;height:17px;margin-top:1px}

/* ===== [14 DISCLOSURE DATA TABLE (chart fallback) + SOURCE TEXT] =====
   used by: Dashboard.tsx RevenueChart <details class="chart-data">
   source:  styles.css:345-353 */
.source-text{max-height:320px;overflow:auto;padding:16px;border-radius:var(--r-xs);background:var(--fill-1);white-space:pre-wrap;overflow-wrap:anywhere}

/* ===== [15 SHEETS / DIALOGS (<dialog class="modal">)] =====
   used by: ui.tsx Modal (ui.tsx:15); CRM.tsx loss dialog. Phone bottom-sheet variant is in group 32 (styles.css:1485-1489) + sheet-up keyframe (group 02).
   source:  styles.css:355-365 */
/* Dialogs as sheets */
.modal{width:560px;max-width:calc(100vw - 24px);max-height:90vh;padding:0;border:0;border-radius:var(--r-md);background:var(--surface);color:var(--label);box-shadow:var(--shadow-modal);overflow:auto}
.modal[open]{animation:sheet-in var(--d-settle) var(--ease-spring)}
.modal.wide{width:780px}
.modal::backdrop{background:var(--scrim);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:scrim-in var(--d-pop) var(--ease-out)}
.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 20px 14px 24px}
.modal-heading h2{font-size:var(--text-xl);font-weight:700;letter-spacing:-.018em}
.modal-heading p{margin-top:4px;font-size:var(--text-md);color:var(--label-2)}
.form-body{padding:8px 24px 24px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px}
.modal-actions{position:sticky;bottom:0;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding:14px 24px;background:var(--surface);box-shadow:0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
/* Keep each action at its content width so the label never overflows its pill when
   the row is tight — buttons wrap to the next line instead of shrinking. */
.modal-actions>.button{flex:0 0 auto;max-width:100%}

/* ===== [16 GLOBAL RESPONSIVE BREAKPOINTS (1600 / 1250 / 1000 / 760) + GLOBAL REDUCED MOTION] =====
   used by: shell + controls
   source:  styles.css:367-414 */
@media(min-width:1280px){.main-content{padding:30px 36px 48px 22px}}
@media(max-width:1279px){.main-content{padding:20px 20px 36px 14px}.breadcrumb{display:none}}
@media(max-width:999px){.page-heading h1{font-size:26px}.list-toolbar{flex-wrap:wrap}}
@media(max-width:699px){
.page-heading{flex-direction:column;align-items:stretch;gap:14px}
.page-heading .heading-actions{justify-content:flex-start}
.panel-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;padding:16px 16px 0}
.panel-heading>div:first-child{display:contents}
.panel-heading>:not(:first-child){grid-row:1;grid-column:2}
.panel-heading p{grid-column:1/-1}
.padded-heading{padding:16px 16px 0}
.panel-body{padding:16px}
.tabs{scroll-snap-type:x proximity;scroll-padding:0 12px}
.tabs>button{scroll-snap-align:start}
.main-content{padding:18px 16px 32px}
.page-heading{margin:4px 0 18px}
.page-heading h1{font-size:var(--text-3xl)}
.page-heading p{font-size:var(--text-base)}
.section-heading{margin-top:28px}
.form-grid{grid-template-columns:1fr}
.field.full{grid-column:auto}
.modal{max-width:calc(100vw - 16px);border-radius:var(--r-md)}
.modal-heading{padding:18px 16px 12px 18px}
.form-body{padding:6px 18px 20px}
.modal-actions{padding:12px 18px}

th,td{padding:10px 12px}
th:first-child,td:first-child{padding-left:16px}
.table-scroll table{min-width:570px}
.toast{left:50%;bottom:14px;width:calc(100vw - 24px)}
.search-box{min-width:0}}
@media(prefers-reduced-motion:reduce){@keyframes materialize{from{opacity:0}}@keyframes settle{from{opacity:.35}}@keyframes sheet-in{from{opacity:0}}@keyframes rise-in{from{opacity:0}}
*,*::before,*::after{scroll-behavior:auto!important;transition-property:opacity,color,background-color,border-color,box-shadow,visibility!important}
.button:active,.icon-button:active{transform:none!important}}

/* ===== [17 INSTRUMENT STRIP OF BUTTONS (stats-grid / stat) — Overview KPI row] =====
   used by: ui.tsx Stat inside Dashboard.tsx <div class="stats-grid"> (Dashboard.tsx:35)
   source:  styles.css:416-431, styles.css:1115-1116 */
/* Dashboard */
/* Overview: instrument strip, scrubbable commercial chart, attention, project cards, team, tasks, management snapshot */
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px;overflow:hidden;border-radius:var(--r-xs);background:var(--surface);box-shadow:var(--shadow-1)}
.stat{display:flex;flex-direction:column;min-width:0;padding:18px 20px 16px;background:transparent;color:var(--label);text-align:left;transition:background var(--d-fast) var(--ease-out)}
.stat+.stat{box-shadow:inset var(--hairline-w) 0 0 var(--hairline)}
.stat:disabled{opacity:1;cursor:default}
.stat:not(:disabled):hover{background:var(--fill-1)}
.stat:not(:disabled):active{background:var(--fill-2)}
.stat:focus-visible{outline:2px solid var(--focus-color);outline-offset:-4px;border-radius:var(--r-xs)}
.stat-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;font-size:var(--text-md);font-weight:var(--weight-strong);line-height:1.35;color:var(--label-2)}
.stat-top>span:first-child{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.stat-icon{display:grid;place-items:center;flex-shrink:0;color:var(--accent)}
.stat-icon>svg{width:18px;height:18px}
.stat>strong{display:block;margin:10px 0 8px;overflow:hidden;font-size:34px;font-weight:var(--weight-strong);line-height:1.1;letter-spacing:-.025em;color:var(--label);font-variant-numeric:tabular-nums;white-space:nowrap;text-overflow:ellipsis}
.stat-unit{margin-left:2px;font-size:22px;font-weight:var(--weight-strong);letter-spacing:-.01em;color:var(--label-2)}
.stat-detail{display:flex;align-items:flex-start;gap:7px;min-width:0;font-size:var(--text-sm);line-height:1.4;color:var(--label-2)}
.stats-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.stats-grid.three>.stat{display:flex;flex-direction:column}


/* ===== [19 INSET LIST ROWS — "Needs your attention", team list, task list, attention footer] =====
   used by: Dashboard.tsx:36,38 (.attention-list, .team-list, .task-list, .attention-footer)
   source:  styles.css:458-482, styles.css:516-528 */
.attention-panel{display:flex;flex-direction:column}
.task-list>button{position:relative;display:flex;align-items:center;gap:12px;width:calc(100% + 16px);min-height:52px;margin:0 -8px;padding:8px;border-radius:var(--r-xs);color:var(--label);text-align:left;transition:background var(--d-fast) var(--ease-out)}
.task-list>button+button::before{content:'';position:absolute;top:0;right:8px;left:50px;height:var(--hairline-w);background:var(--hairline);transition:opacity var(--d-fast) var(--ease-out)}
.task-list>button:hover{background:var(--fill-1)}
.task-list>button:active{background:var(--fill-2)}
.task-list>button:hover::before,.task-list>button:hover+button::before{opacity:0}
.task-list{padding:6px 20px 10px}
.task-list>button+button::before{left:37px}
.task-list strong{display:block;overflow:hidden;font-size:var(--text-md);font-weight:var(--weight-strong);line-height:1.35;color:var(--label);white-space:nowrap;text-overflow:ellipsis}
.task-list>button>div>span{display:block;margin-top:1px;overflow:hidden;font-size:var(--text-sm);line-height:1.4;color:var(--label-2);white-space:nowrap;text-overflow:ellipsis}
.task-checkbox{flex-shrink:0;width:17px;height:17px;border:1.5px solid var(--label-2);border-radius:50%}
.task-list>button>div{flex:1;min-width:0}
.task-date{flex-shrink:0;font-size:var(--text-sm);color:var(--label-2);white-space:nowrap;font-variant-numeric:tabular-nums}

/* ===== [20 PROJECT CARDS (clickable card with lift)] =====
   used by: ui.tsx ProjectCard (ui.tsx:22)
   source:  styles.css:483-507 */
.card-chevron{color:var(--label-4);transition:transform var(--d-fast) var(--ease-out),color var(--d-fast) var(--ease-out)}

/* ===== [21 MANAGEMENT SNAPSHOT (hairline-divided button grid) + WORKSPACE FOOTER] =====
   used by: Dashboard.tsx:39-40
   source:  styles.css:529-540 */
.workspace-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:32px;padding:0 4px;font-size:var(--text-sm);color:var(--label-2)}
.workspace-footer>span{display:flex;flex-wrap:wrap;align-items:center;gap:6px}

/* ===== [22 DASHBOARD RESPONSIVE (1600 / 1250 / 1000 / 760)] =====
   used by: Dashboard.tsx
   source:  styles.css:541-603 */
@media(min-width:1280px){.stat{padding:20px 24px 18px}}
@media(max-width:1279px){.stat{padding:16px 16px 14px}.stat>strong{font-size:30px}
}
@media(max-width:999px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.stats-grid:not(.three)>.stat:nth-child(odd){box-shadow:none}
.stats-grid:not(.three)>.stat:nth-child(3){box-shadow:inset 0 var(--hairline-w) 0 var(--hairline)}
.stats-grid:not(.three)>.stat:nth-child(4){box-shadow:inset var(--hairline-w) 0 0 var(--hairline),inset 0 var(--hairline-w) 0 var(--hairline)}
.stat{padding:18px 20px 16px}
.stat>strong{font-size:32px}
}
@media(max-width:699px){.stats-grid{margin-bottom:16px}
.stat{padding:14px 16px 12px}
.stat-top{font-size:var(--text-sm)}
.stat-icon>svg{width:16px;height:16px}
.stat>strong{margin:8px 0 6px;font-size:var(--text-title)}
.stat-detail{font-size:var(--text-sm)}
.task-list{padding:4px 16px 8px}
.workspace-footer{flex-direction:column;align-items:flex-start;margin-top:24px}}

/* ===== [23 OVERVIEW STRIP (static instrument strip of divs)] =====
   used by: CRM.tsx Accounts/AccountDetail/ProjectDetail/Pipeline/Contracts <div class="overview-strip">
   source:  styles.css:605-614 */
/* Records */
/* Records: accounts, pipeline, projects, contracts, tasks, record detail pages, record editor, signatures, SOW import */
/* Instrument strip */
.overview-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:20px 0 24px;padding:18px 0;border-radius:var(--r-xs);background:var(--surface);box-shadow:var(--shadow-1)}
.overview-strip>div{min-width:0;padding:0 22px}
.overview-strip>div+div{box-shadow:inset var(--hairline-w) 0 0 var(--hairline)}
.overview-strip>div>span{display:block;margin-bottom:6px;overflow:hidden;font-size:var(--text-sm);font-weight:var(--weight-strong);line-height:1.35;color:var(--label-2);text-overflow:ellipsis;white-space:nowrap}
.overview-strip strong{display:block;font-size:26px;font-weight:var(--weight-strong);line-height:1.15;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--label);white-space:nowrap}
.overview-strip strong small{margin-left:1px;font-size:var(--text-md);font-weight:var(--weight-medium);letter-spacing:0;color:var(--label-2)}
.overview-strip>div>small{display:block;margin-top:4px;font-size:var(--text-sm);line-height:1.4;color:var(--label-2);font-variant-numeric:tabular-nums}

/* ===== [24 RECORD HEADER — company-cell, monogram tile (company-mark), person, back link, record heading/title/meta line] =====
   used by: CRM.tsx AccountDetail (CRM.tsx:28-29), ProjectDetail, Contracts detail; ui.tsx CompanyMark
   source:  styles.css:615-640, styles.css:857-858, accounts/account-logo.css:1-6 */
/* Record identity: monograms, people, back link, heading */
.person{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;font-size:var(--text-md);color:var(--label);white-space:nowrap}
.person>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.back-link{display:inline-flex;align-items:center;gap:2px;margin:0 0 12px -4px;font-size:var(--text-md);font-weight:var(--weight-strong);color:var(--accent);transition:opacity var(--d-fast) var(--ease-out)}
.back-link>svg{width:17px;height:17px}
.back-link:hover{opacity:.72}
.back-link:active{opacity:.55}
.record-heading{display:flex;align-items:center;gap:16px;margin:4px 0 20px}
.record-heading>div:nth-child(2){flex:1;min-width:0}
.record-title{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.record-heading h1{font-size:var(--text-title);font-weight:700;line-height:1.15;letter-spacing:-.022em}
.record-heading p{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;margin-top:5px;font-size:var(--text-md);color:var(--label-2);font-variant-numeric:tabular-nums}
.record-heading p>span{color:var(--label-4)}
.record-heading p>button{font-size:inherit;font-weight:var(--weight-strong);color:var(--accent)}
.record-heading p>button:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.record-heading .heading-actions{justify-content:flex-end}



/* ===== [25 DETAIL LAYOUT + INSPECTOR / ASIDE KEY-VALUE ROWS ("Account essentials")] =====
   used by: CRM.tsx DetailLine (CRM.tsx:18) in <div class="detail-layout"><div class="detail-main">…<div class="detail-aside">
   source:  styles.css:641-662 */
/* Detail layout and inspector rows */
.detail-line{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:8px 0;box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
.detail-line:last-child{box-shadow:none}
.panel-body>.detail-line:first-child{margin-top:-8px}
.panel-body>.detail-line:last-child{margin-bottom:-8px}
.detail-line>span{flex-shrink:0;font-size:var(--text-md);color:var(--label-2)}
.detail-line>strong{min-width:0;font-size:var(--text-md);font-weight:var(--weight-strong);color:var(--label);text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.panel-body>.button.full-width{margin-top:16px}

/* ===== [25b LISTS INSIDE PANELS — linked-list, contact-item, toolbar-right, milestone list, finance breakdown, team rows, risk summary] =====
   used by: CRM.tsx AccountDetail/ProjectDetail/Contracts
   source:  styles.css:663-712 */

/* ===== [25c OPPORTUNITY DETAIL (selected-record panel with actions column)] =====
   used by: CRM.tsx Pipeline selectedOpp panel
   source:  styles.css:713-722 */
/* Opportunity detail */
.opportunity-detail{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px;padding:12px 20px 20px;box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
.opportunity-detail>div:first-child{display:grid;grid-template-columns:1fr 1fr;gap:0 28px;align-content:start}
.opportunity-detail>div:first-child>:is(.badge,.body-copy){grid-column:1/-1;justify-self:start}
.opportunity-detail .detail-line:nth-last-child(2):nth-child(odd){box-shadow:none}

/* ===== [25d KANBAN / BOARD (columns, heading, total, cards, stage select, empty drop target) + POINTER DRAG] =====
   used by: CRM.tsx Pipeline (.kanban) + planning/usePipelineDrag.ts
   source:  styles.css:723-756, styles.css:1543-1553 */
/* Pipeline kanban */
.kanban{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(212px,1fr);gap:14px;min-height:450px;margin:0 -12px;padding:0 12px 16px;overflow-x:auto;overscroll-behavior-x:contain;scroll-padding:0 12px;scroll-snap-type:x proximity}
.kanban-heading{display:flex;align-items:center;gap:8px;min-height:32px;padding:0 0 0 4px}
.kanban-heading h2{flex:1;min-width:0;overflow:hidden;font-size:var(--text-md);font-weight:var(--weight-strong);letter-spacing:-.005em;color:var(--label);text-overflow:ellipsis;white-space:nowrap}
.kanban-heading .icon-button{width:28px;height:28px}
.opp-title{display:block;width:100%;text-align:left;color:var(--label)}
.opp-title>span{display:block;margin-bottom:3px;overflow:hidden;font-size:var(--text-sm);color:var(--label-2);text-overflow:ellipsis;white-space:nowrap}
.opp-title h3{font-size:var(--text-base);font-weight:var(--weight-strong);line-height:1.35;letter-spacing:-.006em;color:var(--label);text-wrap:pretty;transition:color var(--d-fast) var(--ease-out)}
.opp-title:hover h3{color:var(--accent)}
/* Pipeline drag and drop */
body.is-pipeline-dragging,body.is-pipeline-dragging *{cursor:grabbing!important}

/* ===== [25f ACTIVITY LIST (record timeline) + DOCUMENTS LIST] =====
   used by: CRM.tsx ActivityDocuments (CRM.tsx:167-168)
   source:  styles.css:767-795 */
/* Activity and documents */
.record-section-heading{align-items:center;margin:0 0 4px}
.record-section-heading h2{font-size:var(--text-xl);font-weight:var(--weight-strong);letter-spacing:-.012em}
.record-section-heading+.error{margin:12px 20px 0}
.record-grid-heading{align-items:center;margin:4px 0 16px}
.document-list{padding:8px 10px 10px}
.document-list:empty{display:none}
.document-list>a{position:relative;display:flex;align-items:center;gap:12px;min-height:56px;padding:9px 10px;border-radius:var(--r-xs);color:var(--label);transition:background var(--d-fast) var(--ease-out)}
.document-list>a+a::before{content:'';position:absolute;top:0;left:56px;right:10px;border-top:var(--hairline-w) solid var(--hairline);transition:opacity var(--d-fast) var(--ease-out)}
.document-list>a:hover{background:var(--fill-1)}
.document-list>a:active{background:var(--fill-2)}
.document-list>a:hover::before,.document-list>a:hover+a::before{opacity:0}
.document-list>a>span:nth-child(2){flex:1;min-width:0}
.document-list strong{display:block;font-size:var(--text-md);font-weight:var(--weight-strong);line-height:1.35;overflow-wrap:anywhere}
.document-list small{display:block;margin-top:1px;font-size:var(--text-sm);color:var(--label-2);font-variant-numeric:tabular-nums}
.document-list>a>svg{color:var(--label-2);transition:color var(--d-fast) var(--ease-out)}
.document-list>a:hover>svg{color:var(--accent)}
.document-icon{display:grid;flex-shrink:0;place-items:center;width:34px;height:34px;border-radius:var(--r-xs);background:var(--fill-1);color:var(--label-2)}
.document-icon>svg{width:18px;height:18px}

/* ===== [25g RECORDS RESPONSIVE (+ reduced motion; <=760 task-panel card layout; signatures) + LOSS DIALOG] =====
   used by: CRM.tsx
   source:  styles.css:851-856, styles.css:859-957 */
/* Loss dialog */
@media(min-width:1280px){
.overview-strip>div{padding:0 26px}}

@media(max-width:1279px){
.overview-strip>div{padding:0 18px}
.overview-strip strong{font-size:var(--text-3xl)}
.record-heading h1{font-size:26px}
.record-title{gap:6px 10px}
.opportunity-detail{grid-template-columns:minmax(0,1fr) 250px;gap:22px}}
@media(max-width:999px){
.record-heading{flex-wrap:wrap}
.record-heading .heading-actions{margin-left:auto}
.record-toolbar{flex-wrap:wrap}
.record-toolbar>.tabs+.search-box{margin-left:auto}
.opportunity-detail{grid-template-columns:1fr;gap:18px}
.opportunity-detail>div:first-child{grid-template-columns:1fr}
.opportunity-detail .detail-line:nth-last-child(2):nth-child(odd){box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
.overview-strip>div{padding:0 14px}
.overview-strip strong{font-size:22px}}
@media(max-width:699px){.overview-strip{grid-template-columns:1fr 1fr;margin:16px 0 20px;padding:0}
.overview-strip>div,.overview-strip>div+div{padding:14px 16px;box-shadow:none}
.overview-strip>div:nth-child(2n){box-shadow:inset var(--hairline-w) 0 0 var(--hairline)}
.overview-strip>div:nth-child(3){box-shadow:inset 0 var(--hairline-w) 0 var(--hairline)}
.overview-strip>div:nth-child(4){box-shadow:inset var(--hairline-w) 0 0 var(--hairline),inset 0 var(--hairline-w) 0 var(--hairline)}
.overview-strip strong{font-size:22px;white-space:normal}
.record-toolbar>.tabs{flex-basis:100%}
.record-toolbar>.search-box{flex:1;max-width:none}
.panel>.record-toolbar{padding:10px 12px}
.panel>.record-toolbar>.tabs{width:100%}
.panel>.record-toolbar>.tabs>button{flex:1 0 auto;padding:0 9px}
.record-heading{gap:12px;margin:0 0 18px}
.record-heading h1{font-size:var(--text-3xl)}
.record-heading p{font-size:var(--text-md)}
.record-heading .heading-actions{width:100%;margin-left:0;justify-content:flex-start}
.opportunity-detail{padding:12px 16px 18px}

.task-panel :is(table,tbody){display:block}
.task-panel .table-scroll table{min-width:0}
.task-panel thead{display:none}
.task-panel tbody{margin-top:12px;box-shadow:inset 0 var(--hairline-w) 0 var(--hairline)}
.task-panel tbody tr{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:12px 12px 12px 52px}
.task-panel tbody tr:not(:has(.task-toggle-cell)){padding-left:16px}
.task-panel tbody td{min-width:0;padding:0!important}
.task-panel td.task-toggle-cell{position:absolute;top:12px;left:16px;width:auto}
.task-panel td.task-edit{position:absolute;top:6px;right:8px}
.task-panel td.task-edit:empty{display:none}
.task-panel td:is(.task-name,.task-project){flex:1 1 100%;white-space:normal}
.task-panel td.task-name{margin-right:32px}
.task-panel td.task-project{margin-top:-4px;font-size:var(--text-md);color:var(--label-2)}
.task-panel td.task-due{order:1;font-size:var(--text-md)}
.task-panel td.task-priority{order:2}
.task-panel td.task-status{order:3}
.task-panel td.task-owner{order:4}
.kanban{grid-auto-columns:min(82vw,280px);gap:12px;margin:0 -16px;padding:0 16px 16px;scroll-padding:0 16px;scroll-snap-type:x mandatory}

















}

/* ===== [25h TASK BOARD ROW STATES — round task toggle, done row, due today] =====
   used by: CRM.tsx TaskTable (CRM.tsx:166)
   source:  styles.css:958-971 */
.task-toggle-cell{width:1%;padding-right:0!important}
.task-toggle{position:relative;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--label-2);color:var(--on-accent);transition:background var(--d-fast) var(--ease-out),box-shadow var(--d-fast) var(--ease-out),transform var(--d-pop) var(--ease-spring)}
.task-toggle:hover{box-shadow:inset 0 0 0 1.5px var(--accent);background:var(--accent-tint)}
.task-toggle:active{transform:scale(.88)}
.task-toggle::after{content:'';position:absolute;inset:-12px;border-radius:50%}
.task-toggle.checked{background:var(--accent);box-shadow:none}
.task-toggle.checked:hover{background:var(--accent-hover)}
.task-toggle>svg{stroke-width:3}
tr.task-done td{color:var(--label-2)}
tr.task-done .badge{background:var(--fill-1);color:var(--label-2)}
tr.task-done .badge .status-dot{background:var(--label-4)}
tr.task-done .record-link,tr.task-done td>strong{color:var(--label-2);text-decoration:line-through;text-decoration-color:var(--label-2);text-decoration-thickness:1px}
.task-due-today{color:var(--accent);font-weight:var(--weight-strong)}

/* ===== [25i OPERATIONS BITS worth reusing — toolbar row, date navigator, time-summary strip, day tabs, review/approval banner, skill tags, person cards] =====
   used by: Operations.tsx Time / Resources
   source:  styles.css:973-991, styles.css:1034-1045, styles.css:1100-1111, styles.css:1190-1272 */
/* Operations */
/* Delivery & finance: Time & approvals, Resource planner, Utilization, Financial overview, invoice documentation */


/* Week summary: one instrument strip */
.time-summary{display:flex;margin-bottom:20px;padding:20px 0;border-radius:var(--r-xs);background:var(--surface);box-shadow:var(--shadow-1)}
.time-summary>div{flex:1;min-width:0;padding:0 20px}
.time-summary>div+div{box-shadow:inset var(--hairline-w) 0 0 var(--hairline)}
.time-summary>div>span{display:block;margin-bottom:8px;font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--label-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.time-summary strong{display:block;font-size:26px;line-height:1.15;font-weight:var(--weight-strong);letter-spacing:-.022em;color:var(--label);font-variant-numeric:tabular-nums;white-space:nowrap}
.time-summary strong small{font-size:var(--text-md);font-weight:var(--weight-medium);letter-spacing:0;color:var(--label-2)}
.time-summary>.time-summary-progress{display:flex;flex:0 1 220px;flex-direction:column;min-width:176px}
.time-summary>.time-summary-progress>span{margin-bottom:20px;font-variant-numeric:tabular-nums}
/* Daily entries and approvals */
.review-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0;padding:16px 20px;border-radius:var(--r-xs);background:var(--accent-tint)}
.review-banner>div:first-child{display:flex;align-items:center;gap:12px;min-width:0}
.review-banner>svg,.review-banner>div:first-child>svg{flex-shrink:0;color:var(--accent)}
.review-banner strong{display:block;font-size:var(--text-lg);font-weight:var(--weight-strong);letter-spacing:-.008em;color:var(--label);font-variant-numeric:tabular-nums}
.review-banner small{display:block;margin-top:2px;font-size:var(--text-md);line-height:1.45;color:var(--label-2)}
.review-banner>p{flex:1;min-width:0;font-size:var(--text-md);line-height:1.5;color:var(--label-2)}
.review-banner:has(>p){justify-content:flex-start;align-items:flex-start;gap:12px}
.people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.person-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:20px 20px 0;border-radius:var(--r-xs);background:var(--surface);box-shadow:var(--shadow-1);color:var(--label);text-align:left;transition:box-shadow var(--d-pop) var(--ease-spring),transform var(--d-pop) var(--ease-spring)}
.person-card:hover{box-shadow:var(--shadow-2);transform:translateY(-1px)}
.person-card:active{transform:translateY(0) scale(.99);transition-duration:90ms}
.person-card h3{margin-top:16px;font-size:var(--text-lg);font-weight:var(--weight-strong);color:var(--label)}
.person-card>p{margin:2px 0 12px;font-size:var(--text-md);color:var(--label-2)}
.person-card-footer{display:flex;align-self:stretch;align-items:center;justify-content:space-between;margin-top:auto;padding:12px 0;border-top:var(--hairline-w) solid var(--hairline);color:var(--label-2);font-size:var(--text-sm);font-variant-numeric:tabular-nums}
.person-card-footer>svg{color:var(--label-2);transition:color var(--d-fast) var(--ease-out),transform var(--d-pop) var(--ease-spring)}
.person-card:hover .person-card-footer>svg{color:var(--accent);transform:translate(1px,-1px)}

@media(min-width:1280px){.people-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:999px){.time-summary>div{padding:0 16px}
.time-summary strong{font-size:var(--text-3xl)}
.time-summary>.time-summary-progress{display:none}



.review-banner{flex-wrap:wrap}
.review-banner>.heading-actions{margin-left:auto}

.people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

.stats-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}





}
@media(max-width:699px){

.time-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0}
.time-summary>div,.time-summary>div+div{padding:16px;box-shadow:none}
.time-summary>div:nth-child(2){box-shadow:inset var(--hairline-w) 0 0 var(--hairline)}
.time-summary>div:nth-child(3){box-shadow:inset 0 var(--hairline-w) 0 var(--hairline)}
.time-summary>div:nth-child(4){box-shadow:inset var(--hairline-w) 0 0 var(--hairline),inset 0 var(--hairline-w) 0 var(--hairline)}
.time-summary strong{font-size:22px}









.review-banner{padding:16px;gap:16px}
.review-banner>.heading-actions{width:100%;justify-content:flex-end}










.people-grid{grid-template-columns:minmax(0,1fr);gap:12px}


.stats-grid.three{grid-template-columns:minmax(0,1fr)}
.stats-grid.three>.stat{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:16px;padding:12px 16px}
.stats-grid.three>.stat+.stat{box-shadow:inset 0 var(--hairline-w) 0 var(--hairline)}
.stats-grid.three .stat-top{grid-column:1;grid-row:1;flex-direction:row-reverse;justify-content:flex-end;gap:8px}
.stats-grid.three .stat>strong{grid-column:2;grid-row:1/3;margin:0;font-size:26px;text-align:right}
.stats-grid.three .stat-detail{grid-column:1;grid-row:2;margin-top:2px;padding-left:24px}
















}

/* ===== [25j SETTINGS GRID + INTEGRATION CARDS + CONFIG EXAMPLE + TOOL LIST] =====
   used by: Intelligence.tsx Settings (Integrations tab: .integration-grid > .panel > .integration-card)
   source:  styles.css:1274-1303 */
/* Intelligence */
/* @EQUA intelligence, settings and integrations */
.page-heading:has(>.heading-actions>.badge){align-items:flex-start}
.page-heading:has(>.heading-actions>.badge)>.heading-actions{margin-top:6px}
.page-heading .badge:has(>svg)>.status-dot{display:none}
.integration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}
.integration-grid>.panel{display:flex}
.integration-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.integration-logo{display:grid;place-items:center;width:40px;height:40px;border-radius:var(--r-md);background:var(--accent-tint-2);color:var(--accent);font-size:var(--text-2xl);font-weight:700;line-height:1;letter-spacing:-.02em}
.integration-logo.blue{background:var(--blue-tint);color:var(--blue-text)}
.integration-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin-top:auto;padding-top:20px}
.tool-list{margin-top:12px}
.tool-list>label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:var(--text-md);color:var(--label);cursor:pointer}
.tool-list>label+label{box-shadow:inset 0 var(--hairline-w) 0 var(--hairline)}
.tool-list>label>span:not(.badge){flex:1;min-width:0}
.tool-list>label>span:not(.badge)::first-letter{text-transform:uppercase}
.tool-list .badge{flex:none}

/* ===== [26 ASSISTANT PAGE + CONVERSATION (toolbar, status, messages, welcome/orb, prompt grid, chat bubbles, thinking dots, composer) + APPROVAL CARD + PRINCIPLES + RESPONSIVE] =====
   used by: Intelligence.tsx Intelligence; assistant/AgentConversation.tsx; assistant/ApprovalCard.tsx
   source:  styles.css:1304-1377, styles.css:1417-1444 */
/* @EQUA conversation */
.assistant-panel{display:flex;flex-direction:column}
.assistant-panel>.conversation{display:flex;flex:1;flex-direction:column;min-height:0}
.assistant-panel .conversation-messages{flex:1}
.conversation-status{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:8px 20px;box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline);font-size:var(--text-sm);color:var(--label-2)}
.conversation-status>span{display:flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}
.conversation-status svg{color:var(--label-2)}
.conversation-messages{min-height:380px;max-height:600px;padding:20px;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth}
.message{display:flex;align-items:flex-start;gap:12px;margin:0 0 20px;animation:settle var(--d-pop) var(--ease-spring) both}
.message>div:last-child{flex:1;min-width:0}
.message>div>strong{display:flex;align-items:baseline;gap:8px;min-width:0;padding-top:5px;font-size:var(--text-md);font-weight:var(--weight-strong);line-height:20px;color:var(--label)}
.message>div>strong>small{overflow:hidden;font-size:var(--text-sm);font-weight:var(--weight-regular);color:var(--label-2);text-overflow:ellipsis;white-space:nowrap}
.message-content{margin-top:2px;font-size:var(--text-base);line-height:1.6;color:var(--label);white-space:pre-wrap;overflow-wrap:anywhere}
.message.user{flex-direction:row-reverse}
.message.user>div:last-child{display:flex;flex-direction:column;align-items:flex-end}
.message.user>div>strong{flex-direction:row-reverse}
.message.user .message-content{max-width:min(560px,88%);margin-top:4px;padding:10px 14px;border-radius:18px;background:var(--accent-tint-2)}
@keyframes assistant-thinking{0%,70%,100%{background-color:var(--accent-tint-2)}35%{background-color:var(--accent)}}
.conversation-input{display:flex;flex-direction:column;gap:4px;margin:0 16px 16px;padding:10px 10px 10px 16px;border-radius:var(--r-xs);background:var(--field-bg);box-shadow:var(--field-ring);transition:box-shadow var(--d-fast) var(--ease-out)}
.conversation-input:has(textarea:focus){box-shadow:0 0 0 1px var(--accent),0 0 0 4px var(--focus-ring)}
.conversation-input textarea{width:100%;min-height:44px;max-height:200px;padding:4px 0 0;border:0;outline:0;resize:none;background:transparent;color:var(--label);font-size:var(--text-base);line-height:1.5}
.conversation-input>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.conversation-input>div>span{font-size:var(--text-sm);color:var(--label-2)}
.conversation-input .button{min-height:30px;padding:0 14px}
.approval-card{margin:12px 0 4px;padding:14px 16px 16px;border-radius:var(--r-xs);background:var(--surface);box-shadow:var(--shadow-1)}
.approval-card>div:first-child{display:flex;align-items:center;gap:8px}
.approval-card>div:first-child>svg{color:var(--accent)}
.approval-card>div:first-child strong{flex:1;min-width:0;margin:0;font-size:var(--text-base);font-weight:var(--weight-strong);color:var(--label)}
.approval-card>div:first-child strong::first-letter{text-transform:uppercase}
.approval-card dl{margin:12px 0 0}
.approval-card dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:8px 0;box-shadow:inset 0 var(--hairline-w) 0 var(--hairline);font-size:var(--text-md)}
.approval-card dt{flex-shrink:0;color:var(--label-2);text-transform:lowercase}
.approval-card dt::first-letter{text-transform:uppercase}
.approval-card dd{min-width:0;margin:0;color:var(--label);font-weight:var(--weight-medium);text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.approval-card .heading-actions{justify-content:flex-end;margin-top:12px}
.approvals-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.approvals-grid>.approval-card{margin:0}
.approvals-grid>.panel{grid-column:1/-1}
@supports(corner-shape:superellipse(1.4)){.integration-logo,.approval-card,.conversation-input{corner-shape:superellipse(1.4)}}
@media(min-width:1280px){.conversation-messages{max-height:680px}.integration-grid{gap:24px}}
@media(max-width:1279px){.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:699px){.integration-grid{grid-template-columns:1fr}
.page-heading:has(>.heading-actions>.badge){flex-direction:column;gap:10px}
.page-heading:has(>.heading-actions>.badge)>.heading-actions{margin-top:0}
.conversation-status{flex-direction:column;gap:4px;padding:8px 16px}
.conversation-messages{min-height:320px;max-height:520px;padding:16px}
.conversation-input{margin:0 12px 12px}
.message.user .message-content{max-width:92%}
.approvals-grid{grid-template-columns:1fr}
.approval-card dl>div{flex-direction:column;gap:2px}
.approval-card dd{text-align:left}
.tool-list>label{min-height:48px}
}

/* ===== [28 ASSISTANT MARKDOWN / RECORD CHIPS / FLOW ACTIONS / APPROVAL DIFF + NOTICES (assistant.css, whole file)] =====
   used by: assistant/Markdown.tsx, RecordChip.tsx, AgentConversation.tsx, ApprovalCard.tsx
   source:  assistant/assistant.css:1-70 */





/* ===== [29 GUIDED FLOW SHELL + STEP PRIMITIVES + IN-DIALOG SHEETS + FLOW TOAST + COMMAND PALETTE (flow.css, whole file)] =====
   used by: flows/FlowShell.tsx, flows/steps.tsx, flows/CommandPalette.tsx (.flow-palette at flow.css:198-222)
   source:  flows/flow.css:1-260 */
/* Guided flows (W1): shell, step primitives, sheets and the command palette. Tokens only, always with fallbacks (canonical §I). */

/* ---------- shell ---------- */
.flow-heading{display:flex;align-items:baseline;gap:10px;min-width:0}
.flow-heading strong{flex:none;font-size:var(--text-lg);font-weight:var(--weight-strong);letter-spacing:-.012em}
.flow-body{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:0}

/* ---------- rail ---------- */
.flow-rail-text{display:flex;flex-direction:column;gap:2px;min-width:0}

/* ---------- stage ---------- */
.flow-step{animation:flow-step-in var(--d-pop,340ms) var(--ease-spring,cubic-bezier(.2,.8,.2,1)) both}
.flow-step[data-dir="back"]{animation-name:flow-step-back}

/* ---------- step primitives ---------- */
.flow-choice-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}
.flow-choice-text strong{font-size:var(--text-lg);font-weight:var(--weight-strong)}
.flow-choice-text small{color:var(--label-2,#6e6e73);font-size:var(--text-md);line-height:1.4}
.flow-toggle-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0;font-size:var(--text-base);font-weight:var(--weight-medium)}
.flow-toggle-text small{color:var(--label-2,#6e6e73);font-size:var(--text-sm);font-weight:var(--weight-regular);line-height:1.4}
.flow-notice{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border-radius:var(--r-xs);background:var(--blue-tint,#e8f1fb);color:var(--blue-text,#1d5fa8);font-size:var(--text-md);line-height:1.45}
.flow-notice>svg{flex:none;margin-top:2px}
.flow-notice>div{min-width:0;color:var(--label,#1d1d1f)}
.flow-notice.amber{background:var(--amber-tint,#fff4de);color:var(--amber-text,#8a5a00)}
.flow-notice.rose{background:var(--rose-tint,#fdecef);color:var(--rose-text,#a3243b)}
.flow-notice.green{background:var(--green-tint,#e6f4ea);color:var(--green-text,#1f6f43)}
.flow-notice ul{margin:4px 0 0;padding-left:18px}

/* ---------- cockpit ---------- */
.flow-code{font-family:var(--font-mono);letter-spacing:.12em}


/* Tag chips on the selected (green) row: translucent white capsule, white text (7:1 on EQUA green); dark mode's lighter green takes a dark wash instead so the text stays above 4.5:1. */
.flow-palette-text{display:flex;flex-direction:column;min-width:0}
.flow-palette-text strong{overflow:hidden;font-size:var(--text-base);font-weight:var(--weight-strong);text-overflow:ellipsis;white-space:nowrap}
.flow-palette-text small{overflow:hidden;color:var(--label-2,#6e6e73);font-size:var(--text-sm);text-overflow:ellipsis;white-space:nowrap}

/* ---------- motion ---------- */
@keyframes flow-fade{from{opacity:0}}
@keyframes flow-step-in{from{opacity:0;transform:translateY(12px)}}
@keyframes flow-step-back{from{opacity:0;transform:translateY(-12px)}}
@keyframes flow-sheet-in{from{opacity:0;transform:translateY(8px) scale(.985)}}
@media(prefers-reduced-motion:reduce){
  .flow-step,.flow-step[data-dir="back"]{animation:flow-fade var(--d-pop,340ms) linear both}
}

/* ---------- mobile ---------- */
@media(max-width:699px){
  .flow-heading strong{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .flow-body{grid-template-columns:minmax(0,1fr)}
}

/* ===== [30 CONNECTED DOCK TAB, SIDE SHEET, CHAIN RAIL, LINKED CHANGES, HISTORY TIMELINE (links.css, whole file)] =====
   used by: links/ConnectedDock.tsx, RelatedRail.tsx, RecordTimeline.tsx, LinkedChangeCard.tsx
   source:  links/links.css:1-129 */
/* Connected records (W4): dock tab, side sheet, chain rail, linked-change cards and record history.
   Tokens only, always with fallbacks (canonical §I). Glass is chrome only: the sheet frame is glass, records sit on white inset panels. */


/* Side sheet */
.cx-body{flex:1;overflow:auto;padding:12px 12px 18px;overscroll-behavior:contain}

/* Chain rail */
.cx-gap-text{color:var(--label-2,#6e6e73);font-size:var(--text-md);font-weight:var(--weight-strong)}

/* Linked changes */
.cx-reason{margin:6px 0 0;color:var(--label-2,#6e6e73);font-size:var(--text-sm);line-height:1.45}
.cx-error{margin:8px 0 0;padding:8px 10px;border-radius:var(--r-xs);background:var(--rose-tint,#fdecef);color:var(--rose-text,#a3243b);font-size:var(--text-sm)}


/* History */
.cx-day+.cx-day{margin-top:10px}
.cx-day h4{margin:0 0 4px;color:var(--label-2,#6e6e73);font-size:var(--text-sm);font-weight:var(--weight-strong)}
.cx-day ol{margin:0;padding:0;list-style:none}

/* Inside RecordEditor */


/* ===== [31 TAG CHIPS + "+N" OVERFLOW POPOVER + RECORD TAGS] =====
   used by: tags/TagChips.tsx, tags/RecordTags.tsx
   source:  tags/tags.css:1-25, tags/tags.css:72-80, tags/tags.css:152-157 */

/* Chips */
@keyframes tag-pop{from{opacity:0;transform:translateY(-3px)}}
/* RecordTags */
.record-tags{display:flex;flex-direction:column;gap:8px;min-width:0}
.record-tags-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.record-tags-head h3{font-size:var(--text-md);font-weight:var(--weight-strong);color:var(--label-2,#6e6e73)}
.record-tags-view{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-height:24px}
.record-tags-edit{display:flex;flex-direction:column;gap:8px}
.record-tags-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.record-tags-actions .muted{margin-right:auto;font-size:var(--text-sm)}
@media(prefers-reduced-motion:reduce){
  .tag-panel{animation:none}
}
@media(prefers-reduced-transparency:reduce){.tag-panel{background:var(--surface,#fff)}}


/* ===== [33 SKELETON / LOADING (startup splash + loading line, AI busy banner, draft banner, cash-flow skeleton bars)] =====
   used by: App.tsx startup (App.tsx:74); builders .ai-busy; cashflow/CashFlowPage.tsx Skeleton (namespaced .cfp-page, --cfp-* tokens map to --fill-2/--r-md)
   source:  styles.css:198-202, styles.css:1596-1602, cashflow/cashflow.css:399-404, cashflow/cashflow.css:413 */
.startup{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;height:100vh}
.startup p{font-size:var(--text-md);color:var(--label-2)}
@keyframes ai-pulse{0%,100%{opacity:1}50%{opacity:.35}}
.draft-banner{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 16px;padding:11px 14px;border-radius:var(--r-xs);background:var(--accent-tint-2);color:var(--label);font-size:var(--text-md)}
.draft-banner>svg{color:var(--accent)}
.draft-banner .text-button{margin-left:auto}
/* Loading */







/* ===== [03d TABLET/PHONE OFF-CANVAS GLASS DRAWER + SCRIM (<=1024px) — must come after group 16] =====
   used by: App.tsx .sidebar.mobile-open + <button class="mobile-backdrop"> (App.tsx:81 backdrop, :82 sidebar)
   source:  styles.css:1451-1466 */
/* ── Phones and tablets ────────────────────────────────────────────────────────────────────────
   Below 1024px the sidebar becomes the drawer (a docked 224px rail left tablets cramped); below
   760px the page works as a phone: safe-area aware chrome, 16px fields (no iOS focus zoom),
   bottom-sheet dialogs and full-width actions; below 640px list tables stack into cards whose
   cells carry their column heading (data-label, set by <Table>). */
@media(max-width:999px){
.main-content{padding:20px 20px 36px}
.toast{left:50%}}

/* ===== [32 PHONES (<=760 safe-area chrome, 16px fields, bottom-sheet dialogs, full-width actions) + COARSE POINTER TARGETS] =====
   used by: shell
   source:  styles.css:1468-1493, styles.css:1514-1521 */
@media(max-width:699px){
.main-content{padding:18px max(16px,env(safe-area-inset-right)) calc(88px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}





.toast{bottom:calc(14px + env(safe-area-inset-bottom))}
:is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea):not(#_){font-size:var(--text-lg)}
.page-heading .heading-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:stretch}
.page-heading .heading-actions:has(>:nth-child(3)){grid-auto-flow:row;grid-template-columns:1fr 1fr}
.page-heading .heading-actions>*{min-width:0;min-height:44px}
.page-heading .heading-actions>.button{padding:0 12px}
.page-heading .heading-actions>.button.primary:last-child:nth-child(odd){grid-column:1/-1}
.list-toolbar .search-box{flex:1 1 100%;max-width:none}
.modal,.modal.wide{width:100vw;max-width:100vw;max-height:calc(100dvh - env(safe-area-inset-top) - 24px);margin:auto 0 0;border-radius:var(--r-md) var(--r-md) 0 0}
.modal[open]{animation:sheet-up var(--d-settle) var(--ease-spring)}
.modal-heading{position:sticky;top:0;z-index:2;background:var(--surface)}
.modal-actions{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
.modal-actions>.button{flex:1 1 0;min-height:44px}
.overview-strip>div{min-width:0}
.overview-strip strong{overflow-wrap:anywhere}

}
@media(pointer:coarse){
.icon-button{position:relative}
.icon-button::after{content:'';position:absolute;inset:-6px;border-radius:inherit}
.button{min-height:40px}
.button.small{min-height:34px}
.tabs>button{min-height:36px}
.choice-chip{min-height:36px}}

/* ===== [27 ASSISTANT DRAWER (floating chat sheet) + LAUNCHER + RM] =====
   used by: App.tsx <aside class="assistant-drawer"> (App.tsx:92) + <button class="assistant-launcher"> (App.tsx:91)
   source:  follow-me.css:1-12, follow-me.css:37, follow-me.css:53, follow-me.css:57-70 */
/* @EQUA assistant drawer sheet (opened from the toolbar control) */
.assistant-drawer{position:fixed;right:20px;bottom:20px;z-index:75;display:flex;flex-direction:column;width:min(400px,calc(100vw - 24px));height:min(600px,calc(100vh - 40px));overflow:hidden;border-radius:var(--r-md);background:var(--glass-strong);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:var(--shadow-modal);color:var(--label);transform-origin:bottom right;animation:assistant-drawer-in var(--d-settle) var(--ease-spring)}
@keyframes assistant-drawer-in{from{opacity:0;transform:translateY(12px) scale(.94);filter:blur(8px)}}
.assistant-drawer-head{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 12px;box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
.assistant-drawer-head>strong{flex:1;min-width:0;font-size:var(--text-base);font-weight:var(--weight-strong);letter-spacing:-.01em}
.assistant-drawer-body{display:flex;flex:1;flex-direction:column;min-height:0}
.assistant-drawer-body>.conversation{display:flex;flex:1;flex-direction:column;min-height:0}
.assistant-drawer-body .conversation-messages{flex:1;min-height:0;max-height:none;padding:16px}
.assistant-drawer-body .conversation-input{margin:0 12px 12px}
.assistant-drawer-body .conversation-input textarea{min-height:48px}
.assistant-drawer-body .message.user .message-content{max-width:92%}
@media(max-width:699px){.assistant-drawer{inset:8px;width:auto;height:auto;border-radius:var(--r-md)}}
@media(prefers-reduced-motion:reduce){@keyframes assistant-drawer-in{from{opacity:0}}}
/* @EQUA launcher: always in the bottom-right corner; opens the floating chat, which minimises back to it. */
@keyframes assistant-launcher-in{from{opacity:0;transform:translateY(8px) scale(.9)}}
@media(max-width:699px){
.assistant-drawer{inset:calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left))}
.toast{bottom:calc(78px + env(safe-area-inset-bottom))}
}

/* /css/app.css */
/* ==========================================================================================
   CyberRunner · css/app.css — the security layer.
   Maps every class the console's scripts emit onto the EQUA vocabulary in base.css: capsule
   controls, white inset panels on the neutral canvas, zebra tables, device-pixel hairlines
   (box-shadows, never borders), labelled state colour, one spring curve. Tokens only — no
   hex colours outside the EQUA brand gradients. Screen-specific refinements belong in the
   per-screen files (overview / incidents / workspace / settings / assistant .css).
   Sections: 0 hooks & utilities · 1 shell · 2 headings · 3 tabs & facets · 4 buttons ·
   5 fields · 6 panels & tables · 7 badges & state · 8 incident queue · 9 tasks board ·
   10 new incident · 11 incident record header · 12 overview facet · 13 approval gate ·
   14 run trace · 15 log consoles · 16 findings · 17 entities · 18 response · 19 case file ·
   20 review · 21 settings · 22 integrations · 23 overlays, menus, toast · 24 HAL interaction ·
   25 responsive · 26 print & motion
   ========================================================================================== */

/* ── 0 · hooks & utilities ───────────────────────────────────────────────────────────── */
/* Every drawer, overlay, result list and message is toggled with [hidden]; no component
   display rule may override it. */
[hidden]{display:none!important}
svg.ico{stroke-width:1.75}   /* icons.js regenerated by gen-icons.mjs emits .ico, not .lucide */
.page-content a:not([class]),.muted a:not([class]){color:var(--accent);font-weight:var(--weight-strong)}
.page-content a:not([class]):hover,.muted a:not([class]):hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.pad{padding:10px 0}
.grow{flex:1 1 auto;min-width:0}
.nowrap{white-space:nowrap}
.c-num{font-weight:var(--weight-strong);font-variant-numeric:tabular-nums;white-space:nowrap}
.amber-text{color:var(--amber-text)!important}
.teal-text,.green-text{color:var(--green-text)!important}
.rose-text{color:var(--rose-text)!important}
.blue-text{color:var(--blue-text)!important}
.hint-inline{font-size:var(--text-sm);font-weight:var(--weight-medium);letter-spacing:0;color:var(--label-2)}
.rel-count{display:inline-grid;place-items:center;min-width:22px;height:20px;padding:0 7px;border-radius:var(--r-pill);background:var(--fill-2);color:var(--label-2);font-size:var(--text-sm);font-weight:var(--weight-strong);letter-spacing:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.page-content kbd,.palette kbd{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:6px;background:var(--surface);box-shadow:var(--control-ring);color:var(--label);font-size:var(--text-sm);font-weight:var(--weight-strong);line-height:1}
@keyframes cr-spin{to{transform:rotate(360deg)}}
@keyframes cr-halo{0%{box-shadow:0 0 0 0 var(--green-tint)}70%{box-shadow:0 0 0 6px transparent}100%{box-shadow:0 0 0 0 transparent}}
.spin{animation:cr-spin 1s linear infinite}
.mini-spin{display:inline-block;flex-shrink:0;width:11px;height:11px;border:1.6px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-1px;animation:cr-spin .8s linear infinite;opacity:.9}
/* Route settle (CSS[02]) plays only while a screen is being entered — never on poll or
   in-screen re-renders (shell.js toggles .is-entering on #content). */
.page-content:not(.is-entering)>*{animation:none}

/* ── 1 · shell: sidebar, toolbar ──────────────────────────────────────────────────────── */
/* Cascade fix: in the EQUA source the .mobile-menu / .sidebar-toggle display rules come after
   .icon-button (styles.css:187, :1523 vs :165); the extract's group order puts them before it,
   so both toolbar buttons would always show. Restate them after base.css. */
.sources-count{flex-shrink:0;font-variant-numeric:tabular-nums}
.workspace-switch .workspace-symbol{flex-shrink:0}
a.breadcrumb{transition:color var(--d-fast) var(--ease-out)}
a.breadcrumb:hover{color:var(--label)}
/* The bell's unread marker is EQUA's 8px rose dot; the count stays in the button's label. */
.theme-icon{display:inline-grid;place-items:center}
.theme-icon>svg{width:18px;height:18px}

/* ── 2 · page & section headings ──────────────────────────────────────────────────────── */
/* Legacy views: .view-head > h1.view-title + span.view-sub (sentence case enforced). */
.view-head{display:flex;flex-direction:column;align-items:flex-start;margin:8px 0 24px}
.view-head.page-heading{flex-direction:row;align-items:flex-end}
.view-head.page-heading>div:first-child{min-width:0}
.view-title{margin:0;font-size:30px;line-height:1.12;letter-spacing:-.022em;font-weight:700;text-wrap:balance}
.view-sub{display:block;margin-top:6px;font-size:var(--text-base);color:var(--label-2);text-wrap:pretty}
.view-sub::first-letter{text-transform:uppercase}
/* Inside a tabbed screen the tab's own heading is a section heading. */
.screen-body>.view-head{margin:4px 0 16px}
.screen-body>.view-head .view-title,.screen-body>.view-head>.view-title{font-size:var(--text-2xl);letter-spacing:-.018em}
.screen-body>.view-head .view-sub{margin-top:3px;font-size:var(--text-md)}
.page-heading+.tabs{margin-top:-4px}
.section-heading:first-child{margin-top:4px}

/* ── 3 · tabs track, facet chips, list toolbars ───────────────────────────────────────── */
/* .ws-tabs render links, not buttons: the same raised-segment capsule as CSS[08] .tabs. */
.tabs>button:focus-visible{outline-offset:-1px;border-radius:var(--r-xs)}
#wsTabs{margin:0 0 16px}
/* Facets: a quieter second level — choice chips. */
.facet-bar{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px}
.facet-bar>.chip-filter{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 12px;border-radius:var(--r-pill);background:var(--fill-1);color:var(--label);font-size:var(--text-md);font-weight:var(--weight-medium);white-space:nowrap;transition:background var(--d-fast) var(--ease-out),transform 90ms var(--ease-out)}
.facet-bar>.chip-filter:hover{background:var(--fill-2)}
.facet-bar>.chip-filter:active{transform:scale(.97)}
.facet-bar>.chip-filter.active{background:var(--accent-tint-2);color:var(--accent);box-shadow:inset 0 0 0 1px rgb(36 120 94/.28);font-weight:var(--weight-strong)}

/* ── 4 · buttons (capsules; press = scale .97 in 90ms) ────────────────────────────────── */
.btn-primary,.btn-ghost{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:0 14px;border-radius:var(--r-pill);font-size:var(--text-md);font-weight:var(--weight-strong);letter-spacing:-.005em;white-space:nowrap;cursor:pointer;transition:background var(--d-fast) var(--ease-out),box-shadow var(--d-fast) var(--ease-out),transform 90ms var(--ease-out)}
.btn-primary>svg,.btn-ghost>svg{width:15px;height:15px}
.btn-ghost{background:var(--control-bg);box-shadow:var(--control-ring);color:var(--label)}
.btn-ghost:hover{background:var(--control-bg-hover)}
.btn-primary,.btn-ghost.act-approve,.btn-ghost.act-advance{background:var(--equa-brand);color:var(--on-accent);box-shadow:inset 0 1px 0 rgb(255 255 255/.14),0 1px 2px rgb(15 45 39/.28),0 3px 10px rgb(15 45 39/.14)}
.btn-primary:hover,.btn-ghost.act-approve:hover,.btn-ghost.act-advance:hover{background:var(--equa-brand-deep)}
.btn-primary{min-height:34px;padding:0 16px;font-size:var(--text-md)}
.btn-ghost.act-reject,.btn-ghost.act-cancel,.btn-ghost.danger{background:var(--rose-tint);color:var(--rose-text);box-shadow:none}
.btn-ghost.act-reject:hover,.btn-ghost.act-cancel:hover,.btn-ghost.danger:hover{background:rgb(255 59 48/.16)}
.btn-primary:active:not(:disabled),.btn-ghost:active:not(:disabled){transform:scale(.97)}
.btn-primary:disabled,.btn-ghost.act-approve:disabled,.btn-ghost.act-advance:disabled{opacity:1;background:var(--fill-2);color:var(--label-2);box-shadow:none}
.btn-ghost:disabled{opacity:.5;cursor:default}
.icon-btn{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:32px;height:32px;border-radius:var(--r-xs);color:var(--label-2);transition:background var(--d-fast) var(--ease-out),color var(--d-fast) var(--ease-out),transform 90ms var(--ease-out)}
.icon-btn:hover{background:var(--fill-1);color:var(--label)}
.icon-btn:active{background:var(--fill-2);transform:scale(.94)}
.conn-copy.copied{background:var(--green-tint);color:var(--green-text);box-shadow:none}
a.btn-ghost,a.btn-primary{text-decoration:none}

/* ── 5 · fields ───────────────────────────────────────────────────────────────────────── */
.mini-select{appearance:none;width:auto;max-width:100%;min-height:32px;padding:5px 30px 5px 11px;border:0;border-radius:var(--r-xs);background:var(--field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") no-repeat right 10px center;box-shadow:var(--field-ring);color:var(--label);font-size:var(--text-md);outline:0;transition:box-shadow var(--d-fast) var(--ease-out)}
input.mini-select{padding-right:11px;background-image:none}
.mini-select:focus{box-shadow:0 0 0 1px var(--accent),0 0 0 4px var(--focus-ring)}
:is(.inline-add,.mini-form,.doc-form,.note-form,.conn-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea){width:100%;min-height:36px;padding:7px 12px;border:0;border-radius:var(--r-xs);background:var(--field-bg);box-shadow:var(--field-ring);color:var(--label);font-size:var(--text-md);outline:0;transition:box-shadow var(--d-fast) var(--ease-out)}
:is(.inline-add,.mini-form,.doc-form,.note-form,.conn-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea):focus{box-shadow:0 0 0 1px var(--accent),0 0 0 4px var(--focus-ring)}
:is(.doc-form,.note-form) textarea{min-height:72px;line-height:1.5;resize:vertical}
.submit-msg{margin:0;font-size:var(--text-md);color:var(--label-2)}
.submit-msg[data-kind="error"]{color:var(--rose-text)}
.submit-msg[data-kind="ok"]{color:var(--green-text)}
.req{display:inline-flex;align-items:center;height:18px;margin-left:6px;padding:0 7px;border-radius:var(--r-pill);background:var(--rose-tint);color:var(--rose-text);font-size:var(--text-xs);font-weight:var(--weight-strong);vertical-align:1px}
.doc-form{display:grid;gap:16px}
.doc-form label{display:flex;flex-wrap:wrap;align-items:center;gap:7px 0;font-size:var(--text-md);font-weight:var(--weight-strong);color:var(--label)}
.doc-form label>:is(input,textarea,select){flex:1 1 100%}
.doc-form>.btn-primary,.doc-form>.btn-ghost{justify-self:start}
input[type=file]{font-size:var(--text-md);color:var(--label-2)}

/* ── 6 · panels & zebra tables ────────────────────────────────────────────────────────── */
/* Legacy panels (.panel-head + raw body) are padded here; EQUA panels (.panel-heading /
   .panel-body) keep base.css's flush edges. */
.panel:not(:has(>.panel-heading,>.panel-body)){padding:18px 20px 20px}
:is(.panel,.dash-cols,.metric-tiles,.conn-status-bar,.approval-card,.exec-banner,.flow-notice,.integration-grid,.stats-grid)+:is(.panel,.dash-cols,.approval-card,.metric-telemetry){margin-top:20px}
.panel-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;min-height:28px;margin:-2px 0 14px}
.panel-head .label{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:var(--text-xl);line-height:1.3;letter-spacing:-.012em;font-weight:var(--weight-strong);color:var(--label)}
.panel-head>.btn-ghost,.panel-head .label .btn-ghost{min-height:28px;padding:0 12px;font-size:var(--text-sm)}
.panel.narrow{max-width:760px}
.panel>p.muted:not(.pad):not(.conn-note){margin:0}
.table-wrap{width:100%;overflow:auto}
.panel .table-wrap,.panel>table.rel-table{width:calc(100% + 40px);margin-left:-20px;margin-right:-20px}
.panel-head+.table-wrap{margin-top:-4px}
.panel>.table-wrap:last-child,.panel>table.rel-table:last-child{margin-bottom:-20px}
.panel-body .table-wrap{width:auto;margin-left:-20px;margin-right:-20px}
.rel-table td{white-space:normal;overflow-wrap:anywhere}
.rel-table td.nowrap,.rel-table td.c-num,.rel-table td:has(>.badge),.rel-table td:has(>.prio){white-space:nowrap;overflow-wrap:normal}
.rel-table tbody tr[data-id]{cursor:pointer}
.rel-table tbody tr[data-id]:hover .record-link{color:var(--accent)}
.rel-table code,.ob-val code{font-size:var(--text-sm);overflow-wrap:anywhere}
.rel-table .muted{font-size:inherit}
.dash-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
:is(.ws-main,.ws-side,.dash-cols,.detail-main,.detail-aside,.integration-grid,.settings-grid,.dashboard-middle,.settings-stack)>:is(.panel,.approval-card){margin-top:0}

/* ── 7 · badges, state chips, status dots ─────────────────────────────────────────────── */
.badge.mini{height:20px;padding:0 8px 0 7px;font-size:var(--text-sm)}
.badge.neutral{background:var(--fill-1);color:var(--label-2)}
.badge>.mini-spin{width:10px;height:10px}
.chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;height:22px;padding:0 9px;border-radius:var(--r-pill);background:var(--fill-1);color:var(--label);font-size:var(--text-sm);font-weight:var(--weight-medium);white-space:nowrap}
.chip.small{height:20px;padding:0 8px;font-size:var(--text-sm)}
.chip.badge{font-weight:var(--weight-strong)}
a.chip{transition:background var(--d-fast) var(--ease-out)}
a.chip:hover{background:var(--fill-2)}
.chip-type{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:var(--r-pill);background:var(--fill-2);color:var(--label-2);font-size:var(--text-xs);font-weight:var(--weight-strong);letter-spacing:.01em;white-space:nowrap;vertical-align:1px}
.conf{display:inline-grid;place-items:center;min-width:24px;height:20px;padding:0 7px;border-radius:var(--r-pill);background:var(--fill-2);color:var(--label-2);font-size:var(--text-sm);font-weight:var(--weight-strong);font-variant-numeric:tabular-nums}
.sla-badge,.state-chip,.verdict-badge,.prio{flex-shrink:0}
/* Engine heartbeat pill (run trace): dot + text + total, tone by liveness. */
.hb-text{min-width:0}
.hb-error{background:var(--rose-tint);color:var(--rose-text)}

/* ── 8 · incident queue ───────────────────────────────────────────────────────────────── */
/* Instrument strip: one white panel, cells divided by inset hairlines (CSS[17] idiom). */
.inc-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.inc-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:16px 18px 0;border-radius:var(--r-xs);background:var(--surface);box-shadow:var(--shadow-1);color:var(--label);cursor:pointer;transition:box-shadow var(--d-pop) var(--ease-spring),transform var(--d-pop) var(--ease-spring)}
.inc-card:hover{box-shadow:var(--shadow-2);transform:translateY(-1px)}
.inc-card:active{transform:scale(.99);transition-duration:90ms}
.inc-card:focus-visible{outline:2px solid var(--focus-color);outline-offset:2px;border-radius:var(--r-xs)}
.inc-card.selected{box-shadow:0 0 0 1.5px var(--accent),var(--shadow-2)}
.ic-title{display:-webkit-box;overflow:hidden;font-size:var(--text-lg);font-weight:var(--weight-strong);line-height:1.35;letter-spacing:-.008em;color:var(--label);text-wrap:pretty;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.inc-card:hover .ic-title{color:var(--accent)}
.cards-empty.panel{padding:0}

/* ── 9 · tasks board (kanban, CSS[25d] idiom) ─────────────────────────────────────────── */
.board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(196px,1fr);gap:14px;min-height:320px;margin:0 -12px;padding:0 12px 16px;overflow-x:auto;overscroll-behavior-x:contain;scroll-padding:0 12px;scroll-snap-type:x proximity}
.task-card{margin-bottom:12px;padding:14px 14px 12px;border-radius:var(--r-xs);background:var(--surface);box-shadow:var(--shadow-1);color:var(--label);cursor:pointer;transition:box-shadow var(--d-pop) var(--ease-spring),transform var(--d-pop) var(--ease-spring)}
.task-card:hover{box-shadow:var(--shadow-2);transform:translateY(-1px)}
.task-card:focus-visible{outline:2px solid var(--focus-color);outline-offset:2px;border-radius:var(--r-xs)}
.task-inc{margin-bottom:3px;font-size:var(--text-sm);color:var(--label-2);font-variant-numeric:tabular-nums}
.task-card .task-title{font-size:var(--text-base);font-weight:var(--weight-strong);line-height:1.35;letter-spacing:-.006em;text-wrap:pretty}
.task-card:hover .task-title{color:var(--accent)}
.task-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:10px;font-size:var(--text-sm);color:var(--label-2)}
.task-meta .person{font-size:var(--text-sm);color:var(--label-2)}
.task-due{display:inline-flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums}
.task-card .task-status{display:block;width:100%;margin-top:12px;font-size:var(--text-sm)}

/* ── 10 · new incident ────────────────────────────────────────────────────────────────── */
#logInput{min-height:190px;font-family:var(--font-mono);font-size:var(--text-sm);line-height:1.6}
.preset.active{background:var(--accent-tint-2);color:var(--accent);box-shadow:inset 0 0 0 1px rgb(36 120 94/.28);font-weight:var(--weight-strong)}
.provider-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.provider-label{font-size:var(--text-md);font-weight:var(--weight-strong);color:var(--label)}
.provider-selects{display:flex;flex-wrap:wrap;gap:8px}
.provider-hint{font-size:var(--text-sm);color:var(--label-2)}
#adminProviders .provider-row{margin-top:16px}

/* 9-step lifecycle stepper: numbered track in its own inset panel. */
.lc-step{display:flex;flex:0 0 auto;flex-direction:column;align-items:center;gap:7px;min-width:62px}

/* ── 12 · overview facet: detail layout, inspector rows, SLA, recommendations ────────── */
.reasoning{max-width:75ch;font-size:var(--text-base);line-height:1.6;color:var(--label)}
.alert-pre{max-height:320px;margin:12px 0 0;padding:14px 16px;overflow:auto;border-radius:var(--r-xs);background:var(--fill-1);color:var(--label);font:var(--text-sm)/1.6 var(--font-mono);white-space:pre-wrap;overflow-wrap:anywhere}
/* dl.sir-fields = inspector key/value rows (CSS[25] .detail-line idiom). */
.sla-list{margin:-8px 0 0;padding:0;list-style:none}
.sla-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:8px 0;box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline);font-size:var(--text-md)}
.sla-row:last-child{box-shadow:none}
.sla-name{display:inline-flex;align-items:center;gap:8px;color:var(--label-2)}
.sla-text{font-weight:var(--weight-strong);color:var(--label);text-align:right;font-variant-numeric:tabular-nums}
.sla-met .status-dot{background:var(--green-dot)}
.sla-ontrack .status-dot{background:var(--blue-dot)}
.sla-risk .status-dot{background:var(--amber-dot)}
.sla-breached .status-dot{background:var(--rose-dot)}
.sla-met .sla-text{color:var(--label-2)}
.sla-risk .sla-text{color:var(--amber-text)}
.sla-breached .sla-text{color:var(--rose-text)}
.rec{display:flex;align-items:flex-start;gap:12px;padding:12px 0;box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
.rec:last-child{box-shadow:none}
.rec-target{padding:1px 6px;border-radius:var(--r-xs);background:var(--fill-1);font-family:var(--font-mono);font-size:var(--text-sm);color:var(--label)}

/* ── 13 · approval gate (EQUA approval card) ──────────────────────────────────────────── */
.approval-head>svg{color:var(--amber-dot)!important}
.approval-card ul.actions{margin:12px 0 0;padding:10px 14px 10px 32px;border-radius:var(--r-xs);background:var(--fill-1);font-family:var(--font-mono);font-size:var(--text-sm);line-height:1.7;color:var(--label)}
.approval-btns{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:14px}

/* ── 14 · run trace ───────────────────────────────────────────────────────────────────── */
.trace-head .label{font-size:var(--text-xl)}
.trace-fired{display:flex;align-items:flex-start;gap:12px;margin:0 0 12px;padding:12px 14px;border-radius:var(--r-xs);background:var(--fill-1)}
.trace-k{flex-shrink:0;min-width:72px;padding-top:3px;font-size:var(--text-sm);font-weight:var(--weight-strong);color:var(--label-2)}
.trace-chips{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.fired-text{font-size:var(--text-md);line-height:1.45}
.trace-events{display:grid;gap:4px;margin:0 0 12px}
.trace-evt{display:flex;gap:10px;padding:6px 10px;border-radius:var(--r-xs);background:var(--fill-1);font-size:var(--text-sm);line-height:1.45;color:var(--label-2)}
.trace-evt.lvl-error{background:var(--rose-tint);color:var(--rose-text)}
.trace-list,.trace-group>ol{margin:0;padding:0;list-style:none}
.trace-group{margin:0}
.trace-group-h{padding:12px 0 4px;font-size:var(--text-sm);font-weight:var(--weight-strong);color:var(--label-2)}
.trace-group:first-child>.trace-group-h{padding-top:2px}
.trace-row{position:relative}
.trace-row+.trace-row::before{content:'';position:absolute;top:0;right:0;left:34px;height:var(--hairline-w);background:var(--hairline);transition:opacity var(--d-fast) var(--ease-out)}
.trace-row:hover::before,.trace-row:hover+.trace-row::before{opacity:0}
.trace-row-h{display:grid;grid-template-columns:22px minmax(110px,180px) minmax(0,1fr) auto auto 16px;align-items:center;gap:12px;width:calc(100% + 16px);min-height:40px;margin:0 -8px;padding:6px 8px;border-radius:var(--r-xs);color:var(--label);text-align:left;transition:background var(--d-fast) var(--ease-out)}
.trace-row-h:not(:disabled):hover{background:var(--fill-1)}
.trace-row-h:disabled{opacity:1;cursor:default}
.trace-body{margin:4px 0 10px 34px;padding:12px 14px;border-radius:var(--r-xs);background:var(--canvas);box-shadow:inset 0 0 0 var(--hairline-w) var(--hairline)}
.trace-fields{display:grid;grid-template-columns:minmax(90px,auto) minmax(0,1fr);gap:6px 14px;margin:0 0 10px;font-size:var(--text-sm)}
.trace-fields:last-child{margin-bottom:0}
.trace-fields dt{margin:0;color:var(--label-2)}
.trace-fields dd{margin:0;color:var(--label);overflow-wrap:anywhere}
.trace-log{font-family:var(--font-mono);font-size:var(--text-sm);line-height:1.55}
.trace-next{display:flex;gap:12px;margin-top:14px;padding:12px 14px;border-radius:var(--r-xs);background:var(--accent-tint)}
.trace-next .trace-k{color:var(--accent)}
.trace-next-list{display:grid;flex:1;gap:6px;min-width:0;margin:0;padding:0;list-style:none}
.trace-next-list li{display:flex;align-items:flex-start;gap:8px;font-size:var(--text-md);line-height:1.45;color:var(--label)}

/* ── 15 · log consoles (engine log + Live logs): mono, readable dark-on-light ────────── */
.log-bar{flex-wrap:wrap;gap:10px 12px}
.log-bar .log-spacer{flex:1}
.log-sep{color:var(--label-4)}
.log-status{display:inline-flex;align-items:center;gap:8px;font-size:var(--text-md);font-weight:var(--weight-strong);color:var(--label)}
.log-search{min-width:260px}
.conn-dot{display:inline-block;flex-shrink:0;width:8px;height:8px;border-radius:50%;background:var(--label-4)}
.conn-dot.on,.conn-dot[data-state="ready"]{background:var(--green-dot);box-shadow:0 0 0 2.5px var(--green-tint)}
.conn-dot[data-state="ready"]{animation:cr-halo 1.8s var(--ease-out) infinite}
.conn-dot[data-state="wait"]{background:var(--amber-dot);box-shadow:0 0 0 2.5px var(--amber-tint)}
.conn-dot[data-state="done"]{background:var(--label-2)}
.panel.log-panel{padding:0}
.log-console{min-height:320px;max-height:calc(100vh - 330px);overflow:auto;overscroll-behavior:contain;background:var(--canvas);color:var(--label);font:var(--text-sm)/1.5 var(--font-mono)}
.log-console.compact{min-height:150px;max-height:380px;border-radius:var(--r-xs);box-shadow:inset 0 0 0 var(--hairline-w) var(--hairline)}
.log-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:200px;padding:32px 20px;color:var(--label-2);font:var(--text-md)/1.55 var(--font-text);text-align:center}
.log-console.compact .log-empty{min-height:140px}
.log-empty>svg{width:26px;height:26px;color:var(--label-2)}
.log-row{box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
.log-head{display:flex;align-items:center;gap:12px;width:100%;min-height:32px;padding:5px 14px;color:inherit;font:inherit;text-align:left;transition:background var(--d-fast) var(--ease-out)}
.log-head:not(:disabled):hover{background:var(--fill-1)}
.log-head:disabled{opacity:1;cursor:default}
.log-time{flex-shrink:0;width:64px;color:var(--label-2);font-variant-numeric:tabular-nums}
.log-name{flex-shrink:0;max-width:220px;overflow:hidden;font-weight:var(--weight-strong);white-space:nowrap;text-overflow:ellipsis}
.log-sid{flex-shrink:0;color:var(--label-2)}
.log-user{flex:1;min-width:0;overflow:hidden;color:var(--label-2);white-space:nowrap;text-overflow:ellipsis}
.log-chips{display:flex;flex-shrink:0;gap:4px;margin-left:auto}
.log-chip{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:var(--r-pill);background:var(--fill-2);color:var(--label-2);font:var(--weight-strong) var(--text-xs)/1 var(--font-text)}
.log-chip.tool{background:var(--blue-tint);color:var(--blue-text)}
.log-chip.dec-reject,.log-chip.dec-deny,.log-chip.lvl-error{background:var(--rose-tint);color:var(--rose-text)}
.log-chip.dec-accept,.log-chip.dec-allow{background:var(--green-tint);color:var(--green-text)}
.log-caret{display:grid;place-items:center;flex-shrink:0;color:var(--label-2)}
.log-caret>svg{transition:rotate var(--d-pop) var(--ease-spring)}
.log-row.open .log-caret>svg{rotate:90deg}
.log-detail{margin:0;padding:10px 14px 12px 90px;background:var(--fill-1);color:var(--label-2);font-size:var(--text-sm);white-space:pre-wrap;overflow-wrap:anywhere}
.log-row.sev-alert{box-shadow:inset 2px 0 0 var(--rose-dot),inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
.log-row.sev-alert .log-name{color:var(--rose-text)}
.log-row.sev-warn{box-shadow:inset 2px 0 0 var(--amber-dot),inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
.log-row.sev-warn .log-name{color:var(--amber-text)}

/* ── 16 · findings: MITRE chain, kill chain, risk, critic, narrative, graph ───────────── */
.mitre-step{display:flex;flex-direction:column;gap:3px;min-width:160px;padding:12px 14px;border-radius:var(--r-xs);background:var(--fill-1)}
.mitre-step.primary{background:var(--accent-tint);box-shadow:inset 0 0 0 1px rgb(36 120 94/.2)}
.mitre-kind{font-size:var(--text-sm);font-weight:var(--weight-strong);color:var(--label-2)}
.mitre-arrow{display:grid;place-items:center;color:var(--label-4)}
.kill-chain{display:flex;align-items:stretch;gap:6px;padding-bottom:4px;overflow-x:auto}
.kc-step{display:flex;flex:0 0 190px;flex-direction:column;gap:8px;padding:12px 14px;border-radius:var(--r-xs);background:var(--fill-1)}
.kc-arrow{display:grid;flex:0 0 auto;place-items:center;color:var(--label-4)}
ul.factors{display:grid;gap:6px;margin:12px 0 0;padding:0;list-style:none}
.reasoning+ul.factors{margin-top:14px}
ul.factors>li{position:relative;padding-left:16px;font-size:var(--text-md);line-height:1.5;color:var(--label)}
ul.factors>li::before{content:'';position:absolute;top:.62em;left:2px;width:6px;height:6px;border-radius:50%;background:var(--label-2)}
ul.factors.concerns>li::before{background:var(--amber-dot)}
ul.hyps{margin:-6px 0 0;padding:0;list-style:none}
.hyp{padding:10px 0;box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline);font-size:var(--text-md);line-height:1.5}
.hyp:last-child{box-shadow:none;padding-bottom:0}
.narrative.headline{margin:0 0 14px;font-size:var(--text-xl);font-weight:var(--weight-strong);line-height:1.35;letter-spacing:-.012em}

/* ── 17 · entities ────────────────────────────────────────────────────────────────────── */
#wsFacetBody:has(>.panel.entity){display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px;align-items:start}
#wsFacetBody>.panel.entity{margin:0}
.entity .panel-head .label{font-size:var(--text-lg)}

/* ── 18 · response: plan, actions table ───────────────────────────────────────────────── */
.rem-target{padding:1px 6px;border-radius:var(--r-xs);background:var(--fill-1);font-size:var(--text-sm)}
.approval-flag{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:4px 10px;border-radius:var(--r-pill);background:var(--amber-tint);color:var(--amber-text);font-size:var(--text-sm);font-weight:var(--weight-strong)}
ul.actions{margin:0;padding-left:18px;font-size:var(--text-md);line-height:1.6}
.act-table td{font-size:var(--text-md)}

/* ── 19 · case file: activity, timeline, tasks, evidence ─────────────────────────────── */
ul.activity{margin:0;padding:0;list-style:none}
ul.activity>.act-item{display:flex;gap:12px;padding:14px 0;box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
ul.activity>.act-item:first-child{padding-top:4px}
ul.activity>.act-item:last-child{box-shadow:none;padding-bottom:0}
.act-avatar{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:var(--fill-1);color:var(--label-2);font-size:var(--text-sm);font-weight:var(--weight-strong);letter-spacing:-.02em}
.act-avatar>svg{width:15px;height:15px}
.act-body{flex:1;min-width:0}
.act-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:24px}
.act-author{font-size:var(--text-md);font-weight:var(--weight-strong);color:var(--label)}
.act-tag{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:var(--r-pill);background:var(--fill-1);color:var(--label-2);font-size:var(--text-sm);font-weight:var(--weight-strong);white-space:nowrap}
.act-tag.result{background:var(--green-tint);color:var(--green-text)}
.act-time{font-size:var(--text-sm);color:var(--label-2);font-variant-numeric:tabular-nums}
ul.activity .act-text{margin-top:4px;font-size:var(--text-md);line-height:1.55;color:var(--label);white-space:pre-line;overflow-wrap:anywhere}
/* Timeline facet = EQUA RecordTimeline (links.css cx-*), with a kind glyph per event. */
.cx-day+.cx-day{margin-top:14px}
.tl-kind{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:6px;border-radius:50%;background:var(--fill-1);color:var(--label-2);vertical-align:-6px}
.act-approval .tl-kind{background:var(--amber-tint);color:var(--amber-text)}
.act-flag .tl-kind{background:var(--rose-tint);color:var(--rose-text)}
.act-action .tl-kind{background:var(--blue-tint);color:var(--blue-text)}
.act-decision .tl-kind{background:var(--accent-tint-2);color:var(--accent)}
.act-lifecycle .tl-kind{background:var(--green-tint);color:var(--green-text)}
.act-approval .act-avatar{background:var(--amber-tint);color:var(--amber-text)}
.act-flag .act-avatar{background:var(--rose-tint);color:var(--rose-text)}
ul.task-list{margin:0;padding:0;list-style:none}
.task-row{display:flex;align-items:center;gap:12px;min-height:54px;padding:10px 0;box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
.task-row:last-child{box-shadow:none;padding-bottom:0}
.task-state-dot{margin-top:1px}
.task-l{flex:1;min-width:0}
.task-row .task-title{font-size:var(--text-md);font-weight:var(--weight-strong);color:var(--label)}
.task-row .task-meta{margin-top:4px}
.task-row.task-done .task-title{color:var(--label-2);text-decoration:line-through;text-decoration-color:var(--label-2)}
.task-overdue{flex-shrink:0}

/* ── 20 · review: metric strip, sparkline, verdict split, bars, telemetry ─────────────── */
.tele-last{margin-left:auto;font-size:var(--text-sm);color:var(--label-2)}

/* ── 21 · settings: engine, OTel connector, automation, audit ─────────────────────────── */
.settings-foot{margin-top:16px}
.conn-endpoint{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;box-shadow:inset 0 calc(var(--hairline-w)*-1) 0 var(--hairline)}
.conn-ep-meta{display:grid;gap:3px;min-width:0}
.conn-ep-label{font-size:var(--text-sm);font-weight:var(--weight-strong);color:var(--label-2)}
.conn-ep-url{font-size:var(--text-sm);color:var(--label);overflow-wrap:anywhere}
.conn-copy{flex-shrink:0;min-height:28px!important;padding:0 12px!important;font-size:var(--text-sm)!important}
.conn-note{margin-top:12px;font-size:var(--text-sm);line-height:1.55}
.conn-ok{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border-radius:var(--r-xs);color:var(--label)}
.conn-ok{background:var(--green-tint)}
.conn-ok>svg{flex-shrink:0;margin-top:1px;color:var(--green-dot)}
.conn-code{margin:12px 0 0;padding:14px 16px;overflow:auto;border-radius:var(--r-xs);background:var(--fill-1);color:var(--label);font:var(--text-sm)/1.7 var(--font-mono);white-space:pre}
.conn-form{display:grid;gap:18px}
.conn-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
.conn-field{display:grid;align-content:start;gap:7px;font-size:var(--text-md);font-weight:var(--weight-strong);color:var(--label)}
.conn-field .mini-select{width:100%;min-height:36px}
.conn-field-wide{grid-column:1/-1}
.conn-toggle-hint{font-size:var(--text-sm);font-weight:var(--weight-regular);line-height:1.45;color:var(--label-2)}
.conn-toggles{display:flex;flex-direction:column;border-radius:var(--r-xs);background:var(--canvas);box-shadow:inset 0 0 0 var(--hairline-w) var(--hairline)}
.conn-toggle{display:flex;align-items:center;gap:12px;padding:12px 14px;cursor:pointer}
.conn-toggle+.conn-toggle{box-shadow:inset 0 var(--hairline-w) 0 var(--hairline)}
.conn-toggle input{position:relative;flex:none;width:38px;height:22px;margin:0;border-radius:var(--r-pill);background:var(--fill-3);-webkit-appearance:none;appearance:none;cursor:pointer;transition:background var(--d-fast) var(--ease-out)}
.conn-toggle input::after{content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:var(--r-pill);background:var(--on-accent);box-shadow:0 0 0 .5px rgb(0 0 0/.04),0 2px 4px rgb(0 0 0/.2);transition:transform var(--d-pop) var(--ease-spring),width var(--d-pop) var(--ease-spring)}
.conn-toggle input:checked{background:var(--accent)}
.conn-toggle input:checked::after{transform:translateX(16px)}
.conn-toggle input:focus-visible{outline:2px solid var(--focus-color);outline-offset:2px;border-radius:var(--r-pill)}
.conn-toggle-txt{display:grid;gap:2px;min-width:0}
.conn-toggle-label{font-size:var(--text-md);font-weight:var(--weight-strong);color:var(--label)}
.conn-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.conn-test-result{margin-top:14px;padding:12px 14px;border-radius:var(--r-xs);background:var(--fill-1);font-size:var(--text-md);color:var(--label)}
.conn-test-result.ok{background:var(--green-tint)}
.conn-test-result.err{background:var(--rose-tint);color:var(--rose-text)}
.conn-test-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-weight:var(--weight-strong)}
.conn-test-sigs{margin:8px 0 0;padding-left:18px;color:var(--label-2);font:var(--text-sm)/1.6 var(--font-mono)}
.pl-arrow{display:grid;flex:0 0 auto;place-items:center;color:var(--label-4)}
.aud-table del{color:var(--label-2);text-decoration-color:var(--label-4)}
.aud-table ins{font-weight:var(--weight-strong);text-decoration:none;color:var(--label)}
.aud-arrow{color:var(--label-4)}
.aud-table td:first-child{white-space:nowrap}

/* ── 22 · integrations ────────────────────────────────────────────────────────────────── */
.integ-notice{margin:0 0 4px}
.integ-error{margin:12px 0 0;font-size:var(--text-sm)}

/* ── 23 · overlays, command palette, menus, notifications, search, toast ──────────────── */
.overlay{position:fixed;inset:0;z-index:90;display:flex;align-items:flex-start;justify-content:center;padding:12vh 16px 16px;overflow:auto;background:var(--scrim);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:scrim-in var(--d-pop) var(--ease-out)}
.palette{display:flex;flex-direction:column;width:min(640px,100%);max-height:min(620px,76vh);overflow:hidden;border-radius:var(--r-xs);background:var(--glass-strong);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);color:var(--label);box-shadow:var(--shadow-modal);animation:flow-sheet-in var(--d-pop) var(--ease-spring)}
#paletteInput{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--label);font-size:var(--text-xl)}
.palette-heading{padding:10px 10px 4px;color:var(--label-2);font-size:var(--text-sm);font-weight:var(--weight-strong);letter-spacing:.02em}
/* Anchored menu (openMenu): EQUA glass popover materialising from its trigger. */
.ctx-menu{position:absolute;z-index:95;display:grid;min-width:210px;max-width:340px;max-height:min(440px,70vh);padding:5px;overflow:auto;border-radius:var(--r-md);background:var(--glass-strong);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:var(--shadow-pop);animation:materialize var(--d-pop) var(--ease-spring)}
.ctx-item{display:flex;align-items:center;gap:9px;min-height:34px;padding:6px 10px;border-radius:var(--r-xs);color:var(--label);font-size:var(--text-md);text-align:left;transition:background var(--d-fast) var(--ease-out)}
.ctx-item:hover{background:var(--fill-1)}
.ctx-item:focus-visible{background:var(--accent);color:var(--on-accent);outline:0}
.ctx-item:focus-visible>svg,.ctx-item:focus-visible small{color:rgb(255 255 255/.8)!important}
.ctx-item>svg{flex-shrink:0;color:var(--label-2)}
.ctx-text{flex:1;min-width:0}
.ctx-text small{display:block;margin-top:1px;overflow:hidden;font-size:var(--text-sm);color:var(--label-2);white-space:nowrap;text-overflow:ellipsis}
.ctx-item.active{font-weight:var(--weight-strong)}
.ctx-item .ctx-check{color:var(--accent)}
.ctx-item.danger{color:var(--rose-text)}
/* Toolbar search results: the omnibox hits are links (same rows as CSS[04] buttons). */
.search-results small{text-transform:none}
.search-results{width:max(100%,360px)}
.toast>span{min-width:0}
.toast.is-error>svg:first-child{color:var(--rose-dot)}

/* ── 24 · HAL interaction drawer (EQUA assistant drawer + conversation) ──────────────────────── */
.assistant-drawer-head .label{flex:1;min-width:0;overflow:hidden;font-size:var(--text-base);font-weight:var(--weight-strong);letter-spacing:-.01em;white-space:nowrap;text-overflow:ellipsis}
.message.is-error .message-content{color:var(--rose-text)}
.message.assistant .message-content{white-space:pre-wrap}

/* ── 25 · responsive ──────────────────────────────────────────────────────────────────── */
@media(max-width:1279px){
.trace-row-h{grid-template-columns:22px minmax(100px,150px) minmax(0,1fr) auto 16px}
}
@media(max-width:999px){
.dash-cols{grid-template-columns:minmax(0,1fr)}
.conn-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:699px){
.view-head{margin:4px 0 18px}
.view-title{font-size:var(--text-3xl)}
.view-sub{font-size:var(--text-base)}
.view-head.page-heading{flex-direction:column;align-items:stretch;gap:14px}
.inc-cards{grid-template-columns:minmax(0,1fr);gap:12px}
.panel:not(:has(>.panel-heading,>.panel-body)){padding:16px}
.panel .table-wrap,.panel>table.rel-table{width:calc(100% + 32px);margin-left:-16px;margin-right:-16px}
.panel>.table-wrap:last-child,.panel>table.rel-table:last-child{margin-bottom:-16px}
.trace-row-h{grid-template-columns:22px minmax(0,1fr) auto 16px;gap:10px}
.trace-body{margin-left:0}
.log-search{min-width:0;flex:1 1 100%}
.log-detail{padding-left:14px}
.log-time{width:auto}
.log-sid{display:none}
.kc-step{flex-basis:160px}
#wsFacetBody:has(>.panel.entity){grid-template-columns:minmax(0,1fr)}
.overlay{padding:8px}
.palette{max-height:calc(100dvh - 16px)}
}

/* ── 26 · print & reduced motion ──────────────────────────────────────────────────────── */
@media print{.facet-bar,.doc-form button,.assistant-drawer,.toast,.overlay{display:none!important}
.workspace{margin-left:0}
body::before{display:none}
.panel,.overview-strip{box-shadow:0 0 0 1px #ccc}}
@media(prefers-reduced-motion:reduce){.inc-card:hover,.task-card:hover{transform:none}
.conn-dot{animation:none!important}
.mini-spin,.spin{animation-duration:2.4s}}

/* Device names — wherever an incident or vulnerability appears */
.dev-chips{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;min-width:0}
.dev-chip{display:inline-flex;align-items:center;gap:4px;max-width:180px;height:22px;padding:0 8px;border-radius:var(--r-pill);background:var(--fill-1);
  font-size:var(--text-sm);font-weight:var(--weight-strong);color:var(--label);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}
.dev-chip svg{flex:0 0 auto;color:var(--label-2)}
a.dev-chip:hover{background:var(--fill-2);color:var(--accent)}
a.dev-chip:focus-visible{outline:2px solid var(--focus-color);outline-offset:1px}
.dev-more{font-size:var(--text-sm);font-weight:var(--weight-strong);color:var(--label-2)}
.dev-none{display:inline-flex;align-items:center;gap:4px;font-size:var(--text-sm);color:var(--label-2)}

/* A person must act here: glowing amber (static for reduced motion) */
.needs-human{box-shadow:0 0 0 2px var(--amber-dot),0 0 10px 1px color-mix(in srgb,var(--amber-dot) 50%,transparent) !important;
  animation:needs-human 1.9s ease-in-out infinite}
@keyframes needs-human{
  0%,100%{box-shadow:0 0 0 2px var(--amber-dot),0 0 4px 0 color-mix(in srgb,var(--amber-dot) 40%,transparent)}
  50%{box-shadow:0 0 0 2px var(--amber-dot),0 0 16px 4px color-mix(in srgb,var(--amber-dot) 60%,transparent)}}
.badge.needs-human{box-shadow:0 0 0 1.5px var(--amber-dot),0 0 8px 1px color-mix(in srgb,var(--amber-dot) 45%,transparent) !important}
.needs-human-text{animation:needs-human-text 1.9s ease-in-out infinite}
@keyframes needs-human-text{0%,100%{text-shadow:none}50%{text-shadow:0 0 8px color-mix(in srgb,var(--amber-dot) 70%,transparent)}}
.needs-human-badge{background:var(--amber-dot) !important;color:#fff !important;box-shadow:0 0 8px 1px color-mix(in srgb,var(--amber-dot) 55%,transparent);
  animation:needs-human-badge 1.9s ease-in-out infinite}
@keyframes needs-human-badge{0%,100%{box-shadow:0 0 3px 0 color-mix(in srgb,var(--amber-dot) 40%,transparent)}50%{box-shadow:0 0 10px 3px color-mix(in srgb,var(--amber-dot) 60%,transparent)}}
.task-needs-human{box-shadow:inset 3px 0 0 var(--amber-dot)}
@media(prefers-reduced-motion:reduce){.needs-human,.needs-human-text,.needs-human-badge{animation:none}}

/* ── Live rules moved from retired stylesheets (WP-84) ──────────────────────────────────────────────────────────
   incidents.css: queue table rows/focus (native Vulnerabilities and list views) and .sr-only; oversight.css: improvement
   query list, form grid inside panel bodies, AI avatar; vulns.css: vulnerability sub-line and ok notice; knowledge.css:
   search form; onboarding-operations.css: telemetry test block. clean.css was always on by default: its live panel
   spacing rules keep the same specificity with html:root instead of html.clean. */
.queue-panel{padding:0}
.queue-panel>.table-scroll{border-radius:inherit}
.queue-table{font-size:var(--text-md)}
.queue-table td{vertical-align:middle}
.queue-table .q-title{white-space:normal;min-width:240px;width:38%}
.queue-table .q-title strong{display:block;font-weight:var(--weight-strong);line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.queue-table .q-title small{display:block;margin-top:2px;font-size:var(--text-sm);color:var(--label-2);font-variant-numeric:tabular-nums}
.queue-table .numeric{font-variant-numeric:tabular-nums}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.queue-table th, .queue-table td{padding-left:12px;padding-right:12px}
.queue-table th:first-child, .queue-table td:first-child{padding-left:20px}
@media(max-width:640px){table.data-table.queue-table>tbody>tr>td.q-title{grid-column:1/-1;min-width:0;width:auto}}
.ov-imp-qs{margin:2px 0 0;padding-left:20px;font-size:var(--text-sm);line-height:1.55;color:var(--label)}
.panel-body.form-grid{padding:4px 20px 20px}
.avatar.ai{display:inline-grid;place-items:center;background:var(--blue-dot);color:#fff}
.vuln-sub{display:block;margin-top:2px;font-size:var(--text-sm);color:var(--label-2);text-align:left;white-space:nowrap}
.vuln-sub svg{vertical-align:-1px;color:var(--rose-text)}
.flow-notice.ok{background:var(--accent-tint-2)}
@media(max-width:699px){.vuln-sub{white-space:normal}}
.kn-search{display:flex;align-items:flex-end;gap:10px;margin:4px 0 12px}
.kn-search .field{flex:1}
@media(max-width:699px){.kn-search{flex-direction:column;align-items:stretch}}
html:root .panel{margin-bottom:14px}
html:root .panel>.panel-body, html:root .panel-body{padding-top:10px;padding-bottom:12px}
html:root section.panel{border-radius:var(--r-xs)}
.onb-ops-test>p{font-size:var(--text-lg);line-height:1.65;color:var(--label-2);margin:0 0 16px;max-width:72ch}
.onb-ops-test{padding:18px 0;margin-top:12px;border-top:1px solid var(--hairline)}
.onb-ops-test h3{margin:0 0 8px;font-size:var(--text-xl)}

/* /css/equa.css */
/* EQUA: Nordic calm in forest and sequoia — clear structure, a quiet brand line, warm surfaces. */
.equa-logo{display:block;width:104px;height:auto;flex:none;color:var(--equa-sequoia)}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]):not([data-theme="unifi"]):not([data-theme="jysk"]):not([data-theme="equa"]) .equa-logo{color:var(--equa-moss)}}
:root[data-theme="dark"] .equa-logo{color:var(--equa-moss)}
body{font-size:var(--text-lg);line-height:1.55}
.brand{align-items:flex-start;gap:14px;padding:6px 12px 22px}
.workspace-switch{margin-bottom:20px;border:1px solid var(--hairline);background:var(--canvas)}
.workspace-symbol{background:var(--equa-brand);box-shadow:none;color:#fff}
.panel{box-shadow:0 0 0 1px var(--hairline)}
.button.primary{background:var(--equa-brand);color:var(--on-accent);box-shadow:none}
.button.primary:hover{background:var(--equa-brand-deep)}
.sign-out{font-size:var(--text-sm);white-space:nowrap}
.identity-page{max-width:1000px}
.identity-section{padding:20px;margin-bottom:18px;border:1px solid var(--hairline);border-radius:var(--r-xs);background:var(--surface)}
.identity-section-head{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:20px}
.identity-section-head>div{flex:1;min-width:180px}
.identity-section-head h2{font-size:var(--text-xl);line-height:1.4}
.identity-section-head p{margin-top:5px;font-size:var(--text-md);color:var(--label-2);max-width:60ch}
.identity-status{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:var(--r-pill);background:var(--fill-1);color:var(--label-2);font-size:var(--text-sm);font-weight:var(--weight-strong)}
.identity-status::before{content:"";width:6px;height:6px;background:currentColor;border-radius:50%}
.identity-status.ready{background:var(--green-tint);color:var(--green-text)}
.identity-status.pending{background:var(--amber-tint);color:var(--amber-text)}
.identity-facts{margin:0;display:grid;grid-template-columns:minmax(0,1fr);font-size:var(--text-base)}
.identity-fact{padding:14px 0;border-top:1px solid var(--hairline);min-width:0}
.identity-fact dt{font-size:var(--text-sm);color:var(--label-2);margin-bottom:5px}
.identity-fact dd{margin:0;overflow-wrap:anywhere}
.identity-fact code{font-size:var(--text-sm)}
.identity-note{display:flex;gap:10px;align-items:flex-start;margin:16px 0 0;padding:14px;background:var(--canvas);border-radius:var(--r-xs);font-size:var(--text-md);color:var(--label-2);line-height:1.65}
.identity-note>svg{margin-top:3px;flex:none;color:var(--accent)}
.identity-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.identity-error{padding:24px;border:1px solid var(--hairline);border-radius:var(--r-xs);background:var(--surface)}
.identity-error p{margin:8px 0 18px;color:var(--label-2)}
.identity-error .button{min-height:44px}
.login-page{min-height:100svh;border-top:6px solid var(--equa-brand);background:var(--canvas);display:flex;flex-direction:column}
.login-header{display:flex;align-items:center;justify-content:space-between;padding:24px;gap:20px}
.login-header>span{font-size:var(--text-sm);color:var(--label-2)}
.login-main{width:min(1080px,100%);margin:auto;display:grid;padding:16px 24px 40px;gap:40px}
.login-story{padding:8px 0}
.login-eyebrow{font-size:var(--text-md);font-weight:var(--weight-strong);color:var(--accent);margin-bottom:18px}
.login-story h1{font-size:clamp(32px,5vw,48px);line-height:1.13;letter-spacing:-.035em;font-weight:700;max-width:12ch}
.login-story>p:last-child{font-size:var(--text-lg);color:var(--label-2);line-height:1.8;max-width:39ch;margin-top:22px}
.login-form-panel{padding:28px 24px;background:var(--surface);border:1px solid var(--hairline);border-radius:var(--r-xs);align-self:center}
.login-lock{width:44px;height:44px;display:grid;place-items:center;background:var(--accent-tint);color:var(--accent);border-radius:var(--r-xs);margin-bottom:20px}
.login-form-panel h2{font-size:var(--text-3xl);margin-bottom:12px;line-height:1.25}
.login-form-panel p{color:var(--label-2);font-size:var(--text-base);line-height:1.7}
.login-actions{display:grid;gap:12px;margin:24px 0 18px}
.login-actions .button{justify-content:center;min-height:48px;gap:12px;font-size:var(--text-base);border-radius:var(--r-xs)}
.login-detail{padding-top:18px;border-top:1px solid var(--hairline);font-size:var(--text-sm)!important}
.login-notice{margin-top:18px;padding:12px;border-left:3px solid var(--amber-dot);background:var(--amber-tint);color:var(--amber-text)!important}
.login-footer{padding:20px 24px;border-top:1px solid var(--hairline);font-size:var(--text-xs);color:var(--label-2);display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between}
.login-theme{flex:none;width:44px;height:44px;border:1px solid var(--hairline);border-radius:var(--r-xs);display:grid;place-items:center}
.login-header-end{display:flex;align-items:center;gap:16px;font-size:var(--text-sm);color:var(--label-2)}
@media(max-width:640px){.login-header-end>span{display:none}}
.identity-page .view-head{margin-top:8px}
.button,.icon-button,.btn-ghost{min-height:44px}
.icon-button{min-width:44px}
#shortcutsBtn,#cleanToggle{display:none}
.sign-out{padding-inline:9px}
@media(min-width:641px){
  .identity-facts{grid-template-columns:1fr 1fr;column-gap:28px}
  .identity-section{padding:24px}
  .login-main{padding:32px 40px 56px}
  .login-header{padding:28px 40px}
  .login-form-panel{padding:36px}
}
@media(min-width:1000px){
  body{font-size:var(--text-base)}
  .login-main{grid-template-columns:1fr 1fr;gap:80px;align-items:center}
  .login-story{padding:20px 0}
  .login-form-panel{margin:0}
  #shortcutsBtn,#cleanToggle{display:inline-flex}
}
@media(min-width:1000px){
  .button,.btn-ghost{min-height:34px}
  .icon-button{min-height:36px;min-width:36px}
  .login-actions .button{min-height:48px}
  .identity-actions .button{min-height:40px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Identity setup follows the console's existing functional form grid. */
.identity-settings-grid{display:grid;gap:18px;margin-bottom:20px}
.identity-setting{display:grid;gap:6px;min-width:0;font-size:var(--text-lg)}
.identity-setting input{min-height:44px;min-width:0;font-size:var(--text-lg)}
.identity-setting input[type=checkbox]{width:24px}
.identity-setting small{color:var(--label-2);font-size:var(--text-md)}
.identity-setting input[readonly]{color:var(--label-2);background:var(--canvas)}
.identity-manifest{max-height:280px;overflow:auto;padding:14px;background:var(--canvas);border:1px solid var(--hairline);white-space:pre;font-size:var(--text-sm)}
.identity-copy-value{display:block;overflow-wrap:anywhere;margin:12px 0}
#entraSettings h3{margin-top:24px}
#entraSettings p{margin:12px 0;max-width:70ch}
#entraSettings .button{min-height:44px}
@media(min-width:700px){.identity-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* /css/historian.css */
/* Kanso / Ma. The book palette becomes information on a quiet paper canvas. */
body.hist-mode{overflow:hidden;background:var(--hist-paper)}
.hist-mode #wsHeader{display:none!important}
.hist-mode .workspace,.hist-mode .main-content,.hist-mode #content,.hist-mode .ws{margin:0!important;padding:0!important;max-width:none!important;transform:none!important;border:0!important;box-shadow:none!important}
.hist-app{position:fixed;inset:0;overflow:hidden;isolation:isolate;color:var(--hist-ink);background:var(--hist-paper);font:var(--weight-regular) var(--text-lg)/1.5 var(--font-text);letter-spacing:0;z-index:var(--z-page)}
.hist-app *, .hist-app *::before,.hist-app *::after{box-sizing:border-box}
.hist-app button,.hist-app a,.hist-app input{font-family:inherit}
.hist-app button{cursor:pointer}
.hist-app button:disabled{cursor:not-allowed;opacity:.5}
.hist-app button:focus-visible,.hist-app a:focus-visible,.hist-app summary:focus-visible,.hist-stage:focus-visible{outline:2px solid var(--focus-color);outline-offset:4px}
.hist-app [hidden]{display:none!important}
.hist-header{position:absolute;inset:0 0 auto;z-index:8;height:74px;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--hist-line);background:var(--hist-paper)}
.hist-header-start,.hist-header-end{display:flex;align-items:center;gap:10px;min-width:0}
.hist-brand{display:flex;align-items:center;gap:9px;font:var(--weight-regular) var(--text-title)/1 var(--font-text);color:var(--hist-ink);text-decoration:none;white-space:nowrap;letter-spacing:-.6px}
.hist-brand>span:last-child{color:var(--hist-rust);margin-left:-6px}
.hist-mark{display:flex;gap:3px;width:23px;height:29px;align-items:center}
.hist-mark i{height:23px;width:6px;background:var(--hist-green);transform:skewY(-19deg)}
.hist-mark i:nth-child(2){background:var(--hist-rust);height:26px}
.hist-mark i:nth-child(3){background:var(--hist-brown);height:29px}
.hist-case-name{display:none}
.hist-icon,.hist-text{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;border:0;border-radius:var(--r-xs);background:transparent;color:var(--hist-muted);padding:8px;font-size:var(--text-md);text-decoration:none;white-space:nowrap}
.hist-text:hover,.hist-icon:hover{background:var(--hist-chip);color:var(--hist-ink)}
.hist-header .hist-desktop,.hist-header [data-hist-world]{display:none}
.hist-intro{position:absolute;top:99px;left:24px;right:24px;z-index:2;pointer-events:none}
.hist-eyebrow{font:var(--weight-medium) 10px/1.5 var(--font-text);letter-spacing:1.6px;text-transform:uppercase;color:var(--hist-muted)}
.hist-intro h1{font:var(--weight-medium) var(--text-3xl)/1.25 var(--font-text);letter-spacing:-.7px;color:var(--hist-ink);max-width:920px;margin:9px 0 14px}
.hist-subtitle{display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap;font-size:var(--text-sm);color:var(--hist-muted)}
.hist-subtitle>span:empty{display:none}
.hist-decision-jump{pointer-events:auto;display:flex;gap:7px;align-items:center;min-height:44px;background:transparent;border:0;color:var(--hist-rust);font-size:var(--text-sm);padding:0}
.hist-stage{position:absolute;inset:263px 0 126px;overflow:hidden;touch-action:none;cursor:grab}
.hist-stage.is-panning{cursor:grabbing;-webkit-user-select:none;user-select:none}.hist-stage a{-webkit-user-drag:none}
.hist-stage:active{cursor:grabbing}
.hist-world{position:absolute;top:0;left:0;transform-origin:0 0}
.hist-world.is-moving{will-change:transform}
.hist-links{position:absolute;inset:0;overflow:visible;fill:none;pointer-events:none}
.hist-edge{stroke:var(--hist-green);stroke-width:1.4;stroke-linejoin:miter;fill:none}
.hist-edge.inferred{stroke:var(--hist-brown)}
.hist-edge.unknown{stroke:var(--hist-rust);stroke-dasharray:4 5}
.hist-edge.decision{stroke:var(--hist-rust)}
.hist-edge-reveal{fill:none;stroke:white;stroke-width:10;stroke-dasharray:1000;stroke-dashoffset:0;animation:hist-branch .9s ease-in-out both}
.hist-node{position:absolute;left:var(--x);top:var(--y);width:236px;min-height:193px;transform:translate(-50%,-50%);border:1px solid var(--hist-line);border-radius:var(--r-xs);background:var(--hist-card);box-shadow:0 3px 15px #5e472408;color:var(--hist-ink)}
.hist-node.arriving{animation:hist-fade .65s ease both;animation-delay:var(--delay)}
.hist-node::before{content:'';position:absolute;left:-4px;top:50%;width:6px;height:6px;border-radius:50%;background:var(--hist-green);transform:translateY(-50%)}
.hist-node.inferred{background:var(--hist-assessment);border-color:var(--hist-brown)}
.hist-node.inferred::before{background:var(--hist-brown)}
.hist-node.unknown{border-color:var(--hist-rust);border-style:dashed;background:var(--hist-paper)}
.hist-node.unknown::before{background:var(--hist-rust)}
.hist-node.decision{border-color:var(--hist-rust);border-top:2px solid var(--hist-rust)}
.hist-node.decision::before{background:var(--hist-rust)}
.hist-node:hover{box-shadow:0 6px 22px var(--hist-shadow);border-color:var(--hist-brown)}
.hist-node.selected{outline:2px solid var(--hist-rust);outline-offset:4px}
.hist-node-open{display:flex;flex-direction:column;gap:10px;width:100%;min-height:193px;padding:20px 18px 13px;text-align:left;border:0;border-radius:var(--r-xs);color:inherit;background:transparent}
.hist-node-label{font-size:10px;font-weight:var(--weight-medium);letter-spacing:.8px;text-transform:uppercase;color:var(--hist-muted)}
.hist-node strong{font:var(--weight-medium) var(--text-lg)/1.35 var(--font-text);letter-spacing:-.2px;overflow-wrap:anywhere}
.hist-node-summary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--text-lg);line-height:1.5;color:var(--hist-muted)}
.hist-node-list{margin:0;padding-left:20px;display:grid;gap:6px;font-size:var(--text-base);line-height:1.45;color:var(--hist-ink)}
.hist-node-list li{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hist-node-list-more{font-size:var(--text-md);color:var(--hist-muted)}
.hist-node-results{display:grid;gap:9px;width:100%;text-align:left}
.hist-agent-result{display:grid;gap:2px;min-width:0;padding-left:9px;border-left:2px solid var(--hist-line)}
.hist-agent-result-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);font-weight:var(--weight-medium);line-height:1.4;color:var(--hist-ink);overflow-wrap:anywhere}
.hist-agent-result-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--text-lg);line-height:1.5;color:var(--hist-muted);overflow-wrap:anywhere}
.hist-agent-result[data-result-status="gap"],.hist-agent-result[data-result-status="failed"]{border-left-color:var(--hist-rust)}
.hist-node.expanded .hist-node-results{display:none}
.hist-node-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:10px;width:100%;border-top:1px solid var(--hist-line);font-size:10px;color:var(--hist-muted)}
.hist-node-choice{display:flex;align-items:center;justify-content:space-between;min-height:44px;width:100%;padding:12px 18px;font-size:var(--text-sm);color:var(--hist-rust);border:0;border-top:1px solid var(--hist-line);background:var(--hist-chip);border-radius:0 0 var(--r-xs) var(--r-xs)}
.hist-chip{display:inline-flex;gap:8px;align-items:center;max-width:100%;padding:5px 9px;border:1px solid var(--hist-line);border-radius:var(--r-pill);background:var(--hist-chip);color:var(--hist-ink);font:var(--weight-regular) 10px/1.3 var(--font-text)}
.hist-chip b{font-weight:var(--weight-strong);white-space:nowrap}
.hist-chip>span{padding-left:7px;border-left:1px solid var(--hist-line);white-space:nowrap;color:var(--hist-muted)}
.hist-chip.failed{border-color:var(--hist-rust)}
.hist-chip.failed>span{color:var(--hist-rust)}
.hist-node>.hist-chip{position:absolute;top:-15px;left:12px;max-width:calc(100% - 20px);z-index:2;box-shadow:0 2px 6px #503a180c}
.hist-node-loading{position:absolute;top:calc(100% + 11px);left:0;right:0;display:flex;flex-direction:column;gap:7px;color:var(--hist-muted)}
.hist-node-loading>span{height:3px;overflow:hidden;background:var(--hist-line)}
.hist-node-loading i{display:block;width:35%;height:100%;background:var(--hist-green);animation:hist-loading 2.2s ease-in-out infinite}
.hist-node-loading small{font-size:var(--text-xs)}
.hist-hal{position:absolute;top:0;left:0;z-index:4;width:52px;will-change:transform;pointer-events:none}
.hist-globe{position:relative;display:grid;place-items:center;width:52px;height:52px;padding:0;border-radius:50%;background:var(--hist-card);border:1px solid var(--hist-line);box-shadow:0 5px 20px #44321b12;pointer-events:auto}
.hist-globe svg{width:43px;height:43px;fill:none;stroke:var(--hist-green-ink);stroke-width:1;opacity:.9}
.hist-hal.working .hist-globe{animation:hist-float 3.2s ease-in-out infinite}
.hist-hal.working .hist-globe::after{content:'';position:absolute;inset:-4px;border:1px solid transparent;border-top-color:var(--hist-brown);border-radius:50%;animation:hist-orbit 5s linear infinite;pointer-events:none}
.hist-hal-label{display:block;text-align:center;font-size:10px;letter-spacing:1.4px;color:var(--hist-muted);margin-top:6px}
.hist-bubble{position:absolute;left:64px;top:-4px;width:220px;padding:11px 14px;border:1px solid var(--hist-line);border-radius:var(--r-sm);background:var(--hist-card);color:var(--hist-ink);font-size:var(--text-sm);line-height:1.5;box-shadow:0 4px 18px #44321b08;white-space:pre-line}
.hist-bubble::before{content:'';position:absolute;left:-5px;top:24px;width:8px;height:8px;background:var(--hist-card);border:1px solid var(--hist-line);border-top:0;border-right:0;transform:rotate(45deg)}
.hist-hal.to-left .hist-bubble{left:auto;right:64px}
.hist-hal.to-left .hist-bubble::before{left:auto;right:-5px;transform:rotate(225deg)}
.hist-footer{position:absolute;inset:auto 0 0;z-index:6;border-top:1px solid var(--hist-line);background:var(--hist-paper);padding:10px 16px;display:flex;flex-direction:column;gap:10px}
.hist-footer-start{display:flex;flex-direction:column;gap:8px}
.hist-legend{display:flex;align-items:center;gap:12px;font-size:var(--text-xs);color:var(--hist-muted)}
.hist-legend span{display:flex;align-items:center;gap:5px}
.hist-legend i{width:5px;height:5px;border-radius:50%;background:var(--hist-green)}
.hist-legend i.inferred{background:var(--hist-brown)}
.hist-legend i.unknown,.hist-legend i.decision{background:var(--hist-rust)}
.hist-legend i.decision{width:6px;height:6px;border-radius:0;transform:rotate(45deg)}
.hist-hint{display:none;font-size:10px;color:var(--hist-muted)}
.hist-tools{display:flex;align-items:center;justify-content:flex-end;gap:4px;white-space:nowrap}
.hist-tools .hist-text{font-size:var(--text-xs);padding:6px}
.hist-progress{display:none;font-size:10px;color:var(--hist-muted)}
.hist-zoom-label{font:var(--weight-regular) var(--text-xs) var(--font-text);min-width:32px;text-align:center;color:var(--hist-muted)}
.hist-inspector{position:absolute;inset:auto 0 0;z-index:9;max-height:78%;overflow:auto;padding:20px 24px 32px;border-top:1px solid var(--hist-line);background:var(--hist-card);box-shadow:0 -15px 40px var(--hist-shadow);font-size:var(--text-lg)}
.hist-inspector h2{font:var(--weight-medium) var(--text-3xl)/1.25 var(--font-text);letter-spacing:-.6px;color:var(--hist-ink);margin:0 0 18px}
.hist-inspector p{line-height:1.7;margin:18px 0;color:var(--hist-muted)}
.hist-evidence-points{padding-left:17px;font-size:var(--text-base);line-height:1.6;color:var(--hist-muted)}
.hist-evidence-points li{margin:10px 0}
.hist-artefacts{display:flex;flex-direction:column;gap:10px;margin-top:28px}
.hist-artefacts details{border-bottom:1px solid var(--hist-line)}
.hist-artefacts summary{cursor:pointer;padding:14px 0;font-size:var(--text-md);color:var(--hist-green-ink)}
.hist-artefacts pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--text-xs);line-height:1.6;padding:14px;margin:0 0 12px;background:var(--hist-paper);border:1px solid var(--hist-line);border-radius:var(--r-xs);color:var(--hist-ink);max-height:450px;overflow:auto}
.hist-inspector-meta{border-top:1px solid var(--hist-line);padding-top:18px;margin-top:28px;font-size:10px;color:var(--hist-muted)}
.hist-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--equa-brand);border-radius:var(--r-xs);background:var(--equa-brand);color:var(--on-accent);font-size:var(--text-md);text-decoration:none}
.hist-button.secondary{background:transparent;color:var(--hist-ink);border-color:var(--hist-line)}
.hist-decision-panel{border:1px solid var(--hist-brown);background:var(--hist-assessment);border-radius:var(--r-xs);padding:18px;margin:24px 0}
.hist-decision-panel p{font-size:var(--text-md);line-height:1.65}
.hist-decision-panel strong{color:var(--hist-ink);font-weight:var(--weight-medium)}
.hist-decision-panel small{display:block;margin-top:10px;font-size:var(--text-xs);color:var(--hist-muted)}
.hist-choice-buttons{display:flex;gap:8px}
.hist-loading{position:absolute;inset:0;z-index:11;display:flex;align-items:center;justify-content:center;gap:18px;background:var(--hist-paper);font-size:var(--text-base);color:var(--hist-muted)}
.hist-loading .hist-mark{width:44px;height:54px;gap:5px}
.hist-loading .hist-mark i{width:11px;height:34px;animation:hist-bars 1.6s ease-in-out infinite}
.hist-loading .hist-mark i:nth-child(2){height:39px;animation-delay:.17s}
.hist-loading .hist-mark i:nth-child(3){height:44px;animation-delay:.34s}
/* cfr feedback (2026-10-10): a full-screen loading moment — the Historian mark bounces and shivers while a story opens
   (historian-loader.js mirrors .hist-loading here) and while the app starts (#hlBoot). Below the app bar so navigation
   stays usable; it fades in after 150 ms so a fast open never flashes. */
.hl-overlay{position:fixed;inset:var(--hs-shell-height,52px) 0 0;z-index:var(--z-overlay);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:var(--hist-paper,#f6f3ec);color:var(--hist-muted,#6b665d);font:var(--weight-regular) var(--text-base)/1.4 var(--font-text);animation:hist-loader-in .2s ease .15s both}
.hl-overlay[hidden]{display:none}
.hl-overlay .hist-mark,.hl-boot .hist-mark{width:72px;height:84px;gap:8px;animation:none}
.hl-overlay .hist-mark i,.hl-boot .hist-mark i{width:17px;height:52px;animation:hist-wave 2s ease-in-out infinite}
.hl-overlay .hist-mark i:nth-child(2),.hl-boot .hist-mark i:nth-child(2){height:62px;animation-delay:.25s}
.hl-overlay .hist-mark i:nth-child(3),.hl-boot .hist-mark i:nth-child(3){height:72px;animation-delay:.5s}
/* cfr 2026-10-11: a calm loader — the three lines rise and fall slowly in turn, nothing shakes */
@keyframes hist-wave{0%,100%{transform:translateY(7px) skewY(-19deg)}50%{transform:translateY(-7px) skewY(-19deg)}}
/* Startup: the whole screen until the first page has rendered (boot.js removes it); it fades by itself after 20 s. */
.hl-boot{position:fixed;inset:0;z-index:var(--z-boot);pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:var(--hist-paper,#f6f3ec);color:var(--hist-muted,#6b665d);font:var(--weight-regular) var(--text-base)/1.4 var(--font-text);animation:hist-loader-out .3s ease 20s forwards}
.hl-boot strong{font:var(--weight-regular) 34px/1 var(--font-text);color:var(--hist-ink,#302e2b)}
.hl-boot strong span{color:var(--hist-rust,#a0522d)}
.hl-quote{width:min(480px,calc(100% - 40px));margin:20px 0 0;text-align:center;color:var(--hist-ink);font:var(--weight-regular) var(--text-lg)/1.5 var(--font-text)}
.hl-quote small{display:block;color:var(--hist-muted);font-size:var(--text-xs);letter-spacing:.5px}
.hl-quote blockquote{margin:9px 0 7px;font:var(--weight-regular) 22px/1.35 var(--font-text)}
.hl-quote figcaption{font-size:var(--text-sm);color:var(--hist-muted)}
.hl-quote a{color:inherit;text-decoration:none;pointer-events:auto}
.hl-quote a:hover{text-decoration:underline}
@keyframes hist-loader-in{from{opacity:0}to{opacity:1}}
@keyframes hist-loader-out{to{opacity:0;visibility:hidden}}
@media (prefers-reduced-motion:reduce){.hl-overlay .hist-mark,.hl-boot .hist-mark{animation:none}.hl-overlay .hist-mark i,.hl-boot .hist-mark i{animation-duration:4s}}
.hist-world-filters{position:absolute;top:218px;left:24px;right:24px;z-index:5;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.hist-search{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--hist-line);color:var(--hist-muted)}
.hist-search input{min-height:44px;width:180px;border:0;background:transparent;color:var(--hist-ink);outline:0;font-size:var(--text-lg);box-shadow:none;padding:8px 0}
.hist-filter-tabs{display:flex;gap:4px}
.hist-filter-tabs button{min-height:44px;padding:8px 11px;border:1px solid transparent;border-radius:var(--r-xs);background:transparent;color:var(--hist-muted);font-size:var(--text-xs);white-space:nowrap}
.hist-filter-tabs button[aria-pressed="true"]{border-color:var(--hist-line);color:var(--hist-ink);background:var(--hist-chip)}
.hist-app.is-world .hist-stage{top:328px}
.hist-cluster{position:absolute;pointer-events:none}
/* Title and count take full rows; the four 44px group controls wrap in rows beneath so the heading stays inside the 130px the map reserves above the first tile row. */
.hist-cluster-heading{position:relative;z-index:2;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;border-bottom:1px solid var(--hist-line);padding:12px 0 18px;margin:0 20px}
.hist-cluster-heading>span,.hist-cluster-heading>small{flex:0 0 100%}
.hist-cluster-heading>span{font:var(--weight-regular) 38px/1.2 var(--font-text);text-transform:capitalize;letter-spacing:-.8px}
.hist-cluster-heading small{font-size:var(--text-sm);color:var(--hist-muted)}
.hist-incident{position:absolute;width:153px;min-height:82px;padding:10px;text-align:left;display:flex;flex-direction:column;gap:5px;border:1px solid color-mix(in srgb,var(--hist-brown) 40%,transparent);border-radius:var(--r-xs);background:color-mix(in srgb,var(--hist-card) 82%,transparent);color:var(--hist-ink);box-shadow:0 2px 10px var(--hist-shadow)}
.hist-incident:hover,.hist-incident:focus-visible{background:var(--hist-card);border-color:var(--hist-rust);box-shadow:0 3px 24px var(--hist-shadow)}
.hist-world-name{display:flex;align-items:center;gap:6px;font:var(--weight-medium) var(--text-xs) var(--font-text);color:var(--hist-muted)}
.hist-incident strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:var(--weight-medium) var(--text-sm)/1.45 var(--font-text);letter-spacing:-.15px}
.hist-world-status{font-size:9px;color:var(--hist-muted)}
/* Spec 3 A3: vulnerability findings are cards on the Map, tagged so they never read as incidents. */
.hist-incident.is-vulnerability{border-style:dashed;border-color:color-mix(in srgb,var(--hist-rust) 55%,transparent)}
.hist-incident .hist-world-devices{font-size:9px;color:var(--hist-ink);overflow-wrap:anywhere}
.hist-incident .hist-tag{align-self:flex-start;padding:1px 6px;border:1px solid color-mix(in srgb,var(--hist-rust) 60%,transparent);border-radius:var(--r-pill);color:var(--hist-rust);font:var(--weight-strong) 9px/1.4 var(--font-text);letter-spacing:.04em;text-transform:uppercase}
.hist-incident.needs-decision{border-top-color:var(--hist-rust)}
.hist-empty{position:fixed;left:24px;right:24px;top:44%;max-width:600px;margin:auto;text-align:center;color:var(--hist-muted);font-size:var(--text-lg)}
.hist-empty h2{font:var(--weight-regular) 35px var(--font-text);color:var(--hist-ink)}
.hist-empty p{margin:16px 0 24px}
.hist-empty a{margin:8px}
@media(min-width:700px){
 .hist-header{height:80px;padding:12px 36px}.hist-header-start{gap:20px}.hist-brand{font-size:31px}.hist-case-name{display:block;font-size:var(--text-sm);color:var(--hist-muted)}.hist-header [data-hist-world],.hist-header .hist-desktop{display:inline-flex}.hist-header-end{gap:14px}
 .hist-intro{top:116px;left:48px;right:48px}.hist-intro h1{font-size:36px;letter-spacing:-1.2px;margin-bottom:12px}.hist-eyebrow{font-size:var(--text-xs)}.hist-subtitle{gap:24px}.hist-stage{inset:247px 0 94px}.hist-intro h1{max-width:950px}
 .hist-node-summary{font-size:var(--text-md);line-height:1.6}.hist-footer{padding:15px 36px;flex-direction:row;justify-content:space-between;align-items:center;gap:16px}.hist-hint{display:block}.hist-progress{display:inline;font-size:10px;margin:0 10px}.hist-tools .hist-text{font-size:var(--text-sm)}.hist-legend{font-size:var(--text-xs);gap:16px}.hist-footer-start{gap:7px}
 .hist-world-filters{top:240px;left:48px;right:48px;flex-direction:row;align-items:center;justify-content:space-between}.hist-search input{font-size:var(--text-md);width:200px}.hist-app.is-world .hist-stage{top:305px}.hist-filter-tabs button{font-size:var(--text-sm)}
}
@media(min-width:1000px){.hist-inspector{inset:80px 0 0 auto;width:390px;max-height:none;border-top:0;border-left:1px solid var(--hist-line);box-shadow:-20px 0 45px var(--hist-shadow);padding:28px 27px}.hist-inspector p{font-size:var(--text-base)}.hist-node-summary{font-size:var(--text-md)}}
@media(min-width:700px){.hist-agent-result-text{font-size:var(--text-md);line-height:1.6}}
@media(min-width:1280px){.hist-intro{left:64px;top:122px}.hist-intro h1{font-size:42px}.hist-world-filters{left:64px}.hist-header{padding-left:48px;padding-right:48px}.hist-footer{padding-left:48px;padding-right:48px}}
@keyframes hist-branch{from{stroke-dashoffset:1000}to{stroke-dashoffset:0}}
@keyframes hist-fade{from{opacity:0}to{opacity:1}}
@keyframes hist-loading{0%,100%{transform:translateX(-100%)}50%{transform:translateX(275%)}}
@keyframes hist-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes hist-orbit{to{transform:rotate(360deg)}}
@keyframes hist-bars{0%,100%{transform:translateY(5px) skewY(-19deg)}50%{transform:translateY(-8px) skewY(-19deg)}}
@media(prefers-reduced-motion:reduce){.hist-app *,.hist-app *::before,.hist-app *::after{animation:none!important;transition:none!important}.hist-edge-reveal{stroke-dashoffset:0}.hist-node.arriving{opacity:1}}
.hist-app .hist-brand{font-family:var(--font-text)}
.hist-role{display:none}
/* Position is driven by the same damped motion as the camera, including rest. */
.hist-hal.quiet .hist-bubble{opacity:0;transition:opacity .25s}
.hist-hal.quiet:focus-within .hist-bubble,.hist-hal.quiet:hover .hist-bubble{opacity:1}
@media(min-width:1000px){.hist-role{display:inline-flex;font-size:var(--text-xs)}.hist-header-end{gap:10px}}
.hist-mode .ctx-menu{z-index:var(--z-bar);background:var(--hist-card);color:var(--hist-ink)}
.hist-mode .overlay,.hist-mode .sheet-overlay,.hist-mode .copilot-drawer{z-index:var(--z-overlay)}
.hist-world.empty{transform:none!important;width:100%!important;height:100%!important}
.hist-empty{position:absolute;top:35%}
.hist-app.is-world .hist-world{animation:hist-fade .7s ease both}
.hist-node strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
/* Open the card itself, keeping its agents and evidence in the tree. */
.hist-node{width:var(--width,236px);transition:left .4s ease,top .4s ease,width .35s ease}
.hist-node-agents{display:flex;flex-wrap:wrap;gap:4px;font-size:10px;color:var(--hist-green-ink)}
.hist-node-agents>span{padding:3px 6px;background:color-mix(in srgb,var(--hist-green) 8%,var(--hist-card));border:1px solid color-mix(in srgb,var(--hist-green) 25%,var(--hist-line));border-radius:var(--r-xs)}
.hist-node-agents .working::before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--hist-green);margin-right:5px;animation:hist-fade 1.5s alternate infinite}
.hist-node.expanded{height:var(--height,580px);display:flex;flex-direction:column;z-index:5;box-shadow:0 12px 45px var(--hist-shadow)}
.hist-stage:has(.hist-node.expanded) .hist-hal.quiet{visibility:hidden}
.hist-node.expanded .hist-node-open{min-height:0;flex:none;padding-right:54px;gap:8px}
.hist-node.expanded .hist-node-open strong{-webkit-line-clamp:3;font-size:var(--text-2xl)}
.hist-node.expanded .hist-node-summary,.hist-node.expanded .hist-node-list,.hist-node.expanded .hist-node-list-more,.hist-node.expanded .hist-node-foot{display:none}
.hist-node-collapse{position:absolute;right:8px;top:8px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:var(--r-xs);color:var(--hist-muted);background:transparent}
.hist-node-collapse:hover{background:var(--hist-chip)}
.hist-node-context{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:0 20px 24px;border-top:1px solid var(--hist-line);font-size:var(--text-lg);line-height:1.65;cursor:auto;user-select:text}
.hist-node-context p{white-space:pre-wrap;overflow-wrap:anywhere;margin:16px 0;color:var(--hist-muted)}
.hist-context-section{margin-top:24px;padding-top:18px;border-top:1px solid var(--hist-line)}
.hist-script-output{min-width:0;max-width:100%;margin-top:8px}
.hist-script-output pre{box-sizing:border-box;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font:var(--text-md)/1.6 var(--font-mono);margin:0;padding:8px;border:1px solid var(--hist-line);background:var(--hist-card);color:var(--hist-ink)}
.hist-script-output>.hist-script-preview{max-height:120px;overflow:hidden}
.hist-script-output details pre{max-height:480px;overflow:auto}
.hist-script-output summary{min-height:44px;align-content:center;cursor:pointer}
.hist-script-output summary span:last-child,.hist-script-output details[open] summary span:first-child{display:none}
.hist-script-output details[open] summary span:last-child{display:inline}
.hist-script-output:has(details[open])>.hist-script-preview{display:none}
.hist-context-section h3{margin:0 0 12px;font:var(--weight-medium) var(--text-md)/1.5 var(--font-text);color:var(--hist-ink)}
.hist-node-context dl{margin:0}.hist-node-context dl>div{margin-bottom:13px}
.hist-node-context dt{font-size:var(--text-xs);line-height:1.5;color:var(--hist-muted);text-transform:capitalize;margin-bottom:4px}
.hist-node-context dd{margin:0;color:var(--hist-ink);overflow-wrap:anywhere;white-space:pre-wrap}
.hist-node-context .hist-evidence-points{font-size:var(--text-lg)}
.hist-agent-context{border-bottom:1px solid var(--hist-line)}
.hist-agent-context summary{cursor:pointer;display:flex;align-items:center;gap:8px;min-height:44px;color:var(--hist-green-ink)}
.hist-agent-context summary::before{content:'+';font:var(--weight-regular) var(--text-xl) var(--font-text)}
.hist-agent-context[open] summary::before{content:'−'}
.hist-agent-context summary small{margin-left:auto;font-size:10px;color:var(--hist-muted)}
.hist-agent-finding{padding:10px 0 14px}.hist-agent-finding+.hist-agent-finding{border-top:1px solid var(--hist-line)}
.hist-agent-finding>strong{font-size:var(--text-sm)!important;text-transform:capitalize;display:block!important}
.hist-agent-finding .hist-agent-choice{color:var(--hist-ink);font-weight:var(--weight-medium);margin-bottom:8px}
.hist-node-context .hist-artefacts{margin-top:24px}.hist-node-context .hist-artefacts summary{min-height:44px}
.hist-node-context .hist-decision-panel{margin-top:16px}.hist-node-context .hist-decision-panel p{font-size:var(--text-lg)}
@media(min-width:700px){.hist-node-context{font-size:var(--text-base)}.hist-node-context .hist-evidence-points,.hist-node-context .hist-decision-panel p{font-size:var(--text-base)}}
/* A quiet index makes the complete record reachable on a large tree. */
.hist-story-jump{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:44px;padding:0;border:0;background:transparent;color:var(--hist-green-ink);font-size:var(--text-sm);text-align:left}
.hist-story-jump small{font-size:10px;color:var(--hist-muted)}
.hist-index{position:absolute;left:16px;right:16px;bottom:132px;z-index:8;display:flex;flex-direction:column;max-height:620px;border:1px solid var(--hist-line);border-radius:var(--r-xs);background:var(--hist-card);box-shadow:0 14px 45px var(--hist-shadow);font-size:var(--text-lg);color:var(--hist-ink)}
.hist-index-head{display:flex;align-items:center;justify-content:space-between;padding:10px 14px 0}
.hist-index-head h2{margin:0;font:var(--weight-regular) var(--text-title) var(--font-text);letter-spacing:-.4px}
.hist-index-search{display:flex;align-items:center;gap:8px;margin:0 18px;border-bottom:1px solid var(--hist-line);color:var(--hist-muted)}
.hist-index-search input{min-width:0;min-height:44px;flex:1;padding:9px 0;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--hist-ink);font-size:var(--text-lg);outline:none}
.hist-index-tabs{display:flex;gap:8px;padding:8px 14px;border-bottom:1px solid var(--hist-line)}
.hist-index-tabs button{min-height:44px;padding:8px 12px;border:1px solid transparent;border-radius:var(--r-xs);background:transparent;color:var(--hist-muted);font-size:var(--text-sm)}
.hist-index-tabs button[aria-pressed="true"]{border-color:var(--hist-line);background:var(--hist-chip);color:var(--hist-ink)}
.hist-index-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:0 18px 20px}
.hist-index-body h3{display:flex;align-items:center;gap:8px;margin:24px 0 10px;font-size:10px;font-weight:var(--weight-medium);letter-spacing:1px;text-transform:uppercase;color:var(--hist-muted)}
.hist-index-body h3 small{margin-left:auto;letter-spacing:0}
.hist-index-card{display:flex;flex-direction:column;gap:4px;min-height:44px;width:100%;padding:12px 0 12px 12px;border:0;border-bottom:1px solid var(--hist-line);border-left:2px solid var(--hist-green);background:transparent;color:var(--hist-ink);text-align:left}
.hist-index-card.inferred{border-left-color:var(--hist-brown)}
.hist-index-card.unknown,.hist-index-card.decision{border-left-color:var(--hist-rust)}
.hist-index-card:hover,.hist-index-card:focus-visible{background:var(--hist-chip)}
.hist-index-card>span{font-size:10px;letter-spacing:.6px;text-transform:uppercase;color:var(--hist-muted)}
.hist-index-card strong{font-size:var(--text-lg);font-weight:var(--weight-medium);line-height:1.5;overflow-wrap:anywhere}
.hist-index-card small{font-size:var(--text-xs);line-height:1.5;color:var(--hist-muted)}
.hist-index-note,.hist-index-agent p{font-size:var(--text-lg);line-height:1.7;color:var(--hist-muted);margin:14px 0}
.hist-finding{padding-bottom:18px;border-bottom:1px solid var(--hist-line)}
.hist-finding p{margin:0 0 10px;font-size:var(--text-lg);line-height:1.7;color:var(--hist-muted)}
.hist-finding>small{display:block;margin:0 0 14px;font-size:var(--text-sm);line-height:1.6;color:var(--hist-muted)}
.hist-finding h3{align-items:flex-start;line-height:1.6}
.hist-finding h3 small{text-align:right;max-width:130px;text-transform:none;white-space:normal}
.hist-finding.gap h3 small{color:var(--hist-rust)}
@media(min-width:700px){.hist-finding p{font-size:var(--text-base)}}
.hist-index-agent{border-bottom:1px solid var(--hist-line)}
.hist-index-agent summary{display:flex;align-items:center;gap:8px;min-height:52px;padding:6px 0;cursor:pointer}
.hist-index-agent summary::before{content:'+';font-size:var(--text-xl);color:var(--hist-green-ink)}
.hist-index-agent[open] summary::before{content:'−'}
.hist-index-agent summary strong{font-size:var(--text-base);font-weight:var(--weight-medium)}
.hist-index-agent summary small{margin-left:auto;max-width:100px;font-size:10px;line-height:1.5;color:var(--hist-muted);text-align:right}
.hist-index-agent .hist-index-card{margin-bottom:8px}
@media(min-width:700px){.hist-story-jump{margin-left:auto}.hist-index{left:36px;right:auto;width:360px;bottom:100px}.hist-index-card strong{font-size:var(--text-base)}.hist-index-note,.hist-index-agent p{font-size:var(--text-base)}}

/* HAL's attention is a faint, local wash; content never fades or blurs. */
.hist-node::after{content:'';position:absolute;inset:0;border-radius:inherit;background:var(--hist-card);opacity:0;pointer-events:none;transition:opacity .24s ease;z-index:6}
.hist-node.hal-hover::after{opacity:.18}
.hist-vendor-icon{position:absolute;top:13px;right:14px;width:24px;height:24px;display:grid;place-items:center;pointer-events:auto}
.hist-vendor-mark{display:block;width:22px;height:22px;background:var(--vendor-icon);mask:var(--vendor-image) center/contain no-repeat;-webkit-mask:var(--vendor-image) center/contain no-repeat}
.hist-vendor-mark.full-color{background:var(--vendor-image) center/contain no-repeat;mask:none;-webkit-mask:none}
.hist-vendor-initials{display:grid;place-items:center;width:23px;height:23px;border:1px solid var(--hist-line);border-radius:50%;font-size:10px;font-weight:var(--weight-strong);color:var(--hist-muted);background:var(--hist-card)}
.hist-node:has(>.hist-vendor-icon) .hist-node-label{padding-right:30px}
.hist-node.expanded>.hist-vendor-icon{right:58px;top:17px}
.hist-view-switch{pointer-events:auto;display:flex;align-items:center;gap:3px;margin-top:12px}
.hist-view-switch button{min-height:44px;padding:7px 14px;border:1px solid transparent;border-radius:var(--r-xs);background:transparent;color:var(--hist-muted);font-size:var(--text-md)}
.hist-view-switch button[aria-pressed="true"]{color:var(--hist-ink);background:var(--hist-chip);border-color:var(--hist-line)}
/* The three book-colour strokes identify a specialist; motion means work. */
.hist-agent-workers{position:absolute;left:0;top:calc(100% + 6px);display:grid;grid-template-columns:repeat(var(--hist-workers,4),minmax(0,1fr));gap:3px;width:100%;color:var(--hist-muted)}
.hist-agent-worker{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;min-width:0;min-height:44px;padding:4px 1px 0;border:0;border-radius:var(--r-xs);background:transparent;color:var(--hist-muted)}
.hist-agent-worker .hist-mark{width:22px;height:22px;gap:3px;flex:none}
.hist-agent-worker .hist-mark i{width:5px;height:16px;transform:skewY(-19deg);transform-origin:center}
.hist-agent-worker .hist-mark i:nth-child(2){height:18px}
.hist-agent-worker .hist-mark i:nth-child(3){height:20px}
.hist-agent-worker.spinning .hist-mark i{animation:hist-agent-wave 1.6s ease-in-out infinite}
.hist-agent-worker.spinning .hist-mark i:nth-child(2){animation-delay:.16s}
.hist-agent-worker.spinning .hist-mark i:nth-child(3){animation-delay:.32s}
.hist-agent-worker.requested .hist-mark i{animation-duration:2.4s}
.hist-agent-name{display:block;width:100%;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--text-xs);line-height:1.3;text-align:center;overflow-wrap:anywhere}
.hist-agent-worker:hover,.hist-agent-worker:focus-visible{background:var(--hist-chip);color:var(--hist-ink)}
.hist-agent-workers>small{grid-column:1/-1;font-size:10px;line-height:1.4;color:var(--hist-muted)}
.hist-node:has(.hist-agent-workers) .hist-node-loading{top:calc(100% + 110px)}
@keyframes hist-agent-wave{0%,100%{transform:translateY(3px) skewY(-19deg)}50%{transform:translateY(-4px) skewY(-19deg)}}
.hist-node.vendor-microsoft,.hist-node.vendor-trendmicro,.hist-node.vendor-splunk{background:var(--hist-card);border-color:var(--hist-line);border-top:3px solid var(--vendor-accent)}
.hist-node[class*="vendor-"]::before{background:var(--vendor-accent)}
.hist-node[class*="vendor-"]>.hist-chip{border-color:var(--vendor-accent);color:var(--hist-ink)}
.hist-node[class*="vendor-"] .hist-node-agents{color:var(--hist-ink)}
.hist-node[class*="vendor-"] .hist-node-agents>span{background:transparent;border-color:var(--hist-line)}
.hist-call-toggle{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:44px;padding:10px 14px;border:0;border-top:1px solid var(--hist-line);background:transparent;color:var(--hist-ink);font-size:var(--text-sm)}
.hist-call-toggle:hover{background:color-mix(in srgb,var(--vendor-accent,var(--hist-brown)) 8%,var(--hist-card))}
.hist-tool-base{stroke:color-mix(in srgb,var(--hist-card) 70%,var(--hist-line));stroke-width:3}
.hist-edge.hist-tool-stripe{stroke:var(--tool-color,var(--hist-green));stroke-width:2;stroke-dasharray:5 5}
.hist-time-axis{position:absolute;left:0;top:104px;height:1px;background:var(--hist-line);pointer-events:none}
.hist-time-tick{position:absolute;top:34px;transform:translateX(-50%);text-align:center;pointer-events:none;color:var(--hist-ink);font:var(--weight-regular) var(--text-3xl)/1.3 var(--font-text)}
.hist-time-tick small{display:block;margin-top:4px;font:var(--weight-regular) var(--text-xs) var(--font-text);color:var(--hist-muted)}
.hist-time-tick i{display:block;position:absolute;top:67px;left:50%;width:5px;height:5px;border-radius:50%;background:var(--hist-brown)}
/* cfr feedback: the timeline is period bands (Today, Yesterday, …) of dense, equal cards. */
.hist-app.is-timeline .hist-incident{width:212px;height:116px;min-height:0;padding:10px 12px;gap:5px;overflow:hidden}
.hist-app.is-timeline .hist-incident strong{-webkit-line-clamp:2;font-size:var(--text-md)}
.hist-period{position:absolute;pointer-events:none}
.hist-period-heading{display:flex;align-items:baseline;gap:12px;border-bottom:1px solid var(--hist-line);padding:10px 0 8px}
.hist-period-heading h3{margin:0;font:var(--weight-regular) var(--text-3xl)/1.2 var(--font-text);color:var(--hist-ink)}
.hist-period-heading small{font-size:var(--text-sm);color:var(--hist-muted)}
.hist-incident-time,.hist-incident-group{font-size:10px;color:var(--hist-muted)}
.hist-incident-time{line-height:1.35}
.hist-world-category,.hist-incident-time-icon{display:inline-flex;align-items:center;flex:none}
.hist-incident-time-icon{margin-right:5px;vertical-align:-2px}
@media(min-width:700px){.hist-view-switch{position:absolute;right:0;top:-10px;margin:0}.hist-view-switch button{font-size:var(--text-sm)}}
/* Integration cards own their readable palette; appearance themes surround them. */
.hist-node.vendor-microsoft{--vendor-accent:var(--hist-custom-microsoft,#0078d4);--hist-paper:#eef6fc;--hist-card:#ffffff;--hist-ink:#193750;--hist-muted:#48637a;--hist-line:#b8d6ed;--hist-chip:#ffffff;--hist-assessment:#eef6fc;--hist-green:var(--vendor-accent);--hist-green-ink:var(--vendor-accent);--hist-people:#5b4bb7;--hist-asset:#286a70;--hist-rust:#b9390e;--hist-brown:#80664a}
.hist-node.vendor-splunk{--vendor-accent:var(--hist-custom-splunk,#65c179);--hist-card:#171d1a;--hist-ink:#f0f7f0;--hist-muted:#b8cbbd;--hist-line:#42694a;--hist-chip:#171d1a;--hist-assessment:#101713;--hist-green:var(--vendor-accent);--hist-green-ink:var(--vendor-accent);--hist-people:#b7a9f7;--hist-asset:#84c3c8}
.hist-node.vendor-trendmicro{--vendor-accent:var(--hist-custom-trendmicro,#d71920);--hist-paper:#fcf0f1;--hist-card:#ffffff;--hist-ink:#292426;--hist-muted:#65575a;--hist-line:#ebc2c4;--hist-chip:#ffffff;--hist-assessment:#fcf0f1;--hist-green:var(--vendor-accent);--hist-green-ink:var(--vendor-accent);--hist-people:#5b4bb7;--hist-asset:#286a70;--hist-rust:#b9390e;--hist-brown:#80664a}
.hist-agent-more{font-size:var(--text-sm);color:var(--hist-muted)}
.hist-app.is-timeline .hist-edge:not(.hist-tool-base):not(.hist-tool-stripe){display:none}
.hist-node.vendor-splunk{--hist-paper:#101713;--hist-rust:#f0a080;--hist-brown:#90a18d}

/* The story is a canvas, with quiet controls floating over it. */
.hist-app>.hist-view-switch{position:absolute;top:84px;right:16px;z-index:7;margin:0;background:var(--hist-paper);border:1px solid var(--hist-line);border-radius:var(--r-xs)}
.hist-app.is-world>.hist-view-switch{top:92px}
.hist-app.is-canvas-focus .hist-stage{inset:0;top:0!important;bottom:0}
.hist-app.is-canvas-focus .hist-header{height:68px;padding:12px;pointer-events:none;background:transparent;border:0}
.hist-app.is-canvas-focus .hist-header-start,.hist-app.is-canvas-focus .hist-header-end{pointer-events:auto;gap:4px;padding:1px 5px;border:1px solid var(--hist-line);border-radius:var(--r-xs);background:var(--hist-paper)}
.hist-app.is-canvas-focus .hist-brand{font-size:var(--text-3xl)}
.hist-app.is-canvas-focus .hist-header .hist-role,.hist-app.is-canvas-focus .hist-header .hist-desktop{display:none}
.hist-app.is-canvas-focus .hist-intro{top:78px;left:12px;right:12px;z-index:8;padding:18px 22px;background:var(--hist-card);border:1px solid var(--hist-line);border-radius:var(--r-xs);box-shadow:0 8px 24px var(--hist-shadow);pointer-events:auto}
.hist-app.is-canvas-focus .hist-intro h1{font-size:var(--text-2xl);max-width:620px;letter-spacing:-.4px}
.hist-app.is-canvas-focus .hist-footer{height:auto;min-height:0;inset:auto 12px 12px;padding:0;border:0;background:transparent;pointer-events:none;gap:8px}
.hist-app.is-canvas-focus .hist-footer-start{display:none}
.hist-app.is-canvas-focus .hist-tools{pointer-events:auto;flex-wrap:wrap;justify-content:center;gap:0;padding:4px;border:1px solid var(--hist-line);border-radius:var(--r-xs);background:var(--hist-paper);max-width:100%}
.hist-app.is-canvas-focus .hist-index{bottom:100px}
.hist-app.is-fullscreen .hist-header-start,.hist-app.is-fullscreen .hist-header-end>[data-hist-detail],.hist-app.is-fullscreen .hist-header-end>[data-hist-menu]{display:none}
.hist-app.is-fullscreen .hist-header{justify-content:flex-end}
.hist-app.is-fullscreen .hist-tools>[data-hist-replay],.hist-app.is-fullscreen .hist-progress{display:none}
@media(min-width:700px){
 .hist-app>.hist-view-switch,.hist-app.is-world>.hist-view-switch{top:96px;right:28px}
 .hist-app.is-canvas-focus .hist-header{padding:12px 24px}
 .hist-app.is-canvas-focus .hist-header-start{gap:12px}
 .hist-app.is-canvas-focus .hist-intro{left:24px;right:auto;max-width:720px}
 .hist-app.is-canvas-focus .hist-footer{left:24px;right:24px;bottom:18px;justify-content:space-between}
 .hist-app.is-canvas-focus .hist-footer-start{display:block;padding:6px 12px;border:1px solid var(--hist-line);border-radius:var(--r-xs);background:var(--hist-paper);pointer-events:auto}
 .hist-app.is-canvas-focus .hist-legend{gap:14px;margin:0;font-size:10px}
 .hist-app.is-canvas-focus .hist-hint{display:none}
 .hist-app.is-canvas-focus .hist-progress{display:none}
 .hist-app.is-canvas-focus .hist-index{bottom:84px}
 .hist-app.is-fullscreen .hist-footer-start{display:none}
 .hist-app.is-fullscreen .hist-footer{justify-content:flex-end}
}
@media(prefers-reduced-motion:reduce){.hist-agent-worker.spinning .hist-mark i{animation:none}}

/* The final branch is a readable handoff, using the recorded assessment. */
.hist-node.is-conclusion{height:var(--conclusion-height,660px);min-height:0;display:flex;flex-direction:column;border-top:3px solid var(--hist-green);box-shadow:0 8px 32px var(--hist-shadow);cursor:auto}
.hist-node.is-conclusion.unknown{border-top-color:var(--hist-rust)}
.hist-node.is-conclusion .hist-conclusion-open{min-height:0;flex:none;padding:22px 24px 18px;gap:14px}
.hist-conclusion-kicker{display:flex;align-items:center;gap:12px;font-size:10px;letter-spacing:.8px;text-transform:uppercase;color:var(--hist-muted)}
.hist-conclusion-kicker .hist-mark{width:21px;height:25px;gap:3px;flex:none}
.hist-conclusion-kicker .hist-mark i{width:5px;height:19px}
.hist-conclusion-kicker .hist-mark i:nth-child(2){height:22px}
.hist-conclusion-kicker .hist-mark i:nth-child(3){height:25px}
.hist-node.is-conclusion .hist-conclusion-open>strong{display:block;overflow:visible;font:var(--weight-strong) 26px/1.2 var(--font-text);letter-spacing:-.5px}
.hist-conclusion-meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:var(--text-xs);line-height:1.5;color:var(--hist-muted)}
.hist-card-identity{display:flex;flex-wrap:wrap;align-items:center;gap:5px;min-width:0;margin:5px 0 3px;font:var(--weight-medium) var(--text-xs)/1.25 var(--font-text);letter-spacing:0}
.hist-card-number{flex:0 0 auto;color:var(--hist-muted);font-variant-numeric:tabular-nums;padding:4px 1px;margin-right:3px}
.hist-entity-pill{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%;padding:5px 8px;background:var(--hist-chip);color:var(--hist-ink)}
.hist-entity-pill>svg{flex:none;color:var(--hist-green-ink)}
.hist-entity-pill[data-entity-kind=user]>svg{color:var(--hist-rust)}
.hist-entity-pill>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hist-entity-more{color:var(--hist-muted);padding:4px}
.hist-node.is-conclusion .hist-card-identity{margin:0;font-size:var(--text-sm)}
.hist-conclusion-meta>span{padding:4px 8px;border-radius:var(--r-xs);background:var(--hist-card)}
.hist-conclusion-body{flex:none;min-height:0;overflow:visible;user-select:text;padding:0 24px 24px;font-size:var(--text-lg);line-height:1.65}
.hist-conclusion-body:focus-visible{outline:2px solid var(--focus-color);outline-offset:-2px}
.hist-conclusion-meaning{margin:0 0 24px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--hist-ink)}
.hist-conclusion-advice{border-top:1px solid var(--hist-line);padding-top:20px}
.hist-conclusion-advice h3{margin:8px 0 12px;font:var(--weight-medium) var(--text-2xl)/1.3 var(--font-text);letter-spacing:-.3px;overflow-wrap:anywhere}
.hist-conclusion-advice p{margin:8px 0 16px;color:var(--hist-muted);overflow-wrap:anywhere}
.hist-conclusion-advice ol{padding-left:22px;margin:16px 0 0}
.hist-conclusion-advice li{padding-left:6px;margin:12px 0;overflow-wrap:anywhere}
.hist-step-task{display:inline-flex;align-items:center;min-height:28px;padding:3px 8px;margin:2px 0;border:1px solid var(--hist-line);border-radius:var(--r-xs);background:var(--hist-chip);color:var(--hist-green-ink);font:var(--weight-medium) var(--text-sm)/1.3 var(--font-text);cursor:pointer;vertical-align:middle}
.hist-step-task:hover,.hist-step-task:focus-visible{border-color:var(--hist-green);outline:2px solid var(--focus-color);outline-offset:2px}
@media(pointer:coarse){.hist-step-task{min-height:44px}}
.hist-conclusion-advice li::marker{font-size:var(--text-sm);color:var(--hist-green-ink)}
.hist-conclusion-advice li p{margin:3px 0;font-size:var(--text-base)}
.hist-conclusion-state{display:flex;flex-wrap:wrap;gap:6px 16px;border-top:1px solid var(--hist-line);padding-top:16px;margin-top:24px;font-size:var(--text-xs);line-height:1.5;color:var(--hist-muted)}
.hist-conclusion-pending{color:var(--hist-rust)}
.hist-conclusion-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:12px 24px;border-top:1px solid var(--hist-line)}
.hist-conclusion-footer .hist-text{min-height:44px;font-size:var(--text-sm)}
.hist-node.is-conclusion.expanded .hist-conclusion-open{padding-right:54px}
@media(min-width:700px){
 .hist-node.is-conclusion .hist-conclusion-open{padding:28px 32px 22px;gap:16px}
 .hist-node.is-conclusion .hist-conclusion-open>strong{font-size:30px;max-width:28ch}
 .hist-conclusion-body{padding:0 32px 28px}
 .hist-conclusion-advice h3{font-size:var(--text-3xl)}
 .hist-conclusion-footer{padding:14px 32px}
}

/* WP-40 panel bodies. Geometry, titlebars and close/pin belong to the host. */
.hp-story-root.hist-app{position:relative;inset:auto;width:100%;height:100%;min-height:260px;display:grid;grid-template-rows:auto minmax(200px,1fr) auto;overflow:auto;background:var(--hist-paper);color:var(--hist-ink);font:var(--text-lg)/1.5 var(--font-text)}
/* A Story mounted as the page (not inside a workspace panel) has no sized parent: frame it like the report pages, below the 62px shell bar. */
.historian-shell #content>.hp-story-root.hist-app{position:fixed;inset:var(--hs-shell-height,62px) 0 0;width:auto;height:auto}
/* Forensic: the dockable workspace fills the content area under the shell header; Story is its centre panel. */
.historian-shell #content>.hist-forensic-workspace{position:fixed;inset:var(--hs-shell-height,62px) 0 0;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--hist-paper)}
/* Single column: the chrome wraps tall, so the page scrolls and the dock keeps a full screen of height. */
@media (max-width:699px){.historian-shell #content>.hist-forensic-workspace{overflow-y:auto}}
/* Story docked in a workspace panel: fill the panel; the stage takes the free height and the conclusion scrolls on its own. */
[data-panel-kind="story"]:has(>div>.hp-story-root){display:flex;flex-direction:column;overflow:hidden}
[data-panel-kind="story"]>div:has(>.hp-story-root){flex:1;min-height:0;display:flex;flex-direction:column}
.historian-shell [data-panel-kind="story"] .hp-story-root.hist-app{top:auto;flex:1;min-height:0;height:auto;grid-template-rows:auto minmax(160px,1fr) auto;overflow:hidden}
[data-panel-kind="story"] .hp-story-conclusion{max-height:38%;overflow:auto}
.historian-shell [data-panel-kind="story"] .hp-story-root .hist-stage{min-height:0}
.hp-story-root>[hidden],.hp-story-controls [hidden]{display:none!important}
.hp-story-controls{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:8px;border-bottom:1px solid var(--hist-line);z-index:2;background:var(--hist-paper)}
.hp-story-controls .hist-view-switch{position:static;display:flex;transform:none;margin:0;padding:0}
.hp-story-controls .hist-tools{display:flex;flex-wrap:wrap;gap:4px}
.hp-story-controls button,.hp-story-conclusion-links button{min-height:44px;min-width:44px;padding:8px 12px;border:1px solid var(--hist-line);border-radius:var(--r-xs);background:var(--hist-card);color:var(--hist-ink);font:inherit}
.hp-story-controls button[aria-pressed="true"]{border-color:var(--hist-green);background:var(--hist-assessment)}
.hp-story-controls button:disabled{opacity:.6;cursor:default}
.hp-story-root .hist-stage{position:relative;inset:auto!important;min-height:260px;overflow:hidden}
.hp-story-root .hist-world{position:absolute;inset:0 auto auto 0;transform-origin:0 0}
.hp-story-root .hist-loading{position:absolute;inset:80px 12px auto;padding:16px;background:var(--hist-paper)}
.hp-story-identity{width:100%;font-size:var(--text-base);color:var(--hist-muted)}
.hist-incident-id{font-size:.85em;color:var(--hist-muted);font-weight:var(--weight-regular);user-select:text}
.hp-story-conclusion{position:relative;padding:16px;border-top:1px solid var(--hist-line);background:var(--hist-card);overflow-wrap:anywhere}
.hp-story-conclusion-title{margin:0;font:var(--weight-medium) var(--text-2xl)/1.4 var(--font-text)}
.hp-story-conclusion-meta{margin:4px 0 12px;color:var(--hist-muted);font-size:var(--text-base)}
.hp-story-conclusion-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.hp-story-conclusion-links button{border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;font-size:var(--text-base)}
.hp-story-conclusion-links [data-hp-incident-menu]{text-decoration:none;font-size:var(--text-xl);line-height:1}
/* The one analyst-verdict control (historian-verdict.js): the incident header, Response & decisions and the verdict task. */
.hv{display:flex;flex-direction:column;gap:8px;min-width:0;color:var(--hist-ink)}
.hv-choices{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;margin:0;padding:0;border:0}
.hv-choices legend{float:left;margin:0 4px 0 0;padding:0;font-weight:var(--weight-strong);line-height:32px}
.hv-choice{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border:1px solid var(--hist-line);border-radius:var(--r-xs);background:var(--hist-card);font-size:var(--text-base);cursor:pointer}
.hv-choice input{margin:0;accent-color:var(--hist-green)}
.hv-choice:has(input:checked){border-color:var(--hist-green);box-shadow:inset 0 0 0 1px var(--hist-green)}
.hv-choice:has(input:focus-visible){outline:2px solid var(--focus-color);outline-offset:2px}
.hv-choices:disabled .hv-choice{opacity:.6;cursor:default}
.hv-reason{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:var(--text-md);font-weight:var(--weight-medium)}
.hv-reason textarea{box-sizing:border-box;width:100%;min-height:52px;padding:6px 8px;border:1px solid var(--field-line);border-radius:var(--r-xs);background:var(--hist-card);color:var(--hist-ink);font:var(--weight-regular) var(--text-base)/1.4 var(--font-text);resize:vertical}
.hv-row,.hv-next{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hv-status,.hv-line,.hv-why{margin:0}
.hv-status{font-size:var(--text-md);color:var(--hist-muted)}
.hv-why{font-size:var(--text-md);color:var(--hist-muted);max-width:70ch;overflow-wrap:anywhere}
.hv-link{padding:0 2px;border:0;background:none;color:var(--hist-green-ink);font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.hv-header{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.hv-banner{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hv-banner[hidden],.hv-header [data-verdict-host][hidden],.hv-header [data-hist-review-decisions][hidden]{display:none}
.hp-story-root button:focus-visible,.hp-index-root :focus-visible{outline:2px solid var(--focus-color);outline-offset:3px}
.hp-story-root .hist-node-actions{position:absolute;right:6px;top:6px;min-height:32px;min-width:32px;background:var(--hist-card);color:var(--hist-ink);border:1px solid var(--hist-line)}
.hp-story-legacy-inspector.hist-forensic{position:relative;inset:auto;width:auto;height:auto;max-height:none;max-width:none;margin:12px;padding:16px;display:block;background:var(--hist-card);color:var(--hist-ink)}
.hp-story-legacy-inspector.hist-forensic[hidden]{display:none}
.hp-index-root{display:flex;flex-direction:column;gap:8px;min-width:0;height:100%;padding:12px;background:var(--hist-paper);color:var(--hist-ink);font:var(--text-lg)/1.5 var(--font-text)}
.hp-index-root .hist-index-search{display:flex;flex-direction:column;gap:4px;font-size:var(--text-base)}
.hp-index-root input{width:100%;min-height:44px;border:1px solid var(--field-line);background:var(--hist-card);color:var(--hist-ink);font:inherit;padding:8px}
.hp-index-root .hist-index-tabs{display:flex;flex-wrap:wrap;gap:4px}
.hp-index-root .hist-index-tabs button{flex:1;min-height:44px;padding:8px;border:1px solid var(--hist-line);background:var(--hist-card);color:var(--hist-ink)}
.hp-index-root .hist-index-tabs button[aria-pressed="true"]{border-color:var(--hist-green);font-weight:var(--weight-strong)}
.hp-index-root .hist-index-body{position:static;flex:1;overflow:auto;padding:0}
.hp-index-root ul{list-style:none;margin:0;padding:0}
.hp-index-root li{margin-bottom:4px}
.hp-index-root .hist-index-card{width:100%;min-height:44px;text-align:left;border:1px solid var(--hist-line);background:var(--hist-card);color:var(--hist-ink);padding:12px;overflow-wrap:anywhere}
.hp-index-root .hist-index-card strong,.hp-index-root .hist-index-card small{display:block}
.hp-index-root .hp-index-status{margin:0;font-size:var(--text-md);color:var(--hist-muted)}
.hp-index-root h3{font-size:var(--text-base);margin:12px 0 6px}
.hp-index-root details summary{min-height:44px;padding:8px;cursor:pointer}
@media(min-width:700px){.hp-story-root.hist-app,.hp-index-root{font-size:var(--text-base)}.hp-story-controls button,.hp-story-conclusion-links button,.hp-index-root .hist-index-tabs button{min-height:32px}.hp-story-identity{width:auto;margin-right:auto}.hp-story-root.hist-app{grid-template-rows:auto minmax(260px,1fr) auto}}
@media(prefers-reduced-motion:reduce){.hp-story-root .hist-node,.hp-story-root .hist-edge,.hp-story-root .hist-agent-worker{animation:none!important;transition:none!important}}
.hp-story-controls .hist-view-switch{flex-wrap:wrap}
.hp-story-controls .hist-tools{min-width:0;flex-basis:100%;white-space:normal}
.hp-story-identity{overflow-wrap:anywhere}

/* cfr 2026-10-10: small recommendation chips on a card (low-impact quick actions; a click runs it) */
.hist-node-recs{display:flex;flex-wrap:wrap;gap:6px;padding:0 18px 12px}
.hist-rec{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 10px;border:1px solid var(--hist-green,#4f7a5a);border-radius:var(--r-pill);background:transparent;color:var(--hist-green-ink,#36583e);font:var(--weight-medium) var(--text-xs)/1.5 var(--font-text);cursor:pointer}
.hist-rec::before{content:"↳ ";opacity:.7}
.hist-rec:hover,.hist-rec:focus-visible{background:var(--hist-green,#4f7a5a);color:#fff}
.hl-placeholder{position:relative;min-height:calc(100vh - var(--hs-shell-height,52px))}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* cfr 2026-10-11: people. HAL contacted a person about the incident (a Teams DM, a Teams or Slack channel question) and
   waits for their reply, or has it. --hist-people is calm violet, apart from the integration and priority colours.
   Waiting carries a full people edge; replied is muted. Text and the icon say it too: colour is never the only cue. */
.hist-incident.is-people-waiting{border-left:4px solid var(--hist-people)}
.hist-incident.is-people-replied{border-left:2px solid color-mix(in srgb,var(--hist-people) 45%,transparent)}
.hist-world-contact{display:flex;align-items:flex-start;gap:4px;min-width:0;font:var(--weight-strong) 9px/1.4 var(--font-text);color:var(--hist-people)}
.hist-world-contact-icon{display:inline-flex;flex:none}
.hist-world-contact-icon svg{width:12px;height:12px}
.hist-world-contact-text{min-width:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hist-app.is-timeline .hist-world-contact-text{-webkit-line-clamp:2}
.hist-incident.is-people-replied .hist-world-contact{font-weight:var(--weight-regular);color:var(--hist-muted)}
.hist-incident.is-people-replied .hist-world-contact-icon{color:var(--hist-people)}
[data-tactical-detail="summary"] .hist-world-contact{flex:none}
[data-tactical-detail="summary"] .hist-world-contact-text{display:none}
[data-tactical-detail="summary"] .hist-world-contact-icon svg{width:calc(14px / var(--hist-zoom));height:calc(14px / var(--hist-zoom))}
.hist-world .hist-node.is-people:not([class*="vendor-"]){border-color:color-mix(in srgb,var(--hist-people) 50%,var(--hist-line));border-top:3px solid var(--hist-people)}
.hist-world .hist-node.is-people-waiting{border-left:4px solid var(--hist-people)}
.hist-world .hist-node.is-people-replied:not([class*="vendor-"]){border-top-color:color-mix(in srgb,var(--hist-people) 50%,var(--hist-line))}
.hist-node.is-people::before{background:var(--hist-people)}
.hist-card-icon{display:inline-flex;vertical-align:-2px;margin-right:5px}
.hist-node.is-people .hist-card-icon{color:var(--hist-people)}
.hist-people-line{display:flex;align-items:center;font:var(--weight-strong) var(--text-sm)/1.4 var(--font-text);color:var(--hist-people);overflow-wrap:anywhere}
.hist-node.is-people-replied .hist-people-line,.hist-node.is-people:not(.is-people-waiting) .hist-people-line{font-weight:var(--weight-regular);color:var(--hist-muted)}
.inc-card.is-people-waiting::before,.inc-card.is-people-replied::before{content:'';position:absolute;left:0;top:12px;bottom:12px;width:4px;border-radius:0 var(--r-xs) var(--r-xs) 0;background:var(--hist-people)}
.inc-card.is-people-replied::before{width:2px;background:color-mix(in srgb,var(--hist-people) 45%,transparent)}
.hq-contact{display:flex;align-items:flex-start;gap:6px;min-width:0;margin:4px 0 0;font-size:var(--text-md);font-weight:var(--weight-strong);line-height:1.4;color:var(--hist-people);overflow-wrap:anywhere}
.hq-contact[hidden]{display:none}
.hq-contact-icon{display:inline-flex;flex:none;margin-top:1px}
.inc-card.is-people-replied .hq-contact{font-weight:var(--weight-regular);color:var(--label-2,var(--hist-muted))}
.inc-card.is-people-replied .hq-contact-icon{color:var(--hist-people)}
/* cfr 2026-10-11: a found device (a configuration item: laptop, server, phone) has its own card in --hist-asset, a calm
   teal apart from the people violet and the integration colours; a found user is a people card. */
.hist-world .hist-node.is-asset:not([class*="vendor-"]){border-color:color-mix(in srgb,var(--hist-asset) 50%,var(--hist-line));border-top:3px solid var(--hist-asset)}
.hist-node.is-asset::before{background:var(--hist-asset)}
.hist-node.is-asset .hist-card-icon{color:var(--hist-asset)}
.hist-node-more{font-size:var(--text-sm);line-height:1.4;color:var(--hist-muted)}
/* Admission and recovery are recorded metadata; the surrounding card owns interaction. */
.hist-status-chips{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px;width:100%;min-width:0}
.hist-status-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:3px 6px;border:1px solid var(--hist-line);border-radius:var(--r-pill);background:var(--hist-chip);color:var(--hist-muted);font:var(--weight-medium) 10px/1.3 var(--font-text);text-align:left}
.hist-status-chip>span:last-child{min-width:0;overflow-wrap:anywhere}
.hist-status-icon{display:inline-flex;align-items:center;flex:none}
.hist-status-chip.is-working{color:var(--hist-green-ink);border-color:color-mix(in srgb,var(--hist-green) 45%,var(--hist-line))}
.hist-status-chip.is-unresolved,.hist-status-chip.is-retrying{color:var(--hist-rust);border-color:color-mix(in srgb,var(--hist-rust) 65%,var(--hist-line))}
.hist-status-chip.is-resolved{color:var(--hist-green-ink)}
.hist-node.has-unresolved-failure,.hist-incident.has-unresolved-failure,.inc-card.has-unresolved-failure{border-right:3px solid var(--hist-rust);box-shadow:0 0 0 1px color-mix(in srgb,var(--hist-rust) 35%,transparent),0 3px 15px var(--hist-shadow)}
.hist-node.has-unresolved-failure.selected{outline:2px solid var(--hist-rust);outline-offset:4px}
.inc-card>.hist-status-chips{margin:8px 0}

/* Action requests share card styling while staying outside recorded Story authority. */
.hist-action-flights{position:absolute;left:0;top:0;width:100%;height:100%;transform-origin:0 0;z-index:4;pointer-events:none}
.hist-action-flight{box-sizing:border-box;padding:18px 20px;min-height:300px;pointer-events:auto;animation:hist-fade .2s ease-out}
.hist-action-flight>strong{display:block;font:var(--weight-strong) var(--text-2xl)/1.25 var(--font-text);padding-right:16px;overflow-wrap:anywhere}
.hist-action-source{display:block;font:var(--weight-regular) var(--text-xs)/1.4 var(--font-text);color:var(--hist-muted);margin-top:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hist-action-body{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;margin-top:12px;min-height:190px;box-sizing:border-box}
.hist-action-target{display:block;max-width:100%;font:var(--weight-regular) var(--text-sm)/1.4 var(--font-text);color:var(--hist-muted);overflow-wrap:anywhere}
.hist-action-indicator{display:flex;min-height:62px;flex:1;align-items:center;justify-content:center;color:var(--hist-green-ink)}
.hist-action-spinner{display:block;width:28px;height:28px;border:2px solid var(--hist-line);border-top-color:var(--hist-green);border-radius:50%;animation:hist-orbit .85s linear infinite;box-sizing:border-box}
.hist-action-state{font:var(--weight-strong) var(--text-md)/1.4 var(--font-text);color:var(--hist-ink)}
.hist-action-result{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;font:var(--weight-regular) var(--text-sm)/1.5 var(--font-text);color:var(--hist-muted);overflow-wrap:anywhere}
.hist-action-dismiss{position:absolute;right:4px;top:4px;min-width:44px;min-height:44px;border:0;background:transparent;color:var(--hist-muted);font:var(--weight-regular) var(--text-2xl) var(--font-text);cursor:pointer}
.hist-action-dismiss:focus-visible{outline:2px solid var(--focus-color);outline-offset:1px}
@media(prefers-reduced-motion:reduce){.hist-action-spinner,.hist-action-flight{animation:none}}
/* cfr 2026-10-16: packed Story graph and the Grouped / Every card layout. Packing places cards from their
   measured heights in one pass, so it never animates from the unpacked estimate. */
.hist-world.is-packing .hist-node{transition:none!important}
.hist-layout-toggle{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--hist-line);border-radius:var(--r-xs)}
.hist-layout-toggle[hidden]{display:none}
.hist-layout-toggle button{min-height:32px;padding:0 10px;border-radius:var(--r-xs)}
.hist-layout-toggle button[aria-pressed="true"]{background:var(--hist-ink);color:var(--hist-paper)}
.hist-group{display:flex;flex-direction:column;gap:8px;min-height:0;padding:16px 16px 0;box-shadow:4px 4px 0 -1px var(--hist-card),4px 4px 0 0 var(--hist-line),0 3px 15px #5e472408}
.hist-group:not([class*="vendor-"]):not(.is-people){border-style:dashed}
.hist-group>strong{font-size:var(--text-lg);padding-right:28px}
.hist-group-members{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.hist-group-member{display:flex;align-items:baseline;justify-content:space-between;gap:10px;width:100%;min-height:26px;padding:3px 0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;font-size:var(--text-sm);line-height:1.35;text-align:left;cursor:pointer}
.hist-group-member span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hist-group-member small{flex:none;color:var(--hist-muted);font-size:var(--text-xs)}
.hist-group-members .is-gap small{color:var(--hist-rust)}
.hist-group-member:hover span,.hist-group-member:focus-visible span{text-decoration:underline}
.hist-group-more{font-size:var(--text-xs);color:var(--hist-muted)}
.hist-group-open{display:flex;align-items:center;justify-content:center;gap:7px;margin:0 -16px;min-height:40px;padding:0 14px;border:0;border-top:1px solid var(--hist-line);border-radius:0;background:transparent;color:var(--hist-ink);font:inherit;font-size:var(--text-sm);cursor:pointer}
.hist-group-open:hover{background:var(--hist-chip)}

/* A question waiting for a person has its own amber halo, separate from failures and warning outlines. */
.hist-node.is-needs-you{--hist-answer-amber:#d79728;border:2px solid var(--hist-answer-amber);border-top:4px solid var(--hist-answer-amber);box-shadow:0 0 0 3px color-mix(in srgb,var(--hist-answer-amber) 16%,transparent),0 0 22px color-mix(in srgb,var(--hist-answer-amber) 24%,transparent);animation:hist-needs-you-glow 3s ease-in-out infinite;overflow:hidden}
.hist-node.is-needs-you::before{background:var(--hist-answer-amber)}
.hist-node.is-needs-you .hist-node-open{min-height:0;padding:18px 20px 8px}
.hist-node.is-needs-you .hist-node-open>strong{display:block;overflow:visible;-webkit-line-clamp:unset}
.hist-node.is-needs-you .hist-node-label{color:var(--hist-ink)}
.hist-needs-you-body{padding:0 20px 18px;display:flex;flex-direction:column;gap:12px;font:var(--weight-regular) var(--text-lg)/1.5 var(--font-text);overflow-wrap:anywhere;max-height:min(480px,60dvh);overflow-y:auto;overscroll-behavior:contain}
.hist-needs-you-body p{margin:0}
.hist-needs-you-body section{display:flex;flex-direction:column;gap:8px}
.hist-needs-you-body details{min-width:0;border-top:1px solid var(--hist-line);padding-top:6px}
.hist-needs-you-body summary{cursor:pointer;overflow-wrap:anywhere}
.hist-needs-you-body pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;font-size:var(--text-sm)}
.hist-needs-you-body label{font-weight:var(--weight-strong)}
.hist-needs-you-body textarea{box-sizing:border-box;width:100%;min-height:88px;resize:vertical;border:1px solid var(--field-line);border-radius:var(--r-xs);background:var(--hist-paper);color:var(--hist-ink);padding:10px;font:var(--weight-regular) var(--text-lg)/1.5 var(--font-text)}
.hist-needs-you-body textarea:focus-visible{outline:2px solid var(--hist-answer-amber);outline-offset:2px}
.hist-needs-you-body .hist-button{min-height:44px;align-self:flex-start}
.hist-answer-status:empty{display:none}
@keyframes hist-needs-you-glow{50%{box-shadow:0 0 0 4px color-mix(in srgb,var(--hist-answer-amber) 24%,transparent),0 0 30px color-mix(in srgb,var(--hist-answer-amber) 36%,transparent)}}
@media(prefers-reduced-motion:reduce){.hist-node.is-needs-you{animation:none;transition:none}}

@media(min-width:700px){.hist-needs-you-body{font-size:var(--text-base)}}

/* Conclusion revisions use the card's existing type and semantic colours. */
.hist-conclusion-revision{font-size:var(--text-md);line-height:1.5;color:var(--hist-green-ink);overflow-wrap:anywhere}
.hist-conclusion-changed{margin:0 0 12px;font-size:var(--text-base);color:var(--hist-muted)}
.hist-conclusion-history{margin:0 0 16px;border-bottom:1px solid var(--hist-line)}
.hist-conclusion-history summary{min-height:44px;align-content:center;cursor:pointer;overflow-wrap:anywhere}
.hist-conclusion-history details{padding-left:12px}.hist-conclusion-history p{margin:4px 0 12px;overflow-wrap:anywhere}
.hist-node.is-conclusion:has(.hist-conclusion-history[open]) .hist-conclusion-body{flex:1;overflow:auto;min-height:0}
/* The outlined button: one skin for the secondary actions of the incident panels, the executive page and the analyst view. Size and layout stay with each class. */
.hp-case-button,.hp-findings-button,.hp-sitrep-button,.hp-pir-button,.hex-button,.hav-action{border:1px solid var(--hist-line);border-radius:var(--r-xs);background:var(--hist-card);color:var(--hist-ink);cursor:pointer}
/* The outlined pill: one outline for labels, tags and entity pills. Fill, size and tone stay with each class. */
.htc-tag,.htc-chip,.htc-pg-chip,.htc-badge,.htw-chip,.hex-badge,.hist-entity-pill,.hhm-chip{border:1px solid var(--hist-line);border-radius:var(--r-pill)}

/* /css/historian-connections.css */
/* Kanso connection workspaces: warm paper, precise rules, dense deeper forms. */
.hcc-workspace{font:var(--weight-regular) var(--text-lg)/1.5 var(--font-text);color:var(--hist-ink);min-width:0}.hcc-heading{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 24px}.hcc-heading h1,.hcc-heading h2{font:var(--weight-medium) var(--text-title)/1.15 var(--font-text);letter-spacing:-1px;margin:5px 0 8px}.hcc-heading p{max-width:68ch;color:var(--hist-muted);margin:0}.hcc-eyebrow{font:var(--weight-medium) var(--text-xs)/1.5 var(--font-text);text-transform:uppercase;letter-spacing:1.4px;color:var(--hist-rust)}.hcc-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--hist-line);margin:0 0 24px;gap:3px}.hcc-tabs a{min-height:44px;display:flex;align-items:center;color:var(--hist-muted);padding:8px 10px;text-decoration:none;border-bottom:2px solid transparent}.hcc-tabs a[aria-current]{color:var(--hist-ink);border-bottom-color:var(--hist-rust)}.hcc-panel{border:1px solid var(--hist-line);border-radius:var(--r-xs);background:var(--hist-card);margin-bottom:18px;min-width:0}.hcc-panel>header{padding:16px 18px;border-bottom:1px solid var(--hist-line)}.hcc-panel h2,.hcc-panel h3{font:var(--weight-medium) var(--text-xl)/1.4 var(--font-text);margin:0}.hcc-panel>header p{margin:6px 0 0;color:var(--hist-muted)}.hcc-panel-body{padding:18px}.hcc-workspace .panel{background:var(--hist-card);border:1px solid var(--hist-line);box-shadow:none;border-radius:var(--r-xs)}.hcc-workspace .panel-head,.hcc-workspace .panel-heading{border-color:var(--hist-line)}.hcc-workspace .button,.hcc-workspace .btn-ghost,.hcc-workspace .btn-primary{min-height:44px;min-width:44px;font-size:var(--text-lg);border-radius:var(--r-xs);box-shadow:none}.hcc-workspace .button.primary,.hcc-workspace .btn-primary{background:var(--equa-brand);border-color:var(--equa-brand);color:var(--on-accent)}.hcc-workspace input:not([type=checkbox]),.hcc-workspace select,.hcc-workspace textarea{min-height:44px;font-size:var(--text-lg);color:var(--hist-ink);background:var(--hist-paper);border:1px solid var(--field-line);box-shadow:none}.hcc-workspace input:disabled,.hcc-workspace button:disabled{opacity:.6}.hcc-workspace a:focus-visible,.hcc-workspace button:focus-visible,.hcc-workspace input:focus-visible,.hcc-workspace summary:focus-visible,.hcc-workspace select:focus-visible{outline:2px solid var(--focus-color);outline-offset:3px}.hcc-workspace .integration-grid,.hcc-workspace .mcp-server-grid,.hcc-workspace .mcp-service-cards{display:grid;grid-template-columns:1fr;gap:16px}.hcc-connection{padding:18px;display:flex;flex-direction:column;gap:16px}.hcc-connection-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.hcc-connection-title{display:flex;gap:12px;align-items:center;min-width:0}.hcc-connection-title h3{margin:0;font:var(--weight-medium) var(--text-xl)/1.3 var(--font-text)}.hcc-vendor{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;background:var(--hist-paper);border:1px solid var(--hist-line);border-radius:var(--r-xs);color:var(--hist-ink)}.hcc-vendor img{width:28px;height:28px;object-fit:contain}.hcc-connection p{margin:0;color:var(--hist-muted)}.hcc-capabilities{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}.hcc-capabilities>div{border-top:1px solid var(--hist-line);padding:8px 0}.hcc-capabilities dt{font-weight:var(--weight-medium)}.hcc-capabilities dd{margin:2px 0 0;font-size:var(--text-md);color:var(--hist-muted)}.hcc-capabilities [data-state=available] dd{color:var(--hist-green-ink)}.hcc-capabilities [data-state=unavailable] dd{color:var(--hist-rust)}.hcc-capabilities [data-state=unsupported]{opacity:.62}.hcc-connection .integration-footer{margin-top:auto;padding-top:14px;border-top:1px solid var(--hist-line);display:flex;flex-wrap:wrap;gap:8px;align-items:center}.hcc-connection .icon-button{width:44px;height:44px}.hcc-ledger{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid var(--hist-line)}.hcc-ledger div{padding:10px 6px}.hcc-ledger dt{font-size:var(--text-sm);color:var(--hist-muted)}.hcc-ledger dd{margin:3px 0 0;font:var(--weight-medium) var(--text-2xl) var(--font-text)}.hcc-connection small{overflow-wrap:anywhere}.hcc-heading-actions,.hcc-actions{display:flex;gap:8px;flex-wrap:wrap}.hcc-provider-list{display:grid;gap:0}.hcc-provider{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--hist-line)}.hcc-provider:first-child{padding-top:0}.hcc-provider h3{font:var(--weight-medium) var(--text-xl) var(--font-text);margin:0 0 6px}.hcc-provider p{margin:0;color:var(--hist-muted)}.hcc-provider .badge{margin-right:6px}.hcc-provider-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:5px}.hcc-workspace .provider-row{margin-top:20px;flex-wrap:wrap}.hcc-workspace .provider-selects{display:flex;flex-wrap:wrap;gap:8px}.hcc-workspace .provider-selects select{max-width:100%}.hcc-footnote{color:var(--hist-muted);max-width:70ch}.hcc-access-state{padding:16px;background:var(--hist-paper);border-left:3px solid var(--hist-green);display:flex;flex-wrap:wrap;gap:8px 16px}.hcc-access-state p{margin:0;flex-basis:100%;color:var(--hist-muted)}.hcc-role-facts{margin:18px 0}.hcc-role-facts dt{font-weight:var(--weight-medium)}.hcc-role-facts dd{margin:6px 0;display:flex;flex-wrap:wrap;gap:6px}.hcc-role-matrix summary{cursor:pointer;min-height:44px;padding:10px 0}.hcc-role-matrix table{width:100%;border-collapse:collapse;min-width:400px}.hcc-role-matrix th,.hcc-role-matrix td{padding:12px 8px;border-bottom:1px solid var(--hist-line);text-align:left;vertical-align:top}.hcc-workspace code{overflow-wrap:anywhere}.hcc-role-matrix code{display:inline-block;margin:3px}.hcc-policy-list{display:grid;gap:12px}.hcc-policy{border:1px solid var(--hist-line);padding:18px;background:var(--hist-paper)}.hcc-policy>header{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.hcc-policy h3{font:var(--weight-medium) var(--text-xl) var(--font-text);margin:0 0 5px}.hcc-policy p{margin:8px 0;color:var(--hist-muted)}.hcc-policy dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hcc-policy dt{font-size:var(--text-sm);color:var(--hist-muted)}.hcc-policy dd{margin:3px 0 0}.hcc-policy .row-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.hcc-workspace .identity-facts{grid-template-columns:1fr}.hcc-workspace .identity-section{border-color:var(--hist-line);background:var(--hist-card);border-radius:var(--r-xs)}.hcc-workspace .response-policies{display:grid;grid-template-columns:1fr;gap:14px}.hcc-workspace .response-policy{border-color:var(--hist-line);background:var(--hist-paper)}.hcc-workspace .dash-cols{display:grid;grid-template-columns:1fr;gap:16px}.hcc-workspace .conn-grid{display:grid;grid-template-columns:1fr;gap:16px}.hcc-workspace .conn-code{overflow:auto;font-size:var(--text-md)}.hcc-workspace .dm-strip{display:grid;grid-template-columns:1fr 1fr;gap:0}.hcc-workspace .dm-strip>div{padding:16px;border-bottom:1px solid var(--hist-line)}.hcc-sheet{background:var(--hist-card);color:var(--hist-ink);font-family:var(--font-text)}.hcc-sheet .form-grid{gap:14px}.hcc-sheet input:not([type=checkbox]),.hcc-sheet textarea,.hcc-sheet select{font-size:var(--text-lg);min-height:44px;background:var(--hist-paper);color:var(--hist-ink);border:1px solid var(--field-line);box-shadow:none}.hcc-sheet .button,.hcc-sheet button{min-height:44px}.hcc-sheet .sheet-section{font:var(--weight-medium) var(--text-xl) var(--font-text);padding:10px 0;border-bottom:1px solid var(--hist-line)}.hcc-sheet .modal-actions{border-color:var(--hist-line)}.hcc-entry{max-width:1000px;margin:0 auto}.hcc-entry textarea{min-height:260px;font:var(--weight-regular) var(--text-lg)/1.6 var(--font-mono)}.hcc-login{color:var(--hist-ink);background:var(--hist-paper);font:var(--weight-regular) var(--text-lg)/1.6 var(--font-text)}.hcc-login .login-header,.hcc-login .login-footer{border-color:var(--hist-line);color:var(--hist-muted)}.hcc-login .hcc-brand{font:var(--weight-regular) 32px var(--font-text);color:var(--hist-ink);display:flex;align-items:center;gap:10px;text-decoration:none}.hcc-brand>span:last-child:not(.hist-mark){color:var(--hist-rust);margin-left:-8px}.hcc-login .login-story h1{font:500 clamp(36px,6vw,66px)/1.08 var(--font-text);letter-spacing:-2px}.hcc-login .login-form-panel{background:var(--hist-card);border:1px solid var(--hist-line);border-radius:var(--r-xs);box-shadow:none}.hcc-login .login-form-panel h2{font:var(--weight-medium) 26px var(--font-text)}.hcc-login .button{min-height:44px;font-size:var(--text-lg);border-radius:var(--r-xs)}.hcc-login .button.primary{background:var(--equa-brand);color:var(--on-accent)}.hcc-login .login-eyebrow{color:var(--hist-rust)}.hcc-boot-error{min-height:100vh;display:grid;align-content:center;justify-items:start;gap:16px;padding:24px;max-width:740px;margin:auto;background:var(--hist-paper);color:var(--hist-ink);font:var(--weight-regular) var(--text-lg)/1.6 var(--font-text)}.hcc-boot-error h1{font:var(--weight-medium) 36px/1.1 var(--font-text);margin:10px 0 0}.hcc-boot-error p{max-width:58ch;margin:0}.hcc-boot-error .button{min-height:44px;font-size:var(--text-lg)}.hcc-brand .hist-mark{display:flex;align-items:center;gap:4px;width:34px}.hcc-brand .hist-mark i{width:6px;height:24px;background:var(--hist-green);transform:skewY(-19deg)}.hcc-brand .hist-mark i:nth-child(2){background:var(--hist-rust);height:27px}.hcc-brand .hist-mark i:nth-child(3){background:var(--hist-brown);height:30px}
@media(min-width:700px){.hcc-tabs{display:flex;flex-wrap:wrap}.hcc-heading h1,.hcc-heading h2{font-size:32px}.hcc-workspace{font-size:var(--text-base)}.hcc-workspace .button,.hcc-workspace .btn-ghost,.hcc-workspace .btn-primary{font-size:var(--text-base)}.hcc-workspace .integration-grid,.hcc-workspace .mcp-server-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hcc-capabilities{grid-template-columns:repeat(3,minmax(0,1fr))}.hcc-workspace .conn-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hcc-workspace .identity-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.hcc-workspace .dm-strip{grid-template-columns:repeat(5,minmax(0,1fr))}.hcc-boot-error{padding:50px}.hcc-sheet .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1000px){.hcc-workspace .dash-cols,.hcc-workspace .mcp-service-cards,.hcc-workspace .response-policies{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.hcc-workspace *,.hcc-sheet *,.hcc-login *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.hcc-catalogue-filter{display:flex;flex-direction:column;gap:8px;margin:0 0 18px}.hcc-catalogue-filter>span{color:var(--hist-muted);font-size:var(--text-md)}.hcc-catalogue-filter .field{margin:0}.hcc-workspace .form-grid,.hcc-sheet .form-grid{grid-template-columns:1fr}.hcc-workspace .conn-endpoint{flex-wrap:wrap;gap:10px}.hcc-workspace .conn-ep-meta{min-width:0}.hcc-workspace .conn-ep-url{white-space:normal;overflow-wrap:anywhere}.hcc-workspace .hcc-policy pre{max-width:100%;overflow:auto;font-size:var(--text-md)}.hcc-schema{margin:10px 0}.hcc-schema div{display:flex;gap:12px;padding:4px 0}.hcc-schema dd{margin:0;color:var(--hist-muted)}.hcc-workspace .dm-name-cell details{margin:8px 0}.hcc-workspace summary{min-height:44px;padding:8px 0}.hcc-brand{font:var(--weight-regular) 32px var(--font-text);color:var(--hist-ink);display:flex;align-items:center;gap:10px;text-decoration:none}.hcc-brand>span:last-child:not(.hist-mark){color:var(--hist-rust);margin-left:-8px}
@media(min-width:700px){.hcc-workspace .form-grid,.hcc-sheet .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hcc-catalogue-filter{flex-direction:row;align-items:center;gap:16px}.hcc-catalogue-filter .field{flex:1}}
.hcc-capabilities [data-state=unsupported]{opacity:1}.hcc-capabilities [data-state=unsupported] dd{color:var(--hist-muted)}

/* /css/historian-jysk.css */
/* JYSK appearance (cfr 2026-10-25): JYSK blue chrome over a white page and white cards with cool blue-grey lines,
   one mid-blue action colour. Open Sans, JYSK's website typeface, is the console's text face in every appearance
   (tokens.css). Light only, like EQUA and UniFi. Blues come from
   the JYSK Blue Line palette (#0a2c69 deep, #143c8a logo blue, #1d6fb7 action, #4a72a8, #95b8d7, #e2eef8); cfr chose
   white over the brand beige. No JYSK logo ships here: the product stays DETECTIVE. Supplier card colours (Microsoft,
   Trend Micro, Splunk), people and device colours stay what they are in every appearance. A deployment opens in it
   with CR_DEFAULT_APPEARANCE=jysk (web/server.py). */
:root[data-theme="jysk"]{
 color-scheme:light;
 --hist-green:#1d6fb7;
 --hist-assessment:#f1f6fb;--hist-chip:#eef3f9;--hist-shadow:#0a2c6912;
 --hist-people:#5b4bb7;--hist-asset:#286a70;--hist-rust:#b3261e;--hist-brown:#8a93a3;
 --canvas:#ffffff;--surface:#ffffff;
 --label:#13233f;--label-2:#56647a;--label-4:#8a93a3;
 --accent:#155a9c;--accent-hover:#143c8a;
 --accent-tint:#e2eef8;--accent-tint-2:#d3e4f3;--on-accent:#ffffff;--focus-ring:#1d6fb766;
 --green-text:#1f6e43;--green-tint:#e4f1e8;--green-dot:#2e8b57;
 --amber-text:#8a5a00;--amber-tint:#fbefd6;--amber-dot:#d98e04;
 --rose-text:#b3261e;--rose-tint:#fbe9e7;--rose-dot:#d0342c;
 --blue-text:#143c8a;--blue-tint:#e2eef8;--blue-dot:#1d6fb7;
 --fill-1:#f3f6f9;--fill-2:#e9eef4;--fill-3:#dde4ed;--row-alt:#f8fafc;
 --hairline:#dde3ec;
 --control-bg:#ffffff;--control-bg-hover:#eef3f9;--field-bg:#ffffff;
 --control-ring:0 0 0 1px #b9c4d3,0 1px 2px #0a2c6908;
 --field-line:#8896ab;--field-ring:0 0 0 1px var(--field-line),inset 0 1px 2px #0a2c6905;
 --chart-1:#1d6fb7;
 --segment-bg:#ffffff;
 --glass-strong:#fffffffa;--scrim:#0a2c6940;
 --shadow-1:0 1px 3px #0a2c690d;--shadow-2:0 4px 18px #0a2c6912;
 --shadow-pop:0 4px 24px #0a2c691c;--shadow-modal:0 16px 56px #0a2c692e;
 --shadow-segment:0 1px 3px #0a2c6912;
 --equa-brand:#1d6fb7;
}
/* The blue chrome: the top bar re-scopes the shell tokens to white on JYSK deep blue. */
:root[data-theme="jysk"] .hs-bar{
 --hist-paper:#0a2c69;--hist-ink:#ffffff;--hist-muted:#c9d7ec;--hist-chip:#ffffff1f;--hist-line:#ffffff2e;
 --hist-green:#ffffff;--hist-green-ink:#ffffff;--hist-brown:#95b8d7;--focus-ring:#ffffffb3;
 background:#0a2c69;border-bottom-color:#0a2c69;color:#ffffff;
}
:root[data-theme="jysk"] .hs-brand{font-size:22px;font-weight:800;letter-spacing:.04em}
:root[data-theme="jysk"] .hs-nav [data-hs-badge]{background:#d0342c;color:#ffffff}
:root[data-theme="jysk"] .hs-dot[data-state="waiting"],:root[data-theme="jysk"] .hs-dot[data-state="error"]{background:#ff8a7a}
:root[data-theme="jysk"] .hs-status{background:var(--surface);border-bottom-color:var(--hairline);color:var(--rose-text)}
:root[data-theme="jysk"] .hs-bar :focus-visible{outline-color:#ffffff}
/* The small-screen menu opens as a light panel under the bar, so it takes the page tokens back. */
:root[data-theme="jysk"] #historianShell.nav-open .hs-menu{
 --hist-paper:#ffffff;--hist-ink:#13233f;--hist-muted:#56647a;--hist-chip:#eef3f9;--hist-line:#dde3ec;
 --hist-green:#1d6fb7;--hist-green-ink:#155a9c;--hist-brown:#8a93a3;--focus-ring:#1d6fb766;color:var(--hist-ink)
}
:root[data-theme="jysk"] #historianShell.nav-open .hs-menu :focus-visible{outline-color:var(--accent)}
/* Sign-in: the same blue band over a white page. */
:root[data-theme="jysk"] .login-page{background:var(--canvas)}
:root[data-theme="jysk"] .login-header{background:#0a2c69;color:#ffffff}
:root[data-theme="jysk"] .login-header :is(.hcc-brand,.login-header-end){color:#ffffff}
:root[data-theme="jysk"] .login-header .hcc-brand{font-weight:800;letter-spacing:.04em}
:root[data-theme="jysk"] .login-theme{color:#ffffff;border-color:#ffffff2e}
:root[data-theme="jysk"] .hcc-login .login-eyebrow{color:var(--accent)}
@media(prefers-contrast:more){:root[data-theme="jysk"]{--hairline:#8896ab;--field-line:#667790;--label-2:#3a4a63;--label-4:#6c778a}}
@media(prefers-reduced-transparency:reduce){:root[data-theme="jysk"]{--glass-strong:var(--surface);--glass-blur:none}}

