/* GENERATED by tools/css/build-css-bundles.mjs from suite.css: do not edit. Change the source files and
   run "node tools/css/build-css-bundles.mjs". This is the projects portal (TechnoPulse.Projects.Web), built on shell v2 and the tp- components from the start; the legacy layer and the live portals' landing and install-banner patterns are left out.
   One request instead of suite.css and its imports. Files: base/reset.css, tokens/primitives.css, tokens/semantic.css, tokens/themes.css, tokens/components.css, base/elements.css, base/a11y.css, base/brand.css, layout/shell.css, components/actions.css, components/forms.css, components/feedback.css, components/badges.css, components/overlays.css, components/data.css, components/data-display.css, utilities.css. */

@layer reset, tokens, vendor, legacy, base, layout, components, patterns, modules, utilities;

/* ---- base/reset.css ---- */
@layer reset {
/* Reset layer: the few document defaults every page of the suite starts from (docs/designs/design-system.md,
   section 3). Imported into layer(reset), the lowest layer, by suite.css, and inlined into both portals'
   index.html with the tokens and patterns/landing.css (tools/css/build-css-bundles.mjs), so the static
   landing paints on these defaults before the stylesheet bundle arrives. The legacy layer sets the same
   values, so nothing that renders today changes. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body { margin: 0; }
}

/* ---- tokens/primitives.css ---- */
@layer tokens {
/* Tier 1: primitive colours (docs/designs/design-system.md, section 2). Raw values only, named
   --tp-{ramp}-{step}; a higher step is darker. Components never read these: they read the roles in
   semantic.css, themes.css and components.css. Imported into layer(tokens) by suite.css and mirrored in
   Tokens/SuiteTokens.cs (tests/TechnoPulse.Ui.Tests/Tokens/TokenParityTests.cs compares the two). */

:where(:root) {
    /* Neutral */
    --tp-neutral-0: #FFFFFF;
    --tp-neutral-50: #F5F6F9;
    --tp-neutral-100: #EEF1F6;
    --tp-neutral-125: #EDEFF3;
    --tp-neutral-150: #E8EAF0;
    --tp-neutral-200: #DDE1E9;
    --tp-neutral-300: #C3C9D5;
    --tp-neutral-400: #9AA2B3;
    --tp-neutral-475: #7C869B;
    --tp-neutral-500: #7A8397;
    --tp-neutral-600: #5A6272;
    --tp-neutral-700: #3A4152;
    --tp-neutral-800: #2C3245;
    --tp-neutral-850: #24272E;
    --tp-neutral-900: #232838;
    --tp-neutral-950: #1B1F2B;
    --tp-neutral-1000: #12141B;
    --tp-neutral-black: #000000;
    --tp-neutral-ink: #1A1E28;

    /* Navy and amber (SiteScribe AI) */
    --tp-navy-700: #2E4372;
    --tp-navy-800: #24365C;
    --tp-navy-900: #16233F;
    --tp-amber-100: #FDEBCF;
    --tp-amber-400: #F5B547;
    --tp-amber-500: #F5A623;
    --tp-amber-800: #9A5B00;
    --tp-amber-900: #6B3F00;

    /* Teal, orange and teal-tinted neutrals (BuildProof). Orange 600 is the risk "High" fill. */
    --tp-teal-700: #186A87;
    --tp-teal-900: #0E4D64;
    --tp-teal-grey-50: #F4F7F7;
    --tp-teal-grey-900: #1F2C31;
    --tp-teal-grey-950: #182226;
    --tp-teal-grey-1000: #101719;
    --tp-orange-100: #FDE6D8;
    --tp-orange-300: #FF9F66;
    --tp-orange-500: #F26B1D;
    --tp-orange-600: #E8730A;
    --tp-orange-800: #A8470B;
    --tp-orange-900: #7A3200;

    /* Ink and indigo (the suite: TechnoPulse Projects) */
    --tp-ink-800: #1F2937;
    --tp-ink-900: #111827;
    --tp-indigo-50: #ECEEFC;
    --tp-indigo-300: #A5B0FF;
    --tp-indigo-400: #8491F7;
    --tp-indigo-600: #4353D9;
    --tp-indigo-700: #3A49C4;
    --tp-indigo-800: #2A36A8;

    /* Status: green (success), red (danger), yellow (warning), blue (info) */
    --tp-green-50: #E6F3E7;
    --tp-green-300: #81C784;
    --tp-green-600: #2E7D32;
    --tp-green-700: #1B6B2A;
    --tp-green-900: #0B4F16;
    --tp-green-950: #16321B;
    --tp-red-50: #FCEBE9;
    --tp-red-300: #F28B82;
    --tp-red-600: #C62828;
    --tp-red-700: #B3261E;
    --tp-red-900: #8E1111;
    --tp-red-950: #3A1B1A;
    --tp-yellow-50: #FFF1DE;
    --tp-yellow-200: #FFD08A;
    --tp-yellow-500: #E8A400;
    --tp-yellow-800: #7A4A00;
    --tp-yellow-900: #5C3A00;
    --tp-yellow-950: #3A2A10;
    --tp-blue-50: #E7F0FA;
    --tp-blue-300: #8AB4F8;
    --tp-blue-600: #1F6FB2;
    --tp-blue-700: #175A91;
    --tp-blue-900: #0B3F6E;
    --tp-blue-950: #14293D;
}
}

/* ---- tokens/semantic.css ---- */
@layer tokens {
/* Tier 2: semantic roles (docs/designs/design-system.md, sections 2 and 3). Components read these, the
   theme roles in themes.css and the component tokens in components.css; never the --tp-* primitives.

   Scopes. data-scheme="light|dark|sunlight" is set on <html> before first paint by the scheme script in
   each index.html (the gallery sets it on its story frame instead, under an <html> without one).
   data-theme="suite|sitescribe|buildproof" names a whole product and data-accent="suite|rams|qa" a module
   region inside one. Every selector here is wrapped in :where(), so every token declaration has zero
   specificity and the order of the blocks decides: light first, then dark, then sunlight.

   - Scale tokens are the same everywhere and are declared once, on the root.
   - Scheme colours are declared on the root, on [data-scheme] and on [data-theme] (a theme resets the
     tinted neutrals of an outer theme), and never on [data-accent]: an accent changes accent roles only.
   - A [data-theme] inside a dark or sunlight scope is matched by the descendant selectors below, so it
     takes that scheme's values. Scheme scopes do not nest: one per page.

   Mirrored in Tokens/SuiteTokens.cs; TokenParityTests resolves these files and compares. */

/* ---- scales ------------------------------------------------------------------------------------- */
:where(:root) {
    /* Type: rem, with a 12px floor; inputs never below --font-size-md. The system stack is kept. */
    --font-family-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --font-numeric-data: tabular-nums;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.75rem;
    --font-size-display: clamp(2rem, 7vw, 2.75rem);
    --line-height-tight: 1.2;
    --line-height-snug: 1.35;
    --line-height-normal: 1.5;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Space: a 4px grid. */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Radius: controls sm, cards md, sheets and dialogs lg. */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* Z layers. Dialogs, sheets, popovers and toasts use the browser's top layer and need none. */
    --z-raised: 1;
    --z-sticky: 100;
    --z-bar: 200;
    --z-chrome: 300;
    --z-tray: 400;
    --z-banner: 500;
    --z-fatal: 1000;

    /* Motion */
    --motion-duration-xs: 80ms;
    --motion-duration-sm: 150ms;
    --motion-duration-md: 200ms;
    --motion-duration-lg: 300ms;
    --motion-ease: cubic-bezier(0.2, 0, 0, 1);

    /* Breakpoints are for page layout only and cannot be custom properties in a media query:
       sm 480px, md 768px, lg 1024px, xl 1280px, 2xl 1536px (SuiteTokens.Breakpoints). Components use
       container queries. */

    /* Risk bands (identical to AiRams.Shared/Models/RiskBanding.cs, so screen and PDF agree) and RAG.
       Always shown with a label and a shape as well as the colour. */
    --color-risk-low: var(--tp-green-600);
    --color-on-risk-low: var(--tp-neutral-0);
    --color-risk-medium: var(--tp-yellow-500);
    --color-on-risk-medium: var(--tp-neutral-ink);
    --color-risk-high: var(--tp-orange-600);
    --color-on-risk-high: var(--tp-neutral-ink);
    --color-risk-very-high: var(--tp-red-600);
    --color-on-risk-very-high: var(--tp-neutral-0);
    --color-rag-red: var(--tp-red-600);
    --color-rag-amber: var(--tp-yellow-500);
    --color-rag-green: var(--tp-green-600);
    --color-rag-not-started: var(--tp-neutral-600);
    --color-rag-complete: var(--tp-blue-600);
}

@media (prefers-reduced-motion: reduce) {
    :where(:root) {
        --motion-duration-xs: 0ms;
        --motion-duration-sm: 0ms;
        --motion-duration-md: 0ms;
        --motion-duration-lg: 0ms;
    }
}

/* ---- light (the default) ------------------------------------------------------------------------- */
:where(:root, [data-scheme], [data-theme]) {
    color-scheme: light;
    --color-bg: var(--tp-neutral-50);
    --color-surface: var(--tp-neutral-0);
    --color-surface-2: var(--tp-neutral-100);
    --color-text: var(--tp-neutral-ink);
    --color-text-muted: var(--tp-neutral-600);
    --color-border: var(--tp-neutral-200);
    --color-border-strong: var(--tp-neutral-500);
    --border-width: 1px;
    --border-strong-width: 1px;
    --color-focus: var(--tp-blue-600);
    --color-focus-halo: transparent;
    --focus-width: 3px;

    --color-success-text: var(--tp-green-700);
    --color-success-subtle: var(--tp-green-50);
    --color-success-solid: var(--tp-green-600);
    --color-on-success-solid: var(--tp-neutral-0);
    --color-danger-text: var(--tp-red-700);
    --color-danger-subtle: var(--tp-red-50);
    --color-danger-solid: var(--tp-red-600);
    --color-on-danger-solid: var(--tp-neutral-0);
    --color-warning-text: var(--tp-yellow-800);
    --color-warning-subtle: var(--tp-yellow-50);
    --color-warning-solid: var(--tp-yellow-500);
    --color-on-warning-solid: var(--tp-neutral-ink);
    --color-info-text: var(--tp-blue-700);
    --color-info-subtle: var(--tp-blue-50);
    --color-info-solid: var(--tp-blue-600);
    --color-on-info-solid: var(--tp-neutral-0);

    /* Elevation: 0 border only, 1 card (today's --shadow), 2 sticky bar, 3 popover, 4 dialog. */
    --shadow-0: none;
    --shadow-1: 0 1px 2px rgba(22, 35, 63, 0.06), 0 4px 16px rgba(22, 35, 63, 0.06);
    --shadow-2: 0 -6px 18px rgba(0, 0, 0, 0.08);
    --shadow-3: 0 10px 30px rgba(0, 0, 0, 0.18);
    --shadow-4: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ---- dark ---------------------------------------------------------------------------------------- */
:where([data-scheme="dark"], [data-scheme="dark"] [data-theme]) {
    color-scheme: dark;
    --color-bg: var(--tp-neutral-1000);
    --color-surface: var(--tp-neutral-950);
    --color-surface-2: var(--tp-neutral-900);
    --color-text: var(--tp-neutral-150);
    --color-text-muted: var(--tp-neutral-400);
    --color-border: var(--tp-neutral-800);
    --color-border-strong: var(--tp-neutral-475);
    --color-focus: var(--tp-blue-300);

    --color-success-text: var(--tp-green-300);
    --color-success-subtle: var(--tp-green-950);
    --color-danger-text: var(--tp-red-300);
    --color-danger-subtle: var(--tp-red-950);
    --color-warning-text: var(--tp-yellow-200);
    --color-warning-subtle: var(--tp-yellow-950);
    --color-info-text: var(--tp-blue-300);
    --color-info-subtle: var(--tp-blue-950);

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ---- sunlight: maximum contrast, 2px borders, no shadows ----------------------------------------- */
:where([data-scheme="sunlight"], [data-scheme="sunlight"] [data-theme]) {
    color-scheme: light;
    --color-bg: var(--tp-neutral-0);
    --color-surface: var(--tp-neutral-0);
    --color-surface-2: var(--tp-neutral-125);
    --color-text: var(--tp-neutral-black);
    --color-text-muted: var(--tp-neutral-850);
    --color-border: var(--tp-neutral-700);
    --color-border-strong: var(--tp-neutral-black);
    --border-width: 2px;
    --border-strong-width: 2px;
    --color-focus: var(--tp-neutral-black);
    --color-focus-halo: var(--tp-neutral-0);
    --focus-width: 4px;

    --color-success-text: var(--tp-green-900);
    --color-success-subtle: var(--tp-neutral-0);
    --color-success-solid: var(--tp-green-900);
    --color-danger-text: var(--tp-red-900);
    --color-danger-subtle: var(--tp-neutral-0);
    --color-danger-solid: var(--tp-red-900);
    --color-warning-text: var(--tp-yellow-900);
    --color-warning-subtle: var(--tp-neutral-0);
    --color-info-text: var(--tp-blue-900);
    --color-info-subtle: var(--tp-neutral-0);
    --color-info-solid: var(--tp-blue-900);

    --shadow-1: none;
    --shadow-2: none;
    --shadow-3: none;
    --shadow-4: none;
}
}

/* ---- tokens/themes.css ---- */
@layer tokens {
/* Product themes and module accents (docs/designs/design-system.md, section 2, "Themes and module accents").
   Read semantic.css first: the same scope rules and the same zero-specificity ordering apply.

   - data-theme on <html> names the product: chrome (--color-brand*), accent roles and, for BuildProof,
     tinted neutrals. No data-theme at all means the suite theme.
   - data-accent="suite|rams|qa" on a module region or nav item changes the accent roles only, so the
     portal can show SiteScribe amber (rams) or BuildProof orange (qa) actions inside indigo chrome.
     data-accent and data-theme are never put on the same element.
   - Scheme variants are explicit compound selectors: the element is, or is inside, a [data-scheme] scope
     and is itself a theme or accent scope. They come after the light blocks, so they win by order.

   Contrast (WCAG, computed): accent text is at least 4.6:1 on every light background and subtle, at
   least 7:1 in dark and sunlight; text on the accent fill 5.5:1 or better. Mirrored in SuiteTokens.cs. */

/* ---- chrome: data-theme only --------------------------------------------------------------------- */
:where(:root, [data-theme="suite"]) {
    --color-brand: var(--tp-ink-900);
    --color-brand-hover: var(--tp-ink-800);
    --color-on-brand: var(--tp-neutral-0);
}

:where([data-theme="sitescribe"]) {
    --color-brand: var(--tp-navy-900);
    --color-brand-hover: var(--tp-navy-800);
    --color-on-brand: var(--tp-neutral-0);
}

:where([data-theme="buildproof"]) {
    --color-brand: var(--tp-teal-900);
    --color-brand-hover: var(--tp-teal-700);
    --color-on-brand: var(--tp-neutral-0);
}

/* ---- accent roles, light ------------------------------------------------------------------------- */
:where(:root, [data-theme="suite"], [data-accent="suite"]) {
    --color-accent: var(--tp-indigo-600);
    --color-on-accent: var(--tp-neutral-0);
    --color-accent-text: var(--tp-indigo-700);
    --color-accent-subtle: var(--tp-indigo-50);
}

:where([data-theme="sitescribe"], [data-accent="rams"]) {
    --color-accent: var(--tp-amber-500);
    --color-on-accent: var(--tp-neutral-ink);
    --color-accent-text: var(--tp-amber-800);
    --color-accent-subtle: var(--tp-amber-100);
}

:where([data-theme="buildproof"], [data-accent="qa"]) {
    --color-accent: var(--tp-orange-500);
    --color-on-accent: var(--tp-neutral-ink);
    --color-accent-text: var(--tp-orange-800);
    --color-accent-subtle: var(--tp-orange-100);
}

/* ---- accent roles, dark -------------------------------------------------------------------------- */
/* The suite's indigo fill is too dark on a near-black page: it lifts to indigo 400 with ink text. The
   first selector covers an <html> with a dark scheme and no data-theme (suite by default). */
:where(:root[data-scheme="dark"]:not([data-theme]),
       :is([data-scheme="dark"], [data-scheme="dark"] *):is([data-theme="suite"], [data-accent="suite"])) {
    --color-accent: var(--tp-indigo-400);
    --color-on-accent: var(--tp-neutral-ink);
    --color-accent-text: var(--tp-indigo-300);
}

:where(:is([data-scheme="dark"], [data-scheme="dark"] *):is([data-theme="sitescribe"], [data-accent="rams"])) {
    --color-accent-text: var(--tp-amber-400);
}

:where(:is([data-scheme="dark"], [data-scheme="dark"] *):is([data-theme="buildproof"], [data-accent="qa"])) {
    --color-accent-text: var(--tp-orange-300);
}

/* ---- accent roles, sunlight ---------------------------------------------------------------------- */
:where(:root[data-scheme="sunlight"]:not([data-theme]),
       :is([data-scheme="sunlight"], [data-scheme="sunlight"] *):is([data-theme="suite"], [data-accent="suite"])) {
    --color-accent-text: var(--tp-indigo-800);
}

:where(:is([data-scheme="sunlight"], [data-scheme="sunlight"] *):is([data-theme="sitescribe"], [data-accent="rams"])) {
    --color-accent-text: var(--tp-amber-900);
}

:where(:is([data-scheme="sunlight"], [data-scheme="sunlight"] *):is([data-theme="buildproof"], [data-accent="qa"])) {
    --color-accent-text: var(--tp-orange-900);
}

/* ---- BuildProof tinted neutrals: data-theme only (an accent changes accent roles only) ------------ */
/* Its card shadow is the teal one in every scheme but sunlight: elevation 1 is "today's --shadow", and
   today BuildProof's teal shadow applies in the dark scheme too. */
:where([data-theme="buildproof"]) {
    --color-bg: var(--tp-teal-grey-50);
    --shadow-1: 0 1px 2px rgba(14, 77, 100, 0.06), 0 4px 16px rgba(14, 77, 100, 0.06);
}

:where(:is([data-scheme="dark"], [data-scheme="dark"] *)[data-theme="buildproof"]) {
    --color-bg: var(--tp-teal-grey-1000);
    --color-surface: var(--tp-teal-grey-950);
    --color-surface-2: var(--tp-teal-grey-900);
}

:where(:is([data-scheme="sunlight"], [data-scheme="sunlight"] *)[data-theme="buildproof"]) {
    --color-bg: var(--tp-neutral-0);
    --shadow-1: none;
}
}

/* ---- tokens/components.css ---- */
@layer tokens {
/* Tier 3: component tokens, named --{component}-{part}-{property} (docs/designs/design-system.md,
   section 3, rule 3), plus the density switch they share. Each component adds its tokens here as it is
   built, declared on :where(:root, [data-theme], [data-accent], [data-scheme]) when they alias a role, so
   that they re-resolve inside a nested theme or accent scope (a var() resolves where it is declared).

   Density: data-density="comfortable" (the default: 44px controls, 52px rows) or "compact" (36px controls
   and rows, small text). Compact applies only with a fine pointer; touch keeps 44px targets. */

:where(:root, [data-density="comfortable"]) {
    --control-height: 44px;
    --row-height: 52px;
    --density-font-size: var(--font-size-md);
}

@media (pointer: fine) {
    :where([data-density="compact"]) {
        --control-height: 36px;
        --row-height: 36px;
        --density-font-size: var(--font-size-sm);
    }
}

:where(:root) {
    /* Touch target: 44px is the aim, 24px the floor (WCAG 2.5.8). */
    --target-size: 44px;
    --target-size-min: 24px;
    --focus-offset: 2px;

    /* Icon (Components/Icon.razor). Inherit follows the text around the icon. */
    --icon-size-inherit: 1.25em;
    --icon-size-sm: 1rem;
    --icon-size-md: 1.25rem;
    --icon-size-lg: 1.5rem;
    --icon-size-xl: 2rem;

    /* Overlays (Components/Overlays, css/components/overlays.css). */
    --overlay-scrim: rgb(0 0 0 / 0.45);
    --dialog-width: 32rem;
    --sheet-width: 28rem;
    --popover-width: 22rem;
    --menu-min-width: 12rem;
    --tooltip-width: 16rem;

    /* Shell v2 (Components/Shell, css/layout/shell.css; design section 7): a 264px sidebar that collapses to a 64px
       rail, a 56px top bar, the phone tab bar, and the detail panel: beside main where the window is wide enough for
       both (from 85rem, about 1,360px), 42% of the body between 30rem and 48rem (docs/ui/projects-charts-and-record-view.md);
       under main, at full width, below that. */
    --shell-sidebar-width: 16.5rem;
    --shell-rail-width: 4rem;
    --shell-topbar-height: 3.5rem;
    --shell-tabbar-height: 4rem;
    --shell-detail-width: clamp(30rem, 42%, 48rem);
}

/* The shell's chrome (the sidebar) is the product's brand colour in every scheme: suite ink, SiteScribe navy,
   BuildProof teal. Text on it, and on its hover and current-item colour, is the on-brand colour (both pairs are in
   SuiteTokens.TextPairs). Re-declared on every scope, so a nested theme gets its own brand. */
:where(:root, [data-theme], [data-accent], [data-scheme]) {
    --shell-chrome-bg: var(--color-brand);
    --shell-chrome-hover: var(--color-brand-hover);
    --shell-chrome-text: var(--color-on-brand);
}

/* Brand logos (Components/Brand/BrandLogo.razor, css/base/brand.css; brand/README.md). A logo keeps its own
   brand's colours whatever the page's theme. These are the colours of a logo that follows the scheme (Scheme
   Auto): declared on every scheme scope, so a logo takes the scheme of its nearest data-scheme, then mapped by
   the logo's own data-logo to the parts brand.css paints. They are the colours of each brand's lockup-light.svg
   and lockup-dark.svg; BrandLogoTests fails if they differ from BrandArt.g.cs. A sunlight scheme takes the
   light ones. The height of a logo: --brand-logo-height, set by the element around it. */
:where(:root) {
    --brand-logo-height: 2rem;
}

:where(:root, [data-scheme]) {
    --brand-logo-endorsement-ink: var(--tp-neutral-600);
    --brand-logo-suite-ink: var(--tp-ink-900);
    --brand-logo-suite-node: var(--tp-indigo-600);
    --brand-logo-sitescribe-ink: var(--tp-navy-900);
    --brand-logo-sitescribe-node: var(--tp-amber-500);
    --brand-logo-sitescribe-descriptor: var(--tp-amber-800);
    --brand-logo-buildproof-ink: var(--tp-teal-900);
    --brand-logo-buildproof-node: var(--tp-orange-500);
}

:where([data-scheme="dark"]) {
    --brand-logo-endorsement-ink: var(--tp-neutral-300);
    --brand-logo-suite-ink: var(--tp-neutral-0);
    --brand-logo-suite-node: var(--tp-indigo-400);
    --brand-logo-sitescribe-ink: var(--tp-neutral-0);
    --brand-logo-sitescribe-descriptor: var(--tp-amber-400);
    --brand-logo-buildproof-ink: var(--tp-neutral-0);
}

/* TechnoPulse Projects is the parent's ink with indigo nodes and "Projects" in the nodes' indigo. */
:where([data-logo="suite"], [data-logo="projects"]) {
    --brand-logo-ink: var(--brand-logo-suite-ink);
    --brand-logo-node: var(--brand-logo-suite-node);
    --brand-logo-descriptor: var(--brand-logo-suite-node);
    --brand-logo-endorsement: var(--brand-logo-endorsement-ink);
}

:where([data-logo="sitescribe"]) {
    --brand-logo-ink: var(--brand-logo-sitescribe-ink);
    --brand-logo-node: var(--brand-logo-sitescribe-node);
    --brand-logo-descriptor: var(--brand-logo-sitescribe-descriptor);
    --brand-logo-endorsement: var(--brand-logo-endorsement-ink);
}

:where([data-logo="buildproof"]) {
    --brand-logo-ink: var(--brand-logo-buildproof-ink);
    --brand-logo-node: var(--brand-logo-buildproof-node);
    --brand-logo-descriptor: var(--brand-logo-buildproof-ink);
    --brand-logo-endorsement: var(--brand-logo-endorsement-ink);
}
}

/* ---- base/elements.css ---- */
@layer base {
/* Base layer: foundations shared by every component (docs/designs/design-system.md, sections 3 and 6).
   Imported into layer(base) by suite.css. Element selectors added here later apply only inside
   [data-ui="2"] (section 3, rule 4); class rules use the tp- prefix, so nothing here can reach a legacy
   screen. */

/* Icon (Components/Icon.razor): an SVG sprite symbol drawn in currentColor. */
.tp-icon {
    display: inline-block;
    flex: none;
    width: var(--icon-size, var(--icon-size-inherit));
    height: var(--icon-size, var(--icon-size-inherit));
    vertical-align: -0.25em;
    overflow: visible;
}

.tp-icon[data-size="sm"] { --icon-size: var(--icon-size-sm); }
.tp-icon[data-size="md"] { --icon-size: var(--icon-size-md); }
.tp-icon[data-size="lg"] { --icon-size: var(--icon-size-lg); }
.tp-icon[data-size="xl"] { --icon-size: var(--icon-size-xl); }
}

/* ---- base/a11y.css ---- */
@layer base {
/* Base layer: accessibility foundations (docs/designs/design-system.md, sections 6 and 11). Imported into
   layer(base) by suite.css. Class rules use the tp- prefix only, so nothing here reaches a legacy screen
   until its markup opts in. */

/* Skip link: the first tab stop of the shell, out of sight until it has focus (WCAG 2.4.1). Its target
   takes focus through ui.js focusTarget. Hidden by clipping, not by moving it off the page, so it never
   adds scrollable overflow. */
.tp-skip-link {
    position: fixed;
    inset-block-start: var(--space-2);
    inset-inline-start: var(--space-2);
    z-index: var(--z-banner);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-3);
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.tp-skip-link:not(:focus) {
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
}

/* ---- base/brand.css ---- */
@layer base {
/* Brand logos (Components/Brand/BrandLogo.razor; docs/designs/design-system.md, section 4; brand/README.md).
   Imported into layer(base) by suite.css, and inlined into the portals' critical CSS with the tokens, because
   the static landing and boot screens draw logos before the stylesheet bundle arrives.

   A logo is an inline <svg> whose parts carry their colours as SVG attributes, so it draws correctly with no
   stylesheet at all. Size: its height is --brand-logo-height (tokens/components.css, 2rem), which the element
   around it may set from any layer; the width follows the drawing. A logo that follows the scheme
   (tp-brand-logo--auto) is recoloured here from the --brand-logo-* tokens its data-logo maps it to. */
.tp-brand-logo {
    display: inline-block;
    flex: none;
    width: auto;
    max-width: 100%;
    height: var(--brand-logo-height);
    vertical-align: middle;
    overflow: visible;
}

.tp-brand-logo--auto .tp-brand-logo__line { stroke: var(--brand-logo-ink); }
.tp-brand-logo--auto .tp-brand-logo__node { fill: var(--brand-logo-node); }
.tp-brand-logo--auto .tp-brand-logo__name { fill: var(--brand-logo-ink); }
.tp-brand-logo--auto .tp-brand-logo__descriptor { fill: var(--brand-logo-descriptor); }
.tp-brand-logo--auto .tp-brand-logo__endorsement { fill: var(--brand-logo-endorsement); }
}

/* ---- layout/shell.css ---- */
@layer layout {
/* Shell v2 (Components/Shell; docs/designs/design-system.md, section 7). Imported into layer(layout) by suite.css;
   tp- classes only, so no legacy screen changes. The live portals' bundle leaves this file out until DS-S02 puts
   them on SuiteShell (tools/css/build-css-bundles.mjs).

   Breakpoints as the components': phone below md (768px), the sidebar from md, as a 64px rail until lg (1024px)
   unless the person expanded it, and 264px from lg unless they collapsed it. The sidebar is a size container: its
   rail look follows its own width (@container tp-sidebar), so it is written once whatever set the width.

   Current items are shown by an indicator bar and weight, never by colour alone (section 11, item 11). The chrome
   is the product's brand colour (--shell-chrome-*), so the focus ring inside it is the on-brand colour. */

/* ---- the frame ------------------------------------------------------------------------------------ */

.tp-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas: "top" "banners" "body" "tabs";
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family-sans);
}

@media (min-width: 768px) {
    .tp-shell {
        --shell-side: var(--shell-rail-width);
        grid-template-columns: var(--shell-side) minmax(0, 1fr);
        grid-template-rows: auto auto 1fr;
        grid-template-areas: "side top" "side banners" "side body";
    }

    .tp-shell[data-sidebar="expanded"] { --shell-side: var(--shell-sidebar-width); }
}

@media (min-width: 1024px) {
    .tp-shell[data-sidebar="auto"] { --shell-side: var(--shell-sidebar-width); }
}

/* Anchors and focused fields stop below the sticky top bar, and above the phone tab bar (WCAG 2.4.11). */
:root:has(.tp-shell) { scroll-padding-block-start: calc(var(--shell-topbar-height) + var(--space-2)); }

@media (max-width: 767.98px) {
    :root:has(.tp-shell) { scroll-padding-block-end: calc(var(--shell-tabbar-height) + var(--space-2)); }
}

/* ---- the sidebar ---------------------------------------------------------------------------------- */

.tp-shell__sidebar { display: none; }

@media (min-width: 768px) {
    .tp-shell__sidebar {
        grid-area: side;
        display: flex;
        position: sticky;
        inset-block-start: 0;
        z-index: var(--z-chrome);
        block-size: 100vh;
        block-size: 100dvh;
    }
}

.tp-sidebar {
    --color-focus: var(--shell-chrome-text);
    --color-focus-halo: transparent;
    container: tp-sidebar / inline-size;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--shell-chrome-bg);
    color: var(--shell-chrome-text);
}

.tp-sidebar__head {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-3) var(--space-2);
}

.tp-sidebar__brand {
    --brand-logo-height: 1.75rem;
    display: flex;
    align-items: center;
    min-block-size: var(--target-size);
    padding: 0 var(--space-2);
    border-radius: var(--radius-sm);
    color: inherit;
}

.tp-sidebar__mark { display: none; }

.tp-sidebar__nav {
    flex: 1;
    padding: 0 var(--space-3) var(--space-3);
}

.tp-sidebar__group {
    margin: var(--space-5) var(--space-3) var(--space-1);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tp-sidebar__list,
.tp-sidebar__children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-sidebar__list { display: flex; flex-direction: column; gap: 2px; }
.tp-sidebar__children { display: flex; flex-direction: column; gap: 2px; margin-block: 2px var(--space-1); padding-inline-start: var(--space-6); }
.tp-sidebar__children[hidden] { display: none; }

.tp-sidebar__row { display: flex; align-items: center; gap: 2px; }
.tp-sidebar__row > .tp-nav-link { flex: 1; min-inline-size: 0; }

.tp-sidebar .tp-nav-link:hover,
.tp-sidebar .tp-sidebar__button:hover,
.tp-sidebar__toggle:hover { background: var(--shell-chrome-hover); }

.tp-sidebar .tp-nav-link[aria-current="page"] {
    background: var(--shell-chrome-hover);
    font-weight: var(--font-weight-semibold);
}

.tp-sidebar__children .tp-nav-link { min-block-size: var(--control-height); font-size: var(--font-size-sm); }

.tp-sidebar__toggle {
    display: inline-grid;
    flex: none;
    place-items: center;
    inline-size: var(--control-height);
    block-size: var(--control-height);
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.tp-sidebar__toggle[aria-expanded="true"] .tp-icon { transform: rotate(180deg); }

@media (prefers-reduced-motion: no-preference) {
    .tp-sidebar__toggle .tp-icon { transition: transform var(--motion-duration-sm) var(--motion-ease); }
}

.tp-sidebar__foot {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-3);
    border-block-start: var(--border-width) solid var(--shell-chrome-hover);
}

.tp-sidebar__button {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-block-size: var(--target-size);
    padding: 0 var(--space-3);
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.tp-sidebar__expand { display: none; }

:is(.tp-sidebar__brand, .tp-sidebar__toggle, .tp-sidebar__button):focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: calc(var(--focus-width) * -1);
}

/* The rail: icons only. Labels stay for screen readers (they name the links); pages, group headings and the
   lockup go; the brand mark takes the lockup's place. */
@container tp-sidebar (max-width: 6rem) {
    .tp-sidebar__head { padding-inline: var(--space-2); }
    .tp-sidebar__nav { padding-inline: var(--space-2); }
    .tp-sidebar__foot { padding: var(--space-3) var(--space-2); }
    .tp-sidebar__brand { justify-content: center; padding: 0; }
    .tp-sidebar__lockup { display: none; }
    .tp-sidebar__mark { display: block; }

    .tp-sidebar__group {
        block-size: var(--border-width);
        margin: var(--space-3) var(--space-2);
        overflow: hidden;
        background: var(--shell-chrome-hover);
        color: transparent;
    }

    /* The host's slots (the project switcher, the AI meter) have no rail form yet (DS-K08 gives the switcher one). */
    .tp-sidebar__slot,
    .tp-sidebar__toggle,
    .tp-sidebar__children,
    .tp-sidebar__collapse { display: none; }

    .tp-sidebar__expand { display: flex; }

    :is(.tp-sidebar .tp-nav-link, .tp-sidebar__button) { justify-content: center; padding: 0; }

    :is(.tp-sidebar .tp-nav-link__label, .tp-sidebar .tp-nav-link__badge, .tp-sidebar__button-label) {
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .tp-sidebar .tp-nav-link__dot { position: absolute; inset-block-start: var(--space-2); inset-inline-end: var(--space-2); }
}

/* ---- navigation links (sidebar, More sheet) ------------------------------------------------------- */

.tp-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-block-size: var(--target-size);
    padding: 0 var(--space-3);
    border-radius: var(--radius-sm);
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.tp-nav-link__icon { flex: none; }

.tp-nav-link__label {
    flex: 1;
    min-inline-size: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-nav-link__dot {
    flex: none;
    inline-size: 0.5rem;
    block-size: 0.5rem;
    border-radius: 50%;
    background: var(--color-accent);
}

.tp-nav-link__badge {
    flex: none;
    padding: 0 var(--space-2);
    border: var(--border-width) solid currentColor;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
}

.tp-nav-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    inset-block: var(--space-2);
    inset-inline-start: 0;
    inline-size: 3px;
    border-radius: var(--radius-pill);
    background: currentColor;
}

.tp-nav-link:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: calc(var(--focus-width) * -1);
}

/* ---- the top bar ---------------------------------------------------------------------------------- */

.tp-topbar {
    grid-area: top;
    position: sticky;
    inset-block-start: 0;
    z-index: var(--z-bar);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    min-block-size: var(--shell-topbar-height);
    padding: env(safe-area-inset-top) var(--space-2) 0 var(--space-4);
    border-block-end: var(--border-width) solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
}

.tp-topbar:has(.tp-topbar__back) { padding-inline-start: var(--space-1); }

.tp-topbar__where {
    display: flex;
    flex: 1;
    align-items: center;
    min-inline-size: 0;
}

.tp-topbar__title {
    overflow: hidden;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-topbar__crumbs { display: none; }

.tp-topbar__actions,
.tp-topbar__account {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--space-1);
}

.tp-topbar__search {
    display: inline-grid;
    flex: none;
    place-items: center;
    inline-size: var(--control-height);
    block-size: var(--control-height);
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text);
    font: inherit;
    cursor: pointer;
}

.tp-topbar__search:hover { background: var(--color-surface-2); }

.tp-topbar__search-text {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.tp-topbar__search:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

/* On phones the account is in the More sheet. */
@media (max-width: 767.98px) {
    .tp-topbar__account { display: none; }
}

@media (min-width: 768px) {
    .tp-topbar { gap: var(--space-2); padding-inline: var(--space-6) var(--space-3); }
    .tp-topbar__back { display: none; }
    .tp-topbar__crumbs { display: block; min-inline-size: 0; }
    .tp-topbar[data-crumbs] .tp-topbar__title { display: none; }
}

/* From lg the search is a field-like button (it opens the command palette rather than taking text itself); below
   lg it is an icon, so the breadcrumbs keep their room. */
@media (min-width: 1024px) {
    .tp-topbar__search {
        display: inline-flex;
        justify-content: flex-start;
        gap: var(--space-2);
        inline-size: min(18rem, 30vw);
        padding: 0 var(--space-3);
        border: var(--border-width) solid var(--color-border-strong);
        background: var(--color-surface);
        color: var(--color-text-muted);
    }

    .tp-topbar__search-text {
        position: static;
        inline-size: auto;
        block-size: auto;
        overflow: hidden;
        clip-path: none;
        text-overflow: ellipsis;
    }
}

/* ---- breadcrumbs ---------------------------------------------------------------------------------- */

.tp-breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    min-inline-size: 0;
}

/* Earlier steps may shrink to an ellipsis; the current page keeps its whole name for as long as it can. */
.tp-breadcrumbs__item:last-child { flex: none; max-inline-size: 60%; }

.tp-breadcrumbs__sep { flex: none; color: var(--color-text-muted); }

.tp-breadcrumbs__link {
    overflow: hidden;
    color: var(--color-text-muted);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-overflow: ellipsis;
    text-underline-offset: 0.18em;
    white-space: nowrap;
}

.tp-breadcrumbs__link[aria-current="page"] {
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

a.tp-breadcrumbs__link:hover { color: var(--color-text); }

a.tp-breadcrumbs__link:focus-visible {
    border-radius: var(--radius-xs);
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

/* ---- the user menu -------------------------------------------------------------------------------- */

.tp-user-menu__trigger { gap: var(--space-2); padding-inline: var(--space-1) var(--space-2); }

.tp-avatar {
    display: inline-grid;
    flex: none;
    place-items: center;
    inline-size: 2rem;
    block-size: 2rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.tp-user-menu__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-inline-size: 12rem;
    line-height: var(--line-height-tight);
    text-align: start;
}

.tp-user-menu__name,
.tp-user-menu__organisation {
    max-inline-size: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-user-menu__organisation {
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-regular);
}

/* Below lg the button shows the avatar only; the name still names it. */
@media (max-width: 1023.98px) {
    .tp-user-menu__text,
    .tp-user-menu__chevron {
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* ---- banners, main and the detail panel ----------------------------------------------------------- */

.tp-shell__banners { grid-area: banners; }

.tp-shell__body {
    grid-area: body;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
}

.tp-shell__main {
    min-inline-size: 0;
    padding: var(--space-4) var(--space-4) var(--space-8);
}

.tp-shell__detail {
    min-inline-size: 0;
    padding: var(--space-4);
    border-block-start: var(--border-width) solid var(--color-border);
    background: var(--color-surface);
}

@media (min-width: 768px) {
    .tp-shell__main { padding: var(--space-6) var(--space-6) var(--space-10); }
}

/* Beside main only where both are readable: a record pane of 30rem or more next to a list that keeps a table's width.
   Narrower, the detail is a full-width page under main (a host hides its list while a record is open). */
@media (min-width: 85rem) {
    .tp-shell__body[data-detail] { grid-template-columns: minmax(0, 1fr) var(--shell-detail-width); }

    .tp-shell__detail {
        position: sticky;
        inset-block-start: var(--shell-topbar-height);
        min-block-size: calc(100dvh - var(--shell-topbar-height));
        max-block-size: calc(100dvh - var(--shell-topbar-height));
        overflow-y: auto;
        padding: var(--space-6) var(--space-5);
        border-block-start: 0;
        border-inline-start: var(--border-width) solid var(--color-border);
    }
}

/* ---- the phone tab bar ---------------------------------------------------------------------------- */

.tp-tabbar {
    grid-area: tabs;
    position: sticky;
    inset-block-end: 0;
    z-index: var(--z-bar);
    padding-block-end: env(safe-area-inset-bottom);
    border-block-start: var(--border-width) solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-2);
}

.tp-tabbar__list {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    inline-size: 100%;
    min-block-size: var(--shell-tabbar-height);
    padding: var(--space-1) 2px;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    font-size: var(--font-size-xs);
    line-height: var(--line-height-tight);
    text-decoration: none;
    cursor: pointer;
}

.tp-tab__label {
    max-inline-size: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-tab:is([aria-current], [data-holds-current]) {
    color: var(--color-accent-text);
    font-weight: var(--font-weight-semibold);
}

.tp-tab:is([aria-current], [data-holds-current])::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 28%;
    block-size: 3px;
    border-radius: 0 0 var(--radius-pill) var(--radius-pill);
    background: currentColor;
}

.tp-tab--primary { color: var(--color-text); }

.tp-tab__primary-mark {
    display: grid;
    place-items: center;
    inline-size: 2.5rem;
    block-size: 2.5rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-on-accent);
}

.tp-tab--primary[aria-current]::before { content: none; }

.tp-tab:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: calc(var(--focus-width) * -1);
}

@media (min-width: 768px) {
    .tp-tabbar { display: none; }
}

/* ---- the More sheet ------------------------------------------------------------------------------- */

.tp-more__header { margin-block-end: var(--space-4); }

.tp-more__section + .tp-more__section { margin-block-start: var(--space-4); }

.tp-more__heading {
    margin: 0 0 var(--space-1);
    padding-inline: var(--space-3);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.tp-more__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-more__children { margin-block-start: 2px; padding-inline-start: var(--space-8); }

.tp-more .tp-nav-link:hover { background: var(--color-surface-2); }

.tp-more .tp-nav-link[aria-current="page"] {
    background: var(--color-surface-2);
    font-weight: var(--font-weight-semibold);
}

.tp-more__button {
    inline-size: 100%;
    border: 0;
    background: transparent;
    text-align: start;
    cursor: pointer;
}

.tp-more__account { padding-block-start: var(--space-4); border-block-start: var(--border-width) solid var(--color-border); }

.tp-more__who {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0 0 var(--space-2);
    padding-inline: var(--space-3);
}

.tp-more__name { display: block; font-weight: var(--font-weight-semibold); }
.tp-more__organisation { display: block; color: var(--color-text-muted); font-size: var(--font-size-sm); }

/* ---- module scope, print and forced colours -------------------------------------------------------- */

.tp-module-scope { display: contents; }

@media print {
    .tp-shell__sidebar,
    .tp-topbar,
    .tp-tabbar,
    .tp-skip-link { display: none; }

    .tp-shell { display: block; }
}

@media (forced-colors: active) {
    .tp-nav-link[aria-current="page"]::before,
    .tp-tab:is([aria-current], [data-holds-current])::before {
        background: CanvasText;
        forced-color-adjust: none;
    }

    .tp-sidebar { border-inline-end: var(--border-width) solid CanvasText; }
}

/* ---- the project switcher (DS-K08) ---------------------------------------------------------------------- */

.tp-project-switcher__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    inline-size: 100%;
    min-block-size: var(--target-size);
    padding: var(--space-1) var(--space-3);
    border: var(--border-width) solid var(--shell-chrome-hover);
    border-radius: var(--radius-sm);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.tp-project-switcher__trigger:hover { background: var(--shell-chrome-hover); }

.tp-project-switcher__trigger:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

.tp-project-switcher__current,
.tp-project-switcher__text {
    display: flex;
    flex-direction: column;
    min-inline-size: 0;
    line-height: var(--line-height-tight);
}

.tp-project-switcher__name {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-project-switcher__detail {
    font-size: var(--font-size-xs);
    opacity: 0.8;
}

.tp-project-switcher { min-inline-size: 16rem; max-inline-size: 22rem; }

.tp-project-switcher__list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-project-switcher__search { display: block; margin-block-end: var(--space-2); }

.tp-project-switcher__item,
.tp-project-switcher__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    min-block-size: var(--target-size);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    text-decoration: none;
}

.tp-project-switcher__item:hover,
.tp-project-switcher__footer:hover { background: var(--color-surface-2); }

.tp-project-switcher__item[aria-current] { color: var(--color-accent-text); }

.tp-project-switcher__item:focus-visible,
.tp-project-switcher__footer:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: calc(var(--focus-width) * -1);
}

.tp-project-switcher__footer {
    justify-content: flex-start;
    margin-block-start: var(--space-2);
    border-block-start: var(--border-width) solid var(--color-border);
    border-radius: 0;
    color: var(--color-accent-text);
    font-weight: 600;
}

.tp-project-switcher__empty {
    margin: 0;
    padding: var(--space-2) var(--space-3);
    color: var(--color-text-muted);
}

/* In the rail the switcher keeps its button as an icon, so the project can still be changed. */
@container tp-sidebar (max-width: 6rem) {
    .tp-sidebar__slot:has(.tp-project-switcher__trigger) { display: block; }
    .tp-project-switcher__trigger { justify-content: center; padding: 0; border: 0; }
    .tp-project-switcher__current { display: none; }
}
}

/* ---- components/actions.css ---- */
@layer components {
/* Actions: Button, IconButton and Link (Components/Actions), and the button classes the overlays use
   (ConfirmDialog, Popover and Menu triggers). Imported into layer(components) by suite.css; tp- classes
   only. State is read from attributes (disabled, aria-busy, aria-pressed, aria-expanded), never from a
   parallel class. */

.tp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: var(--control-height);
    min-width: var(--target-size-min);
    padding: 0 var(--space-4);
    border: var(--border-width) solid transparent;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    text-decoration: none;
    cursor: pointer;
}

.tp-button:disabled { opacity: 0.55; cursor: not-allowed; }
.tp-button[aria-busy="true"] { cursor: progress; }

.tp-button:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
    box-shadow: 0 0 0 calc(var(--focus-width) + var(--focus-offset)) var(--color-focus-halo);
}

.tp-button--primary { background: var(--color-accent); color: var(--color-on-accent); }
.tp-button--primary:hover:not(:disabled) { background: var(--color-accent-text); color: var(--color-surface); }

.tp-button--secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); }
.tp-button--secondary:hover:not(:disabled) { background: var(--color-surface-2); }

.tp-button--ghost { background: transparent; color: var(--color-text); }
.tp-button--ghost:hover:not(:disabled),
.tp-button--ghost[aria-expanded="true"] { background: var(--color-surface-2); }

.tp-button--danger { background: var(--color-danger-solid); color: var(--color-on-danger-solid); }
.tp-button--danger:hover:not(:disabled) { background: var(--color-danger-text); color: var(--color-surface); }

.tp-menu__trigger { min-width: var(--control-height); padding: 0 var(--space-2); }

/* A busy button keeps its colours (its label stays readable) and its size; the spinner takes the
   icon's place and is drawn in the button's own text colour. */
.tp-button .tp-spinner__mark { border-color: currentColor; border-inline-end-color: transparent; }

.tp-button--full { inline-size: 100%; }

/* IconButton: a square target of the control height (44px; 36px in compact density with a mouse). */
.tp-icon-button {
    inline-size: var(--control-height);
    block-size: var(--control-height);
    min-width: var(--control-height);
    padding: 0;
    flex: none;
}

.tp-icon-button[aria-pressed="true"] {
    background: var(--color-surface-2);
    border-color: var(--color-accent-text);
    box-shadow: inset 0 0 0 1px var(--color-accent-text);
    color: var(--color-accent-text);
}

/* Link: underlined in running text, in the accent text colour (4.5:1 or better in every theme and
   scheme), so it is never told apart by colour alone. */
.tp-link {
    color: var(--color-accent-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    border-radius: var(--radius-xs);
}

.tp-link:hover { text-decoration-thickness: 2px; }

.tp-link:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
    box-shadow: 0 0 0 calc(var(--focus-width) + var(--focus-offset)) var(--color-focus-halo);
    text-decoration-thickness: 2px;
}

.tp-link .tp-icon { vertical-align: -0.2em; }

.tp-link--standalone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-height: var(--target-size-min);
    font-weight: var(--font-weight-semibold);
}

@media (forced-colors: active) {
    .tp-button { border-color: ButtonText; }
    .tp-icon-button[aria-pressed="true"] { outline: 2px solid Highlight; }
}
}

/* ---- components/forms.css ---- */
@layer components {
/* Forms (Components/Forms): FormField and its controls, the choice controls, the pickers (Combobox,
   PeoplePicker, TagInput), the date and time fields, ErrorSummary and FormActions. Imported into
   layer(components) by suite.css; tp- classes only. State is read from the native and ARIA states
   (:checked, :disabled, [readonly], [aria-invalid], [aria-pressed], [aria-selected]), never from a
   parallel class; the one exception is .is-active, which ui.js puts on the option aria-activedescendant
   names. Text in a control is never below --font-size-md, so iOS does not zoom on focus. */

/* ---- the field frame ---------------------------------------------------------------------------- */

.tp-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
    margin: 0 0 var(--space-5);
    padding: 0;
    border: 0;
}

.tp-field__label {
    padding: 0;
    color: var(--color-text);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
}

.tp-field__marker { font-weight: var(--font-weight-regular); color: var(--color-text-muted); }

.tp-field__hint,
.tp-field__note,
.tp-field__error {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

.tp-field__hint, .tp-field__note { color: var(--color-text-muted); }

.tp-field__note, .tp-field__error { display: flex; align-items: flex-start; gap: var(--space-1); }
.tp-field__note .tp-icon, .tp-field__error .tp-icon { margin-block-start: 0.1em; }
.tp-field__note[data-kind="suggested"] .tp-icon { color: var(--color-accent-text); }

.tp-field__error { color: var(--color-danger-text); font-weight: var(--font-weight-semibold); }

/* ---- text, number and select controls ----------------------------------------------------------- */

.tp-input {
    box-sizing: border-box;
    inline-size: 100%;
    min-height: var(--control-height);
    padding: var(--space-2) var(--space-3);
    border: var(--border-strong-width) solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
}

.tp-input:focus {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
    box-shadow: 0 0 0 calc(var(--focus-width) + var(--focus-offset)) var(--color-focus-halo);
}

.tp-input[aria-invalid="true"] {
    border-color: var(--color-danger-text);
    box-shadow: inset 0 0 0 1px var(--color-danger-text);
}

.tp-input[aria-invalid="true"]:focus {
    box-shadow: inset 0 0 0 1px var(--color-danger-text), 0 0 0 calc(var(--focus-width) + var(--focus-offset)) var(--color-focus-halo);
}

.tp-input[readonly] { background: var(--color-surface-2); border-style: dashed; }
.tp-input:disabled { opacity: 0.55; cursor: not-allowed; }

.tp-textarea { min-height: calc(var(--control-height) * 2); resize: vertical; }

.tp-input-group { display: flex; align-items: center; gap: var(--space-2); }
.tp-input--number { max-inline-size: 10rem; font-variant-numeric: var(--font-numeric-data); }
.tp-input-group__unit { color: var(--color-text-muted); }

.tp-select { position: relative; display: block; }
.tp-select__control { appearance: none; padding-inline-end: var(--space-10); cursor: pointer; }
.tp-select__chevron {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: var(--space-3);
    translate: 0 -50%;
    pointer-events: none;
}

/* ---- checkbox and switch ------------------------------------------------------------------------ */

.tp-check { display: flex; flex-direction: column; gap: var(--space-1); margin: 0 0 var(--space-4); }
.tp-check__row { display: flex; align-items: flex-start; gap: var(--space-3); }
.tp-check__label { min-height: 1.5rem; padding-block: 0.125rem; color: var(--color-text); cursor: pointer; }
.tp-check__hint { margin-inline-start: calc(1.5rem + var(--space-3)); }
.tp-check--switch .tp-check__hint { margin-inline-start: calc(2.75rem + var(--space-3)); }

.tp-check__input,
.tp-radio__input {
    flex: none;
    inline-size: 1.5rem;
    block-size: 1.5rem;
    margin: 0.125rem 0 0;
    accent-color: var(--color-accent-text);
    cursor: pointer;
}

.tp-switch {
    position: relative;
    flex: none;
    box-sizing: border-box;
    inline-size: 2.75rem;
    block-size: 1.5rem;
    margin: 0.125rem 0 0;
    border: var(--border-strong-width) solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    background: var(--color-surface-2);
    appearance: none;
    cursor: pointer;
}

.tp-switch::before {
    content: "";
    position: absolute;
    inset-block: 2px;
    inset-inline-start: 2px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-text-muted);
}

.tp-switch:checked { border-color: var(--color-accent-text); background: var(--color-accent); }
.tp-switch:checked::before { inset-inline-start: auto; inset-inline-end: 2px; background: var(--color-on-accent); }

.tp-check__input:focus-visible,
.tp-radio__input:focus-visible,
.tp-switch:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

.tp-check__input:disabled, .tp-radio__input:disabled, .tp-switch:disabled { cursor: not-allowed; opacity: 0.55; }
.tp-check__input:disabled + .tp-check__label,
.tp-switch:disabled + .tp-check__label,
.tp-radio__input:disabled + .tp-radio__label { cursor: not-allowed; }

/* ---- radio group -------------------------------------------------------------------------------- */

.tp-radios { display: flex; flex-direction: column; gap: var(--space-3); margin-block-start: var(--space-1); }
.tp-radios[data-inline="true"] { flex-flow: row wrap; gap: var(--space-2) var(--space-6); }
.tp-radio { display: grid; grid-template-columns: 1.5rem 1fr; column-gap: var(--space-3); align-items: start; }
.tp-radio__label { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-height: 1.5rem; padding-block: 0.125rem; cursor: pointer; }
.tp-radio__hint { grid-column: 2; }

/* ---- segmented control -------------------------------------------------------------------------- */

.tp-segmented { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-start: var(--space-1); }
.tp-segment { position: relative; display: flex; flex: 1 1 auto; min-width: 0; }

.tp-segment__input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: 0;
    opacity: 0;
}

.tp-segment__face {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: var(--control-height);
    padding: var(--space-1) var(--space-4);
    border: var(--border-strong-width) solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    cursor: pointer;
}

.tp-segment__tick { display: none; }
.tp-segment:hover .tp-segment__input:not(:checked, :disabled) + .tp-segment__face { background: var(--color-surface-2); }

.tp-segment__input:checked + .tp-segment__face {
    border-color: var(--color-accent-text);
    background: var(--color-accent);
    box-shadow: inset 0 0 0 1px var(--color-accent-text);
    color: var(--color-on-accent);
}

.tp-segment__input:checked + .tp-segment__face .tp-segment__tick { display: inline-block; }

.tp-segment__input:focus-visible + .tp-segment__face {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
    box-shadow: 0 0 0 calc(var(--focus-width) + var(--focus-offset)) var(--color-focus-halo);
}

.tp-segment__input:disabled + .tp-segment__face {
    border-style: dashed;
    color: var(--color-text-muted);
    cursor: not-allowed;
}

/* ---- choice chips ------------------------------------------------------------------------------- */

.tp-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-start: var(--space-1); }

.tp-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--control-height);
    padding: var(--space-1) var(--space-4) var(--space-1) var(--space-3);
    border: var(--border-strong-width) solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.tp-chip:hover:not(:disabled) { background: var(--color-surface-2); }
.tp-chip__on { display: none; }
.tp-chip__off { color: var(--color-text-muted); }

.tp-chip[aria-pressed="true"] {
    border-color: var(--color-accent-text);
    background: var(--color-surface-2);
    box-shadow: inset 0 0 0 1px var(--color-accent-text);
    font-weight: var(--font-weight-semibold);
}

.tp-chip[aria-pressed="true"] .tp-chip__on { display: inline-block; color: var(--color-accent-text); }
.tp-chip[aria-pressed="true"] .tp-chip__off { display: none; }

.tp-chip:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

.tp-chip:disabled { opacity: 0.55; cursor: not-allowed; }

/* The "Suggested" marker on a choice. */
.tp-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0 var(--space-2);
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1.6;
    white-space: nowrap;
}

.tp-tag[data-kind="suggested"] .tp-icon { color: var(--color-accent-text); }

/* ---- error summary and form actions ------------------------------------------------------------- */

.tp-error-summary {
    margin: 0 0 var(--space-6);
    padding: var(--space-4) var(--space-5);
    border: 2px solid var(--color-danger-text);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
}

.tp-error-summary:focus {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
    box-shadow: 0 0 0 calc(var(--focus-width) + var(--focus-offset)) var(--color-focus-halo);
}

.tp-error-summary__title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-2);
    color: var(--color-danger-text);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-snug);
}

.tp-error-summary__list { display: grid; gap: var(--space-1); margin: 0; padding-inline-start: var(--space-6); }

.tp-error-summary__list a {
    color: var(--color-danger-text);
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.tp-error-summary__list a:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

.tp-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-block-start: var(--space-6);
}

.tp-form-actions[data-sticky="true"] {
    position: sticky;
    inset-block-end: 0;
    z-index: var(--z-sticky);
    margin-inline: calc(var(--space-4) * -1);
    padding: var(--space-3) var(--space-4);
    border-block-start: var(--border-width) solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-2);
}

@media (max-width: 479.98px) {
    .tp-form-actions > .tp-button { flex: 1 1 100%; }
}

/* ---- combobox, people picker and tag input (K03) ------------------------------------------------- */

/* The box and its popup. The popup is page content under the box (above sticky form actions, below the
   top bar); the active option is the one aria-activedescendant names (ui.js sets .is-active on it). */
.tp-combobox { position: relative; }

.tp-combobox__control { padding-inline-end: var(--space-10); }

.tp-combobox__icon {
    position: absolute;
    inset-block-start: calc(var(--control-height) / 2);
    inset-inline-end: var(--space-3);
    translate: 0 -50%;
    color: var(--color-text-muted);
    pointer-events: none;
}

.tp-combobox__popup {
    position: absolute;
    inset-block-start: calc(100% + var(--space-1));
    inset-inline: 0;
    z-index: calc(var(--z-sticky) + 1);
    padding: var(--space-1);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-3);
}

.tp-combobox__popup[hidden], .tp-listbox[hidden] { display: none; }

/* The listbox itself scrolls, not the popup around it: a scrolling region with nothing focusable in it
   must be the combobox's own popup (axe scrollable-region-focusable), and ui.js scrolls the active option
   into view inside it. */
.tp-listbox { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.tp-combobox__popup > .tp-listbox { max-block-size: min(20rem, 60vh); overflow-y: auto; }

.tp-option {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--control-height);
    padding: var(--space-1) var(--space-3) var(--space-1) var(--space-2);
    border-radius: var(--radius-xs);
    color: var(--color-text);
    cursor: pointer;
}

.tp-option:hover:not([aria-disabled="true"]) { background: var(--color-surface-2); }

.tp-option.is-active {
    background: var(--color-surface-2);
    box-shadow: inset 0 0 0 var(--focus-width) var(--color-focus);
}

.tp-option__tick, .tp-option__add { flex: none; color: var(--color-accent-text); }
.tp-option__tick { visibility: hidden; }
.tp-option[aria-selected="true"] { font-weight: var(--font-weight-semibold); }
.tp-option[aria-selected="true"] .tp-option__tick { visibility: visible; }

.tp-option[aria-disabled="true"] { color: var(--color-text-muted); cursor: not-allowed; }
.tp-option[aria-disabled="true"] .tp-option__label { text-decoration: line-through; }

.tp-option__text { display: flex; flex-direction: column; min-width: 0; }
.tp-option__label { overflow-wrap: anywhere; }
.tp-option__hint { color: var(--color-text-muted); font-size: var(--font-size-sm); font-weight: var(--font-weight-regular); }

.tp-combobox__message {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    padding: var(--space-2) var(--space-3);
    color: var(--color-text-muted);
}

.tp-combobox__message[data-kind="error"] { color: var(--color-danger-text); font-weight: var(--font-weight-semibold); }

/* A person's row: initials, then the name over the job title and company. */
.tp-person { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }

.tp-person__initials {
    display: inline-grid;
    flex: none;
    place-items: center;
    inline-size: 2rem;
    block-size: 2rem;
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: 50%;
    background: var(--color-surface-2);
    color: var(--color-text);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
}

.tp-person__text { display: flex; flex-direction: column; min-width: 0; }
.tp-person__name { overflow-wrap: anywhere; }
.tp-person__detail { color: var(--color-text-muted); font-size: var(--font-size-sm); font-weight: var(--font-weight-regular); }

/* The tag input: chips and the text box in one frame that looks like a text input. */
.tp-tag-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    box-sizing: border-box;
    min-height: var(--control-height);
    padding: var(--space-1) var(--space-2);
    border: var(--border-strong-width) solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
}

.tp-tag-input:focus-within {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
    box-shadow: 0 0 0 calc(var(--focus-width) + var(--focus-offset)) var(--color-focus-halo);
}

.tp-tag-input:has(> .tp-tag-input__control[aria-invalid="true"]) {
    border-color: var(--color-danger-text);
    box-shadow: inset 0 0 0 1px var(--color-danger-text);
}

.tp-tag-input:has(> .tp-tag-input__control[readonly]) { background: var(--color-surface-2); border-style: dashed; }
/* Disabled: the frame and the controls look disabled, but the values stay at full contrast. They are the field's
   content, not part of a control, so fading them as the other disabled controls fade would fail 1.4.3. */
.tp-tag-input:has(> .tp-tag-input__control:disabled) {
    border-color: var(--color-border);
    background: var(--color-surface-2);
    cursor: not-allowed;
}

.tp-tag-input:has(> .tp-tag-input__control:disabled) > .tp-tag-input__control,
.tp-tag-chip__remove:disabled { opacity: 0.55; }

.tp-tag-input__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); max-inline-size: 100%; margin: 0; padding: 0; list-style: none; }

.tp-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    max-inline-size: 100%;
    min-height: 2rem;
    padding-inline: var(--space-3) var(--space-1);
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    background: var(--color-surface-2);
    font-size: var(--font-size-sm);
}

.tp-tag-chip__text { overflow-wrap: anywhere; }

.tp-tag-chip__remove {
    display: inline-grid;
    flex: none;
    place-items: center;
    inline-size: 1.75rem;
    block-size: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}

.tp-tag-chip__remove:hover:not(:disabled) { background: var(--color-surface); color: var(--color-text); }

.tp-tag-chip__remove:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: 0;
}

.tp-tag-chip__remove:disabled { cursor: not-allowed; }

/* The text box inside the frame: the frame shows focus; a transparent outline still shows in forced colours. */
.tp-tag-input__control {
    flex: 1 1 8rem;
    min-width: 6rem;
    min-height: calc(var(--control-height) - 2 * var(--space-1) - 2 * var(--border-strong-width));
    margin: 0;
    padding: 0 var(--space-1);
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: var(--font-size-md);
}

.tp-tag-input__control:focus,
.tp-tag-input__control:focus-visible { outline: 2px solid transparent; }

.tp-tag-input__control:disabled { cursor: not-allowed; }

/* ---- date and time fields (K03) ------------------------------------------------------------------ */

.tp-input--date, .tp-input--time { max-inline-size: 14rem; font-variant-numeric: var(--font-numeric-data); }

.tp-date-range { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); margin-block-start: var(--space-1); }
.tp-date-range__part { display: flex; flex: 0 1 14rem; flex-direction: column; gap: var(--space-1); min-width: 0; }
.tp-date-range__label { color: var(--color-text); font-weight: var(--font-weight-regular); }
.tp-date-range__presets { margin-block-start: var(--space-3); }

@media (forced-colors: active) {
    .tp-segment__input:checked + .tp-segment__face,
    .tp-chip[aria-pressed="true"] { outline: 2px solid Highlight; }
    .tp-switch:checked { background: Highlight; }
    .tp-option.is-active { outline: 2px solid Highlight; outline-offset: -2px; }
}
}

/* ---- components/feedback.css ---- */
@layer components {
/* Feedback (Components/Feedback): Alert, Banner, ToastRegion, Spinner, Skeleton, ProgressBar,
   ProgressSteps, EmptyState and ErrorState. Imported into layer(components) by suite.css; tp- classes
   only. Toasts live in the browser's top layer (a manual popover), so they need no z-index except in the
   no-popover fallback. Every motion here stops with reduced motion, and progress is still stated. */

/* ---- tones: data-tone on an alert, banner, toast or badge picks its three colours --------------- */

:is(.tp-alert, .tp-banner, .tp-toast, .tp-badge) {
    --tone-bg: var(--color-surface-2);
    --tone-text: var(--color-text);
    --tone-accent: var(--color-border-strong);
}

:is(.tp-alert, .tp-banner, .tp-toast, .tp-badge)[data-tone="info"] {
    --tone-bg: var(--color-info-subtle);
    --tone-text: var(--color-info-text);
    --tone-accent: var(--color-info-text);
}

:is(.tp-alert, .tp-banner, .tp-toast, .tp-badge)[data-tone="success"] {
    --tone-bg: var(--color-success-subtle);
    --tone-text: var(--color-success-text);
    --tone-accent: var(--color-success-text);
}

:is(.tp-alert, .tp-banner, .tp-toast, .tp-badge)[data-tone="warning"] {
    --tone-bg: var(--color-warning-subtle);
    --tone-text: var(--color-warning-text);
    --tone-accent: var(--color-warning-text);
}

:is(.tp-alert, .tp-banner, .tp-toast, .tp-badge)[data-tone="danger"] {
    --tone-bg: var(--color-danger-subtle);
    --tone-text: var(--color-danger-text);
    --tone-accent: var(--color-danger-text);
}

/* ---- alert -------------------------------------------------------------------------------------- */

.tp-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin: 0 0 var(--space-4);
    padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
    border: var(--border-width) solid var(--tone-accent);
    border-inline-start-width: 4px;
    border-radius: var(--radius-sm);
    background: var(--tone-bg);
    color: var(--color-text);
}

.tp-alert__icon { margin-block-start: 0.1em; color: var(--tone-text); }
.tp-alert__body { display: flex; flex: 1; flex-direction: column; gap: var(--space-1); min-width: 0; }
.tp-alert__title { margin: 0; color: var(--tone-text); font-weight: var(--font-weight-bold); }
.tp-alert__text > :first-child { margin-block-start: 0; }
.tp-alert__text > :last-child { margin-block-end: 0; }
.tp-alert__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-start: var(--space-2); }
.tp-alert__dismiss { margin: calc(var(--space-2) * -1) calc(var(--space-2) * -1) 0 0; }

/* Links in a message are underlined in the message's text colour (section 11, item 10). */
:is(.tp-alert, .tp-banner, .tp-toast) a:not(.tp-button) {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

:is(.tp-alert, .tp-banner, .tp-toast) a:not(.tp-button):focus-visible,
.tp-alert__details summary:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

.tp-alert__details { margin-block-start: var(--space-1); }

.tp-alert__details summary {
    min-height: var(--target-size-min);
    line-height: var(--line-height-normal);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
}

.tp-support-reference { margin: var(--space-1) 0 0; font-size: var(--font-size-sm); }
.tp-support-reference code { font-family: var(--font-family-mono); overflow-wrap: anywhere; }

/* ---- banner ------------------------------------------------------------------------------------- */

.tp-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
    border-block-end: var(--border-strong-width) solid var(--tone-accent);
    background: var(--tone-bg);
    color: var(--color-text);
}

.tp-banner__icon { flex: none; color: var(--tone-text); }
.tp-banner__text { flex: 1 1 14rem; min-width: 0; margin: 0; }
.tp-banner__action { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---- toasts ------------------------------------------------------------------------------------- */

.tp-toast-region {
    position: fixed;
    inset: auto var(--space-4) var(--space-4) auto;
    box-sizing: border-box;
    inline-size: min(26rem, calc(100vw - 2 * var(--space-4)));
    block-size: auto;
    max-block-size: calc(100vh - 2 * var(--space-4));
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: var(--color-text);
    pointer-events: none;
}

.tp-toast-region[data-fallback] { z-index: var(--z-tray); }
.tp-toast-region__list { display: flex; flex-direction: column; gap: var(--space-2); }

.tp-toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
    border: var(--border-width) solid var(--color-border);
    border-inline-start: 4px solid var(--tone-accent);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-3);
    pointer-events: auto;
}

.tp-toast__icon { flex: none; margin-block-start: var(--space-2); color: var(--tone-text); }
.tp-toast__message { flex: 1; min-width: 0; margin: 0; padding-block: var(--space-2); }

.tp-toast__action {
    flex: none;
    min-height: var(--target-size);
    padding: 0 var(--space-2);
    border: 0;
    border-radius: var(--radius-xs);
    background: none;
    color: var(--color-accent-text);
    font: inherit;
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
}

.tp-toast__action:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: calc(var(--focus-offset) * -1);
}

@media (max-width: 479.98px) {
    .tp-toast-region { inset: auto var(--space-2) var(--space-2) var(--space-2); inline-size: auto; }
}

@media (prefers-reduced-motion: no-preference) {
    .tp-toast { animation: tp-toast-in var(--motion-duration-md) var(--motion-ease); }
}

@keyframes tp-toast-in {
    from { opacity: 0; translate: 0 var(--space-2); }
}

/* ---- spinner ------------------------------------------------------------------------------------ */

.tp-spinner { display: inline-flex; align-items: center; gap: var(--space-2); vertical-align: middle; }

.tp-spinner__mark {
    --spinner-size: 1em;
    box-sizing: border-box;
    flex: none;
    inline-size: var(--spinner-size);
    block-size: var(--spinner-size);
    border: 0.15em solid var(--color-border);
    border-block-start-color: var(--color-accent-text);
    border-radius: 50%;
}

.tp-spinner[data-size="md"] .tp-spinner__mark { --spinner-size: 1.5rem; border-width: 3px; }
.tp-spinner[data-size="lg"] .tp-spinner__mark { --spinner-size: 2.5rem; border-width: 4px; }

.tp-spinner__label[data-hidden="true"] {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
    .tp-spinner__mark { animation: tp-spin 0.8s linear infinite; }
}

/* Reduced motion: a static dotted "working" mark, and the label is always shown. */
@media (prefers-reduced-motion: reduce) {
    .tp-spinner__mark { border-style: dotted; border-color: currentColor; }
    .tp-spinner__label[data-hidden="true"] { position: static; inline-size: auto; block-size: auto; overflow: visible; clip-path: none; }
}

@keyframes tp-spin {
    to { rotate: 1turn; }
}

/* ---- skeleton ----------------------------------------------------------------------------------- */

.tp-skeleton__shapes { display: flex; flex-direction: column; gap: var(--space-2); }

.tp-skeleton__line,
.tp-skeleton__block,
.tp-skeleton__circle {
    display: block;
    border-radius: var(--radius-xs);
    background: var(--color-surface-2);
}

.tp-skeleton__line { inline-size: 100%; block-size: 0.875em; }
.tp-skeleton__line[data-last="true"] { inline-size: 60%; }
.tp-skeleton__block { inline-size: var(--skeleton-width, 100%); block-size: var(--skeleton-height, 8rem); border-radius: var(--radius-md); }
.tp-skeleton__circle { inline-size: var(--skeleton-width, 2.5rem); block-size: var(--skeleton-height, var(--skeleton-width, 2.5rem)); border-radius: 50%; }

@media (prefers-reduced-motion: no-preference) {
    :is(.tp-skeleton__line, .tp-skeleton__block, .tp-skeleton__circle) {
        background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-border) 50%, var(--color-surface-2) 75%);
        background-size: 200% 100%;
        animation: tp-shimmer 1.4s ease-in-out infinite;
    }
}

@keyframes tp-shimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

/* ---- progress bar ------------------------------------------------------------------------------- */

.tp-progress { display: flex; flex-direction: column; gap: var(--space-1); }
.tp-progress__header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-3); }
.tp-progress__label { font-weight: var(--font-weight-semibold); }
.tp-progress__value { color: var(--color-text-muted); font-variant-numeric: var(--font-numeric-data); }

.tp-progress__track {
    position: relative;
    box-sizing: border-box;
    block-size: 0.875rem;
    overflow: hidden;
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    background: var(--color-surface-2);
}

.tp-progress__fill { display: block; inline-size: 0; block-size: 100%; background: var(--color-accent-text); }

.tp-progress__track[data-indeterminate="true"] .tp-progress__fill {
    inline-size: 100%;
    background: repeating-linear-gradient(-45deg, var(--color-accent-text) 0 0.5rem, transparent 0.5rem 1rem);
}

@media (prefers-reduced-motion: no-preference) {
    .tp-progress__fill { transition: inline-size var(--motion-duration-lg) var(--motion-ease); }

    .tp-progress__track[data-indeterminate="true"] .tp-progress__fill {
        inline-size: 40%;
        background: var(--color-accent-text);
        animation: tp-indeterminate 1.4s var(--motion-ease) infinite;
    }
}

@keyframes tp-indeterminate {
    from { translate: -100% 0; }
    to { translate: 250% 0; }
}

/* ---- progress steps ----------------------------------------------------------------------------- */

.tp-steps { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.tp-steps__step { display: flex; align-items: flex-start; gap: var(--space-3); color: var(--color-text-muted); }
.tp-steps__mark { color: var(--color-text-muted); }
.tp-steps__text { display: flex; flex-direction: column; min-width: 0; padding-block-start: 0.1em; }
.tp-steps__detail { color: var(--color-text-muted); font-size: var(--font-size-sm); font-weight: var(--font-weight-regular); }

.tp-steps__step[data-state="done"] { color: var(--color-text); }
.tp-steps__step[data-state="done"] .tp-steps__mark { color: var(--color-success-text); }
.tp-steps__step[data-state="current"] { color: var(--color-text); font-weight: var(--font-weight-semibold); }
.tp-steps__step[data-state="current"] .tp-steps__mark { color: var(--color-accent-text); }
.tp-steps__step[data-state="failed"] { color: var(--color-text); }
.tp-steps__step[data-state="failed"] .tp-steps__mark { color: var(--color-danger-text); }

@media (prefers-reduced-motion: no-preference) {
    .tp-steps__step[data-state="current"] .tp-steps__mark { animation: tp-spin 1.2s linear infinite; }
}

/* ---- empty and error states --------------------------------------------------------------------- */

.tp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    max-inline-size: 32rem;
    margin-inline: auto;
    padding: var(--space-10) var(--space-4);
    text-align: center;
}

.tp-empty__icon { color: var(--color-text-muted); }
.tp-error-state[data-kind="our-fault"] .tp-empty__icon { color: var(--color-danger-text); }
.tp-empty__heading { margin: 0; font-size: var(--font-size-xl); line-height: var(--line-height-snug); }
.tp-empty__text { margin: 0; color: var(--color-text-muted); }
.tp-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-block-start: var(--space-2); }
.tp-empty__details { text-align: start; }

@media (forced-colors: active) {
    :is(.tp-alert, .tp-banner, .tp-toast) { border-color: CanvasText; }
    .tp-progress__fill { background: Highlight; }
}
}

/* ---- components/badges.css ---- */
@layer components {
/* Badges (Components/Badges): StatusBadge, RagBadge, RiskBadge and SeverityBadge. Imported into
   layer(components) by suite.css after feedback.css, whose data-tone rules give a badge its colours.
   Text is always present; RAG adds a shape and a letter, severity an icon. */

.tp-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.125rem var(--space-2);
    border: var(--border-width) solid var(--tone-accent);
    border-radius: var(--radius-pill);
    background: var(--tone-bg);
    color: var(--tone-text);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
    white-space: nowrap;
    vertical-align: middle;
}

/* RAG: a neutral pill with the coloured shape and its letter. */
.tp-rag {
    --tone-bg: var(--color-surface);
    --tone-text: var(--color-text);
    --tone-accent: var(--color-border-strong);
    padding-inline-start: var(--space-1);
}

.tp-rag[data-rag="red"] { --rag-fill: var(--color-rag-red); --rag-on: var(--color-on-risk-very-high); }
.tp-rag[data-rag="amber"] { --rag-fill: var(--color-rag-amber); --rag-on: var(--color-on-risk-medium); }
.tp-rag[data-rag="green"] { --rag-fill: var(--color-rag-green); --rag-on: var(--color-on-risk-low); }
.tp-rag[data-rag="not-started"] { --rag-fill: var(--color-text-muted); }
.tp-rag[data-rag="complete"] { --rag-fill: var(--color-info-text); }

.tp-rag__shape { display: inline-grid; flex: none; place-items: center; color: var(--rag-fill); }
.tp-rag__shape > * { grid-area: 1 / 1; }
.tp-rag__shape .tp-icon { inline-size: 1.5rem; block-size: 1.5rem; vertical-align: 0; }

.tp-rag__letter {
    color: var(--rag-on);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.tp-rag[data-rag="amber"] .tp-rag__letter { padding-block-start: 0.3em; }

/* Risk: the band's fill with its readable text colour, identical to the PDF. */
.tp-risk[data-band="low"] { --tone-bg: var(--color-risk-low); --tone-text: var(--color-on-risk-low); --tone-accent: var(--color-risk-low); }
.tp-risk[data-band="medium"] { --tone-bg: var(--color-risk-medium); --tone-text: var(--color-on-risk-medium); --tone-accent: var(--color-risk-medium); }
.tp-risk[data-band="high"] { --tone-bg: var(--color-risk-high); --tone-text: var(--color-on-risk-high); --tone-accent: var(--color-risk-high); }
.tp-risk[data-band="very-high"] { --tone-bg: var(--color-risk-very-high); --tone-text: var(--color-on-risk-very-high); --tone-accent: var(--color-risk-very-high); }
.tp-risk__score { font-variant-numeric: var(--font-numeric-data); font-weight: var(--font-weight-bold); }

/* Severity: tinted from the status roles; critical on the danger fill. */
.tp-severity[data-severity="low"] { --tone-bg: var(--color-info-subtle); --tone-text: var(--color-info-text); --tone-accent: var(--color-info-text); }
.tp-severity[data-severity="medium"] { --tone-bg: var(--color-warning-subtle); --tone-text: var(--color-warning-text); --tone-accent: var(--color-warning-text); }
.tp-severity[data-severity="high"] { --tone-bg: var(--color-danger-subtle); --tone-text: var(--color-danger-text); --tone-accent: var(--color-danger-text); }
.tp-severity[data-severity="critical"] { --tone-bg: var(--color-danger-solid); --tone-text: var(--color-on-danger-solid); --tone-accent: var(--color-danger-solid); }

@media (forced-colors: active) {
    .tp-badge { border-color: CanvasText; }
}
}

/* ---- components/overlays.css ---- */
@layer components {
/* Overlays (Components/Overlays): Dialog, ConfirmDialog, Sheet, Popover, Menu and Tooltip. Imported into
   layer(components) by suite.css. Dialogs and popovers live in the browser's top layer, so none of them
   needs a z-index; only the no-popover fallback (data-fallback, iOS 16) is stacked with a token.
   Every class is tp- prefixed, so nothing here reaches a legacy screen. */

/* ---- Dialog and Sheet --------------------------------------------------------------------------- */

.tp-dialog {
    /* The <dialog> is the box; the panel inside fills it, so a click that lands on the dialog element
       itself is a click on the backdrop (ui.js closes on it). */
    box-sizing: border-box;
    width: min(var(--dialog-width), calc(100% - 2 * var(--space-4)));
    max-height: calc(100% - 2 * var(--space-4));
    padding: 0;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-4);
    overflow: hidden;
}

.tp-dialog[open] { display: flex; }

/* Custom properties reach ::backdrop only in newer browsers (it inherits from its dialog since Chromium
   122 and Safari 17.4), hence the fallback. */
.tp-dialog::backdrop { background: var(--overlay-scrim, rgb(0 0 0 / 0.45)); }

.tp-dialog__panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    max-height: 100%;
}

.tp-dialog__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-5) var(--space-2);
}

.tp-dialog__title {
    flex: 1;
    margin: 0;
    font-size: var(--font-size-xl);
    line-height: var(--line-height-snug);
    font-weight: var(--font-weight-semibold);
}

.tp-dialog__close {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: var(--target-size);
    height: var(--target-size);
    margin: calc(var(--space-2) * -1) calc(var(--space-2) * -1) 0 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}

.tp-dialog__close:hover { background: var(--color-surface-2); color: var(--color-text); }

.tp-dialog__body {
    padding: 0 var(--space-5) var(--space-5);
    overflow-y: auto;
    line-height: var(--line-height-normal);
}

.tp-dialog__body > :first-child { margin-top: 0; }
.tp-dialog__body > :last-child { margin-bottom: 0; }

.tp-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
    border-top: var(--border-width) solid var(--color-border);
}

.tp-confirm__message { color: var(--color-text-muted); }

/* Sheet: a bottom sheet on phones, a side panel from lg (1024px). */
.tp-dialog--sheet {
    width: 100%;
    max-width: 100%;
    max-height: min(90dvh, calc(100% - var(--space-8)));
    margin: auto 0 0;
    border-width: var(--border-width) 0 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@media (min-width: 1024px) {
    .tp-dialog--sheet {
        width: min(var(--sheet-width), 100%);
        height: 100%;
        max-height: 100%;
        margin: 0 0 0 auto;
        border-width: 0 0 0 var(--border-width);
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .tp-dialog[open] { animation: tp-dialog-in var(--motion-duration-md) var(--motion-ease); }
    .tp-dialog--sheet[open] { animation-name: tp-sheet-in; }
}

@keyframes tp-dialog-in {
    from { opacity: 0; transform: translateY(var(--space-2)); }
}

@keyframes tp-sheet-in {
    from { transform: translateY(100%); }
}

@media (min-width: 1024px) {
    @keyframes tp-sheet-in {
        from { transform: translateX(100%); }
    }
}

/* ---- Popover, Menu, Tooltip --------------------------------------------------------------------- */

.tp-popover,
.tp-menu,
.tp-tooltip {
    box-sizing: border-box;
    margin: 0;
    border: var(--border-width) solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
}

/* Without the popover API (ui.js data-fallback) the surface is a fixed element in the page. */
.tp-popover[data-fallback],
.tp-menu[data-fallback],
.tp-tooltip[data-fallback] {
    position: fixed;
    z-index: var(--z-banner);
}

.tp-popover {
    width: max-content;
    max-width: min(var(--popover-width), calc(100vw - 2 * var(--space-2)));
    padding: var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-3);
}

.tp-popover[open], .tp-popover:popover-open { display: block; }

.tp-menu {
    min-width: var(--menu-min-width);
    max-width: calc(100vw - 2 * var(--space-2));
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-3);
}

.tp-menu:popover-open,
.tp-menu[data-fallback]:not([hidden]) { display: flex; flex-direction: column; }

.tp-menu__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    min-height: var(--control-height);
    padding: 0 var(--space-3);
    border: 0;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--color-text);
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.tp-menu__item:hover:not(:disabled),
.tp-menu__item:focus-visible { background: var(--color-surface-2); }

.tp-menu__item:disabled { color: var(--color-text-muted); cursor: not-allowed; }

.tp-menu__item--danger { color: var(--color-danger-text); }

/* MenuItemCheckbox: the tick keeps its place while off, so the labels line up. */
.tp-menu__tick { visibility: hidden; flex: none; color: var(--color-accent-text); }
.tp-menu__item--check[aria-checked="true"] .tp-menu__tick { visibility: visible; }

.tp-tooltip-host { display: inline-flex; }

.tp-tooltip {
    max-width: var(--tooltip-width);
    padding: var(--space-1) var(--space-2);
    border-color: var(--color-text);
    border-radius: var(--radius-xs);
    background: var(--color-text);
    color: var(--color-bg);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-snug);
    pointer-events: auto;
}

/* ui.js sets data-side once it has placed a surface; until then it is measured but not shown, so it
   never flashes in the middle of the screen. */
:is(.tp-popover, .tp-menu, .tp-tooltip):popover-open:not([data-side]) { visibility: hidden; }

/* ---- Focus ------------------------------------------------------------------------------------- */

:is(.tp-dialog, .tp-popover, .tp-menu) :focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
    box-shadow: 0 0 0 calc(var(--focus-width) + var(--focus-offset)) var(--color-focus-halo);
}

.tp-menu__item:focus-visible { outline-offset: calc(var(--focus-width) * -1); }

@media (forced-colors: active) {
    .tp-dialog, .tp-popover, .tp-menu, .tp-tooltip { border: 1px solid CanvasText; }
    .tp-menu__item:focus-visible { outline-color: Highlight; }
}
}

/* ---- components/data.css ---- */
@layer components {
/* Data (Components/Data, DS-K02): GridToolbar, FilterBar, SavedViews, DataView, DataList and Pager, the parts of a
   register around its table. Imported into layer(components) by suite.css; tp- classes only. The breakpoint md is
   768px. The table itself is TechnoPulse.Ui.Data's DataGrid, styled by that library's css/data-grid.css. */

/* ---- GridToolbar -------------------------------------------------------------------------------- */

.tp-grid-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--space-3) var(--space-4);
    margin-block-end: var(--space-3);
}

.tp-grid-toolbar__search { flex: 1 1 16rem; min-inline-size: 0; max-inline-size: 28rem; }

.tp-grid-toolbar__end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    margin-inline-start: auto;
}

.tp-grid-toolbar__filters { order: 2; flex: 1 1 100%; min-inline-size: 0; }

.tp-grid-toolbar__count {
    margin: 0;
    color: var(--color-text-muted);
    font-variant-numeric: var(--font-numeric-data);
    white-space: nowrap;
}

.tp-grid-toolbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

/* A form field in a bar sits on the bar's line, without the space a form puts under it. */
:is(.tp-grid-toolbar, .tp-filter-bar) .tp-field { margin: 0; }

/* ---- FilterBar ---------------------------------------------------------------------------------- */

.tp-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
}

/* Below md the controls live in the Sheet and the "Filters (n)" button opens it; from md they are inline. */
.tp-filter-bar__controls { display: none; }

@media (min-width: 768px) {
    .tp-filter-bar__controls {
        display: flex;
        flex: 1 1 100%;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: var(--space-3) var(--space-4);
    }

    .tp-filter-bar__open { display: none; }
}

.tp-filter-bar__sheet { display: flex; flex-direction: column; gap: var(--space-4); }
.tp-filter-bar__sheet .tp-field { margin: 0; }

.tp-filter-bar__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-block-size: var(--target-size-min);
    padding: var(--space-1) var(--space-2) var(--space-1) var(--space-3);
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    background: var(--color-surface-2);
    color: var(--color-text);
    font: inherit;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-snug);
    text-align: start;
    cursor: pointer;
}

.tp-filter-chip:hover { border-color: var(--color-accent-text); }
.tp-filter-chip__label { font-weight: var(--font-weight-semibold); }
.tp-filter-chip .tp-icon { flex: none; color: var(--color-text-muted); }

@media (pointer: coarse) {
    .tp-filter-chip { min-block-size: var(--target-size); }
}

/* ---- SavedViews --------------------------------------------------------------------------------- */

.tp-saved-views {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-2);
    margin-block-end: var(--space-3);
    border-block-end: var(--border-width) solid var(--color-border);
}

.tp-saved-views__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-saved-views__item { display: flex; align-items: center; }

.tp-saved-views__link {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--control-height);
    padding: 0 var(--space-3);
    border-block-end: var(--border-strong-width) solid transparent;
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
}

.tp-saved-views__link:hover { background: var(--color-surface-2); }

.tp-saved-views__link[aria-current="page"] {
    border-block-end-color: var(--color-accent);
    color: var(--color-accent-text);
    font-weight: var(--font-weight-semibold);
}

.tp-saved-views__menu { min-inline-size: var(--target-size-min); }

/* ---- DataView ----------------------------------------------------------------------------------- */

.tp-data-view__table { display: none; }

@media (min-width: 768px) {
    .tp-data-view__table { display: block; }
    .tp-data-view__list { display: none; }
}

/* ---- DataList ----------------------------------------------------------------------------------- */

.tp-data-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-data-list__card {
    display: block;
    padding: var(--space-3) var(--space-4);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
}

.tp-data-list__card--link { min-block-size: var(--target-size); text-decoration: none; }
.tp-data-list__card--link:hover { background: var(--color-surface-2); }

.tp-data-list__card[aria-current="true"] {
    border-color: var(--color-accent);
    box-shadow: inset var(--space-1) 0 0 var(--color-accent);
}

/* ---- Pager -------------------------------------------------------------------------------------- */

.tp-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
    margin-block: var(--space-3);
}

.tp-pager__summary {
    margin: 0;
    color: var(--color-text-muted);
    font-variant-numeric: var(--font-numeric-data);
}

.tp-pager__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-pager__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    min-inline-size: var(--control-height);
    min-block-size: var(--control-height);
    padding: 0 var(--space-2);
    border-radius: var(--radius-sm);
    color: var(--color-accent-text);
    font-variant-numeric: var(--font-numeric-data);
    text-decoration: none;
}

.tp-pager__link:hover { background: var(--color-surface-2); text-decoration: underline; }

.tp-pager__page[aria-current="page"] {
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-weight: var(--font-weight-semibold);
}

.tp-pager__gap { min-inline-size: var(--space-6); color: var(--color-text-muted); text-align: center; }

/* ---- Focus -------------------------------------------------------------------------------------- */

:is(.tp-filter-bar, .tp-filter-chip, .tp-saved-views__link, .tp-data-list__card--link, .tp-pager__link):focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
    box-shadow: 0 0 0 calc(var(--focus-width) + var(--focus-offset)) var(--color-focus-halo);
}

@media (forced-colors: active) {
    .tp-filter-chip, .tp-data-list__card { border-color: CanvasText; }
    :is(.tp-saved-views__link[aria-current="page"], .tp-data-list__card[aria-current="true"], .tp-pager__page[aria-current="page"]) {
        outline: 2px solid Highlight;
        outline-offset: -2px;
    }
}
}

/* ---- components/data-display.css ---- */
@layer components {
/* Data display (Components/Data, DS-K04): Board, ActivityTimeline, and the comments (Comments, CommentThread,
   CommentComposer). Imported into layer(components) by suite.css; tp- classes only. The board and the timeline sit in a
   record view that may be a full page or a phone's width, so the board lays out its columns by its own width (a
   container query), not the window's. The mention list reuses the pickers' option rows (.tp-option, .tp-person in
   css/components/forms.css). State comes from ARIA and data- attributes: aria-busy on a card that is moving,
   data-dragging, data-drop and data-over while ui.js drags a card, data-tone on the board's status line. */

/* ---- Board -------------------------------------------------------------------------------------- */

.tp-board {
    position: relative;
    container: tp-board / inline-size;
}

/* The status line is a live region that is always there (one that appears with its first message is often not
   read out); empty, it takes no space. */
.tp-board__status {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
    padding: var(--space-2) var(--space-3);
    border: var(--border-width) solid var(--color-border);
    border-inline-start-width: var(--space-1);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    overflow-wrap: anywhere;
}

.tp-board__status:empty { margin: 0; padding: 0; border: 0; }
.tp-board__status .tp-icon { flex: none; margin-block-start: 0.125rem; }
.tp-board__status[data-tone="success"] { border-inline-start-color: var(--color-success-solid); }
.tp-board__status[data-tone="success"] .tp-icon { color: var(--color-success-text); }
.tp-board__status[data-tone="danger"] { border-inline-start-color: var(--color-danger-solid); }
.tp-board__status[data-tone="danger"] .tp-icon { color: var(--color-danger-text); }

/* Narrow (a phone, a side panel): the columns one under another. */
.tp-board__columns {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    border-radius: var(--radius-md);
}

/* From 40rem: side by side, scrolling sideways when they do not fit (the region is focusable, so the arrow keys
   scroll it too). */
@container tp-board (min-width: 40rem) {
    .tp-board__columns {
        display: grid;
        grid-auto-columns: minmax(15rem, 1fr);
        grid-auto-flow: column;
        align-items: start;
        padding-block-end: var(--space-2);
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }
}

.tp-board__column {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-inline-size: 0;
    padding: var(--space-3);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-2);
    color: var(--color-text);
}

.tp-board__column-head { display: flex; flex-direction: column; gap: var(--space-1); }

.tp-board__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
}

.tp-board__title-text { min-inline-size: 0; overflow-wrap: anywhere; }

.tp-board__count {
    flex: none;
    min-inline-size: var(--space-6);
    padding: 0 var(--space-2);
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-variant-numeric: var(--font-numeric-data);
    text-align: center;
}

.tp-board__hint { margin: 0; color: var(--color-text-muted); font-size: var(--font-size-sm); }

.tp-board__cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-board__empty {
    margin: 0;
    padding: var(--space-3);
    border: var(--border-width) dashed var(--color-border-strong);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    text-align: center;
}

.tp-board__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--space-1) var(--space-2);
    padding: var(--space-2) var(--space-1) var(--space-2) var(--space-3);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-1);
}

.tp-board__card-content { min-inline-size: 0; padding-block: var(--space-1); overflow-wrap: anywhere; }

/* The card's menu button: a 44px square (36px in compact density with a fine pointer). */
.tp-board__card-menu { inline-size: var(--control-height); padding: 0; justify-content: center; }

.tp-board__moving {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.tp-board__card[aria-busy="true"] { border-style: dashed; box-shadow: none; }

/* Dragging with a mouse or a pen (ui.js board). A finger uses the card's menu. */
@media (pointer: fine) {
    .tp-board__card[data-moves]:not([data-moves=""]) { cursor: grab; }
}

.tp-board[data-dragging] { cursor: grabbing; user-select: none; }

/* The card's own place while its copy follows the pointer. */
.tp-board__card[data-dragging] { border-style: dashed; box-shadow: none; opacity: 0.45; }

.tp-board__ghost {
    position: absolute;
    top: 0;
    left: 0;
    z-index: var(--z-raised);
    margin: 0;
    list-style: none;
    box-shadow: var(--shadow-3);
    pointer-events: none;
}

.tp-board__column[data-drop="allowed"] {
    outline: var(--focus-width) dashed var(--color-accent);
    outline-offset: calc(var(--focus-width) * -1);
}

.tp-board__column[data-drop="allowed"][data-over] { background: var(--color-surface); outline-style: solid; }

.tp-board__column[data-drop="refused"][data-over] {
    outline: var(--focus-width) dashed var(--color-danger-text);
    outline-offset: calc(var(--focus-width) * -1);
}

/* ---- ActivityTimeline ----------------------------------------------------------------------------- */

.tp-activity { display: flex; flex-direction: column; }

.tp-activity__day {
    margin: var(--space-5) 0 var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
}

.tp-activity__day:first-child { margin-block-start: 0; }

.tp-activity__entries { margin: 0; padding: 0; list-style: none; }

.tp-activity__entry {
    position: relative;
    display: grid;
    grid-template-columns: var(--space-6) minmax(0, 1fr);
    gap: var(--space-3);
    padding-block-end: var(--space-4);
    border-radius: var(--radius-xs);
}

/* The line that joins the markers of one day. */
.tp-activity__entry::before {
    position: absolute;
    inset-block: var(--space-6) 0;
    inset-inline-start: calc(var(--space-6) / 2 - 1px);
    inline-size: 2px;
    background: var(--color-border);
    content: "";
}

.tp-activity__entry:last-child { padding-block-end: 0; }
.tp-activity__entry:last-child::before { display: none; }

.tp-activity__marker {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    inline-size: var(--space-6);
    block-size: var(--space-6);
    border: var(--border-strong-width) solid var(--color-border-strong);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text-muted);
}

.tp-activity__marker[data-dot="true"]::after {
    inline-size: var(--space-2);
    block-size: var(--space-2);
    border-radius: 50%;
    background: var(--color-text-muted);
    content: "";
}

.tp-activity__content { min-inline-size: 0; padding-block-start: 0.125rem; }

.tp-activity__line { margin: 0; color: var(--color-text); line-height: var(--line-height-snug); overflow-wrap: anywhere; }
.tp-activity__actor { font-weight: var(--font-weight-semibold); }

.tp-activity__time {
    margin-inline-start: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-variant-numeric: var(--font-numeric-data);
    white-space: nowrap;
}

.tp-activity__changes {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin: var(--space-1) 0 0;
    padding: 0;
    font-size: var(--font-size-sm);
    list-style: none;
}

.tp-activity__change { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-1); overflow-wrap: anywhere; }
.tp-activity__field, .tp-activity__from, .tp-activity__arrow { color: var(--color-text-muted); }
.tp-activity__to { color: var(--color-text); font-weight: var(--font-weight-semibold); }
:is(.tp-activity__from, .tp-activity__to)[data-empty="true"] { font-style: italic; font-weight: var(--font-weight-regular); }

.tp-activity__note {
    margin: var(--space-2) 0 0;
    padding: var(--space-1) var(--space-3);
    border-inline-start: var(--space-1) solid var(--color-border-strong);
    color: var(--color-text-muted);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.tp-activity__more { margin-block-start: var(--space-4); }

.tp-activity__error {
    display: flex;
    align-items: flex-start;
    gap: var(--space-1);
    margin: var(--space-2) 0 0;
    color: var(--color-danger-text);
    font-weight: var(--font-weight-semibold);
}

.tp-activity__empty { margin: 0; color: var(--color-text-muted); }

/* ---- Comments ------------------------------------------------------------------------------------ */

.tp-comments { display: flex; flex-direction: column; gap: var(--space-4); }
.tp-comments__heading { margin: 0; font-size: var(--font-size-lg); line-height: var(--line-height-snug); }
.tp-comments__empty, .tp-comments__note { margin: 0; color: var(--color-text-muted); }

.tp-comments__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The thread is a size container: under 26rem (a phone, a side panel) the text takes the avatar's column too. */
.tp-comments__thread { container: tp-comments / inline-size; }

.tp-comment__article { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: var(--space-3); }

.tp-comment__avatar {
    display: inline-grid;
    place-items: center;
    inline-size: 2rem;
    block-size: 2rem;
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: 50%;
    background: var(--color-surface-2);
    color: var(--color-text);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
}

/* The heading line and the text are placed on the article's grid. */
.tp-comment__main { display: contents; }
.tp-comment__head, .tp-comment__text { grid-column: 2; min-inline-size: 0; }

@container tp-comments (max-width: 26rem) {
    .tp-comment__text { grid-column: 1 / -1; }
}

.tp-comment__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-2);
    min-block-size: 2rem;
}

.tp-comment__by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); margin: 0; }
.tp-comment__author { font-weight: var(--font-weight-semibold); overflow-wrap: anywhere; }
.tp-comment__time, .tp-comment__edited { color: var(--color-text-muted); font-size: var(--font-size-sm); }
.tp-comment__time { font-variant-numeric: var(--font-numeric-data); }
.tp-comment__edited { font-style: italic; }

.tp-comment__audience {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0 var(--space-2);
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: var(--font-size-xs);
    line-height: 1.6;
}

.tp-comment__actions { margin-inline-start: auto; }

.tp-comment__text {
    margin: var(--space-1) 0 0;
    padding: var(--space-2) var(--space-3);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* A mention reads "@Dana Site"; one of the signed-in user also has a tint and an underline. */
.tp-mention { color: var(--color-accent-text); font-weight: var(--font-weight-semibold); }

.tp-mention[data-me="true"] {
    padding: 0 0.125rem;
    border-radius: var(--radius-xs);
    background: var(--color-surface-2);
    box-shadow: inset 0 -2px 0 var(--color-accent);
}

/* The composer: the box, then the host's extras and the buttons. */
.tp-composer .tp-field, .tp-composer__extras .tp-check { margin: 0; }

.tp-composer__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-3);
    margin-block-start: var(--space-3);
}

.tp-composer__buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-inline-start: auto; }

/* The people to mention: under the box, or above it when there is more room there (ui.js mentions.opened). At most six
   people, so the list never scrolls: a scrolling list with nothing focusable in it must be a combobox's popup (axe
   scrollable-region-focusable), and a text area cannot be a combobox. */
.tp-mentions { position: relative; }

.tp-mentions__popup {
    position: absolute;
    inset-block-start: calc(100% + var(--space-1));
    inset-inline: 0;
    z-index: calc(var(--z-sticky) + 1);
    padding: var(--space-1);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-3);
}

.tp-mentions__popup[data-side="top"] { inset-block: auto calc(100% + var(--space-1)); }
.tp-mentions__popup[hidden] { display: none; }

/* ---- Focus and forced colours ----------------------------------------------------------------------- */

:is(.tp-board__columns, .tp-activity__entry):focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
    box-shadow: 0 0 0 calc(var(--focus-width) + var(--focus-offset)) var(--color-focus-halo);
}

@media (forced-colors: active) {
    .tp-board__column, .tp-board__card, .tp-board__count, .tp-board__status:not(:empty), .tp-comment__text, .tp-comment__audience,
    .tp-mentions__popup { border-color: CanvasText; }
    .tp-board__column[data-drop] { outline-color: Highlight; }
    .tp-activity__entry::before, .tp-activity__marker[data-dot="true"]::after { background: CanvasText; }
    .tp-mention[data-me="true"] { outline: 1px solid Highlight; }
}
}

/* ---- utilities.css ---- */
@layer utilities {
/* Utilities: single-purpose classes that must win over component rules. Imported into layer(utilities),
   the last layer, by suite.css; tp- classes only. */

/* Read by screen readers, never shown (Components/VisuallyHidden). Clipped rather than moved off the
   page, so it never adds scrollable overflow. */
.tp-visually-hidden {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}
}
