/* ── Inter, self-hosted ────────────────────────────────────────────────
     Nocturne's typeface. Served from our own host so the app has no runtime
     dependency on fonts.googleapis.com and keeps working behind auth and
     offline. One variable file per subset covers weights 400-700.
     latin-ext is required, not optional: the workspace shows Polish names
     (Bogusław Kożuch, Paweł Szustkiewicz, Agata Kolczyńska) whose diacritics
     live outside latin.
     ------------------------------------------------------------------ */
  @font-face {
    font-family: "InterVariable";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/inter-latin-ext.woff2?v=vertex-brand-20260901") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: "InterVariable";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/inter-latin.woff2?v=vertex-brand-20260901") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* ── Nocturne palette ──────────────────────────────────────────────────
     Ported from the design system's styles.css. Nocturne states colours as
     hex; this file stores them as space-separated "R G B" so the 411
     existing rgb() call sites that slash in an alpha keep working unchanged.
     The source hex sits in a comment beside each value so this block can
     still be diffed against Nocturne.

     Dark is the default: Nocturne's :root is its dark theme. The
     [data-theme="light"] block below is a real override, not a copy, so the
     existing toggle (THEME_BOOTSTRAP, data-theme-toggle) finally changes
     something.
     ------------------------------------------------------------------ */
  :root {
    /* core roles */
    --background: 60 63 71;          /* #3c3f47 deeper slate canvas */
    --foreground: 255 255 255;       /* #ffffff primary text */
    --card: 73 77 87;                /* #494d57 raised content surface */
    --surface-2: 86 91 102;          /* #565b66 secondary surface */
    --sidebar-status-surface: 86 91 102;
    --muted-foreground: 207 211 229; /* #cfd3e5 secondary text; AA on every dark surface */
    --border: 108 113 126;           /* #6c717e quiet separation on slate */
    --primary: 145 132 217;          /* #9184d9 color-accent, the product blurple */
    --primary-foreground: 45 47 55;  /* dark ink: blurple is too light for white */
    --narrative-accent: 210 206 253; /* #d2cefd: AA text and focus on surface-2 */
    --accent-2: 167 161 219;         /* #a7a1db color-accent-2 */

    /* Fixed-tone utility roles. Inverted UI, media chrome, and elevation must
       stay dark even when --foreground becomes white in the dark theme. */
    --inverse-surface: 41 43 49;     /* #292b31 */
    --inverse-foreground: 247 248 250; /* #f7f8fa */
    --shadow-ink: 41 43 49;          /* #292b31 */

    /* Nocturne extension, not part of the design system. Carried over from
       the previous palette because the page-transition orbit and warm status
       accents depend on it, and Nocturne offers no warm role. */
    --accent-warm: 202 158 65;

    /* Tonal ramps, generated in OKLCH on one shared lightness scale. Only
       the steps Nocturne's own components use are re-pointed per theme. */
    --neutral-100: 243 245 254; --neutral-200: 228 231 245; --neutral-300: 207 211 229;
    --neutral-400: 178 182 202; --neutral-500: 147 151 171; --neutral-600: 117 121 140;
    --neutral-700: 89 93 108;   --neutral-800: 63 66 77;    --neutral-900: 41 43 49;

    --accent-100: 245 244 255; --accent-200: 231 229 254; --accent-300: 210 206 253;
    --accent-400: 181 171 252; --accent-500: 150 138 224; --accent-600: 121 108 191;
    --accent-700: 93 82 148;   --accent-800: 66 58 106;    --accent-900: 43 39 65;

    --accent-2-100: 245 244 255; --accent-2-200: 231 229 254; --accent-2-300: 210 206 253;
    --accent-2-400: 181 175 232; --accent-2-500: 150 144 201; --accent-2-600: 121 114 169;
    --accent-2-700: 92 87 131;   --accent-2-800: 66 62 93;    --accent-2-900: 43 41 58;

    /* Semantic roles. Nocturne defines no success/danger/warning, so these are
       documented extensions: hues chosen to sit at the accent's lightness so
       they read as part of the same system, and restated per theme because the
       previous values were Tailwind stops tuned only for a light ground. */
    --success: 74 222 128;   /* #4ade80 */
    --danger: 255 210 210;   /* #ffd2d2: AA alert text on secondary surfaces */
    --warning: 250 204 21;   /* #facc15 */
    --intent: 125 211 252;   /* #7dd3fc: durable human guidance */

    /* Derived from the ink at low alpha, matching Nocturne's
       color-mix(text 16%, transparent). */
    --divider: rgb(var(--foreground) / 0.16);

    /* Semantic typography roles. Body and heading roles deliberately resolve
       to the same self-hosted Inter Variable family. Commands and immutable
       identities stay on the local system monospace stack. */
    --font-sans: "InterVariable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --font-body: var(--font-sans);
    --font-heading: var(--font-sans);

    --type-product-display-family: var(--font-heading);
    --type-product-display-size: clamp(32px, 5vw, 48px);
    --type-product-display-line-height: 1.08;
    --type-product-display-weight: 600;
    --type-product-display-letter-spacing: 0;

    --type-page-title-family: var(--font-heading);
    --type-page-title-size: 28px;
    --type-page-title-line-height: 1.16;
    --type-page-title-weight: 600;
    --type-page-title-letter-spacing: -0.02em;

    --type-section-title-family: var(--font-heading);
    --type-section-title-size: 18px;
    --type-section-title-line-height: 1.3;
    --type-section-title-weight: 600;
    --type-section-title-letter-spacing: 0;

    --type-content-title-family: var(--font-heading);
    --type-content-title-size: 15px;
    --type-content-title-line-height: 1.4;
    --type-content-title-weight: 600;
    --type-content-title-letter-spacing: 0;

    --type-body-family: var(--font-body);
    --type-body-size: 15px;
    --type-body-line-height: 1.6;
    --type-body-weight: 400;
    --type-body-letter-spacing: normal;

    --type-compact-body-family: var(--font-body);
    --type-compact-body-size: 13px;
    --type-compact-body-line-height: 1.5;
    --type-compact-body-weight: 400;
    --type-compact-body-letter-spacing: normal;

    --type-label-family: var(--font-body);
    --type-label-size: 11px;
    --type-label-line-height: 1.3;
    --type-label-weight: 600;
    --type-label-letter-spacing: 0.1em;

    --type-code-identity-family: var(--font-mono);
    --type-code-identity-size: 12px;
    --type-code-identity-line-height: 1.5;
    --type-code-identity-weight: 400;
    --type-code-identity-letter-spacing: 0;

    /* Nocturne's spacing scale, a 2.8px base */
    --space-1: 2.8px; --space-2: 5.6px; --space-3: 8.4px;
    --space-4: 11.2px; --space-6: 16.8px; --space-8: 22.4px;

    --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px;

    /* Cross-page reading rhythm. Feature surfaces can tighten their internal
       layout, but page-to-page orientation and section flow share one cadence. */
    --flow-page-max: 1180px;
    --flow-page-gap: 24px;
    --flow-copy-max: 72ch;

    /* Elevation reads from the ground: a hairline edge plus ambient
       darkness on dark, soft ink-tinted shadows on light. */
    --shadow-sm: 0 0 0 1px #6c717e;
    --shadow-md: 0 0 0 1px #6c717e, 0 6px 18px rgb(0 0 0 / 0.22);
    --shadow-lg: 0 0 0 1px #7b808d, 0 16px 40px rgb(0 0 0 / 0.28);
  }
  /* An explicit dark choice restates the defaults so it still wins if a
     prefers-color-scheme rule is ever added above it. */
  :root[data-theme="dark"] {
    --background: 60 63 71; --foreground: 255 255 255; --card: 73 77 87;
    --surface-2: 86 91 102; --muted-foreground: 207 211 229;
    --border: 108 113 126; --primary: 181 171 252; --primary-foreground: 45 47 55;
    --narrative-accent: 210 206 253;
    --accent-warm: 202 158 65;
    --neutral-100: 243 245 254; --neutral-800: 63 66 77;
    --accent-100: 245 244 255; --accent-800: 66 58 106;
    --shadow-sm: 0 0 0 1px #6c717e;
    --shadow-md: 0 0 0 1px #6c717e, 0 6px 18px rgb(0 0 0 / 0.22);
    --shadow-lg: 0 0 0 1px #7b808d, 0 16px 40px rgb(0 0 0 / 0.28);
  }
  :root[data-theme="light"] {
    --background: 236 238 242;       /* #eceef2 soft neutral canvas */
    --foreground: 41 43 49;          /* #292b31 */
    --card: 247 248 250;             /* #f7f8fa content surface, below pure white */
    --surface-2: 225 228 234;        /* #e1e4ea secondary surface */
    --sidebar-status-surface: 205 209 222;
    --muted-foreground: 89 93 108;   /* #595d6c neutral-700: neutral-600 measured 3.96:1 here */
    --border: 202 206 215;           /* #caced7 neutral divider */
    --primary: 111 98 184;           /* #6f62b8 the light-theme accent */
    --primary-foreground: 255 255 255; /* the darker blurple carries white */
    --narrative-accent: 93 82 148;   /* #5d5294: AA text and focus on surface-2 */
    --accent-warm: 150 110 30;       /* darkened so it stays legible on a light ground */

    /* Nocturne flips only the ramp ends its components pair together, so a
       tag stays light-on-dark in dark and dark-on-light in light. */
    --neutral-100: 63 66 77;         /* #3f424d */
    --neutral-800: 228 231 245;      /* #e4e7f5 */
    --accent-100: 66 58 106;         /* #423a6a */
    --accent-800: 231 229 254;       /* #e7e5fe */

    --success: 22 163 74;    /* #16a34a */
    --danger: 185 28 28;     /* #b91c1c */
    --warning: 161 120 0;    /* #a17800, legible gold on the light surface */
    --intent: 3 105 161;     /* #0369a1 */

    --shadow-sm: 0 0 0 1px #caced7;
    --shadow-md: 0 0 0 1px #d5d8df, 0 6px 18px rgb(41 43 49 / 0.08);
    --shadow-lg: 0 0 0 1px #caced7, 0 16px 40px rgb(41 43 49 / 0.12);
  }
  * { box-sizing: border-box; }
  body {
    margin: 0; min-height: 100vh; background: rgb(var(--background));
    color: rgb(var(--foreground));
    font-family: var(--type-body-family); font-size: var(--type-body-size);
    line-height: var(--type-body-line-height); font-weight: var(--type-body-weight);
    letter-spacing: var(--type-body-letter-spacing);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    padding: 0;
  }
  /* Nocturne sets headings tight and slightly negative-tracked. Sizes stay on
     the design system's scale; the app's own per-page overrides still win. */
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading); font-weight: 500;
    line-height: 1.12; letter-spacing: -0.015em;
  }
  code, kbd, samp,
  .workspace-project-slug,
  .config-issue-project-meta,
  .detected-source-state.is-created {
    font-family: var(--type-code-identity-family);
    font-size: var(--type-code-identity-size);
    line-height: var(--type-code-identity-line-height);
    font-weight: var(--type-code-identity-weight);
    letter-spacing: var(--type-code-identity-letter-spacing);
  }
  .app-shell {
    --sidebar-width: 244px;
    min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) 8px minmax(0, 1fr);
    background: rgb(var(--background));
  }
  .page-transition-loader {
    position: fixed; inset: 0 0 0 var(--sidebar-width, 244px); z-index: 120;
    display: grid; place-items: center; padding: 24px;
    color: rgb(var(--foreground));
    opacity: 0; pointer-events: none; transition: opacity 160ms ease;
  }
  :root.is-page-loading .page-transition-loader {
    opacity: 1;
  }
  .page-transition-orbit {
    position: relative; width: 64px; height: 64px; display: block;
    border-radius: 999px;
    background: conic-gradient(from 0deg, rgb(var(--primary)), rgb(var(--accent-warm)), rgb(var(--primary) / 0.08), rgb(var(--primary)));
    animation: vertex-transition-spin 0.86s linear infinite;
    filter: drop-shadow(0 10px 24px rgb(var(--shadow-ink) / 0.28));
  }
  .page-transition-orbit::before {
    content: ""; position: absolute; inset: 13px; border-radius: inherit;
    background: rgb(var(--background));
    box-shadow: inset 0 0 0 1px rgb(var(--border) / 0.62);
  }
  .page-transition-orbit::after {
    content: ""; position: absolute; top: 3px; left: 50%; width: 10px; height: 10px;
    margin-left: -5px; border-radius: 999px; background: rgb(var(--card));
    box-shadow: 0 0 0 5px rgb(var(--primary) / 0.18), 0 0 22px rgb(var(--primary) / 0.46);
  }
  @keyframes vertex-transition-spin { to { transform: rotate(360deg); } }
  .app-sidebar {
    position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto; gap: 4px; padding: 0;
    background: rgb(var(--background)); color: rgb(var(--foreground));
    border-right: 0;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  }
  .app-nav {
    display: grid; gap: 22px; align-content: start; min-height: 0; overflow: auto; padding: 4px 10px 16px;
    scrollbar-width: thin; scrollbar-color: rgb(var(--border)) transparent;
  }
  .app-nav-brand-row {
    container-type: inline-size; min-width: 0; min-height: 78px;
    display: flex; align-items: center; gap: 8px; padding: 18px 12px 14px;
  }
  .app-nav-brand {
    display: inline-flex; flex: 0 0 auto; align-items: center;
    min-height: 46px; padding: 0; border: 0;
    color: rgb(var(--foreground)); text-decoration: none;
  }
  .theme-logo {
    display: inline-grid; align-items: center; line-height: 0;
  }
  .theme-logo-img {
    grid-area: 1 / 1; width: 100%; height: auto; display: block; object-fit: contain;
    transition: opacity 150ms ease, visibility 150ms ease;
  }
  /* -dark is the artwork FOR dark grounds, so it shows in the dark theme.
     Previously both rules resolved to the dark artwork and the light variant
     never rendered, which was safe only while the sidebar was always dark. */
  .theme-logo-light { opacity: 0; visibility: hidden; }
  .theme-logo-dark { opacity: 1; visibility: visible; }
  :root[data-theme="light"] .theme-logo-dark { opacity: 0; visibility: hidden; }
  :root[data-theme="light"] .theme-logo-light { opacity: 1; visibility: visible; }
  .app-nav-logo {
    width: 108px;
  }
  .mcp-support-announcement {
    position: relative; z-index: 1; min-width: 0; width: 104px; min-height: 32px;
    display: inline-flex; flex: 0 0 auto; align-items: center;
    padding: 4px 7px; border: 1px solid rgb(var(--accent-700)); border-radius: 11px 11px 5px 11px;
    background: rgb(var(--inverse-foreground)); color: rgb(var(--inverse-surface));
    box-shadow: 4px 5px 0 rgb(var(--accent-700) / 0.16), 0 7px 16px rgb(var(--shadow-ink) / 0.15);
    cursor: pointer; touch-action: manipulation; text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
    animation: mcp-support-arrive 320ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  }
  .mcp-support-announcement::after {
    content: ""; position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    pointer-events: none; background: rgb(var(--accent-200)); border-radius: 0 0 4px 0;
  }
  .mcp-support-announcement:hover {
    transform: translateY(-1px) rotate(-0.4deg);
    border-color: rgb(var(--primary));
    box-shadow: 5px 7px 0 rgb(var(--primary) / 0.18), 0 10px 20px rgb(var(--shadow-ink) / 0.18);
  }
  .mcp-support-announcement:focus-visible {
    outline: 2px solid rgb(var(--narrative-accent)); outline-offset: 3px;
  }
  .mcp-support-announcement-copy { min-width: 0; display: grid; gap: 1px; }
  .mcp-support-announcement-title {
    display: flex; align-items: baseline; gap: 4px;
    font-size: 9px; line-height: 1.12; font-weight: 600; white-space: nowrap;
  }
  .mcp-support-announcement-title strong { color: rgb(var(--accent-700)); font-weight: 700; }
  .mcp-support-announcement-detail {
    display: block; font-size: 7.25px; line-height: 1.15; font-weight: 500; white-space: nowrap;
  }
  .mcp-support-announcement-sparkle {
    position: absolute; top: -8px; right: -8px; z-index: 1;
    width: 22px; height: 22px; display: grid; place-items: center;
    border: 2px solid rgb(var(--inverse-foreground)); border-radius: 999px;
    background: rgb(var(--accent-700)); color: rgb(var(--inverse-foreground));
    font-size: 12px; line-height: 1;
    box-shadow: 0 5px 10px rgb(var(--shadow-ink) / 0.18);
    transition: transform 150ms ease;
  }
  .mcp-support-announcement:hover .mcp-support-announcement-sparkle {
    transform: rotate(12deg) scale(1.06);
  }
  @keyframes mcp-support-arrive {
    from { opacity: 0; transform: translateX(-4px) rotate(-1deg); }
    to { opacity: 1; transform: translateX(0) rotate(0); }
  }
  @container (min-width: 340px) {
    .app-nav-brand-row { gap: 12px; padding-inline: 12px; }
    .app-nav-logo { width: 152px; }
    .mcp-support-announcement { width: 186px; min-height: 28px; padding: 3px 8px; }
    .mcp-support-announcement-copy { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
    .mcp-support-announcement-title { gap: 4px; font-size: 9px; }
    .mcp-support-announcement-title strong { font-size: 10px; }
    .mcp-support-announcement-detail { font-size: 7.5px; }
  }
  @container (min-width: 390px) {
    .app-nav-brand-row { gap: 14px; }
    .app-nav-logo { width: 160px; }
    .mcp-support-announcement { width: 190px; min-height: 30px; }
    .mcp-support-announcement-title { font-size: 9.5px; }
    .mcp-support-announcement-title strong { font-size: 10.5px; }
    .mcp-support-announcement-detail { font-size: 8px; }
  }
  @container (max-width: 300px) {
    .app-nav-logo { width: 112px; }
    .mcp-support-announcement { width: 100px; min-height: 22px; padding: 2px 6px; }
    .mcp-support-announcement-title { font-size: 8.5px; }
    .mcp-support-announcement-title strong { font-size: 9px; }
    .mcp-support-announcement-detail { display: none; }
    .mcp-support-announcement-sparkle { top: -7px; right: -7px; width: 20px; height: 20px; font-size: 11px; }
  }
  .app-nav-links { display: grid; gap: 3px; align-items: start; }
  .app-nav-area { min-width: 0; display: grid; gap: 8px; }
  .app-nav-area + .app-nav-area {
    padding-top: 18px; border-top: 1px solid rgb(var(--border) / 0.72);
  }
  .app-nav-area-title {
    margin: 0 8px; color: rgb(var(--foreground));
    font-size: 14px; line-height: 1.3; font-weight: 600; letter-spacing: 0;
  }
  .app-projects-title { display: flex; align-items: center; gap: 8px; }
  .app-project-accordion { min-width: 0; display: grid; gap: 24px; }
  .app-nav-section { min-width: 0; display: grid; gap: 7px; }
  .app-nav-section + .app-nav-section {
    padding-top: 0; border-top: 0;
  }
  /* Native disclosures preserve keyboard and screen-reader behavior before
     app.js loads; the client only enforces the one-open accordion rule. */
  .app-nav-section.is-collapsible > summary { cursor: pointer; list-style: none; }
  .app-nav-section.is-collapsible > summary::-webkit-details-marker { display: none; }
  .app-nav-section-disclosure {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 30px; width: 30px; height: 30px;
    border: 1px solid rgb(var(--border)); border-radius: 5px;
    background: rgb(var(--card)); color: rgb(var(--foreground));
  }
  .app-nav-section-disclosure::before {
    content: ""; width: 9px; height: 9px; margin-left: -3px;
    border-top: 3px solid currentColor; border-right: 3px solid currentColor;
    transform: rotate(45deg);
  }
  .app-nav-section[open] > summary .app-nav-section-disclosure::before {
    margin-left: 0; margin-top: -4px; transform: rotate(135deg);
  }
  .app-nav-section.is-collapsible > summary:hover .app-nav-section-disclosure {
    background: rgb(var(--foreground)); color: rgb(var(--card));
  }
  .app-nav-section-name { min-width: 0; flex: 1; }
  .app-nav-section-count {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; padding: 1px 7px; border-radius: 999px;
    background: rgb(var(--foreground) / 0.08); color: rgb(var(--muted-foreground));
    font-size: 10px; line-height: 1.2; font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .app-nav-section-title {
    display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0 0 10px; padding: 8px 10px;
    border: 1px solid rgb(var(--border)); border-radius: 5px;
    background: rgb(var(--sidebar-status-surface));
    color: rgb(var(--foreground)); font-size: 14px; line-height: 1.4; font-weight: 700;
    letter-spacing: 0;
  }
  .app-nav-section-title > .app-nav-section-count {
    flex-shrink: 0; background: rgb(var(--card)); color: rgb(var(--foreground));
    font-size: 12px; padding: 2px 9px;
  }
  .app-nav-section-label {
    margin: 0; padding: 0 11px; color: rgb(var(--muted-foreground));
    font-size: 11px; line-height: 1.25; font-weight: 700; letter-spacing: 0.01em;
  }
  .app-nav-links a,
  .app-nav-links .app-nav-link {
    position: relative; min-height: 38px; display: flex; align-items: center;
    border: 0; border-radius: var(--radius-md); background: transparent; color: rgb(var(--foreground));
    text-decoration: none; padding: 9px 11px; font-size: 13px; line-height: 1.25; font-weight: 700;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
  }
  .app-nav-links a:hover {
    background: rgb(var(--foreground) / 0.06); color: rgb(var(--foreground)); transform: translateX(0px);
  }
  .app-nav-links a.is-active {
    background: rgb(var(--primary) / 0.13); color: rgb(var(--foreground));
  }
  .app-project-domains { min-width: 0; display: grid; gap: 9px; }
  .app-project-domain { min-width: 0; display: grid; gap: 3px; }
  .app-project-domain-title {
    margin: 0; padding: 3px 8px; display: flex; align-items: center; gap: 8px;
    color: rgb(var(--muted-foreground)); cursor: pointer;
    font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: 0;
  }
  .app-project-domain-title::-webkit-details-marker,
  .app-project-link::-webkit-details-marker { display: none; }
  .app-project-domain-title::marker,
  .app-project-link::marker { content: ""; }
  .app-project-domain-title::before {
    content: ""; width: 6px; height: 6px; flex: 0 0 6px;
    border-radius: 999px; background: currentColor; opacity: 0.42;
    transition: opacity 120ms ease, background 120ms ease;
  }
  .app-project-domain[open] > .app-project-domain-title::before {
    background: rgb(var(--primary)); opacity: 0.9;
  }
  .app-project-links {
    min-width: 0; display: grid; gap: 3px; margin-left: 13px; padding-left: 8px;
    border-left: 1px solid rgb(var(--border) / 0.72);
  }
  .app-project-node { min-width: 0; display: grid; gap: 2px; }
  .app-project-link {
    position: relative; width: 100%; min-width: 0; max-width: 100%; min-height: 36px; border: 0;
    display: flex; align-items: center; gap: 8px;
    border-radius: 9px; color: rgb(var(--muted-foreground)); text-decoration: none; padding: 8px 10px; cursor: pointer;
    font-size: 12px; line-height: 20px; font-weight: 600;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
  }
  .app-project-link::before {
    content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 999px;
    border: 1.5px solid rgb(var(--muted-foreground) / 0.72);
    background: rgb(var(--muted-foreground) / 0.10);
    box-shadow: inset 0 0 0 2px rgb(var(--background));
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  }
  .app-project-link:hover::before {
    border-color: rgb(var(--primary)); background: rgb(var(--primary) / 0.28);
  }
  .app-project-node[open] > .app-project-link::before {
    border-color: rgb(var(--primary)); background: rgb(var(--primary));
    box-shadow: 0 0 0 3px rgb(var(--primary) / 0.16), 0 0 9px rgb(var(--primary) / 0.34);
    transform: scale(1.05);
  }
  .app-project-link-name {
    min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .app-sidebar-resizer {
    position: sticky; top: 0; z-index: 20; width: 8px; height: 100vh;
    background: rgb(var(--foreground) / 0.035); cursor: col-resize; touch-action: none;
    transition: background 120ms ease;
  }
  .app-sidebar-resizer::after {
    content: ""; position: absolute; inset: 0 auto 0 3px; width: 2px;
    background: rgb(var(--foreground) / 0.28); transition: background 120ms ease, width 120ms ease;
  }
  .app-sidebar-resizer:hover,
  .app-sidebar-resizer:focus-visible,
  :root.is-resizing-sidebar .app-sidebar-resizer { background: rgb(var(--primary) / 0.1); outline: 0; }
  .app-sidebar-resizer:hover::after,
  .app-sidebar-resizer:focus-visible::after,
  :root.is-resizing-sidebar .app-sidebar-resizer::after {
    width: 3px; background: rgb(var(--primary) / 0.88);
  }
  :root.is-resizing-sidebar { cursor: col-resize; user-select: none; }
  .app-project-link:hover {
    background: rgb(var(--foreground) / 0.06); color: rgb(var(--foreground)); transform: translateX(0px);
  }
  .app-project-link.is-active,
  .app-project-node.is-active > .app-project-link {
    background: rgb(var(--primary) / 0.13); color: rgb(var(--foreground));
    box-shadow: inset 3px 0 0 rgb(var(--primary));
  }
  /* Availability belongs to the child destinations. Project rows keep stable
     typography and opacity so selecting one changes only its highlight. */
  .app-project-link.is-empty { opacity: 1; }
  .app-project-feature-tree {
    display: grid; gap: 2px; margin: 1px 0 5px 14px; padding-left: 9px;
    border-left: 1px solid rgb(var(--border));
  }
  .app-project-feature-tree .app-nav-links a,
  .app-project-feature-tree .app-nav-links .app-nav-link {
    min-height: 30px; border-radius: 7px; padding: 6px 9px;
    color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.25; font-weight: 600;
  }
  .app-project-feature-tree .app-nav-links .app-nav-link.is-disabled {
    background: transparent; color: rgb(var(--muted-foreground) / 0.58);
    cursor: not-allowed; box-shadow: none;
  }
  .app-project-feature-tree .app-nav-links .app-nav-link.is-disabled > span:first-of-type {
    color: inherit; text-decoration: line-through; text-decoration-thickness: 1px;
  }
  .app-project-feature-tree .app-nav-links a.is-dynamically-empty {
    background: transparent; color: rgb(var(--muted-foreground) / 0.58);
    cursor: not-allowed; box-shadow: none;
  }
  .app-project-feature-tree .app-nav-links a.is-dynamically-empty > span:first-of-type {
    color: inherit; text-decoration: line-through; text-decoration-thickness: 1px;
  }
  .app-nav-count {
    min-width: 18px; height: 18px; margin-left: auto; padding: 0 4px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 999px;
    background: rgb(var(--foreground) / 0.08); color: rgb(var(--muted-foreground));
    font-size: 9px; line-height: 1; font-weight: 600;
  }
  .app-nav-count.is-empty { color: rgb(var(--muted-foreground) / 0.58); }
  .app-project-feature-tree .app-nav-links a::after { display: none; }
  .app-project-feature-tree .app-nav-links a.is-active {
    background: rgb(var(--primary) / 0.11); color: rgb(var(--foreground));
  }
  .app-project-feature-tree .app-sub-links {
    margin-left: 10px; padding-left: 8px;
  }
  .app-sub-links {
    display: grid; gap: 2px; margin: 0 0 0 13px; padding-left: 9px;
    border-left: 1px solid rgb(var(--border));
  }
  .app-sub-links a {
    min-height: 30px; display: flex; align-items: center; color: rgb(var(--muted-foreground));
    border-radius: 7px; text-decoration: none; padding: 6px 9px;
    font-size: 11px; line-height: 1.3; font-weight: 600;
    transition: background 150ms ease, color 150ms ease;
  }
  .app-sub-links a:hover {
    background: rgb(var(--surface-2) / 0.72); color: rgb(var(--foreground));
  }
  .app-sub-links a.is-active {
    color: rgb(var(--foreground)); background: rgb(var(--primary) / 0.11);
  }
  .app-week-links {
    margin-top: -1px; max-height: 190px; overflow: auto; padding-right: 2px;
  }
  .app-meeting-links {
    margin-top: -1px; max-height: 220px; overflow: auto; padding-right: 2px;
  }
  .app-meeting-links a {
    align-items: flex-start; line-height: 1.3; white-space: normal;
  }
  .app-status-week-links { max-height: 230px; overflow: auto; padding-right: 2px; }
  .app-status-week-links a { justify-content: flex-start; }
  .app-doc-section { gap: 8px; }
  .app-doc-tree { display: grid; gap: 2px; }
  .app-doc-parent {
    min-height: 36px; display: flex; align-items: center; padding: 8px 11px;
    color: rgb(var(--foreground)); font-size: 13px; line-height: 1.25; font-weight: 700;
  }
  .app-doc-sub-links {
    display: grid; gap: 2px; margin: 1px 0 5px 14px; padding-left: 9px;
    border-left: 1px solid rgb(var(--border));
  }
  .app-doc-sub-links .app-doc-link {
    min-height: 30px; border-radius: 7px; padding: 6px 9px;
    color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.25; font-weight: 600;
  }
  .app-doc-link {
    position: relative; min-height: 36px; display: flex; align-items: center;
    border: 0; border-radius: var(--radius-md); background: transparent; color: rgb(var(--foreground));
    text-decoration: none; padding: 8px 11px; font-size: 13px; line-height: 1.25;
    font-weight: 700; letter-spacing: 0;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
  }
  .app-doc-link:hover {
    color: rgb(var(--foreground)); background: rgb(var(--foreground) / 0.06); transform: translateX(0);
  }
  .app-doc-link.is-active {
    color: rgb(var(--foreground)); background: rgb(var(--primary) / 0.11);
  }
  .system-log-page { max-width: 1180px; }
  .system-log-panel {
    border: 1px solid rgb(var(--border)); border-radius: 8px; overflow: hidden;
    background: rgb(var(--card)); box-shadow: 0 1px 2px rgb(var(--shadow-ink) / 0.08);
  }
  .system-log-grid { display: grid; min-width: 760px; }
  .system-log-header, .system-log-row {
    display: grid; grid-template-columns: 230px minmax(0, 1fr);
  }
  .system-log-header {
    background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground));
    border-bottom: 1px solid rgb(var(--border)); font-size: 11px; line-height: 1.25;
    font-weight: 500; text-transform: uppercase;
  }
  .system-log-header > div, .system-log-row > div { padding: 12px 16px; min-width: 0; }
  .system-log-row {
    background: rgb(var(--surface-2)); border-bottom: 1px solid rgb(var(--border));
    color: rgb(var(--foreground)); font-size: 12px; line-height: 1.4;
  }
  .system-log-row:last-child { border-bottom: 0; }
  .system-log-row.is-project .system-log-description { color: rgb(var(--foreground)); font-weight: 600; }
  .system-log-row.is-startup {
    grid-template-columns: minmax(0, 1fr); background: rgb(var(--surface-2));
  }
  .system-log-row.is-startup.is-deployment-boundary {
    border-top: 1px solid rgb(var(--primary) / 0.5);
    border-bottom: 1px solid rgb(var(--primary) / 0.5);
    background: rgb(var(--primary) / 0.12);
    box-shadow: inset 4px 0 0 rgb(var(--primary));
  }
  .system-log-startup-cell {
    grid-column: 1 / -1; display: grid; grid-template-columns: 210px minmax(0, 1fr);
    gap: 4px 20px; align-items: baseline; padding: 16px;
  }
  .system-log-row.is-deployment-boundary .system-log-startup-cell { padding-block: 20px; }
  .system-log-startup-meta {
    grid-row: 1 / span 2; display: grid; gap: 3px;
    color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.35;
  }
  .system-log-startup-meta span { text-transform: uppercase; font-weight: 600; }
  .system-log-startup-description {
    color: rgb(var(--foreground)); font-size: 13px; line-height: 1.4; font-weight: 500;
  }
  .system-log-row.is-deployment-boundary .system-log-startup-description {
    font-size: 15px; line-height: 1.35; font-weight: 600;
  }
  .system-log-release-identity {
    color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .system-log-release-identity code {
    font-family: var(--type-code-identity-family); font-size: var(--type-code-identity-size);
    line-height: var(--type-code-identity-line-height); font-weight: var(--type-code-identity-weight);
  }
  .system-log-time { color: rgb(var(--muted-foreground)); font-weight: 400; }
  .system-log-description { overflow-wrap: anywhere; }
  .system-log-empty {
    padding: 18px 16px; background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground));
    font-family: var(--type-compact-body-family); font-size: var(--type-compact-body-size);
    line-height: var(--type-compact-body-line-height); font-weight: var(--type-compact-body-weight);
    letter-spacing: var(--type-compact-body-letter-spacing);
  }
  .system-log-updated {
    justify-self: end; text-align: right; color: rgb(var(--muted-foreground));
    font-size: 11px; line-height: 1.35; white-space: nowrap;
  }
  .system-log-updated span {
    display: block; margin-bottom: 2px; font-size: 10px; line-height: 1.2;
    text-transform: uppercase; font-weight: 700; letter-spacing: 0;
  }
  .system-log-updated strong {
    display: block; color: rgb(var(--foreground)); font-size: 12px;
    line-height: 1.35; font-weight: 500;
  }
  .app-sidebar-meta {
    display: grid; gap: 6px; border-top: 1px solid rgb(var(--border));
    padding: 14px 8px max(14px, env(safe-area-inset-bottom));
    color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.45;
  }
  .app-account-row {
    display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 8px; align-items: center;
  }
  .app-account {
    display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 7px; align-items: center;
  }
  .app-account-avatar {
    position: relative; width: 34px; height: 34px; border-radius: 999px; display: inline-flex;
    align-items: center; justify-content: center; border: 1px solid rgb(var(--primary) / 0.45);
    background: rgb(var(--primary) / 0.18);
    /* Ink, not a surface token: this was #f7fbff, a light *text* colour, and
       the colour sweep mapped near-whites to surfaces. On the tinted chip that
       made the initials exactly the same colour as their own background. */
    color: rgb(var(--foreground)); font-size: 12px; font-weight: 500;
    overflow: hidden;
  }
  .app-account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .app-account-copy {
    position: relative; min-width: 0; min-height: 25px; display: grid; align-items: center; justify-items: start;
  }
  .app-account-name,
  .app-account .app-logout {
    grid-area: 1 / 1;
    max-width: 100%; color: rgb(var(--foreground)); font-size: 13px; line-height: 1.25; font-weight: 500;
    text-align: left;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: opacity 130ms ease, transform 130ms ease, background 130ms ease, color 130ms ease;
  }
  .app-account .app-logout {
    opacity: 0; pointer-events: none; width: fit-content; padding: 4px 9px;
    border: 1px solid rgb(var(--primary) / 0.34); border-radius: 999px;
    background: rgb(var(--primary) / 0.12); color: rgb(var(--foreground)); text-decoration: none;
    font-size: 10px; line-height: 1.25; font-weight: 700; text-transform: uppercase;
    transform: translateY(2px);
  }
  .app-account-copy:hover .app-account-name,
  .app-account-copy:focus-within .app-account-name {
    opacity: 0; transform: translateY(-2px);
  }
  .app-account-copy:hover .app-logout,
  .app-account-copy:focus-within .app-logout {
    opacity: 1; pointer-events: auto; transform: translateY(0);
  }
  .app-account .app-logout:hover { color: rgb(var(--foreground)); background: rgb(var(--primary) / 0.2); }
  .app-login {
    width: fit-content; color: rgb(var(--foreground)); text-decoration: none;
    font-size: 11px; line-height: 1.25; font-weight: 700;
  }
  .app-theme-button {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgb(var(--border)); border-radius: 999px; background: rgb(var(--card));
    color: rgb(var(--foreground)); cursor: pointer; font: inherit; transition: background 130ms ease, color 130ms ease, border-color 130ms ease;
  }
  .app-theme-button:hover {
    border-color: rgb(var(--primary)); background: rgb(var(--surface-2)); color: rgb(var(--foreground));
  }
  .app-theme-icon {
    display: none; font-size: 16px; line-height: 1;
  }
  .app-theme-icon-dark { display: block; }
  :root[data-theme="light"] .app-theme-icon-light { display: block; }
  :root[data-theme="light"] .app-theme-icon-dark { display: none; }
  :root[data-theme="dark"] .app-theme-icon-light { display: none; }
  :root[data-theme="dark"] .app-theme-icon-dark { display: block; }
  .app-main-frame { min-width: 0; }
  .project-mirror-freshness {
    margin: 0; padding: 7px 32px; border-bottom: 1px solid rgb(var(--border));
    background: rgb(var(--card)); color: rgb(var(--muted-foreground));
    font-size: 11px; line-height: 1.45;
  }
  .project-mirror-freshness.is-stale,
  .project-mirror-freshness.is-missing {
    border-color: rgb(var(--danger) / 0.3); background: rgb(var(--danger) / 0.07);
    color: rgb(var(--danger));
  }
  .app-content { min-width: 0; padding: 26px 32px 40px; background: rgb(var(--background)); }
  .integrations-page {
    width: min(100%, 980px); display: grid; gap: 22px; align-content: start;
  }
  .integrations-header {
    display: grid; gap: 7px; padding: 6px 2px 2px;
  }
  .integrations-kicker {
    margin: 0; color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.25;
    font-weight: 700; letter-spacing: 0.02em;
  }
  .integrations-title {
    margin: 0; color: rgb(var(--foreground)); font-family: var(--type-page-title-family);
    font-size: var(--type-page-title-size); line-height: var(--type-page-title-line-height);
    font-weight: var(--type-page-title-weight); letter-spacing: var(--type-page-title-letter-spacing);
  }
  .integrations-intro {
    max-width: 680px; margin: 0; color: rgb(var(--muted-foreground)); font-size: 14px; line-height: 1.6;
  }
  .integration-notice {
    margin: 0; padding: 12px 14px; border: 1px solid rgb(var(--border)); border-radius: 10px;
    background: rgb(var(--card)); color: rgb(var(--foreground)); font-size: 13px; line-height: 1.5;
  }
  .integration-notice.is-error {
    border-color: rgb(var(--danger) / 0.42); background: rgb(var(--danger) / 0.08); color: rgb(var(--danger));
  }
  .integration-panel {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: start;
    padding: 22px; border: 1px solid rgb(var(--border)); border-radius: 14px;
    background: rgb(var(--card)); box-shadow: 0 10px 28px rgb(var(--shadow-ink) / 0.10);
  }
  .integration-identity { display: grid; gap: 14px; }
  .integration-heading-row { display: flex; align-items: center; gap: 11px; }
  .integration-mark {
    width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
    background: rgb(66 133 244 / 0.1); color: rgb(var(--primary)); font-size: 17px; font-weight: 700;
  }
  .integration-name { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
  .integration-purpose {
    margin: 2px 0 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.45;
  }
  .integration-status-row {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: rgb(var(--foreground));
    font-size: 13px; line-height: 1.4;
  }
  .integration-status-dot {
    width: 8px; height: 8px; border-radius: 999px; background: rgb(var(--muted-foreground)); box-shadow: 0 0 0 4px rgb(var(--muted-foreground) / 0.12);
  }
  .integration-status-dot.is-connected {
    background: rgb(var(--success)); box-shadow: 0 0 0 4px rgb(var(--success) / 0.12);
  }
  .integration-status-dot.is-attention {
    background: rgb(var(--warning)); box-shadow: 0 0 0 4px rgb(var(--warning) / 0.12);
  }
  .integration-setup {
    display: grid; border-top: 1px solid rgb(var(--border)); border-bottom: 1px solid rgb(var(--border));
  }
  .integration-step {
    display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center;
    min-height: 58px; padding: 10px 0;
  }
  .integration-step + .integration-step { border-top: 1px solid rgb(var(--border)); }
  .integration-step-marker {
    width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px;
    border: 1px solid rgb(var(--border)); background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground));
    font-size: 11px; line-height: 1; font-weight: 700;
  }
  .integration-step.is-complete .integration-step-marker {
    border-color: rgb(var(--success) / 0.25); background: rgb(var(--success) / 0.1); color: rgb(var(--success));
  }
  .integration-step-copy { display: grid; gap: 2px; min-width: 0; }
  .integration-step-copy strong { color: rgb(var(--foreground)); font-size: 12px; line-height: 1.35; }
  .integration-step-copy span,
  .integration-step-copy a {
    color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere;
  }
  .integration-step-copy a { color: rgb(var(--primary)); text-decoration: none; font-weight: 700; }
  .integration-step-copy a:hover { text-decoration: underline; text-underline-offset: 2px; }
  .mcp-client-form { padding-bottom: 14px; }
  .mcp-client-step { align-items: start; padding: 16px 0; }
  .mcp-client-step .integration-step-marker { margin-top: 2px; }
  .mcp-client-step .integration-step-copy { gap: 4px; }
  .mcp-client-fields {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start; gap: 12px; margin-top: 8px;
  }
  .mcp-client-fields label { display: grid; gap: 6px; min-width: 0; }
  .mcp-client-fields label > span {
    color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.25; font-weight: 700;
  }
  .mcp-client-fields input, .mcp-client-fields textarea {
    width: 100%; height: 36px; min-width: 0; box-sizing: border-box; border: 1px solid rgb(var(--border));
    border-radius: 8px; background: rgb(var(--surface-2)); color: rgb(var(--foreground));
    padding: 7px 10px; font: inherit; font-size: 12px; line-height: 1.4;
    box-shadow: inset 0 1px 0 rgb(var(--inverse-foreground) / 0.18);
  }
  .mcp-client-fields textarea { min-height: 36px; resize: none; overflow-y: auto; }
  .mcp-client-fields input:focus-visible, .mcp-client-fields textarea:focus-visible {
    outline: 3px solid rgb(var(--primary) / 0.18); outline-offset: 1px; border-color: rgb(var(--primary));
  }
  .mcp-client-actions {
    display: flex; justify-content: flex-end; width: auto; padding-top: 14px;
  }
  .mcp-client-actions .integration-connect { min-height: 34px; padding: 7px 12px; }
  .integration-details {
    display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; margin: 0;
    font-size: 12px; line-height: 1.45;
  }
  .integration-details dt { color: rgb(var(--muted-foreground)); }
  .integration-details dd { margin: 0; color: rgb(var(--foreground)); overflow-wrap: anywhere; }
  .integration-action { display: grid; gap: 9px; justify-items: end; min-width: 190px; }
  .integration-actions { display: grid; gap: 8px; justify-items: stretch; width: 100%; }
  .integration-connect {
    min-height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgb(var(--primary) / 0.26); border-radius: 9px; padding: 9px 14px;
    background: rgb(var(--primary)); color: rgb(var(--primary-foreground)); text-decoration: none; font-size: 13px; line-height: 1.25; font-weight: 700;
    transition: background 150ms ease, transform 150ms ease;
  }
  .integration-connect:hover { background: rgb(var(--primary)); transform: translateY(-1px); }
  .integration-connect.is-secondary {
    border-color: rgb(var(--border)); background: rgb(var(--card)); color: rgb(var(--foreground));
  }
  .integration-connect.is-secondary:hover { border-color: rgb(var(--primary) / 0.4); background: rgb(var(--surface-2)); }
  .integration-connect.is-disabled {
    border-color: rgb(var(--border)); background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground));
    cursor: not-allowed; transform: none;
  }
  .integration-action-note {
    max-width: 190px; margin: 0; color: rgb(var(--muted-foreground)); text-align: right;
    font-size: 11px; line-height: 1.45;
  }
  .integration-footnote {
    margin: 0 2px; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.55;
  }
  .integration-footnote code { color: rgb(var(--foreground)); }
  .settings-tabs {
    display: flex; align-items: center; gap: 18px; min-height: 38px;
    border-bottom: 1px solid rgb(var(--border));
  }
  .settings-tab {
    align-self: stretch; display: inline-flex; align-items: center; position: relative;
    color: rgb(var(--muted-foreground)); text-decoration: none; font-size: 13px; font-weight: 500;
    transition: color 130ms ease;
  }
  .settings-tab:hover { color: rgb(var(--foreground)); }
  .settings-tab.is-active { color: rgb(var(--foreground)); }
  .settings-tab.is-active::after {
    content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px;
    border-radius: 2px 2px 0 0; background: rgb(var(--primary));
  }
  .domain-settings-summary {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 18px;
    color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.45;
  }
  .domain-settings-summary strong { color: rgb(var(--foreground)); font-size: 14px; }
  .domain-settings-section {
    display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 30px; padding: 24px 2px; border-top: 1px solid rgb(var(--border));
  }
  .domain-settings-section > header { display: grid; align-content: start; gap: 6px; }
  .domain-settings-section > header h2 { margin: 0; font-size: 15px; line-height: 1.35; }
  .domain-settings-section > header p {
    margin: 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.55;
  }
  .domain-settings-workspace, .team-bindings-form { display: grid; gap: 14px; min-width: 0; }
  .domain-settings-list, .team-binding-list {
    display: grid; border-top: 1px solid rgb(var(--border));
  }
  .domain-settings-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
    min-height: 52px; border-bottom: 1px solid rgb(var(--border));
  }
  .domain-settings-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
  .domain-settings-identity strong, .team-binding-identity strong { font-size: 13px; line-height: 1.35; }
  .domain-settings-identity code, .team-binding-identity code {
    color: rgb(var(--muted-foreground)); font-size: 11px;
  }
  .domain-settings-count { color: rgb(var(--muted-foreground)); font-size: 11px; white-space: nowrap; }
  .domain-settings-remove button {
    border: 0; padding: 6px; background: transparent; color: rgb(var(--muted-foreground));
    font: inherit; font-size: 11px; cursor: pointer;
  }
  .domain-settings-remove button:hover { color: rgb(var(--danger)); }
  .domain-settings-add {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, 140px) auto;
    align-items: end; gap: 10px;
  }
  .domain-settings-add label { display: grid; gap: 5px; min-width: 0; }
  .domain-settings-add label > span {
    color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.25; font-weight: 700;
  }
  .domain-settings-add input, .team-binding-row select {
    width: 100%; height: 36px; box-sizing: border-box; border: 1px solid rgb(var(--border));
    border-radius: 8px; background: rgb(var(--surface-2)); color: rgb(var(--foreground));
    padding: 7px 10px; font: inherit; font-size: 12px; line-height: 1.4;
  }
  .domain-settings-add input:focus-visible, .team-binding-row select:focus-visible {
    outline: 3px solid rgb(var(--primary) / 0.18); outline-offset: 1px; border-color: rgb(var(--primary));
  }
  .domain-settings-add .integration-connect { height: 36px; min-height: 36px; }
  .domain-settings-empty {
    margin: 0; padding: 16px 0; border-bottom: 1px solid rgb(var(--border));
    color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.5;
  }
  .team-binding-row {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 230px);
    align-items: center; gap: 18px; min-height: 58px; border-bottom: 1px solid rgb(var(--border));
  }
  .team-binding-identity { display: grid; gap: 3px; min-width: 0; }
  .team-binding-identity > span {
    color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.4;
  }
  .team-bindings-form footer {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
  }
  .team-bindings-form footer > span {
    color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.45;
  }
  .team-bindings-form footer .integration-connect { flex: none; }
  .team-bindings-form footer .integration-connect:disabled {
    border-color: rgb(var(--border)); background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground));
    cursor: not-allowed; transform: none;
  }
  .project-status-page {
    /* --page-gap is the page's own rhythm, declared so the selector block can
       work out how much clearance it still owes below itself. */
    --page-gap: var(--flow-page-gap);
    width: 100%; min-height: calc(100vh - 44px); display: grid; gap: var(--page-gap);
    align-content: start;
  }
  .project-status-header {
    display: flex; align-items: end; justify-content: space-between; gap: 24px;
  }
  .project-status-kicker {
    margin: 0 0 5px; color: rgb(var(--primary)); font-size: 11px; line-height: 1.25;
    font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
  }
  .project-status-title {
    margin: 0; font-family: var(--type-page-title-family);
    font-size: var(--type-page-title-size); line-height: var(--type-page-title-line-height);
    font-weight: var(--type-page-title-weight); letter-spacing: var(--type-page-title-letter-spacing);
  }
  .project-status-meta {
    margin: 6px 0 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.4;
  }
  .project-status-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .project-status-download {
    min-height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgb(var(--border)); border-radius: 999px; background: rgb(var(--card));
    color: rgb(var(--foreground)); padding: 7px 13px; text-decoration: none;
    font-size: 12px; line-height: 1.25; font-weight: 700;
  }
  .project-status-download:hover {
    border-color: rgb(var(--primary)); color: rgb(var(--primary)); background: rgb(var(--primary) / 0.07);
  }
  .project-status-viewer {
    min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px;
  }
  .project-status-stage {
    position: relative; min-width: 0; display: grid; place-items: center; overflow: hidden;
    aspect-ratio: 16 / 9; max-height: calc(100vh - 150px); border: 1px solid rgb(var(--inverse-foreground) / 0.24);
    border-radius: 12px; background: rgb(var(--inverse-surface)); box-shadow: 0 18px 42px rgb(var(--shadow-ink) / 0.28);
  }
  .project-status-slide {
    width: 100%; height: 100%; display: block; object-fit: contain; opacity: 1;
    transition: opacity 120ms ease, transform 160ms ease;
  }
  .project-status-slide.is-changing { opacity: 0.35; transform: scale(0.996); }
  .project-status-control {
    position: absolute; z-index: 2; top: 50%; width: 42px; height: 58px; display: inline-flex;
    align-items: center; justify-content: center; transform: translateY(-50%);
    border: 1px solid rgb(var(--inverse-foreground) / 0.2); border-radius: 999px;
    background: rgb(var(--inverse-surface) / 0.76); color: rgb(var(--inverse-foreground)); font: inherit; font-size: 24px;
    cursor: pointer; opacity: 0.72; transition: opacity 120ms ease, background 120ms ease;
  }
  .project-status-control:hover:not(:disabled) { opacity: 1; background: rgb(var(--inverse-surface) / 0.96); }
  .project-status-control:disabled { opacity: 0.22; cursor: default; }
  .project-status-control.is-previous { left: 14px; }
  .project-status-control.is-next { right: 14px; }
  .project-status-counter {
    position: absolute; z-index: 2; right: 14px; bottom: 12px; min-width: 62px;
    border: 1px solid rgb(var(--inverse-foreground) / 0.16); border-radius: 999px;
    background: rgb(var(--inverse-surface) / 0.78); color: rgb(var(--inverse-foreground)); padding: 6px 10px;
    font-size: 11px; line-height: 1.2; font-weight: 700; text-align: center;
  }
  .project-status-thumbnails {
    min-height: 0; max-height: calc(100vh - 150px); display: grid; gap: 8px; align-content: start;
    overflow: auto; padding: 1px 3px 1px 1px;
  }
  .project-status-thumbnail {
    width: 100%; aspect-ratio: 16 / 9; overflow: hidden; padding: 0;
    border: 2px solid transparent; border-radius: 5px; background: rgb(var(--inverse-surface)); cursor: pointer;
    opacity: 0.58; transition: opacity 120ms ease, border-color 120ms ease, transform 120ms ease;
  }
  .project-status-thumbnail:hover { opacity: 0.9; transform: translateX(-2px); }
  .project-status-thumbnail.is-active { border-color: rgb(var(--primary)); opacity: 1; }
  .project-status-thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; }
  .project-status-fallback {
    min-height: 56vh; display: grid; place-items: center; border: 1px solid rgb(var(--border));
    border-radius: 12px; background: rgb(var(--card)); color: rgb(var(--muted-foreground));
    text-align: center; padding: 36px;
  }
  .project-status-fallback h2 { margin: 0; color: rgb(var(--foreground)); font-size: 20px; }
  .project-status-fallback p { max-width: 520px; margin: 8px 0 0; font-size: 14px; line-height: 1.55; }
  .project-status-pdf { width: 100%; height: calc(100vh - 154px); min-height: 620px; border: 0; border-radius: 12px; background: rgb(var(--inverse-surface)); }
  .card {
    width: 100%; max-width: 860px; background: rgb(var(--card));
    border: 1px solid rgb(var(--border)); border-radius: 16px;
    box-shadow: 0 10px 30px rgb(var(--shadow-ink) / 0.14); overflow: hidden; margin: 0 auto;
  }
  .artifact-page {
    --page-gap: 28px;
    width: 100%; max-width: none; margin: 0; display: grid; gap: var(--page-gap);
  }
  .artifact-detail-shell {
    width: 100%; border: 1px solid rgb(var(--border)); border-radius: 10px;
    background: rgb(var(--primary) / 0.10); overflow: hidden;
    box-shadow: 0 10px 26px rgb(var(--shadow-ink) / 0.10);
  }
  .artifact-detail-header {
    display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px;
    padding: 14px 16px; background: rgb(var(--surface-2));
  }
  .artifact-back-button {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgb(var(--border)); border-radius: 999px; background: rgb(var(--card));
    color: rgb(var(--foreground)); text-decoration: none; font-size: 19px; line-height: 1;
  }
  .artifact-back-button:hover {
    border-color: rgb(var(--primary)); color: rgb(var(--primary)); background: rgb(var(--primary) / 0.06);
  }
  .artifact-back-button:focus-visible {
    outline: 3px solid rgb(var(--primary) / 0.18); outline-offset: 2px;
  }
  .artifact-project-kicker {
    margin: 0 0 4px; color: rgb(var(--primary));
    font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
  }
  .artifact-project-title {
    margin: 0; font-size: 19px; line-height: 1.2; font-weight: 500; letter-spacing: 0;
  }
  .artifact-project-subtitle {
    margin: 4px 0 0; color: rgb(var(--muted-foreground)); font-size: 13px; line-height: 1.4;
  }
  .artifact-card { max-width: none; }
  .artifact-details .body { padding: 24px 28px 28px; }
  .artifact-details .description { margin-bottom: 22px; }
  .media-card { max-width: none; }
  .media-card-header { padding: 18px 24px; }
  .media-card .media { padding: 24px; background: rgb(var(--card)); }
  .artifact-page.is-meeting-page .card,
  .artifact-page.is-meeting-page .card-header,
  .artifact-page.is-meeting-page .media-card .media {
    background: rgb(var(--surface-2));
  }
  .meeting-section .body { padding: 22px 24px 24px; }
  .meeting-section .description { margin-bottom: 0; }
  .meeting-top { background: rgb(var(--surface-2)); }
  .collection-header.generated-status-header,
  .card-header.generated-status-header {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    align-items: start; gap: 24px;
  }
  .generated-content-status { width: 100%; }
  .generated-content-status-actions {
    display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto;
  }
  .generated-content-status-actions .generated-content-actions { display: contents; }
  .slack-rollup-header-side { display: grid; justify-items: stretch; gap: 8px; }
  .slack-rollup-header-side > .slack-summary-header-action { justify-self: end; }
  /* The shared narrative already owns its inner spacing. Removing the card-body
     inset avoids stacking two large paddings below the meeting title bar. */
  .meeting-top .body { display: grid; gap: 22px; padding: 0; }
  .meeting-top .narrative-surface {
    padding: 20px clamp(24px, 4vw, 44px) 28px;
  }
  .meeting-top .meeting-notes { margin-inline: clamp(24px, 4vw, 44px); }
  .meeting-top .attendees-block { margin: 0 clamp(24px, 4vw, 44px) 28px; }
  .meeting-top-grid {
    display: grid; gap: 18px; align-items: start;
  }
  .meeting-top-main { min-width: 0; display: grid; gap: 18px; }
  .meeting-notes {
    border-top: 1px solid rgb(var(--border)); padding-top: 18px;
  }
  .meeting-note-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
  .meeting-note-tag {
    display: inline-flex; align-items: center; border-radius: 999px;
    border: 1px solid rgb(var(--border)); background: rgb(var(--surface-2));
    color: rgb(var(--muted-foreground)); padding: 3px 9px;
    font-size: 12px; font-weight: 700;
  }
  .meeting-notes-text {
    margin: 8px 0 0; white-space: pre-wrap; font-size: 15px; line-height: 1.65;
    color: rgb(var(--foreground));
  }
  .meeting-notes-text a { color: rgb(var(--primary)); text-decoration: none; overflow-wrap: anywhere; }
  .meeting-notes-text a:hover { text-decoration: underline; }
  .vertex-suggested-issues-link { display: grid; gap: 4px; align-items: start; max-width: 420px; }
  .vertex-suggested-issues-link a {
    color: rgb(var(--primary)); text-decoration: none; font-size: 13px; line-height: 1.35;
    font-weight: 700;
  }
  .vertex-suggested-issues-link a:hover { text-decoration: underline; text-underline-offset: 2px; }
  .vertex-suggested-issues-link em {
    color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.35;
  }
  .details-block { display: grid; gap: 18px; }
  .meeting-description {
    margin: 0; white-space: pre-wrap; font-size: 15px; line-height: 1.65;
    color: rgb(var(--foreground));
  }
  .meeting-details-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px 26px;
  }
  .meeting-detail-row {
    display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 12px;
    padding: 7px 0; border-bottom: 1px solid rgb(var(--border) / 0.72);
    font-size: 14px; line-height: 1.45;
  }
  .meeting-detail-row .field-label { text-transform: none; letter-spacing: 0; font-size: 12px; }
  .meeting-detail-value { min-width: 0; overflow-wrap: anywhere; }
  .meeting-detail-value a { color: rgb(var(--primary)); text-decoration: none; }
  .meeting-detail-value a:hover { text-decoration: underline; }
  .attendees-block { display: grid; gap: 8px; }
  .attendees-list {
    overflow: visible; border: 1px solid rgb(var(--border));
    border-radius: 8px; background: rgb(var(--surface-2)); padding: 4px 0;
  }
  .attendees-list.is-scrollable { max-height: 520px; overflow: auto; }
  .attendee-row {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px;
    align-items: center; padding: 9px 12px; font-size: 14px; line-height: 1.35;
  }
  .attendee-row + .attendee-row { border-top: 1px solid rgb(var(--border) / 0.58); }
  .attendee-avatar {
    position: relative; overflow: hidden;
    width: 34px; height: 34px; border-radius: 999px; object-fit: cover; display: inline-flex;
    align-items: center; justify-content: center; color: rgb(var(--foreground)); background: rgb(var(--border));
    border: 1px solid rgb(var(--border)); font-size: 12px; font-weight: 700;
    flex: 0 0 auto;
  }
  .attendee-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .attendee-avatar-fallback.avatar-tone-0 { background: rgb(var(--primary) / 0.12); color: rgb(var(--primary)); }
  .attendee-avatar-fallback.avatar-tone-1 { background: rgb(var(--primary) / 0.12); color: rgb(var(--primary)); }
  .attendee-avatar-fallback.avatar-tone-2 { background: rgb(var(--success)); color: rgb(var(--success)); }
  .attendee-avatar-fallback.avatar-tone-3 { background: rgb(var(--warning)); color: rgb(var(--warning)); }
  .attendee-avatar-fallback.avatar-tone-4 { background: rgb(var(--surface-2)); color: rgb(var(--foreground)); }
  .attendee-name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
  .attendee-email { display: block; margin-top: 2px; color: rgb(var(--muted-foreground)); font-weight: 400; }
  .attendee-statuses { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
  .attendee-status {
    display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px;
    border: 1px solid rgb(var(--border)); padding: 3px 8px; font-size: 12px;
    font-weight: 700; color: rgb(var(--muted-foreground)); background: rgb(var(--card));
  }
  .attendee-status.is-attending {
    color: rgb(var(--primary)); background: rgb(var(--primary) / 0.10); border-color: rgb(var(--primary) / 0.22);
  }
  .attendee-status.is-declined {
    color: rgb(var(--danger)); background: rgb(var(--danger) / 0.12); border-color: rgb(var(--danger));
  }
  .attendee-status.is-pending {
    color: rgb(var(--muted-foreground)); background: rgb(var(--surface-2)); border-color: rgb(var(--border));
  }
  .summary-block { display: grid; gap: 20px; }
  .summary-copy { margin: 0; white-space: pre-wrap; font-size: 15px; line-height: 1.65; }
  .summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 24px; }
  /* In-page selector chips for the three time-series pages. These replace the
     dated lists the sidebar used to grow per project. The block sits at the top
     of the page, above the title, so the selection reads as the thing that
     drives everything below it. */
  .selector-block {
    /* One control on three pages, so its two measurements are named here.
       The chip box is the height of a two-line chip (a date over its
       sublabel): rows whose entries carry no sublabel would otherwise read as
       a smaller, different control. The clearance is the space between the
       block and the content it drives; each host page's own grid gap already
       supplies part of it and the block tops up the rest, which keeps the
       control identical without forcing every page onto one rhythm. */
    --selector-chip-height: 53px;
    --selector-clearance: 28px;
    display: grid; gap: 7px; min-width: 0;
    margin-bottom: max(0px, calc(var(--selector-clearance) - var(--page-gap, 0px)));
  }
  .selector-status-row {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    align-items: start; gap: 24px; min-width: 0;
  }
  .selector-status-row .selector-block {
    --selector-clearance: 0px; margin-bottom: 0;
  }
  .selector-status-row > .detailed-summary-status { width: 100%; }
  .selector-status-row.is-status-only {
    grid-template-columns: minmax(340px, 440px); justify-content: end;
  }
  .selector-caption {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
    margin: 0; min-width: 0;
  }
  .selector-caption-label {
    font-family: var(--type-label-family); font-size: var(--type-label-size);
    line-height: var(--type-label-line-height); font-weight: var(--type-label-weight);
    text-transform: uppercase; letter-spacing: var(--type-label-letter-spacing);
    color: rgb(var(--muted-foreground));
  }
  .selector-caption-value {
    font-size: 12.5px; line-height: 1.3; font-weight: 700; color: rgb(var(--foreground));
  }
  .selector-caption-hint {
    font-size: 11.5px; line-height: 1.3; color: rgb(var(--muted-foreground));
  }
  .selector-row {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 8px;
    margin: 0; padding: 0; min-width: 0;
  }
  .selector-track {
    display: flex; gap: 8px; min-width: 0; flex: 0 1 auto; width: max-content;
    /* No scroll-snap: paging already lands on chip boundaries and partials are
       hidden, so snapping only fought the programmatic scroll. */
    overflow-x: auto; scroll-behavior: smooth;
    scrollbar-width: none; padding: 2px;
  }
  .selector-track::-webkit-scrollbar { display: none; }
  .selector-track > .selector-chip { flex: none; }
  /* A chip only partly inside the window is hidden rather than shown cut off. */
  .selector-track > .selector-chip.is-offscreen { visibility: hidden; }

  .selector-arrow {
    flex: none; width: 30px; height: 30px; display: grid; place-items: center;
    padding: 0; font-size: 17px; line-height: 1; text-decoration: none;
    color: rgb(var(--foreground)); background: transparent;
    border: 1px solid rgb(var(--foreground) / 0.28); border-radius: var(--radius-md);
  }
  .selector-arrow:not(.is-disabled):hover { border-color: rgb(var(--primary)); color: rgb(var(--primary)); }
  .selector-arrow.is-disabled {
    color: rgb(var(--muted-foreground)); border-color: var(--divider);
    opacity: 0.38; pointer-events: none;
  }
  .selector-hidden {
    flex: none; padding: 3px 9px; border-radius: 999px;
    background: rgb(var(--foreground) / 0.07); color: rgb(var(--muted-foreground));
    font-size: 11.5px; white-space: nowrap;
  }
  .selector-chip {
    display: grid; align-content: center; gap: 2px;
    padding: 9px 14px; min-width: 0; min-height: var(--selector-chip-height);
    border: 1px solid var(--divider); border-radius: var(--radius-md);
    color: rgb(var(--foreground)); text-decoration: none;
    background: transparent; transition: border-color 120ms ease, background 120ms ease;
  }
  .selector-chip:hover { border-color: rgb(var(--primary) / 0.55); background: rgb(var(--foreground) / 0.04); }
  .selector-chip.is-current {
    border-color: rgb(var(--primary)); background: rgb(var(--primary) / 0.10);
    color: rgb(var(--primary));
  }
  .selector-chip-label { font-size: 13px; font-weight: 500; line-height: 1.25; white-space: nowrap; }
  .selector-chip-sub {
    font-size: 11.5px; line-height: 1.25; color: rgb(var(--muted-foreground));
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch;
  }
  .selector-chip.is-current .selector-chip-sub { color: rgb(var(--primary) / 0.8); }
  /* Never-recorded meetings: the chip stays in the row, in date order, but is
     inert and struck through corner to corner so the gap is explained rather
     than hidden. The gradient's 50% band runs exactly through the top-left and
     bottom-right corners, which is why it reads as one clean diagonal. */
  .selector-chip.is-unavailable {
    pointer-events: none; cursor: default; position: relative; overflow: hidden;
    border-color: rgb(var(--danger) / 0.4); color: rgb(var(--muted-foreground));
    background: rgb(var(--danger) / 0.05);
  }
  .selector-chip.is-unavailable::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(
      to top right,
      transparent calc(50% - 1px),
      rgb(var(--danger) / 0.75) calc(50% - 1px),
      rgb(var(--danger) / 0.75) calc(50% + 1px),
      transparent calc(50% + 1px)
    );
  }
  /* A struck chip can still be the current one when the page was reached
     directly, so it keeps a firmer border to say "you are here". */
  .selector-chip.is-unavailable.is-current { border-color: rgb(var(--danger) / 0.75); }
  .selector-chip.is-unavailable .selector-chip-sub { color: rgb(var(--muted-foreground)); }
  .selector-all {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 4px;
    font-size: 13px; color: rgb(var(--primary)); text-decoration: none; white-space: nowrap;
  }
  .selector-all:hover { text-decoration: underline; }
  @media (max-width: 720px) {
    .selector-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .selector-caption-hint { display: none; }
  }
  /* Summary sections run as one column using vertical space, per the design.
     A three-column grid made a long Next Steps list tower over a two-item
     Decisions column and left most of the row empty. */
  .summary-grid {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px;
    max-width: 880px;
  }
  .summary-group { display: grid; gap: 8px; align-content: start; }
  /* Section label with a rule that fades out to the right, so the eye gets a
     horizon per section without a hard divider. */
  .summary-group h3 {
    display: flex; align-items: center; gap: 14px;
    margin: 0; font-size: 12px; line-height: 1.4; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: rgb(var(--foreground) / 0.78);
  }
  .summary-group h3::after {
    content: ""; flex: 1; height: 1px;
    background: linear-gradient(to right, var(--divider), transparent);
  }
  .summary-group ul {
    margin: 0; padding-left: 18px; display: grid; gap: 6px;
    font-size: 13px; line-height: 1.55; color: rgb(var(--foreground) / 0.82);
  }

  /* Attendees: several columns of one-line entries rather than one tall stack
     of avatar rows. Each entry is a status glyph plus the name. */
  .attendees-box {
    border: 1px solid var(--divider); border-radius: var(--radius-md);
    overflow: hidden; background: transparent;
  }
  .attendees-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0 28px; padding: 12px 16px;
    border: 0; background: transparent; overflow: visible;
  }
  .attendees-list.is-scrollable { max-height: 320px; overflow: auto; }
  /* Legend of only the states this meeting actually uses, so it never explains
     a status nobody set. */
  .attendees-legend {
    display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 9px 16px;
    background: linear-gradient(to right, transparent, var(--divider) 24px,
      var(--divider) calc(100% - 24px), transparent) no-repeat top / 100% 1px;
    font-size: 11.5px; color: rgb(var(--muted-foreground));
  }
  .attendee-key { display: inline-flex; align-items: center; gap: 6px; }
  .attendee-row {
    display: flex; align-items: center; gap: 8px; min-width: 0;
    grid-template-columns: none; padding: 3px 0; border: 0;
    font-size: 13px; line-height: 1.5; color: rgb(var(--foreground) / 0.85);
  }
  .attendee-row + .attendee-row { border-top: 0; }
  .attendee-name {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-weight: 400;
  }
  .attendee-glyph { flex: none; width: 15px; height: 15px; display: block; }
  .attendee-glyph.is-accepted { color: rgb(var(--success)); }
  .attendee-glyph.is-declined { color: rgb(var(--danger)); }
  .attendee-glyph.is-tentative { color: rgb(var(--warning)); }
  .attendee-glyph.is-pending { color: rgb(var(--muted-foreground)); }
  .attendee-glyph.is-organizer { width: 13px; height: 13px; color: rgb(var(--primary)); }
  .attendee-glyph.is-optional { width: 13px; height: 13px; color: rgb(var(--muted-foreground)); }
  .meeting-summary-grid { margin-top: 18px; }
  .summary-group h3 { margin: 0 0 8px; font-size: 14px; line-height: 1.35; }
  .summary-group ul { margin: 0; padding-left: 19px; color: rgb(var(--foreground)); font-size: 14px; line-height: 1.55; }
  .summary-group li + li { margin-top: 6px; }
  .transcript-shell {
    overflow: hidden; border: 1px solid rgb(var(--border)); border-radius: 14px;
    background: rgb(var(--background));
  }
  .transcript-scroll { max-height: 62vh; overflow: auto; }
  .transcript-turn { padding: 20px 24px; }
  .transcript-turn[data-transcript-seconds] { cursor: pointer; }
  .transcript-turn[data-transcript-seconds]:hover { box-shadow: inset 3px 0 0 rgb(var(--primary) / 0.38); }
  .transcript-turn[data-transcript-seconds]:focus-visible {
    outline: 3px solid rgb(var(--primary) / 0.3); outline-offset: -3px;
  }
  .transcript-turn.is-current { box-shadow: inset 3px 0 0 rgb(var(--primary)); }
  .transcript-turn:nth-child(odd) { background: rgb(var(--surface-2)); }
  .transcript-turn:nth-child(even) { background: rgb(var(--primary) / 0.10); }
  .transcript-meta { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; line-height: 1.5; }
  .transcript-speaker { font-weight: 700; color: rgb(var(--primary)); overflow-wrap: anywhere; }
  .transcript-turn:nth-child(even) .transcript-speaker { color: rgb(var(--accent-2)); }
  .transcript-time { color: rgb(var(--muted-foreground)); white-space: nowrap; }
  .transcript-text { margin-top: 8px; white-space: pre-wrap; font-size: 15px; line-height: 1.75; color: rgb(var(--foreground)); }
  .transcript-search {
    border-top: 1px solid rgb(var(--border)); background: rgb(var(--surface-2));
    padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  }
  .transcript-filter-wrap {
    flex: 0 1 220px; min-width: 180px; position: relative;
  }
  .transcript-filter {
    width: 100%; height: 38px; border: 1px solid rgb(var(--border)); border-radius: 999px;
    background: rgb(var(--card)); color: rgb(var(--foreground)); font: inherit; font-size: 14px;
    padding: 0 34px 0 13px; outline: none; appearance: none;
  }
  .transcript-filter-wrap::after {
    content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px;
    border-right: 1.5px solid rgb(var(--muted-foreground));
    border-bottom: 1.5px solid rgb(var(--muted-foreground));
    transform: translateY(-65%) rotate(45deg); pointer-events: none;
  }
  .transcript-filter:focus { border-color: rgb(var(--primary)); box-shadow: 0 0 0 3px rgb(var(--primary) / 0.13); }
  .transcript-input-wrap { position: relative; flex: 1 1 260px; min-width: 0; }
  .transcript-input-wrap::after {
    content: ""; position: absolute; left: 43px; top: 9px; bottom: 9px;
    width: 1px; background: rgb(var(--border)); pointer-events: none;
  }
  .transcript-search-icon {
    position: absolute; left: 13px; top: 50%; width: 19px; height: 19px;
    transform: translateY(-50%); color: rgb(var(--muted-foreground)); pointer-events: none;
  }
  .transcript-search-icon svg { width: 100%; height: 100%; display: block; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .transcript-input {
    width: 100%; height: 38px; border: 1px solid rgb(var(--border)); border-radius: 999px;
    background: rgb(var(--card)); color: rgb(var(--foreground)); font: inherit; font-size: 14px;
    padding: 0 38px 0 56px; outline: none;
  }
  .transcript-input:focus { border-color: rgb(var(--primary)); box-shadow: 0 0 0 3px rgb(var(--primary) / 0.13); }
  .transcript-clear {
    position: absolute; right: 7px; top: 50%; width: 25px; height: 25px; transform: translateY(-50%);
    border: 0; border-radius: 999px; background: transparent; color: rgb(var(--muted-foreground));
    cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 18px; line-height: 1;
  }
  .transcript-clear.is-visible { display: inline-flex; }
  .transcript-clear:hover { background: rgb(var(--surface-2) / 0.75); color: rgb(var(--foreground)); }
  .transcript-search-actions { display: inline-flex; align-items: center; gap: 8px; }
  .transcript-count {
    white-space: nowrap; border: 1px solid rgb(var(--border)); border-radius: 999px;
    background: rgb(var(--background)); color: rgb(var(--muted-foreground));
    padding: 5px 10px; font-size: 12px; font-weight: 600;
  }
  .transcript-count.has-query {
    border-color: rgb(var(--primary) / 0.35); background: rgb(var(--primary) / 0.08); color: rgb(var(--primary));
  }
  .match-buttons {
    display: none; overflow: hidden; border: 1px solid rgb(var(--border)); border-radius: 999px;
    background: rgb(var(--background));
  }
  .match-buttons.is-visible { display: inline-flex; }
  .match-button {
    width: 34px; height: 32px; border: 0; background: transparent; color: rgb(var(--muted-foreground));
    cursor: pointer; font-size: 15px; line-height: 1;
  }
  .match-button + .match-button { border-left: 1px solid rgb(var(--border)); }
  .match-button:hover:not(:disabled) { background: rgb(var(--surface-2) / 0.75); color: rgb(var(--foreground)); }
  .match-button:disabled { cursor: not-allowed; opacity: 0.4; }
  mark.transcript-match {
    scroll-margin-top: 80px; border-radius: 4px; background: rgb(var(--warning) / 0.45);
    color: rgb(var(--foreground)); padding: 0 2px;
  }
  mark.transcript-match.is-active {
    background: rgb(var(--primary)); color: rgb(var(--primary-foreground));
    box-shadow: 0 0 0 2px rgb(var(--primary) / 0.35);
  }
  .card-header { padding: 24px 28px; border-bottom: 1px solid rgb(var(--border)); }
  .title { font-size: 22px; font-weight: 700; margin: 0; }
  .subtitle { margin: 6px 0 0; font-size: 14px; color: rgb(var(--muted-foreground)); }
  .avatar-sm { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 8px; }
  .media { background: rgb(var(--background)); display: flex; align-items: center; justify-content: center; }
  .media img { width: 100%; max-height: 72vh; display: block; object-fit: contain; }
  .media img { border-radius: 8px; }
  .media.is-video {
    background: rgb(var(--card)); min-height: clamp(360px, 58vh, 680px); padding: 18px;
    flex-direction: column; gap: 12px;
  }
  .media.is-video video {
    width: 100%; max-width: 100%; height: auto; max-height: 76vh;
    display: block; object-fit: contain; background: rgb(0 0 0); border-radius: 8px;
  }
  .artifact-page.is-meeting-page .media.is-video {
    min-height: 0; padding: 18px;
  }
  .artifact-page.is-meeting-page .media.is-video video {
    width: 100%; max-width: 100%; height: auto; max-height: none; aspect-ratio: 16 / 9;
  }
  .video-view-controls { width: 100%; display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-shrink: 0; }
  .video-view-status { color: rgb(var(--muted-foreground)); font-size: 14px; }
  .media.is-video:fullscreen { width: 100%; height: 100%; box-sizing: border-box; min-height: 0; padding: 18px; }
  .media.is-video:fullscreen video,
  .artifact-page.is-meeting-page .media.is-video:fullscreen video { flex: 1; min-height: 0; width: 100%; height: 0; max-height: none; aspect-ratio: auto; }
  .artifact-renderer { padding: 28px; background: rgb(var(--card)); }
  .markdown-viewer {
    width: 100%; max-width: none; margin: 0; color: rgb(var(--foreground));
    font-size: 15px; line-height: 1.65;
  }
  .markdown-viewer h1, .markdown-viewer h2, .markdown-viewer h3, .markdown-viewer h4, .markdown-viewer h5, .markdown-viewer h6 {
    margin: 1.2em 0 0.45em; line-height: 1.24; font-weight: 700; letter-spacing: 0;
  }
  .markdown-viewer h1:first-child, .markdown-viewer h2:first-child, .markdown-viewer h3:first-child { margin-top: 0; }
  .markdown-viewer h1 { font-size: 26px; }
  .markdown-viewer h2 { font-size: 22px; }
  .markdown-viewer h3 { font-size: 18px; }
  .markdown-viewer p { margin: 0.65em 0; }
  .markdown-viewer ul, .markdown-viewer ol { margin: 0.65em 0; padding-left: 24px; }
  .markdown-viewer li + li { margin-top: 4px; }
  .markdown-viewer blockquote {
    margin: 0.85em 0; padding: 8px 14px; border-left: 3px solid rgb(var(--border));
    background: rgb(var(--surface-2)); color: rgb(var(--foreground));
  }
  .markdown-viewer pre {
    overflow: auto; margin: 0.9em 0; padding: 14px; border-radius: 8px;
    background: rgb(var(--inverse-surface)); color: rgb(var(--inverse-foreground)); font-size: 13px; line-height: 1.55;
  }
  .markdown-viewer code {
    border-radius: 5px; background: rgb(var(--surface-2)); padding: 2px 5px;
    font-family: var(--type-code-identity-family);
    font-size: var(--type-code-identity-size);
  }
  .markdown-viewer pre code { background: transparent; padding: 0; border-radius: 0; }
  .markdown-viewer a { color: rgb(var(--primary)); text-decoration: none; }
  .markdown-viewer a:hover { text-decoration: underline; text-underline-offset: 2px; }
  .narrative-inline-image {
    display: block; width: auto; max-width: 100%; max-height: 640px; margin: 14px 0;
    border: 1px solid rgb(var(--border)); border-radius: 10px; object-fit: contain;
    background: rgb(var(--background));
  }
  .pdf-frame { width: 100%; height: min(78vh, 900px); border: 0; border-radius: 8px; background: rgb(var(--surface-2)); }
  .csv-table-wrap { overflow: auto; border: 1px solid rgb(var(--border)); border-radius: 8px; background: rgb(var(--card)); }
  .csv-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 13px; }
  .csv-table th, .csv-table td {
    max-width: 320px; padding: 9px 11px; border-bottom: 1px solid rgb(var(--border));
    border-right: 1px solid rgb(var(--border)); text-align: left; vertical-align: top;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .csv-table th { background: rgb(var(--surface-2)); color: rgb(var(--foreground)); font-weight: 700; }
  .csv-table tr:last-child td { border-bottom: 0; }
  .file-preview-panel {
    min-height: 220px; display: flex; align-items: center; justify-content: center;
    padding: 34px; background: rgb(var(--card));
  }
  .file-preview-content { max-width: 560px; text-align: center; display: grid; justify-items: center; gap: 12px; }
  .file-preview-icon {
    width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgb(var(--border)); border-radius: 12px; background: rgb(var(--surface-2));
    color: rgb(var(--foreground)); font-size: 13px; font-weight: 700;
  }
  .file-preview-icon.has-image {
    border: 0; border-radius: 14px; background: transparent; overflow: hidden;
  }
  .file-preview-icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
  .file-preview-title { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
  .file-preview-copy { margin: 0; color: rgb(var(--muted-foreground)); font-size: 14px; line-height: 1.5; }
  .body { padding: 24px 28px; }
  .field-label {
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0;
    color: rgb(var(--muted-foreground));
  }
  .description { margin: 8px 0 24px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; }
  .artifact-author-block { display: grid; gap: 6px; margin-top: 18px; }
  .artifact-author-value { display: flex; align-items: center; min-width: 0; font-size: 14px; }
  .meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
  .meta-item .field-label { display: block; margin-bottom: 4px; }
  .meta-item .value { font-size: 14px; }
  .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
  .source {
    display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
    padding: 8px 16px;
    border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none;
    color: rgb(var(--primary)); background: rgb(var(--primary) / 0.08);
    border: 1px solid rgb(var(--primary) / 0.28);
    overflow-wrap: anywhere;
  }
  .source:hover { background: rgb(var(--primary) / 0.14); }
  .auth-body {
    min-height: 100vh; min-height: 100svh; overflow: hidden;
    background: rgb(var(--inverse-surface)); color: rgb(var(--inverse-foreground));
  }
  .auth-splash {
    position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh;
    display: grid; place-items: center; overflow: hidden;
    padding:
      max(28px, env(safe-area-inset-top))
      max(22px, env(safe-area-inset-right))
      max(28px, env(safe-area-inset-bottom))
      max(22px, env(safe-area-inset-left));
    background:
      radial-gradient(circle at 50% 22%, rgb(var(--primary) / 0.16), transparent 32rem),
      linear-gradient(160deg, rgb(var(--inverse-surface)), rgb(var(--background)));
  }
  .auth-splash::before {
    content: ""; position: absolute; z-index: -1; width: min(78vw, 720px);
    aspect-ratio: 1; border: 1px solid rgb(var(--primary) / 0.12);
    border-radius: 999px; box-shadow:
      0 0 0 80px rgb(var(--primary) / 0.035),
      0 0 0 160px rgb(var(--primary) / 0.018);
  }
  .auth-splash-panel {
    width: min(100%, 430px); display: grid; justify-items: center; gap: 28px;
  }
  .auth-splash-logo { display: block; width: min(236px, 64vw); height: auto; }
  .auth-login-card {
    width: 100%; padding: 36px 32px; border: 1px solid rgb(var(--card) / 0.36);
    border-radius: 20px; background: rgb(var(--card));
    box-shadow: 0 24px 70px rgb(var(--shadow-ink) / 0.38); text-align: center;
  }
  .auth-login-card h1 {
    margin: 0; color: rgb(var(--foreground)); font-size: 28px; line-height: 1.15;
    letter-spacing: -0.02em;
  }
  .auth-login-card p {
    margin: 12px 0 26px; color: rgb(var(--muted-foreground)); font-size: 15px; line-height: 1.55;
  }
  .auth-login-card .google-btn { min-height: 48px; }
  .auth-error {
    margin: 18px 0 0 !important; padding: 11px 12px; border-radius: 10px;
    background: rgb(var(--danger) / 0.12); color: rgb(var(--danger)) !important;
    font-size: 14px !important; line-height: 1.45 !important;
  }
  .login-card { max-width: 420px; text-align: center; padding: 40px 32px; }
  .login-card h1 { font-size: 24px; margin: 0 0 8px; }
  .login-card p { color: rgb(var(--muted-foreground)); margin: 0 0 28px; }
  .google-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px 16px; border-radius: 10px; font-size: 15px; font-weight: 600;
    text-decoration: none; color: rgb(var(--primary-foreground)); background: rgb(var(--primary));
  }
  .google-btn:hover { filter: brightness(0.95); }
  .error { color: rgb(var(--danger)); margin-top: 16px; font-size: 14px; }
  .workspace-home {
    width: 100%; max-width: 1180px; margin: 0 auto; display: grid; gap: 18px;
  }
  /* ── Project health ─────────────────────────────────────────────────── */
  .generation-run-control {
    width: 176px; display: grid; justify-items: stretch; gap: 6px;
  }
  .generation-run-control .generation-run-button { width: 100%; }
  [data-slack-regeneration-note] {
    color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.4;
    overflow-wrap: anywhere;
  }
  [data-slack-regeneration-note][hidden] { display: none; }
  /* Fixed layout with declared widths, so the three section tables align with
     one another instead of each sizing itself to its own content. The table is
     fluid: the domain and marks take their declared widths and the project column absorbs
     whatever is left, so at any width the table already fits and there is
     nothing to scroll to. The wrapper therefore must not be a scroll container
     — one would clip the mark tooltips, which overflow their cells by design,
     and the tooltips' own hidden boxes would give it something to scroll. */
  .health-table-wrap { overflow: visible; }
  .workspace-table.health-table { table-layout: fixed; min-width: 0; }
  .health-table th:nth-child(1), .health-table td:nth-child(1) { width: 130px; overflow: hidden; }
  .health-table th:nth-child(2), .health-table td:nth-child(2) { width: auto; overflow: hidden; }
  .health-table th.health-cell, .health-table td.health-cell {
    width: 52px; text-align: center; padding-left: 0; padding-right: 0;
  }
  .health-table th.health-cell {
    font-size: 10px; letter-spacing: 0.04em;
  }
  /* Below this the nine mark columns leave the project name nothing to sit in,
     and the page itself starts to scroll sideways. The section scrolls instead:
     the tooltips are hover- and focus-only, so a scroller clipping them costs
     nothing on a viewport that has neither. */
  @media (max-width: 720px) {
    .health-table-wrap { overflow-x: auto; }
    .workspace-table.health-table { min-width: 700px; }
  }
  /* One line, truncated: the column takes the width the marks leave over, and a
     wrapping name would break the row-per-project reading of the table. */
  .health-project {
    display: block; font-size: 13px; font-weight: 500;
    color: rgb(var(--foreground)); text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .health-project:hover { color: rgb(var(--primary)); text-decoration: underline; }
  .health-domain {
    color: rgb(var(--muted-foreground)); font-size: 12px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  /* Hover and keyboard-focus tooltip. Positioned by the cell, which is
     relative, and lifted above later rows by z-index. */
  .health-mark { position: relative; cursor: default; }
  .health-mark:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: 2px; }
  .health-mark::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
    z-index: 30; width: max-content; max-width: 260px;
    padding: 7px 10px; border-radius: var(--radius-md);
    background: rgb(var(--card)); color: rgb(var(--foreground));
    box-shadow: var(--shadow-md);
    font-size: 11.5px; line-height: 1.45; font-weight: 400; text-align: left;
    white-space: normal; opacity: 0; visibility: hidden;
    transition: opacity 90ms ease;
  }
  .health-mark:hover::after, .health-mark:focus-visible::after { opacity: 1; visibility: visible; }
  /* The legend marks carry no detail, so they must not open an empty box. */
  .health-mark:not([data-tip])::after { content: none; }
  /* The first rows have no room above, so their tooltips open downward. */
  .health-table tbody tr:nth-child(-n+2) .health-mark::after {
    bottom: auto; top: calc(100% + 7px);
  }
  /* The trailing columns sit at the page edge, so their tooltips open leftward.
     Centred, a 260px tooltip over a 52px cell would run off the page and put
     the whole page into horizontal scroll. */
  .health-table td.health-cell:nth-last-child(-n+3) .health-mark::after {
    left: auto; right: -4px; transform: none;
  }
  .health-score { font-size: 12px; color: rgb(var(--muted-foreground)); white-space: nowrap; }
  .health-score strong { font-size: 14px; font-variant-numeric: tabular-nums; }
  .health-score.is-good strong { color: rgb(var(--success)); }
  .health-score.is-watch strong { color: rgb(var(--warning)); }
  .health-score.is-poor strong { color: rgb(var(--danger)); }
  .health-mark {
    display: inline-grid; place-items: center; width: 20px; height: 20px;
    border-radius: 999px; font-size: 11px; line-height: 1;
  }
  .health-mark.is-met { color: rgb(var(--success)); background: rgb(var(--success) / 0.14); }
  .health-mark.is-partial { color: rgb(var(--warning)); background: rgb(var(--warning) / 0.16); }
  .health-mark.is-missing { color: rgb(var(--danger)); background: rgb(var(--danger) / 0.16); }
  /* A check this project was never asked for reads as absent, not as a failure. */
  .health-mark.is-na, .health-mark.is-unknown { color: rgb(var(--muted-foreground)); background: transparent; }
  .health-section-count {
    margin-left: 4px; padding: 1px 7px; border-radius: 999px;
    background: rgb(var(--foreground) / 0.08); color: rgb(var(--muted-foreground));
    font-size: 10.5px; letter-spacing: 0;
  }
  .health-legend-note { margin-left: auto; }
  .health-legend {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
    margin: 10px 0 0; font-size: 11.5px; color: rgb(var(--muted-foreground));
  }
  /* Home, per the mockup: a header rule, a bare stat row, then a table that
     sits on the page ground with fading rules rather than a boxed panel. */
  .workspace-home {
    display: grid; gap: var(--flow-page-gap); align-content: start;
    max-width: var(--flow-page-max);
  }
  .workspace-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    align-items: start; gap: 24px; padding: 0 0 20px;
    border-bottom: 1px solid var(--divider);
  }
  .project-health-generation-status { width: 100%; }
  .project-health-generation-status .generation-run-button { min-width: 112px; }
  @media (max-width: 820px) {
    .workspace-hero { grid-template-columns: 1fr; }
  }
  .workspace-stats { display: flex; gap: 40px; flex-wrap: wrap; }
  .workspace-stat-block { display: grid; gap: 4px; }
  .workspace-stat-block span {
    font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgb(var(--muted-foreground));
  }
  .workspace-stat-block strong {
    font-family: var(--font-heading); font-size: 24px; font-weight: 500;
    font-variant-numeric: tabular-nums;
  }
  .workspace-section { display: grid; gap: 10px; }
  .workspace-section-label {
    margin: 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    font-weight: 500; color: rgb(var(--muted-foreground));
  }
  .workspace-table-wrap { overflow-x: auto; }
  .workspace-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 820px; }
  .workspace-table th {
    text-align: left; padding: var(--space-2) var(--space-3);
    font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
    color: rgb(var(--muted-foreground));
  }
  .workspace-table td { padding: var(--space-3); vertical-align: middle; }
  /* Row rules as row-level strips, so the fade spans the row and not each cell. */
  .workspace-table thead tr {
    background: linear-gradient(to right, transparent, var(--divider) 48px,
      var(--divider) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
  }
  .workspace-table tbody tr {
    background: linear-gradient(to right, transparent, rgb(var(--foreground) / 0.08) 48px,
      rgb(var(--foreground) / 0.08) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
  }
  .workspace-table tbody tr:hover {
    background:
      linear-gradient(rgb(var(--foreground) / 0.04), rgb(var(--foreground) / 0.04)) no-repeat 0 0 / 100% 100%,
      linear-gradient(to right, transparent, rgb(var(--foreground) / 0.08) 48px,
        rgb(var(--foreground) / 0.08) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
  }
  .workspace-table .workspace-num { text-align: right; font-variant-numeric: tabular-nums; }
  .workspace-project-name {
    display: block; font-size: 13px; font-weight: 500; text-decoration: none;
    color: rgb(var(--foreground));
  }
  .workspace-project-name:hover { color: rgb(var(--primary)); }
  .workspace-project-slug {
    display: block; color: rgb(var(--muted-foreground));
  }
  .workspace-state {
    display: inline-flex; align-items: center; padding: 3px 10px;
    border-radius: calc(var(--radius-md) * 0.75); font-size: 11px; letter-spacing: 0.02em;
  }
  .workspace-state.is-active { background: rgb(var(--accent-800)); color: rgb(var(--accent-100)); }
  .workspace-state.is-completed { background: rgb(var(--neutral-800)); color: rgb(var(--neutral-100)); }
  .workspace-project-links {
    display: flex; gap: 12px; justify-content: flex-end; font-size: 12px;
  }
  .workspace-project-links a { color: rgb(var(--primary)); text-decoration: none; }
  .workspace-project-links a:hover { text-decoration: underline; }
  .workspace-empty { margin: 0; color: rgb(var(--muted-foreground)); font-size: 14px; }
  .workspace-kicker {
    margin: 0 0 8px; color: rgb(var(--primary)); font-size: 11px;
    font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
  }
  .workspace-title {
    margin: 0; color: rgb(var(--foreground)); font-family: var(--type-page-title-family);
    font-size: var(--type-page-title-size); line-height: var(--type-page-title-line-height);
    letter-spacing: var(--type-page-title-letter-spacing); font-weight: var(--type-page-title-weight);
  }
  .workspace-subtitle {
    max-width: 62ch; margin: 14px 0 0; color: rgb(var(--foreground) / 0.7); font-size: 15px; line-height: 1.6;
  }
  .workspace-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
  .workspace-project-name {
    margin: 0; font-family: var(--type-content-title-family);
    font-size: var(--type-content-title-size); line-height: var(--type-content-title-line-height);
    font-weight: var(--type-content-title-weight); letter-spacing: var(--type-content-title-letter-spacing);
  }
  .workspace-project-slug {
    margin: 3px 0 0; color: rgb(var(--muted-foreground));
    font-family: var(--type-code-identity-family); font-size: var(--type-code-identity-size);
    line-height: var(--type-code-identity-line-height); font-weight: var(--type-code-identity-weight);
    letter-spacing: var(--type-code-identity-letter-spacing);
    overflow-wrap: anywhere;
  }
  .workspace-project-links { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
  .workspace-stat {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline;
    padding: 12px 0; border-top: 1px solid rgb(var(--border));
  }
  .workspace-stat:first-child { border-top: 0; }
  .workspace-stat span { color: rgb(var(--muted-foreground)); font-size: 12px; font-weight: 700; }
  .workspace-stat strong { font-size: 20px; line-height: 1; font-weight: 700; }
  .workspace-empty {
    margin: 0; padding: 18px 16px; color: rgb(var(--muted-foreground)); font-size: 13px; line-height: 1.55;
  }
  .home {
    width: 100%; max-width: var(--flow-page-max); margin: 0 auto;
    display: grid; gap: var(--flow-page-gap);
  }
  .home-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px;
    align-items: start; padding-bottom: 24px; border-bottom: 1px solid rgb(var(--border));
  }
  .home-brand {
    display: flex; align-items: center; gap: 14px; min-width: 0; margin-bottom: 18px;
  }
  .home-logo {
    width: 190px; height: auto;
  }
  .home-kicker {
    margin: 0 0 3px; color: rgb(var(--primary)); font-size: 11px;
    font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
  }
  .home-title {
    margin: 0; font-family: var(--type-product-display-family);
    font-size: var(--type-product-display-size); line-height: var(--type-product-display-line-height);
    font-weight: var(--type-product-display-weight); letter-spacing: var(--type-product-display-letter-spacing);
  }
  .home-subtitle {
    max-width: var(--flow-copy-max); margin: 12px 0 0; color: rgb(var(--muted-foreground));
    font-family: var(--type-body-family); font-size: var(--type-body-size);
    line-height: var(--type-body-line-height); font-weight: var(--type-body-weight);
    letter-spacing: var(--type-body-letter-spacing);
  }
  .home-session {
    min-width: 248px; display: grid; gap: 10px; padding: 14px 0 0; justify-items: end;
    color: rgb(var(--muted-foreground)); font-size: 13px;
  }
  .home-signout {
    display: inline-flex; min-height: 38px; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid rgb(var(--border)); padding: 8px 13px;
    color: rgb(var(--foreground)); background: rgb(var(--card)); text-decoration: none;
    font-weight: 700;
  }
  .home-signout:hover { border-color: rgb(var(--primary)); color: rgb(var(--primary)); }
  .documentation-home { max-width: var(--flow-page-max); }
  .documentation-home .home-hero { display: block; }
  .documentation-home .home-title {
    font-family: var(--type-page-title-family); font-size: var(--type-page-title-size);
    line-height: var(--type-page-title-line-height); font-weight: var(--type-page-title-weight);
    letter-spacing: var(--type-page-title-letter-spacing);
  }
  .activity-documentation .home-subtitle { max-width: 1040px; }
  .home-doc-layout { display: block; }
  .home-doc-sections { display: grid; gap: 0; min-width: 0; }
  .home-nav {
    position: sticky; top: 86px; display: grid; gap: 8px; align-items: start;
  }
  .home-nav a {
    min-height: 36px; display: inline-flex; align-items: center; border: 1px solid rgb(var(--border));
    border-radius: 8px; background: rgb(var(--card)); color: rgb(var(--foreground));
    text-decoration: none; padding: 7px 11px; font-size: 13px; font-weight: 700;
  }
  .home-nav a:hover { border-color: rgb(var(--primary)); color: rgb(var(--primary)); }
  .home-section {
    display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px;
    padding: 28px 0; border-top: 1px solid rgb(var(--border));
  }
  .documentation-home .home-section {
    grid-template-columns: 1fr; gap: 16px; padding: 30px 0;
  }
  .home-section:first-of-type { border-top: 0; }
  .home-section-header { max-width: 980px; }
  .home-section-label {
    margin: 0; color: rgb(var(--muted-foreground)); font-size: 12px; font-weight: 500;
    letter-spacing: 0; text-transform: uppercase;
  }
  .home-section-title {
    margin: 0; font-family: var(--type-section-title-family);
    font-size: var(--type-section-title-size); line-height: var(--type-section-title-line-height);
    font-weight: var(--type-section-title-weight); letter-spacing: var(--type-section-title-letter-spacing);
  }
  .home-section-subtitle {
    margin: 6px 0 0; color: rgb(var(--foreground));
    font-family: var(--type-content-title-family); font-size: var(--type-content-title-size);
    line-height: var(--type-content-title-line-height); font-weight: var(--type-content-title-weight);
    letter-spacing: var(--type-content-title-letter-spacing);
  }
  .home-section-copy {
    margin: 10px 0 0; color: rgb(var(--muted-foreground)); font-size: 15px; line-height: 1.62;
  }
  .documentation-bullets {
    display: grid; gap: 10px; max-width: 980px; margin: 0; padding-left: 20px;
    color: rgb(var(--muted-foreground)); font-size: 14px; line-height: 1.55;
  }
  .documentation-bullets li { padding-left: 3px; }
  .documentation-bullets li::marker { color: rgb(var(--primary)); }
  .documentation-bullets strong { color: rgb(var(--foreground)); font-weight: 600; }
  .documentation-table-wrap {
    max-width: 1080px; overflow-x: auto; border: 1px solid rgb(var(--border));
    border-radius: 8px; background: rgb(var(--card));
  }
  .documentation-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
  .documentation-table th {
    padding: 10px 14px; background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground));
    text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; border-bottom: 1px solid rgb(var(--border));
  }
  .documentation-table td {
    padding: 12px 14px; color: rgb(var(--muted-foreground)); vertical-align: top;
    border-bottom: 1px solid rgb(var(--border));
  }
  .documentation-table tbody tr:last-child td { border-bottom: 0; }
  .documentation-table td:first-child { width: 28%; color: rgb(var(--foreground)); }
  .activity-table th:nth-child(1), .activity-table td:nth-child(1) { width: 16%; }
  .activity-table th:nth-child(2), .activity-table td:nth-child(2) { width: 19%; }
  .activity-table th:nth-child(3), .activity-table td:nth-child(3) { width: 13%; white-space: nowrap; }
  .documentation-direction {
    display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px;
    border: 1px solid rgb(var(--border)); border-radius: 999px; color: rgb(var(--foreground));
    background: rgb(var(--surface-2)); font-size: 11px; font-weight: 600;
  }
  .documentation-direction.is-read {
    border-color: rgb(var(--primary) / 0.58); background: rgb(var(--primary) / 0.2);
    color: rgb(var(--primary));
  }
  .documentation-direction.is-write {
    border-color: rgb(var(--warning) / 0.58); background: rgb(var(--warning) / 0.18);
    color: rgb(var(--warning));
  }
  .documentation-direction.is-read-and-write {
    border-color: rgb(var(--success) / 0.58); background: rgb(var(--success) / 0.18);
    color: rgb(var(--success));
  }
  .edit-rules {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px;
    max-width: 1080px; padding: 4px 0 26px; border-bottom: 1px solid rgb(var(--border));
  }
  .edit-rules.is-three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .edit-rules h3, .deck-workflow h3, .deck-workflow-lane h4, .deck-workflow-stage h5 { margin: 0; color: rgb(var(--foreground)); }
  .edit-rules h3, .deck-workflow h3 { font-size: 16px; line-height: 1.35; font-weight: 600; }
  .edit-rules p, .deck-workflow-stage p, .deck-workflow-note {
    margin: 8px 0 0; color: rgb(var(--muted-foreground)); font-size: 13px; line-height: 1.58;
  }
  .edit-rules .edit-unlock { color: rgb(var(--foreground)); }
  .edit-rules .edit-unlock strong, .edit-brief-note strong { font-weight: 600; }
  .edit-brief-note {
    max-width: 1080px; margin: -10px 0 20px; color: rgb(var(--muted-foreground));
    font-size: 13px; line-height: 1.58;
  }
  .deck-workflow { max-width: 1080px; padding-top: 10px; }
  .deck-workflow > header { display: grid; gap: 5px; margin-bottom: 18px; }
  .deck-workflow-lanes { display: grid; gap: 26px; }
  .deck-workflow-lane { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; }
  .deck-workflow-lane + .deck-workflow-lane { padding-top: 26px; border-top: 1px solid rgb(var(--border)); }
  .deck-workflow-lane-label span {
    color: rgb(var(--primary)); font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .deck-workflow-lane-label h4 { margin-top: 5px; font-size: 14px; font-weight: 600; }
  .deck-workflow-track {
    display: grid;
    gap: 12px; align-items: stretch;
  }
  .deck-workflow-track.is-edit-flow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .deck-workflow-track.is-publication-flow { grid-template-columns: minmax(0, 1fr) minmax(190px, 0.7fr) auto minmax(0, 1fr); }
  .deck-workflow-stage {
    min-width: 0; padding: 16px; border: 1px solid rgb(var(--border)); border-radius: 8px;
    background: rgb(var(--card));
  }
  .deck-workflow-stage.is-editable { border-color: rgb(var(--primary) / 0.6); }
  .deck-workflow-stage.is-final { background: rgb(var(--surface-2)); }
  .deck-workflow-date {
    display: inline-flex; width: fit-content; margin-bottom: 12px; padding: 4px 8px;
    border-radius: 999px; background: rgb(var(--primary) / 0.14); color: rgb(var(--foreground));
    font-size: 10px; line-height: 1.35; font-weight: 700;
  }
  .deck-workflow-stage h5 { font-size: 14px; font-weight: 600; }
  .deck-workflow-arrow {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: rgb(var(--muted-foreground)); font-size: 20px;
  }
  .deck-workflow-arrow span { margin-bottom: 3px; font-size: 10px; font-weight: 600; text-transform: uppercase; }
  .deck-workflow-paths { display: grid; gap: 8px; align-content: center; }
  .deck-workflow-paths div {
    display: grid; gap: 3px; padding: 10px 12px; border-left: 2px solid rgb(var(--primary));
    background: rgb(var(--surface-2));
  }
  .deck-workflow-paths strong { color: rgb(var(--foreground)); font-size: 11px; font-weight: 600; }
  .deck-workflow-paths span { color: rgb(var(--muted-foreground)); font-size: 10px; line-height: 1.4; }
  .deck-workflow-note { max-width: 900px; margin-top: 16px; }
  .deck-workflow-note strong { color: rgb(var(--foreground)); font-weight: 600; }
  .deck-flowchart {
    display: grid; grid-template-columns: minmax(0, 760px); justify-content: center;
    gap: 0; align-items: stretch;
  }
  .deck-flowchart > * { grid-column: 1; }
  .flow-timing { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
  .deck-flow-connector {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 58px; color: rgb(var(--muted-foreground));
  }
  .deck-flow-connector span { font-size: 9px; font-weight: 600; text-transform: uppercase; }
  .deck-flow-connector b { font-size: 25px; line-height: 1; font-weight: 400; }
  .deck-review-branch {
    display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 28px;
    align-items: stretch;
  }
  .deck-review-path { display: grid; }
  .deck-bypass-path {
    display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center;
    min-height: 100%; padding: 20px 8px 0; color: rgb(var(--muted-foreground)); text-align: center;
  }
  .deck-bypass-path > span {
    padding: 5px 9px; border: 1px solid rgb(var(--border)); border-radius: 999px;
    color: rgb(var(--foreground)); font-size: 10px; font-weight: 600; text-transform: uppercase;
  }
  .deck-bypass-path > div { width: 1px; min-height: 92px; margin: 10px 0; background: rgb(var(--primary) / 0.7); }
  .deck-bypass-path > strong { max-width: 150px; font-size: 10px; line-height: 1.4; font-weight: 600; }
  .deck-bypass-path > b { margin-top: 5px; color: rgb(var(--muted-foreground)); font-size: 25px; line-height: 1; font-weight: 400; }
  .release-notes-section { padding: 10px 0 36px; }
  .release-batch-header {
    display: flex; align-items: end; justify-content: space-between; gap: 16px;
    padding: 0 0 12px;
  }
  .release-batch-label {
    margin: 0 0 3px; color: rgb(var(--muted-foreground));
    font-size: 11px; line-height: 1.25; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  }
  .release-batch-title {
    margin: 0; color: rgb(var(--foreground)); font-family: var(--type-content-title-family);
    font-size: var(--type-content-title-size); line-height: var(--type-content-title-line-height);
    font-weight: var(--type-content-title-weight); letter-spacing: var(--type-content-title-letter-spacing);
  }
  .release-batch-period {
    margin: 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.4;
  }
  .release-notes-table-wrap { max-width: none; background: rgb(var(--surface-2)); }
  .release-notes-table th { background: rgb(var(--card)); }
  .release-notes-table th:first-child, .release-notes-table td:first-child { width: 140px; white-space: nowrap; }
  .release-notes-table th:nth-child(2), .release-notes-table td:nth-child(2) { width: 112px; }
  .release-notes-table tbody tr { transition: background-color 140ms ease; }
  .release-notes-table tbody tr:hover { background: rgb(var(--card)); }
  .release-title { display: block; color: rgb(var(--foreground)); font-size: 14px; font-weight: 600; }
  .release-description { display: block; margin-top: 5px; max-width: 860px; line-height: 1.58; }
  .release-type {
    display: inline-flex; align-items: center; min-height: 24px; border: 1px solid rgb(var(--border));
    border-radius: 999px; padding: 3px 8px; color: rgb(var(--foreground)); background: rgb(var(--card));
    font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  }
  .mcp-code-block {
    max-width: 1080px; overflow-x: auto; border: 1px solid rgb(var(--border));
    border-radius: 8px; background: rgb(var(--surface-2));
  }
  .mcp-quick-start h3, .mcp-quick-start h4 {
    margin: 0; color: rgb(var(--foreground)); font-size: 14px; line-height: 1.4; font-weight: 600;
  }
  .mcp-chat-setup {
    max-width: 1080px; display: grid; gap: 12px; padding: 16px 18px;
    border: 1px solid rgb(var(--border)); border-left: 3px solid rgb(var(--primary)); border-radius: 8px;
    background: rgb(var(--surface-2));
  }
  .mcp-chat-setup-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
  }
  .mcp-chat-setup-label {
    margin: 0 0 3px; color: rgb(var(--narrative-accent)); font-size: 10px; line-height: 1.3;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  }
  .mcp-copy-button {
    min-height: 34px; padding: 7px 12px; border: 1px solid rgb(var(--primary)); border-radius: 7px;
    background: rgb(var(--primary) / 0.12); color: rgb(var(--narrative-accent));
    font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  }
  .mcp-copy-button:hover { background: rgb(var(--primary) / 0.22); }
  .mcp-copy-button:focus-visible {
    outline: 2px solid rgb(var(--narrative-accent)); outline-offset: 2px;
  }
  .mcp-chat-prompt {
    margin: 0; padding: 14px 16px; overflow-x: auto; border: 1px solid rgb(var(--border)); border-radius: 7px;
    background: rgb(var(--card)); white-space: pre-wrap;
  }
  .mcp-chat-prompt code {
    color: rgb(var(--foreground)); font-family: var(--font-mono); font-size: 12px; line-height: 1.6;
    white-space: pre-wrap;
  }
  .mcp-chat-setup-note {
    margin: 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.5;
  }
  .mcp-manual-setup { display: grid; gap: 12px; padding-top: 6px; }
  .mcp-code-block pre { margin: 0; padding: 16px 18px; }
  .mcp-code-block code {
    color: rgb(var(--foreground)); font-family: var(--font-mono); font-size: 12px;
    line-height: 1.65; white-space: pre;
  }
  .mcp-documentation :not(pre) > code {
    display: inline-flex; align-items: center; min-height: 22px; max-width: 100%;
    margin: 0 2px; padding: 2px 7px; border: 1px solid rgb(var(--border)); border-radius: 999px;
    background: rgb(var(--surface-2)); color: rgb(var(--foreground));
    font-family: var(--type-code-identity-family); font-size: 0.86em; line-height: 1.3;
    font-weight: var(--type-code-identity-weight); letter-spacing: var(--type-code-identity-letter-spacing);
    vertical-align: baseline; overflow-wrap: anywhere;
  }
  .mcp-documentation .documentation-table :not(pre) > code {
    margin: 1px 2px;
  }
  .mcp-documentation .home-section { gap: 14px; }
  .mcp-documentation .home-check strong { color: rgb(var(--foreground)); }
  .home-steps { display: grid; gap: 10px; margin-top: 18px; }
  .documentation-home .home-steps { margin-top: 0; }
  .home-step {
    display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 13px;
    padding: 14px 0; border-top: 1px solid rgb(var(--border));
  }
  .home-step:first-child { border-top: 0; }
  .home-step-number {
    width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center;
    justify-content: center; border: 1px solid rgb(var(--border));
    background: rgb(var(--surface-2)); color: rgb(var(--foreground));
    font-size: 12px; font-weight: 600;
  }
  .home-step h3 { margin: 2px 0 5px; font-size: 16px; line-height: 1.35; }
  .home-step p { margin: 0; color: rgb(var(--muted-foreground)); font-size: 14px; line-height: 1.58; }
  .home-step code, .home-code {
    padding: 2px 5px; border-radius: 6px; background: rgb(var(--border) / 0.78);
    color: rgb(var(--foreground)); font-family: var(--type-code-identity-family);
    font-size: var(--type-code-identity-size); line-height: var(--type-code-identity-line-height);
    font-weight: var(--type-code-identity-weight); letter-spacing: var(--type-code-identity-letter-spacing);
  }
  .home-env-grid {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 18px;
    max-width: 720px;
  }
  .home-env {
    border: 1px solid rgb(var(--border)); border-radius: 8px; background: rgb(var(--card));
    padding: 14px;
  }
  .home-env h3 { margin: 0 0 10px; font-size: 15px; }
  .home-env dl { display: grid; gap: 8px; margin: 0; }
  .home-env-row {
    display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 10px;
    font-size: 13px; line-height: 1.4;
  }
  .home-env dt { color: rgb(var(--muted-foreground)); font-weight: 700; }
  .home-env dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
  .home-callout {
    margin-top: 18px; border-left: 3px solid rgb(var(--primary)); padding: 11px 0 11px 15px;
    color: rgb(var(--foreground)); font-size: 14px; line-height: 1.58;
  }
  .home-reference-figure {
    display: grid; gap: 8px; margin: 18px 0 0; max-width: 948px;
  }
  .home-reference-figure img {
    display: block; width: 100%; height: auto; border-radius: 8px;
    border: 1px solid rgb(var(--border)); background: rgb(var(--inverse-surface));
  }
  .home-reference-figure figcaption {
    color: rgb(var(--muted-foreground)); font-size: 13px; line-height: 1.5;
  }
  .documentation-label-pill, .documentation-channel-pill {
    display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
    border: 1px solid rgb(var(--border)); background: rgb(var(--surface-2));
    color: rgb(var(--foreground)); font: inherit; font-size: 0.9em; font-weight: 600;
    line-height: 1.35; white-space: nowrap;
  }
  .documentation-channel-pill { font-family: var(--type-code-identity-family); }
  .home-checklist {
    display: grid; grid-template-columns: 1fr; gap: 10px; margin: 18px 0 0; padding: 0;
    list-style: none; counter-reset: configuration-check;
  }
  .home-check {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 0;
    border-top: 1px solid rgb(var(--border)); color: rgb(var(--foreground)); font-size: 14px; line-height: 1.5;
    counter-increment: configuration-check;
  }
  .home-check::before {
    content: counter(configuration-check); display: grid; place-items: center;
    width: 28px; height: 28px; border-radius: 999px;
    border: 1px solid rgb(var(--border));
    background: rgb(var(--surface-2)); color: rgb(var(--foreground));
    font-size: 12px; font-weight: 600; line-height: 1; flex: 0 0 auto;
  }
  .collection { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; gap: 22px; }
  /* Host for a card-bodied page that carries a selector: the block sits on the
     page ground above the card, the way the meeting pages read, rather than
     becoming a strip inside the card's border. */
  .collection-page {
    --page-gap: var(--flow-page-gap);
    width: 100%; display: grid; gap: var(--page-gap); align-content: start;
  }
  .collection-header {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px;
    padding-bottom: 20px; border-bottom: 1px solid rgb(var(--border));
  }
  .collection-title { margin: 0; }
  .collection-subtitle { margin: 8px 0 0; color: rgb(var(--muted-foreground)); font-size: 14px; }
  .summary-count {
    border: 1px solid rgb(var(--border)); border-radius: 8px;
    padding: 10px 14px; background: rgb(var(--card)); font-weight: 700; font-size: 14px;
    white-space: nowrap;
  }
  .collection-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  }
  .scope-links { display: flex; flex-wrap: wrap; gap: 8px; }
  .filter-chip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 38px;
    color: rgb(var(--foreground)); text-decoration: none; border: 1px solid rgb(var(--border));
    border-radius: 8px; background: rgb(var(--card)); padding: 8px 11px; font-size: 14px;
    font-weight: 700;
  }
  .filter-chip span { color: rgb(var(--muted-foreground)); font-weight: 600; }
  .filter-chip:hover { border-color: rgb(var(--primary)); color: rgb(var(--primary)); }
  .filter-chip.is-active {
    background: rgb(var(--success) / 0.16); border-color: rgb(var(--success)); color: rgb(var(--success));
  }
  .collection-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .filter-select-wrap { position: relative; }
  .filter-select {
    min-width: 190px; height: 38px; appearance: none; border: 1px solid rgb(var(--border));
    border-radius: 8px; background: rgb(var(--card)); color: rgb(var(--foreground));
    font: inherit; font-size: 14px; font-weight: 600; padding: 0 34px 0 11px;
  }
  .filter-select-wrap::after {
    content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px;
    border-right: 1.5px solid rgb(var(--muted-foreground));
    border-bottom: 1.5px solid rgb(var(--muted-foreground));
    transform: translateY(-65%) rotate(45deg); pointer-events: none;
  }
  .filter-select:focus { outline: none; border-color: rgb(var(--primary)); box-shadow: 0 0 0 3px rgb(var(--primary) / 0.13); }
  .filter-submit {
    height: 38px; border: 1px solid rgb(var(--primary) / 0.35); border-radius: 8px;
    background: rgb(var(--primary)); color: rgb(var(--primary-foreground)); font: inherit;
    font-size: 14px; font-weight: 700; padding: 0 13px; cursor: pointer;
  }
  .filter-submit:hover { filter: brightness(0.96); }
  .collection-section { margin-top: 28px; }
  .section-title { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0; color: rgb(var(--muted-foreground)); }
  .demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
  .demo-card, .artifact-row {
    color: inherit; text-decoration: none; background: rgb(var(--card));
    border: 1px solid rgb(var(--border)); border-radius: 8px;
  }
  .demo-card {
    display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px;
    padding: 12px; align-items: center;
  }
  .artifact-list { display: grid; gap: 8px; }
  .artifact-row {
    display: grid; grid-template-columns: 104px minmax(180px, 1.15fr) minmax(190px, 0.8fr) minmax(160px, auto);
    gap: 16px; padding: 10px; align-items: center;
  }
  .demo-card:hover, .artifact-row:hover { border-color: rgb(var(--primary)); box-shadow: 0 6px 18px rgb(var(--shadow-ink) / 0.14); }
  .artifact-row:focus-within { border-color: rgb(var(--primary)); box-shadow: 0 0 0 3px rgb(var(--primary) / 0.13); }
  .thumb {
    width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; background: rgb(var(--card));
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    color: rgb(var(--border)); font-size: 12px; font-weight: 700; text-align: center; padding: 8px;
  }
  .thumb-link { display: block; color: inherit; text-decoration: none; }
  .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .artifact-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
  .artifact-name, .artifact-name-link { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
  .artifact-name-link { color: rgb(var(--foreground)); text-decoration: none; }
  .artifact-name-link:hover { color: rgb(var(--primary)); text-decoration: underline; text-underline-offset: 2px; }
  .artifact-meta, .artifact-description { margin: 4px 0 0; color: rgb(var(--muted-foreground)); font-size: 13px; line-height: 1.4; }
  .artifact-description { margin: 0; }
  .artifact-created { display: flex; gap: 10px; align-items: center; min-width: 0; }
  .creator-avatar {
    position: relative; overflow: hidden;
    width: 34px; height: 34px; border-radius: 999px; object-fit: cover;
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    color: rgb(var(--foreground)); background: rgb(var(--border)); border: 1px solid rgb(var(--border));
    font-size: 12px; font-weight: 700;
  }
  .creator-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .creator-avatar.avatar-tone-0 { background: rgb(var(--primary) / 0.12); color: rgb(var(--primary)); }
  .creator-avatar.avatar-tone-1 { background: rgb(var(--primary) / 0.12); color: rgb(var(--primary)); }
  .creator-avatar.avatar-tone-2 { background: rgb(var(--success)); color: rgb(var(--success)); }
  .creator-avatar.avatar-tone-3 { background: rgb(var(--warning)); color: rgb(var(--warning)); }
  .creator-avatar.avatar-tone-4 { background: rgb(var(--surface-2)); color: rgb(var(--foreground)); }
  .creator-copy { min-width: 0; }
  .creator-name { margin: 0; font-size: 13px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
  .creator-date { margin: 3px 0 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.3; }
  .artifact-actions {
    display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  }
  .artifact-action {
    display: inline-flex; align-items: center; justify-content: center; min-height: 34px;
    border: 1px solid rgb(var(--border)); border-radius: 8px; background: rgb(var(--surface-2));
    color: rgb(var(--foreground)); text-decoration: none; font-size: 13px; font-weight: 700;
    padding: 7px 10px; white-space: nowrap;
  }
  .artifact-action:hover { border-color: rgb(var(--primary)); color: rgb(var(--primary)); }
  .artifact-action.is-primary {
    background: rgb(var(--primary)); color: rgb(var(--primary-foreground)); border-color: rgb(var(--primary));
  }
  .artifact-action.is-primary:hover { filter: brightness(0.96); color: rgb(var(--primary-foreground)); }
  .demo-badge {
    display: inline-flex; align-items: center; width: fit-content; margin-top: 7px;
    border-radius: 999px; background: rgb(var(--warning)); color: rgb(var(--warning)); padding: 3px 8px;
    font-size: 12px; font-weight: 700;
  }
  .artifact-title-line .demo-badge { margin-top: 0; }
  .empty {
    margin-top: 28px; border: 1px solid rgb(var(--border)); border-radius: 8px;
    padding: 24px; background: rgb(var(--card)); color: rgb(var(--muted-foreground));
  }
  [hidden] { display: none !important; }
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .collection {
    width: min(100%, calc(100vw - 40px)); max-width: none; margin: 0 auto;
    display: block; overflow: hidden; border: 1px solid rgb(var(--border));
    border-radius: 10px; background: rgb(var(--primary) / 0.10);
    box-shadow: 0 10px 26px rgb(var(--shadow-ink) / 0.10);
  }
  .collection-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 16px; background: rgb(var(--surface-2));
    border-bottom: 1px solid rgb(var(--border));
  }
  .collection-kicker {
    margin: 0 0 4px; color: rgb(var(--primary));
    font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
  }
  .collection-title {
    margin: 0; color: rgb(var(--foreground)); font-family: var(--type-page-title-family);
    font-size: var(--type-page-title-size); line-height: var(--type-page-title-line-height);
    font-weight: var(--type-page-title-weight); letter-spacing: var(--type-page-title-letter-spacing);
  }
  .collection-toolbar {
    display: grid; grid-template-columns: minmax(220px, 360px) minmax(230px, 280px) minmax(150px, 180px) minmax(190px, 240px);
    gap: 8px; align-items: center; justify-content: start; padding: 10px;
    background: rgb(var(--surface-2)); border-bottom: 1px solid rgb(var(--border));
  }
  .search-wrap { position: relative; min-width: 0; }
  .search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: rgb(var(--muted-foreground)); font-size: 15px; pointer-events: none;
  }
  .artifact-search {
    width: 100%; height: 36px; border: 1px solid rgb(var(--border)); border-radius: 9px;
    background: rgb(var(--card)); color: rgb(var(--foreground)); font: inherit;
    font-size: 13px; padding: 0 12px 0 36px; outline: none;
    box-shadow: 0 1px 2px rgb(var(--shadow-ink) / 0.08);
  }
  .artifact-search:focus, .filter-select:focus {
    border-color: rgb(var(--primary)); box-shadow: 0 0 0 3px rgb(var(--primary) / 0.12);
  }
  .filter-select {
    width: 100%; min-width: 0; height: 36px; appearance: none;
    border: 1px solid rgb(var(--border)); border-radius: 9px; background: rgb(var(--card));
    color: rgb(var(--foreground)); font: inherit; font-size: 13px; font-weight: 500;
    padding: 0 34px 0 12px; outline: none; box-shadow: 0 1px 2px rgb(var(--shadow-ink) / 0.08);
  }
  .filter-select-wrap { position: relative; min-width: 0; }
  .filter-select-wrap::after {
    content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px;
    border-right: 1.5px solid rgb(var(--muted-foreground));
    border-bottom: 1.5px solid rgb(var(--muted-foreground));
    transform: translateY(-65%) rotate(45deg); pointer-events: none;
  }
  .artifact-table { width: 100%; overflow: visible; background: rgb(var(--surface-2)); }
  .artifact-table-grid { min-width: 960px; }
  .artifact-table-grid.is-meetings { min-width: 820px; }
  .artifact-table-header, .artifact-table-row {
    display: grid; grid-template-columns: 136px 58px 156px 230px minmax(420px, 1fr);
    align-items: center;
  }
  .artifact-table-grid.is-meetings .artifact-table-header,
  .artifact-table-grid.is-meetings .artifact-table-row {
    grid-template-columns: 292px 230px minmax(420px, 1fr);
  }
  .artifact-table-grid > .empty {
    margin-right: 16px; margin-left: 16px;
  }
  .artifact-table-header {
    min-height: 34px; background: linear-gradient(to right, transparent, var(--divider) 48px, var(--divider) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px; border-bottom: 0;
    color: rgb(var(--muted-foreground)); font-size: 11px; font-weight: 500;
    letter-spacing: 0.08em;
  }
  .artifact-table-header > div, .artifact-table-row > div, .artifact-table-row > a {
    min-width: 0; padding: 0 12px;
  }
  .artifact-table-row {
    position: relative; min-height: 53px; background: linear-gradient(to right, transparent, rgb(var(--foreground) / 0.08) 48px, rgb(var(--foreground) / 0.08) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
    border-bottom: 0; color: rgb(var(--foreground));
  }
  .artifact-table-row[hidden], .table-empty[hidden] { display: none !important; }
  .artifact-table-row::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: transparent;
  }
  /* The hover tint layers above the row rule so hovering does not erase it. */
  .artifact-table-row:hover {
    background:
      linear-gradient(rgb(var(--primary) / 0.10), rgb(var(--primary) / 0.10)) no-repeat 0 0 / 100% 100%,
      linear-gradient(to right, transparent, rgb(var(--foreground) / 0.08) 48px, rgb(var(--foreground) / 0.08) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
  }
  .artifact-table-row:hover::before, .artifact-table-row:focus-within::before { background: rgb(var(--primary)); }
  .artifact-date { color: rgb(var(--muted-foreground)); font-size: 12px; white-space: nowrap; }
  .meeting-start {
    color: rgb(var(--foreground)); font-size: 12px; line-height: 1.35; white-space: normal;
  }
  .file-cell {
    position: relative; display: flex; align-items: center; width: fit-content;
    color: inherit; text-decoration: none;
  }
  .file-tile {
    width: 30px; height: 30px; border: 1px solid rgb(var(--border)); border-radius: 7px;
    background: rgb(var(--surface-2)); display: inline-flex; align-items: center; justify-content: center;
    overflow: visible; color: rgb(var(--muted-foreground)); font-size: 10px; font-weight: 700;
  }
  .file-tile.is-projectfollow {
    border: 0; background: transparent; color: transparent;
    box-shadow: 0 1px 2px rgb(var(--shadow-ink) / 0.12);
  }
  .file-tile img {
    width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px;
  }
  .file-tile.is-projectfollow img { border-radius: 7px; }
  .preview-popover {
    position: absolute; left: -40px; top: -110px; width: 118px; height: 118px;
    border: 3px solid rgb(var(--border)); border-radius: 24px; background: rgb(var(--card));
    box-shadow: 0 18px 38px rgb(var(--shadow-ink) / 0.24); padding: 8px; z-index: 10;
    opacity: 0; transform: translateY(4px) scale(0.98); pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
  }
  .file-cell:hover .preview-popover, .file-cell:focus-visible .preview-popover {
    opacity: 1; transform: translateY(0) scale(1);
  }
  .preview-popover img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block;
  }
  .preview-popover.is-projectfollow-icon {
    background: rgb(var(--card)); border-color: rgb(var(--border)); padding: 10px;
  }
  .preview-popover.is-projectfollow-icon img {
    object-fit: contain; border-radius: 20px;
  }
  .preview-fallback {
    width: 100%; height: 100%; border-radius: 16px; display: flex; align-items: center;
    justify-content: center; background: rgb(var(--border)); color: rgb(var(--foreground));
    font-size: 16px; font-weight: 700;
  }
  .type-pill {
    display: inline-flex; align-items: center; width: fit-content; max-width: 100%;
    min-height: 20px; padding: 2px 9px; border: 1px solid rgb(var(--border));
    border-radius: 999px; background: rgb(var(--surface-2)); color: rgb(var(--foreground));
    font-size: 12px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .artifact-source-link {
    display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
    color: rgb(var(--primary)); text-decoration: none; font-size: 12px; font-weight: 600;
  }
  .artifact-source-link:hover, .description-title:hover { text-decoration: underline; text-underline-offset: 2px; }
  .slack-mark {
    position: relative; width: 14px; height: 14px; flex: 0 0 auto; display: inline-block;
  }
  .slack-mark i { position: absolute; width: 5px; height: 5px; border-radius: 2px; }
  /* Slack's brand mark and Google's sign-in blue are fixed brand colours:
     they identify a third party and must not follow our palette. */
  .slack-mark i:nth-child(1) { left: 1px; top: 1px; background: #36c5f0; }
  .slack-mark i:nth-child(2) { right: 1px; top: 1px; background: rgb(var(--primary)); }
  .slack-mark i:nth-child(3) { left: 1px; bottom: 1px; background: #ecb22e; }
  .slack-mark i:nth-child(4) { right: 1px; bottom: 1px; background: #e01e5a; }
  .source-text, .author-text, .author-source-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .author-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
  .author-cell .creator-avatar { width: 20px; height: 20px; font-size: 9px; }
  .author-copy { display: grid; min-width: 0; gap: 2px; }
  .author-text { color: rgb(var(--foreground)); font-size: 12px; font-weight: 600; }
  .author-source-link {
    color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.2; text-decoration: none;
  }
  .author-source-link:hover { color: rgb(var(--primary)); text-decoration: underline; text-underline-offset: 2px; }
  .description-title {
    display: block; color: rgb(var(--foreground)); font-size: 12px; font-weight: 700;
    text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .description-copy {
    margin: 4px 0 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .table-empty {
    padding: 26px 16px; color: rgb(var(--muted-foreground)); font-size: 13px;
    border-top: 1px solid rgb(var(--border)); background: rgb(var(--surface-2));
  }

  .workspace-meetings-page {
    width: 100%; max-width: var(--flow-page-max); margin: 0 auto; overflow: hidden;
    border: 1px solid rgb(var(--border)); border-radius: 10px;
    background: rgb(var(--surface-2)); box-shadow: 0 10px 26px rgb(var(--shadow-ink) / 0.10);
  }
  .workspace-meetings-header {
    display: flex; align-items: end; justify-content: space-between; gap: 20px;
    padding: 18px 20px; border-bottom: 1px solid rgb(var(--border));
  }
  .workspace-meetings-header h1 {
    margin: 0; font-family: var(--type-page-title-family); font-size: var(--type-page-title-size);
    line-height: var(--type-page-title-line-height); font-weight: var(--type-page-title-weight);
    letter-spacing: var(--type-page-title-letter-spacing);
  }
  .workspace-meetings-header p:last-child {
    margin: 7px 0 0; color: rgb(var(--muted-foreground)); font-size: 13px;
  }
  .workspace-meetings-header > span {
    flex: 0 0 auto; color: rgb(var(--muted-foreground)); font-size: 12px; font-weight: 500;
  }
  .workspace-meetings-snapshot-notice {
    margin: 0; padding: 10px 20px; border-bottom: 1px solid rgb(var(--border));
    background: rgb(var(--primary) / 0.08); color: rgb(var(--muted-foreground));
    font-size: 12px; line-height: 1.45;
  }
  .workspace-meetings-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px; padding: 10px; border-bottom: 1px solid rgb(var(--border));
  }
  .workspace-meetings-toolbar .search-wrap { flex: 1 1 300px; width: min(420px, 100%); }
  .workspace-meetings-filters { display: flex; flex: 0 1 auto; gap: 8px; }
  .workspace-meetings-filters .filter-select { min-width: 160px; }
  .workspace-meetings-table { width: 100%; overflow-x: auto; }
  .workspace-meetings-table-header, .workspace-meeting-group {
    display: grid; min-width: 1140px;
    grid-template-columns: 200px minmax(240px, 1.2fr) 92px 160px minmax(140px, 0.7fr) minmax(220px, 1fr) 88px;
    align-items: stretch;
  }
  .workspace-meetings-table-header {
    min-height: 35px; align-items: center; color: rgb(var(--muted-foreground));
    border-bottom: 1px solid rgb(var(--divider)); font-size: 11px; font-weight: 500;
    letter-spacing: 0.08em;
  }
  .workspace-meetings-table-header > span { min-width: 0; height: 100%; }
  .workspace-meetings-table-header > span:last-child { padding: 0; }
  .workspace-meeting-sort {
    width: 100%; height: 100%; display: flex; align-items: center; gap: 5px; padding: 0 12px;
    border: 0; background: transparent; color: inherit; font: inherit;
    letter-spacing: inherit; text-align: left; cursor: pointer;
  }
  .workspace-meeting-sort:hover { color: rgb(var(--foreground)); background: rgb(var(--foreground) / 0.04); }
  .workspace-meeting-sort:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: -2px; }
  .workspace-meeting-sort [data-sort-indicator] { color: rgb(var(--primary)); font-size: 12px; letter-spacing: 0; }
  .workspace-meeting-group {
    position: relative; min-height: 62px; border-bottom: 1px solid rgb(var(--divider));
    transition: background 120ms ease;
  }
  .workspace-meeting-group:hover, .workspace-meeting-group:focus-within {
    background: rgb(var(--primary) / 0.08);
  }
  .workspace-meeting-time, .workspace-meeting-name, .workspace-meeting-length,
  .workspace-meeting-channel {
    display: flex; align-items: center; min-width: 0; padding: 12px;
    font-size: 12px; line-height: 1.4;
  }
  .workspace-meeting-time, .workspace-meeting-length, .workspace-meeting-channel {
    color: rgb(var(--muted-foreground));
  }
  .workspace-meeting-name a, .workspace-meeting-name > span, .workspace-meeting-project a {
    color: rgb(var(--foreground)); font-weight: 600; text-decoration: none;
  }
  .workspace-meeting-name a:hover, .workspace-meeting-project a:hover {
    color: rgb(var(--primary)); text-decoration: underline; text-underline-offset: 2px;
  }
  .workspace-meeting-assignment-stack { grid-column: 5 / 7; display: grid; min-width: 0; }
  .workspace-meeting-assignment {
    display: grid; grid-template-columns: minmax(140px, 0.7fr) minmax(220px, 1fr);
    min-height: 62px; align-items: center;
  }
  .workspace-meeting-assignment + .workspace-meeting-assignment {
    border-top: 1px solid rgb(var(--divider));
  }
  .workspace-meeting-domain, .workspace-meeting-project {
    min-width: 0; padding: 12px; font-size: 12px; line-height: 1.4;
  }
  .workspace-meeting-domain { color: rgb(var(--muted-foreground)); }
  .workspace-meeting-project { display: flex; align-items: center; gap: 7px; }
  .meeting-binding-badge {
    display: inline-flex; flex: 0 0 auto; padding: 2px 6px; border-radius: 999px;
    background: rgb(var(--primary) / 0.12); color: rgb(var(--primary));
    font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  }
  .meeting-unbound-badge {
    display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px;
    border: 1px solid rgb(var(--border)); border-radius: 999px;
    background: rgb(var(--foreground) / 0.04); color: rgb(var(--muted-foreground));
    font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  }
  .workspace-meeting-actions {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 12px 6px;
  }
  @media (hover: hover) and (pointer: fine) {
    .workspace-meeting-group .workspace-meeting-actions {
      opacity: 0; pointer-events: none; transform: translateX(4px);
      transition: opacity 120ms ease, transform 120ms ease;
    }
    .workspace-meeting-group:hover .workspace-meeting-actions,
    .workspace-meeting-group:focus-within .workspace-meeting-actions {
      opacity: 1; pointer-events: auto; transform: translateX(0);
    }
  }
  .workspace-meeting-open-action {
    flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0; border: 1px solid rgb(var(--primary) / 0.5); border-radius: 8px;
    background: rgb(var(--primary) / 0.1); color: rgb(var(--primary));
    line-height: 1; text-decoration: none;
  }
  .workspace-meeting-open-action:hover {
    border-color: rgb(var(--primary)); background: rgb(var(--primary) / 0.16);
  }
  .workspace-meeting-open-action:focus-visible,
  .workspace-meeting-binding-action:focus-visible {
    outline: 2px solid rgb(var(--primary)); outline-offset: 2px;
  }
  .workspace-meeting-open-action svg {
    width: 13px; height: 13px; fill: currentColor;
  }
  .workspace-meeting-open-action span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  .workspace-meeting-binding-action {
    flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0; border: 1px solid rgb(var(--border)); border-radius: 8px;
    background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground)); cursor: pointer;
    transition: color 120ms ease, border-color 120ms ease;
  }
  .workspace-meeting-binding-action svg {
    width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .workspace-meeting-binding-action span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .workspace-meeting-binding-action:hover {
    color: rgb(var(--primary)); border-color: rgb(var(--primary));
  }
  .workspace-meetings-empty { padding: 32px 20px; color: rgb(var(--muted-foreground)); }
  .workspace-meeting-recording .card-header {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
  }
  .workspace-meeting-recording .card-header > div { min-width: 0; }
  .workspace-meeting-recording .subtitle { margin: 5px 0 0; color: rgb(var(--muted-foreground)); font-size: 12px; }
  .workspace-meeting-watch-action { flex: 0 0 auto; }
  .workspace-meeting-recording.is-unavailable .card-header { border-bottom: 0; }
  .meeting-binding-dialog {
    width: min(680px, calc(100vw - 32px)); max-height: min(820px, calc(100dvh - 32px));
    overflow: hidden; padding: 0; border: 1px solid rgb(var(--neutral-500)); border-radius: 15px;
    background: rgb(var(--surface-2)); color: rgb(var(--foreground));
    box-shadow: 0 30px 90px rgb(0 0 0 / 0.45);
  }
  .meeting-binding-dialog::backdrop { background: rgb(var(--shadow-ink) / 0.62); backdrop-filter: blur(4px); }
  .meeting-binding-dialog[open] { animation: summary-editor-in 160ms ease-out; }
  .meeting-binding-form {
    display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    min-height: 0; max-height: inherit; overflow: hidden;
  }
  .meeting-binding-dialog-header {
    display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 20px 22px 16px;
  }
  .meeting-binding-dialog-header > div { min-width: 0; }
  .meeting-binding-dialog-header p {
    margin: 0 0 5px; color: rgb(var(--primary)); font-size: 11px; font-weight: 600;
    letter-spacing: 0.11em; text-transform: uppercase;
  }
  .meeting-binding-dialog-header h2 { margin: 0; font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
  .meeting-binding-dialog-header time { display: block; margin-top: 6px; color: rgb(var(--muted-foreground)); font-size: 12px; }
  .meeting-binding-dialog-header button {
    flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid rgb(var(--border)); border-radius: 9px;
    background: transparent; color: rgb(var(--foreground)); font-size: 24px; cursor: pointer;
  }
  .meeting-binding-series-option {
    display: flex; align-items: start; gap: 11px; margin: 0 22px 16px; padding: 13px 14px;
    border: 1px solid rgb(var(--border)); border-radius: 10px; background: rgb(var(--card) / 0.46);
  }
  .meeting-binding-series-option input, .meeting-binding-project-option input {
    width: 16px; height: 16px; margin: 2px 0 0; accent-color: rgb(var(--primary));
  }
  .meeting-binding-series-option span { display: grid; gap: 3px; }
  .meeting-binding-series-option strong { font-size: 13px; font-weight: 600; }
  .meeting-binding-series-option small { color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.4; }
  .meeting-binding-source-note {
    margin: 0; padding: 0 22px 14px; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .meeting-binding-scroll {
    min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: 0 22px 18px; border-top: 1px solid rgb(var(--divider));
  }
  .meeting-binding-domain { padding-top: 18px; }
  .meeting-binding-domain h3 {
    margin: 0 0 8px; color: rgb(var(--muted-foreground)); font-size: 11px; font-weight: 600;
    letter-spacing: 0.09em; text-transform: uppercase;
  }
  .meeting-binding-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .meeting-binding-project-option {
    display: flex; align-items: start; gap: 9px; min-width: 0; padding: 9px 10px;
    border-radius: 8px; color: rgb(var(--foreground)); font-size: 13px; cursor: pointer;
  }
  .meeting-binding-project-option:hover { background: rgb(var(--primary) / 0.08); }
  .meeting-binding-project-option:has(input:disabled) { color: rgb(var(--muted-foreground)); cursor: not-allowed; }
  .meeting-binding-project-option span { min-width: 0; overflow-wrap: anywhere; }
  .meeting-binding-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 15px 22px; border-top: 1px solid rgb(var(--divider));
    color: rgb(var(--muted-foreground)); font-size: 12px;
  }
  .meeting-binding-footer > span { min-width: 0; overflow-wrap: anywhere; }
  .meeting-binding-footer > div { display: flex; gap: 9px; flex: 0 0 auto; }
  .meeting-binding-footer button {
    min-height: 36px; border: 1px solid rgb(var(--border)); border-radius: 8px;
    background: transparent; color: rgb(var(--foreground)); padding: 0 13px;
    font: inherit; font-weight: 600; cursor: pointer;
  }
  .meeting-binding-footer button[type="submit"] {
    border-color: rgb(var(--primary)); background: rgb(var(--primary)); color: rgb(var(--primary-foreground));
  }
  .meeting-binding-footer button:disabled { opacity: 0.55; cursor: wait; }
  [data-meeting-binding-status].is-error { color: rgb(var(--danger)); }

  @media (max-width: 760px) {
    .workspace-meetings-header { align-items: start; flex-direction: column; }
    .workspace-meetings-toolbar { align-items: stretch; }
    .workspace-meetings-toolbar .search-wrap { flex-basis: 100%; width: 100%; }
    .workspace-meetings-filters { width: 100%; }
    .workspace-meetings-filters .filter-select-wrap { flex: 1 1 0; }
    .workspace-meeting-recording .card-header { align-items: flex-start; flex-direction: column; }
    .meeting-binding-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
    .meeting-binding-form { height: 100%; }
    .meeting-binding-projects { grid-template-columns: 1fr; }
    .meeting-binding-footer { align-items: stretch; flex-direction: column; }
    .meeting-binding-footer > div, .meeting-binding-footer button { width: 100%; }
  }
  .no-meetings-panel {
    padding: 34px 24px 38px; background: rgb(var(--surface-2));
  }
  .no-meetings-panel h2 {
    margin: 0; color: rgb(var(--foreground)); font-size: 16px; line-height: 1.35;
    font-weight: 500;
  }
  .no-meetings-panel p {
    max-width: 560px; margin: 8px 0 0; color: rgb(var(--muted-foreground));
    font-size: 13px; line-height: 1.55;
  }
  .collection-toolbar.detected-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 420px) minmax(280px, max-content);
    justify-content: start;
  }
  .detected-status-filter {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px;
  }
  .detected-status-button {
    min-height: 36px; display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgb(var(--border)); border-radius: 8px; background: rgb(var(--card));
    color: rgb(var(--foreground)); padding: 7px 11px; font: inherit; font-size: 12px;
    line-height: 1.2; font-weight: 700; cursor: pointer;
    box-shadow: 0 1px 2px rgb(var(--shadow-ink) / 0.08);
  }
  .detected-status-button:hover {
    border-color: rgb(var(--muted-foreground)); background: rgb(var(--surface-2)); color: rgb(var(--foreground));
  }
  .detected-status-button.is-active {
    border-color: rgb(var(--primary) / 0.42); background: rgb(var(--primary) / 0.12);
    color: rgb(var(--foreground));
  }
  .detected-status-count {
    min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; background: rgb(var(--border)); color: rgb(var(--foreground));
    padding: 0 7px; font-size: 11px; line-height: 1; font-weight: 500;
  }
  .detected-status-button.is-active .detected-status-count {
    background: rgb(var(--primary) / 0.18); color: rgb(var(--foreground));
  }
  .detected-table-grid { min-width: 980px; }
  .detected-table-header, .detected-row {
    display: grid; grid-template-columns: 280px minmax(700px, 1fr);
    align-items: stretch;
  }
  .detected-table-header {
    min-height: 34px; background: linear-gradient(to right, transparent, var(--divider) 48px, var(--divider) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px; border-bottom: 0;
    color: rgb(var(--muted-foreground)); font-size: 11px; font-weight: 500;
    letter-spacing: 0.08em;
  }
  .detected-table-header > div { min-width: 0; padding: 10px 16px; }
  .detected-row > div { min-width: 0; }
  .detected-row {
    position: relative; min-height: 112px; background: rgb(var(--surface-2));
    border-bottom: 1px solid rgb(var(--border)); color: rgb(var(--foreground));
  }
  .detected-row[hidden] { display: none !important; }
  .detected-row::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: transparent;
  }
  .detected-row:hover { background: rgb(var(--primary) / 0.10); }
  .detected-row:hover::before, .detected-row:focus-within::before { background: rgb(var(--primary)); }
  .detected-source {
    display: grid; grid-template-rows: auto minmax(12px, 1fr) auto;
    align-content: stretch; padding: 26px 22px 24px;
  }
  .detected-source-top { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; align-items: start; }
  .detected-source-icon {
    width: 22px; height: 22px; border: 1px solid rgb(var(--border)); border-radius: 7px;
    background: rgb(var(--surface-2)); display: inline-flex; align-items: center; justify-content: center;
  }
  .detected-source-icon.is-slack { background: rgb(var(--card)); }
  .detected-source-icon.is-meeting {
    background: rgb(var(--card)); border-color: rgb(var(--danger));
  }
  .detected-source-icon.is-meeting svg {
    width: 19px; height: 19px; display: block;
  }
  .detected-source-copy { display: grid; gap: 4px; min-width: 0; }
  .detected-source-title {
    color: rgb(var(--foreground)); text-decoration: none; font-size: 12px; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .detected-source span { color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.2; }
  .detected-source-state {
    width: fit-content; min-height: 22px; display: inline-flex; align-items: center;
    border: 1px solid rgb(var(--border)); border-radius: 999px; background: rgb(var(--surface-2));
    color: rgb(var(--muted-foreground)); padding: 3px 8px; font-size: 11px; line-height: 1.2;
    font-weight: 700; text-decoration: none; margin-top: 5px;
  }
  .detected-source-state.is-created { color: rgb(var(--primary)); border-color: rgb(var(--primary) / 0.22); background: rgb(var(--primary) / 0.10); }
  .detected-source-state.is-ignored { color: rgb(var(--muted-foreground)); border-color: rgb(var(--border)); background: rgb(var(--surface-2)); }
  .detected-source-state:hover { border-color: rgb(var(--primary)); color: rgb(var(--primary)); }
  .detected-main { display: grid; gap: 12px; padding: 20px 20px 22px; }
  .detected-title { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 700; }
  .detected-description {
    display: grid; gap: 13px; max-width: 1040px; color: rgb(var(--foreground));
  }
  .detected-description-section { display: grid; gap: 5px; }
  .detected-description-section h3 {
    margin: 0; color: rgb(var(--foreground)); font-size: 11px; line-height: 1.3;
    font-weight: 500; text-transform: uppercase; letter-spacing: 0;
  }
  .detected-description-section p {
    margin: 0; color: rgb(var(--foreground)); font-size: 12px; line-height: 1.55;
  }
  .detected-description-section ul {
    margin: 0; padding-left: 18px; color: rgb(var(--foreground)); font-size: 12px; line-height: 1.55;
  }
  .detected-description-section li + li { margin-top: 3px; }
  .detected-description-section a { color: rgb(var(--primary)); text-decoration: underline; text-underline-offset: 2px; }
  .inline-link-icon {
    width: 14px; height: 14px; display: inline-block; margin-right: 4px;
    vertical-align: -2px; object-fit: contain;
  }
  .detected-draft-inline { display: grid; gap: 10px; max-width: 1040px; color: rgb(var(--foreground)); }
  .detected-draft-inline h3 {
    margin: 0; color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.25;
    font-weight: 500; text-transform: uppercase; letter-spacing: 0;
  }
  .detected-draft-inline h4 {
    margin: 8px 0 0; color: rgb(var(--foreground)); font-size: 12px; line-height: 1.35; font-weight: 700;
  }
  .detected-draft-inline p, .detected-draft-inline ul { margin: 0; font-size: 12px; line-height: 1.5; }
  .detected-draft-inline ul { padding-left: 18px; }
  .detected-draft-inline li + li { margin-top: 3px; }
  .detected-draft-field { display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; }
  .detected-draft-field span { color: rgb(var(--muted-foreground)); font-weight: 700; }
  .detected-draft-field strong { color: rgb(var(--foreground)); font-weight: 600; }
  .detected-created {
    margin: 2px 0 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.35;
  }
  .detected-created a { color: rgb(var(--primary)); text-decoration: none; font-weight: 700; }
  .detected-created a:hover { text-decoration: underline; text-underline-offset: 2px; }
  .detected-reviewed {
    margin: 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.35; font-weight: 700;
  }
  .detected-source .detected-row-actions {
    align-self: end; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start;
    margin: 12px 0 0 33px; opacity: 0; pointer-events: none;
    transition: opacity 120ms ease;
  }
  .detected-row:hover .detected-source .detected-row-actions,
  .detected-row:focus-within .detected-source .detected-row-actions {
    opacity: 1; pointer-events: auto;
  }
  .detected-main .detected-row-actions { display: none; }
  .detected-row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
  .detected-row-actions form { margin: 0; }
  .detected-action-button {
    min-height: 28px; border: 1px solid rgb(var(--border)); border-radius: 6px;
    background: rgb(var(--card)); color: rgb(var(--foreground)); cursor: pointer;
    padding: 5px 10px; font: inherit; font-size: 12px; line-height: 1.2; font-weight: 700;
    text-decoration: none; white-space: nowrap;
  }
  .detected-action-button:hover {
    border-color: rgb(var(--primary)); color: rgb(var(--primary));
  }
  .detected-action-button.is-primary {
    border-color: rgb(var(--primary)); background: rgb(var(--primary)); color: rgb(var(--primary-foreground));
  }
  .detected-action-button.is-primary:hover {
    border-color: rgb(var(--primary)); background: rgb(var(--primary)); color: rgb(var(--primary-foreground));
  }
  .detected-action-button.is-danger {
    border-color: rgb(var(--border)); background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground));
  }
  .detected-action-button.is-danger:hover {
    border-color: rgb(var(--muted-foreground)); background: rgb(var(--surface-2)); color: rgb(var(--foreground));
  }
  .detected-review-dialog {
    width: min(420px, calc(100vw - 32px)); border: 1px solid rgb(var(--border));
    border-radius: 8px; box-shadow: 0 24px 70px rgb(var(--shadow-ink) / 0.30);
    background: rgb(var(--card)); color: rgb(var(--foreground)); padding: 0;
  }
  .detected-review-dialog::backdrop { background: rgb(var(--shadow-ink) / 0.46); }
  .detected-review-dialog-body { display: grid; gap: 12px; padding: 20px; }
  .detected-review-dialog-title { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 500; }
  .detected-review-dialog-message { margin: 0; color: rgb(var(--muted-foreground)); font-size: 13px; line-height: 1.5; }
  .detected-review-dialog-status {
    display: flex; gap: 10px; align-items: center; color: rgb(var(--foreground));
    font-size: 13px; line-height: 1.4;
  }
  .detected-review-spinner {
    width: 16px; height: 16px; border: 2px solid rgb(var(--border));
    border-top-color: rgb(var(--primary)); border-radius: 999px;
    animation: vertex-spin 0.8s linear infinite; flex: 0 0 auto;
  }
  .detected-review-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
  .detected-review-dialog[aria-busy="false"] .detected-review-spinner { display: none; }
  .detected-review-dialog[aria-busy="true"] .detected-review-dialog-actions { display: none; }
  @keyframes vertex-spin { to { transform: rotate(360deg); } }
  .vertex-comments-page-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  }
  .vertex-comments-page-header > div:first-child { min-width: 0; }
  .vertex-comments-thread { flex: 0 0 auto; }
  .vertex-comments-trigger {
    min-height: 34px; display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgb(var(--border)); border-radius: 8px; background: rgb(var(--card));
    color: rgb(var(--foreground)); padding: 7px 10px; font: inherit; font-size: 12px;
    line-height: 1.2; font-weight: 700; cursor: pointer; white-space: nowrap;
    box-shadow: 0 1px 2px rgb(var(--shadow-ink) / 0.08);
  }
  .vertex-comments-trigger:hover {
    border-color: rgb(var(--primary)); color: rgb(var(--primary));
  }
  .vertex-comments-trigger:focus-visible,
  .vertex-comments-close:focus-visible,
  .vertex-comments-submit:focus-visible,
  .vertex-comments-form textarea:focus-visible {
    outline: 3px solid rgb(var(--primary) / 0.18); outline-offset: 2px;
  }
  .vertex-comments-count {
    min-width: 20px; height: 20px; display: inline-flex; align-items: center;
    justify-content: center; border-radius: 999px; background: rgb(var(--primary) / 0.1);
    color: rgb(var(--primary)); padding: 0 6px; font-size: 11px; font-weight: 500;
  }
  .vertex-comments-dialog {
    width: min(820px, calc(100vw - 32px)); height: min(820px, calc(100vh - 32px));
    max-height: calc(100vh - 32px);
    border: 1px solid rgb(var(--border)); border-radius: 10px; padding: 0;
    background: rgb(var(--background)); color: rgb(var(--foreground));
    box-shadow: 0 24px 70px rgb(var(--shadow-ink) / 0.34);
  }
  .vertex-comments-dialog::backdrop { background: rgb(var(--shadow-ink) / 0.52); }
  .vertex-comments-dialog-body {
    height: 100%; max-height: inherit; box-sizing: border-box; display: grid;
    grid-template-rows: auto minmax(180px, 1fr) auto; gap: 12px; padding: 18px;
  }
  .vertex-comments-dialog-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 2px 2px 6px;
  }
  .vertex-comments-dialog-header h2 {
    margin: 0; color: rgb(var(--foreground)); font-size: 17px; line-height: 1.3;
    font-weight: 500;
  }
  .vertex-comments-dialog-header p {
    margin: 4px 0 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.45;
  }
  .vertex-comments-close {
    width: 30px; height: 30px; flex: 0 0 auto; display: inline-flex; align-items: center;
    justify-content: center; border: 0; border-radius: 7px; background: transparent;
    color: rgb(var(--muted-foreground)); font: inherit; font-size: 22px; line-height: 1;
    cursor: pointer;
  }
  .vertex-comments-close:hover { background: rgb(var(--primary) / 0.08); color: rgb(var(--foreground)); }
  .vertex-comments-list {
    min-height: 0; overflow-y: auto; display: grid;
    align-content: start; gap: 12px; padding: 16px; background: rgb(var(--surface-2));
    border: 1px solid rgb(var(--border)); border-radius: 8px;
  }
  .vertex-comment {
    display: grid; gap: 7px; padding: 12px 14px; border: 1px solid rgb(var(--border));
    border-radius: 8px; background: rgb(var(--card));
  }
  .vertex-comment.is-vertex {
    border-color: rgb(var(--primary) / 0.28);
    background: rgb(var(--primary) / 0.045);
  }
  .vertex-comment-meta {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
    align-items: baseline;
  }
  .vertex-comment-meta strong { font-size: 12px; line-height: 1.3; font-weight: 700; }
  .vertex-comment-author {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px;
  }
  .vertex-comment-badge {
    display: inline-flex; align-items: center; min-height: 18px; border-radius: 999px;
    background: rgb(var(--primary) / 0.1); color: rgb(var(--primary));
    padding: 2px 6px; font-size: 9px; line-height: 1; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
  }
  .vertex-comment-meta time { color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.3; }
  .vertex-comment p {
    margin: 0; color: rgb(var(--foreground)); font-size: 13px; line-height: 1.55;
    white-space: pre-wrap; overflow-wrap: anywhere;
  }
  .vertex-comment p a { color: rgb(var(--primary)); text-underline-offset: 2px; }
  .vertex-comment-body { display: grid; gap: 8px; }
  .vertex-comment-change-box {
    display: grid; gap: 5px; padding: 10px 12px;
    border-radius: 8px;
  }
  .vertex-comment-change-box.is-before {
    border: 1px solid rgb(var(--danger) / 0.48); border-radius: 8px;
    background: rgb(var(--danger) / 0.12);
    box-shadow: inset 3px 0 0 rgb(var(--danger) / 0.76);
  }
  .vertex-comment-change-box.is-after {
    border-color: rgb(var(--success) / 0.5);
    background: rgb(var(--success) / 0.12);
    box-shadow: inset 3px 0 0 rgb(var(--success) / 0.76);
  }
  .vertex-comment-change-label {
    color: rgb(var(--danger)); font-size: 9px; line-height: 1.2;
    font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  }
  .vertex-comment-change-box.is-after .vertex-comment-change-label {
    color: rgb(var(--success));
  }
  .vertex-comment-proposal-actions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px; margin-top: 2px; padding-top: 9px;
    border-top: 1px solid rgb(var(--primary) / 0.16);
  }
  .vertex-comment-proposal-actions > span {
    color: rgb(var(--muted-foreground)); font-size: 10px; font-weight: 700;
  }
  .vertex-comment-proposal-buttons { display: inline-flex; gap: 6px; }
  .vertex-comment-proposal-button {
    min-height: 30px; display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid rgb(var(--border)); border-radius: 7px;
    background: rgb(var(--card)); color: rgb(var(--foreground)); padding: 5px 9px;
    font: inherit; font-size: 10px; line-height: 1; font-weight: 700; cursor: pointer;
  }
  .vertex-comment-proposal-button:hover {
    border-color: rgb(var(--primary)); color: rgb(var(--primary));
  }
  .vertex-comment-proposal-button:disabled { cursor: wait; opacity: 0.58; }
  .vertex-comment-proposal-actions.is-resolved {
    justify-content: flex-start; color: rgb(var(--muted-foreground));
    font-size: 10px; font-weight: 700;
  }
  .vertex-comment-proposal-actions.is-processing {
    justify-content: flex-start; color: rgb(var(--primary));
    font-size: 10px; font-weight: 700;
  }
  .vertex-comment-proposal-actions.has-error > span { color: rgb(var(--danger)); }
  .vertex-comment-feedback-status {
    display: grid; gap: 7px; margin-top: 2px; padding: 9px 10px;
    border: 1px solid rgb(var(--primary) / 0.18); border-radius: 7px;
    background: rgb(var(--primary) / 0.04); color: rgb(var(--muted-foreground));
    font-size: 10px; line-height: 1.35;
  }
  .vertex-comment-review-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  .vertex-comment-review-heading strong {
    color: rgb(var(--foreground)); font-size: 11px; font-weight: 700;
  }
  .vertex-comment-review-heading span {
    font-variant-numeric: tabular-nums; white-space: nowrap;
  }
  .vertex-comment-review-track {
    height: 5px; overflow: hidden; border-radius: 999px;
    background: rgb(var(--border));
  }
  .vertex-comment-review-progress {
    display: block; width: 6%; height: 100%; border-radius: inherit;
    background: rgb(var(--primary)); transition: width 400ms ease;
  }
  .vertex-comment-review-steps {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px;
  }
  .vertex-comment-review-step {
    overflow: hidden; color: rgb(var(--muted-foreground)); font-size: 9px;
    line-height: 1.25; text-align: center; text-overflow: ellipsis; white-space: nowrap;
  }
  .vertex-comment-review-step.is-active {
    color: rgb(var(--primary)); font-weight: 500;
  }
  .vertex-comment-review-step.is-complete {
    color: rgb(var(--foreground)); font-weight: 700;
  }
  .vertex-comment-feedback-status.is-complete {
    border-color: rgb(var(--success) / 0.22); background: rgb(var(--success) / 0.05);
  }
  .vertex-comment-feedback-status.is-complete .vertex-comment-review-progress {
    width: 100%; background: rgb(var(--success));
  }
  .vertex-comment-feedback-status.is-delayed {
    border-color: rgb(var(--warning) / 0.3); background: rgb(var(--warning) / 0.07);
    color: rgb(var(--warning));
  }
  .vertex-comment-feedback-status.is-delayed .vertex-comment-review-heading strong {
    color: rgb(var(--warning));
  }
  .vertex-comment-feedback-status.is-delayed .vertex-comment-review-progress {
    background: rgb(var(--warning));
  }
  .vertex-comment-feedback-status.is-delayed .vertex-comment-review-step.is-active {
    color: rgb(var(--warning));
  }
  .vertex-comment-feedback-status.is-error {
    border-color: rgb(var(--danger) / 0.22); background: rgb(var(--danger) / 0.04);
    color: rgb(var(--danger));
  }
  .vertex-comment-feedback-status.is-error .vertex-comment-review-heading strong {
    color: rgb(var(--danger));
  }
  .vertex-comment-feedback-status.is-error .vertex-comment-review-progress {
    width: 100%; background: rgb(var(--danger));
  }
  .vertex-comment-review-notice { margin: 0; color: inherit; }
  .vertex-comments-empty {
    align-self: center; margin: 0; color: rgb(var(--muted-foreground));
    font-size: 13px; line-height: 1.5; text-align: center;
  }
  .vertex-comments-form {
    display: grid; gap: 8px; padding: 14px; border: 1px solid rgb(var(--border));
    border-radius: 8px; background: rgb(var(--card));
  }
  .vertex-comments-form label { font-size: 12px; line-height: 1.3; font-weight: 700; }
  .vertex-comments-form textarea {
    width: 100%; min-height: 88px; resize: vertical; box-sizing: border-box;
    border: 1px solid rgb(var(--border)); border-radius: 8px; padding: 10px 11px;
    background: rgb(var(--background)); color: rgb(var(--foreground)); font: inherit;
    font-size: 13px; line-height: 1.5;
  }
  .vertex-comments-form textarea::placeholder { color: rgb(var(--muted-foreground)); }
  .vertex-comments-form-footer {
    min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .vertex-comments-status {
    color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.35;
  }
  .vertex-comments-status.is-error { color: rgb(var(--danger)); }
  .vertex-comments-submit {
    min-height: 34px; border: 1px solid rgb(var(--primary)); border-radius: 7px;
    background: rgb(var(--primary)); color: rgb(var(--primary-foreground)); padding: 7px 12px; font: inherit;
    font-size: 12px; line-height: 1.2; font-weight: 700; cursor: pointer;
  }
  .vertex-comments-submit:hover { border-color: rgb(var(--primary)); background: rgb(var(--primary)); }
  .vertex-comments-submit:disabled { cursor: wait; opacity: 0.65; }

  .generated-content-actions { display: flex; align-items: center; gap: 8px; }
  .summary-edit-control { position: relative; display: inline-flex; }
  .summary-edit-trigger {
    display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px;
    border: 1px solid rgb(var(--primary) / 0.55); border-radius: 999px;
    background: transparent; color: rgb(var(--narrative-accent)); font: inherit; font-weight: 600;
    cursor: pointer; transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  }
  .summary-edit-trigger svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .summary-edit-trigger:hover { background: rgb(var(--primary) / 0.1); border-color: rgb(var(--primary)); transform: translateY(-1px); }
  .summary-edit-trigger.is-locked { color: rgb(var(--muted-foreground)); border-color: rgb(var(--border)); cursor: help; }
  .summary-edit-tooltip {
    position: absolute; z-index: 20; top: calc(100% + 9px); right: 0; width: max-content; max-width: min(320px, calc(100vw - 32px));
    opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none;
    border: 1px solid rgb(var(--border)); border-radius: 8px; background: rgb(var(--inverse-surface));
    color: rgb(var(--inverse-foreground)); padding: 8px 10px; font-size: 12px; line-height: 1.4; font-weight: 500;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.2); transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  }
  .summary-edit-control:hover .summary-edit-tooltip, .summary-edit-control:focus-within .summary-edit-tooltip { opacity: 1; visibility: visible; transform: none; }
  .summary-editor-dialog { width: min(1180px, calc(100vw - 32px)); height: min(860px, calc(100vh - 32px)); padding: 0; border: 1px solid rgb(var(--neutral-500)); border-radius: 16px; background: rgb(var(--surface-2)); color: rgb(var(--foreground)); box-shadow: 0 30px 90px rgb(0 0 0 / 0.45); }
  .summary-editor-dialog::backdrop { background: rgb(var(--shadow-ink) / 0.64); backdrop-filter: blur(4px); }
  .summary-editor-dialog[open] { animation: summary-editor-in 160ms ease-out; }
  @keyframes summary-editor-in { from { opacity: 0; transform: translateY(8px) scale(0.992); } to { opacity: 1; transform: none; } }
  .summary-editor-shell { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: 100%; }
  .summary-editor-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 14px; }
  .summary-editor-header p { margin: 0 0 5px; color: rgb(var(--narrative-accent)); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
  .summary-editor-header h2 { margin: 0; font-size: 24px; }
  .summary-editor-header button { width: 38px; height: 38px; border: 1px solid rgb(var(--border)); border-radius: 10px; background: transparent; color: rgb(var(--foreground)); font-size: 25px; cursor: pointer; }
  .summary-editor-notice { margin: 0 22px 16px; padding: 13px 15px; border: 1px solid rgb(var(--border)); border-radius: 10px; color: rgb(var(--muted-foreground)); }
  .summary-editor-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 14px; min-height: 0; padding: 14px 22px; border-top: 1px solid rgb(var(--divider)); border-bottom: 1px solid rgb(var(--divider)); background: rgb(var(--surface-2)); }
  .summary-editor-content, .summary-edit-log { min-height: 0; overflow: auto; border: 1px solid rgb(var(--border)); border-radius: 12px; padding: 22px; background: rgb(var(--card) / 0.34); box-shadow: inset 0 1px 0 rgb(var(--inverse-foreground) / 0.18); }
  .summary-editor-summary { display: grid; gap: 8px; margin-bottom: 28px; color: rgb(var(--muted-foreground)); font-size: 13px; font-weight: 600; }
  .summary-editor-summary textarea, .summary-editor-bullet textarea { width: 100%; min-height: 54px; resize: none; overflow-y: hidden; border: 1px solid rgb(var(--border)); border-radius: 10px; background: rgb(var(--card)); color: rgb(var(--foreground)); font: inherit; line-height: 1.55; padding: 12px 14px; }
  .summary-editor-summary textarea:focus, .summary-editor-bullet textarea:focus { outline: 2px solid rgb(var(--primary) / 0.48); border-color: rgb(var(--primary)); }
  .summary-editor-summary.is-changed textarea,
  .summary-editor-bullet.is-changed textarea {
    border-color: rgb(var(--primary)); background: rgb(var(--primary) / 0.08);
    box-shadow: inset 3px 0 0 rgb(var(--primary));
  }
  .summary-editor-section { margin-top: 24px; }
  .summary-editor-section-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
  .summary-editor-section-heading h3 { margin: 0; color: rgb(var(--muted-foreground)); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
  .summary-editor-section-heading::after { content: ""; flex: 1; height: 1px; background: rgb(var(--divider)); }
  .summary-editor-section-heading button { order: 3; border: 1px solid rgb(var(--border)); border-radius: 999px; background: transparent; color: rgb(var(--muted-foreground)); padding: 6px 10px; cursor: pointer; }
  .summary-editor-bullet { display: grid; grid-template-columns: 18px minmax(0, 1fr) 30px; align-items: center; gap: 8px; margin: 9px 0; color: rgb(var(--muted-foreground)); }
  .summary-editor-bullet > button { opacity: 0; border: 0; border-radius: 6px; background: transparent; color: rgb(var(--muted-foreground)); font-size: 21px; cursor: pointer; transition: opacity 120ms ease, color 120ms ease, background 120ms ease; pointer-events: none; }
  .summary-editor-bullet:hover > button, .summary-editor-bullet:focus-within > button { opacity: 1; pointer-events: auto; }
  .summary-editor-bullet > button:hover { color: rgb(var(--danger)); background: rgb(var(--danger) / 0.09); }
  .summary-review-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid rgb(var(--divider)); }
  .summary-review-heading p { margin: 0 0 4px; color: rgb(var(--narrative-accent)); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
  .summary-review-heading h3 { margin: 0; font-size: 18px; }
  .summary-review-heading > span { flex: none; border: 1px solid rgb(var(--border)); border-radius: 999px; background: rgb(var(--card)); color: rgb(var(--muted-foreground)); padding: 5px 9px; font-size: 11px; font-weight: 600; }
  .summary-edit-log-heading, .summary-edit-entry > header { display: flex; justify-content: space-between; gap: 12px; }
  .summary-edit-log-heading { align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid rgb(var(--divider)); }
  .summary-edit-log-heading h3 { margin: 0; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
  .summary-edit-log-heading span, .summary-edit-entry time { color: rgb(var(--muted-foreground)); font-size: 12px; }
  .summary-change-inspector { padding-bottom: 18px; border-bottom: 1px solid rgb(var(--divider)); }
  .summary-saved-history { padding-top: 18px; }
  .summary-change-list { display: grid; gap: 16px; margin-top: 16px; }
  .summary-change-item {
    min-width: 0; padding: 0 0 16px; border-bottom: 1px solid rgb(var(--divider));
    animation: summary-change-in 130ms ease-out;
  }
  @keyframes summary-change-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
  .summary-change-item-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
  .summary-change-item-header strong { font-size: 12px; line-height: 1.35; }
  .summary-change-item .summary-edit-diff { margin-top: 6px; }
  .summary-change-item .summary-edit-diff p { overflow-wrap: anywhere; }
  .summary-change-revert {
    border: 0; background: transparent; color: rgb(var(--narrative-accent)); padding: 2px 0;
    font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  }
  .summary-change-revert:hover { text-decoration: underline; text-underline-offset: 3px; }
  .summary-edit-entry { padding: 18px 0; border-bottom: 1px solid rgb(var(--divider)); }
  .summary-edit-entry > header { align-items: flex-start; }
  .summary-edit-entry > header > div:first-child { display: grid; gap: 3px; }
  .summary-history-actions { display: flex; align-items: center; gap: 10px; }
  .summary-history-action {
    border: 1px solid rgb(var(--border)); border-radius: 7px; background: rgb(var(--card) / 0.58);
    color: rgb(var(--foreground)); padding: 5px 8px;
    font: inherit; font-size: 11px; font-weight: 600; line-height: 1.2; cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
  }
  .summary-history-action:hover { border-color: rgb(var(--primary) / 0.7); background: rgb(var(--primary) / 0.08); color: rgb(var(--narrative-accent)); }
  .summary-history-action.is-delete { background: transparent; color: rgb(var(--muted-foreground)); }
  .summary-history-action:disabled { cursor: wait; opacity: 0.5; }
  .summary-edit-change > strong { display: block; margin: 10px 0 7px; color: rgb(var(--muted-foreground)); font-size: 13px; font-weight: 500; }
  .summary-edit-diff { margin-top: 6px; padding: 10px 12px; border: 1px solid; border-left-width: 4px; border-radius: 7px; background: rgb(var(--surface-2)); }
  .summary-edit-diff.is-before { border-color: rgb(var(--danger) / 0.72); background: rgb(var(--danger) / 0.18); }
  .summary-edit-diff.is-after { border-color: rgb(var(--success) / 0.72); background: rgb(var(--success) / 0.18); }
  .summary-edit-intents {
    display: grid; gap: 10px; margin-top: 14px; padding: 12px;
    border: 1px solid rgb(var(--intent) / 0.42); border-radius: 9px;
    background: rgb(var(--intent) / 0.10);
  }
  .summary-edit-intents-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .summary-edit-intents-heading h4 { margin: 0; color: rgb(var(--intent)); font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
  .summary-edit-intents-heading > span { color: rgb(var(--intent)); font-size: 10px; font-weight: 600; }
  .captured-intent { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid rgb(var(--intent) / 0.24); }
  .captured-intent header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .captured-intent header > div { display: grid; gap: 7px; }
  .captured-intent header strong { color: rgb(var(--foreground)); font-size: 12px; line-height: 1.35; }
  .captured-intent > .summary-edit-change > strong { display: none; }
  .captured-intent-copy { margin: 0; color: rgb(var(--foreground)); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .captured-intent-prior { margin: 0; color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
  .captured-intent-prior span { display: block; margin-bottom: 2px; color: rgb(var(--intent)); font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
  .captured-intent-status { width: max-content; padding: 3px 7px; border-radius: 999px; background: rgb(var(--intent) / 0.16); color: rgb(var(--intent)); font-size: 10px; font-weight: 600; }
  .captured-intent.is-carried-forward .captured-intent-status { background: rgb(var(--intent) / 0.18); color: rgb(var(--intent)); }
  .captured-intent.is-not-used .captured-intent-status,
  .captured-intents-row.has-unused dd { color: rgb(var(--muted-foreground)); }
  .summary-edit-diff span { color: rgb(var(--muted-foreground)); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
  .summary-edit-diff.is-before span { color: rgb(var(--danger)); }
  .summary-edit-diff.is-after span { color: rgb(var(--success)); }
  .summary-edit-diff p { margin: 5px 0 0; line-height: 1.45; }
  .summary-edit-empty { margin: 18px 0 0; color: rgb(var(--muted-foreground)); line-height: 1.55; }
  .summary-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; color: rgb(var(--muted-foreground)); font-size: 13px; }
  .summary-editor-footer > div { display: flex; gap: 10px; }
  .summary-editor-footer button { border: 1px solid rgb(var(--border)); border-radius: 9px; background: transparent; color: rgb(var(--foreground)); padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer; }
  .summary-editor-footer button[type="submit"] { border-color: rgb(var(--primary)); color: rgb(var(--narrative-accent)); }
  .summary-editor-footer button:disabled { opacity: 0.55; cursor: wait; }
  .summary-editor-summary.is-intent-target textarea,
  .summary-editor-bullet.is-intent-target textarea { animation: summary-intent-target 1.6s ease-out; }
  @keyframes summary-intent-target {
    0%, 35% { outline: 3px solid rgb(var(--intent) / 0.72); outline-offset: 2px; }
    100% { outline: 3px solid transparent; outline-offset: 5px; }
  }
  [data-summary-edit-status].is-error { color: rgb(var(--danger)); }
  @media (max-width: 760px) {
    .generated-content-actions { align-items: stretch; flex-direction: column; }
    .summary-editor-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; border-radius: 0; }
    .summary-editor-grid { grid-template-columns: 1fr; padding: 12px; }
    .summary-editor-footer { align-items: stretch; flex-direction: column; }
    .summary-editor-footer > div, .summary-editor-footer button { width: 100%; }
  }
  .slack-summary-body {
    padding: 22px 24px 26px; display: grid; gap: 20px; background: rgb(var(--surface-2));
  }
  .slack-summary-header-actions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px;
  }
  .source-header-actions { align-self: start; }
  .slack-summary-header-action {
    min-height: 34px; display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgb(var(--border)); border-radius: 8px; background: rgb(var(--card));
    color: rgb(var(--foreground)); padding: 7px 11px; font-size: 12px; line-height: 1.2;
    font-weight: 700; text-decoration: none; white-space: nowrap;
    box-shadow: 0 1px 2px rgb(var(--shadow-ink) / 0.08);
  }
  .slack-summary-header-action .slack-mark,
  .slack-summary-header-action .linear-mark { width: 16px; height: 16px; object-fit: contain; }
  .slack-summary-header-action:hover {
    border-color: rgb(var(--primary)); color: rgb(var(--primary)); background: rgb(var(--card));
  }
  .slack-summary-section { display: grid; gap: 8px; width: 100%; max-width: none; }
  .slack-summary-section h2 {
    margin: 0; color: rgb(var(--foreground)); font-size: 13px; line-height: 1.3; font-weight: 500;
  }
  .slack-summary-section p, .slack-summary-section li {
    margin: 0; color: rgb(var(--foreground)); font-size: 13px; line-height: 1.55;
  }
  .slack-summary-section ul { margin: 0; padding-left: 18px; }
  .detailed-summary {
    width: 100%; max-width: none; background: rgb(var(--surface-2)); overflow: visible;
  }
  .detailed-summary-page {
    max-width: none; overflow: visible;
  }
  .detailed-summary-page > .collection {
    overflow: visible;
  }
  .detailed-summary-top {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    align-items: start; gap: 24px; padding: 14px clamp(20px, 4vw, 36px) 8px;
  }
  .detailed-summary-content-top {
    padding: 14px clamp(20px, 4vw, 36px) 8px;
  }
  .detailed-summary-heading {
    display: block; padding: 0; border-bottom: 0; background: transparent;
  }
  .generated-atline {
    margin: 6px 0 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.4;
    font-weight: 500;
  }
  .generated-atline + .collection-subtitle { margin-top: 4px; }
  .detailed-summary-overview h2, .detailed-summary-team-updates h2, .detailed-summary-group h3 {
    margin: 0; color: rgb(var(--muted-foreground)); font-size: 13px; font-weight: 600;
    letter-spacing: 0.09em; text-transform: uppercase;
  }
  .detailed-summary-status {
    overflow: hidden; border: 1px solid rgb(var(--border)); border-radius: 11px;
    background: rgb(var(--card)); box-shadow: 0 2px 8px rgb(var(--shadow-ink) / 0.12);
  }
  .detailed-summary-status-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 7px 11px; border-bottom: 1px solid rgb(var(--divider));
  }
  .detailed-summary-state {
    color: rgb(var(--foreground)); font-size: 14px; line-height: 1.3; font-weight: 700;
  }
  .detailed-summary-status-head .detailed-summary-rerun,
  .detailed-summary-status-head .detailed-summary-locked { margin-left: auto; }
  .detailed-summary-status dl { margin: 0; }
  .detailed-summary-status dl > div {
    display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px;
    padding: 5px 11px; border-top: 1px solid rgb(var(--divider));
  }
  .detailed-summary-status dl > div:first-child { border-top: 0; }
  .detailed-summary-status dl > div:last-child { padding-bottom: 10px; }
  .detailed-summary-status dt, .detailed-summary-status dd { margin: 0; font-size: 11px; line-height: 1.4; }
  .detailed-summary-status dt { color: rgb(var(--muted-foreground)); }
  .detailed-summary-status dd { color: rgb(var(--foreground)); font-weight: 500; }
  .detailed-summary-status time { color: inherit; }
  .detailed-summary-locked {
    min-height: 30px; border: 1px solid rgb(var(--primary)); border-radius: 8px;
    background: rgb(var(--primary)); color: rgb(var(--primary-foreground));
    padding: 6px 12px; font-family: inherit; font-size: 11px; font-weight: 700;
  }
  .detailed-summary-rerun { margin: 0; }
  .detailed-summary-rerun.is-generating button {
    min-width: 124px; cursor: wait;
  }
  .detailed-summary-rerun button:focus-visible {
    outline: 2px solid rgb(var(--primary)); outline-offset: 3px;
  }
  .detailed-summary-generation-error {
    margin: 1px 0 0; color: rgb(var(--danger)); font-size: 10px; line-height: 1.35;
    text-align: left; overflow-wrap: anywhere;
  }
  .detailed-summary-generation-error[hidden] { display: none; }
  .detailed-summary-locked { border-color: rgb(var(--border)); background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground)); }
  .detailed-summary-overview { padding: 22px 0 6px; }
  .detailed-summary-overview-copy { display: grid; gap: 8px; margin-top: 6px; }
  .detailed-summary-overview .detailed-summary-claim { width: 100%; max-width: none; }
  .detailed-summary-overview .detailed-summary-claim p { font-size: 16px; line-height: 1.62; }
  .detailed-summary-team-updates {
    margin: 14px 0 16px; padding: 10px 0 10px 13px;
    border-left: 3px solid rgb(var(--primary));
  }
  .detailed-summary-team-updates header {
    display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 9px;
  }
  .detailed-summary-team-updates header p {
    margin: 3px 0 0; color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.35;
  }
  .detailed-summary-team-updates-all {
    flex: none; color: rgb(var(--primary)); font-size: 11px; line-height: 1.35;
    font-weight: 600; text-decoration: none;
  }
  .detailed-summary-team-updates-all:hover { text-decoration: underline; text-underline-offset: 3px; }
  .detailed-summary-team-updates ul {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px 18px; margin: 0; padding: 0; list-style: none;
  }
  .detailed-summary-team-updates li { min-width: 0; }
  .detailed-summary-team-updates li > a,
  .detailed-summary-team-updates li > :not(a) {
    display: flex; align-items: center; gap: 8px; min-width: 0; color: rgb(var(--foreground));
    text-decoration: none;
  }
  .detailed-summary-team-updates li img { width: 17px; height: 17px; flex: none; }
  .detailed-summary-team-updates li span { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
  .detailed-summary-team-updates li strong {
    overflow: hidden; font-size: 12px; line-height: 1.35; font-weight: 600;
    text-overflow: ellipsis; white-space: nowrap;
  }
  .detailed-summary-team-updates li time {
    flex: none; color: rgb(var(--muted-foreground)); font-size: 10px; line-height: 1.35;
  }
  .detailed-summary-team-updates li > a:hover strong { color: rgb(var(--primary)); }
  .detailed-summary-team-updates li > a:focus-visible {
    border-radius: 4px; outline: 2px solid rgb(var(--primary)); outline-offset: 3px;
  }
  .detailed-summary-health {
    display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px; align-items: start;
    margin: 12px 0 16px; padding: 10px 12px; border-left: 3px solid currentColor;
    background: rgb(var(--surface-2));
  }
  .detailed-summary-health > strong { font-size: 13px; line-height: 1.48; text-transform: uppercase; letter-spacing: 0.08em; }
  .detailed-summary-health .detailed-summary-claim p { margin: 0; font-size: 14px; line-height: 1.48; color: rgb(var(--foreground)); }
  .detailed-summary-health.is-unknown { color: rgb(var(--muted-foreground)); }
  .detailed-summary-health.is-on-track { color: rgb(var(--success)); }
  .detailed-summary-health.is-at-risk { color: rgb(var(--warning)); }
  .detailed-summary-health.is-off-track { color: rgb(var(--danger)); }
  .detailed-summary-assessment-signals {
    grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px; margin: 2px 0 0; border: 1px solid rgb(var(--border));
    background: rgb(var(--border));
  }
  .detailed-summary-assessment-signals > div {
    min-width: 0; padding: 9px 10px; background: rgb(var(--card));
    border-top: 2px solid rgb(var(--muted-foreground) / 0.38);
  }
  .detailed-summary-assessment-signals > div.is-good { border-top-color: rgb(var(--success)); }
  .detailed-summary-assessment-signals > div.is-watch { border-top-color: rgb(var(--warning)); }
  .detailed-summary-assessment-signals > div.is-bad { border-top-color: rgb(var(--danger)); }
  .detailed-summary-assessment-signals dt {
    margin: 0 0 3px; color: rgb(var(--muted-foreground)); font-size: 10px; line-height: 1.25;
    font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  }
  .detailed-summary-assessment-signals dd {
    margin: 0; color: rgb(var(--foreground)); font-size: 12px; line-height: 1.42; font-weight: 500;
  }
  .detailed-summary-sections { display: grid; grid-template-columns: minmax(0, 1fr); }
  .detailed-summary-group {
    min-width: 0; padding: 6px clamp(20px, 4vw, 36px); border-top: 1px solid rgb(var(--divider));
  }
  .detailed-summary-group h3 { font-size: 13px; letter-spacing: 0.09em; }
  .detailed-summary-group ul { display: grid; gap: 5px; margin: 6px 0 0; padding-left: 20px; list-style: disc; }
  .detailed-summary-group li { min-width: 0; padding-left: 3px; }
  .detailed-summary-group li::marker { color: rgb(var(--muted-foreground)); font-size: 0.8em; }
  .detailed-summary-group p { margin: 0; font-size: 14px; line-height: 1.48; }
  .detailed-summary-group.is-attention .detailed-summary-claim,
  .detailed-summary-group.is-attention .detailed-summary-claim p { display: inline; }
  .detailed-summary-attention-pill {
    display: inline-flex; align-items: center; min-height: 20px; margin: 0 7px 0 0;
    padding: 2px 7px; border: 1px solid rgb(var(--border)); border-radius: 999px;
    background: rgb(var(--card)); color: rgb(var(--foreground)); font-size: 10px;
    line-height: 1; font-weight: 700; letter-spacing: 0.02em; vertical-align: 1px;
  }
  .detailed-summary-group.is-attention li.is-blocker .detailed-summary-attention-pill {
    border-color: rgb(var(--danger) / 0.30); background: rgb(var(--danger) / 0.09);
    color: rgb(var(--danger));
  }
  .detailed-summary-claim {
    width: 100%; max-width: none;
  }
  .detailed-summary-claim p > a:not(.detailed-summary-source) {
    color: inherit; text-decoration-color: rgb(var(--muted-foreground)); text-underline-offset: 2px;
  }
  .detailed-summary-claim p > a:not(.detailed-summary-source):hover { color: rgb(var(--primary)); }
  .detailed-summary-sources {
    display: inline-flex; align-items: center; gap: 3px; margin-left: 6px;
    vertical-align: -3px;
  }
  .detailed-summary-source {
    position: relative; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 5px;
    color: rgb(var(--muted-foreground)); text-decoration: none;
  }
  .detailed-summary-source img {
    display: block; width: 15px; height: 15px;
  }
  a.detailed-summary-source:hover { transform: translateY(-1px); filter: brightness(0.9); }
  a.detailed-summary-source:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: 3px; }
  .detailed-summary-source::after {
    content: attr(data-tooltip); position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 8px);
    width: max-content; max-width: min(280px, 75vw); padding: 6px 8px; border-radius: 6px;
    background: rgb(var(--inverse-surface)); color: rgb(var(--inverse-foreground)); box-shadow: 0 5px 16px rgb(var(--shadow-ink) / 0.24);
    font-size: 11px; font-weight: 500; line-height: 1.35; text-align: left; white-space: pre-line;
    opacity: 0; pointer-events: none; transform: translate(-50%, 3px); transition: opacity 120ms ease, transform 120ms ease;
  }
  .detailed-summary-source:hover::after, .detailed-summary-source:focus-visible::after {
    opacity: 1; transform: translate(-50%, 0);
  }
  .detailed-summary-legend {
    padding: 8px clamp(20px, 4vw, 36px) 9px; border-top: 1px solid rgb(var(--divider));
  }
  .detailed-summary-legend h3 {
    margin: 0 0 9px; color: rgb(var(--muted-foreground)); font-size: 11px; font-weight: 600;
    letter-spacing: 0.11em; text-transform: uppercase;
  }
  .detailed-summary-legend ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
  .detailed-summary-legend li {
    display: inline-flex; align-items: center; gap: 7px; color: rgb(var(--muted-foreground)); font-size: 11px;
  }
  .detailed-summary-legend img {
    width: 19px; height: 19px;
  }
  @media (max-width: 720px) {
    .detailed-summary-assessment-signals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detailed-summary-top { grid-template-columns: 1fr; gap: 16px; }
    .selector-status-row,
    .selector-status-row.is-status-only { grid-template-columns: 1fr; gap: 16px; }
    .collection-header.generated-status-header,
    .card-header.generated-status-header {
      display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 16px;
    }
    .detailed-summary-status dl > div { grid-template-columns: 1fr; gap: 2px; }
    .detailed-summary-team-updates header { align-items: start; }
    .detailed-summary-team-updates ul { grid-template-columns: 1fr; }
  }
  .slack-summary-artifact-section { max-width: none; }
  .slack-summary-mini-table {
    overflow-x: auto; border: 1px solid rgb(var(--border)); border-radius: 8px;
    background: rgb(var(--surface-2));
  }
  .artifact-table-grid.is-slack-summary-artifacts { min-width: 760px; }
  .artifact-table-grid.is-slack-summary-artifacts .artifact-table-header,
  .artifact-table-grid.is-slack-summary-artifacts .artifact-table-row {
    grid-template-columns: 112px 54px 132px 180px minmax(300px, 1fr);
  }
  .artifact-table-grid.is-slack-summary-artifacts .artifact-table-row:last-child {
    border-bottom: 0;
  }
  .slack-summary-generated-note {
    margin: -4px 0 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.45;
  }
  /* Pulled Linear updates. Human-written, so the author sits in the header
     where a generated page carries its regenerate control. */
  .project-update-author {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgb(var(--foreground)); font-size: 12px; font-weight: 700;
  }
  .project-update-author .creator-avatar { width: 26px; height: 26px; font-size: 10px; }
  .project-update-author-name { white-space: nowrap; }
  .project-update-byline {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 9px;
    color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.4;
  }
  .project-update-byline time { white-space: nowrap; }
  .project-update-byline .project-update-author + time::before {
    content: "·"; margin-right: 12px; color: rgb(var(--muted-foreground));
  }
  .project-update-body > :first-child { margin-top: 0; }
  .project-update-provenance {
    margin: 18px 0 0; padding-top: 12px; border-top: 1px solid rgb(var(--border));
    color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.45;
  }
  /* Shared application narrative. The content adapters provide source text;
     this one surface owns available width, Markdown, provenance, and state rhythm. */
  .narrative-stack {
    display: grid; min-width: 0; background: rgb(var(--surface-2));
  }
  .narrative-surface {
    min-width: 0; padding: clamp(24px, 4vw, 44px);
    border: 0; background: rgb(var(--surface-2)); color: rgb(var(--foreground));
    text-align: left;
  }
  /* Updates are short, operator-authored records. Match the tighter meeting
     narrative rhythm instead of giving them the generic long-form inset. */
  .narrative-surface[data-narrative-context="human-project-update"] {
    padding: 20px clamp(24px, 4vw, 44px) 24px;
  }
  .narrative-copy, .narrative-provenance {
    width: 100%; max-width: none; margin-right: 0; margin-left: 0;
  }
  .narrative-copy {
    font-family: var(--type-body-family); font-size: var(--type-body-size);
    line-height: var(--type-body-line-height); font-weight: var(--type-body-weight);
    letter-spacing: var(--type-body-letter-spacing); overflow-wrap: anywhere;
  }
  .narrative-copy > :first-child, .narrative-markdown > :first-child { margin-top: 0; }
  .narrative-copy > :last-child, .narrative-markdown > :last-child { margin-bottom: 0; }
  .narrative-lead { margin: 0 0 24px; }
  .narrative-copy p { margin: 0.7em 0; }
  .narrative-copy h2 {
    margin: 1.65em 0 0.55em; font-family: var(--type-section-title-family);
    font-size: var(--type-section-title-size); line-height: var(--type-section-title-line-height);
    font-weight: var(--type-section-title-weight); letter-spacing: var(--type-section-title-letter-spacing);
  }
  .narrative-copy h3, .narrative-copy h4, .narrative-copy h5, .narrative-copy h6 {
    margin: 1.45em 0 0.5em; font-family: var(--type-content-title-family);
    font-size: var(--type-content-title-size); line-height: var(--type-content-title-line-height);
    font-weight: var(--type-content-title-weight); letter-spacing: var(--type-content-title-letter-spacing);
  }
  .narrative-copy ul, .narrative-copy ol { margin: 0.7em 0; padding-left: 22px; }
  .narrative-copy li + li { margin-top: 0.4em; }
  .narrative-copy blockquote {
    margin: 1em 0; padding: 10px 16px; border-left: 3px solid rgb(var(--narrative-accent));
    background: rgb(var(--background) / 0.48); color: rgb(var(--foreground));
  }
  .narrative-copy a, .narrative-state-action a {
    color: rgb(var(--narrative-accent)); text-decoration: underline; text-underline-offset: 3px;
    overflow-wrap: anywhere;
  }
  .narrative-copy a:hover, .narrative-state-action a:hover { text-decoration-thickness: 2px; }
  .narrative-copy a:focus-visible, .narrative-state-action a:focus-visible,
  .narrative-table-wrap:focus-visible, .narrative-copy pre:focus-visible {
    outline: 3px solid rgb(var(--narrative-accent)); outline-offset: 3px;
  }
  .narrative-copy code {
    max-width: 100%; padding: 2px 5px; border-radius: var(--radius-sm);
    background: rgb(var(--background) / 0.64); font-family: var(--type-code-identity-family);
    font-size: var(--type-code-identity-size); line-height: var(--type-code-identity-line-height);
    font-weight: var(--type-code-identity-weight); letter-spacing: var(--type-code-identity-letter-spacing);
    overflow-wrap: anywhere; word-break: break-word;
  }
  .narrative-copy pre {
    max-width: 100%; overflow: auto; margin: 1em 0; padding: 16px;
    border: 1px solid rgb(var(--border)); border-radius: var(--radius-md);
    background: rgb(var(--background)); color: rgb(var(--foreground));
  }
  .narrative-copy pre code {
    padding: 0; background: transparent; white-space: pre; overflow-wrap: normal; word-break: normal;
  }
  .narrative-table-wrap {
    max-width: 100%; overflow: auto; margin: 1em 0;
    border: 1px solid rgb(var(--border)); border-radius: var(--radius-md);
  }
  .narrative-table-wrap table {
    width: 100%; min-width: 620px; border-collapse: collapse;
    font-family: var(--type-compact-body-family); font-size: var(--type-compact-body-size);
    line-height: var(--type-compact-body-line-height); font-weight: var(--type-compact-body-weight);
    letter-spacing: var(--type-compact-body-letter-spacing);
  }
  .narrative-table-wrap th, .narrative-table-wrap td {
    padding: 10px 12px; border-bottom: 1px solid rgb(var(--border));
    text-align: left; vertical-align: top; overflow-wrap: anywhere;
  }
  .narrative-table-wrap th { background: rgb(var(--background) / 0.5); font-weight: 600; }
  .narrative-table-wrap tbody tr:last-child td { border-bottom: 0; }
  .narrative-section + .narrative-section { margin-top: 28px; }
  .narrative-provenance {
    display: grid; gap: 4px; margin-top: 30px; padding-top: 16px;
    border-top: 1px solid rgb(var(--border)); color: rgb(var(--muted-foreground));
    font-family: var(--type-compact-body-family); font-size: var(--type-compact-body-size);
    line-height: var(--type-compact-body-line-height); font-weight: var(--type-compact-body-weight);
    letter-spacing: var(--type-compact-body-letter-spacing); overflow-wrap: anywhere;
  }
  .narrative-provenance p { margin: 0; }
  .narrative-notice {
    margin: 0 0 22px !important; padding: 11px 14px;
    border-left: 3px solid rgb(var(--narrative-accent)); background: rgb(var(--background) / 0.42);
  }
  .narrative-supplement {
    min-width: 0; padding: 0 clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px);
    background: rgb(var(--surface-2));
  }
  .narrative-state {
    min-height: clamp(260px, 38vh, 410px); display: grid; align-content: center;
    justify-items: start; gap: 12px; width: 100%; padding: clamp(34px, 7vw, 72px);
    border-left: 4px solid rgb(var(--narrative-accent)); background: rgb(var(--surface-2));
    color: rgb(var(--foreground)); text-align: left;
  }
  .narrative-state.is-unavailable {
    border-left-color: rgb(var(--danger));
    background: rgb(var(--surface-2));
  }
  .narrative-state-label {
    margin: 0; color: rgb(var(--narrative-accent)); font-family: var(--type-label-family);
    font-size: var(--type-label-size); line-height: var(--type-label-line-height);
    font-weight: var(--type-label-weight); letter-spacing: var(--type-label-letter-spacing);
    text-transform: uppercase;
  }
  .narrative-state.is-unavailable .narrative-state-label { color: rgb(var(--danger)); }
  .narrative-state h2 {
    width: 100%; max-width: none; margin: 0; font-family: var(--type-section-title-family);
    font-size: var(--type-section-title-size); line-height: var(--type-section-title-line-height);
    font-weight: var(--type-section-title-weight); letter-spacing: var(--type-section-title-letter-spacing);
  }
  .narrative-state-explanation, .narrative-state-action {
    width: 100%; max-width: none; margin: 0; font-family: var(--type-body-family);
    font-size: var(--type-body-size); line-height: var(--type-body-line-height);
    font-weight: var(--type-body-weight); letter-spacing: var(--type-body-letter-spacing);
  }
  .narrative-state-meta {
    width: 100%; max-width: none; display: grid; gap: 7px; margin: 8px 0 0;
    font-family: var(--type-compact-body-family); font-size: var(--type-compact-body-size);
    line-height: var(--type-compact-body-line-height); font-weight: var(--type-compact-body-weight);
    letter-spacing: var(--type-compact-body-letter-spacing);
  }
  .narrative-state-meta div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .narrative-state-meta dt { color: rgb(var(--muted-foreground)); font-weight: 600; }
  .narrative-state-meta dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
  .narrative-state-action { margin-top: 8px; }
  .narrative-state-action strong { margin-right: 5px; }
  @media (max-width: 760px) {
    .narrative-surface { padding: 24px 18px 28px; }
    .narrative-supplement { padding: 0 18px 28px; }
    .narrative-state { min-height: 300px; padding: 38px 22px; }
    .narrative-state-meta div { grid-template-columns: minmax(0, 1fr); gap: 1px; }
    .narrative-table-wrap table { min-width: 540px; }
  }
  .standalone-project-page { display: grid; gap: var(--flow-page-gap); }
  .standalone-project-page .collection-header {
    margin-bottom: 0; padding: 16px 18px; border: 1px solid rgb(var(--border));
    border-radius: 10px; background: rgb(var(--surface-2));
  }
  .standalone-project-page .home-section {
    display: block; overflow: hidden; padding: 0; border: 1px solid rgb(var(--border));
    border-radius: 10px; background: rgb(var(--card));
  }
  .standalone-project-page .home-section-header {
    max-width: none; padding: 14px 16px; border-bottom: 1px solid rgb(var(--border));
    background: rgb(var(--surface-2));
  }
  .standalone-project-page .home-section-title {
    color: rgb(var(--foreground)); font-family: var(--type-content-title-family);
    font-size: var(--type-content-title-size); line-height: var(--type-content-title-line-height);
    font-weight: var(--type-content-title-weight); letter-spacing: var(--type-content-title-letter-spacing);
    text-transform: none;
  }
  .standalone-project-page .home-section-subtitle {
    margin-top: 3px; color: rgb(var(--muted-foreground)); font-size: 12px;
    line-height: 1.4; font-weight: 400;
  }
  .project-state {
    max-width: none; padding: 18px 20px; border: 1px solid rgb(var(--border));
    border-radius: 10px; background: rgb(var(--card));
  }
  .project-state h2 {
    margin: 0 0 8px; color: rgb(var(--foreground)); font-size: 13px;
    line-height: 1.35; font-weight: 600; letter-spacing: 0; text-transform: none;
  }
  .project-state-summary {
    width: 100%; max-width: none; margin: 0; color: rgb(var(--foreground)); font-size: 13px;
    line-height: 1.5; font-weight: 400; letter-spacing: 0;
  }
  .project-state-summary p { margin: 0; }
  .project-state-summary p + p { margin-top: 9px; }
  .project-state-summary ul { margin: 0; padding-left: 20px; }
  .project-state-summary li + li { margin-top: 6px; }
  .project-state-details {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px 24px; margin: 18px 0 0; padding: 16px 0 0;
    border-top: 1px solid rgb(var(--border));
  }
  .project-state-detail { display: grid; gap: 4px; min-width: 0; }
  .project-state-detail dt {
    color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.3; font-weight: 500;
  }
  .project-state-detail dd {
    margin: 0; color: rgb(var(--foreground)); font-size: 13px; line-height: 1.4;
    font-weight: 500;
  }
  .project-priority-pill {
    display: inline-flex; width: fit-content; min-height: 22px; align-items: center;
    padding: 2px 8px; border: 1px solid rgb(var(--border)); border-radius: 999px;
    background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground));
    font-size: 11px; line-height: 1.3; font-weight: 600;
  }
  .project-priority-pill.is-urgent {
    border-color: rgb(var(--danger) / 0.32); background: rgb(var(--danger) / 0.12);
    color: rgb(var(--danger));
  }
  .project-priority-pill.is-high {
    border-color: rgb(var(--warning) / 0.32); background: rgb(var(--warning) / 0.12);
    color: rgb(var(--warning));
  }
  .project-priority-pill.is-medium {
    border-color: rgb(var(--primary) / 0.28); background: rgb(var(--primary) / 0.10);
    color: rgb(var(--primary));
  }
  .project-window-signals {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid rgb(var(--border));
  }
  .project-window-signals-label {
    color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.3; font-weight: 500;
  }
  .project-window-signals ul {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; padding: 0; list-style: none;
  }
  .project-window-signals li {
    display: inline-flex; align-items: center; gap: 6px; color: rgb(var(--muted-foreground));
    font-size: 11px; line-height: 1.25;
  }
  .project-window-signals .health-mark { width: 22px; height: 22px; font-size: 12px; }
  .project-table-wrap { margin: 0; overflow-x: auto; }
  .project-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.45; }
  .project-table th {
    padding: 10px 16px; border-bottom: 1px solid rgb(var(--border));
    background: rgb(var(--background) / 0.55); color: rgb(var(--muted-foreground));
    font-size: 11px; font-weight: 600; letter-spacing: 0; text-align: left;
    text-transform: none;
  }
  .project-table td {
    padding: 12px 16px; border-bottom: 1px solid rgb(var(--border)); vertical-align: top;
  }
  .project-table tbody tr:last-child td { border-bottom: 0; }
  .project-table tbody tr { background: rgb(var(--card)); transition: background-color 120ms ease; }
  .project-table tbody tr:hover { background: rgb(var(--surface-2) / 0.58); }
  .project-table a { color: rgb(var(--primary)); font-weight: 500; text-decoration: none; }
  .project-table a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .project-table-muted { color: rgb(var(--muted-foreground)); }
  .project-resources-table { table-layout: fixed; }
  .project-resources-table th:first-child, .project-resources-table td:first-child { width: 28%; }
  .project-records-table { table-layout: fixed; }
  .project-records-table th:first-child, .project-records-table td:first-child { width: 28%; }
  .project-records-table th:nth-child(2), .project-records-table td:nth-child(2) { width: 24%; }
  .project-records-table th:last-child, .project-records-table td:last-child { width: 48%; text-align: left; }
  .project-history-table { min-width: 820px; }
  .project-history-table th:first-child, .project-history-table td:first-child { width: 22%; }
  .project-history-table th:nth-child(2), .project-history-table td:nth-child(2) { width: 13%; }
  .project-history-table th:nth-child(3), .project-history-table td:nth-child(3) { width: 25%; white-space: nowrap; }
  .project-fetch-status { color: rgb(var(--foreground)); font-weight: 500; text-transform: capitalize; }
  .project-fetch-status.is-error, .project-fetch-status.is-unavailable { color: rgb(var(--danger)); }
  .project-fetch-status.is-stale, .project-fetch-status.is-missing { color: rgb(var(--warning)); }
  .app-nav-link.is-disabled, .project-record-link.is-disabled {
    color: rgb(var(--muted-foreground) / 0.48); cursor: not-allowed; text-decoration: none;
  }
  .project-history-section { margin-top: 0; }
  @media (max-width: 760px) {
    .standalone-project-page { gap: 14px; }
    .project-state { padding: 16px; }
    .project-state-summary { font-size: 13px; }
    .project-state-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
    .project-table { min-width: 520px; }
    .project-records-table { min-width: 360px; }
  }
  .slack-summary-list-grid { min-width: 920px; }
  .slack-summary-list-header, .slack-summary-list-row {
    display: grid; grid-template-columns: 260px minmax(420px, 1fr) 170px;
    align-items: stretch;
  }
  .slack-summary-list-header {
    min-height: 34px; background: linear-gradient(to right, transparent, var(--divider) 48px, var(--divider) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px; border-bottom: 0;
    color: rgb(var(--muted-foreground)); font-size: 11px; font-weight: 500;
    letter-spacing: 0.08em;
  }
  .slack-summary-list-header > div,
  .slack-summary-list-row > div { min-width: 0; padding: 14px 16px; }
  .slack-summary-list-row {
    background: rgb(var(--surface-2)); border-bottom: 1px solid rgb(var(--border));
  }
  .slack-summary-list-row:hover { background: rgb(var(--primary) / 0.10); }
  .slack-summary-week-title {
    color: rgb(var(--primary)); font-size: 13px; line-height: 1.35; font-weight: 700;
    text-decoration: none;
  }
  .slack-summary-week-title:hover { text-decoration: underline; text-underline-offset: 2px; }
  .slack-summary-list-meta {
    display: block; margin-top: 4px; color: rgb(var(--muted-foreground));
    font-size: 12px; line-height: 1.35;
  }
  .slack-summary-list-copy {
    margin: 0; color: rgb(var(--foreground)); font-size: 13px; line-height: 1.55;
  }
  .slack-summary-list-actions { display: grid; gap: 7px; align-content: start; }
  .slack-summary-list-actions a {
    color: rgb(var(--primary)); font-size: 12px; line-height: 1.35; font-weight: 700;
    text-decoration: underline; text-underline-offset: 2px;
  }
  .slack-summary-list-count { color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.35; }
  @media (max-width: 980px) {
    .page-transition-loader { left: 0; }
    .app-shell { grid-template-columns: 1fr; background: rgb(var(--background)); }
    .app-sidebar-resizer { display: none; }
    .app-sidebar {
      position: static; height: auto; min-height: 0;
      grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center;
      gap: 10px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid rgb(var(--border));
    }
    .app-nav-brand-row {
      container-type: normal; min-height: 38px; padding: 3px 16px 3px 4px;
      border-right: 1px solid rgb(var(--border));
    }
    .app-nav-brand { min-height: 38px; padding: 0; border: 0; }
    .app-nav-logo { width: 118px; }
    .app-nav {
      display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 2px 0;
      scrollbar-width: none;
    }
    .app-nav::-webkit-scrollbar { display: none; }
    .app-nav-area { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
    .app-nav-area + .app-nav-area {
      padding-top: 0; padding-left: 10px; border-top: 0;
      border-left: 1px solid rgb(var(--border) / 0.72);
    }
    .app-nav-area-title { margin: 0; padding: 8px 10px; white-space: nowrap; }
    .app-project-accordion { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
    .app-nav-section { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
    .app-nav-section.is-active-projects,
    .app-nav-section.is-completed-projects,
    .app-nav-section.is-proposed-projects { padding-top: 0; border-top: 0; }
    .app-nav-section-title { margin: 0; padding: 8px 10px; white-space: nowrap; }
    /* The nav is one horizontal scroller here, so the count sits against its
       label rather than being pushed to a right edge that no longer exists. */
    .app-nav-section-count { margin-left: 4px; }
    .app-nav-links { display: flex; flex-wrap: nowrap; gap: 5px; }
    .app-project-domains { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
    .app-project-domain { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
    .app-project-domain-title { margin: 0; padding: 8px 4px; white-space: nowrap; }
    .app-project-links { display: flex; flex-wrap: nowrap; gap: 5px; margin: 0; padding: 0; border-left: 0; }
    .app-project-node { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
    .app-project-link { width: auto; max-width: 220px; }
    .app-project-feature-tree { display: flex; gap: 4px; margin: 0; padding: 0; border-left: 0; }
    .app-project-feature-tree .app-sub-links { margin: 0; padding: 0; }
    .app-sub-links { display: flex; flex-wrap: nowrap; gap: 4px; margin: 0; padding: 0; border-left: 0; }
    .app-nav-section + .app-nav-section { padding-top: 0; border-top: 0; }
    .app-doc-section { display: flex; flex: 0 0 auto; gap: 5px; }
    .app-doc-tree, .app-doc-sub-links { display: flex; flex: 0 0 auto; gap: 5px; margin: 0; padding: 0; border-left: 0; }
    .app-doc-parent { padding: 8px 10px; white-space: nowrap; }
    .app-nav-section-label { display: none; }
    .app-sidebar-meta { padding: 0 0 0 10px; border: 0; border-left: 1px solid rgb(var(--border)); }
    .app-account-row { grid-template-columns: 34px 34px; gap: 6px; }
    .app-account { grid-template-columns: 34px; }
    .app-account-copy { display: none; }
    .app-content { padding: 18px 14px; }
    .workspace-layout, .home-doc-layout { grid-template-columns: 1fr; }
    .home-nav { position: static; display: flex; flex-wrap: wrap; }
    .project-status-page { min-height: 0; }
    .project-status-stage, .project-status-thumbnails { max-height: none; }
  }
  @media (max-width: 760px) {
    body { padding: 0; }
    .edit-rules, .edit-rules.is-three-column { grid-template-columns: 1fr; gap: 20px; }
    .deck-workflow-lane { grid-template-columns: 1fr; gap: 12px; }
    .deck-workflow-track { grid-template-columns: 1fr; }
    .deck-workflow-track.is-edit-flow, .deck-workflow-track.is-publication-flow { grid-template-columns: 1fr; }
    .deck-flowchart { display: grid; grid-template-columns: 1fr; }
    .deck-flowchart > * { grid-column: 1; grid-row: auto; }
    .deck-flow-connector { min-height: 48px; }
    .deck-review-branch { grid-template-columns: 1fr; gap: 0; }
    .deck-bypass-path { min-height: 180px; padding-top: 8px; }
    .deck-bypass-path > div { min-height: 72px; }
    .flow-timing { grid-template-columns: 1fr; }
    .deck-workflow-arrow { min-height: 38px; transform: rotate(90deg); }
    .deck-workflow-arrow span { transform: rotate(-90deg); }
    .app-sidebar {
      grid-template-columns: auto minmax(0, 1fr) auto;
      grid-template-rows: auto auto;
    }
    .app-nav-brand { grid-column: 1; grid-row: 1; }
    .app-sidebar-meta { grid-column: 3; grid-row: 1; }
    .app-nav {
      grid-column: 1 / -1; grid-row: 2; width: 100%;
      padding-top: 8px; border-top: 1px solid rgb(var(--border) / 0.72);
    }
    .app-project-node.is-active {
      display: grid; grid-template-columns: minmax(0, 1fr); align-items: start;
    }
    .app-project-node.is-active .app-project-feature-tree {
      grid-row: 2; margin-left: 0;
    }
    .auth-login-card { padding: 30px 22px; border-radius: 18px; }
    .auth-login-card h1 { font-size: 25px; }
    .page-transition-loader {
      inset: 0; padding: 18px;
    }
    .app-sidebar { grid-template-columns: auto minmax(0, 1fr) auto; padding: 8px 10px; }
    .app-nav-logo { width: 102px; }
    .workspace-actions, .workspace-project-links { justify-content: flex-start; }
    .home { gap: 18px; }
    .home-hero, .home-section { grid-template-columns: 1fr; gap: 18px; }
    .home-session { justify-items: start; min-width: 0; padding-top: 0; }
    .home-env-grid, .home-checklist { grid-template-columns: 1fr; }
    .home-env-row { grid-template-columns: 1fr; gap: 3px; }
    .artifact-page, .collection-page { --page-gap: 18px; }
    .selector-block { --selector-clearance: 18px; }
    .vertex-comments-page-header { align-items: stretch; flex-direction: column; }
    .vertex-comments-page-header .vertex-comments-trigger { width: 100%; justify-content: space-between; }
    .slack-summary-header-actions { width: 100%; justify-content: flex-start; }
    .vertex-comments-dialog-body { gap: 10px; padding: 12px; }
    .artifact-details .body, .media-card .media { padding: 18px; }
    .meeting-top .body { padding: 0; }
    .meeting-top .narrative-surface { padding: 18px; }
    .narrative-surface[data-narrative-context="human-project-update"] { padding: 18px; }
    .meeting-section .body { padding: 18px; }
    .transcript-turn { padding: 18px; }
    .transcript-search { align-items: stretch; }
    .transcript-filter-wrap { flex: 1 1 100%; }
    .transcript-search-actions { justify-content: space-between; width: 100%; }
    .collection { width: 100%; }
    .collection-toolbar { grid-template-columns: 1fr; }
    .collection-visible-count { justify-content: flex-start; padding: 0 12px; }
    .artifact-table { overflow-x: auto; overflow-y: hidden; }
    .collection-toolbar.detected-toolbar { grid-template-columns: 1fr; }
    .project-status-header { align-items: flex-start; flex-direction: column; gap: 12px; }
    .project-status-actions { justify-content: flex-start; }
    .project-status-viewer { grid-template-columns: 1fr; }
    .project-status-thumbnails { grid-template-columns: repeat(4, minmax(90px, 1fr)); overflow-x: auto; }
    .project-status-control { width: 36px; height: 48px; }
    .integration-panel { grid-template-columns: 1fr; }
    .integration-action { justify-items: start; min-width: 0; }
    .integration-action-note { max-width: none; text-align: left; }
    .integration-details { grid-template-columns: 1fr; gap: 2px; }
    .integration-details dd + dt { margin-top: 8px; }
    .mcp-client-fields { grid-template-columns: 1fr; }
    .mcp-client-actions { justify-content: flex-start; }
    .domain-settings-section { grid-template-columns: 1fr; gap: 16px; }
    .domain-settings-add { grid-template-columns: 1fr; }
    .team-binding-row { grid-template-columns: 1fr; gap: 9px; padding: 12px 0; }
    .team-bindings-form footer { align-items: flex-start; flex-direction: column; }
  }
  /* ── Project Status generation ─────────────────────────────────────────
     The run history follows the slide deck on the Reports page. The status
     table shares the top row with the report-week selector.
     ------------------------------------------------------------------ */
  .generation-page { display: grid; gap: 14px; align-content: start; }
  .generation-status { width: 100%; }
  .generation-status .generation-run-button { min-height: 30px; padding: 6px 12px; }
  .generation-section { display: grid; gap: 14px; min-width: 0; margin-top: 8px; }
  .generation-history-panel {
    display: grid; gap: 14px; padding: 18px 20px 10px;
    border: 1px dashed var(--divider); border-radius: 10px;
    background: transparent;
  }
  .generation-history-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
    padding: 16px 18px; border-bottom: 1px solid rgb(var(--border));
  }
  .generation-history-header h2,
  .generation-history-empty h3 { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 600; }
  .generation-history-header > div > p,
  .generation-history-empty p {
    margin: 3px 0 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.45;
  }
  .weekly-report-command-panel {
    display: grid; grid-template-columns: minmax(150px, 210px) auto; align-items: end;
    justify-content: end; gap: 7px 10px;
  }
  .weekly-report-publication-control {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    min-height: 34px;
  }
  .weekly-report-publication-control .weekly-report-command-status {
    color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.35;
  }
  .generation-command-week { display: grid; gap: 4px; }
  .generation-command-week > span {
    font-size: 10px; line-height: 1.2; font-weight: 500; letter-spacing: 0.06em;
    text-transform: uppercase; color: rgb(var(--muted-foreground));
  }
  .generation-command-actions { align-items: center; flex-wrap: nowrap; }
  .generation-command-status {
    grid-column: 1 / -1; margin: 0; max-width: 560px; text-align: right;
    color: rgb(var(--muted-foreground)); font-size: 11px; line-height: 1.35;
  }
  .generation-history-panel .workspace-table-wrap { background: transparent; }
  .generation-history-empty { padding: 28px 18px; }
  .generation-history-table-section { display: grid; gap: 10px; margin-top: 28px; min-width: 0; }
  .generation-history-table:not(.has-metrics) th:first-child { width: 250px; }
  .generation-history-table:not(.has-metrics) th:nth-child(2) { width: 200px; }
  .generation-history-table.has-metrics { table-layout: fixed; min-width: 760px; }
  .generation-history-table.has-metrics th:nth-child(1) { width: 26%; }
  .generation-history-table.has-metrics th:nth-child(2) { width: 18%; }
  .generation-history-table.has-metrics th:nth-child(3) { width: 27%; }
  .generation-history-table.has-metrics th:nth-child(4) { width: 19%; }
  .generation-history-table.has-metrics th:nth-child(5) { width: 10%; }
  .generation-history-table th:first-child,
  .generation-history-table td:first-child,
  .generation-table th:first-child,
  .generation-table td:first-child { white-space: nowrap; }
  .generation-history-table th.workspace-num { white-space: nowrap; }
  .generation-history-result { font-weight: 600; }
  .generation-history-result.is-succeeded { color: rgb(var(--success)); }
  .generation-history-result.is-failed { color: rgb(var(--danger)); }
  .generation-history-detail { margin-left: 6px; color: rgb(var(--muted-foreground)); font-size: 12px; }
  @media (max-width: 820px) {
    .generation-history-header { display: grid; }
    .weekly-report-command-panel { justify-content: stretch; grid-template-columns: minmax(150px, 1fr) auto; }
    .generation-command-status { text-align: left; }
  }
  .generation-run-button {
    position: relative; min-height: 34px; display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden;
    border: 1px solid rgb(var(--primary)); border-radius: 999px;
    background: rgb(var(--primary)); color: rgb(var(--primary-foreground));
    padding: 7px 15px; font-size: 12px; line-height: 1.25; font-weight: 700;
    font-family: inherit; cursor: pointer;
  }
  .generation-run-button > span { position: relative; z-index: 1; }
  .generation-run-button.is-generating { min-width: 124px; cursor: wait; }
  .generation-run-button.is-generating::before {
    content: ""; position: absolute; inset: 0; width: var(--generation-progress, 0%);
    background: rgb(var(--primary-foreground) / 0.25); transition: width 220ms ease-out;
  }
  .generation-run-button:hover { background: rgb(var(--primary) / 0.88); }
  /* Still clickable while a run is in flight: the click is what opens the
     dialog that explains why it will not start another. Marked busy rather
     than disabled, because it is not -- it still does something. */
  .generation-run-button[data-generation-busy="true"] {
    border-color: rgb(var(--border)); background: rgb(var(--surface-2));
    color: rgb(var(--muted-foreground)); cursor: not-allowed;
  }
  .generation-note { margin: 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.5; }
  .generation-log-error {
    margin: 0; padding: 10px 12px; border: 1px solid rgb(var(--danger) / 0.4);
    border-radius: 8px; background: rgb(var(--danger) / 0.08);
    color: rgb(var(--foreground)); font-size: 12px; line-height: 1.5;
  }
  .workspace-table.generation-table { min-width: 900px; }
  .generation-sort {
    display: inline-flex; align-items: center; gap: 5px; margin: -6px; padding: 6px;
    border: 0; background: transparent; color: inherit; font: inherit;
    letter-spacing: inherit; text-transform: inherit; cursor: pointer;
  }
  .generation-sort::after { content: "↕"; opacity: 0.45; font-size: 10px; }
  th[aria-sort="ascending"] .generation-sort::after { content: "↑"; opacity: 1; }
  th[aria-sort="descending"] .generation-sort::after { content: "↓"; opacity: 1; }
  .workspace-num .generation-sort { margin-left: auto; }
  .generation-table td { vertical-align: top; }
  .generation-started, .generation-week { white-space: nowrap; }
  /* The week cell is a link to that week's deck, and has to read as one of
     ours rather than as a default browser link on a dark ground. */
  .generation-week a {
    color: rgb(var(--primary)); text-decoration: none; font-weight: 600;
  }
  .generation-week a:hover { text-decoration: underline; text-underline-offset: 2px; }
  .generation-actor { display: block; color: rgb(var(--muted-foreground)); font-size: 12px; }
  .generation-empty { color: rgb(var(--muted-foreground)); }
  .generation-files { display: flex; flex-wrap: wrap; gap: 6px; }
  .generation-files .project-status-download { min-height: 26px; padding: 4px 10px; font-size: 11px; }
  .generation-pill {
    display: inline-flex; align-items: center; width: fit-content; min-height: 20px;
    padding: 2px 9px; border: 1px solid rgb(var(--border)); border-radius: 999px;
    background: rgb(var(--surface-2)); color: rgb(var(--foreground));
    font-size: 12px; line-height: 1.2; white-space: nowrap; font-weight: 700;
  }
  .generation-pill.is-succeeded {
    border-color: rgb(var(--success) / 0.45); background: rgb(var(--success) / 0.12);
  }
  .generation-pill.is-failed, .generation-pill.is-interrupted {
    border-color: rgb(var(--danger) / 0.45); background: rgb(var(--danger) / 0.12);
  }
  .generation-pill.is-running {
    border-color: rgb(var(--primary) / 0.5); background: rgb(var(--primary) / 0.12);
  }
  .generation-error {
    margin: 6px 0 0; max-width: 320px; color: rgb(var(--muted-foreground));
    font-size: 12px; line-height: 1.45; overflow-wrap: anywhere;
  }
  .generation-dialog {
    width: min(440px, calc(100vw - 32px)); border: 1px solid rgb(var(--border));
    border-radius: 8px; box-shadow: 0 24px 70px rgb(var(--shadow-ink) / 0.30);
    background: rgb(var(--card)); color: rgb(var(--foreground)); padding: 0;
  }
  .generation-dialog::backdrop { background: rgb(var(--shadow-ink) / 0.46); }
  .generation-dialog-body { display: grid; gap: 12px; padding: 20px; }
  .generation-dialog-title { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 600; }
  .generation-dialog-message { margin: 0; color: rgb(var(--muted-foreground)); font-size: 13px; line-height: 1.5; }
  .generation-dialog-detail { margin: 0; display: grid; gap: 6px; font-size: 13px; }
  .generation-dialog-detail > div { display: flex; gap: 10px; align-items: baseline; }
  .generation-dialog-detail dt { flex: 0 0 92px; color: rgb(var(--muted-foreground)); }
  .generation-dialog-detail dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
  .generation-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
  .generation-week-field { display: grid; gap: 6px; }
  .generation-week-label {
    font-size: 12px; font-weight: 600; color: rgb(var(--muted-foreground));
  }
  .generation-week-select {
    width: 100%; padding: 8px 10px; border: 1px solid rgb(var(--border));
    border-radius: 6px; background: rgb(var(--card)); color: rgb(var(--foreground));
    font: inherit; font-size: 13px;
  }
  .generation-week-select:focus-visible {
    outline: 2px solid rgb(var(--foreground) / 0.5); outline-offset: 1px;
  }
  .generation-week-note {
    margin: 0; min-height: 2.6em; color: rgb(var(--muted-foreground));
    font-size: 12px; line-height: 1.45;
  }
  /* Configuration Issues: one boxed section per condition. Severity is stated
     once, in the section header, so the tables carry no colour at all -- a page
     of findings should read as work to get through, not as an alarm. */
  .config-issues-page { max-width: 1180px; }
  .config-issue-sections { display: grid; gap: 32px; }
  .config-issue-section {
    display: grid; gap: 14px; padding: 18px 20px 10px;
    border: 1px solid var(--divider); border-radius: 10px;
    background: rgb(var(--surface-2) / 0.35);
  }
  /* The trailing sections are not findings: same box so they read as part of the
     page, no severity pill, and a flatter ground so the eye can tell at a glance
     that nothing here is asking anybody to fix a project. */
  .config-issue-section.is-neutral { background: transparent; }
  .config-issue-section.is-scans {
    /* Quieter still: this one is about the scan, not about the portfolio. */
    border-style: dashed;
  }
  .config-issue-section-head {
    display: grid; gap: 6px; padding-bottom: 2px;
    border-bottom: 1px solid var(--divider);
  }
  .config-issue-section-title {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
    margin: 0 0 6px; font-size: 12px; letter-spacing: 0.08em;
    text-transform: uppercase; font-weight: 500; color: rgb(var(--muted-foreground));
  }
  /* The name carries the weight, so a section is findable while scrolling. */
  .config-issue-section-name {
    font-family: var(--font-heading, inherit); font-size: 17px; font-weight: 600;
    letter-spacing: 0; text-transform: none; color: rgb(var(--foreground));
  }
  .config-issue-section-remedy {
    max-width: 78ch; margin: 0; color: rgb(var(--muted-foreground));
    font-size: 12.5px; line-height: 1.55;
  }
  .config-issue-section-note {
    margin: 0; color: rgb(var(--muted-foreground)); font-size: 12px; line-height: 1.5;
  }
  /* Blocking is the danger red; review is the app accent rather than amber,
     which sat close enough to red that the two pills read as one colour. */
  .config-issue-severity {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; white-space: nowrap;
  }
  .config-issue-section.is-blocking .config-issue-severity {
    color: rgb(var(--danger)); background: rgb(var(--danger) / 0.12);
  }
  .config-issue-section.is-review .config-issue-severity {
    color: rgb(var(--primary)); background: rgb(var(--primary) / 0.12);
  }
  .workspace-table.config-issue-table { min-width: 900px; }
  .config-issue-table td { vertical-align: top; padding-top: 10px; padding-bottom: 10px; }
  .config-issue-table th:first-child, .config-issue-table td:first-child { padding-left: 0; }
  .config-issue-table .config-issue-owner { width: 160px; }
  .config-issue-table .config-issue-project { width: 200px; }
  .config-issue-table .config-issue-ask { width: 26%; }
  .config-issue-table .config-issue-context { width: 180px; }
  .config-issue-owner-name { display: block; font-size: 13px; color: rgb(var(--foreground)); }
  .config-issue-owner-detail {
    display: block; margin-top: 2px; color: rgb(var(--muted-foreground));
    font-size: 11px; line-height: 1.4; word-break: break-word;
  }
  .config-issue-project { line-height: 1.4; }
  .config-issue-project-meta {
    display: block; margin-top: 2px; color: rgb(var(--muted-foreground));
    font-family: var(--type-code-identity-family); font-size: var(--type-code-identity-size);
    line-height: var(--type-code-identity-line-height); font-weight: var(--type-code-identity-weight);
    letter-spacing: var(--type-code-identity-letter-spacing); word-break: break-all;
  }
  .config-issue-channel {
    display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
    background: rgb(var(--foreground) / 0.08); color: rgb(var(--muted-foreground));
    font-size: 10.5px; letter-spacing: 0; word-break: break-all;
  }
  .config-issue-summary, .config-issue-related {
    display: block; color: rgb(var(--muted-foreground));
    font-size: 12px; line-height: 1.5;
  }
  .config-issue-related { margin-top: 3px; font-style: italic; }
  .config-issue-ask { font-size: 13px; line-height: 1.5; color: rgb(var(--foreground)); }
  .config-issue-meeting-title {
    display: block; font-size: 12px; color: rgb(var(--foreground));
  }
  .config-issue-meeting-meta {
    display: block; margin-top: 2px; color: rgb(var(--muted-foreground));
    font-size: 11px; line-height: 1.45;
  }
  .config-issue-meeting-meta a {
    color: rgb(var(--primary)); text-decoration: none; font-weight: 600;
  }
  .config-issue-meeting-meta a:hover { text-decoration: underline; }
  .config-issue-error { color: rgb(var(--danger)); font-size: 12px; }
  .config-issue-problems {
    display: grid; gap: 6px; padding: 12px 14px;
    border: 1px solid rgb(var(--danger) / 0.4); border-radius: 8px;
    background: rgb(var(--danger) / 0.08); font-size: 13px; line-height: 1.5;
  }
  .config-issue-problems h2 { margin: 0; font-size: 13px; font-weight: 600; }
  .config-issue-problems ul { margin: 0; padding-left: 18px; }
  .generation-run-button[data-config-issues-busy="true"] {
    border-color: rgb(var(--border)); background: rgb(var(--surface-2));
    color: rgb(var(--muted-foreground)); cursor: not-allowed;
  }
  .config-issues-run-control {
    width: 150px;
  }
  .configuration-scan-status { width: min(100%, 430px); }

  /* ── Cross-page typography and flow ────────────────────────────────────
     Pages are assembled by different feature modules, but readers should not
     have to relearn the hierarchy when moving between them. These rules bind
     equivalent page roles to the same semantic type and spacing contracts. */
  .workspace-kicker,
  .collection-kicker,
  .home-kicker,
  .project-status-kicker,
  .artifact-project-kicker {
    color: rgb(var(--primary)); font-family: var(--type-label-family);
    font-size: var(--type-label-size); line-height: var(--type-label-line-height);
    font-weight: var(--type-label-weight); letter-spacing: var(--type-label-letter-spacing);
    text-transform: uppercase;
  }
  h1.title {
    font-family: var(--type-page-title-family); font-size: var(--type-page-title-size);
    line-height: var(--type-page-title-line-height); font-weight: var(--type-page-title-weight);
    letter-spacing: var(--type-page-title-letter-spacing);
  }
  h2.title {
    font-family: var(--type-section-title-family); font-size: var(--type-section-title-size);
    line-height: var(--type-section-title-line-height); font-weight: var(--type-section-title-weight);
    letter-spacing: var(--type-section-title-letter-spacing);
  }
  .workspace-subtitle,
  .collection-subtitle,
  .workspace-meetings-header p:last-child {
    max-width: var(--flow-copy-max); color: rgb(var(--muted-foreground));
    font-family: var(--type-compact-body-family); font-size: var(--type-compact-body-size);
    line-height: var(--type-compact-body-line-height); font-weight: var(--type-compact-body-weight);
    letter-spacing: var(--type-compact-body-letter-spacing);
  }
  .section-title,
  .detailed-summary-overview h2,
  .detailed-summary-team-updates h2,
  .detailed-summary-group h3,
  .slack-summary-section h2,
  .config-issue-section-name {
    color: rgb(var(--foreground)); font-family: var(--type-section-title-family);
    font-size: var(--type-section-title-size); line-height: var(--type-section-title-line-height);
    font-weight: var(--type-section-title-weight); letter-spacing: var(--type-section-title-letter-spacing);
    text-transform: none;
  }
  .detailed-summary-state {
    font-family: var(--type-content-title-family); font-size: var(--type-content-title-size);
    line-height: var(--type-content-title-line-height); font-weight: var(--type-content-title-weight);
    letter-spacing: var(--type-content-title-letter-spacing);
  }
  .workspace-table th,
  .documentation-table th,
  .artifact-table-header,
  .workspace-meetings-table-header,
  .system-log-header {
    font-family: var(--type-label-family); font-size: var(--type-label-size);
    line-height: var(--type-label-line-height); font-weight: var(--type-label-weight);
    letter-spacing: 0.08em; text-transform: uppercase;
  }
  .generation-run-button,
  .project-status-download,
  .summary-edit-trigger,
  .artifact-action,
  .filter-submit,
  .filter-chip,
  .integration-connect {
    font-weight: 600;
  }
  .generation-page { gap: var(--flow-page-gap); }
  .generation-section { margin-top: 0; }
  .generation-history-table-section { margin-top: 0; }
  .config-issue-sections { gap: var(--flow-page-gap); }

  @media (max-width: 900px) {
    .generation-error { max-width: none; }
  }
  @media (max-width: 560px) {
    .standalone-project-page .collection-header {
      display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 14px;
    }
    .standalone-project-page .source-header-actions { justify-self: start; }
  }
  @media (prefers-reduced-motion: reduce) {
    .app-nav-links a,
    .app-project-link,
    .app-project-link::before,
    .app-doc-link,
    .app-nav-links a::after,
    .app-project-link::after,
    .app-doc-link::after,
    .integration-connect,
    .workspace-meeting-actions { transition: none; }
    .mcp-support-announcement { animation: none; transition: none; }
    .mcp-support-announcement-sparkle { transition: none; }
    .app-nav-links a:hover,
    .app-project-link:hover,
    .app-doc-link:hover,
    .integration-connect:hover { transform: none; }
    .mcp-support-announcement:hover { transform: none; }
    .page-transition-loader { transition: opacity 120ms ease; }
    .page-transition-orbit { animation: none; }
  }

  /* ---------- Roadmap canvas ---------- */
  /* Opaque lifecycle fills keep grid lines from bleeding through. Health uses
     its own restrained, theme-aware palette so small labels remain legible. */
  :root {
    --roadmap-completed: 45 82 103;
    --roadmap-completed-border: 137 185 213;
    --roadmap-active: 79 73 111;
    --roadmap-proposed: 57 62 74;
    --roadmap-on-track: 151 210 178;
    --roadmap-at-risk: 235 202 137;
    --roadmap-off-track: 245 184 190;
    --roadmap-unknown: 194 198 212;
    --roadmap-hatch: rgb(255 255 255 / 0.045);
  }
  :root[data-theme="light"] {
    --roadmap-completed: 204 226 241;
    --roadmap-completed-border: 71 115 146;
    --roadmap-active: 227 222 247;
    --roadmap-proposed: 234 237 244;
    --roadmap-on-track: 43 112 79;
    --roadmap-at-risk: 130 93 29;
    --roadmap-off-track: 166 65 77;
    --roadmap-unknown: 101 107 123;
    --roadmap-hatch: rgb(41 43 49 / 0.035);
  }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .app-shell:has(.roadmap-page) { height: 100dvh; min-height: 0; }
  .app-main-frame:has(.roadmap-page) { min-height: 0; display: flex; flex-direction: column; }
  @media (max-width: 980px) {
    .app-shell:has(.roadmap-page) { grid-template-rows: auto minmax(0, 1fr); }
    .app-shell:has(.roadmap-page.is-expanded) { grid-template-rows: minmax(0, 1fr); }
  }
  .app-main-frame:has(.roadmap-page) > .project-mirror-freshness { flex: none; }
  .app-content:has(.roadmap-page) { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 16px; }
  .roadmap-page { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; }
  .roadmap-page > :not(.roadmap-canvas-frame) { flex-shrink: 0; }
  .roadmap-header { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; }
  .roadmap-header h1 { margin: 0; }
  .roadmap-subtitle { margin: 4px 0 0; font-family: var(--font-mono); font-size: 12px; color: rgb(var(--muted-foreground)); }
  .roadmap-bar.is-completed { background-color: rgb(var(--roadmap-completed)); border-color: rgb(var(--roadmap-completed-border)); }
  .roadmap-bar.is-active { background-color: rgb(var(--roadmap-active)); }
  .roadmap-bar.is-upcoming { background-color: rgb(var(--roadmap-proposed)); border-style: dashed; }
  .roadmap-bar.is-unscheduled {
    background-image: repeating-linear-gradient(135deg, var(--roadmap-hatch) 0 1px, transparent 1px 9px); border-style: dashed;
  }
  .roadmap-zoom { display: inline-flex; gap: 2px; margin: 0 0 0 auto; padding: 2px; border: 1px solid rgb(var(--border)); border-radius: 8px; background: rgb(var(--card)); }
  .roadmap-zoom-option { position: relative; }
  .roadmap-zoom-option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
  .roadmap-zoom-option span { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; color: rgb(var(--muted-foreground)); }
  .roadmap-zoom-option input:checked + span { background: rgb(var(--primary)); color: rgb(var(--primary-foreground)); }
  .roadmap-zoom-option input:focus-visible + span { outline: 2px solid rgb(var(--primary)); outline-offset: 1px; }

  .roadmap-canvas-frame { flex: 1; min-height: 0; position: relative; overflow: auto; border: 1px solid rgb(var(--border)); border-radius: 10px; background: rgb(var(--card)); }
  .roadmap-canvas { position: relative; min-width: max-content; --roadmap-lane-w: 140px; --roadmap-day-w: 3.4px; }
  .roadmap-months { position: sticky; top: 0; z-index: 5; display: flex; background: rgb(var(--card)); border-bottom: 1px solid rgb(var(--border)); }
  .roadmap-corner {
    position: sticky; left: 0; z-index: 6; flex: none; width: var(--roadmap-lane-w); padding: 10px 12px; display: flex; align-items: flex-end;
    background: rgb(var(--card)); border-right: 1px solid rgb(var(--border)); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--muted-foreground));
  }
  .roadmap-month { flex: none; width: calc(var(--roadmap-day-w) * var(--roadmap-month-days)); padding: 6px 8px; border-left: 1px solid rgb(var(--border) / 0.5); font-family: var(--font-mono); font-size: 12px; color: rgb(var(--foreground)); white-space: nowrap; overflow: hidden; }
  .roadmap-month.is-quarter { border-left-color: rgb(var(--border)); }
  .roadmap-month small { display: block; font-size: 10px; color: rgb(var(--muted-foreground)); letter-spacing: 0.06em; }
  .roadmap-today-tag {
    position: absolute; top: 0; z-index: 7; transform: translateX(-50%); padding: 3px 6px; border-radius: 0 0 4px 4px;
    background: rgb(var(--danger)); color: rgb(var(--inverse-foreground)); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  }

  .roadmap-lane { position: relative; display: flex; border-bottom: 1px solid rgb(var(--border)); }
  .roadmap-lane-head {
    position: sticky; left: 0; z-index: 4; flex: none; width: var(--roadmap-lane-w); padding: 10px 10px 10px 12px; display: flex; flex-direction: column; gap: 6px;
    background: rgb(var(--card)); border-right: 1px solid rgb(var(--border));
  }
  .roadmap-lane-title { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; margin: 0; }
  .roadmap-lane-code { font-family: var(--font-mono); font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground)); }
  .roadmap-lane-count { font-family: var(--font-mono); font-size: 12px; color: rgb(var(--muted-foreground)); }
  .roadmap-lane-actions { display: flex; gap: 4px; margin-top: auto; }
  .roadmap-lane-actions button {
    font: inherit; font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid rgb(var(--border)); background: rgb(var(--card)); color: rgb(var(--foreground)); cursor: pointer;
  }
  .roadmap-lane-actions button:hover { border-color: rgb(var(--muted-foreground)); }
  .roadmap-lane-actions button[disabled] { opacity: 0.45; cursor: default; }
  .roadmap-lane-body { position: relative; flex: none; width: calc(var(--roadmap-day-w) * var(--roadmap-total-days)); }
  .roadmap-grid-line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid rgb(var(--border) / 0.45); pointer-events: none; }
  .roadmap-grid-line.is-quarter { border-left-color: rgb(var(--border)); }
  .roadmap-lane.is-collapsed .roadmap-lane-body { height: 10px !important; }
  .roadmap-lane.is-collapsed .roadmap-bar, .roadmap-lane.is-collapsed .roadmap-lane-count { display: none; }
  .roadmap-today-line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid rgb(var(--danger)); pointer-events: none; z-index: 2; }

  .roadmap-bar {
    position: absolute; height: 44px; padding: 5px 8px 4px 10px; border-radius: 7px; border: 1px solid rgb(var(--border)); background-color: rgb(var(--card)); color: rgb(var(--foreground));
    text-align: left; overflow: hidden; cursor: pointer; user-select: none; touch-action: none; font: inherit; transition: box-shadow 0.12s;
  }
  .roadmap-bar:hover { box-shadow: var(--shadow-md); }
  .roadmap-bar:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: 2px; }
  .roadmap-bar.is-draggable { cursor: grab; }
  .roadmap-bar.is-dragging { cursor: grabbing; z-index: 3; box-shadow: var(--shadow-lg); opacity: 0.92; }
  .roadmap-bar.is-active { border-color: var(--roadmap-ring, rgb(var(--border))); box-shadow: 0 0 0 1px var(--roadmap-ring, rgb(var(--border))); }
  .roadmap-bar.is-active:hover, .roadmap-bar.is-active.is-dragging { box-shadow: 0 0 0 1px var(--roadmap-ring, rgb(var(--border))), var(--shadow-md); }
  .roadmap-bar.is-completed { color: rgb(var(--foreground)); cursor: pointer; }
  .roadmap-bar.is-completed .roadmap-bar-team { background: rgb(var(--card) / 0.55); }
  .roadmap-bar.is-changed { outline: 2px solid rgb(var(--primary)); outline-offset: 1px; }
  .roadmap-bar.is-new { border-color: rgb(var(--primary)); }
  .roadmap-bar.is-archived { opacity: 0.4; text-decoration: line-through; }
  .roadmap-bar.is-pending-apply { outline: 2px dashed rgb(var(--primary)); outline-offset: 1px; }
  .roadmap-bar.is-failed-apply { outline: 2px solid rgb(var(--warning)); outline-offset: 1px; }
  .roadmap-bar-name { font-weight: 600; font-size: 12.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .roadmap-bar.is-active:not(.is-narrow) .roadmap-bar-name { padding-right: 76px; }
  .roadmap-bar.is-completed:not(.is-tiny) .roadmap-bar-name { padding-right: 16px; }
  .roadmap-bar-sub { display: flex; gap: 6px; align-items: center; margin-top: 2px; font-family: var(--font-mono); font-size: 11px; color: rgb(var(--muted-foreground)); white-space: nowrap; overflow: hidden; }
  .roadmap-bar-team { padding: 0 5px; border-radius: 3px; background: rgb(var(--surface-2)); color: rgb(var(--foreground)); }
  .roadmap-bar-track {
    position: absolute; right: 12px; top: 5px; padding: 2px 4px; border-radius: 3px; background: rgb(var(--card));
    font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--roadmap-ring, rgb(var(--muted-foreground)));
  }
  .roadmap-bar.is-narrow .roadmap-bar-track { display: none; }
  .roadmap-bar-edge { position: absolute; top: 0; bottom: 0; width: 8px; z-index: 2; cursor: ew-resize; }
  .roadmap-bar-edge.is-start { left: 0; }
  .roadmap-bar-edge.is-end { right: 0; }
  .roadmap-bar-unscheduled { font-weight: 400; color: rgb(var(--muted-foreground)); }

  .roadmap-pending {
    position: sticky; bottom: 14px; margin: 0 14px 14px auto; width: 320px; max-width: calc(100% - 28px); z-index: 8; font-size: 13px;
    background: rgb(var(--card)); border: 1px solid rgb(var(--border)); border-radius: 10px; box-shadow: var(--shadow-lg);
  }
  .roadmap-pending-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgb(var(--border)); font-weight: 600; }
  .roadmap-pending-count { font-family: var(--font-mono); font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgb(var(--primary)); color: rgb(var(--primary-foreground)); }
  .roadmap-pending-count.is-empty { background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground)); }
  .roadmap-pending ol { list-style: none; margin: 0; padding: 6px 0; max-height: 240px; overflow: auto; }
  .roadmap-pending li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 12px; border-bottom: 1px dashed rgb(var(--border)); }
  .roadmap-pending li:last-child { border-bottom: 0; }
  .roadmap-pending-kind { min-width: 60px; padding-top: 3px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--muted-foreground)); }
  .roadmap-pending-kind.is-failed { color: rgb(var(--warning)); }
  .roadmap-pending-kind.is-applied { color: rgb(var(--success)); }
  .roadmap-pending-detail { flex: 1; line-height: 1.35; }
  .roadmap-pending-detail b { font-weight: 600; }
  .roadmap-pending-arrow { color: rgb(var(--muted-foreground)); }
  .roadmap-pending-discard { border: 0; background: none; color: rgb(var(--muted-foreground)); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
  .roadmap-pending-discard:hover { color: rgb(var(--danger)); }
  .roadmap-pending-foot { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid rgb(var(--border)); }
  .roadmap-pending-empty { padding: 14px 12px; color: rgb(var(--muted-foreground)); }
  .roadmap-pending-note { padding: 0 12px 10px; font-family: var(--font-mono); font-size: 11px; color: rgb(var(--muted-foreground)); }
  .roadmap-pending-error { padding: 0 12px 10px; color: rgb(var(--danger)); }
  .roadmap-button {
    font: inherit; font-size: 13px; padding: 6px 11px; border-radius: 6px; border: 1px solid rgb(var(--border)); background: rgb(var(--card)); color: rgb(var(--foreground)); cursor: pointer;
  }
  .roadmap-button.is-primary { background: rgb(var(--primary)); color: rgb(var(--primary-foreground)); border-color: rgb(var(--primary)); }
  .roadmap-button.is-danger { color: rgb(var(--danger)); border-color: rgb(var(--danger)); }
  .roadmap-button[disabled] { opacity: 0.5; cursor: not-allowed; }
  .roadmap-toast { position: sticky; bottom: 16px; margin: 0 auto 16px; width: max-content; max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 8px; background: rgb(var(--inverse-surface)); color: rgb(var(--inverse-foreground)); font-size: 13px; z-index: 9; box-shadow: var(--shadow-lg); }

  .roadmap-dialog { width: min(640px, calc(100vw - 32px)); max-height: 90vh; padding: 0; border: 1px solid rgb(var(--border)); border-radius: 12px; background: rgb(var(--card)); color: rgb(var(--foreground)); box-shadow: var(--shadow-lg); }
  .roadmap-dialog::backdrop { background: rgb(0 0 0 / 0.45); }
  .roadmap-dialog-head { display: flex; gap: 10px; align-items: flex-start; padding: 16px 20px 12px; border-bottom: 1px solid rgb(var(--border)); }
  .roadmap-dialog-head input { flex: 1; font: inherit; font-weight: 600; font-size: 18px; padding: 4px 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: rgb(var(--foreground)); min-width: 0; }
  .roadmap-dialog-head input:not([readonly]):hover, .roadmap-dialog-head input:focus { border-color: rgb(var(--border)); background: rgb(var(--background)); }
  .roadmap-dialog-state { margin-top: 6px; padding: 4px 8px; border-radius: 999px; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground)); }
  .roadmap-dialog-state.is-completed { background: rgb(var(--roadmap-completed)); color: rgb(var(--foreground)); }
  .roadmap-dialog-body { display: grid; gap: 14px; padding: 14px 20px; }
  .roadmap-dialog-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
  .roadmap-dialog label, .roadmap-dialog-section h5 { display: block; margin: 0 0 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--muted-foreground)); font-weight: 500; }
  .roadmap-dialog-value { font-size: 14px; }
  .roadmap-dialog input[type="date"], .roadmap-dialog select { width: 100%; font: inherit; font-size: 14px; padding: 5px 7px; border: 1px solid rgb(var(--border)); border-radius: 6px; background: rgb(var(--card)); color: rgb(var(--foreground)); }
  .roadmap-dialog-section p { margin: 0; font-size: 14px; }
  .roadmap-dialog-section ul { margin: 0; padding-left: 18px; font-size: 14px; }
  .roadmap-dialog-health { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
  .roadmap-dialog-health i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--roadmap-ring, rgb(var(--border))); }
  .roadmap-dialog-foot { display: flex; gap: 8px; align-items: center; padding: 12px 20px; border-top: 1px solid rgb(var(--border)); }
  .roadmap-dialog-foot .roadmap-dialog-links { margin-right: auto; display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
  .roadmap-project-link { display: inline-flex; align-items: center; gap: 6px; }
  .roadmap-project-link-icon { object-fit: contain; flex: none; }
  .roadmap-dialog-foot .roadmap-dialog-links a { color: rgb(var(--narrative-accent)); }
  .roadmap-muted { color: rgb(var(--muted-foreground)); }
  @media (prefers-reduced-motion: reduce) { .roadmap-bar { transition: none; } }

  /* ---------- Roadmap: header controls, full screen, tooltip, cart ---------- */
  .roadmap-page { position: relative; }
  .roadmap-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .roadmap-zoom { margin: 0; }
  .roadmap-icon-button, .roadmap-cart {
    position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0;
    border: 1px solid rgb(var(--border)); border-radius: 8px; background: rgb(var(--card)); color: rgb(var(--foreground)); cursor: pointer;
  }
  .roadmap-icon-button:hover, .roadmap-cart:hover { border-color: rgb(var(--muted-foreground)); }
  .roadmap-icon-button[aria-pressed="true"] { background: rgb(var(--primary)); color: rgb(var(--primary-foreground)); border-color: rgb(var(--primary)); }
  .roadmap-cart-count {
    position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: rgb(var(--primary)); color: rgb(var(--primary-foreground)); font-family: var(--font-mono); font-size: 11px; line-height: 18px; text-align: center;
  }
  .roadmap-cart-count.is-empty { background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground)); }
  .roadmap-cart[aria-expanded="true"] { border-color: rgb(var(--primary)); }
  .app-shell:has(.roadmap-page.is-expanded) { grid-template-columns: minmax(0, 1fr); }
  .app-shell:has(.roadmap-page.is-expanded) .app-sidebar, .app-shell:has(.roadmap-page.is-expanded) .app-sidebar-resizer { display: none; }
  .app-shell:has(.roadmap-page.is-expanded) .app-content { padding: 16px 20px 24px; }
  .roadmap-tooltip, .roadmap-toolbar-tooltip {
    position: fixed; z-index: 60; max-width: 320px; padding: 8px 10px; border-radius: 8px; pointer-events: none;
    background: rgb(var(--inverse-surface)); color: rgb(var(--inverse-foreground)); box-shadow: var(--shadow-lg); font-size: 12.5px; line-height: 1.4;
  }
  .roadmap-tooltip b { display: block; font-size: 13px; }
  .roadmap-tooltip[hidden], .roadmap-toolbar-tooltip[hidden] { display: none; }
  .roadmap-today-line { z-index: 0; border-left: 2px dashed rgb(var(--danger) / 0.8); }
  .roadmap-grid-line { z-index: 0; }
  .roadmap-bar { z-index: 1; }
  .roadmap-lane-head { cursor: grab; }
  .roadmap-lane-head.is-dragging { opacity: 0.5; }
  .roadmap-lane.is-drop-before { box-shadow: inset 0 3px 0 rgb(var(--primary)); }
  .roadmap-lane.is-drop-after { box-shadow: inset 0 -3px 0 rgb(var(--primary)); }
  .roadmap-lane-grip { color: rgb(var(--muted-foreground)); font-size: 14px; user-select: none; }
  .roadmap-lane-add { display: block; align-self: flex-start; margin-top: 0; padding: 3px 0; border: 0; background: transparent; color: rgb(var(--primary)); font: inherit; font-size: 12px; cursor: pointer; }
  .roadmap-lane-add:hover { text-decoration: underline; }
  .roadmap-lane-add:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: 3px; border-radius: 2px; }
  .roadmap-lane-add:disabled { opacity: .5; cursor: default; }
  .roadmap-create-dialog { width: min(380px, calc(100vw - 16px)); }
  .roadmap-create-form { display: contents; }
  .roadmap-create-field { display: grid; gap: 6px; margin: 14px 0; font-size: 13px; }
  .roadmap-create-field input, .roadmap-create-field select { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid rgb(var(--border)); border-radius: 6px; background: rgb(var(--background)); color: rgb(var(--foreground)); font: inherit; }
  .roadmap-create-dialog .roadmap-dialog-foot { justify-content: flex-end; gap: 8px; }
  /* Dialog: wider, header and footer fixed, only the body scrolls. */
  .roadmap-dialog { width: min(1040px, calc(100vw - 32px)); max-height: 90vh; }
  .roadmap-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .roadmap-dialog-body { overflow: auto; min-height: 0; }
  .roadmap-dialog-head h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; }
  .roadmap-dialog-head h2 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .roadmap-field { display: flex; align-items: center; gap: 6px; min-height: 28px; }
  .roadmap-pencil {
    display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px;
    background: transparent; color: rgb(var(--muted-foreground)); cursor: pointer; font-size: 13px;
  }
  .roadmap-pencil:hover { background: rgb(var(--surface-2)); color: rgb(var(--foreground)); }
  .roadmap-dialog-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 24px; }
  @media (min-width: 900px) { .roadmap-dialog-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
  .roadmap-schedule { display: grid; gap: 4px; font-size: 14px; }
  .roadmap-schedule-bar { position: relative; height: 8px; border-radius: 4px; background: rgb(var(--surface-2)); overflow: hidden; }
  .roadmap-schedule-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: rgb(var(--primary)); }
  .roadmap-schedule-bar i.is-progress { background: rgb(var(--success) / 0.7); }
  .roadmap-weekend { position: absolute; top: 0; bottom: 0; z-index: 0; background: rgb(var(--foreground) / 0.025); pointer-events: none; }
  .roadmap-dialog-body-column { min-width: 0; }
  .roadmap-linear-mark { display: block; }
  .roadmap-months.has-weeks { padding-bottom: 16px; }
  .roadmap-week-mark {
    position: absolute; bottom: 2px; text-align: center; pointer-events: none;
    font-family: var(--font-mono); font-size: 10px; line-height: 1; color: rgb(var(--muted-foreground));
  }
  .roadmap-lane.is-dragging { opacity: 0.45; }
  .roadmap-day-line { position: absolute; top: 0; bottom: 0; width: 0; z-index: 0; border-left: 1px solid rgb(var(--border) / 0.16); pointer-events: none; }

  /* Roadmap framing and relationship overlay. Fixed labels sit above the
     connectors; opaque bars keep links out of the text area. */
  :root {
    --roadmap-today: 190 45 65;
    --roadmap-today-line: 245 102 116;
    --roadmap-proposed-border: 145 156 179;
    --roadmap-header: 55 59 70;
    --roadmap-column: 62 66 78;
    --roadmap-link: rgb(96 165 250);
  }
  :root[data-theme="light"] {
    --roadmap-today: 172 32 49;
    --roadmap-today-line: 184 42 57;
    --roadmap-proposed-border: 129 143 170;
    --roadmap-header: 223 227 237;
    --roadmap-column: 233 236 243;
    --roadmap-link: rgb(37 99 235);
  }
  .roadmap-months, .roadmap-corner { background: rgb(var(--roadmap-header)); }
  .roadmap-lane-head { z-index: 4; background: rgb(var(--roadmap-column)); box-shadow: 1px 0 0 rgb(var(--border)); }
  .roadmap-corner { box-shadow: 1px 0 0 rgb(var(--border)); }
  .roadmap-controls { flex-wrap: wrap; }
  .roadmap-connections { position: absolute; inset: 0; overflow: visible; pointer-events: none; z-index: 1; }
  .roadmap-bar { z-index: 2; }
  .roadmap-connection { cursor: pointer; color: var(--roadmap-link); transition: opacity 120ms; }
  .roadmap-connection.is-dimmed { opacity: 0.3; }
  .roadmap-connection.is-conflict { color: rgb(var(--roadmap-at-risk)); }
  .roadmap-connection-line { fill: none; stroke: currentColor; stroke-width: 1.925; stroke-linecap: round; pointer-events: none; }
  .roadmap-connection.is-related .roadmap-connection-line { stroke-dasharray: 1 5; stroke-linecap: round; }
  .roadmap-connection-hit { fill: none; stroke: transparent; stroke-width: 12; pointer-events: stroke; }
  .roadmap-connection:hover .roadmap-connection-line, .roadmap-connection:focus-visible .roadmap-connection-line { stroke-width: 2.45; }
  .roadmap-connection:focus-visible { outline: none; }
  .roadmap-connection-warning { fill: rgb(var(--roadmap-at-risk)); }
  .roadmap-connections-status { font-size: 12px; color: rgb(var(--muted-foreground)); line-height: 1.5; }
  .roadmap-connections-status:empty { display: none; }
  .roadmap-connections-status.has-conflicts, .roadmap-relationship-conflict { color: rgb(var(--roadmap-at-risk)); }
  .roadmap-relationships { display: grid; gap: 12px; }
  .roadmap-relationship-group h6 { margin: 0 0 4px; font-size: 13px; }
  .roadmap-relationship-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgb(var(--border)); }
  .roadmap-relationship-row:focus { outline: 2px solid rgb(var(--primary)); outline-offset: 3px; }
  .roadmap-relationship-row p, .roadmap-relationships > p { font-size: 12px; }
  .roadmap-relationship-row .roadmap-button { flex-shrink: 0; }
  .roadmap-relationship-project { border: 0; background: none; color: rgb(var(--narrative-accent)); font: inherit; padding: 0; text-align: left; cursor: pointer; }
  .roadmap-relationship-form { display: grid; gap: 8px; }
  .roadmap-relationship-form input { width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid rgb(var(--border)); border-radius: 6px; background: rgb(var(--card)); color: rgb(var(--foreground)); font: inherit; }
  .roadmap-relationship-form .roadmap-button { justify-self: start; }
  .roadmap-button[aria-pressed="true"] { background: rgb(var(--primary)); color: rgb(var(--primary-foreground)); }
  @media (prefers-reduced-motion: reduce) { .roadmap-connection { transition: none; } }

  .roadmap-bar.is-upcoming { border-color: rgb(var(--roadmap-proposed-border)); }
  .roadmap-today-tag { background: rgb(var(--roadmap-today)); color: rgb(var(--inverse-foreground)); font-weight: 700; letter-spacing: 0.04em; padding: 4px 7px; }
  .roadmap-today-line { border-left-color: rgb(var(--roadmap-today-line)); }
  .roadmap-today-axis { z-index: 2; }
  .roadmap-bar-wrap { position: absolute; height: 44px; z-index: 2; }
  .roadmap-bar-wrap > .roadmap-bar { inset: 0; width: 100%; padding-left: 8px; }
  .roadmap-bar-wrap:hover, .roadmap-bar-wrap:focus-within, .roadmap-bar-wrap.is-dragging { z-index: 3; }
  .roadmap-link-port { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; clip-path: circle(12.6px at 50% 50%); padding: 0; border: 0; border-radius: 50%; background: transparent; z-index: 4; cursor: crosshair; opacity: 0; pointer-events: none; }
  .roadmap-link-port.is-start { left: -18px; }
  .roadmap-link-port.is-end { right: -18px; }
  .roadmap-link-port::before { content: ""; position: absolute; inset: 5.4px; border: 0.7px dashed var(--roadmap-link); border-radius: 50%; }
  .roadmap-link-port::after { content: ""; display: block; margin: auto; width: 5.6px; height: 5.6px; border-radius: 50%; background: rgb(var(--card)); border: 1.4px solid var(--roadmap-link); box-shadow: 0 0 0 1.4px rgb(var(--card)); }
  .roadmap-bar-wrap:hover .roadmap-link-port, .roadmap-bar-wrap:has(:focus-visible) .roadmap-link-port, .roadmap-page.is-linking .roadmap-link-port { opacity: 1; pointer-events: auto; }
  .roadmap-page.is-linking .roadmap-link-port.is-link-origin { opacity: 0; pointer-events: none; }
  .roadmap-bar.is-row-only { cursor: ns-resize; }
  .roadmap-link-port.is-connected::after, .roadmap-link-port:hover::after, .roadmap-link-port:focus-visible::after { background: var(--roadmap-link); }
  .roadmap-link-port:focus-visible::before { border-style: solid; border-width: 2px; }
  .roadmap-link-port:focus-visible { outline: 2px solid var(--roadmap-link); outline-offset: 3px; border-radius: 50%; }
  .roadmap-page.is-linking .roadmap-bar { cursor: crosshair; }
  .roadmap-connection-preview { fill: none; stroke: var(--roadmap-link); stroke-width: 2.1; pointer-events: none; }
  @media (hover: none) { .roadmap-link-port { opacity: 1; pointer-events: auto; } }

/* Project details: full-width reading order with compact, bordered comparisons. */
[data-roadmap-dialog] { width: 65vw; height: 65dvh; max-width: none; max-height: calc(100dvh - 48px); }
[data-roadmap-dialog] .roadmap-dialog-body { display: block; padding: 24px; }
[data-roadmap-dialog] .roadmap-detail-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid rgb(var(--border)); border-radius: 8px; overflow: hidden; background: rgb(var(--background)); margin-bottom: 24px; }
.roadmap-detail-facts > div { padding: 12px 16px; border-right: 1px solid rgb(var(--border)); border-bottom: 1px solid rgb(var(--border)); }
.roadmap-detail-facts .roadmap-dialog-value { overflow-wrap: anywhere; }
.roadmap-detail-sections { display: grid; gap: 24px; }
.roadmap-detail-sections > .roadmap-dialog-section { min-width: 0; border-top: 1px solid rgb(var(--border)); padding-top: 18px; }
.roadmap-detail-sections .roadmap-dialog-section h5 { font-family: var(--font-sans); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: rgb(var(--foreground)); margin-bottom: 12px; }
.roadmap-detail-sections p, .roadmap-detail-sections li { line-height: 1.65; }
.roadmap-detail-sections li { padding: 6px 0; border-bottom: 1px solid rgb(var(--border) / .5); }
.roadmap-detail-sections .roadmap-assessment-callout { border: 1px solid rgb(var(--border)); border-left: 4px solid var(--roadmap-ring); padding: 16px 20px; border-radius: 8px; background: rgb(var(--background)); }
.roadmap-detail-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid rgb(var(--border)); border-radius: 8px; overflow: hidden; font-size: 14px; }
.roadmap-detail-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.roadmap-detail-table th, .roadmap-detail-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgb(var(--border)); }
.roadmap-detail-table tr:last-child > * { border-bottom: 0; }
.roadmap-detail-table th { width: 22%; font-weight: 500; background: rgb(var(--background)); }
.roadmap-metric-value { width: 20%; font-weight: 600; white-space: nowrap; }
.roadmap-detail-table .roadmap-schedule-bar { margin-top: 8px; height: 6px; }
[data-roadmap-dialog] .roadmap-dialog-head h2 span { white-space: normal; }
@media (max-width: 700px) {
  [data-roadmap-dialog] { width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
  [data-roadmap-dialog] .roadmap-dialog-body { padding: 14px; }
  [data-roadmap-dialog] .roadmap-detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap-detail-table th, .roadmap-detail-table td { padding: 9px; overflow-wrap: anywhere; }
  .roadmap-metric-value { white-space: normal; }
  [data-roadmap-dialog] .roadmap-dialog-foot { flex-wrap: wrap; }
}

.roadmap-detail-facts > div:last-child { grid-column: span 2; }
@media (max-width: 700px) {
  .roadmap-detail-table, .roadmap-detail-table tbody { display: block; }
  .roadmap-detail-table tr { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr); border-bottom: 1px solid rgb(var(--border)); }
  .roadmap-detail-table tr:last-child { border-bottom: 0; }
  .roadmap-detail-table th { grid-column: 1 / -1; width: auto; }
  .roadmap-detail-table td { width: auto; border-bottom: 0; overflow-wrap: normal; }
  .roadmap-issues-table td { grid-column: 1 / -1; }
}

.project-weekly-carousel { min-width: 0; }
.project-weekly-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 12px 0; border-block: 1px solid rgb(var(--border)); }
.project-weekly-label { text-align: center; display: grid; gap: 4px; font-size: 14px; }
.project-weekly-label span { font-size: 12px; }
[data-roadmap-dialog] .roadmap-dialog-body > .roadmap-dialog-section { padding-bottom: 22px; }
[data-roadmap-dialog] .roadmap-dialog-body > .roadmap-dialog-section p { line-height: 1.65; }
.standalone-project-page [data-project-weekly-overviews] { padding: 20px; border: 1px solid rgb(var(--border)); border-radius: 8px; background: rgb(var(--card)); }
@media (max-width: 700px) { .project-weekly-nav { gap: 6px; } .project-weekly-label { font-size: 12px; } }

[data-roadmap-dialog] .project-weekly-carousel { margin-bottom: 24px; }
[data-roadmap-dialog] .project-weekly-nav { position: sticky; top: -24px; z-index: 1; background: rgb(var(--card)); }

/* Compact context stays above the narrative; dates use the shared selectors. */
[data-roadmap-dialog] .roadmap-detail-facts { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 14px 16px; margin-bottom: 20px; border: 0; border-radius: 6px; background: rgb(var(--background)); }
.roadmap-detail-facts > div { padding: 0; border: 0; flex: 1 1 140px; min-width: 0; }
.roadmap-detail-facts > div > label { font-size: 10px; margin-bottom: 3px; }
.roadmap-detail-facts .roadmap-dialog-value { font-size: 13px; }
.roadmap-dialog-state { border: 1px solid rgb(var(--primary) / .6); font-weight: 700; }
.roadmap-dialog-state.is-active { background: rgb(var(--primary) / .18); color: rgb(var(--primary)); }
.roadmap-dialog-state.is-completed { background: rgb(var(--roadmap-on-track) / .15); color: rgb(var(--roadmap-on-track)); border-color: rgb(var(--roadmap-on-track) / .6); }
.roadmap-dialog-state.is-upcoming { background: rgb(var(--surface-2)); color: rgb(var(--foreground)); border-style: dashed; }
.project-weekly-nav { display: grid; gap: 8px; }
.project-weekly-label { display: flex; align-items: baseline; justify-content: flex-start; gap: 8px 14px; text-align: left; flex-wrap: wrap; }
.project-weekly-nav .selector-row { min-width: 0; }
.project-weekly-nav .selector-track { position: relative; }
.project-weekly-nav .selector-chip { text-align: left; font-family: inherit; cursor: pointer; }
.project-weekly-nav .selector-arrow:disabled { opacity: .4; cursor: default; }
.project-weekly-nav button:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: 2px; }
@media (max-width: 700px) { [data-roadmap-dialog] .project-weekly-nav { top: -14px; } }

.roadmap-action-popover { position: fixed; inset: auto; margin: 0; width: 340px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); height: auto; box-sizing: border-box; overflow: auto; border: 1px solid rgb(var(--border)); border-radius: 6px; box-shadow: 0 12px 32px rgb(0 0 0 / .24); background: rgb(var(--card)); color: rgb(var(--foreground)); z-index: 100; }
.roadmap-edge-popover { padding: 18px; }
.roadmap-edge-popover h2 { margin: 0 0 10px; font-size: 16px; }
.roadmap-edge-popover p { margin: 8px 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.roadmap-popover-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.roadmap-create-dialog.roadmap-action-popover .roadmap-dialog-head { padding: 14px 18px; }
.roadmap-create-dialog.roadmap-action-popover .roadmap-dialog-head h2 { font-size: 16px; }
.roadmap-create-dialog.roadmap-action-popover .roadmap-dialog-body { padding: 14px 18px; gap: 10px; }
.roadmap-create-dialog.roadmap-action-popover .roadmap-dialog-foot { padding: 12px 18px; }

.roadmap-create-dialog.roadmap-action-popover { width: 380px; }
.roadmap-create-dialog.roadmap-action-popover .roadmap-dialog-body { display: block; }
.roadmap-create-dialog.roadmap-action-popover .roadmap-create-field { display: grid; margin: 10px 0; }

.roadmap-create-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.roadmap-create-dates input { min-width: 0; }

/* Read project context as three groups, with completion as the main signal. */
[data-roadmap-dialog] .roadmap-detail-facts { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(0, 1.3fr) minmax(0, 1.4fr); gap: 0; padding: 0; }
.roadmap-fact-group { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 14px 18px; padding: 18px 20px; border-left: 1px solid rgb(var(--border)); }
.roadmap-fact-group:first-child { border-left: 0; }
.roadmap-fact-group:not(.roadmap-delivery-group) { gap: 8px 12px; padding: 18px 14px; align-self: stretch; }
.roadmap-fact-group:not(.roadmap-delivery-group) label { margin-bottom: 2px; }
.roadmap-fact-group h3 { grid-column: 1 / -1; margin: 0; font-size: 13px; font-weight: 600; }
.roadmap-fact-group > div { min-width: 0; }
.roadmap-fact-group label { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0; text-transform: none; }
.roadmap-fact-group .roadmap-dialog-value { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.roadmap-delivery-group { display: flex; flex-direction: column; gap: 14px; }
.roadmap-completion { display: grid; gap: 5px; }
.roadmap-completion strong { font-size: 34px; line-height: 1.1; font-weight: 600; color: rgb(var(--foreground)); }
.roadmap-completion > span { font-size: 13px; }
.roadmap-completion small { font-size: 11px; }
.roadmap-completion progress { width: 100%; height: 7px; margin: 7px 0 2px; appearance: none; border: 0; border-radius: 4px; overflow: hidden; background: rgb(var(--surface-2)); }
.roadmap-completion progress::-webkit-progress-bar { background: rgb(var(--surface-2)); }
.roadmap-completion progress::-webkit-progress-value { background: rgb(var(--roadmap-on-track)); border-radius: 4px; }
.roadmap-completion progress::-moz-progress-bar { background: rgb(var(--roadmap-on-track)); }
@media (max-width: 900px) {
  [data-roadmap-dialog] .roadmap-detail-facts { grid-template-columns: 1fr; padding: 0 16px; }
  .roadmap-fact-group { border-left: 0; border-top: 1px solid rgb(var(--border)); padding: 16px 0; }
  .roadmap-fact-group:first-child { border-top: 0; }
}

/* Non-active projects identify their recorded state in the health-pill slot. */
.roadmap-bar.has-state-pill .roadmap-bar-state { display: block; box-sizing: border-box; width: max-content; max-width: none; white-space: nowrap; }
.roadmap-bar.has-state-pill .roadmap-bar-name { padding-right: calc(var(--state-pill-width) + 10px); }
.roadmap-bar.has-state-pill.is-state-too-small .roadmap-bar-state { display: none; }
.roadmap-bar.has-state-pill.is-state-too-small .roadmap-bar-name { padding-right: 0; }

/* Weekly overviews reuse the report typography and provenance treatment. */
.project-weekly-content { display: grid; gap: 22px; }
.project-weekly-content .detailed-summary-group { padding: 0; border: 0; }
.project-weekly-content .detailed-summary-group li { border: 0; }
.project-weekly-content .detailed-summary-health { margin: 0; }

.roadmap-lane-states { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0 0 0 8px; list-style: none; font-size: 11px; line-height: 1.6; color: rgb(var(--muted-foreground)); }
.roadmap-lane-state { white-space: nowrap; }
.roadmap-lane-state strong { font-weight: 600; color: rgb(var(--foreground)); }

.project-weekly-assessment-status { padding: 3px 8px; border: 1px solid rgb(var(--border)); border-radius: 999px; color: rgb(var(--muted-foreground)); white-space: nowrap; }

.roadmap-dependencies-toggle[aria-pressed="false"] { color: rgb(var(--muted-foreground)); }
.roadmap-dependencies-toggle[aria-pressed="true"] .roadmap-dependencies-slash { display: none; }

.roadmap-ownership-people { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.roadmap-people-section { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; border-top: 1px solid rgb(var(--border)); padding-top: 12px; margin-top: 4px; }
.roadmap-people-section > div { min-width: 0; }
.roadmap-ownership-person { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
.roadmap-ownership-avatar { position: relative; display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; overflow: hidden; background: rgb(var(--surface-2)); color: rgb(var(--muted-foreground)); font-size: 12px; font-weight: 600; }
.roadmap-ownership-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.roadmap-ownership-name { flex: 1; overflow-wrap: anywhere; }
.roadmap-ownership-role { font-size: 12px; color: rgb(var(--muted-foreground)); }

  .roadmap-refresh-notice { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid rgb(var(--border)); border-radius: 6px; background: rgb(var(--card)); color: rgb(var(--foreground)); font-size: 13px; }
  .roadmap-refresh-notice [data-roadmap-refresh-status] { flex: 1; overflow-wrap: anywhere; }
  .roadmap-refresh-notice.is-error { border-color: rgb(var(--danger)); }
  .roadmap-refresh-notice button[hidden] { display: none; }
  .roadmap-refresh-notice[hidden], .roadmap-refresh-spinner[hidden] { display: none; }
  .roadmap-refresh-dialog { width: min(420px, calc(100vw - 32px)); padding: 24px; }
  .roadmap-refresh-dialog h2 { margin: 0 0 16px; font-size: 20px; }
  .roadmap-refresh-dialog p { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: rgb(var(--muted-foreground)); }
  .roadmap-refresh-spinner { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; border: 2px solid rgb(var(--border)); border-top-color: rgb(var(--primary)); border-radius: 50%; animation: vertex-spin 0.8s linear infinite; }
  [data-roadmap-refresh][aria-busy="true"] svg { animation: vertex-spin 1s linear infinite; }
  [data-roadmap-refresh]:disabled { opacity: 0.6; cursor: wait; }
  @media (prefers-reduced-motion: reduce) { .roadmap-refresh-spinner, [data-roadmap-refresh][aria-busy="true"] svg { animation: none; } }

/* Commit review stays readable for a full batch, with native modal focus. */
.roadmap-pending[open] { position: fixed; inset: 0; margin: auto; width: min(860px, calc(100vw - 40px)); max-width: none; max-height: 85vh; padding: 0; color: rgb(var(--foreground)); overflow: auto; z-index: 100; }
.roadmap-pending::backdrop { background: rgb(0 0 0 / .45); }
.roadmap-pending[open] ol { max-height: 48vh; padding: 8px 0; }
.roadmap-pending[open] li { padding: 14px 20px; gap: 16px; }
.roadmap-pending[open] .roadmap-pending-head { padding: 18px 20px; font-size: 18px; }
.roadmap-pending[open] .roadmap-pending-head button { margin-left: auto; }
.roadmap-pending[open] .roadmap-pending-foot { position: sticky; bottom: 0; background: rgb(var(--card)); padding: 16px 20px; }
.roadmap-pending[open] .roadmap-pending-note { padding: 12px 20px; font-family: inherit; font-size: 13px; }
.roadmap-pending[open] .roadmap-pending-detail { overflow-wrap: anywhere; line-height: 1.6; }
.roadmap-capacity-field { grid-column: 1 / -1; }
.roadmap-capacity-estimate { display: grid; gap: 2px; }
.roadmap-capacity-estimate small { font-size: 11px; line-height: 1.35; }
@media (max-width: 900px) { .roadmap-fact-group:not(.roadmap-delivery-group) { padding: 12px 0; } }

.roadmap-connection-anchor { fill: currentColor; stroke: currentColor; stroke-width: 1.4; pointer-events: none; }

/* The domain rail can collapse without changing project rows or dates. */
.roadmap-corner { align-items: center; justify-content: space-between; gap: 4px; }
.roadmap-domain-toggle { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: rgb(var(--foreground)); cursor: pointer; }
.roadmap-domain-toggle:hover { background: rgb(var(--surface-2)); }
.roadmap-domain-toggle:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: 2px; }
.roadmap-domain-name { min-width: 0; overflow-wrap: anywhere; }
.roadmap-lane-title { flex-wrap: wrap; }
.roadmap-canvas.is-domain-collapsed { --roadmap-lane-w: 44px; }
.is-domain-collapsed .roadmap-corner { justify-content: center; padding: 6px; }
.is-domain-collapsed .roadmap-corner-label,
.is-domain-collapsed .roadmap-lane-head > :not(.roadmap-lane-title),
.is-domain-collapsed .roadmap-lane-title > :not(.roadmap-domain-name) { display: none; }
.is-domain-collapsed .roadmap-lane-head { padding: 8px 0; align-items: center; justify-content: center; }
.is-domain-collapsed .roadmap-lane-title { position: absolute; inset: 8px 0; display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; }
.is-domain-collapsed .roadmap-domain-name { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 100%; }

/* Give the way out of the expanded roadmap a visible label. */
[data-roadmap-expand] .roadmap-minimize-icon,
[data-roadmap-expand] .roadmap-minimize-label { display: none; }
[data-roadmap-expand][aria-pressed="true"] { width: auto; padding: 0 12px; gap: 7px; font-weight: 600; box-shadow: 0 0 0 2px rgb(var(--primary) / .2); }
[data-roadmap-expand][aria-pressed="true"] .roadmap-expand-icon { display: none; }
[data-roadmap-expand][aria-pressed="true"] .roadmap-minimize-icon,
[data-roadmap-expand][aria-pressed="true"] .roadmap-minimize-label { display: inline; }

/* Today crosses quarter captions as well as the month header. */
.roadmap-today-axis { z-index: 2; }

.roadmap-lane-title { display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: start; }
.roadmap-lane-title > .roadmap-lane-code { grid-column: 2; justify-self: start; }
/* Custom zoom is the final compact segment of the month presets. */
.roadmap-custom-zoom { display: grid; grid-template-columns: 42px 18px; grid-template-rows: 14px 14px; align-self: center; margin-left: 4px; padding-left: 6px; border-left: 1px solid rgb(var(--border)); color: rgb(var(--muted-foreground)); }
.roadmap-custom-zoom input { grid-row: 1 / 3; width: 42px; min-width: 0; padding: 2px 0; border: 0; border-radius: 4px; background: transparent; color: rgb(var(--foreground)); font: inherit; font-size: 12px; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.roadmap-custom-zoom input::-webkit-inner-spin-button, .roadmap-custom-zoom input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.roadmap-custom-zoom button { display: grid; place-items: center; width: 18px; height: 14px; min-height: 0; padding: 0; border: 0; border-radius: 3px; background: transparent; color: inherit; font: inherit; font-size: 12px; line-height: 1; cursor: pointer; }
.roadmap-custom-zoom button:hover { background: rgb(var(--surface-2)); color: rgb(var(--foreground)); }
.roadmap-custom-zoom button:disabled { opacity: .4; cursor: default; }
.roadmap-custom-zoom :focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: 1px; }

.roadmap-lane-resize { position: absolute; bottom: -4px; left: 0; right: 0; height: 8px; z-index: 5; cursor: ns-resize; touch-action: none; }
.roadmap-lane-resize:hover, .roadmap-lane-resize:focus-visible { background: rgb(var(--primary) / 0.25); outline: none; }

/* A compact domain is bounded by its bars, not its sidebar contents. */
.roadmap-lane-head { height: 100%; min-height: 0; overflow-y: auto; }
.roadmap-lane-head > * { flex-shrink: 0; }

/* Workstream is a project modifier. Lifecycle, health rings, and draft outlines
   retain their own signals; never derive collection scope from this styling. */
:root {
  --workstream-surface: 65 91 94;
  --workstream-pill-surface: 255 255 255;
  --workstream-pill-foreground: 55 105 104;
  --workstream-foreground: 255 255 255;
  --workstream-border: 151 190 190;
  --workstream-name: 161 198 196;
}
:root[data-theme="light"] {
  --workstream-surface: 214 233 231;
  --workstream-foreground: 43 81 81;
  --workstream-border: 83 125 124;
  --workstream-name: 55 105 104;
}
.project-type-tags { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; vertical-align: middle; }
.project-type-tag { background: rgb(var(--card)); display: inline-block; flex-shrink: 0; padding: 2px 5px; border: 1px solid rgb(var(--border)); border-radius: 4px; color: rgb(var(--muted-foreground)); font-size: 10px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.project-type-tag.is-workstream { background: rgb(var(--workstream-pill-surface)); color: rgb(var(--workstream-pill-foreground)); border-color: rgb(var(--workstream-border)); }
.collection-header .project-type-tags { margin-top: 8px; }
.health-project + .project-type-tags { display: flex; margin-top: 5px; }
.app-project-link.is-workstream {
  background: rgb(var(--workstream-name) / 0.1);
  box-shadow: inset 3px 0 0 rgb(var(--workstream-name));
}
.app-project-link.is-workstream:hover,
.app-project-link.is-workstream.is-active,
.app-project-node.is-active > .app-project-link.is-workstream {
  background: rgb(var(--workstream-name) / 0.2);
  box-shadow: inset 3px 0 0 rgb(var(--workstream-name));
}
.app-project-link.is-workstream .app-project-link-name { color: rgb(var(--workstream-name)); }
.roadmap-bar.is-workstream { background-color: rgb(var(--workstream-surface)); color: rgb(var(--workstream-foreground)); }
.roadmap-bar.is-workstream:not(.is-active) { border-color: rgb(var(--workstream-border)); }
.roadmap-bar.is-workstream .roadmap-bar-sub { color: rgb(var(--workstream-foreground)); }
.roadmap-bar.is-workstream .project-type-tag { color: rgb(var(--workstream-pill-foreground)); border-color: rgb(var(--workstream-border)); font-size: 9px; padding: 0 3px; }
.roadmap-bar-sub .project-type-tags { flex-shrink: 0; }
.roadmap-dialog-head .project-type-tags { flex-shrink: 0; }
.roadmap-type-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgb(var(--muted-foreground)); }

@media (max-width: 600px) {
  .roadmap-dialog-head { flex-wrap: wrap; }
  .roadmap-dialog-head h2 { flex-basis: 100%; }
}