/* Generated component layer - do not edit by hand. */
@layer cx-components {
    /* The information disclosure: a circled letter opening a bubble. */
    .cx-field__info { display: inline-block; position: relative; }
    .cx-field__info > summary {
        list-style: none;
        cursor: help;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .cx-field__info > summary::-webkit-details-marker { display: none; }
    .cx-field__info-mark {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.15rem;
        height: 1.15rem;
        border-radius: 50%;
        border: 1px solid var(--cx-color-border-default);
        color: var(--cx-color-text-secondary);
        background: var(--cx-color-surface-card);
        font-size: 0.75rem;
        font-weight: 700;
        font-style: italic;
        font-family: serif;
        line-height: 1;
    }
    .cx-field__info > summary:hover .cx-field__info-mark,
    .cx-field__info[open] > summary .cx-field__info-mark {
        border-color: var(--cx-color-action-primary);
        color: var(--cx-color-ink-link);
    }
    .cx-field__info-body {
        position: absolute;
        z-index: 30;
        top: 1.7rem;
        left: 0;
        width: min(28rem, 80vw);
        padding: var(--cx-space-control);
        border: 1px solid var(--cx-color-action-primary);
        border-radius: var(--cx-radius-surface);
        background: var(--cx-color-surface-card);
        color: var(--cx-color-text-primary);
        font-size: 0.85rem;
        font-weight: 400;
        font-style: normal;
        line-height: 1.5;
        text-align: left;
        white-space: normal;
    }
    /* Label and its ⓘ share one row: the mark belongs beside the name
       it explains, not on a line of its own under it. */
    .cx-field__heading {
        display: flex;
        align-items: center;
        gap: var(--cx-space-inline);
        margin-bottom: 0.25rem;
    }
    .cx-field__label { margin-bottom: 0; }
    .cx-field__required { color: var(--cx-color-ink-danger); }

    /* The language chooser: one summary, one dropping menu, no script. */
    .cx-language { position: relative; display: inline-block; }
    .cx-language > summary {
        list-style: none;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: var(--cx-space-inline);
    }
    .cx-language > summary::-webkit-details-marker { display: none; }
    .cx-language__menu {
        position: absolute;
        z-index: 30;
        right: 0;
        top: 2.3rem;
        min-width: 11rem;
        padding: 0.25rem;
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-surface);
        background: var(--cx-color-surface-card);
    }
    .cx-language__item {
        display: block;
        padding: var(--cx-space-inline) var(--cx-space-control);
        border-radius: var(--cx-radius-control);
        text-decoration: none;
    }
    .cx-language__item:hover { background: var(--cx-color-surface-page); }

    /* Shell chrome and the stage strip. */
    .cx-app-nav__inner {
        display: flex;
        align-items: center;
        gap: var(--cx-space-control);
        flex-wrap: wrap;
    }
    .cx-app-nav__brand { font-weight: 700; letter-spacing: 0.04em; }
    /* The switcher and the sign-out sit side by side on the bar's right;
       nowrap is load-bearing — a wrapped aside is how the sign-out ends
       up under the language chooser. */
    .cx-app-nav__aside {
        margin-left: auto;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: var(--cx-space-control);
    }
    .cx-app-nav__signout { margin: 0; display: inline-flex; }
    .cx-nav__list { flex-direction: row; gap: 0.25rem; }
    .cx-nav__link { display: inline-flex; align-items: center; }
    .cx-stages__nav {
        display: flex;
        flex-wrap: wrap;
        gap: var(--cx-space-inline);
    }
    .cx-form-actions,
    .cx-sources__actions {
        display: flex;
        align-items: center;
        gap: var(--cx-space-inline);
    }
    .cx-insight, .cx-prompt {
        white-space: pre-wrap;
        word-break: break-word;
        padding: var(--cx-space-control);
        border-radius: var(--cx-radius-surface);
        background: var(--cx-color-surface-page);
        color: var(--cx-color-text-primary);
    }

    /* The AI-BA conversation: bubbles, presence, and a CSS-only
       working indicator — the chat stays scriptless. */
    .cx-aiba {
        display: flex;
        flex-direction: column;
        gap: var(--cx-space-control);
    }
    .cx-aiba__presence { font-size: 0.85em; margin: 0; }
    .cx-aiba__presence--online { color: var(--cx-color-ink-success); }
    .cx-aiba__presence--degraded { color: var(--cx-color-ink-warning); }
    .cx-aiba__presence--offline { color: var(--cx-color-text-secondary); }
    /* The hold state: the factory is waiting on the human's word.
       Never colour-only — the text names the word to write. */
    .cx-side__awaiting {
        margin: 0.4rem 0;
        padding: 0.4rem 0.6rem;
        border-left: 3px solid var(--cx-color-status-warning);
        background: var(--cx-color-surface-page);
        border-radius: var(--cx-radius-control);
        font-weight: 600;
        font-size: 0.9em;
    }
    /* The machine's answers are written STRAIGHT ON THE CANVAS — no
       rounded white card, no border — and span the thread's full
       width, so their right edge lines up with the asking bubble's
       right edge. Only the asker keeps a bubble. */
    .cx-aiba__message {
        width: 100%;
        max-width: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    .cx-aiba__message--owner {
        width: auto;
        max-width: 46rem;
        padding: var(--cx-space-control);
        border-radius: var(--cx-radius-surface);
        align-self: flex-end;
        background: var(--cx-color-action-primary);
        border: 1px solid var(--cx-color-action-primary);
        color: var(--cx-color-text-on-action);
    }
    .cx-aiba__message--owner .cx-aiba__meta {
        color: var(--cx-color-text-on-action);
        opacity: 0.85;
    }
    /* Answer bubbles carry no coloured side stripe — the owner reads
       kind from the meta line, and the bubble stays a clean card. */

    /* Record fields: rendered Markdown with an "edit as text" toggle.
       While the editor is open the rendered view steps aside. */
    .cx-mdfield__toggle {
        cursor: pointer;
        color: var(--cx-color-text-secondary);
        font-size: 0.85em;
        list-style: none;
        margin-bottom: 0.4rem;
    }
    .cx-mdfield__toggle::-webkit-details-marker { display: none; }
    .cx-mdfield[open] .cx-mdfield__toggle,
    .cx-mdfield__toggle:hover { color: var(--cx-color-ink-link); }
    .cx-mdfield[open] + .cx-mdfield__rendered { display: none; }
    .cx-mdfield__input {
        font-family: ui-monospace, monospace;
        font-size: 0.9em;
    }
    .cx-mdfield__rendered h2,
    .cx-mdfield__rendered h3,
    .cx-mdfield__rendered h4 {
        margin: 0.8em 0 0.35em;
    }
    .cx-mdfield__rendered h2:first-child { margin-top: 0; }
    .cx-mdfield__rendered ul,
    .cx-mdfield__rendered ol { margin: 0.3em 0 0.8em 1.2em; }
    .cx-mdfield__rendered pre {
        padding: var(--cx-space-control);
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-control);
        background: var(--cx-color-surface-page);
        overflow-x: auto;
    }
    .cx-aiba__meta {
        font-size: 0.8em;
        color: var(--cx-color-text-secondary);
        margin-bottom: 0.3rem;
    }
    /* What the screen is NOT showing, drawn as a seam rather than a
       warning: the turns above still exist and the factory still
       remembers them faded, so this is a statement of fact, not an
       error. It reads as the top edge of the visible thread. */
    .cx-aiba__earlier {
        margin: 0 0 1rem;
        padding: 0.45rem 0.75rem;
        font-size: 0.8em;
        color: var(--cx-color-text-secondary);
        border-top: 1px dashed var(--cx-color-border-default);
        border-bottom: 1px dashed var(--cx-color-border-default);
        text-align: center;
    }
    /* The memory dials, side by side, so a turn count and the size it
       costs are read together. Digits line up because they are compared
       down the column, not read as prose. */
    .cx-dials {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        align-items: flex-end;
    }
    .cx-dials__field {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        min-width: 8rem;
    }
    .cx-dials__label {
        font-size: 0.8em;
        color: var(--cx-color-text-secondary);
    }
    .cx-dials__field input {
        font-variant-numeric: tabular-nums;
    }
    .cx-dials__note {
        flex-basis: 100%;
        font-size: 0.8em;
        color: var(--cx-color-text-secondary);
    }
    /* Reusable AI-chat content surface. The renderer emits semantic HTML;
       this layer gives every Sirius, craftsman and project chat the same
       calm reading rhythm without making the text look like marketing copy. */
    .ceox-chat-content {
        max-width: 78rem;
        color: var(--cx-color-text-primary);
        line-height: 1.68;
        overflow-wrap: anywhere;
    }
    .ceox-chat-content > :first-child { margin-top: 0; }
    .ceox-chat-content > :last-child { margin-bottom: 0; }
    .ceox-chat-content h1,
    .ceox-chat-content h2,
    .ceox-chat-content h3,
    .ceox-chat-content h4,
    .ceox-chat-content h5,
    .ceox-chat-content h6 {
        margin: 1.35em 0 0.45em;
        color: var(--cx-color-text-primary);
        letter-spacing: -0.015em;
    }
    .ceox-chat-content h1 { font-size: 1.45rem; }
    .ceox-chat-content h2 { font-size: 1.25rem; }
    .ceox-chat-content h3 { font-size: 1.08rem; }
    .ceox-chat-content p { margin: 0.7em 0; }
    .ceox-chat-content ul,
    .ceox-chat-content ol {
        margin: 0.65em 0 0.85em;
        padding-left: 1.55rem;
    }
    .ceox-chat-content li { padding-left: 0.25rem; margin: 0.22em 0; }
    .ceox-chat-content li::marker { color: var(--cx-color-ink-link); }
    .ceox-chat-content a {
        color: var(--cx-color-ink-link);
        text-decoration: underline;
        text-decoration-thickness: 0.08em;
        text-underline-offset: 0.16em;
    }
    .ceox-chat-content blockquote {
        margin: 0.9em 0;
        padding: 0.15rem 1rem;
        border-left: 3px solid var(--cx-color-action-primary);
        color: var(--cx-color-text-secondary);
        background: color-mix(in srgb, var(--cx-color-surface-page) 72%, transparent);
    }
    .ceox-chat-content blockquote > :first-child { margin-top: 0.4em; }
    .ceox-chat-content blockquote > :last-child { margin-bottom: 0.4em; }
    .ceox-chat-content .ceox-chat__image {
        display: block;
        max-width: min(100%, 48rem);
        max-height: 34rem;
        object-fit: contain;
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-control);
        cursor: zoom-in;
    }
    .ceox-chat-content :not(pre) > code,
    .ceox-chat-content code:not(.language-mermaid) {
        padding: 0.14em 0.38em;
        border: 1px solid var(--cx-color-border-default);
        border-radius: 0.35rem;
        background: var(--cx-color-surface-page);
        color: var(--cx-color-text-primary);
        font-size: 0.9em;
    }
    .ceox-chat-content strong { font-weight: 700; }
    /* The reusable Markdown layer declares its own reading colours after the
       owner bubble. Reassert the on-action palette here so every nested
       Markdown element remains legible on the blue owner surface. */
    .cx-aiba__message--owner .ceox-chat-content,
    .cx-aiba__message--owner .ceox-chat-content h1,
    .cx-aiba__message--owner .ceox-chat-content h2,
    .cx-aiba__message--owner .ceox-chat-content h3,
    .cx-aiba__message--owner .ceox-chat-content h4,
    .cx-aiba__message--owner .ceox-chat-content h5,
    .cx-aiba__message--owner .ceox-chat-content h6,
    .cx-aiba__message--owner .ceox-chat-content a,
    .cx-aiba__message--owner .ceox-chat-content blockquote,
    .cx-aiba__message--owner .ceox-chat-content :not(pre) > code {
        color: var(--cx-color-text-on-action);
    }
    .cx-aiba__message--owner .ceox-chat-content li::marker {
        color: var(--cx-color-text-on-action);
    }
    .cx-aiba__message--owner .ceox-chat-content blockquote,
    .cx-aiba__message--owner .ceox-chat-content :not(pre) > code {
        border-color: color-mix(
            in srgb, var(--cx-color-text-on-action) 48%, transparent
        );
        background: color-mix(
            in srgb, var(--cx-color-text-on-action) 12%, transparent
        );
    }
    .ceox-chat-content hr.ceox-chat__rule {
        margin: 1.3rem 0;
        border: 0;
        border-top: 1px solid var(--cx-color-border-default);
    }
    .ceox-chat__task { margin: 0 0.45rem 0 0; accent-color: var(--cx-color-action-primary); }
    .ceox-chat__table-wrap { overflow-x: auto; margin: 0.9em 0; }
    .ceox-chat__table {
        width: 100%;
        min-width: 28rem;
        border-collapse: separate;
        border-spacing: 0;
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-control);
        overflow: hidden;
    }
    .ceox-chat__table th,
    .ceox-chat__table td {
        padding: 0.55rem 0.72rem;
        border-bottom: 1px solid var(--cx-color-border-default);
        text-align: left;
        vertical-align: top;
    }
    .ceox-chat__table th {
        background: var(--cx-color-surface-page);
        font-size: 0.78em;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }
    .ceox-chat__table tr:last-child td { border-bottom: 0; }
    .ceox-chat__code {
        position: relative;
        margin: 0.9rem 0;
        padding: 2.35rem 1rem 1rem;
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-control);
        background: var(--cx-color-text-primary);
        color: var(--cx-color-surface-card);
        overflow: auto;
        white-space: pre;
        line-height: 1.55;
        tab-size: 4;
    }
    .ceox-chat__code::before {
        content: attr(data-language);
        position: absolute;
        top: 0.65rem;
        left: 0.85rem;
        color: var(--cx-color-text-secondary);
        font: 600 0.68rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .ceox-chat__code code {
        padding: 0;
        border: 0;
        color: inherit;
        background: transparent;
        font: 0.88rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
    }
    .ceox-chat__tool {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.22rem 0.5rem;
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-control);
        background: var(--cx-color-surface-card);
        color: var(--cx-color-text-secondary);
        cursor: pointer;
        font-size: 0.76rem;
    }
    .ceox-chat__tool:hover,
    .ceox-chat__tool:focus-visible { color: var(--cx-color-ink-link); }
    .ceox-chat__code-copy {
        position: absolute;
        top: 0.42rem;
        right: 0.55rem;
        border-color: var(--cx-color-border-default);
        background: var(--cx-color-surface-page);
        color: var(--cx-color-text-secondary);
    }
    .ceox-chat__diagram-card {
        margin: 1rem 0;
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-control);
        overflow: hidden;
    }
    .ceox-chat__diagram-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.55rem 0.7rem;
        background: var(--cx-color-surface-page);
        color: var(--cx-color-text-secondary);
        font-size: 0.78rem;
    }
    .ceox-chat__diagram-title { font-weight: 650; }
    .ceox-chat__diagram-card .cx-aiba__diagram { margin: 0; border: 0; border-radius: 0; }
    .ceox-chat__media { margin-top: var(--cx-space-inline); max-width: 48rem; }
    .ceox-chat__media-button {
        display: block;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: zoom-in;
    }
    .ceox-chat__media img,
    .ceox-chat__media video {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: 34rem;
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-control);
        object-fit: contain;
    }
    .ceox-chat__media video { width: 100%; background: var(--cx-color-text-primary); }
    .ceox-chat__media audio { width: min(100%, 34rem); }
    .ceox-chat__media-name {
        display: block;
        margin-top: 0.35rem;
        color: var(--cx-color-text-secondary);
        font-size: 0.76rem;
    }
    .ceox-chat__lightbox {
        position: fixed;
        inset: 0;
        z-index: 120;
        display: grid;
        place-items: center;
        padding: 3rem;
        background: color-mix(in srgb, var(--cx-color-text-primary) 88%, transparent);
        cursor: zoom-out;
    }
    .ceox-chat__lightbox-image {
        max-width: min(94vw, 110rem);
        max-height: 90vh;
        border-radius: var(--cx-radius-control);
        box-shadow: 0 1.5rem 4rem color-mix(in srgb, var(--cx-color-text-primary) 32%, transparent);
        object-fit: contain;
        cursor: default;
    }
    .ceox-chat__lightbox-close {
        position: fixed;
        top: 1rem;
        right: 1rem;
        width: 2.3rem;
        height: 2.3rem;
        border: 1px solid color-mix(in srgb, var(--cx-color-surface-card) 35%, transparent);
        border-radius: 50%;
        background: color-mix(in srgb, var(--cx-color-text-primary) 72%, transparent);
        color: var(--cx-color-surface-card);
        cursor: pointer;
        font-size: 1.55rem;
        line-height: 1;
    }
    .ceox-chat__lightbox-close:hover { background: color-mix(in srgb, var(--cx-color-text-primary) 94%, transparent); }
    .ceox-chat__lightbox-open { overflow: hidden; }
    @media (max-width: 48rem) {
        .ceox-chat-content h1 { font-size: 1.28rem; }
        .ceox-chat__code { padding-left: 0.7rem; padding-right: 0.7rem; }
        .ceox-chat__lightbox { padding: 1rem; }
    }
    .cx-aiba__body { word-break: break-word; }
    /* Evidence-safe live work log. In Goal mode every orchestration phase is
       one response-shaped disclosure: completed phases close, while the
       newest phase stays open and receives short, timestamped work notes. */
    .cx-worklog {
        display: grid;
        gap: 0.55rem;
        width: 100%;
    }
    .cx-worklog__phase {
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-surface);
        background: var(--cx-color-surface-card);
        overflow: clip;
    }
    .cx-worklog__phase--current {
        border-color: color-mix(
            in srgb, var(--cx-color-action-primary) 42%,
            var(--cx-color-border-default)
        );
        box-shadow: 0 8px 24px color-mix(
            in srgb, var(--cx-color-action-primary) 8%, transparent
        );
    }
    .cx-worklog__summary {
        min-height: 3.35rem;
        padding: 0.65rem 0.8rem;
        cursor: pointer;
        list-style: none;
    }
    .cx-worklog__summary::-webkit-details-marker { display: none; }
    .cx-worklog__summary-grid {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.65rem;
    }
    .cx-worklog__state {
        width: 0.62rem;
        height: 0.62rem;
        border-radius: 50%;
        background: var(--cx-color-status-success);
        box-shadow: 0 0 0 4px color-mix(
            in srgb, var(--cx-color-status-success) 12%, transparent
        );
    }
    .cx-worklog__phase--current .cx-worklog__state {
        background: var(--cx-color-action-primary);
        box-shadow: 0 0 0 4px color-mix(
            in srgb, var(--cx-color-action-primary) 12%, transparent
        );
        animation: cx-aiba-pulse 1.4s ease-in-out infinite;
    }
    .cx-worklog__heading {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 0.08rem;
    }
    .cx-worklog__heading strong {
        overflow: hidden;
        color: var(--cx-color-text-primary);
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .cx-worklog__eyebrow {
        color: var(--cx-color-text-secondary);
        font-size: 0.72rem;
        font-weight: 650;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }
    .cx-worklog__badge {
        border: 1px solid var(--cx-color-border-default);
        border-radius: 999px;
        padding: 0.16rem 0.48rem;
        color: var(--cx-color-text-secondary);
        background: var(--cx-color-surface-page);
        font-size: 0.74rem;
        white-space: nowrap;
    }
    .cx-worklog__phase--current .cx-worklog__badge {
        border-color: color-mix(
            in srgb, var(--cx-color-action-primary) 38%,
            var(--cx-color-border-default)
        );
        color: var(--cx-color-ink-link);
        background: color-mix(
            in srgb, var(--cx-color-action-primary) 7%,
            var(--cx-color-surface-card)
        );
    }
    .cx-worklog__body {
        padding: 0 0.85rem 0.85rem 2.1rem;
    }
    .cx-worklog__progress {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem 0.75rem;
        margin: 0 0 0.75rem;
        color: var(--cx-color-text-secondary);
        font-size: 0.8rem;
        font-variant-numeric: tabular-nums;
    }
    .cx-worklog__progress strong { color: var(--cx-color-text-primary); }
    .cx-worklog__failed { color: var(--cx-color-ink-danger); }
    .cx-worklog__events {
        position: relative;
        display: grid;
        gap: 0.8rem;
        padding-left: 1rem;
    }
    .cx-worklog__events::before {
        position: absolute;
        top: 0.35rem;
        bottom: 0.35rem;
        left: 0.18rem;
        width: 1px;
        content: "";
        background: color-mix(
            in srgb, var(--cx-color-action-primary) 22%,
            var(--cx-color-border-default)
        );
    }
    .cx-worklog__event { position: relative; min-width: 0; }
    .cx-worklog__event::before {
        position: absolute;
        top: 0.32rem;
        left: -1.05rem;
        width: 0.4rem;
        height: 0.4rem;
        border: 2px solid var(--cx-color-surface-card);
        border-radius: 50%;
        content: "";
        background: var(--cx-color-action-primary);
    }
    .cx-worklog__event-meta {
        margin-bottom: 0.16rem;
        color: var(--cx-color-text-secondary);
        font-size: 0.72rem;
        font-variant-numeric: tabular-nums;
    }
    .cx-worklog__event-body { color: var(--cx-color-text-primary); }
    .cx-worklog__event-body > :first-child { margin-top: 0; }
    .cx-worklog__event-body > :last-child { margin-bottom: 0; }
    .cx-worklog__next {
        margin: 0.85rem 0 0;
        padding-top: 0.65rem;
        border-top: 1px solid var(--cx-color-border-default);
        color: var(--cx-color-text-secondary);
        font-size: 0.82rem;
    }
    @media (max-width: 40rem) {
        .cx-worklog__summary-grid { grid-template-columns: auto minmax(0, 1fr); }
        .cx-worklog__badge { grid-column: 2; justify-self: start; }
        .cx-worklog__body { padding-left: 1rem; }
    }
    /* The run's agent graph, drawn in-house: layered SVG, colours
       from the theme, no diagram vendor. */
    .cx-dag__frame {
        position: relative;
        margin-top: var(--cx-space-inline);
        overflow-x: auto;
    }
    /* Every embedded artefact carries its provenance: what it is, who
       made it for whom, when — the magnifier sits at the caption's
       right, never on the drawing itself. */
    .cx-dag__card { margin-top: var(--cx-space-inline); }
    .cx-dag__head {
        display: flex;
        align-items: flex-start;
        gap: var(--cx-space-inline);
        padding: 0.35rem 0.5rem;
        border: 1px solid var(--cx-color-border-default);
        border-bottom: 0;
        border-radius: var(--cx-radius-control) var(--cx-radius-control) 0 0;
        background: var(--cx-color-surface-page);
        font-size: 0.78em;
        color: var(--cx-color-text-secondary);
        line-height: 1.45;
    }
    .cx-dag__caption { flex: 1 1 auto; min-width: 0; }
    .cx-dag__card .cx-dag__frame {
        margin-top: 0;
        border: 1px solid var(--cx-color-border-default);
        border-radius: 0 0 var(--cx-radius-control) var(--cx-radius-control);
    }
    .cx-dag__card .cx-dag__zoom {
        position: static;
        flex: 0 0 auto;
    }
    .cx-dag__overlay-actions {
        display: inline-flex;
        gap: 0.4rem;
        flex: 0 0 auto;
    }
    .cx-dag__save,
    .cx-dag__close {
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-control);
        background: var(--cx-color-surface-card);
        color: var(--cx-color-text-primary);
        padding: 0.15rem 0.6rem;
        cursor: pointer;
        font-size: 0.85em;
    }
    .cx-dag__close { font-weight: 700; }
    .cx-dag__save:hover,
    .cx-dag__close:hover { color: var(--cx-color-ink-link); }
    .cx-dag__sheet {
        background: var(--cx-color-surface-card);
        border-radius: var(--cx-radius-surface);
        padding: var(--cx-space-control);
        max-width: 92rem;
        width: 100%;
        max-height: 92vh;
        overflow: auto;
        cursor: default;
    }
    /* Saving = printing the overlay alone: everything else steps
       aside, and the browser's PDF target does the writing. */
    @media print {
        body:has(.cx-dag__overlay) > :not(.cx-dag__overlay) {
            display: none !important;
        }
        .cx-dag__overlay {
            position: static;
            padding: 0;
            background: none;
        }
        .cx-dag__overlay-actions { display: none; }
        .cx-dag__sheet { max-height: none; overflow: visible; }
    }
    .cx-dag__zoom {
        position: absolute;
        top: 0.3rem;
        right: 0.3rem;
        z-index: 5;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.8rem;
        height: 1.8rem;
        border: 1px solid var(--cx-color-border-default);
        border-radius: 50%;
        background: var(--cx-color-surface-card);
        color: var(--cx-color-text-secondary);
        cursor: pointer;
        padding: 0;
    }
    .cx-dag__zoom:hover { color: var(--cx-color-ink-link); }
    .cx-dag__overlay {
        position: fixed;
        inset: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3rem;
        background: var(--cx-color-surface-card);
        cursor: zoom-out;
        overflow: auto;
    }
    .cx-dag__overlay .cx-dag {
        width: 100%;
        max-width: 90rem;
        height: auto;
    }
    .cx-dag { display: block; max-width: 100%; height: auto; }
    .cx-dag__node rect {
        fill: var(--cx-color-surface-page);
        stroke: var(--cx-color-border-default);
        stroke-width: 1.5;
    }
    .cx-dag__node--finished rect { stroke: var(--cx-color-status-success); }
    .cx-dag__node--failed rect { stroke: var(--cx-color-status-danger); }
    .cx-dag__node--started rect { stroke: var(--cx-color-action-primary); }
    .cx-dag__node text {
        fill: var(--cx-color-text-primary);
        font-size: 11px;
    }
    .cx-dag__node .cx-dag__meta {
        fill: var(--cx-color-text-secondary);
        font-size: 9px;
    }
    .cx-dag__edge {
        fill: none;
        stroke: var(--cx-color-border-default);
        stroke-width: 1.5;
    }

    /* Smith's flowchart source: readable, scrollable, copy-pastable. */
    .cx-aiba__diagram {
        margin-top: var(--cx-space-inline);
        padding: var(--cx-space-inline);
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-control);
        background: var(--cx-color-surface-page);
        font-size: 0.8em;
        overflow-x: auto;
        white-space: pre;
    }
    .cx-aiba__attachment img {
        max-width: 100%;
        border-radius: var(--cx-radius-control);
        margin-top: var(--cx-space-inline);
    }
    .cx-aiba__working {
        display: flex;
        gap: 0.6rem;
        align-items: center;
        color: var(--cx-color-text-secondary);
        /* Hugging the composer: as close as it can sit without
           merging — the row's own min-height keeps the orbiters
           whole instead of a clearance margin. */
        margin: 0 0 4px;
        min-height: 2.25rem;
    }
    /* The factory line wears NO frame: it is a whisper above the
       composer, not a card. */
    .cx-aiba__now.cx-factoryline {
        border: 0;
        background: transparent;
        padding-left: 0;
        padding-right: 0;
    }
    /* What the factory is thinking RIGHT NOW: one faint bubble to the
       end of the row, ellipsised; a click opens the full thought. */
    .cx-aiba__now {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
        font: inherit;
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-surface);
        background: transparent;
        color: var(--cx-color-text-secondary);
        padding: 0.15rem 0.6rem;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .cx-aiba__now--open {
        white-space: pre-wrap;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
    }
    /* SIRIUS: the factory's beating heart — a pulsing core inside two
       breathing fields, five orbiters whose scale() rides both size
       and distance. Every colour derives from the action token via
       color-mix, so the theme stays the owner of the palette. */
    .cx-sirius {
        position: relative;
        width: 2rem;
        height: 2rem;
        flex: 0 0 2rem;
    }
    .cx-sirius__core {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 7px;
        height: 7px;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background: var(--cx-color-action-primary);
        box-shadow:
            0 0 0 3px color-mix(in srgb,
                var(--cx-color-action-primary) 10%, transparent),
            0 0 8px color-mix(in srgb,
                var(--cx-color-action-primary) 38%, transparent);
        animation: cx-sirius-core 1.65s ease-in-out infinite;
        z-index: 6;
    }
    @keyframes cx-sirius-core {
        0%, 100% { transform: translate(-50%, -50%) scale(1); }
        50% {
            transform: translate(-50%, -50%) scale(1.28);
            box-shadow:
                0 0 0 5px color-mix(in srgb,
                    var(--cx-color-action-primary) 6%, transparent),
                0 0 11px color-mix(in srgb,
                    var(--cx-color-action-primary) 45%, transparent);
        }
    }
    .cx-sirius__field {
        position: absolute;
        left: 50%;
        top: 50%;
        border-radius: 50%;
        border: 1px solid color-mix(in srgb,
            var(--cx-color-action-primary) 22%, transparent);
        pointer-events: none;
    }
    .cx-sirius__field--a {
        width: 18px;
        height: 18px;
        margin: -9px 0 0 -9px;
        animation: cx-sirius-field-a 2.2s ease-in-out infinite;
    }
    .cx-sirius__field--b {
        width: 28px;
        height: 28px;
        margin: -14px 0 0 -14px;
        opacity: 0.3;
        animation: cx-sirius-field-b 2.8s ease-in-out infinite reverse;
    }
    @keyframes cx-sirius-field-a {
        0%, 100% { transform: scale(0.82); opacity: 0.24; }
        50% { transform: scale(1.16); opacity: 0.7; }
    }
    @keyframes cx-sirius-field-b {
        0%, 100% { transform: scale(0.9); opacity: 0.12; }
        50% { transform: scale(1.08); opacity: 0.4; }
    }
    .cx-sirius__orbiter {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 0;
        height: 0;
        transform-origin: 0 0;
    }
    .cx-sirius__orbiter i {
        position: absolute;
        left: var(--radius);
        top: 0;
        width: var(--size);
        height: var(--size);
        margin: calc(var(--size) / -2);
        border-radius: 50%;
        background: var(--cx-color-action-primary);
        box-shadow: 0 0 4px color-mix(in srgb,
            var(--cx-color-action-primary) 48%, transparent);
        animation: cx-sirius-dot var(--pulse) ease-in-out infinite;
    }
    .cx-sirius__orbiter--1 { --radius: 13px; --size: 3px; --pulse: 1s;
        animation: cx-sirius-o1 1.7s linear infinite; }
    .cx-sirius__orbiter--2 { --radius: 11px; --size: 2.5px; --pulse: 1.15s;
        animation: cx-sirius-o2 2s linear infinite reverse; }
    .cx-sirius__orbiter--3 { --radius: 14px; --size: 2px; --pulse: 0.95s;
        animation: cx-sirius-o3 2.35s linear infinite; }
    .cx-sirius__orbiter--4 { --radius: 10px; --size: 2.5px; --pulse: 1.25s;
        animation: cx-sirius-o4 1.85s linear infinite reverse; }
    .cx-sirius__orbiter--5 { --radius: 12px; --size: 2px; --pulse: 1.05s;
        animation: cx-sirius-o5 2.65s linear infinite; }
    @keyframes cx-sirius-dot {
        0%, 100% { transform: scale(0.5); opacity: 0.35; }
        45% { transform: scale(1.45); opacity: 1; }
        72% { transform: scale(0.8); opacity: 0.62; }
    }
    @keyframes cx-sirius-o1 {
        0% { transform: rotate(0deg) scale(0.75); }
        22% { transform: rotate(82deg) scale(1.12); }
        50% { transform: rotate(180deg) scale(0.5); }
        74% { transform: rotate(270deg) scale(1.2); }
        100% { transform: rotate(360deg) scale(0.75); }
    }
    @keyframes cx-sirius-o2 {
        0% { transform: rotate(40deg) scale(1.15); }
        28% { transform: rotate(145deg) scale(0.55); }
        55% { transform: rotate(245deg) scale(1.24); }
        80% { transform: rotate(330deg) scale(0.66); }
        100% { transform: rotate(400deg) scale(1.15); }
    }
    @keyframes cx-sirius-o3 {
        0% { transform: rotate(120deg) scale(0.58); }
        24% { transform: rotate(205deg) scale(1.2); }
        50% { transform: rotate(295deg) scale(0.68); }
        76% { transform: rotate(385deg) scale(1.08); }
        100% { transform: rotate(480deg) scale(0.58); }
    }
    @keyframes cx-sirius-o4 {
        0% { transform: rotate(210deg) scale(1.18); }
        30% { transform: rotate(310deg) scale(0.48); }
        58% { transform: rotate(420deg) scale(1.26); }
        82% { transform: rotate(500deg) scale(0.64); }
        100% { transform: rotate(570deg) scale(1.18); }
    }
    @keyframes cx-sirius-o5 {
        0% { transform: rotate(280deg) scale(0.62); }
        25% { transform: rotate(370deg) scale(1.18); }
        52% { transform: rotate(465deg) scale(0.52); }
        78% { transform: rotate(555deg) scale(1.12); }
        100% { transform: rotate(640deg) scale(0.62); }
    }
    /* The character spotlight: one point of light glides along the
       line at sub-pixel precision, driven frame-by-frame from script
       — no CSS animation restarts, so nothing can stutter. Each
       letter's colour, lift and glow are a pure function of its
       distance to the light. Font family and size stay untouched. */
    .cx-factoryline .cx-char {
        display: inline-block;
        transform-origin: center 78%;
        backface-visibility: hidden;
    }
    @media (prefers-reduced-motion: reduce) {
        .cx-sirius__core,
        .cx-sirius__field,
        .cx-sirius__orbiter,
        .cx-sirius__orbiter i { animation: none !important; }
    }

    /* The legacy three-dot orbit, kept for older fragments. */
    .cx-orbit {
        position: relative;
        width: 1.7rem;
        height: 1.7rem;
        flex: 0 0 auto;
        animation: cx-orbit-spin 1.5s linear infinite;
    }
    .cx-orbit i {
        position: absolute;
        width: 0.42rem;
        height: 0.42rem;
        border-radius: 50%;
        background: var(--cx-color-action-primary);
        animation: cx-orbit-pop 1.5s ease-in-out infinite;
    }
    .cx-orbit i:nth-child(1) { top: 0; left: 50%; margin-left: -0.21rem; }
    .cx-orbit i:nth-child(2) {
        bottom: 0.1rem; left: 0.05rem; animation-delay: 0.5s;
    }
    .cx-orbit i:nth-child(3) {
        bottom: 0.1rem; right: 0.05rem; animation-delay: 1s;
    }
    .cx-orbit b {
        position: absolute;
        inset: 0.45rem;
        border: 2px solid var(--cx-color-action-primary);
        border-radius: 50%;
        opacity: 0;
        animation: cx-orbit-burst 1.5s ease-out infinite;
    }
    @media (prefers-reduced-motion: reduce) {
        .cx-orbit, .cx-orbit i, .cx-orbit b { animation: none; }
        .cx-orbit b { opacity: 0.5; }
    }

    /* The AI-BA workbench: a Claude-Code-like split. The thread scrolls
       inside its own column, the composer stays pinned at the bottom,
       and the thought panel on the right opens and closes like an IDE
       side panel. Polling and toggling are the page's few lines of
       JavaScript; without them the page still renders whole. */
    .cx-chatapp {
        display: flex;
        gap: var(--cx-space-control);
        align-items: stretch;
        /* The CSS height is only the no-script fallback: the page's
           own script fits the chat to the real space below the header,
           which varies with the readiness blockers. */
        height: calc(100vh - 22rem);
        min-height: 24rem;
    }
    /* Nothing painted BEHIND the chat: the page shows through, and
       the inner surfaces (thread, composer) are the light cards. */
    .cx-chatapp__main {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: var(--cx-space-inline);
        background: transparent;
        overflow: hidden;
    }
    /* Nothing behind the bubbles either: they float on the page,
       each bubble its own light card. */
    .cx-chatapp__scroll {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 0 var(--cx-space-inline);
        background: transparent;
    }
    /* THE TASK RAIL, on the left, where every chat tool the owner uses
       already puts it. Narrower than the work panel opposite: it is a
       list of names, and a name column wider than its longest name only
       takes space from the conversation. */
    .cx-rail {
        flex: 0 0 15rem;
        display: flex;
        flex-direction: column;
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-surface);
        background: var(--cx-color-surface-card);
        overflow: hidden;
    }
    .cx-rail__head {
        padding: 0.5rem 0.6rem;
        border-bottom: 1px solid var(--cx-color-border-default);
    }
    /* ONE primary action, labelled with what it does. The first version
       put a bare "+" under a heading that said TASK GROUPS while the
       button created a THREAD - a label and a control that disagreed,
       which is worse than a missing feature because it cannot be
       learned. */
    .cx-rail__primary {
        width: 100%;
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-control);
        background: transparent;
        color: var(--cx-color-text-primary);
        cursor: pointer;
        padding: 0.4rem 0.5rem;
        font: inherit;
        text-align: left;
    }
    .cx-rail__primary:hover {
        background: var(--cx-color-surface-page);
    }
    /* A row's own menu. <details> so it opens without script and closes
       on a second click, the same disclosure the rest of this sheet
       uses. */
    .cx-menu { min-width: 0; }
    .cx-menu > summary {
        cursor: pointer;
        list-style: none;
        padding: 0 0.3rem;
        color: var(--cx-color-text-secondary);
        border-radius: var(--cx-radius-control);
    }
    .cx-menu > summary::-webkit-details-marker { display: none; }
    .cx-menu > summary:hover { color: var(--cx-color-text-primary); }
    /* IN FLOW, not floating. An absolutely positioned menu inside a
       scrolling list is clipped by that list the moment the row is near
       its bottom edge — and a rail with twenty threads is mostly bottom
       edge. Expanding in place pushes the rows below down, grows the
       scroll height honestly, and cannot be cut off; it is also the
       disclosure pattern the rest of this sheet already uses. */
    .cx-menu__items {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        margin: 0.25rem 0 0.4rem 0.5rem;
        padding: 0.35rem;
        border-left: 2px solid var(--cx-color-border-default);
        background: var(--cx-color-surface-page);
        border-radius: var(--cx-radius-control);
    }
    .cx-menu__items form {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    .cx-menu__items button {
        border: 0;
        background: transparent;
        color: var(--cx-color-text-primary);
        cursor: pointer;
        font: inherit;
        text-align: left;
        padding: 0.2rem 0.25rem;
        border-radius: var(--cx-radius-control);
    }
    .cx-menu__items button:hover {
        background: var(--cx-color-surface-page);
    }
    .cx-menu__danger { color: var(--cx-color-ink-danger); }
    .cx-rail__body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 0.4rem 0.35rem;
    }
    .cx-rail__group { margin-bottom: 0.7rem; }
    .cx-rail__groupname {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.35rem;
        padding: 0.2rem 0.4rem;
        font-size: var(--cx-text-size-meta);
        color: var(--cx-color-text-secondary);
    }
    .cx-rail__group--active .cx-rail__groupname {
        color: var(--cx-color-text-primary);
    }
    .cx-rail__edit summary {
        cursor: pointer;
        list-style: none;
        padding: 0 0.25rem;
    }
    .cx-rail__edit summary::-webkit-details-marker { display: none; }
    .cx-rail__edit form {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.35rem 0;
    }
    .cx-rail__threads {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    /* The row is the link PLUS its menu, so the menu is not part of
       what a click on the row navigates to. */
    .cx-rail__thread {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0.15rem;
    }
    .cx-rail__thread > .cx-menu { display: contents; }
    .cx-rail__thread .cx-menu__items { grid-column: 1 / -1; }
    .cx-rail__groupname > .cx-menu { position: static; }
    .cx-rail__groupname { flex-wrap: wrap; }
    .cx-rail__groupname .cx-menu__items { flex-basis: 100%; }
    .cx-rail__thread a {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.4rem;
        padding: 0.3rem 0.45rem;
        border-radius: var(--cx-radius-control);
        color: var(--cx-color-text-secondary);
        text-decoration: none;
    }
    .cx-rail__thread a:hover {
        background: var(--cx-color-surface-page);
        color: var(--cx-color-text-primary);
    }
    .cx-rail__thread--active a {
        background: var(--cx-color-surface-page);
        color: var(--cx-color-text-primary);
        font-weight: 600;
    }
    /* The name may be long; the count never wraps under it. */
    .cx-rail__threadname {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .cx-rail__pin {
        flex: 0 0 auto;
        color: var(--cx-color-ink-link);
        font-size: 0.8em;
    }
    .cx-rail__count {
        flex: 0 0 auto;
        font-size: var(--cx-text-size-meta);
        font-variant-numeric: tabular-nums;
        color: var(--cx-color-text-secondary);
    }
    .cx-rail__empty {
        padding: 0.25rem 0.45rem;
        font-size: var(--cx-text-size-meta);
        color: var(--cx-color-text-secondary);
    }
    /* Stacked, not side by side: measured in a 1440px browser, a text
       field and a button on one row inside a 15rem rail clipped the
       button off the edge. A rail is a narrow column and its controls
       have to accept that. */
    .cx-rail__foot {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.5rem 0.6rem;
        border-top: 1px solid var(--cx-color-border-default);
    }
    .cx-rail__foot input { min-width: 0; width: 100%; }
    .cx-rail__foot .btn { width: 100%; }
    .cx-chatapp__side {
        flex: 0 0 21rem;
        display: flex;
        flex-direction: column;
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-surface);
        background: var(--cx-color-surface-card);
        overflow: hidden;
    }
    .cx-chatapp--side-closed .cx-chatapp__side { display: none; }
    .cx-chatapp__side-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--cx-space-inline) var(--cx-space-control);
        border-bottom: 1px solid var(--cx-color-border-default);
        font-weight: 600;
    }
    .cx-chatapp__side-body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: var(--cx-space-control);
    }
    .cx-chatapp__side-toggle {
        border: 0;
        background: transparent;
        color: var(--cx-color-text-secondary);
        cursor: pointer;
        padding: 0 0.3rem;
        line-height: 1;
        font-size: 1.1rem;
    }
    .cx-chatapp__side-toggle:hover { color: var(--cx-color-text-primary); }
    @media (max-width: 60rem) {
        .cx-chatapp { flex-direction: column; height: auto; }
        .cx-chatapp__scroll { max-height: 60vh; }
        .cx-chatapp__side { flex-basis: auto; max-height: 40vh; }
        /* On a narrow screen the rail is a short list above the
           conversation, not a column beside it: two columns on a phone
           leave neither wide enough to read. */
        .cx-rail { flex-basis: auto; max-height: 30vh; order: -1; }
    }

    /* The composer: attachment cards above one input row. */
    .cx-composer {
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: var(--cx-space-inline);
    }
    /* One rounded section: the input on top, the controls below it —
       the shape every chat hand already knows. */
    .cx-composer__box {
        border: 1px solid var(--cx-color-border-default);
        border-radius: 1rem;
        background: var(--cx-color-surface-card);
        /* An elegant lift off the page — the shadow colour comes from
           the border token, so themes keep owning every colour. Two
           layers: a soft wide throw and a close anchor. */
        box-shadow:
            0 8px 28px var(--cx-color-border-default),
            0 2px 6px var(--cx-color-border-default);
        padding: 0.5rem 0.6rem;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }
    .cx-composer__box:focus-within {
        border-color: var(--cx-color-action-primary);
    }
    .cx-composer__input {
        width: 100%;
        min-height: 4.5rem;
        max-height: 14rem;
        resize: none;
        border: 0;
        outline: none;
        background: transparent;
        color: var(--cx-color-text-primary);
        font: inherit;
        line-height: 1.5;
    }
    .cx-composer__row {
        display: flex;
        align-items: center;
        gap: var(--cx-space-inline);
    }
    .cx-composer__spacer { flex: 1 1 auto; }
    /* Send: the blue up-arrow every chat uses; Stop: a plain square. */
    .cx-composer__send {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        padding: 0;
        flex: 0 0 auto;
        border: 0;
        border-radius: 50%;
        background: var(--cx-color-action-primary);
        color: var(--cx-color-text-on-action);
        cursor: pointer;
    }
    .cx-composer__send svg { display: block; }
    .cx-composer__send:hover { opacity: 0.9; }
    .cx-composer__stop {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        padding: 0;
        flex: 0 0 auto;
        border: 1px solid var(--cx-color-border-default);
        border-radius: 50%;
        background: var(--cx-color-surface-card);
        color: var(--cx-color-text-primary);
        cursor: pointer;
    }
    .cx-composer__stop svg { display: block; }
    .cx-composer__stop:hover {
        border-color: var(--cx-color-status-danger);
        color: var(--cx-color-ink-danger);
    }
    .cx-composer__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        flex: 0 0 auto;
        border: 1px solid var(--cx-color-border-default);
        border-radius: 50%;
        background: var(--cx-color-surface-card);
        color: var(--cx-color-text-secondary);
        cursor: pointer;
        padding: 0;
        list-style: none;
    }
    /* The icon sits dead centre: the svg is a block with no baseline. */
    .cx-composer__icon svg { display: block; margin: auto; }
    .cx-composer__icon::-webkit-details-marker { display: none; }
    .cx-composer__icon::marker { content: none; }

    /* The + menu: opens upward from the composer, one panel, plain
       native controls inside. */
    .cx-menu { position: relative; display: inline-block; }
    .cx-menu > summary { list-style: none; display: inline-flex; }
    .cx-menu > summary::marker { content: none; }
    .cx-menu > summary::-webkit-details-marker { display: none; }
    .cx-menu__panel {
        position: absolute;
        z-index: 40;
        bottom: 2.9rem;
        left: 0;
        min-width: 15rem;
        padding: 0.4rem;
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-surface);
        background: var(--cx-color-surface-card);
    }
    .cx-menu__item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.4rem 0.5rem;
        border: 0;
        border-radius: var(--cx-radius-control);
        background: transparent;
        color: var(--cx-color-text-primary);
        cursor: pointer;
        font-size: 0.9em;
        text-align: left;
    }
    .cx-menu__item:hover { background: var(--cx-color-surface-page); }
    .cx-menu__item--sub { padding-left: 1.7rem; }
    .cx-menu__group { margin: 0.2rem 0; }
    /* Submenus fold open on their own click, chevron turning. */
    .cx-menu__sub > summary { list-style: none; }
    .cx-menu__sub > summary::marker { content: none; }
    .cx-menu__sub > summary::-webkit-details-marker { display: none; }
    .cx-menu__chevron {
        margin-left: auto;
        transition: transform 0.15s ease;
    }
    .cx-menu__sub[open] .cx-menu__chevron { transform: rotate(90deg); }
    .cx-menu__label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.4rem 0.5rem;
        font-size: 0.8em;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--cx-color-text-secondary);
    }

    /* One-shot approval on a bubble: a real button until pressed, a
       dated fact afterwards. */
    .cx-aiba__approve {
        border: 1px solid var(--cx-color-action-primary);
        background: var(--cx-color-action-primary);
        color: var(--cx-color-text-on-action);
        border-radius: var(--cx-radius-control);
        padding: 0.2rem 0.7rem;
        font-weight: 600;
        cursor: pointer;
    }
    .cx-aiba__approve:disabled { opacity: 0.55; cursor: default; }
    .cx-aiba__approved {
        color: var(--cx-color-ink-success);
        font-size: 0.85em;
        font-weight: 600;
        align-self: center;
    }
    .cx-composer__icon:hover {
        color: var(--cx-color-ink-link);
        border-color: var(--cx-color-action-primary);
    }
    .cx-composer__icon--recording {
        color: var(--cx-color-ink-danger);
        border-color: var(--cx-color-status-danger);
        animation: cx-aiba-pulse 1.2s infinite;
    }
    .cx-composer__meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--cx-space-inline);
        flex-wrap: wrap;
        font-size: 0.8em;
        color: var(--cx-color-text-secondary);
    }
    .cx-composer__meta select {
        max-width: 14rem;
        font-size: 0.9em;
    }

    /* File cards: how attachments look both while composing and in the
       thread — a small card with a name and a size, like a chat client,
       not a bare filename. */
    /* Several attachments ride in ONE scrollable row — the bubble
       keeps its height, the row keeps every attachment forever. */
    .cx-aiba__cards {
        display: flex;
        flex-wrap: nowrap;
        gap: var(--cx-space-inline);
        margin-top: var(--cx-space-inline);
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }
    .cx-aiba__cards > * { flex: 0 0 auto; }
    .cx-filecard {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        max-width: 15rem;
        padding: 0.35rem 0.6rem;
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-control);
        background: var(--cx-color-surface-page);
        color: var(--cx-color-text-primary);
        text-decoration: none;
        font-size: 0.85em;
    }
    .cx-filecard:hover { border-color: var(--cx-color-action-primary); }
    .cx-filecard__name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .cx-filecard__size {
        color: var(--cx-color-text-secondary);
        flex: 0 0 auto;
    }
    .cx-filecard__remove {
        border: 0;
        background: transparent;
        color: var(--cx-color-text-secondary);
        cursor: pointer;
        padding: 0 0.1rem;
        line-height: 1;
    }
    .cx-filecard__remove:hover { color: var(--cx-color-ink-danger); }
    /* A full-screen image sheet: the same overlay the run diagram
       uses, sized to the picture — printable, closable. */
    .cx-dag__sheet--image { text-align: center; }
    .cx-dag__sheet--image img {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
    }
    .cx-filecard--image { cursor: zoom-in; }
    .cx-filecard--image img {
        max-height: 6rem;
        max-width: 100%;
        border-radius: var(--cx-radius-control);
        display: block;
    }

    /* Annotation thumbs on AI-BA turns. */
    .cx-aiba__rate {
        display: inline-flex;
        gap: 0.3rem;
        margin-top: 0.35rem;
    }
    .cx-aiba__rate-btn {
        border: 1px solid var(--cx-color-border-default);
        background: var(--cx-color-surface-card);
        color: var(--cx-color-text-secondary);
        border-radius: var(--cx-radius-control);
        padding: 0.15rem 0.45rem;
        cursor: pointer;
        line-height: 1;
        touch-action: manipulation;
        transition: transform 80ms ease;
    }
    .cx-aiba__rate-btn:hover {
        color: var(--cx-color-ink-link);
        border-color: var(--cx-color-action-primary);
    }
    .cx-aiba__rate-btn:active { transform: scale(0.96); }
    .cx-aiba__rate-btn:focus-visible {
        outline: 3px solid color-mix(
            in srgb, var(--cx-color-action-primary) 38%, transparent
        );
        outline-offset: 2px;
    }
    .cx-aiba__rate-btn--active,
    .cx-aiba__rate-btn--active:hover {
        color: var(--cx-color-text-on-action);
        background: var(--cx-color-action-primary);
        border-color: var(--cx-color-action-primary);
    }
    .cx-aiba__rate[aria-busy="true"] .cx-aiba__rate-btn[data-rating] {
        cursor: progress;
    }
    .cx-aiba__rate-status:not(:empty) {
        color: var(--cx-color-ink-danger);
        font-size: 0.8rem;
    }

    /* The side panel's content: sections, the agent board, thoughts. */
    .cx-side__section {
        margin-bottom: var(--cx-space-control);
    }
    .cx-side__section h3 {
        font-size: 0.8em;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--cx-color-text-secondary);
        margin-bottom: 0.4rem;
    }
    .cx-side__agent {
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-control);
        padding: 0.3rem 0.5rem;
        margin-bottom: 0.35rem;
        font-size: 0.9em;
    }
    .cx-side__agent > summary {
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        list-style: none;
    }
    .cx-side__agent > summary::-webkit-details-marker { display: none; }
    /* Per-model running account rows. */
    .cx-side__model-row {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        font-size: 0.88em;
        margin-bottom: 0.3rem;
        flex-wrap: wrap;
    }
    /* Which model this agent runs on — in front of its name, because
       every agent may run a different one. */
    .cx-side__agent-model {
        flex: 0 0 auto;
        padding: 0 0.35rem;
        border-radius: var(--cx-radius-control);
        background: var(--cx-color-surface-page);
        border: 1px solid var(--cx-color-border-default);
        color: var(--cx-color-text-secondary);
        font-size: 0.78em;
        font-variant-numeric: tabular-nums;
    }
    .cx-side__agent-dot {
        width: 0.55rem;
        height: 0.55rem;
        border-radius: 50%;
        flex: 0 0 auto;
        background: var(--cx-color-border-default);
    }
    .cx-side__agent--started .cx-side__agent-dot {
        background: var(--cx-color-action-primary);
        animation: cx-aiba-pulse 1.2s infinite;
    }
    .cx-side__agent--finished .cx-side__agent-dot {
        background: var(--cx-color-status-success);
    }
    .cx-side__agent--failed .cx-side__agent-dot {
        background: var(--cx-color-status-danger);
    }
    .cx-side__agent-body {
        margin-top: 0.3rem;
        color: var(--cx-color-text-secondary);
        font-size: 0.9em;
    }
    .cx-side__thought {
        font-size: 0.85em;
        color: var(--cx-color-text-secondary);
        border-left: 2px solid var(--cx-color-border-default);
        padding-left: 0.5rem;
        margin-bottom: 0.45rem;
        word-break: break-word;
    }
    /* One line each, click to open — a log you scan, not scroll. */
    .cx-side__thought > summary {
        cursor: pointer;
        list-style: none;
        display: flex;
        gap: 0.3rem;
        align-items: baseline;
    }
    .cx-side__thought > summary::-webkit-details-marker { display: none; }
    .cx-side__thought-line {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }
    .cx-side__thought[open] .cx-side__thought-line { display: none; }
    .cx-side__thought-full {
        white-space: pre-wrap;
        margin-top: 0.2rem;
        color: var(--cx-color-text-primary);
    }
    .cx-side__thought-time {
        color: var(--cx-color-text-secondary);
        opacity: 0.8;
        font-variant-numeric: tabular-nums;
        margin-right: 0.3rem;
    }

    /* ---- The document surface -------------------------------------
       A reading surface for the pages that ARGUE rather than operate:
       the ecosystem map today, any evidence report later. Every colour
       comes from a semantic token, so the same markup reads as the
       Tabler palette or the Ceox one without a single rule changing.
       Only geometry is literal here, for the same reason the popover's
       width is: a measure of 68 characters is typography, not theme. */
    /* THE WORKING SURFACE USES THE WHOLE WINDOW (invariant 22).
       The shell framed every signed-in screen in the vendor's
       container-xl, which caps the page at about 1320px — so a chat
       with a thread list, a table of eight columns and a dashboard all
       stopped short of the glass on a wide monitor, and the space went
       to two grey margins.

       It is safe to open BECAUSE the reading surfaces measure
       themselves: .cx-doc caps at 68rem and centres, an owner bubble at
       46rem. Line length is protected where prose lives, not by
       narrowing every screen that has no prose on it. And the class is
       a cx- one: the vendor name it replaces was sitting in the shell
       template, which invariant 10 puts in an Adapter. */
    .cx-app-page {
        width: 100%;
        margin: 0 auto;
        padding-inline: 1.5rem;
    }
    @media (max-width: 40rem) {
        .cx-app-page { padding-inline: 1rem; }
    }
    .cx-doc {
        max-width: 68rem;
        margin: 0 auto;
        padding: 2.5rem 1.5rem 4.5rem;
        color: var(--cx-color-text-primary);
        font-size: 1rem;
        line-height: 1.55;
    }
    .cx-doc__kicker {
        font-family: var(--cx-font-mono);
        font-size: 0.72rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--cx-color-ink-link);
        margin: 0 0 0.6rem;
    }
    .cx-doc__title {
        font-family: var(--cx-font-display);
        font-size: 2.125rem;
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -0.01em;
        text-wrap: balance;
        margin: 0 0 0.4rem;
    }
    .cx-doc__lede {
        color: var(--cx-color-text-secondary);
        max-width: 68ch;
        margin: 0;
    }
    .cx-doc__section { margin-top: 3.25rem; }
    .cx-doc__section-title {
        font-family: var(--cx-font-display);
        font-size: 1.375rem;
        font-weight: 600;
        line-height: 1.15;
        text-wrap: balance;
        margin: 0 0 0.25rem;
    }
    .cx-doc__sub-title {
        font-family: var(--cx-font-display);
        font-size: 1.0625rem;
        font-weight: 600;
        margin: 1.6rem 0 0.25rem;
    }
    .cx-doc__note {
        color: var(--cx-color-text-secondary);
        font-size: 0.875rem;
        margin-top: 0.75rem;
        max-width: 78ch;
    }

    /* The fact strip: one measured number per chip, never a claim. */
    .cx-facts {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1.125rem;
    }
    .cx-fact {
        font-family: var(--cx-font-mono);
        font-size: 0.78rem;
        background: var(--cx-color-surface-card);
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-control);
        padding: 0.25rem 0.625rem;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }
    .cx-fact b {
        font-weight: 500;
        color: var(--cx-color-ink-link);
    }

    /* Figures: a drawing carries its claim in the caption below it. */
    .cx-figure { margin: 1.25rem 0 0; }
    .cx-figbox {
        background: var(--cx-color-surface-card);
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-surface);
        padding: 1.125rem 1.125rem 0.5rem;
        overflow-x: auto;
    }
    .cx-figbox > svg {
        max-width: 100%;
        height: auto;
        display: block;
        min-width: 47.5rem;
    }
    .cx-figcaption {
        color: var(--cx-color-text-secondary);
        font-size: 0.875rem;
        margin-top: 0.625rem;
        max-width: 78ch;
    }
    .cx-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 1.125rem;
        margin-top: 0.75rem;
        font-size: 0.85rem;
        color: var(--cx-color-text-secondary);
    }
    .cx-legend > span {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }
    .cx-legend__swatch {
        display: inline-block;
        width: 1.6rem;
        height: 0;
        border-top: 2.2px solid var(--cx-color-action-primary);
    }
    .cx-legend__swatch--dashed { border-top-style: dashed; }
    .cx-legend__swatch--box {
        width: 0.9rem;
        height: 0.9rem;
        border: 1.5px solid var(--cx-color-status-warning);
        background: color-mix(
            in srgb, var(--cx-color-status-warning) 12%, transparent
        );
    }

    /* SVG roles. A diagram is drawn once and reads in both palettes,
       because every stroke names a token instead of a colour. */
    .cx-n { fill: var(--cx-color-surface-card); stroke: var(--cx-color-text-primary); stroke-width: 1.2; }
    .cx-n2 { fill: var(--cx-color-surface-page); stroke: var(--cx-color-text-primary); stroke-width: 1.2; }
    .cx-n-ghost { fill: none; stroke: var(--cx-color-text-secondary); stroke-width: 1.2; stroke-dasharray: 3 3; }
    .cx-n-accent {
        fill: color-mix(in srgb, var(--cx-color-status-warning) 12%, transparent);
        stroke: var(--cx-color-status-warning);
        stroke-width: 1.4;
    }
    .cx-n-primary {
        fill: color-mix(in srgb, var(--cx-color-action-primary) 12%, transparent);
        stroke: var(--cx-color-action-primary);
        stroke-width: 1.4;
    }
    .cx-band {
        fill: color-mix(in srgb, var(--cx-color-action-primary) 12%, transparent);
        stroke: var(--cx-color-action-primary);
        stroke-width: 1.2;
    }
    .cx-band-quiet {
        fill: var(--cx-color-surface-page);
        stroke: var(--cx-color-text-secondary);
        stroke-width: 1.2;
    }
    .cx-figbox svg text {
        fill: var(--cx-color-text-primary);
        font-family: var(--cx-font-body);
        font-size: 13px;
    }
    .cx-figbox svg text.cx-t {
        font-family: var(--cx-font-display);
        font-weight: 600;
        font-size: 14px;
    }
    .cx-figbox svg text.cx-m { font-family: var(--cx-font-mono); font-size: 12px; }
    .cx-figbox svg text.cx-s { font-size: 11.5px; fill: var(--cx-color-text-secondary); }
    .cx-figbox svg text.cx-sm {
        font-family: var(--cx-font-mono);
        font-size: 10.5px;
        fill: var(--cx-color-text-secondary);
    }
    .cx-figbox svg text.cx-lbl {
        font-family: var(--cx-font-mono);
        font-size: 10.5px;
        fill: var(--cx-color-action-primary);
    }
    .cx-figbox svg text.cx-lbl-accent {
        font-family: var(--cx-font-mono);
        font-size: 10.5px;
        fill: var(--cx-color-status-warning);
    }
    .cx-figbox svg text.cx-tick {
        font-family: var(--cx-font-mono);
        font-size: 10.5px;
        fill: var(--cx-color-text-secondary);
    }
    .cx-figbox svg text.cx-dlabel {
        font-family: var(--cx-font-mono);
        font-size: 11px;
        fill: var(--cx-color-text-primary);
    }
    .cx-flow { stroke: var(--cx-color-text-primary); stroke-width: 1.3; fill: none; }
    .cx-edge-direct { stroke: var(--cx-color-action-primary); stroke-width: 1.8; fill: none; }
    .cx-edge-indirect {
        stroke: var(--cx-color-action-primary);
        stroke-width: 1.4;
        fill: none;
        stroke-dasharray: 5 4;
    }
    .cx-edge-quiet { stroke: var(--cx-color-text-secondary); stroke-width: 1.1; fill: none; }
    .cx-gridline { stroke: var(--cx-color-border-default); stroke-width: 1; }
    /* Series colours, not status colours: a bar painted in the warning
       colour tells a reader something is wrong with that week. They are
       also drawn at full strength — a translucent mark reads as
       provisional, and these numbers are the measured ones. */
    .cx-serie { stroke: var(--cx-color-chart-series-1); stroke-width: 2; fill: none; }
    .cx-dot { fill: var(--cx-color-chart-series-1); }
    .cx-barmark { fill: var(--cx-color-chart-series-2); }
    /* A period that has not finished yet is drawn hollow. A partial
       week filled in like a whole one reads as a completed measurement,
       and the reader compares it against weeks that had seven days to
       accumulate. Hollow is also visible without colour, which the
       filled/unfilled pair has to be. */
    .cx-barmark--running {
        fill: none;
        stroke: var(--cx-color-chart-series-2);
        stroke-width: 1.5;
        stroke-dasharray: 4 3;
    }
    .cx-dot--running {
        fill: var(--cx-color-surface-card);
        stroke: var(--cx-color-chart-series-1);
        stroke-width: 1.8;
    }
    /* The SEGMENT into an unfinished week, not just its endpoint: a
       hollow dot on a solid line still draws a completed measurement.
       The line is the claim; the dot only marks where it ends. */
    .cx-serie--running { stroke-dasharray: 5 4; }

    /* Card grid: one paragraph per part of the factory. */
    .cx-doc__grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
        gap: 0.75rem;
        margin-top: 1.125rem;
    }
    .cx-doc__card {
        background: var(--cx-color-surface-card);
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-surface);
        padding: 0.875rem 1rem;
    }
    .cx-doc__card--lead {
        border-left: 3px solid var(--cx-color-action-primary);
    }
    /* The colour law (ADR 0059): a card's border is its frontier.verdict,
       never a taste. Grey reuses the same muted token every "offline" or
       "quiet" reading already wears on this page, because unmeasured is
       not a fifth accent colour - it is the absence of one. */
    .cx-doc__card--above {
        border-left: 3px solid var(--cx-color-status-success);
    }
    .cx-doc__card--at {
        border-left: 3px solid var(--cx-color-status-warning);
    }
    .cx-doc__card--below {
        border-left: 3px solid var(--cx-color-status-danger);
    }
    .cx-doc__card--unmeasured {
        border-left: 3px solid var(--cx-color-text-secondary);
    }
    .cx-doc__legend {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        margin: 0.625rem 0 0;
    }
    .cx-doc__card-name {
        font-family: var(--cx-font-mono);
        font-size: 0.84rem;
        font-weight: 500;
    }
    .cx-doc__card-role {
        color: var(--cx-color-text-secondary);
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }
    .cx-doc__card-state {
        font-family: var(--cx-font-mono);
        font-size: 0.72rem;
        color: var(--cx-color-ink-link);
        margin-top: 0.5rem;
    }

    /* A numbered sequence, where the order is information. */
    .cx-steps {
        list-style: none;
        counter-reset: cx-step;
        margin: 1.25rem 0 0;
        padding: 0;
        display: grid;
        gap: 0.75rem;
    }
    .cx-steps > li {
        counter-increment: cx-step;
        background: var(--cx-color-surface-card);
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-surface);
        padding: 1rem 1.125rem 1rem 4rem;
        position: relative;
    }
    .cx-steps > li::before {
        content: counter(cx-step);
        position: absolute;
        left: 1.125rem;
        top: 1rem;
        font-family: var(--cx-font-display);
        font-weight: 700;
        font-size: 1.25rem;
        color: var(--cx-color-ink-warning);
        width: 1.9rem;
        text-align: center;
    }
    .cx-steps > li.cx-step--done {
        border-left: 3px solid var(--cx-color-status-success);
    }
    .cx-steps > li.cx-step--done::before {
        content: "¹3";
        color: var(--cx-color-ink-success);
    }
    .cx-steps > li.cx-step--now {
        border-left: 3px solid var(--cx-color-status-warning);
    }
    .cx-step__title {
        font-family: var(--cx-font-display);
        font-weight: 600;
        font-size: 1rem;
        display: inline;
    }
    .cx-step__body {
        margin: 0.375rem 0 0;
        color: var(--cx-color-text-secondary);
        font-size: 0.9rem;
        max-width: 78ch;
    }
    .cx-tag {
        font-family: var(--cx-font-mono);
        font-size: 0.69rem;
        color: var(--cx-color-ink-link);
        border: 1px solid var(--cx-color-action-primary);
        border-radius: var(--cx-radius-control);
        padding: 0.05rem 0.4rem;
        margin-left: 0.5rem;
        white-space: nowrap;
        vertical-align: 2px;
    }

    /* Tables of measured rows. */
    .cx-doc__tablewrap {
        overflow-x: auto;
        margin-top: 1rem;
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-surface);
    }
    .cx-doc__table {
        border-collapse: collapse;
        width: 100%;
        background: var(--cx-color-surface-card);
        font-size: 0.875rem;
    }
    .cx-doc__table th,
    .cx-doc__table td {
        text-align: left;
        padding: 0.5rem 0.875rem;
        border-top: 1px solid var(--cx-color-border-default);
    }
    /* The seam ui_table marks and could not style itself. Its brief
       granted write access to the component and its tests, and the
       stylesheet lives here — so the delivery emitted the marker and
       stopped at its contracted boundary, which is the correct
       behaviour. Without this rule the markup CLAIMS a right-aligned
       numeric column and the page shows a left-aligned one: a marker
       that reads as a measurement.

       Right-aligned so digits line up at the units place, and
       tabular-nums so they line up at every place — a proportional
       font makes 1 narrower than 8, and a column of prices stops
       being comparable at a glance. */
    .cx-doc__table th.cx-doc__table-num,
    .cx-doc__table td.cx-doc__table-num {
        text-align: right;
        font-variant-numeric: tabular-nums;
    }
    .cx-doc__table thead th {
        border-top: 0;
        font-family: var(--cx-font-mono);
        font-size: 0.69rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--cx-color-text-secondary);
        font-weight: 500;
    }
    .cx-doc__table td.cx-mono {
        font-family: var(--cx-font-mono);
        font-size: 0.78rem;
        white-space: nowrap;
    }
    .cx-doc__table td.cx-num {
        font-variant-numeric: tabular-nums;
        text-align: right;
    }
    .cx-state {
        font-family: var(--cx-font-mono);
        font-size: 0.69rem;
        padding: 0.1rem 0.5rem;
        border-radius: var(--cx-radius-control);
        white-space: nowrap;
        border: 1px solid currentColor;
    }
    .cx-state--ok { color: var(--cx-color-ink-success); }
    .cx-state--part { color: var(--cx-color-ink-warning); }
    .cx-state--contract { color: var(--cx-color-ink-danger); }
    .cx-state--above { color: var(--cx-color-ink-success); }
    .cx-state--at { color: var(--cx-color-ink-warning); }
    .cx-state--below { color: var(--cx-color-ink-danger); }
    .cx-state--unmeasured { color: var(--cx-color-text-secondary); }
    .cx-state--enforced { color: var(--cx-color-ink-success); }
    .cx-state--declared { color: var(--cx-color-text-secondary); }
    .cx-state--overridden { color: var(--cx-color-ink-warning); }
    .cx-pill {
        font-family: var(--cx-font-mono);
        font-size: 0.72rem;
        border-radius: var(--cx-radius-control);
        padding: 0.1rem 0.45rem;
        border: 1px solid var(--cx-color-action-primary);
        color: var(--cx-color-ink-link);
        white-space: nowrap;
        display: inline-block;
        margin: 0 0.25rem 0.25rem 0;
    }
    .cx-pill--indirect {
        border-style: dashed;
    }
    .cx-pill--exception {
        border-color: var(--cx-color-status-warning);
        color: var(--cx-color-ink-warning);
    }
    .cx-quiet { color: var(--cx-color-text-secondary); }

    /* Chart panels. Two measures of different scale never share one
       axis — a test count in the thousands and a commit count in the
       hundreds drawn together produce a picture whose crossings mean
       nothing. Each measure gets its own panel, its own axis and its
       own title, and the pair sits side by side so the weeks still
       line up for the eye. */
    .cx-charts {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
        gap: 0.75rem;
        margin-top: 1.125rem;
    }
    .cx-chartpanel {
        background: var(--cx-color-surface-card);
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-surface);
        padding: 0.875rem 1rem 0.5rem;
    }
    .cx-chartpanel__title {
        font-family: var(--cx-font-display);
        font-weight: 600;
        font-size: 1rem;
        margin: 0;
    }
    .cx-chartpanel__sub {
        color: var(--cx-color-text-secondary);
        font-size: 0.78rem;
        margin: 0.125rem 0 0.625rem;
    }
    .cx-chartpanel svg {
        max-width: 100%;
        height: auto;
        display: block;
    }
    .cx-chartpanel svg text.cx-tick {
        font-family: var(--cx-font-mono);
        font-size: 10.5px;
        fill: var(--cx-color-text-secondary);
    }
    .cx-chartpanel svg text.cx-dlabel {
        font-family: var(--cx-font-mono);
        font-size: 11px;
        fill: var(--cx-color-text-primary);
    }
    /* An invisible circle wider than the dot: a 3.5px target is not a
       target. The native <title> inside it is the tooltip, so hovering
       needs no script and a screen reader reads the same words. */
    .cx-hit { fill: transparent; }

    /* Disclosure: longer material is present but folded, so the page
       stays scannable and nothing has to be cut to keep it that way.
       Built on <details>, which brings the marker, the keyboard and
       find-in-page for free — the no-JavaScript promise the component
       layer keeps everywhere else. */
    /* No box: a folded section is a line of text with a triangle, not
       a panel competing with the panels around it.

       The triangle is the BROWSER'S OWN marker. A custom one was tried
       twice and lost twice: three borders became a vertical bar under
       the unlayered vendor reset (ADR 0024), and a clipped block never
       took its space at all, because `summary { display: list-item }`
       arrives unlayered too and beats a layered `display: flex`. The
       native marker cannot be defeated by a stylesheet this layer does
       not control, and it is what the curated map used. */
    /* The gap belongs to the disclosure, not to the paragraph after
       it: the vendor's reboot zeroes paragraph margins unlayered, so a
       note's own margin-top never survives. Nothing unlayered styles
       <details>, so this one does. */
    .cx-disclosure {
        margin: 0.75rem 0;
        color: var(--cx-color-text-secondary);
    }
    .cx-disclosure > summary {
        cursor: pointer;
        font-size: 0.85rem;
        color: var(--cx-color-text-secondary);
    }
    .cx-disclosure > summary:hover { color: var(--cx-color-ink-link); }
    .cx-disclosure > summary:focus-visible {
        outline: 2px solid var(--cx-color-action-primary);
        outline-offset: 2px;
    }
    .cx-disclosure__body {
        padding-top: 0.5rem;
        font-size: 0.9rem;
        color: var(--cx-color-text-secondary);
    }
    .cx-disclosure__body > :first-child { margin-top: 0; }
    .cx-disclosure__body > :last-child { margin-bottom: 0; }
    .cx-disclosure__body p { max-width: 74ch; }

    /* The ⓘ explainer: the same disclosure primitive worn as a small
       round mark beside a heading, for the paragraph a reader wants
       only sometimes. It floats its body over the page so opening one
       never re-flows the section under the reader's eye. */
    .cx-info {
        display: inline-block;
        position: relative;
        vertical-align: middle;
        margin-left: 0.375rem;
    }
    .cx-info > summary {
        cursor: pointer;
        list-style: none;
        width: 1.125rem;
        height: 1.125rem;
        border-radius: 50%;
        border: 1px solid var(--cx-color-border-default);
        color: var(--cx-color-text-secondary);
        font-family: var(--cx-font-display);
        font-size: 0.7rem;
        font-weight: 600;
        line-height: 1.0625rem;
        text-align: center;
        display: block;
    }
    .cx-info > summary::-webkit-details-marker { display: none; }
    .cx-info > summary:hover,
    .cx-info[open] > summary {
        color: var(--cx-color-ink-link);
        border-color: var(--cx-color-action-primary);
    }
    .cx-info > summary:focus-visible {
        outline: 2px solid var(--cx-color-action-primary);
        outline-offset: 2px;
    }
    .cx-info__body {
        position: absolute;
        z-index: 30;
        top: calc(100% + 0.5rem);
        left: 0;
        width: min(38rem, calc(100vw - 3rem));
        background: var(--cx-color-surface-card);
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-surface);
        /* The brand's own shadow dial, not a literal: in the flat
           arrangement this resolves to none, and the panel separates
           itself with its border and card surface instead. A literal
           colour here would be one the palette cannot re-theme. */
        box-shadow: var(--cx-shadow-surface);
        padding: 0.875rem 1rem;
        font-family: var(--cx-font-body);
        font-size: 0.9rem;
        font-weight: 400;
        line-height: 1.55;
        color: var(--cx-color-text-secondary);
        text-align: left;
        white-space: normal;
    }
    /* Near the right edge the panel would leave the viewport; the
       modifier anchors it to the other side instead. */
    .cx-info--end .cx-info__body { left: auto; right: 0; }
    .cx-info__body > :first-child { margin-top: 0; }
    .cx-info__body > :last-child { margin-bottom: 0; }
    .cx-info__body p { margin: 0 0 0.5rem; }
    .cx-info__body strong { color: var(--cx-color-text-primary); }

    /* A bubble of its own, deliberately NOT cx-info.
       cx-info__body is absolutely positioned, so inside a table wrapper
       carrying overflow-x it is clipped by that scroll container — the
       panel would be cut off or invisible exactly where a table needs
       it. This one is fixed to the viewport, which no ancestor's
       overflow can clip, and it is a separate window rather than a
       second use of the section-header component. */
    .cx-spec {
        display: inline-block;
        position: relative;
        vertical-align: middle;
        margin-left: 0.375rem;
    }
    .cx-spec > summary {
        cursor: pointer;
        list-style: none;
        width: 1.125rem;
        height: 1.125rem;
        border-radius: 50%;
        border: 1px solid var(--cx-color-border-default);
        color: var(--cx-color-text-secondary);
        font-family: var(--cx-font-display);
        font-size: 0.7rem;
        font-weight: 600;
        line-height: 1.0625rem;
        text-align: center;
        display: block;
    }
    .cx-spec > summary::-webkit-details-marker { display: none; }
    .cx-spec > summary:hover,
    .cx-spec[open] > summary {
        color: var(--cx-color-ink-link);
        border-color: var(--cx-color-action-primary);
    }
    .cx-spec > summary:focus-visible {
        outline: 2px solid var(--cx-color-action-primary);
        outline-offset: 2px;
    }
    .cx-spec__body {
        position: fixed;
        z-index: 60;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(32rem, calc(100vw - 2rem));
        max-height: min(70vh, 36rem);
        overflow-y: auto;
        background: var(--cx-color-surface-card);
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-surface);
        box-shadow: var(--cx-shadow-surface);
        padding: 1rem 1.125rem;
        text-align: left;
        font-weight: 400;
    }
    .cx-spec__title {
        font-family: var(--cx-font-display);
        font-size: 0.9375rem;
        font-weight: 600;
        margin: 0 0 0.625rem;
    }
    .cx-spec__body > :last-child { margin-bottom: 0; }
    @media (max-width: 40rem) {
        .cx-info__body {
            position: static;
            width: auto;
            box-shadow: none;
            margin-top: 0.5rem;
        }
    }

    /* The stat tiles: the two numbers the page is willing to lead with. */
    .cx-statrow {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 0.75rem;
    }
    .cx-stat {
        background: var(--cx-color-surface-card);
        border: 1px solid var(--cx-color-border-default);
        border-radius: var(--cx-radius-surface);
        padding: 0.875rem 1.125rem;
        flex: 1 1 15rem;
    }
    .cx-stat__big {
        font-family: var(--cx-font-display);
        font-weight: 700;
        font-size: 1.875rem;
        color: var(--cx-color-ink-link);
        font-variant-numeric: tabular-nums;
    }
    .cx-stat__label {
        color: var(--cx-color-text-secondary);
        font-size: 0.85rem;
        margin-top: 0.125rem;
    }
    .cx-doc__toolbar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
        margin-top: 1rem;
    }
    .cx-doc__stamp {
        font-family: var(--cx-font-mono);
        font-size: 0.78rem;
        color: var(--cx-color-text-secondary);
    }
}
@keyframes cx-aiba-pulse {
    0%, 80%, 100% { opacity: 0.25; }
    40% { opacity: 1; }
}
@keyframes cx-orbit-spin {
    to { transform: rotate(360deg); }
}
@keyframes cx-orbit-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.8); }
}
@keyframes cx-orbit-burst {
    0%, 55% { transform: scale(0.4); opacity: 0; }
    70% { opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Composer controls, OUTSIDE the cascade layers on purpose: the vendor
   stylesheet is unlayered, and unlayered rules beat every @layer rule
   regardless of specificity — this is why the send button rendered as
   Tabler's rounded square. Verified in a live browser (the discipline
   is constitutional now: ADR 0024).
   The row is quiet: no borders, no fills — a circle appears under the
   pointer, and only the primary send action is a filled blue circle. */
.cx-composer__icon,
.cx-composer__send,
.cx-composer__stop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    list-style: none;
}
.cx-composer__icon { color: var(--cx-color-text-secondary); }
.cx-composer__icon:hover {
    background: var(--cx-color-border-default);
    color: var(--cx-color-text-primary);
}
.cx-composer__icon svg,
.cx-composer__send svg,
.cx-composer__stop svg { display: block; margin: auto; }
/* The send arrow rests gray in a gray ring; one typed character wakes
   it blue — the state says "there is something to send". */
.cx-composer__send {
    border: 1px solid var(--cx-color-border-default);
    background: transparent;
    color: var(--cx-color-text-secondary);
}
.cx-composer__send--ready {
    border: 0;
    background: var(--cx-color-action-primary);
    color: var(--cx-color-text-on-action);
}
.cx-composer__send--ready:hover { opacity: 0.88; }
/* Stop: a LARGE white rectangle in a blue circle. The owner's word:
   hovering must change NOTHING — the rectangle is white by nature. */
.cx-composer__stop,
.cx-composer__stop:hover {
    background: var(--cx-color-action-primary);
    color: var(--cx-color-text-on-action);
    border: 0;
    box-shadow: none;
    opacity: 1;
}
/* What will run and how: the picked model and mode, beside the +. */
.cx-composer__pick {
    font-size: 0.78em;
    color: var(--cx-color-text-secondary);
    border: 1px solid var(--cx-color-border-default);
    border-radius: var(--cx-radius-control);
    padding: 0.1rem 0.5rem;
    white-space: nowrap;
    align-self: center;
}
.cx-composer__icon::marker,
.cx-menu > summary::marker { content: none; }
.cx-composer__icon::-webkit-details-marker { display: none; }
/* Recording: unmistakably RED, ringed, pulsing — hours-long meetings
   must never wonder whether the microphone is live. */
.cx-composer__icon--recording,
.cx-composer__icon--recording:hover {
    color: var(--cx-color-ink-danger);
    border: 2px solid var(--cx-color-status-danger);
    background: transparent;
    animation: cx-aiba-pulse 1.2s infinite;
}

/* The button's busy ring (I/22 "betöltés alatt"): an incomplete circle,
   spun by CSS alone. */
.cx-spinner { animation: cx-spin 0.8s linear infinite; }
@keyframes cx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .cx-spinner { animation-duration: 3s; }
}

/* IV/2: 48px primary touch targets with 8px between them, but only
   where touch is the primary input (IV/1's own mobile breakpoint) -
   a desktop pointer does not need a 48px button to land on. The
   bottom nav is the exception: it exists on no other viewport, so its
   targets carry the minimum unconditionally. */
.cx-button { touch-action: manipulation; }
@media (max-width: 790px) {
    .cx-button {
        min-width: var(--cx-size-touch-target);
        min-height: var(--cx-size-touch-target);
    }
}

/* IV/4: fixed to the viewport's bottom edge, padded past the home
   indicator / gesture bar on a device that has one. */
.cx-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    gap: var(--cx-space-inline);
    height: var(--cx-size-bottom-nav);
    padding: 0 var(--cx-space-inline)
        env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--cx-color-border-default);
    background: var(--cx-color-surface-card);
}
.cx-bottom-nav__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: var(--cx-size-touch-target);
    min-height: var(--cx-size-touch-target);
    color: var(--cx-color-text-secondary);
    text-decoration: none;
    touch-action: manipulation;
}
.cx-bottom-nav__label { font-size: var(--cx-text-size-meta); }

/* I/14: one notification for #toast-region. The region's own
   aria-live carries the announcement; this is only its appearance. */
.cx-toast {
    display: flex;
    min-width: 16rem;
    max-width: 28rem;
    margin-bottom: var(--cx-space-inline);
    border-radius: var(--cx-radius-control);
    box-shadow: var(--cx-shadow-surface);
}
.cx-toast__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--cx-space-control);
    width: 100%;
}
.cx-toast__close { flex: 0 0 auto; }

/* I/13: the native <dialog>'s own focus trap and ESC close do the work
   a scripted modal would otherwise reimplement; this is its look. */
.cx-dialog {
    max-width: min(32rem, 90vw);
    padding: var(--cx-space-page);
    border: 0;
    border-radius: var(--cx-radius-surface);
    background: var(--cx-color-surface-card);
    color: var(--cx-color-text-primary);
}
.cx-dialog::backdrop {
    background: color-mix(
        in srgb, var(--cx-color-text-primary) 45%, transparent
    );
}
.cx-dialog__title { margin: 0 0 var(--cx-space-control); }
.cx-dialog__body { margin-bottom: var(--cx-space-control); }
.cx-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--cx-space-inline);
}

/* I/12: the submit-time roll-up, one alert box above every field it
   names. */
.cx-form-errors { margin-bottom: var(--cx-space-control); }
.cx-form-errors__heading { margin: 0 0 var(--cx-space-inline); font-weight: 600; }
.cx-form-errors__list { margin: 0; padding-left: 1.25rem; }

/* The entrance (ceox/entrance.html): the sign-in family of screens on two
   columns - the card and the brand panel - drawn from the tokens. The
   panel's colours are the entrance's own semantic tokens; no primitive
   is named here, so a re-themed product moves the panel with the rest. */
.cx-entrance {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: var(--cx-color-surface-page);
}
.cx-entrance__frame { width: 100%; }
.cx-entrance__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--cx-space-control);
    margin-bottom: var(--cx-space-control);
}
.cx-entrance__wordmark {
    font-family: var(--cx-font-display);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--cx-color-text-primary);
    text-decoration: none;
}
.cx-entrance__card {
    border: 1px solid var(--cx-color-border-default);
    border-radius: var(--cx-radius-surface);
    box-shadow: var(--cx-shadow-surface);
}
.cx-entrance__body { padding: 2rem; }
.cx-entrance__title { font-family: var(--cx-font-display); color: var(--cx-color-text-primary); }
.cx-entrance__errors { margin-bottom: var(--cx-space-control); }
.cx-entrance__hr { margin: var(--cx-space-control) 0; color: var(--cx-color-text-secondary); }
.cx-entrance__providers { display: grid; gap: var(--cx-space-inline); }
.cx-entrance__provider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--cx-space-inline);
    min-height: var(--cx-size-touch-target);
}
.cx-entrance__provider-mark { width: 1.25rem; height: 1.25rem; flex: none; }
.cx-entrance__submit, .cx-entrance__button { min-height: var(--cx-size-touch-target); }
.cx-entrance__reveal {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    cursor: pointer;
}
.cx-entrance__reveal-icon { width: 1.25rem; height: 1.25rem; }
.cx-entrance__reveal--on { color: var(--cx-color-ink-link); }
.cx-entrance__foot { font-size: var(--cx-text-size-ui); }
.cx-entrance__brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--cx-space-control);
    min-height: 34rem;
    padding: 3rem;
    border-radius: var(--cx-radius-surface);
    color: var(--cx-color-entrance-on-panel);
    background: linear-gradient(160deg, var(--cx-color-entrance-panel), var(--cx-color-entrance-panel-edge));
    box-shadow: var(--cx-shadow-surface);
}
.cx-entrance__kicker {
    margin: 0;
    font-size: var(--cx-text-size-meta);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cx-color-entrance-accent);
}
.cx-entrance__headline {
    margin: 0;
    font-family: var(--cx-font-display);
    font-size: clamp(1.75rem, 2.4vw, 2.5rem);
    line-height: 1.15;
    color: var(--cx-color-entrance-on-panel);
}
.cx-entrance__lead {
    margin: 0;
    max-width: 34rem;
    font-size: var(--cx-text-size-reading);
    line-height: var(--cx-text-leading-reading);
    color: var(--cx-color-entrance-on-panel-muted);
}
.cx-entrance__points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: var(--cx-space-inline);
    color: var(--cx-color-entrance-on-panel-muted);
}
.cx-entrance__points li { position: relative; padding-left: 1.75rem; }
.cx-entrance__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--cx-color-action-accent);
}
.cx-entrance__art { width: 100%; max-width: 30rem; height: auto; margin-top: var(--cx-space-control); }
.cx-entrance__art-sheet { fill: var(--cx-color-entrance-sheet); }
.cx-entrance__art-grid { fill: none; stroke: var(--cx-color-entrance-panel-edge); stroke-width: 1; opacity: 0.6; }
.cx-entrance__art-trace { fill: none; stroke: var(--cx-color-entrance-trace); stroke-width: 2.5; stroke-linecap: round; }
.cx-entrance__art-node { fill: var(--cx-color-entrance-sheet); stroke: var(--cx-color-entrance-trace); stroke-width: 2.5; }
.cx-entrance__art-node--accent { fill: var(--cx-color-action-accent); stroke: var(--cx-color-action-accent); }
.cx-entrance__art-check { fill: none; stroke: var(--cx-color-entrance-sheet); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cx-entrance__art-text { fill: var(--cx-color-entrance-on-panel-muted); font-family: var(--cx-font-body); font-size: 13px; }
@media (max-width: 991.98px) {
    .cx-entrance { align-items: flex-start; }
    .cx-entrance__body { padding: 1.5rem; }
    /* One column has no gutter to compensate: the vendor row's negative
       side margins would otherwise bleed four pixels past a phone's
       viewport and give the whole page a sideways scroll (measured at
       390px, 2026-09-09). */
    .cx-entrance__grid { margin-inline: 0; }
    .cx-entrance__column { padding-inline: 0; }
}

/* S3b, programme conflict C10: two rules that used to be inline style
   attributes, moved here so style-src can drop unsafe-inline. Neither
   is a reusable component - each backs exactly one first-party caller,
   named in the comment, so a reader can find the other half. */

/* chat-renderer.js's clipboard-fallback <textarea> (document.execCommand
   path, used only where navigator.clipboard is unavailable): present in
   the layout enough to select() and copy from, invisible otherwise. */
.cx-clipboard-fallback { position: fixed; opacity: 0; }

/* project_edit.html's current-logo preview: a FileField, not an
   ImageField (models.py's own comment: no Pillow dependency for one
   thumbnail), so the natural width is unknown - object-fit keeps a
   non-square mark from stretching to fill the fixed 32x32 box. */
.cx-logo-preview { object-fit: contain; }

/* ecosystem_home.html's factory-yield SVG curve: a fixed 880x300
   viewBox wider than most phones, so its own wrapper scrolls sideways
   instead of squeezing the chart until its labels collide. */
.cx-yield-chart__scroll { overflow-x: auto; }
.cx-yield-chart__svg { width: 100%; height: auto; min-width: 640px; }

/* I/7's fourth landmark (S3b): the visual QA sandbox's own axe-core
   pass named the shell's uncontained content by rule id ("region")
   before this existed - a <footer> on every page, carrying the legal
   links (impresszum, cookie policy, accessibility statement) nothing
   on the site linked to before this step. */
.cx-app-footer {
    border-top: 1px solid var(--cx-color-border-default);
    padding-block: var(--cx-space-control);
}
.cx-app-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--cx-space-section);
    font-size: var(--cx-text-size-meta);
    color: var(--cx-color-text-secondary);
}
.cx-app-footer__inner a { color: inherit; }

/* Two small utilities so a new template never reaches for Tabler's
   text-secondary/table directly (S3b's own check_standards_frontend,
   the 33rd gate check, gates its own new templates on exactly this). */
.cx-text-secondary { color: var(--cx-color-text-secondary); }
.cx-table {
    width: 100%;
    border-collapse: collapse;
}
.cx-table th, .cx-table td {
    padding: var(--cx-space-inline) var(--cx-space-control);
    border-bottom: 1px solid var(--cx-color-border-default);
    text-align: left;
}
.cx-table th { font-weight: 600; }
