/* /Components/Layout/LayoutWithSidebar.razor.rz.scp.css */
/* =========================================================================
 * APP SHELL — responsive sidebar layout
 * =========================================================================
 * Breakpoints (shared across workstreams):
 *   lg = 80rem (1280px) — full 280px sidebar
 *   md = 64rem (1024px) — auto 72px icon rail (48rem–80rem)
 *   sm = 48rem (768px)  — off-canvas drawer + 48px top app-bar
 *
 * Layout: a fixed-width sidebar (.app-shell__nav) beside a vertical content
 * column (.app-shell__col) = [mobile top app-bar][scrolling page body].
 * The top app-bar (.app-shell__topbar) is MOBILE-ONLY (< 48rem). There the
 * sidebar is an off-canvas drawer, so the bar carries the hamburger that opens
 * it. At >= 48rem the sidebar is already on screen and the bar is display:none
 * — it held nothing but empty space, so the page body starts at the viewport
 * top and reclaims those 48px.
 *
 * CROSS-WORKSTREAM CONTRACT: .app-shell__main always provides a definite
 * (or flex) height so a child with height:100% / flex:1 fills it — it is the
 * flex:1 row of the 100vh content column.
 * ========================================================================= */

.app-shell[b-iq3qkvyjv7] {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Vertical column to the right of the sidebar: top bar + page body. */
.app-shell__col[b-iq3qkvyjv7] {
    flex: 1 1 auto;
    min-width: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Mobile-only top app-bar — hidden at desktop widths, shown < 48rem below. */
.app-shell__topbar[b-iq3qkvyjv7] {
    display: none;
    align-items: center;
    gap: var(--spacing-3); /* 12px */
    height: 48px;
    flex-shrink: 0;
    padding: 0 var(--spacing-4); /* 0 16px */
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-primary);
}

/* Hamburger — opens the off-canvas drawer (bar only renders < 48rem). */
.app-shell__hamburger[b-iq3qkvyjv7] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem; /* 40px */
    height: 2.5rem;
    flex-shrink: 0;
    padding: var(--spacing-2); /* 8px */
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: background-color 150ms ease-in-out;
}

.app-shell__hamburger:hover[b-iq3qkvyjv7] {
    background: var(--bg-primary-hover);
}

.app-shell__hamburger svg[b-iq3qkvyjv7] {
    width: 1.5rem; /* 24px */
    height: 1.5rem;
}

/* Wordmark — stands in for the drawer-hidden sidebar logo (bar only renders < 48rem). */
.app-shell__wordmark[b-iq3qkvyjv7] {
    font-family: var(--font-family-body);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-text-md);
    color: var(--text-primary);
}

/* Fixed-width host for the design-system SidebarNavigation (its .sidebar-nav is width:100%). */
.app-shell__nav[b-iq3qkvyjv7] {
    flex: 0 0 280px;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border-primary);
    background: var(--bg-primary);
    transition: flex-basis 0.2s ease, width 0.2s ease;
}

/* Desktop collapsed → 72px icon rail */
.app-shell--nav-collapsed .app-shell__nav[b-iq3qkvyjv7] {
    flex: 0 0 72px;
    width: 72px;
}

/* Off-canvas overlay — desktop hidden */
.app-shell__nav-overlay[b-iq3qkvyjv7] {
    display: none;
}

.app-shell__main[b-iq3qkvyjv7] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    background: var(--bg-primary);
    /* Flex column so page roots (layout-settings / layout-list / layout-body)
       can grow to fill the column height instead of floating as a short card
       with empty space below. See the fill rule in layouts.css. */
    display: flex;
    flex-direction: column;
}

/* Error-boundary fallback fills + centers within the main column. */
.app-shell__error[b-iq3qkvyjv7] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-6);
}

/* =========================================================================
 * 48rem–80rem — auto icon rail
 * Force the host to 72px so the design-system auto-collapse rules (in
 * sidebar-navigation.css) line up. The top app-bar stays hidden here — the
 * rail is on screen, so there is nothing for the bar to do.
 * ========================================================================= */
@media (min-width: 48rem) and (max-width: 80rem) {
    .app-shell__nav[b-iq3qkvyjv7] {
        flex: 0 0 72px;
        width: 72px;
    }
}

/* =========================================================================
 * < 48rem — off-canvas drawer + top app-bar
 * The shell becomes a column: nav slides in over the content column, and the
 * top app-bar appears to carry the hamburger that opens it.
 * ========================================================================= */
@media (max-width: 47.999rem) {
    .app-shell[b-iq3qkvyjv7] {
        flex-direction: column;
        height: 100vh;
    }

    /* The bar exists ONLY here — it is the sole way to reach the drawer. */
    .app-shell__topbar[b-iq3qkvyjv7] {
        display: flex;
    }

    /* The content column fills the remaining height beneath the fixed nav. */
    .app-shell__col[b-iq3qkvyjv7] {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
    }

    /* Nav becomes an off-canvas drawer (always full 280px with labels) */
    .app-shell__nav[b-iq3qkvyjv7] {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        flex: 0 0 280px;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 50;
        border-right: 1px solid var(--border-primary);
    }

    .app-shell--nav-open .app-shell__nav[b-iq3qkvyjv7] {
        transform: none;
    }

    .app-shell__nav-overlay[b-iq3qkvyjv7] {
        display: none;
    }

    .app-shell--nav-open .app-shell__nav-overlay[b-iq3qkvyjv7] {
        display: block;
        position: fixed;
        inset: 0;
        background: var(--bg-overlay);
        z-index: 40;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-iqvcpou2hn] {
    display: flex;
    min-height: 100vh;
}

.sidebar[b-iqvcpou2hn] {
    width: 17.5rem;
    flex-shrink: 0;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-secondary);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

main[b-iqvcpou2hn] {
    flex: 1;
    background: var(--bg-secondary);
    min-width: 0;
}

.content[b-iqvcpou2hn] {
    padding: var(--spacing-10);
    max-width: 90rem;          /* 1440px — matches the widest showcase wrapper */
    margin-inline: auto;
}

.back-bar[b-iqvcpou2hn] {
    margin-bottom: var(--spacing-6);
}

.back-bar__link[b-iqvcpou2hn] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    margin-left: calc(var(--spacing-3) * -1);
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-tertiary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.back-bar__link:hover[b-iqvcpou2hn] {
    color: var(--text-primary);
    background: var(--bg-primary);
}

.back-bar__link:focus-visible[b-iqvcpou2hn] {
    outline: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-focus-brand);
}

.back-bar__link svg[b-iqvcpou2hn] {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.back-bar__link:hover svg[b-iqvcpou2hn] {
    transform: translateX(-3px);
}

@media (max-width: 48rem) {
    .page[b-iqvcpou2hn] {
        flex-direction: column;
    }

    .sidebar[b-iqvcpou2hn] {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-secondary);
    }

    .content[b-iqvcpou2hn] {
        padding: var(--spacing-6);
    }
}

#blazor-error-ui[b-iqvcpou2hn] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-iqvcpou2hn] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* NavMenu styling is provided by the design-system sidebar-navigation component styles. */
/* /Components/Layout/PageLayout.razor.rz.scp.css */
.page-standalone[b-yqmwllgxfi] {
    min-height: 100vh;
    width: 100%;
    background: var(--bg-primary);
}
/* /Components/Layout/PublicLayout.razor.rz.scp.css */
.public-layout[b-2h0uycn7vb] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-secondary);
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/*
 * Reconnect + maintenance notice (design canvas https://claude.ai/artifact/DpVVj29eBfwUXdfAQzXRM1).
 * Theme tokens only, so every theme and dark mode carry it. The stylesheet is already in the page
 * when the connection drops, so nothing here needs the server.
 */

/* ── The card ── */

#components-reconnect-modal.mf-rc[b-zneasv46ht] {
    width: min(28rem, calc(100vw - 2rem));
    max-width: none;
    margin: 18vh auto auto;
    padding: 0;
    border: 0;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family-body);
    /* The hairline is a theme border so the card keeps its edge on a dark backdrop too. */
    box-shadow: 0 24px 48px -12px rgb(10 13 18 / 0.28), 0 0 0 1px var(--border-secondary);
    opacity: 0;
    transition: display 0.3s allow-discrete, overlay 0.3s allow-discrete;
    animation: mf-rc-fade-out-b-zneasv46ht 0.3s both;
}

/* showModal() focuses the card itself when the panel has no button; the card is not a control. */
#components-reconnect-modal.mf-rc:focus[b-zneasv46ht],
#components-reconnect-modal.mf-rc:focus-visible[b-zneasv46ht] {
    outline: none;
}

/* The 0.3 s delay keeps a blip of a second from flashing the notice at all. */
#components-reconnect-modal.mf-rc[open][b-zneasv46ht] {
    animation: mf-rc-rise-b-zneasv46ht 1.2s cubic-bezier(.05, .89, .25, 1.02) 0.3s both, mf-rc-fade-in-b-zneasv46ht 0.4s ease-out 0.3s both;
}

#components-reconnect-modal.mf-rc[b-zneasv46ht]::backdrop {
    background-color: rgb(10 13 18 / 0.45);
    backdrop-filter: blur(3px);
    animation: mf-rc-fade-in-b-zneasv46ht 0.4s ease-out 0.3s both;
}

#components-reconnect-modal.mf-rc[data-view="maintenance"][b-zneasv46ht],
#components-reconnect-modal.mf-rc[data-view="back"][b-zneasv46ht] {
    width: min(30.5rem, calc(100vw - 2rem));
}

#components-reconnect-modal.mf-rc[data-view="maintenance"][b-zneasv46ht]::backdrop,
#components-reconnect-modal.mf-rc[data-view="back"][b-zneasv46ht]::backdrop {
    background-color: rgb(10 13 18 / 0.55);
    backdrop-filter: blur(4px);
}

/*
 * Tints are mixed from each tone's foreground and the card's own background, so they hold in
 * every theme and in dark mode (the --utility-* tints are not defined for every theme/mode).
 */

/* ── Top strip: moving while it works on it, still when it has stopped ── */

.mf-rc__strip[b-zneasv46ht] {
    position: relative;
    height: 4px;
    overflow: hidden;
    background: color-mix(in srgb, var(--fg-brand-primary) 18%, var(--bg-primary));
}

.mf-rc__bar[b-zneasv46ht] {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-brand-solid);
    animation: mf-rc-slide-b-zneasv46ht 1.6s cubic-bezier(.4, 0, .2, 1) infinite;
}

.mf-rc[data-view="offline"] .mf-rc__strip[b-zneasv46ht] { background: var(--border-primary); }
.mf-rc[data-view="failed"] .mf-rc__strip[b-zneasv46ht],
.mf-rc[data-view="resume-failed"] .mf-rc__strip[b-zneasv46ht] { background: var(--bg-error-solid); }
.mf-rc[data-view="paused"] .mf-rc__strip[b-zneasv46ht] { background: color-mix(in srgb, var(--fg-brand-primary) 40%, var(--bg-primary)); }

.mf-rc[data-view="offline"] .mf-rc__bar[b-zneasv46ht],
.mf-rc[data-view="failed"] .mf-rc__bar[b-zneasv46ht],
.mf-rc[data-view="resume-failed"] .mf-rc__bar[b-zneasv46ht],
.mf-rc[data-view="paused"] .mf-rc__bar[b-zneasv46ht] { display: none; }

.mf-rc[data-view="maintenance"] .mf-rc__strip[b-zneasv46ht] { background: color-mix(in srgb, var(--fg-warning-primary) 22%, var(--bg-primary)); }
.mf-rc[data-view="maintenance"] .mf-rc__bar[b-zneasv46ht] {
    background: var(--bg-warning-solid);
    animation-duration: 2.2s;
}

.mf-rc[data-view="back"] .mf-rc__strip[b-zneasv46ht] { background: color-mix(in srgb, var(--fg-success-primary) 22%, var(--bg-primary)); }
.mf-rc[data-view="back"] .mf-rc__bar[b-zneasv46ht] {
    width: 100%;
    background: var(--bg-success-solid);
    transform-origin: left center;
    animation: mf-rc-fill-b-zneasv46ht 3s linear both;
}

/* ── One panel at a time ── */

.mf-rc__panel[b-zneasv46ht] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.375rem;
    padding: 2.25rem 2rem 1.75rem;
    text-align: center;
}

.mf-rc__panel--roomy[b-zneasv46ht] {
    gap: 1.25rem;
    padding: 2rem 2rem 1.75rem;
}

.mf-rc__panel[hidden][b-zneasv46ht] { display: none; }

.mf-rc__copy[b-zneasv46ht] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mf-rc__title[b-zneasv46ht] {
    margin: 0;
    font-size: var(--font-size-text-lg);
    line-height: 1.55;
    font-weight: 600;
    color: var(--text-primary);
}

.mf-rc__title--lg[b-zneasv46ht] { font-size: var(--font-size-text-xl); }

.mf-rc__text[b-zneasv46ht] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-tertiary);
    text-wrap: pretty;
}

/* The admin's message keeps the line breaks they typed. */
.mf-rc__text--message[b-zneasv46ht] { white-space: pre-line; }

.mf-rc__note[b-zneasv46ht] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    color: var(--text-tertiary);
}

.mf-rc__note--icon[b-zneasv46ht] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mf-rc__note--icon[b-zneasv46ht]  svg { color: var(--fg-quaternary); flex-shrink: 0; }

/* ── Icon tile ── */

.mf-rc__icon[b-zneasv46ht] {
    --glyph: var(--fg-brand-primary);
    --tile: color-mix(in srgb, var(--glyph) 14%, var(--bg-primary));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--tile);
    color: var(--glyph);
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--glyph) 6%, var(--bg-primary));
}

/* --tile is re-declared with each tone so it mixes that tone's glyph, not the inherited one. */
.mf-rc__icon--gray[b-zneasv46ht] { --glyph: var(--fg-tertiary); --tile: color-mix(in srgb, var(--glyph) 12%, var(--bg-primary)); }
.mf-rc__icon--error[b-zneasv46ht] { --glyph: var(--fg-error-primary); --tile: color-mix(in srgb, var(--glyph) 14%, var(--bg-primary)); }
.mf-rc__icon--warning[b-zneasv46ht] { --glyph: var(--fg-warning-primary); --tile: color-mix(in srgb, var(--glyph) 16%, var(--bg-primary)); }
.mf-rc__icon--success[b-zneasv46ht] { --glyph: var(--fg-success-primary); --tile: color-mix(in srgb, var(--glyph) 16%, var(--bg-primary)); }

/* The first notice pulses outwards instead of carrying a still ring. */
.mf-rc__icon--pulse[b-zneasv46ht] { box-shadow: none; }

.mf-rc__ring[b-zneasv46ht] {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--fg-brand-primary) 35%, var(--bg-primary));
    animation: mf-rc-ring-b-zneasv46ht 2s ease-out infinite;
}

.mf-rc__ring--late[b-zneasv46ht] { animation-delay: 1s; }

.mf-rc__spin[b-zneasv46ht],
.mf-rc__wiggle[b-zneasv46ht] {
    position: relative;
    display: inline-flex;
}

.mf-rc__spin[b-zneasv46ht] { animation: mf-rc-spin-b-zneasv46ht 1s linear infinite; }
.mf-rc__wiggle[b-zneasv46ht] { animation: mf-rc-wiggle-b-zneasv46ht 2.4s ease-in-out infinite; }

/* ── Status chips ── */

.mf-rc__chip[b-zneasv46ht] {
    --chip-tone: var(--fg-brand-primary);
    --chip-bg: color-mix(in srgb, var(--chip-tone) 8%, var(--bg-primary));
    --chip-border: color-mix(in srgb, var(--chip-tone) 30%, var(--bg-primary));
    --chip-text: var(--text-brand-primary);
    --chip-dot: var(--chip-tone);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.375rem 0.75rem 0.375rem 0.625rem;
    border-radius: 999px;
    border: 1px solid var(--chip-border);
    background: var(--chip-bg);
    color: var(--chip-text);
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    font-weight: 500;
}

.mf-rc__chip--sm[b-zneasv46ht] {
    gap: 0.375rem;
    padding: 0.125rem 0.625rem 0.125rem 0.5rem;
    font-size: var(--font-size-text-xs);
}

.mf-rc__chip--gray[b-zneasv46ht] {
    --chip-bg: var(--bg-secondary);
    --chip-border: var(--border-secondary);
    --chip-text: var(--text-secondary);
    --chip-dot: var(--fg-quaternary);
}

.mf-rc__chip--warning[b-zneasv46ht] {
    --chip-tone: var(--fg-warning-primary);
    --chip-bg: color-mix(in srgb, var(--chip-tone) 8%, var(--bg-primary));
    --chip-border: color-mix(in srgb, var(--chip-tone) 30%, var(--bg-primary));
    /* The warning hue alone is too light for small text: lean it toward the body text colour. */
    --chip-text: color-mix(in srgb, var(--text-warning-primary) 70%, var(--text-primary));
    --chip-dot: var(--chip-tone);
}

.mf-rc__dot[b-zneasv46ht] {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--chip-dot);
    animation: mf-rc-pulse-b-zneasv46ht 1.6s ease-in-out infinite;
}

.mf-rc__chip--sm .mf-rc__dot[b-zneasv46ht] { width: 6px; height: 6px; }

/* ── Maintenance: started / back by ── */

.mf-rc__facts[b-zneasv46ht] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
    text-align: left;
}

.mf-rc__facts[hidden][b-zneasv46ht] { display: none; }

.mf-rc__facts--single[b-zneasv46ht] { grid-template-columns: minmax(0, 1fr); }

.mf-rc__fact[b-zneasv46ht] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.75rem 1rem;
}

.mf-rc__fact[hidden][b-zneasv46ht] { display: none; }

.mf-rc__fact + .mf-rc__fact[b-zneasv46ht] { border-left: 1px solid var(--border-secondary); }

.mf-rc__fact dt[b-zneasv46ht] {
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
}

.mf-rc__fact dd[b-zneasv46ht] {
    margin: 0;
    font-size: var(--font-size-text-md);
    line-height: 1.45;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Buttons ── */

.mf-rc__actions[b-zneasv46ht] {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.mf-rc__actions[b-zneasv46ht]  .mf-rc__btn { flex: 1 1 0; justify-content: center; }

.mf-rc__panel[b-zneasv46ht]  .mf-rc__btn--wide { width: 100%; justify-content: center; }

/* ── Heads-up banner for people who are online when the switch goes on ── */

.mf-mb[b-zneasv46ht] {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: min(46rem, calc(100vw - 1.5rem));
    box-sizing: border-box;
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    border-radius: var(--radius-xl);
    border: 1px solid color-mix(in srgb, var(--fg-warning-primary) 32%, var(--bg-primary));
    background: color-mix(in srgb, var(--fg-warning-primary) 9%, var(--bg-primary));
    box-shadow: var(--shadow-lg);
    color: color-mix(in srgb, var(--text-warning-primary) 70%, var(--text-primary));
    font-family: var(--font-family-body);
    transform: translateX(-50%);
    animation: mf-mb-drop-b-zneasv46ht 0.35s ease-out both;
}

.mf-mb[hidden][b-zneasv46ht] { display: none; }

.mf-mb__icon[b-zneasv46ht] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--fg-warning-primary) 16%, var(--bg-primary));
    color: var(--fg-warning-primary);
}

.mf-mb__text[b-zneasv46ht] {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
}

.mf-mb__text strong[b-zneasv46ht] { font-weight: 600; }

/* ── Motion ── */

@keyframes mf-rc-rise-b-zneasv46ht {
    0% { transform: translateY(24px) scale(0.97); }
    100% { transform: translateY(0); }
}

@keyframes mf-rc-fade-in-b-zneasv46ht {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes mf-rc-fade-out-b-zneasv46ht {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes mf-rc-slide-b-zneasv46ht {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(260%); }
}

@keyframes mf-rc-fill-b-zneasv46ht {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

@keyframes mf-rc-ring-b-zneasv46ht {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.7); opacity: 0; }
}

@keyframes mf-rc-spin-b-zneasv46ht {
    to { transform: rotate(360deg); }
}

@keyframes mf-rc-wiggle-b-zneasv46ht {
    0%, 70%, 100% { transform: rotate(0); }
    80% { transform: rotate(-14deg); }
    90% { transform: rotate(10deg); }
}

@keyframes mf-rc-pulse-b-zneasv46ht {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes mf-mb-drop-b-zneasv46ht {
    0% { opacity: 0; transform: translate(-50%, -8px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal.mf-rc[open][b-zneasv46ht],
    #components-reconnect-modal.mf-rc[b-zneasv46ht]::backdrop,
    .mf-rc__bar[b-zneasv46ht],
    .mf-rc__ring[b-zneasv46ht],
    .mf-rc__spin[b-zneasv46ht],
    .mf-rc__wiggle[b-zneasv46ht],
    .mf-rc__dot[b-zneasv46ht],
    .mf-mb[b-zneasv46ht] {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }

    #components-reconnect-modal.mf-rc[open][b-zneasv46ht] { opacity: 1; }
}
/* /Components/Layout/WizardLayout.razor.rz.scp.css */
/* Full-bleed: the onboarding shell (Onboarding.razor) owns its own sidebar + main column, so the
   layout no longer centres a 1040px column. Only Onboarding.razor uses this layout. */
.wizard-layout[b-j829ugx8ee] {
    min-height: 100vh;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-family-body);
}

.wizard-layout-body[b-j829ugx8ee] {
    width: 100%;
    min-height: 100vh;
}
/* /Components/Pages/Activity/Activity.razor.rz.scp.css */
/* ==========================================================================
 * ACTIVITY — workspace audit log
 *
 * Reconstructed from the redesign artboard
 *   docs/MettaFlow screen redesign-handoff/mettaflow-screen-redesign/project/Activity.dc.html
 * Numbers here are lifted from that file, not rounded to a spacing scale — where the artboard
 * says 12.5px or 9px, this says 12.5px or 9px. Colours are all tokens; the artboard uses the
 * same ones (its base DS is a subset of Styles/components).
 *
 * ::deep is used wherever a rule has to reach INSIDE a child component (InputField's wrapper,
 * EmptyState's icon wrapper). Blazor stamps the scope attribute only on elements this file's
 * component renders, so without ::deep those rules silently never match.
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * Root
 *
 * Keeps .layout-list (so `.app-shell__main > .layout-list` still grants the fill rule in
 * layouts.css) but drops its page padding and 3xl gap: the header and the body space themselves,
 * and the body's grey ground runs edge to edge under the centred content column (below).
 * -------------------------------------------------------------------------- */
.activity[b-9q5umfdba1] {
    padding: 0;
    gap: 0;
}

/* --------------------------------------------------------------------------
 * THE CONTENT COLUMN — T38
 *
 * The header and the body's content sit on one column, 80% of the page and centred in it: the
 * same rule Settings (T36, Setting.razor.css) and Chat settings (T37, chat-actions.css) already
 * use, so the three screens read as one product. (T39 folded the old search toolbar into the
 * table's own header row, so the table card now carries it.)
 *
 * Every percentage below resolves against the SAME box — .activity's own width — which is what
 * keeps the edges aligned to the pixel. The header is a child of .activity, so its 80% is of it
 * directly; it is the PageHeader component's root, so it needs ::deep to be reached from this
 * file (Blazor stamps the scope attribute only on elements this page renders itself). The body's
 * children are one level further down, so the body
 * drops its horizontal padding: its content box then IS .activity's width, and its children's
 * 90% (T58; it was 80% under T36) lands on the same line. With the old 20px padding left in, the table would sit 16px inside
 * the header's edge on either side.
 *
 * The body itself stays full width on purpose. It is the scroll container, so narrowing it would
 * pull its scrollbar in off the page edge, and its --bg-secondary-subtle ground would stop short
 * of both sides. Only what sits inside it is narrowed.
 *
 * Child combinators only, and no max-width: the column is a percentage with auto inline margins,
 * exactly like its two siblings — a cap here would be the per-page drift T36 had to unwind.
 * -------------------------------------------------------------------------- */
.activity[b-9q5umfdba1] >  .activity__header,
.activity__main > .activity__card[b-9q5umfdba1],
.activity__main > .activity__state[b-9q5umfdba1] {
    width: 90%;
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
 * Header (T39) — the catalog PageHeader. Its own sheet owns the type; this only spaces it on the
 * page, since .activity drops the list scaffold's padding.
 * -------------------------------------------------------------------------- */
.activity[b-9q5umfdba1] >  .activity__header {
    flex-shrink: 0;
    padding-block: var(--spacing-3xl) var(--spacing-xl);
}

/* T87: adopt the same compact treatment Settings ▸ General (Setting.razor.css's
 * .settings-panel--redesign ::deep .page-header* rules) already gives PageHeader, so this page's
 * header reads consistently with it rather than PageHeader's raw, full-page default sizing
 * (24px title over an 18px line). Numbers are kept in lockstep with Setting.razor.css's own
 * override on purpose, not re-derived - if that scale changes, this should move with it. */
.activity[b-9q5umfdba1]  .activity__header,
.activity[b-9q5umfdba1]  .activity__header .page-header-content {
    gap: 10px;
}

.activity[b-9q5umfdba1]  .activity__header .page-header-left {
    gap: 4px;
}

.activity[b-9q5umfdba1]  .activity__header .page-header-title {
    font-size: var(--font-size-text-xl);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.activity[b-9q5umfdba1]  .activity__header .page-header-supporting {
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
}

/* T85/T86: ToolbarLeading now carries three siblings - the in-flight message, the search box and
 * the refresh button (in that order, T86 moved refresh to the search box's right) - not just the
 * search box alone (T39). DataTable's own .toolbar-leading has no display rule of its own (it is
 * a plain div), so without this they would stack as separate block-level lines instead of sharing
 * one row. ::deep reaches it through DataTable's render tree from .activity__card, this file's
 * nearest scoped ancestor. */
.activity__card[b-9q5umfdba1]  .toolbar-leading {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

/* InputField owns its own border/radius/shadow/focus-within/icon styling (Styles/components/
 * input.css) - this wrapper only constrains its width inside the table header row's toolbar
 * (DataTable's ToolbarLeading, T39) and keeps the compact 34px control height (InputField's own
 * default is 44px). */
.activity__search[b-9q5umfdba1] {
    width: 280px;
    flex-shrink: 0;
}

.activity__search[b-9q5umfdba1]  .input-wrapper {
    height: 34px;
}

.activity__search-clear[b-9q5umfdba1] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--fg-quaternary);
    cursor: pointer;
}

.activity__search-clear:hover[b-9q5umfdba1] {
    color: var(--fg-secondary);
}

.activity__inflight[b-9q5umfdba1] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.activity__inflight[b-9q5umfdba1] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

@keyframes activity-spin-b-9q5umfdba1 {
    to { transform: rotate(360deg); }
}

.activity__inflight[b-9q5umfdba1]  .activity__spin {
    animation: activity-spin-b-9q5umfdba1 1s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .activity__inflight[b-9q5umfdba1]  .activity__spin {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
 * Body (proto:81)
 * -------------------------------------------------------------------------- */
.activity__main[b-9q5umfdba1] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* No horizontal padding — the content column (above) supplies the side space. */
    padding: 16px 0;
    background: var(--bg-secondary-subtle);
}

/* --------------------------------------------------------------------------
 * Full-area states (proto:83-121)
 *
 * The artboard drops each state 96px below the toolbar rather than centring it in the
 * remaining height, so a short log and a failed one put their message in the same place.
 * -------------------------------------------------------------------------- */
.activity__state[b-9q5umfdba1] {
    margin-top: 96px;
}

/* The empty result now renders INSIDE the table (DataTable's EmptyContent, T39), below its header
   row - a 96px drop there would push it far down an already-bordered card. Space it inside instead. */
.activity__card .activity__state[b-9q5umfdba1] {
    margin-top: 0;
    padding-block: var(--spacing-4xl);
}

.activity__state[b-9q5umfdba1]  .empty-state__icon-wrapper {
    border-radius: var(--radius-lg);
}

.activity__state[data-activity-state="empty"][b-9q5umfdba1]  .empty-state__icon-wrapper {
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
}

.activity__state[data-activity-state="no-workspace"][b-9q5umfdba1]  .empty-state__icon-wrapper {
    background: var(--bg-secondary);
    color: var(--fg-quaternary);
}

/* --------------------------------------------------------------------------
 * Table card (proto:123-158)
 *
 * Worn by two states. In the Table state the box itself - border, radius, background, shadow -
 * is drawn by DataTable's own .table-section root (Styles/components/table.css), so this
 * wrapper does not repeat it (doubling it drew two borders) and does not clip either: with
 * `table-layout: fixed` below there is nothing left to clip, and `overflow: hidden` here would
 * cut off .table-section's own --shadow-xs. It keeps only what positions the card and the dim
 * transition. The Loading state has no DataTable inside, so .activity__card--skeleton draws the
 * box itself (see First-load skeleton).
 * -------------------------------------------------------------------------- */
.activity__card[b-9q5umfdba1] {
    flex-shrink: 0;
    transition: opacity 150ms;
}

/* A re-query dims the rows it is about to replace instead of blanking them (proto:124). */
.activity__card--dim[b-9q5umfdba1] {
    opacity: 0.55;
}

/* DataTable owns the <table>, <thead>, <th> and <td> now, and Blazor stamps this file's scope
 * attribute only on elements this page renders itself - so header/cell styling comes from
 * Styles/components/table.css (.data-table), not from here. The one rule that has to reach
 * inside the child is the layout algorithm: .data-table is `table-layout: auto`, under which a
 * long nowrap detail sentence would widen its column and push Date / Time out of the card.
 * Fixed layout honours the 248px / 202px / auto / 216px Column widths, which are kept from the
 * hand-rolled table's column widths (DataTable's cells pad var(--spacing-6) a side now, so they
 * are no longer the artboard's 220 / 190 / 200 content boxes plus folded-in gutters). */
.activity__card[b-9q5umfdba1]  .data-table {
    table-layout: fixed;
}

/* Fixed layout sets the column widths but does NOT stop a cell's content from painting past
 * them: a <td> is overflow: visible, so anything nowrap and wider than its column (the action
 * badge, see below) ran on over the next column. No cell here holds a focusable control, so
 * clipping costs nothing and guarantees one column never draws over its neighbour. */
.activity__card[b-9q5umfdba1]  .data-table tbody td {
    overflow: hidden;
}

/* ── Action cell ──
 * Badge is `inline-flex; white-space: nowrap` (Styles/components/badge.css) and sizes to its
 * text, so a long action name ("Update Smart Form Submission Status") was wider than the 202px
 * column and overlapped the Activity text. Cap the badge at the cell and ellipsize its label;
 * the badge's title still carries the full name. The badge is a child component, hence ::deep
 * from this page's own wrapper. */
.activity__action[b-9q5umfdba1] {
    display: flex;
    min-width: 0;
}

.activity__action[b-9q5umfdba1]  .badge {
    max-width: 100%;
    min-width: 0;
    justify-content: flex-start;
}

.activity__action[b-9q5umfdba1]  .badge > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity__search-clear:focus-visible[b-9q5umfdba1] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* ── User cell (proto:134-142) ── */
.activity__actor[b-9q5umfdba1] {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.activity__avatar[b-9q5umfdba1] {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--brand-100);
    color: var(--brand-700);
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    line-height: 1;
}

/* No person behind the event — a scheduled job or a model-driven step. */
.activity__avatar--system[b-9q5umfdba1] {
    background: var(--bg-secondary);
    color: var(--fg-quaternary);
}

.activity__actor-name[b-9q5umfdba1] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity__actor-none[b-9q5umfdba1] {
    color: var(--text-disabled);
}

/* ── Detail + time cells ──
 * Both are page-rendered <span>s inside DataTable's <td>, so they keep the scope attribute and
 * need no ::deep. The detail span is block-level: text-overflow only clips a box with a width,
 * and inside a fixed-layout cell a block takes the cell's. */
.activity__detail[b-9q5umfdba1] {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.activity__time[b-9q5umfdba1] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
 * First-load skeleton (proto:100-112)
 *
 * Mirrors the real row geometry so the table does not jump when the data lands. There is no
 * DataTable inside this state, so the skeleton draws the same box .table-section will
 * (border, radius, background, shadow - Styles/components/table.css:242-247) and clips its rows
 * to the rounded corners; otherwise ten bare rows would show and the card would pop in with
 * the data.
 * -------------------------------------------------------------------------- */
.activity__card--skeleton[b-9q5umfdba1] {
    padding: 8px 16px;
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
}

.activity__skeleton-row[b-9q5umfdba1] {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-tertiary);
}

.activity__skeleton-row:last-child[b-9q5umfdba1] {
    border-bottom: none;
}

.activity__skeleton-grow[b-9q5umfdba1] {
    flex: 1;
    min-width: 0;
}
/* /Components/Pages/CaseboardSetup/CaseboardSetup.razor.rz.scp.css */
/* ── CaseboardSetup Shell ── */

.cbs-user-header[b-m76flg4xsc] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-4) var(--spacing-4) var(--spacing-3);
    border-bottom: 1px solid var(--color-border-secondary);
    margin-bottom: var(--spacing-1);
}

.cbs-user-header__info[b-m76flg4xsc] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cbs-user-header__name[b-m76flg4xsc] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cbs-user-header__status[b-m76flg4xsc] {
    font-size: var(--font-size-text-xs);
    color: var(--color-text-tertiary);
    white-space: nowrap;
}
/* /Components/Pages/CaseboardSetup/CaseCaseProfile/AddDocumentDrawer.razor.rz.scp.css */
.add-doc[b-p9hrxl7crj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.add-doc__section[b-p9hrxl7crj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

/* Existing docs already on this step */
.add-doc__existing[b-p9hrxl7crj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
}

.add-doc__existing-item[b-p9hrxl7crj] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2);
    width: 100%;
    padding: var(--spacing-2) var(--spacing-3);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
}

.add-doc__existing-item:hover[b-p9hrxl7crj] {
    background: var(--color-bg-secondary-hover, var(--color-bg-tertiary));
}

/* Media picker */
.add-doc__media-list[b-p9hrxl7crj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
    max-height: 280px;
    overflow-y: auto;
}

.add-doc__media-item[b-p9hrxl7crj] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2-5);
    width: 100%;
    padding: var(--spacing-2) var(--spacing-3);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    color: var(--color-text-tertiary);
    transition: border-color 0.12s ease, background-color 0.12s ease;
}

.add-doc__media-item:hover[b-p9hrxl7crj] {
    border-color: var(--color-border-brand, var(--color-brand-solid));
}

.add-doc__media-item--selected[b-p9hrxl7crj] {
    background: var(--bg-brand-subtle, #f0f4ff);
    border: 2px solid var(--color-border-brand, var(--color-brand-solid));
    color: var(--color-text-brand-primary);
}

.add-doc__media-meta[b-p9hrxl7crj] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.add-doc__media-sub[b-p9hrxl7crj] {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-2);
}

.add-doc__truncate[b-p9hrxl7crj] {
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-doc__allused[b-p9hrxl7crj] {
    padding: var(--spacing-3);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    color: var(--color-text-tertiary);
    text-align: center;
}

/* Extracting */
.add-doc__extracting[b-p9hrxl7crj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    padding: var(--spacing-4) 0;
}

/* Live extraction progress pushed over the ExtractionHub. Rendered only once a real
   percentage has arrived, so the bar never implies work that is not happening. */
.add-doc__progress[b-p9hrxl7crj] {
    height: 6px;
    width: 100%;
    border-radius: 999px;
    background: var(--color-bg-quaternary, var(--color-bg-secondary));
    overflow: hidden;
}

.add-doc__progress-bar[b-p9hrxl7crj] {
    height: 100%;
    border-radius: 999px;
    background: var(--color-bg-brand-solid);
    transition: width 200ms ease;
}

/* Done */
.add-doc__done[b-p9hrxl7crj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    padding: var(--spacing-3);
    background: var(--bg-success-subtle, var(--bg-success-primary));
    border: 1px solid var(--border-success);
    border-radius: var(--radius-md);
}

.add-doc__done-head[b-p9hrxl7crj] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--text-success-primary, #047857);
}

.add-doc__preview[b-p9hrxl7crj] {
    color: var(--color-text-secondary);
    white-space: pre-wrap;
    margin: 0;
    max-height: 160px;
    overflow-y: auto;
}

/* Error */
.add-doc__error[b-p9hrxl7crj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    padding: var(--spacing-3);
    background: var(--bg-error-primary);
    border: 1px solid var(--border-error);
    border-radius: var(--radius-md);
    color: var(--text-error-primary, #b91c1c);
}
/* /Components/Pages/CaseboardSetup/CaseCaseProfile/CaseCaseProfile.razor.rz.scp.css */
/* ── Root layout ──
   The root carries .layout-body for its flex behaviour, but NOT its gutters: the design's case
   detail is edge-to-edge (proto:81) and .layout-body's 15px padding + 16px gap were stacking on
   top of .layout-settings__panel's own 15px, insetting the three columns by 30px and floating
   them apart where the design draws a border. */
.ccp-root[b-kbxc40bteq] {
    min-height: 0;
    padding: 0;
    gap: 0;
    overflow: hidden;
}

/* ── Hub disconnect banner ── */
/* Full-bleed now that the root has no gutters: a hairline band above the columns rather than a
   floating card that would butt straight into their borders. */
.ccp-hub-banner[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    flex-shrink: 0;
    padding: var(--spacing-2) 20px;
    background: var(--bg-warning-primary);
    border: none;
    border-bottom: 1px solid var(--border-warning);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-warning-primary);
}

.ccp-hub-banner-dot[b-kbxc40bteq] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fg-warning-primary);
    animation: ccp-pulse-b-kbxc40bteq 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* ── Loading ── */
.ccp-loading-wrap[b-kbxc40bteq] {
    display: flex;
    justify-content: center;
    padding: var(--spacing-10) 0;
}

/* ── Three-column body (proto:81-372) ──
   Step list | report canvas | context rail. Flush, separated by hairlines — no gutter. The 24px
   gap that used to sit between them is what made this read as three floating panes instead of the
   design's single surface. */
.ccp-layout[b-kbxc40bteq] {
    display: flex;
    gap: 0;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

/* ── Left sidebar (Step & Stage list) — proto:82 ──
   `width:330px; border-right:1px solid var(--border-secondary); padding:14px 12px; gap:4px` */
.ccp-sidebar[b-kbxc40bteq] {
    width: 330px;
    min-width: 330px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    padding: 14px 12px;
    border-right: 1px solid var(--border-secondary);
    background: var(--bg-primary);
    overflow-y: auto;
    /* A step row can hold a long action label ("Approve \"Acknowledge the enquiry\"") and .btn is
       nowrap, so without this the column's min-content width exceeds its declared width and the
       whole list grows a horizontal scrollbar. Clip sideways; the fix for the label itself is
       below. */
    overflow-x: hidden;
}

/* proto:89-93 — a caption, a rule to the far edge, and the n-of-m on the right. */
.ccp-stage-label[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px 4px;
}

.ccp-stage-label-name[b-kbxc40bteq] {
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-quaternary);
}

.ccp-stage-rule[b-kbxc40bteq] {
    flex: 1;
    height: 1px;
    background: var(--border-tertiary);
}

/* ── Step card (proto:94-113) ──
   `padding:10px; border:1px solid; border-radius:var(--radius-lg)` — a card, not a timeline row. */
.ccp-step-row[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ccp-step-main[b-kbxc40bteq] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.ccp-step-row:hover[b-kbxc40bteq] {
    background: var(--bg-secondary-subtle);
}

.ccp-step-row--active[b-kbxc40bteq] {
    border-color: var(--border-brand);
    background: var(--bg-brand-primary);
}

/* A locked step is NOT dimmed (2026-11-03). The prototype's `op: locked ? '0.55'` (proto:769), stacked
   on a 0.72 card, left locked steps at ~40% and unreadable. The lock now reads from the indicator, the
   "Locked" status and a slightly softer name - every word stays at full contrast. */
.ccp-step-row--locked .ccp-step-name[b-kbxc40bteq] {
    color: var(--text-secondary);
}

.ccp-step-row--locked .ccp-step-meta[b-kbxc40bteq] {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Step connector (T75) ──
   A dotted vertical line joins each step's status indicator to the next one under the same stage, so a
   stage reads as a sequence rather than a stack of separate cards. The row class is set in markup only
   when the NEXT item is a step, so the last step of a stage (before a stage caption, or the list's end)
   draws nothing. The geometry is the card's own: indicator centre = border 1 + padding 10 + half of 26;
   the line starts 3px under the indicator and stops 3px above the next one, which sits below the card by
   the sidebar's 4px gap + that card's border 1 + padding 10. */
.ccp-step-row[b-kbxc40bteq] {
    position: relative;
}

.ccp-step-row--linked[b-kbxc40bteq]::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 40px;
    bottom: -12px;
    border-left: 2px dotted var(--border-primary);
    pointer-events: none;
}

/* ── Step track: the status indicator ── */
.ccp-step-track[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 26px;
}

.ccp-indicator[b-kbxc40bteq] {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ccp-indicator--running[b-kbxc40bteq] {
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
}

.ccp-indicator--done[b-kbxc40bteq] {
    background: var(--bg-brand-solid);
}

.ccp-indicator--partial[b-kbxc40bteq] {
    background: var(--color-border-secondary);
}

.ccp-indicator--pending[b-kbxc40bteq] {
    border: 1.5px solid var(--color-border-secondary);
}

.ccp-step-num[b-kbxc40bteq] {
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    color: var(--color-text-tertiary);
}

/* ── Step info (proto:99-102) ── */
.ccp-step-info[b-kbxc40bteq] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ccp-step-name-row[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: var(--spacing-1-5);
    min-width: 0;
}

/* proto:100 — `font:600 12.5px`. It was inheriting .text-sm-semibold (14px), which is what made
   the list read a size larger than the design everywhere. */
.ccp-step-name[b-kbxc40bteq] {
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text-primary);
    overflow-wrap: anywhere;
}

/* proto:103-113 — the icon cluster, top-right of the card, aligned to the step name. */
.ccp-step-icons[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    align-self: flex-start;
}

/* Rendered via <Button IconOnly CssClass="ccp-step-icon-btn"> - Button owns the root, so no
   scope attribute lands on it (Task 9's hazard); ::deep is required on every rule below. */
[b-kbxc40bteq] .ccp-step-icon-btn {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--fg-quaternary);
    cursor: pointer;
    transition: color 0.12s ease, background-color 0.12s ease;
}

[b-kbxc40bteq] .ccp-step-icon-btn:hover:not(:disabled) {
    background: var(--background-surface-hover);
    color: var(--color-text-primary);
}

[b-kbxc40bteq] .ccp-step-icon-btn--on {
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
}

[b-kbxc40bteq] .ccp-step-icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

[b-kbxc40bteq] .ccp-step-icon-btn:focus-visible {
    outline: 2px solid var(--fg-brand-primary);
    outline-offset: 1px;
}

/* ── The inline prompt block (proto:115-126) ──
   It EXPANDS THE CARD. This replaces a position:fixed hover popover, which floated beside the
   list, could not be read next to a second step's, and is not what the design draws. */
.ccp-step-prompts[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 8px;
    padding: 9px 10px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-secondary-subtle);
    cursor: default;
    animation: ccp-pop-b-kbxc40bteq 140ms ease-out;
}

.ccp-step-prompts-lede[b-kbxc40bteq] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.55;
    color: var(--text-tertiary);
}

.ccp-step-prompt[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ccp-step-prompt-label[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-quaternary);
}

.ccp-step-prompt-label svg[b-kbxc40bteq] {
    flex-shrink: 0;
    color: var(--fg-brand-primary);
}

.ccp-step-prompt-body[b-kbxc40bteq] {
    margin: 0;
    padding: 7px 9px;
    border: 1px solid var(--border-tertiary);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    font-family: var(--font-family-mono, ui-monospace, monospace);
    font-size: var(--font-size-text-xs);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@keyframes ccp-pop-b-kbxc40bteq {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

/* proto:101 — `font:400 11px/1.5`. The step's own description is a second line of the same
   voice as the meta, clamped: the design's card is two lines of text, and an unclamped
   description on a nine-step workflow turned the 330px column into a page of prose. The full
   text is one click away in the prompt block and in the report card. */
.ccp-step-desc[b-kbxc40bteq] {
    color: var(--color-text-tertiary);
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ccp-step-meta[b-kbxc40bteq] {
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
}

.ccp-step-actions[b-kbxc40bteq] {
    margin-top: 6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-2);
}

/* Rendered via <Button CssClass="ccp-add-doc-btn"> - ::deep, same hazard as above. */
[b-kbxc40bteq] .ccp-add-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1-5);
    padding: var(--spacing-1) var(--spacing-2-5);
    background: transparent;
    border: 1px dashed var(--color-border-secondary);
    border-radius: var(--radius-sm);
    color: var(--color-text-tertiary);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: color 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

[b-kbxc40bteq] .ccp-add-doc-btn:hover {
    color: var(--color-text-brand-primary);
    border-color: var(--color-border-brand, var(--color-brand-solid));
    background: var(--bg-brand-subtle, #f0f4ff);
}

.ccp-time-ago[b-kbxc40bteq] {
    color: var(--color-text-quaternary);
}

/* ── Mini progress (sidebar) ── */
.ccp-mini-progress[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: var(--spacing-1);
}

.ccp-mini-progress-label[b-kbxc40bteq] {
    display: block;
}

.ccp-mini-track[b-kbxc40bteq] {
    height: 3px;
    background: var(--bg-brand-secondary);
    border-radius: 2px;
    overflow: hidden;
}

.ccp-mini-fill[b-kbxc40bteq] {
    height: 100%;
    background: linear-gradient(90deg, var(--bg-brand-solid), var(--fg-brand-secondary));
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Report canvas (proto:135) ──
   `flex:1; overflow-y:auto; background:var(--bg-secondary-subtle); padding:16px 20px; gap:12px`
   The tinted canvas is load-bearing: it is what makes the white report cards read as cards. On
   the page background they were white-on-white and their borders were the only thing separating
   them, which is the "borders don't match" this column was showing. */
.ccp-detail[b-kbxc40bteq] {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary-subtle);
}

/* ── What's next box ── */
.ccp-whats-next-icon[b-kbxc40bteq] {
    color: var(--fg-brand-primary);
}

/* proto:138-142 — `border:1px solid var(--border-brand); radius-xl; padding:12px 16px` */
.ccp-whats-next[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    background: var(--bg-brand-primary);
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-xl);
    padding: 12px 16px;
}

.ccp-whats-next-body[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* proto:141 — `font:600 12px; color:var(--text-brand-primary)` over `400 12.5px/1.5 secondary`.
   Both lines were 14px, so the label and the sentence weighed the same. */
.ccp-whats-next-title[b-kbxc40bteq] {
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    color: var(--text-brand-primary);
}

.ccp-whats-next-text[b-kbxc40bteq] {
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0;
    text-wrap: pretty;
}

/* ── Report card (proto:150) ──
   `border:1px solid var(--border-secondary); border-radius:var(--radius-xl);
    background:var(--bg-primary); box-shadow:var(--shadow-xs)` — the radius and the hairline lift
   are the design's card, and both were missing (radius-md, no shadow). */
.ccp-card[b-kbxc40bteq] {
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    flex-shrink: 0;
    scroll-margin-top: var(--spacing-1);
}

.ccp-card--running[b-kbxc40bteq] {
    border-color: var(--bg-brand-secondary);
}

.ccp-card-header[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
}

/* ── The lean center (2026-10-23) ──
   One open result card - the selected step - and every other result as one line that opens it.
   The open card reads top to bottom: where it sits and its state, the verdict beside "What's
   next", tabs for the parts of the result, and the approval strip as the card's last edge. */

.ccp-card-heading[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.ccp-card-name-row[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-2);
}

/* "Step 3 of 7 · Medical review stage" - an eyebrow, same voice as the list's stage rules. */
.ccp-step-pos[b-kbxc40bteq] {
    color: var(--color-text-quaternary);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ccp-card-actions[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--spacing-1);
    flex-shrink: 0;
}

.ccp-card-when[b-kbxc40bteq] {
    color: var(--color-text-quaternary);
    margin-left: var(--spacing-1);
    white-space: nowrap;
}

.ccp-result .ccp-card-header[b-kbxc40bteq],
.ccp-card--idle .ccp-card-header[b-kbxc40bteq] {
    align-items: flex-start;
}

.ccp-result__body[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

/* A closed result is only its line: no card padding around it, no lift. */
.ccp-result--collapsed[b-kbxc40bteq] {
    padding: 0;
    gap: 0;
    box-shadow: none;
}

/* The line is a real <Button>, so the component owns its root: ::deep, and three classes deep
   to win over .btn / .btn-md. */
.ccp-result[b-kbxc40bteq]  .ccp-result-row {
    width: 100%;
    height: auto;
    min-height: 56px;
    padding: var(--spacing-2-5) var(--spacing-4);
    justify-content: flex-start;
    gap: var(--spacing-3);
    text-align: left;
    white-space: normal;
    border-radius: var(--radius-xl);
    color: var(--color-text-primary);
}

.ccp-result-row__mark[b-kbxc40bteq] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-secondary);
    color: var(--color-text-quaternary);
    background: var(--bg-primary);
}

.ccp-result-row__mark--done[b-kbxc40bteq] {
    border-color: var(--bg-success-solid);
    background: var(--bg-success-solid);
    color: var(--fg-white);
}

.ccp-result-row__mark--wait[b-kbxc40bteq] {
    border-color: var(--border-warning);
    background: var(--bg-warning-primary);
    color: var(--text-warning-primary);
}

.ccp-result-row__mark--warn[b-kbxc40bteq] {
    border-color: var(--border-warning);
    color: var(--text-warning-primary);
}

.ccp-result-row__mark--running[b-kbxc40bteq] {
    border-color: var(--border-brand);
    color: var(--fg-brand-primary);
}

.ccp-result-row__text[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.ccp-result-row__name[b-kbxc40bteq] {
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
}

.ccp-result-row__meta[b-kbxc40bteq] {
    font-size: var(--font-size-text-xs);
    font-weight: 400;
    color: var(--color-text-tertiary);
}

.ccp-result-row__when[b-kbxc40bteq] {
    font-size: var(--font-size-text-xs);
    font-weight: 400;
    color: var(--color-text-quaternary);
    white-space: nowrap;
}

.ccp-result[b-kbxc40bteq]  .ccp-result-row__caret {
    flex-shrink: 0;
    color: var(--color-text-quaternary);
}

/* The verdict and "What's next" side by side; one alone takes the whole row. */
.ccp-verdict[b-kbxc40bteq] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-2-5);
}

.ccp-verdict--pair[b-kbxc40bteq] {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ccp-verdict .ccp-status-title[b-kbxc40bteq] {
    font-size: var(--font-size-text-sm);
}

/* Beside "What's next" the score sits level with the title, not in the middle of the box. */
.ccp-verdict .ccp-status-score[b-kbxc40bteq] {
    align-self: flex-start;
    padding: 2px var(--spacing-2-5);
}

.ccp-verdict .ccp-whats-next[b-kbxc40bteq] {
    align-items: flex-start;
    padding: var(--spacing-3) var(--spacing-3-5);
    border-radius: var(--radius-sm);
}

/* The Tabs component owns its root: reach it with ::deep. Flush to the card's own gutters. */
.ccp-result__body[b-kbxc40bteq]  .ccp-result-tabs {
    padding: 0;
    margin-top: var(--spacing-1);
}

.ccp-tabpanel[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

/* An AI result card brings its own top margin for when it sat under other content; at the top of
   its own tab it would only push the result down. */
.ccp-tabpanel[b-kbxc40bteq]  .ct-case:first-child {
    margin-top: 0;
}

.ccp-stalled-text[b-kbxc40bteq] {
    color: var(--color-text-tertiary);
    margin: 0;
}

/* The approval strip is the open card's last edge - full bleed, on its own tint, so the decision
   is always in the same place. A run in flight has nothing to approve: no strip at all. */
.ccp-result__body > .ccp-gate[b-kbxc40bteq] {
    margin: var(--spacing-1) -18px -18px;
    padding: var(--spacing-3) 18px;
    border-top: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.ccp-gate--none[b-kbxc40bteq] {
    display: none;
}

.ccp-engine-pill[b-kbxc40bteq] {
    background: var(--utility-purple-50);
    color: var(--utility-purple-700);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 99px;
}

/* ── Running progress card ── */
.ccp-progress-card[b-kbxc40bteq] {
    background: linear-gradient(135deg, var(--bg-brand-secondary) 0%, var(--bg-brand-primary) 50%, var(--bg-brand-primary-alt) 100%);
    border: 1px solid var(--bg-brand-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-5) var(--spacing-6);
}

.ccp-progress-card-top[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-3);
}

.ccp-progress-pulse-row[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2-5);
}

.ccp-progress-pulse[b-kbxc40bteq] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-brand-solid);
    animation: ccp-pulse-b-kbxc40bteq 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes ccp-pulse-b-kbxc40bteq {
    0%, 100% { opacity: 1; transform: scale(1); }

    50%       { opacity: 0.5; transform: scale(0.8); }

}

.ccp-progress-track[b-kbxc40bteq] {
    height: 8px;
    background: var(--utility-brand-300);
    border-radius: 99px;
    overflow: hidden;
}

.ccp-progress-bar[b-kbxc40bteq] {
    height: 100%;
    background: linear-gradient(90deg, var(--bg-brand-solid), var(--fg-brand-secondary));
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ccp-progress-bar[b-kbxc40bteq]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
    animation: ccp-shimmer-b-kbxc40bteq 1.8s ease-in-out infinite;
}

@keyframes ccp-shimmer-b-kbxc40bteq {
    0%   { transform: translateX(-100%); }

    100% { transform: translateX(100%); }

}

.ccp-stage-markers[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--spacing-2-5);
}

.ccp-stage-marker[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ccp-stage-dot[b-kbxc40bteq] {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ccp-stage-dot--done[b-kbxc40bteq]    { background: var(--bg-brand-solid); }

.ccp-stage-dot--active[b-kbxc40bteq]  { background: white; border: 2px solid var(--bg-brand-solid); box-shadow: 0 0 0 3px var(--utility-brand-200); }

.ccp-stage-dot--pending[b-kbxc40bteq] { background: var(--utility-brand-200); }

/* ── Spin animation ── */
.ccp-spin[b-kbxc40bteq] {
    animation: ccp-spin-b-kbxc40bteq 1s linear infinite;
}

@keyframes ccp-spin-b-kbxc40bteq {
    from { transform: rotate(0deg); }

    to   { transform: rotate(360deg); }

}

/* ── Status banner ── */
.ccp-status-banner[b-kbxc40bteq] {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    border-radius: var(--radius-sm);
    padding: var(--spacing-3) var(--spacing-3-5);
    border: 1px solid;
}

.ccp-status-icon[b-kbxc40bteq]   { flex: 0 0 auto; line-height: 0; padding-top: 1px; }

.ccp-status-body[b-kbxc40bteq]   { flex: 1 1 auto; min-width: 0; }

.ccp-status-title[b-kbxc40bteq]  { font-size: var(--font-size-text-md); font-weight: 600; margin: 0 0 2px; }

.ccp-status-msg[b-kbxc40bteq]    { font-size: var(--font-size-text-sm); margin: 0; line-height: 1.5; }

.ccp-status-score[b-kbxc40bteq]  { flex: 0 0 auto; align-self: center; font-size: var(--font-size-text-sm); font-weight: 600;
                     padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,0.7); white-space: nowrap; }

.ccp-status-banner--low[b-kbxc40bteq]     { background: var(--bg-error-primary); border-color: var(--border-error); color: var(--text-error-primary); }

.ccp-status-banner--medium[b-kbxc40bteq]  { background: var(--bg-warning-primary); border-color: var(--border-warning); color: var(--text-warning-primary); }

.ccp-status-banner--high[b-kbxc40bteq]    { background: var(--bg-success-primary); border-color: var(--border-success); color: var(--text-success-primary); }

.ccp-status-banner--neutral[b-kbxc40bteq] { background: var(--background-surface-secondary); border-color: var(--border-secondary); color: var(--color-text-secondary); }

/* ── Summary text ── */
.ccp-summary-text[b-kbxc40bteq],
.ccp-summary-preview[b-kbxc40bteq] {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.ccp-data-text[b-kbxc40bteq] {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

/* Rendered-markdown wrapper (Preview mode) */
.ccp-summary-rendered[b-kbxc40bteq] {
    color: var(--color-text-secondary);
    margin: 0;
}

/* Inline citation references live inside the MarkdownViewer MarkupString → reach
   them with ::deep from this statically-authored wrapper. */
.ccp-summary-rendered[b-kbxc40bteq]  .agent-citation-ref {
    cursor: pointer;
    color: var(--color-text-brand-primary);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    padding: 0 1px;
}

.ccp-summary-rendered[b-kbxc40bteq]  .agent-citation-ref:hover {
    text-decoration: underline;
}

/* ── Flags ── */
.ccp-flags-row[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    flex-wrap: wrap;
}

.ccp-flags-label[b-kbxc40bteq] { color: var(--color-text-secondary); font-weight: 500; }

.ccp-flag-pill[b-kbxc40bteq] {
    background: var(--bg-warning-primary);
    color: var(--text-warning-primary);
    padding: 3px 10px;
    border-radius: 99px;
    cursor: help;
}

/* ── Citations ── */
.ccp-citations-strip[b-kbxc40bteq] {
    display: flex;
    gap: var(--spacing-1-5);
    flex-wrap: wrap;
    padding-top: var(--spacing-2);
    border-top: 1px solid var(--border-tertiary);
}

.ccp-citation-tag[b-kbxc40bteq] {
    color: var(--color-text-tertiary);
    background: var(--background-surface-secondary);
    padding: 3px 8px;
    border-radius: var(--radius-xs);
}

/* ── Card footer ── */
.ccp-card-footer[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    padding-top: var(--spacing-2);
    border-top: 1px solid var(--border-tertiary);
}

.ccp-card-footer--end[b-kbxc40bteq] {
    justify-content: flex-end;
    border-top: none;
    padding-top: 0;
}

.ccp-card-footer-left[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.ccp-link-btn[b-kbxc40bteq] {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-text-brand-primary);
    cursor: pointer;
    font-family: inherit;
}

.ccp-link-btn:hover:not(:disabled)[b-kbxc40bteq] { text-decoration: underline; }

.ccp-link-btn:disabled[b-kbxc40bteq] {
    color: var(--color-text-disabled);
    cursor: not-allowed;
}

.ccp-stage-label-count[b-kbxc40bteq] {
    margin-left: auto;
    font-weight: 500;
    color: var(--color-text-quaternary);
}

/* -- Step rail additions -- */
.ccp-indicator--locked[b-kbxc40bteq] {
    background: var(--bg-secondary);
    color: var(--fg-secondary);
    border: 1px solid var(--border-primary);
}

.ccp-step-meta[b-kbxc40bteq] {
    color: var(--text-tertiary);
    margin: 0;
}

/* -- Locked: the way forward (E20) --
   One white box with the reason and the control. White, not a tint, so it reads the same on a plain,
   hovered or selected (brand-tinted) card; the text is full contrast. Only the first step waiting
   on a blocker draws it in the rail - the rest draw .ccp-locked-wait below. */
.ccp-locked[b-kbxc40bteq] {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    flex-basis: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
}

.ccp-locked-text[b-kbxc40bteq] {
    color: var(--text-secondary);
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    line-height: 1.5;
}

/* A later locked step: "Waiting on step 1" in one line, beside Import. */
.ccp-locked-wait[b-kbxc40bteq] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: var(--text-secondary);
    font-weight: 500;
}

.ccp-locked-wait svg[b-kbxc40bteq] {
    flex-shrink: 0;
    color: var(--fg-tertiary);
}


.ccp-locked-refusal[b-kbxc40bteq],
.ccp-gate-refusal[b-kbxc40bteq] {
    color: var(--text-error-primary, var(--color-text-tertiary));
}

/* -- The approval strip -- */
.ccp-gate[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    flex-wrap: wrap;
    margin-top: var(--spacing-3);
    padding: var(--spacing-3) 0 0;
    border-top: 1px solid var(--border-tertiary);
}

.ccp-gate--approved[b-kbxc40bteq] { color: var(--color-text-tertiary); }

.ccp-gate-text[b-kbxc40bteq] { color: var(--color-text-secondary); flex: 1; min-width: 0; }

.ccp-gate-approved[b-kbxc40bteq] {
    color: var(--color-text-secondary);
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.ccp-gate-when[b-kbxc40bteq] { color: var(--color-text-quaternary); }

/* Outstanding-work chips beside the Approve button — what the panel reported mid-scroll,
   restated at the decision. Same warning tokens as the agent block's own warn rows. */
.ccp-gate-badge[b-kbxc40bteq] {
    display: inline-flex;
    align-items: center;
    padding: 1px var(--spacing-2);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-secondary);
    font-weight: 500;
    white-space: nowrap;
    color: var(--color-text-secondary);
    background: var(--bg-secondary);
}

.ccp-gate-badge--warn[b-kbxc40bteq] {
    border-color: var(--border-warning);
    background: var(--bg-warning-primary);
    color: var(--text-warning-primary);
}

/* -- Idle "Not run" card -- */
.ccp-card--idle[b-kbxc40bteq] { gap: var(--spacing-3); }

.ccp-idle-desc[b-kbxc40bteq] { color: var(--color-text-secondary); margin: 0; }

.ccp-input-chips[b-kbxc40bteq] { display: flex; gap: var(--spacing-2); flex-wrap: wrap; }

/* .ccp-input-chip renders on plain page-owned <span> chips AND on the one clickable
   <Button CssClass="ccp-input-chip ccp-input-chip--edit"> chip - ::deep reaches both. */
[b-kbxc40bteq] .ccp-input-chip {
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-secondary);
    background: var(--background-surface-secondary);
    color: var(--color-text-tertiary);
}

/* -- OD-17 requirement checks (flag-gated, honest not-connected state) -- */
.ccp-reqs[b-kbxc40bteq] {
    margin-top: var(--spacing-3);
    padding: var(--spacing-3);
    border: 1px dashed var(--border-secondary);
    border-radius: var(--radius-sm);
    background: var(--background-surface-secondary);
}

.ccp-reqs-title[b-kbxc40bteq] { margin: 0 0 4px; font-weight: 600; color: var(--color-text-secondary); }

.ccp-reqs-text[b-kbxc40bteq] { margin: 0; color: var(--color-text-tertiary); }

/* -- Right rail: "Inputs the AI uses" (proto:373) --
   `width:320px; border-left:1px solid var(--border-secondary); background:var(--bg-primary)`.
   The rail is a COLUMN of the layout, so its gutters belong to its head and body (which each
   have their own), not to a padding-left on the column itself — that inset only the left edge
   and left the right edge flush against the viewport. */
.ccp-rail[b-kbxc40bteq] {
    width: 320px;
    min-width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border-left: 1px solid var(--border-secondary);
    background: var(--bg-primary);
}

/* proto:374 — the head is a bordered band with its own 10px/12px, not a padding-less strip. */
.ccp-rail-head[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    flex-shrink: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-secondary);
}

/* The default view has no banded head in the design (proto:376): the caption sits at the top of
   the scrolling column on the body's own gutters. */
.ccp-rail-head--plain[b-kbxc40bteq] {
    border-bottom: none;
    padding: 14px 12px 0;
}

.ccp-rail-head--plain + .ccp-rail-body[b-kbxc40bteq] { padding-top: 8px; }

/* proto:384 — `font:600 10.5px uppercase; letter-spacing:.05em` */
.ccp-rail-title[b-kbxc40bteq] {
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--color-text-quaternary);
}

.ccp-rail-head-text[b-kbxc40bteq] { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.ccp-rail-head-sub[b-kbxc40bteq] { color: var(--color-text-quaternary); }

/* Rendered via <Button IconOnly CssClass="ccp-rail-back"> - ::deep, same hazard as above. */
[b-kbxc40bteq] .ccp-rail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
}

[b-kbxc40bteq] .ccp-rail-back:hover { background: var(--background-surface-secondary); }

.ccp-rail-open[b-kbxc40bteq] { color: var(--color-text-brand-primary); text-decoration: none; font-size: var(--font-size-text-sm); }

.ccp-rail-open:hover[b-kbxc40bteq] { text-decoration: underline; }

/* proto:375 — `padding:14px 12px; gap:12px` */
.ccp-rail-body[b-kbxc40bteq] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    padding: 14px 12px;
}

/* Rendered via <Button CssClass="ccp-rail-input"> for the two clickable rows; the "inert" third
   row stays a plain page-owned <div> (see .ccp-rail-input--inert) and keeps its scope attribute
   normally - ::deep still reaches it too, harmlessly, since it matches by class either way. */
[b-kbxc40bteq] .ccp-rail-input {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    padding: var(--spacing-2) var(--spacing-3);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

[b-kbxc40bteq] .ccp-rail-input:hover { background: var(--background-surface-secondary); }

.ccp-rail-input--inert[b-kbxc40bteq] { cursor: default; background: var(--background-surface-secondary); }

.ccp-rail-input-name[b-kbxc40bteq] { color: var(--color-text-primary); }

.ccp-rail-input-meta[b-kbxc40bteq] { color: var(--color-text-quaternary); }

.ccp-rail-refusal[b-kbxc40bteq] {
    padding: var(--spacing-3);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    background: var(--background-surface-secondary);
}

.ccp-rail-refusal-title[b-kbxc40bteq] { margin: 0 0 4px; font-weight: 600; color: var(--color-text-secondary); }

.ccp-rail-refusal-text[b-kbxc40bteq] { margin: 0 0 6px; color: var(--color-text-tertiary); }

.ccp-rail-empty[b-kbxc40bteq] { color: var(--color-text-quaternary); margin: 0; }

.ccp-chat-row[b-kbxc40bteq] { display: flex; flex-direction: column; gap: 2px; }

.ccp-chat-row--in[b-kbxc40bteq] { align-items: flex-start; }

.ccp-chat-row--out[b-kbxc40bteq] { align-items: flex-end; }

.ccp-chat-bubble[b-kbxc40bteq] {
    max-width: 88%;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-secondary);
    background: var(--background-surface-secondary);
    color: var(--color-text-secondary);
}

.ccp-chat-row--out .ccp-chat-bubble[b-kbxc40bteq] {
    background: var(--bg-brand-primary, var(--background-surface-secondary));
    color: var(--color-text-secondary);
}

.ccp-chat-meta[b-kbxc40bteq] { color: var(--color-text-quaternary); }

/* -- Case-info card + Run log (prototype right rail, proto:392-408) -- */
.ccp-rail-case[b-kbxc40bteq],
.ccp-rail-log[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ccp-rail-case[b-kbxc40bteq] {
    padding: 10px 12px;
    border: 1px solid var(--color-border-secondary);
    border-radius: var(--radius-lg);
    background: var(--background-surface-secondary);
}

.ccp-rail-case-head[b-kbxc40bteq] {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-quaternary);
}

.ccp-rail-case-id[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ccp-rail-case-meta[b-kbxc40bteq] { color: var(--color-text-quaternary); }

.ccp-rail-log[b-kbxc40bteq] {
    gap: 7px;
    padding-top: 4px;
    margin-top: 2px;
    border-top: 1px solid var(--color-border-secondary);
}

.ccp-rail-log-row[b-kbxc40bteq] {
    display: flex;
    gap: 6px;
    line-height: 1.5;
    color: var(--color-text-tertiary);
}

.ccp-rail-log-row--error[b-kbxc40bteq] { color: var(--color-text-error-primary); }

.ccp-rail-log-time[b-kbxc40bteq] {
    flex-shrink: 0;
    color: var(--color-text-quaternary);
    font-variant-numeric: tabular-nums;
}

/* -- Patient card at the head of the step list (proto:82-88) -- */
/* proto:83 — `background:var(--bg-secondary-subtle)`, the same tint the report canvas uses, not
   the heavier surface-secondary this was painted with. */
.ccp-patient[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 10px;
    margin-bottom: 6px;
    border: 1px solid var(--color-border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary-subtle);
}

/* proto:86 — `font:600 12.5px` / `font:400 11px`, matching the step cards below it. */
.ccp-patient-name.text-sm-semibold[b-kbxc40bteq] {
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
}

.ccp-patient-text[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.ccp-patient-name[b-kbxc40bteq] {
    color: var(--color-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccp-patient-meta[b-kbxc40bteq] { color: var(--color-text-quaternary); }

/* -- Sidebar overflow containment ------------------------------------------------------------
   Flex children default to min-width:auto, which is min-CONTENT, so one unbreakable child (a
   nowrap .btn label, a long step name) silently widens the whole column. These let the column's
   declared width win and make the long labels wrap instead. */
.ccp-step-row[b-kbxc40bteq],
.ccp-step-info[b-kbxc40bteq],
.ccp-locked[b-kbxc40bteq] { min-width: 0; }

.ccp-step-name[b-kbxc40bteq],
.ccp-step-meta[b-kbxc40bteq],
.ccp-step-desc[b-kbxc40bteq] { overflow-wrap: anywhere; }

/* The Locked way-forward action names the blocking step, so its label is as long as that step's
   name ("Run \"Verify identity and residency\""). .btn is white-space:nowrap, so left alone it
   sets the column's min-content width and the whole step list grows a horizontal scrollbar.

   ::deep IS LOAD-BEARING HERE. That .btn lives inside the <Button> child component, and a scoped
   .razor.css rule only matches elements carrying THIS component's scope attribute - which child
   components' internals do not. Without ::deep this rule silently matches nothing, which is
   exactly why the first attempt at this fix changed nothing on screen. */
[b-kbxc40bteq] .ccp-locked .btn,
[b-kbxc40bteq] .ccp-step-actions .btn {
    white-space: normal;
    text-align: left;
    height: auto;
    /* proto:21 defines a `btn-xs` (1.96rem, 11.5px) that the shipped design system does not have,
       and the sidebar's controls are that size in the design. A full-height sm button inside a
       330px card is the single biggest reason this column read heavier than the design. */
    min-height: 1.96rem;
    padding: 5px 10px;
    font-size: var(--font-size-text-xs);
}

/* == Data sources (rail card + center picker) ================================================
   The picker borrows the report canvas's own card language (.ccp-card) so swapping the center
   column never changes its surface; everything below is only the picker's interior. Selected
   rows use the brand-tinted selection the step list already uses (--bg-brand-primary). */

/* -- The Analysis <-> Data sources switch, top of the center column -- */
.ccp-view-switch-row[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    flex-shrink: 0;
}

.ccp-view-switch[b-kbxc40bteq] {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: var(--background-surface-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
}

/* Rendered via <Button CssClass="ccp-view-switch__btn"> - ::deep, same hazard as above. */
[b-kbxc40bteq] .ccp-view-switch__btn {
    padding: 4px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    font-family: inherit;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--color-text-tertiary);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

[b-kbxc40bteq] .ccp-view-switch__btn:hover { color: var(--color-text-primary); }

[b-kbxc40bteq] .ccp-view-switch__btn--active {
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
    font-weight: 600;
    color: var(--color-text-primary);
}

[b-kbxc40bteq] .ccp-view-switch__btn:focus-visible {
    outline: 2px solid var(--fg-brand-primary);
    outline-offset: 1px;
}

.ccp-dsp-actions[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3-5);
}

/* -- Picker cards -- */
.ccp-dsp-card[b-kbxc40bteq] { gap: var(--spacing-2-5); }

.ccp-dsp-head[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2-5);
}

.ccp-dsp-head > .text-sm-semibold[b-kbxc40bteq] { flex: 1; }

.ccp-dsp-head--muted[b-kbxc40bteq] { opacity: 0.55; }

.ccp-dsp-head-text[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.ccp-dsp-head-meta[b-kbxc40bteq] { color: var(--color-text-quaternary); }

.ccp-dsp-lede[b-kbxc40bteq] { margin: 0; color: var(--color-text-tertiary); }

.ccp-dsp-hint[b-kbxc40bteq] { color: var(--color-text-quaternary); }

.ccp-dsp-divider[b-kbxc40bteq] { height: 1px; background: var(--border-tertiary); }

/* -- Chat range options -- */
.ccp-dsp-options[b-kbxc40bteq] {
    display: flex;
    align-items: stretch;
    gap: var(--spacing-2);
    flex-wrap: wrap;
}

.ccp-dsp-option[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: 5px 12px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.ccp-dsp-option:hover[b-kbxc40bteq] { background: var(--bg-secondary-subtle); }

.ccp-dsp-option--selected[b-kbxc40bteq] {
    border-color: var(--bg-brand-secondary);
    background: var(--bg-brand-primary);
}

.ccp-dsp-option--selected:hover[b-kbxc40bteq] { background: var(--bg-brand-primary); }

.ccp-dsp-option-meta[b-kbxc40bteq] { color: var(--color-text-quaternary); }

.ccp-dsp-radio[b-kbxc40bteq] {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--border-primary);
    background: var(--bg-primary);
    box-sizing: border-box;
    flex-shrink: 0;
}

.ccp-dsp-radio--on[b-kbxc40bteq] { border: 5px solid var(--bg-brand-solid); }

.ccp-dsp-date[b-kbxc40bteq] {
    height: 28px;
    padding: 0 8px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
    font-family: inherit;
    font-size: var(--font-size-text-sm);
    color: var(--color-text-primary);
}

/* -- Tickable rows (profiles + records) -- */
.ccp-dsp-rows[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
}

.ccp-dsp-row[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2-5);
    padding: 6px 10px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.ccp-dsp-row:hover[b-kbxc40bteq] { background: var(--bg-secondary-subtle); }

.ccp-dsp-row--ticked[b-kbxc40bteq] {
    border-color: var(--bg-brand-secondary);
    background: var(--bg-brand-primary);
}

.ccp-dsp-row--ticked:hover[b-kbxc40bteq] { background: var(--bg-brand-primary); }

.ccp-dsp-row-name[b-kbxc40bteq] { color: var(--color-text-primary); }

.ccp-dsp-row-meta[b-kbxc40bteq] {
    color: var(--color-text-tertiary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccp-dsp-check[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-primary);
    background: var(--bg-primary);
    color: var(--text-white);
    box-sizing: border-box;
    flex-shrink: 0;
}

.ccp-dsp-check--on[b-kbxc40bteq] {
    border-color: var(--bg-brand-solid);
    background: var(--bg-brand-solid);
}

/* -- Profile instruction -- */
.ccp-dsp-instruction[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ccp-dsp-label[b-kbxc40bteq] { font-weight: 600; color: var(--color-text-secondary); }

/* -- Customer data -- */
.ccp-dsp-search-row[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2-5);
}

.ccp-dsp-search[b-kbxc40bteq] {
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
    font-family: inherit;
    font-size: var(--font-size-text-sm);
    color: var(--color-text-primary);
    width: 180px;
}

.ccp-dsp-search[b-kbxc40bteq]::placeholder { color: var(--text-placeholder); }

.ccp-dsp-records[b-kbxc40bteq] { display: flex; flex-direction: column; }

.ccp-dsp-record[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2-5);
    padding: 5px 4px;
    border-bottom: 1px solid var(--border-tertiary);
    cursor: pointer;
}

.ccp-dsp-record:last-child[b-kbxc40bteq] { border-bottom: none; }

.ccp-dsp-record:hover[b-kbxc40bteq] { background: var(--bg-secondary-subtle); }

.ccp-dsp-record-type[b-kbxc40bteq] {
    display: inline-flex;
    justify-content: center;
    min-width: 84px;
    padding: 1px 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-secondary);
    background: var(--background-surface-secondary);
    font-weight: 500;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.ccp-dsp-record-value[b-kbxc40bteq] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text-primary);
}

.ccp-dsp-record-meta[b-kbxc40bteq] {
    color: var(--color-text-quaternary);
    flex-shrink: 0;
}

/* -- The dashed edit chip beside the input chips -- */
[b-kbxc40bteq] .ccp-input-chip--edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border-style: dashed;
    border-color: var(--border-primary);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.12s ease, border-color 0.12s ease;
}

[b-kbxc40bteq] .ccp-input-chip--edit:hover {
    color: var(--color-text-brand-primary);
    border-color: var(--color-border-brand, var(--color-brand-solid));
}

/* -- The lean rail card -- */
.ccp-rail-ds[b-kbxc40bteq] {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 12px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}

.ccp-rail-ds--editing[b-kbxc40bteq] { border-color: var(--bg-brand-secondary); }

.ccp-rail-ds-head[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.ccp-rail-ds-head .ccp-rail-case-head[b-kbxc40bteq] { flex: 1; }

.ccp-rail-ds-line[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2);
}

.ccp-rail-ds-line > .text-xs[b-kbxc40bteq] { color: var(--color-text-tertiary); }

.ccp-rail-ds-val[b-kbxc40bteq] {
    color: var(--color-text-primary);
    font-weight: 500;
    text-align: right;
}

.ccp-rail-ds-link[b-kbxc40bteq] {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 0 0;
    margin: 0;
    border: none;
    border-top: 1px solid var(--border-tertiary);
    background: transparent;
    font-family: inherit;
    font-weight: 500;
    color: var(--color-text-brand-primary);
    cursor: pointer;
    text-align: left;
}

.ccp-rail-ds-link:hover[b-kbxc40bteq] { text-decoration: underline; }
/* /Components/Pages/CaseboardSetup/CaseCaseProfile/StepPromptInfoPopover.razor.rz.scp.css */
/* Wrapper hosts both the icon and the fixed-positioned panel.
   No z-index at rest — a resting icon must not outrank overlays such as
   .modal-overlay (z-index 50), or it paints through an open modal. */
.spi-wrapper[b-h0u08i3dsx] {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Elevated only while the panel is open, so the fixed panel clears the page */
.spi-wrapper--open[b-h0u08i3dsx] {
    z-index: 1002;
}

/* Icon button */
.spi-icon-btn[b-h0u08i3dsx] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-text-quaternary, #a4a7ae);
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.spi-icon-btn:hover[b-h0u08i3dsx],
.spi-icon-active[b-h0u08i3dsx] {
    color: var(--color-text-brand-primary, #3f5fd6);
    background-color: var(--bg-brand-subtle, #f0f4ff);
}

/* Panel */
.spi-panel[b-h0u08i3dsx] {
    position: fixed;
    width: 360px;
    max-height: 480px;
    overflow-y: auto;
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-primary, #e0e0e0);
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px;
    z-index: 1001;
    cursor: default;
}

.spi-panel-header[b-h0u08i3dsx] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.spi-panel-title[b-h0u08i3dsx] {
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    color: var(--color-text-primary, #181d27);
}

.spi-close-btn[b-h0u08i3dsx] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-text-tertiary, #717680);
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.spi-close-btn:hover[b-h0u08i3dsx] {
    background-color: var(--bg-tertiary, #f5f5f5);
    color: var(--color-text-primary, #181d27);
}

/* Section (Instruction Prompt / Output Prompt) */
.spi-section + .spi-section[b-h0u08i3dsx] {
    margin-top: 12px;
}

.spi-section-label[b-h0u08i3dsx] {
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    color: var(--color-text-primary, #181d27);
    margin: 0 0 6px 0;
}

.spi-code[b-h0u08i3dsx] {
    background: var(--bg-secondary, #fafafb);
    border: 1px solid var(--border-primary, #e0e0e0);
    border-radius: 8px;
    padding: 12px;
    margin: 0;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--color-text-primary, #181d27);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow-y: auto;
}

.spi-empty[b-h0u08i3dsx] {
    font-size: var(--font-size-text-sm);
    font-style: italic;
    color: var(--color-text-quaternary, #a4a7ae);
    margin: 0;
}

/* Focus rings for keyboard accessibility */
.spi-icon-btn:focus-visible[b-h0u08i3dsx],
.spi-close-btn:focus-visible[b-h0u08i3dsx] {
    outline: 2px solid var(--border-brand, #3f5fd6);
    outline-offset: 2px;
}

/* Backdrop sits behind the panel when pinned */
.spi-backdrop[b-h0u08i3dsx] {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 1000;
}
/* /Components/Pages/CaseboardSetup/CaseDocuments/CaseDocuments.razor.rz.scp.css */
/* ── CaseDocuments tab ── */

/* Padding comes from .layout-settings__panel (15px) — matches the other tabs.
   Don't add another padding layer here or it double-pads. */
.cd-body[b-0noq1okx54] {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5);
}

/* The layout "FILL" rule only grows .layout-list / .layout-body panel children, not .cd-body.
   The list view must fill the panel height so .cd-table-wrap (flex:1) doesn't collapse to 0. */
.cd-body--list[b-0noq1okx54] {
    flex: 1 1 auto;
}

/* The detail view (page cards + tall PDF compare panes) can exceed the panel height. The host
   .layout-settings clips with overflow:hidden, so the detail body must own its vertical scroll
   instead of letting content get cut off at the bottom. */
.cd-body--detail[b-0noq1okx54] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* ── Header (title left, action buttons right) ── */

.cd-header[b-0noq1okx54] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    flex-wrap: wrap;
}

.cd-toolbar__actions[b-0noq1okx54] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
}

/* ── Table wrap ── */

.cd-table-wrap[b-0noq1okx54] {
    flex: 1 1 0;
    min-height: 0;
}

/* CaseDocuments supplies its own header actions (.cd-header) — hide the DataTable's built-in
   header/toolbar so there aren't two stacked search bars and filter rows. */
.cd-table-wrap[b-0noq1okx54]  .table-section-header {
    display: none;
}

/* ── Name button (inline clickable) ── */

.cd-name-btn[b-0noq1okx54] {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
    text-align: left;
}

.cd-name-btn:hover[b-0noq1okx54] {
    color: var(--color-brand-solid);
    text-decoration: underline;
}

/* ── Upload modal helpers ── */

.cd-toggle-row[b-0noq1okx54] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.cd-step-list[b-0noq1okx54] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-2);
    max-height: 180px;
    overflow-y: auto;
    margin-top: var(--spacing-1);
}

.cd-step-item[b-0noq1okx54] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.cd-step-item:hover[b-0noq1okx54] {
    background: var(--color-bg-secondary);
}

/* ── Detail header ── */

.cd-detail-header[b-0noq1okx54] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-3);
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid var(--color-border-primary);
}

.cd-back-btn[b-0noq1okx54] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-md);
    background: var(--color-bg-primary);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.cd-back-btn:hover[b-0noq1okx54] {
    background: var(--color-bg-secondary);
    border-color: var(--color-border-secondary);
}

.cd-detail-header__text[b-0noq1okx54] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 0;
    min-width: 0;
}

.cd-detail-header__title[b-0noq1okx54] {
    font-size: var(--font-size-text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-detail-header__sub[b-0noq1okx54] {
    font-size: var(--font-size-text-sm);
    color: var(--color-text-tertiary);
}

/* ── Pages list ── */

.cd-pages-list[b-0noq1okx54] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.cd-page-card[b-0noq1okx54] {
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-5);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    background: var(--color-bg-primary);
}

.cd-page-card__actions[b-0noq1okx54] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
    margin-left: auto;   /* pins extract/delete to the right of the page-type row */
}

/* ── Page type toggle ── */

.cd-page-type-row[b-0noq1okx54] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-3);
}

.cd-page-type-btn[b-0noq1okx54] {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 var(--spacing-3);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-full);
    background: var(--color-bg-primary);
    color: var(--color-text-secondary);
    font-size: var(--font-size-text-sm);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.cd-page-type-btn:hover[b-0noq1okx54] {
    background: var(--color-bg-secondary);
}

.cd-page-type-btn--active[b-0noq1okx54] {
    border-color: var(--color-brand-solid);
    color: var(--color-brand-solid);
    background: var(--color-brand-subtle);
    font-weight: var(--font-weight-medium);
}

/* ── File preview ── */

/* File card — read-only file info; upload/replace lives in the Upload/Edit Document modal */
.cd-file-card[b-0noq1okx54] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-3);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-md);
    background: var(--color-bg-secondary);
}

.cd-file-card__icon[b-0noq1okx54] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border-primary);
    color: var(--color-text-tertiary);
}

.cd-file-card__info[b-0noq1okx54] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.cd-file-card__name[b-0noq1okx54] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-file-card__size[b-0noq1okx54] {
    color: var(--color-text-tertiary);
}

.cd-file-card__actions[b-0noq1okx54] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-3);
    flex: 0 0 auto;
}

.cd-file-empty[b-0noq1okx54] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-4);
    border: 1px dashed var(--color-border-secondary);
    border-radius: var(--radius-md);
    background: var(--color-bg-secondary);
    color: var(--color-text-tertiary);
}

.cd-file-preview__imglink[b-0noq1okx54] {
    display: inline-flex;
    max-width: 100%;
}

.cd-file-preview__img[b-0noq1okx54] {
    max-width: 100%;
    max-height: 220px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.cd-file-preview__pdf[b-0noq1okx54] {
    width: 100%;
    height: 1123px;   /* A4 height at 96 DPI */
    border: 1px solid var(--color-border-secondary);
    border-radius: var(--radius-md);
    background: var(--color-bg-primary);
}

.cd-link[b-0noq1okx54] {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--color-brand-solid);
    font-size: var(--font-size-text-sm);
    text-decoration: underline;
}

.cd-link:hover[b-0noq1okx54] {
    opacity: 0.8;
}

/* ── Upload wrap ── */

.cd-upload-wrap[b-0noq1okx54] {
    display: flex;
    flex-direction: column;
}

/* ── Extraction instruction ── */

.cd-extract-instruction[b-0noq1okx54] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

/* ── Extracted content block ── */

/* Neutral results section — a single top divider instead of a boxed, tinted panel. */
.cd-extracted-block[b-0noq1okx54] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    padding-top: var(--spacing-4);
    border-top: 1px solid var(--color-border-secondary);
}

.cd-extracted-block__header[b-0noq1okx54] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--color-text-primary);
}

.cd-extracted-block__header svg[b-0noq1okx54] {
    color: var(--color-text-tertiary);
}

.cd-extracted-edit[b-0noq1okx54] {
    margin-left: auto;
}

/* A refused save of the extracted content. Sits directly above the compare pane, which stays
   open and still holds the correction. All colour via tokens (C13) - the warm theme's error
   ramp is what renders here. */
.cd-edit-error[b-0noq1okx54] {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-2);
    margin-top: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    border: 1px solid var(--color-border-error, var(--color-border-primary));
    border-radius: var(--radius-md);
    background: var(--color-bg-error-primary, var(--color-bg-secondary));
    color: var(--color-text-error-primary, var(--color-text-primary));
}

.cd-edit-error svg[b-0noq1okx54] {
    flex: 0 0 auto;
    margin-top: 2px;
}

/* Save/Cancel pair shown in the header while the pane is in inline edit mode. */
.cd-extracted-edit-actions[b-0noq1okx54] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.cd-extracted-text[b-0noq1okx54] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--color-text-secondary);
    word-break: break-word;
    max-height: 360px;
    overflow-y: auto;
}

/* ── Original vs extracted compare ── */

.cd-compare[b-0noq1okx54] {
    display: grid;
    /* Left pane width is user-draggable via .cd-compare__resizer, which sets
       --cd-compare-left (percent of the block) — same pattern as the chat
       pane splitter. The 16px resizer strip supplies the gutter (no gap). */
    grid-template-columns: minmax(0, var(--cd-compare-left, 1fr)) auto minmax(0, 1fr);
}

/* ===== Draggable splitter (original ⇆ extracted) =====
   The strip spans the full pane height (a large, easy grab target with a
   col-resize cursor), but the visible grip is a short, vertically-centered
   pill so it clearly reads as "drag me" rather than a divider line. */
.cd-compare__resizer[b-0noq1okx54] {
    width: 16px;
    display: flex;
    align-items: center;      /* vertically centre the grip */
    justify-content: center;
    cursor: col-resize;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.cd-compare__resizer[b-0noq1okx54]::before {
    content: "";
    width: 4px;
    height: 44px;             /* short pill, not a full-height line */
    border-radius: var(--radius-full);
    background: var(--color-border-secondary);
    transition: background-color 0.15s ease, height 0.15s ease, width 0.15s ease;
}

.cd-compare__resizer:hover[b-0noq1okx54]::before,
.cd-compare__resizer.dragging[b-0noq1okx54]::before {
    width: 5px;
    height: 64px;            /* grows on hover/drag for feedback */
    background: var(--color-brand-solid);
}

@media (max-width: 900px) {
    .cd-compare[b-0noq1okx54] {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }

    /* Panes stack vertically here — nothing to resize against. */
    .cd-compare__resizer[b-0noq1okx54] { display: none; }
}

.cd-compare__col[b-0noq1okx54] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    min-width: 0;
}

.cd-compare__label[b-0noq1okx54] {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-tertiary);
}

.cd-compare__pane[b-0noq1okx54] {
    height: 1123px;   /* A4 height at 96 DPI — the PDF reader shows a full page without scrolling */
    border: 1px solid var(--color-border-secondary);
    border-radius: var(--radius-md);
    background: var(--color-bg-primary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cd-compare__pdf[b-0noq1okx54] {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--color-bg-primary);
}

.cd-compare__imglink[b-0noq1okx54] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: auto;
}

.cd-compare__img[b-0noq1okx54] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Inside the compare pane the extracted text fills the full pane height. */
.cd-compare__col .cd-extracted-text[b-0noq1okx54] {
    max-height: none;
    height: 100%;
    padding: var(--spacing-4);
}

.cd-compare__file[b-0noq1okx54],
.cd-compare__empty[b-0noq1okx54] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    height: 100%;
    padding: var(--spacing-4);
    text-align: center;
}

/* ── Media list (import drawer) ── */

.cd-media-list[b-0noq1okx54] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    max-height: 260px;
    overflow-y: auto;
    margin-top: var(--spacing-1);
    /* Breathing room so card borders / selected ring aren't clipped by the scroll container. */
    padding: 2px;
}

/* Each row is a bordered card with a radio indicator so it clearly reads as selectable. */
.cd-media-item[b-0noq1okx54] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-md);
    background: var(--color-bg-primary);
    cursor: pointer;
    text-align: left;
    color: var(--color-text-primary);
    font-size: var(--font-size-text-sm);
    transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.cd-media-item:hover[b-0noq1okx54] {
    background: var(--color-bg-secondary);
    border-color: var(--color-brand-solid);
}

.cd-media-item:focus-visible[b-0noq1okx54] {
    outline: 2px solid var(--color-brand-solid);
    outline-offset: 1px;
}

.cd-media-item--selected[b-0noq1okx54] {
    background: var(--color-brand-subtle);
    border-color: var(--color-brand-solid);
    color: var(--color-brand-700);
    box-shadow: 0 0 0 1px var(--color-brand-solid);
}

.cd-media-item__radio[b-0noq1okx54] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--color-border-primary);
    border-radius: 50%;
    background: var(--color-bg-primary);
    transition: border 0.12s;
}

.cd-media-item:hover .cd-media-item__radio[b-0noq1okx54] {
    border-color: var(--color-brand-solid);
}

/* Thick brand border leaves a light center — reads as a filled radio dot. */
.cd-media-item--selected .cd-media-item__radio[b-0noq1okx54] {
    border: 5px solid var(--color-brand-solid);
}

.cd-media-item__name[b-0noq1okx54] {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-media-item__size[b-0noq1okx54] {
    flex: 0 0 auto;
    color: var(--color-text-tertiary);
    white-space: nowrap;
}

/* ── Edit-modal current file row ── */

.cd-modal-file[b-0noq1okx54] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-md);
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
}

.cd-modal-file__name[b-0noq1okx54] {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-modal-file__size[b-0noq1okx54] {
    flex: 0 0 auto;
    color: var(--color-text-tertiary);
    white-space: nowrap;
}

/* ── Live extraction progress (SignalR) ── */

.cd-ext-progress[b-0noq1okx54] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    background: var(--color-brand-subtle);
    border: 1px solid var(--color-brand-solid);
    border-radius: var(--radius-md);
    padding: var(--spacing-3) var(--spacing-4);
    margin-bottom: var(--spacing-3);
}

.cd-ext-progress__top[b-0noq1okx54] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.cd-ext-progress__pulse-row[b-0noq1okx54] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
}

.cd-ext-progress__pulse[b-0noq1okx54] {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-pill, 50%);
    background: var(--color-brand-solid);
    animation: cd-ext-pulse-b-0noq1okx54 1.5s ease-in-out infinite;
}

@keyframes cd-ext-pulse-b-0noq1okx54 {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.cd-ext-progress__label[b-0noq1okx54],
.cd-ext-progress__pct[b-0noq1okx54] {
    color: var(--color-text-brand-primary);
}

.cd-ext-progress__track[b-0noq1okx54] {
    height: 8px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-pill, 99px);
    overflow: hidden;
}

.cd-ext-progress__bar[b-0noq1okx54] {
    height: 100%;
    background: var(--color-brand-solid);
    border-radius: var(--radius-pill, 99px);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cd-ext-progress__stages[b-0noq1okx54] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.cd-ext-stage[b-0noq1okx54] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.cd-ext-stage__dot[b-0noq1okx54] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd-ext-stage__dot--done[b-0noq1okx54] {
    background: var(--color-brand-solid);
    color: #fff;
}

.cd-ext-stage__dot--active[b-0noq1okx54] {
    background: var(--color-bg-primary, #fff);
    border: 2px solid var(--color-brand-solid);
    box-shadow: 0 0 0 3px var(--color-brand-subtle);
}

.cd-ext-stage__dot--pending[b-0noq1okx54] {
    background: var(--color-border-secondary, var(--color-border-primary));
}

.cd-ext-stage__label[b-0noq1okx54] {
    color: var(--color-text-tertiary);
}

.cd-ext-stage__label--done[b-0noq1okx54] {
    color: var(--color-text-brand-primary);
}
/* /Components/Pages/CaseboardSetup/CaseDocuments/ExtractedContentEditor.razor.rz.scp.css */
/* Fills whatever container hosts it (e.g. the compare pane, which supplies the
   outer border/rounding) — no outer chrome of its own. */
.ece-editor[b-aemlxzi15o] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.ece-toolbar[b-aemlxzi15o] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-2-5);
    border-bottom: 1px solid var(--color-border-secondary);
    background: var(--color-bg-secondary);
}

.ece-toolbar-group[b-aemlxzi15o] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-1);
}

.ece-toolbar-sep[b-aemlxzi15o] {
    width: 1px;
    height: 18px;
    background: var(--color-border-secondary);
}

.ece-btn[b-aemlxzi15o],
.ece-tab[b-aemlxzi15o] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 var(--spacing-2);
    border: none;
    background: transparent;
    color: var(--color-text-tertiary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--font-size-text-sm);
    transition: background-color 0.12s ease, color 0.12s ease;
}

.ece-btn:hover[b-aemlxzi15o],
.ece-tab:hover[b-aemlxzi15o] {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.ece-tab--active[b-aemlxzi15o] {
    background: var(--color-bg-primary);
    color: var(--color-text-brand-primary);
    font-weight: var(--font-weight-semibold);
}

.ece-area[b-aemlxzi15o] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-primary);
}

.ece-textarea[b-aemlxzi15o] {
    flex: 1;
    width: 100%;
    padding: var(--spacing-3) var(--spacing-3-5);
    border: none;
    outline: none;
    resize: none;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    color: var(--color-text-primary);
    background: transparent;
}

.ece-preview[b-aemlxzi15o] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: var(--spacing-3) var(--spacing-3-5);
}
/* /Components/Pages/CaseboardSetup/CaseForms/CaseForms.razor.rz.scp.css */
/* ── CaseForms tab ── */

/* Padding comes from .layout-settings__panel (15px) — matches the other tabs.
   Don't add another padding layer here or it double-pads. */
.cf-body[b-vxi5z1nbgo] {
    min-height: 0;
}

.cf-toolbar[b-vxi5z1nbgo] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    flex-wrap: wrap;
}

.cf-toolbar__filters[b-vxi5z1nbgo] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
    flex-wrap: wrap;
}

.cf-search-wrap[b-vxi5z1nbgo] {
    position: relative;
    width: 260px;
}

.cf-search-icon[b-vxi5z1nbgo] {
    position: absolute;
    left: var(--spacing-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-placeholder);
    pointer-events: none;
}

.cf-search-input[b-vxi5z1nbgo] {
    width: 100%;
    height: 36px;
    padding: 0 var(--spacing-3) 0 calc(var(--spacing-3) + 20px);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-md);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-size: var(--font-size-text-sm);
    outline: none;
    transition: border-color 0.15s;
}

.cf-search-input[b-vxi5z1nbgo]::placeholder {
    color: var(--color-text-placeholder);
}

.cf-search-input:focus[b-vxi5z1nbgo] {
    border-color: var(--color-brand-solid);
    box-shadow: 0 0 0 3px var(--color-brand-subtle);
}

.cf-filter-btn[b-vxi5z1nbgo] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    height: 36px;
    padding: 0 var(--spacing-3);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-md);
    background: var(--color-bg-primary);
    color: var(--color-text-secondary);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.cf-filter-btn:hover[b-vxi5z1nbgo] {
    background: var(--color-bg-secondary);
    border-color: var(--color-border-secondary);
}

.cf-filter-btn--active[b-vxi5z1nbgo] {
    border-color: var(--color-brand-solid);
    color: var(--color-brand-solid);
    background: var(--color-brand-subtle);
}

.cf-table-wrap[b-vxi5z1nbgo] {
    flex: 1 1 0;
    min-height: 0;
}

/* Section header (CDT-C7 restyle: the colour moved off an inline style onto a token). */
.cf-header[b-vxi5z1nbgo] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.cf-header__sub[b-vxi5z1nbgo] {
    margin: 0;
    color: var(--text-tertiary);
}
/* /Components/Pages/CaseboardSetup/CaseQuickCheck/CaseQuickCheck.razor.rz.scp.css */
/* ── CaseQuickCheck tab (spec CDT-C8 + CDT-C1) ──
   Every colour is a token declared in all six themes, light and dark (constitution C13);
   there is no raw hex here. Type sizes come from the shared typography utility classes in
   the markup (text-xs / text-sm / text-sm-medium), not from --font-size-* tokens, because
   several of those are consumed repo-wide while declared in no theme (BF-109). */

/* Padding comes from .layout-settings__panel (15px) — matches the other tabs
   (CaseProfile/Documents). Don't add another layer here or it double-pads. */
.cqc-body[b-jv8k43z9v7] {
    min-height: 0;
}

/* ── CDT-C1: live updates are gone ── */
.cqc-hub-banner[b-jv8k43z9v7] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    border: 1px solid var(--border-warning);
    border-radius: var(--radius-md);
    background: var(--bg-warning-primary);
    color: var(--text-warning-primary);
}

.cqc-hub-banner__dot[b-jv8k43z9v7] {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-warning-primary);
}

/* ── Header ── */
.cqc-header[b-jv8k43z9v7] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-4);
    flex-wrap: wrap;
}

.cqc-header__text[b-jv8k43z9v7] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    min-width: 0;
}

.cqc-header__sub[b-jv8k43z9v7] {
    margin: 0;
    color: var(--text-tertiary);
    max-width: 62ch;
}

.cqc-header__right[b-jv8k43z9v7] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-4);
    flex-wrap: wrap;
}

/* n-of-m approvals (proto:69-70) */
.cqc-progress[b-jv8k43z9v7] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    min-width: 140px;
}

.cqc-progress__track[b-jv8k43z9v7] {
    width: 120px;
    height: 6px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    overflow: hidden;
}

.cqc-progress__fill[b-jv8k43z9v7] {
    height: 100%;
    border-radius: var(--radius-sm);
    background: var(--bg-brand-solid);
    transition: width 400ms ease;
}

.cqc-progress__label[b-jv8k43z9v7] {
    color: var(--text-tertiary);
    white-space: nowrap;
}

.cqc-loading-wrap[b-jv8k43z9v7] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-10) 0;
}

/* ── The run report ── */
.cqc-report[b-jv8k43z9v7] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    padding: var(--spacing-3);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-secondary-subtle);
}

/* A clean run and a stopped run must not look the same at a glance. */
.cqc-report--clean[b-jv8k43z9v7] {
    border-color: var(--border-success);
    background: var(--bg-success-primary);
}

.cqc-report--stopped[b-jv8k43z9v7] {
    border-color: var(--border-warning);
    background: var(--bg-warning-primary);
}

.cqc-report__headline[b-jv8k43z9v7] {
    color: var(--text-primary);
}

.cqc-report--stopped .cqc-report__headline[b-jv8k43z9v7] {
    color: var(--text-warning-primary);
}

.cqc-report--clean .cqc-report__headline[b-jv8k43z9v7] {
    color: var(--text-success-primary);
}

.cqc-report__detail[b-jv8k43z9v7] {
    color: var(--text-secondary);
}

.cqc-report__lines[b-jv8k43z9v7] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.cqc-report__line[b-jv8k43z9v7] {
    color: var(--text-tertiary);
}

.cqc-report__line[data-run-outcome="blocked"][b-jv8k43z9v7],
.cqc-report__line[data-run-outcome="refused"][b-jv8k43z9v7] {
    color: var(--text-warning-primary);
}

/* ── The way forward out of a lock (E20) ── */
.cqc-way-forward[b-jv8k43z9v7],
.cqc-locked[b-jv8k43z9v7] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
    flex-wrap: wrap;
}

.cqc-locked[b-jv8k43z9v7] {
    margin-top: var(--spacing-1);
    padding: var(--spacing-2);
    border: 1px dashed var(--border-warning);
    border-radius: var(--radius-sm);
    background: var(--bg-warning-primary);
}

.cqc-locked__text[b-jv8k43z9v7],
.cqc-way-forward__refusal[b-jv8k43z9v7],
.cqc-locked__refusal[b-jv8k43z9v7] {
    color: var(--text-warning-primary);
}

/* ── The step list (CDT-C8: replaces the old DataTable) ── */
.cqc-steps[b-jv8k43z9v7] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* A stage is a CAPTION. It never gets a control, and it never counts (BF-255). */
.cqc-stage[b-jv8k43z9v7] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
    margin-top: var(--spacing-3);
}

.cqc-stage__label[b-jv8k43z9v7] {
    color: var(--fg-quaternary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.cqc-stage__rule[b-jv8k43z9v7] {
    flex: 1;
    height: 1px;
    background: var(--border-tertiary);
}

.cqc-step[b-jv8k43z9v7] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-3);
    padding: var(--spacing-3);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
}

.cqc-step:hover[b-jv8k43z9v7] {
    background: var(--bg-secondary-hover);
}

/* A locked row reads differently from a merely un-run one: the two invite different actions,
   and in some themes --bg-active is indistinguishable from hover (BF-53), so the signal is a
   border rather than a fill. */
.cqc-step[data-step-state="locked"][b-jv8k43z9v7] {
    border-color: var(--border-warning);
}

.cqc-step[data-step-state="approved"][b-jv8k43z9v7] {
    border-color: var(--border-success);
}

.cqc-step[data-step-state="running"][b-jv8k43z9v7] {
    border-color: var(--border-brand);
}

.cqc-step__check[b-jv8k43z9v7] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-secondary);
    background: var(--bg-secondary);
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
}

.cqc-step__check--done[b-jv8k43z9v7] {
    background: var(--bg-brand-solid);
    border-color: var(--bg-brand-solid);
}

.cqc-step__body[b-jv8k43z9v7] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.cqc-step__name[b-jv8k43z9v7] {
    color: var(--text-primary);
}

.cqc-step__meta[b-jv8k43z9v7] {
    color: var(--text-tertiary);
}

.cqc-step__flagged[b-jv8k43z9v7] {
    color: var(--text-warning-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}

.cqc-step__approval[b-jv8k43z9v7] {
    color: var(--text-tertiary);
}

.cqc-step__approval[data-approval-state="ApprovedByMember"][b-jv8k43z9v7],
.cqc-step__approval[data-approval-state="ApprovedBeforeTracking"][b-jv8k43z9v7] {
    color: var(--text-success-primary);
}

.cqc-step__actions[b-jv8k43z9v7] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Spin animation for the running state */
.cqc-spin[b-jv8k43z9v7] {
    animation: cqc-spin-b-jv8k43z9v7 1s linear infinite;
}

@keyframes cqc-spin-b-jv8k43z9v7 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
/* /Components/Pages/CaseBoard/CaseBoard.razor.rz.scp.css */
/* ==========================================================================
 * CaseBoard page — scoped styles
 * The outer scaffold (layout-list) and kanban container (layout-kanban)
 * come from layouts.css. Page-specific chrome from the Claude Design
 * "MettaFlow screen redesign" handoff (project/CaseBoard.dc.html): a tinted
 * board canvas carrying the stats strip and the board, with the page header
 * and filter toolbar left on the page background above it.
 * ========================================================================== */

/* Page padding — layout-list ships with no padding, so the header would sit
   flush against the app-shell edges. Add 15px breathing room for this page.
   The default layout-list gap (--spacing-3xl) leaves the filter toolbar
   stranded far above the board it controls; tighten it so the header, stats,
   filters and board read as one cohesive group.

   T93: the whole column is also narrowed to 90% and centred — the same rule /activity, /chatusers
   and /setting use for their own content column (Setting.razor.css, T58) - rather than the header,
   toolbar and board spanning the app-shell's full remaining width. Horizontal padding moves off
   .layout-list itself: with both set, the 15px would sit INSIDE the 90% box, insetting the column a
   second time on top of the 5%-a-side margin the width/margin-inline pair already supplies. The
   15px stays for top/bottom breathing room, which the width change does not touch. */
.layout-list[b-3xh90g0eqj] {
    padding: 15px 0;
    gap: var(--spacing-lg);
    width: 90%;
    margin-inline: auto;
    /* T106: layouts.css's overflow:hidden would clip the full-bleed canvas below at this 90%
       column's edges. clip keeps the vertical containment and, unlike hidden, lets x stay visible. */
    overflow: visible clip;
}

/* T92: adopt the same compact treatment Settings ▸ General (Setting.razor.css's
 * .settings-panel--redesign ::deep .page-header* rules) already gives PageHeader, so this page's
 * header reads consistently with it rather than PageHeader's raw, full-page default sizing
 * (24px title over an 18px line). Numbers are kept in lockstep with Setting.razor.css's own
 * override on purpose, not re-derived - if that scale changes, this should move with it. */
.layout-list[b-3xh90g0eqj] >  .page-header,
.layout-list[b-3xh90g0eqj]  .page-header-content {
    gap: 10px;
}

.layout-list[b-3xh90g0eqj]  .page-header-left {
    gap: 4px;
}

.layout-list[b-3xh90g0eqj]  .page-header-title {
    font-size: var(--font-size-text-xl);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.layout-list[b-3xh90g0eqj]  .page-header-supporting {
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
}

/* ── Board / List tabs in the page header ── */
/* The shared tab strip carries the box; this only sizes the icons the labels
   sit beside, which the shared component has no parameter for. Tabs is a child
   component, so its rendered root never carries this file's b-scopeid - ::deep
   is required to reach it from here. */
.layout-list[b-3xh90g0eqj]  .caseboard-viewtabs {
    flex-shrink: 0;
}

.layout-list[b-3xh90g0eqj]  .caseboard-viewtabs .tab-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Board canvas: the tinted working surface (stats + board) ── */
/* The prototype's <main> owns the full width of the content area, directly under the filter
   toolbar's bottom rule. The negative top margin cancels the list's own gap so the toolbar sits ON
   the canvas, and the border-top is that toolbar rule. The negative bottom margin bleeds the tint
   down through .layout-list's own 15px bottom padding so the surface reaches the shell's bottom
   edge instead of floating as an inset card.

   T93: the side margins are 0, not the -15px they were before .layout-list became a 90%-wide,
   centred column (T93) - there is no longer a flat horizontal padding on it for them to cancel, so
   the canvas fills exactly that column's own width. It no longer reaches the shell's side edges,
   which is the point: the column, tint included, now reads as centred like every other page's.

   T100: `flex: 1` plus .layout-list's default (unset) align-items already stretched this to
   .layout-list's full cross-axis width - width:100% below changes nothing rendered (confirmed
   against a running app and the T93 spec below, both unchanged before/after), it just says so
   directly rather than leaving "spans the parent" as something only the flex algorithm knows.

   T102: horizontal padding moved OFF the canvas and onto its two children (.caseboard-stats,
   .layout-kanban) below, at 12px each - the canvas itself now carries none, only the 12px/15px
   top/bottom breathing room. Splitting it this way (rather than just changing 15px to 12px in
   place here) is what makes "12px OF THE CONTAINER" literally true of the element T102 was
   captured on (.caseboard-stats), while the two children stay aligned with each other exactly as
   they did before - now 12px off the canvas edge each, instead of 15px.

   T106: the canvas breaks back OUT of the 90% column so its tint spans .app-shell__main's full
   width, while its two children (stats, board) are held to 90% of that - the column's own width -
   so they still line up with the header and toolbar above. Percent margins resolve against
   .layout-list's width (90% of main), so -100%/18 per side and a 100%/0.9 width land exactly on
   main's edges. */
.caseboard-canvas[b-3xh90g0eqj] {
    flex: 1;
    width: calc(100% / 0.9);
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    margin: calc(-1 * var(--spacing-lg)) calc(-100% / 18) -15px;
    padding: 12px 0 15px;
    background: var(--bg-secondary-subtle);
    border-top: 1px solid var(--border-secondary);
}

/* T102: .layout-kanban's own share of the canvas's former 15px horizontal inset - see
   .caseboard-stats below (Stats strip) for the matching 12px on the other sibling. ::deep because
   it is CaseBoardList's own root, not this component's. */
.caseboard-canvas[b-3xh90g0eqj]  > .layout-kanban {
    padding-left: 12px;
    padding-right: 12px;
    width: 90%;
    align-self: center;
}

/* ── Search field in toolbar ── */
.caseboard-toolbar__search[b-3xh90g0eqj] {
    min-width: 240px;
}

/* The clear-X lives in InputField's TrailingIcon slot, which renders its wrapper
   whenever the slot is supplied. With no text to clear the slot renders nothing,
   so the empty wrapper is collapsed rather than left holding padding.
   ::deep because the wrapper belongs to InputField, not to this component (C17). */
.caseboard-toolbar__search[b-3xh90g0eqj]  .input-addon-trailing:empty {
    display: none;
}

/* Rendered via <Button IconOnly CssClass="caseboard-toolbar__clear"> - Button owns the root, so
   no scope attribute lands on it (Task 9's hazard); ::deep is required. */
[b-3xh90g0eqj] .caseboard-toolbar__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--fg-quaternary);
    cursor: pointer;
    transition: color 100ms ease;
}

[b-3xh90g0eqj] .caseboard-toolbar__clear:hover {
    color: var(--fg-secondary);
}

/* ── Result count ── */
.caseboard-toolbar__count[b-3xh90g0eqj] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* A total assembled from columns where one did not answer is a partial total,
   and says so rather than quietly under-reporting a workspace's caseload. */
.caseboard-toolbar__count-warn[b-3xh90g0eqj] {
    color: var(--fg-warning-secondary);
}

/* ── Stats strip ── */
/* Six equal tiles spanning the canvas, each reading label-then-number so the
   eye lands on the bucket name first and the count reads as its answer.

   T102: padding carries the canvas's former 15px horizontal inset, now 12px and moved onto this
   element itself (the container the task was captured on) - .layout-kanban above gets the
   matching 12px so the two stay aligned with each other, as they were before this split. */
.caseboard-stats[b-3xh90g0eqj] {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    padding: 0 12px;
    width: 90%;
    align-self: center;
}

.caseboard-stat[b-3xh90g0eqj] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

/* Five of the six tiles are buttons that ring their column. They must not read
   as buttons in any other way — same box, same rhythm, only the affordance. */
.caseboard-stat--action[b-3xh90g0eqj] {
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: border-color 100ms ease, background-color 100ms ease;
}

.caseboard-stat--action:hover[b-3xh90g0eqj] {
    background: var(--bg-primary-hover);
}

.caseboard-stat--action:focus-visible[b-3xh90g0eqj] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

.caseboard-stat__label[b-3xh90g0eqj] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-quaternary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caseboard-stat__value[b-3xh90g0eqj] {
    font-family: var(--font-family-display);
    font-size: var(--font-size-display-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Tinted variants — light up when the bucket needs human attention */
.caseboard-stat--brand[b-3xh90g0eqj] {
    background: var(--bg-brand-primary);
    border-color: var(--border-brand);
}

.caseboard-stat--brand:hover[b-3xh90g0eqj] {
    background: var(--bg-brand-primary);
}

.caseboard-stat--brand .caseboard-stat__value[b-3xh90g0eqj] {
    color: var(--text-brand-primary);
}

.caseboard-stat--warning[b-3xh90g0eqj] {
    background: var(--bg-warning-primary);
    border-color: var(--border-warning);
}

.caseboard-stat--warning:hover[b-3xh90g0eqj] {
    background: var(--bg-warning-primary);
}

.caseboard-stat--warning .caseboard-stat__value[b-3xh90g0eqj] {
    color: var(--text-warning-primary);
}

/* The filter menus' items now render via <Button CssClass="floating-menu-item">. The class
   itself is the shared, unscoped Styles/components/floating-menu.css vocabulary (no ::deep
   needed - a global stylesheet has no scope attribute to miss), but Button's own .btn base sets
   `justify-content: center`, which .floating-menu-item never overrode because a raw <button> had
   nothing else fighting it. That would re-center every menu item's label instead of the left
   alignment `.floating-menu-item`'s own `text-align: left` and full-row layout call for.
   Scoped locally (::deep, this file only) so Calendar.razor/ActionCard.razor's still-raw
   <button class="floating-menu-item"> and CaseBoardList.razor's are untouched. */
[b-3xh90g0eqj] .floating-menu-item {
    justify-content: flex-start;
}
/* /Components/Pages/CaseBoard/CaseBoardCardSkeleton.razor.rz.scp.css */
/* ============================================================
   Case card skeleton — placeholder dossier cards shown in a
   kanban column while its first page loads. Padding / gap /
   border / footer rule mirror .caseboard-card
   (CaseBoardList.razor.css) so real cards fade in over the same
   geometry. Sits inside .caseboard-column__body, which supplies
   the 10px gap between cards.
   ============================================================ */

.cb-card-skeleton[b-59fo2pmwgb] {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 14px;
    flex-shrink: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.cb-card-skeleton__top[b-59fo2pmwgb] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-card-skeleton__id[b-59fo2pmwgb] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cb-card-skeleton__chips[b-59fo2pmwgb] {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cb-card-skeleton__foot[b-59fo2pmwgb] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 7px;
    border-top: 1px solid var(--border-tertiary);
}
/* /Components/Pages/CaseBoard/CaseBoardList.razor.rz.scp.css */
/* ==========================================================================
 * CaseBoardList — scoped styles for the pipeline kanban + list views.
 * Ported from the Claude Design "MettaFlow screen redesign" handoff
 * (project/CaseBoard.dc.html): open column lanes over a tinted canvas, a
 * numbered stage tile tinted by what the stage MEANS, flat white case cards,
 * and a compact list-view table.
 *
 * Every colour is a design token. The previous port carried a hard-coded
 * terracotta stage ramp, which only read correctly in the warm theme; the
 * stage tints below are semantic (brand / warning / neutral / success) and
 * follow whichever theme is active.
 * ========================================================================== */

/* ── Stage identity tints (shared by kanban column tiles and list stage tiles) ── */
/* Incoming = needs picking up (brand) · Waiting = blocked (warning) ·
   Qualified = in hand (neutral) · Completed = done (success) · Closed = archived (quiet). */
.caseboard-stage--incoming[b-yahvk11o5k]  { --stage-tile-bg: var(--bg-brand-primary);   --stage-tile-fg: var(--fg-brand-primary); }
.caseboard-stage--waiting[b-yahvk11o5k]   { --stage-tile-bg: var(--bg-warning-primary); --stage-tile-fg: var(--warning-600); }
.caseboard-stage--qualified[b-yahvk11o5k] { --stage-tile-bg: var(--bg-secondary);       --stage-tile-fg: var(--fg-tertiary); }
.caseboard-stage--completed[b-yahvk11o5k] { --stage-tile-bg: var(--bg-success-primary); --stage-tile-fg: var(--success-600); }
.caseboard-stage--closed[b-yahvk11o5k]    { --stage-tile-bg: var(--bg-secondary);       --stage-tile-fg: var(--fg-quaternary); }

/* Board-level states (empty / filtered-empty / whole-board error) fill the
   board area rather than sitting as a short block under the toolbar. */
.caseboard-state[b-yahvk11o5k] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================================================================
 * KANBAN — open lanes over the tinted canvas. The lane has no chrome of its
 * own until it becomes a drop target, so the cards are what the eye counts.
 * ========================================================================= */

/* layouts.css tops the lanes out at their content height (align-items:flex-start),
   which leaves a short column's drop zone only as tall as the cards in it. The
   redesign runs every lane the full height of the canvas, so a half-empty stage
   is still a target you can aim at. */
.layout-kanban[b-yahvk11o5k] {
    align-items: stretch;
    gap: 12px;
    padding-bottom: 0;
}

.caseboard-column[b-yahvk11o5k] {
    /* layouts.css pins kanban columns to a fixed 300px; the redesign shares the
       canvas evenly between the five stages and only floors their width.

       The prototype's floor is 236px, but it draws a 60px icon rail where this app
       has a 280px sidebar — at 1440 that floor pushes the fifth stage off-screen and
       the board it is meant to show at a glance becomes a board you have to scroll.
       212px is the widest floor at which all five lanes fit a 1440 window with the
       sidebar open (1130px of lane − 4×12px gaps = 1082 ÷ 5 = 216). */
    flex: 1;
    min-width: 212px;
    gap: 8px;
    max-height: 100%;
    padding: 4px;
    background: transparent;
    /* The dashed rule is always present and normally invisible, so a lane does
       not resize by 2px the moment a card is dragged over it. */
    border: 2px dashed transparent;
    border-radius: var(--radius-lg);
    transition: border-color 120ms ease, background-color 120ms ease;
}

/* A card is being dragged over this column — the lane lights up so the drop
   target is unambiguous before the pointer is released. */
.caseboard-column--dropping[b-yahvk11o5k] {
    border-color: var(--border-brand);
    background: var(--bg-brand-primary);
}

/* Stat-tile click, and the dashboard's ?status= drill-in: ring the column for
   1.6s so the eye can find it without anything moving. */
.caseboard-column--highlight[b-yahvk11o5k] {
    border-color: var(--border-brand);
}

.caseboard-column__header[b-yahvk11o5k] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 0;
    flex-shrink: 0;
}

/* Numbered stage tile, tinted by what the stage means (see the ramp above) */
.caseboard-column__num[b-yahvk11o5k] {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    background: var(--stage-tile-bg);
    color: var(--stage-tile-fg);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.caseboard-column__heading[b-yahvk11o5k] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.caseboard-column__title[b-yahvk11o5k] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caseboard-column__desc[b-yahvk11o5k] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caseboard-column__body[b-yahvk11o5k] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 4px 4px;
    flex: 1;
    min-height: 132px;
    overflow-y: auto;
}

.caseboard-column__body[b-yahvk11o5k]::-webkit-scrollbar {
    width: 4px;
}

.caseboard-column__body[b-yahvk11o5k]::-webkit-scrollbar-track {
    background: transparent;
}

.caseboard-column__body[b-yahvk11o5k]::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: var(--radius-full);
}

/* ── Column loading / empty ── */
.caseboard-col-loading[b-yahvk11o5k] {
    display: flex;
    justify-content: center;
    padding: var(--spacing-4) 0;
}

/* An empty lane is still a DROP TARGET, so it is drawn as one: a placeholder
   card sitting exactly where the first case card would be.

   IT WEARS THE CASE CARD'S OWN CHROME — same surface, same 1px --border-secondary
   hairline, same --radius-lg, same --shadow-xs, same 14px padding. A well with its
   own border treatment sat on the canvas at a different elevation from everything
   around it and read as a fragment of some other screen. Keep these four in step
   with .caseboard-card below; they are one object drawn twice, not two designs.

   This is a deliberate departure from the handoff, which leaves an empty lane as a
   bare centred sentence (project/CaseBoard.dc.html:153). The sentence read as a lane
   nobody finished styling, and it never says the one thing a newcomer needs to know
   about this board — that a case changes stage by being dragged. */
.caseboard-col-empty[b-yahvk11o5k] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 128px;
    padding: 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    text-align: center;
    /* Decoration only. The drag handlers live on the lane, and a placeholder that
       ate dragover/dragleave would flicker the lane's own drop highlight. */
    pointer-events: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

/* The well now hosts <EmptyState> (BF-267 wrapper pattern — EmptyState does not splat
   data-cb-column-empty, so it stays on this div). EmptyState brings its own page-scale
   padding/gap; both are pulled back down to the 6px well rhythm below, and its icon/title/
   description are re-skinned to the exact card-well look the private tv-* markup drew. */
.caseboard-col-empty[b-yahvk11o5k]  .empty-state {
    padding: 0;
    gap: 6px;
}

.caseboard-col-empty[b-yahvk11o5k]  .empty-state__text {
    gap: 6px;
}

.caseboard-col-empty[b-yahvk11o5k]  .empty-state__icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--fg-quaternary);
    transition: background-color 120ms ease, color 120ms ease;
}

.caseboard-col-empty[b-yahvk11o5k]  .empty-state__title {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-tertiary);
    line-height: 1.4;
}

.caseboard-col-empty[b-yahvk11o5k]  .empty-state__description {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
    line-height: 1.4;
}

/* A card is being dragged over this lane — the well answers in the same brand
   colour the lane's own border takes, so the target is one object, not two. */
.caseboard-column--dropping .caseboard-col-empty[b-yahvk11o5k] {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-sm);
}

.caseboard-column--dropping .caseboard-col-empty[b-yahvk11o5k]  .empty-state__icon-wrapper {
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
}

/* =========================================================================
 * CASE CARD — flat white card on the canvas: identity row, subject, chips,
 * note strips, hairline footer rule with source, date and assignee.
 * ========================================================================= */
.caseboard-card[b-yahvk11o5k] {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 14px;
    flex-shrink: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    cursor: grab;
    transition: border-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

/* The card is draggable, so it must not move on hover — the border and shadow
   carry the state instead of a lift that competes with the drag. */
.caseboard-card:hover[b-yahvk11o5k] {
    border-color: var(--border-primary);
    box-shadow: var(--shadow-sm);
}

.caseboard-card:focus-visible[b-yahvk11o5k] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

/* The card being dragged fades so the lane it will land in stays readable. */
.caseboard-card--dragging[b-yahvk11o5k] {
    opacity: 0.4;
    cursor: grabbing;
}

/* Land animation after a move, so a card that jumps columns is traceable. */
.caseboard-card--settled[b-yahvk11o5k] {
    animation: cb-settle-b-yahvk11o5k 300ms ease-out;
}

@keyframes cb-settle-b-yahvk11o5k {
    from { transform: scale(0.96); opacity: 0.4; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ── Identity row: avatar + name / patient line + stale badge + menu ── */
.caseboard-card__top[b-yahvk11o5k] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.caseboard-card__id[b-yahvk11o5k] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.caseboard-card__name[b-yahvk11o5k] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* "F · 62 · Mexico" — whatever of it exists. */
.caseboard-card__patient[b-yahvk11o5k] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caseboard-card__stale[b-yahvk11o5k] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.caseboard-card__menu[b-yahvk11o5k] {
    flex-shrink: 0;
    align-self: flex-start;
}

.caseboard-card__menu-btn[b-yahvk11o5k] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    /* fg-quaternary with 2px dots almost disappeared on the card; tertiary + bigger dots
       read as a control without shouting. */
    color: var(--fg-tertiary);
    cursor: pointer;
    transition: background-color 100ms ease, color 100ms ease;
    flex-shrink: 0;
}

.caseboard-card__menu-btn:hover[b-yahvk11o5k],
.caseboard-card__menu-btn[aria-expanded="true"][b-yahvk11o5k] {
    background: var(--bg-secondary);
    color: var(--fg-primary);
}

.caseboard-card__menu-btn:focus-visible[b-yahvk11o5k] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

/* A terminal stage has no next step. The menu says so in place of the control
   rather than offering one that silently does nothing. */
.floating-menu-note[b-yahvk11o5k] {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    color: var(--text-disabled);
}

/* ── Subject ── */
/* The redesign promotes the subject to the card's headline: it is what a case
   IS, so it outranks the patient's name in weight and colour. */
.caseboard-card__subject[b-yahvk11o5k] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    line-height: 1.5;
    text-wrap: pretty;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Type chip + case code ── */
.caseboard-card__chips[b-yahvk11o5k] {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.caseboard-card__type[b-yahvk11o5k] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-tertiary);
    background: var(--bg-secondary);
    border-radius: var(--radius-full, 999px);
    padding: 3px 9px;
}

.caseboard-card__code[b-yahvk11o5k] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Note strips ── */
/* ActionNeeded is a warning callout: it is the line telling staff a case is
   blocked on something. Remark is staff commentary and stays visually quiet
   beneath it. */
.caseboard-card__note[b-yahvk11o5k] {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    padding: 6px 9px;
    border-radius: var(--radius-sm);
    background: var(--bg-warning-primary);
    color: var(--text-warning-primary);
}

.caseboard-card__note svg[b-yahvk11o5k] {
    flex-shrink: 0;
    margin-top: 2px;
}

.caseboard-card__remark[b-yahvk11o5k] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    padding: 5px 8px;
    border-radius: 5px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* ── Footer: hairline rule, source · created, assignee chip right ── */
.caseboard-card__foot[b-yahvk11o5k] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 7px;
    border-top: 1px solid var(--border-tertiary);
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
}

.caseboard-card__origin[b-yahvk11o5k] {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
}

.caseboard-card__source[b-yahvk11o5k] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caseboard-card__foot-dot[b-yahvk11o5k] {
    color: var(--text-quaternary);
}

.caseboard-card__date[b-yahvk11o5k] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    white-space: nowrap;
}

.caseboard-card__assign[b-yahvk11o5k] {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
}

.caseboard-card__assign-add[b-yahvk11o5k] {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    border: 1px dashed var(--border-primary);
    background: transparent;
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 100ms ease, color 100ms ease;
}

.caseboard-card__assign-add:hover[b-yahvk11o5k] {
    border-color: var(--border-brand);
    color: var(--text-brand-primary);
}

.caseboard-card__unassigned[b-yahvk11o5k] {
    color: var(--text-disabled);
}

/* =========================================================================
 * LIST VIEW — compact table card
 * ========================================================================= */
.caseboard-list[b-yahvk11o5k] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
}

.caseboard-list__head[b-yahvk11o5k],
.caseboard-list__row[b-yahvk11o5k] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 16px;
}

/* Sticky, so the column names stay with the rows they name as the list scrolls. */
.caseboard-list__head[b-yahvk11o5k] {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-secondary);
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

.caseboard-list__row[b-yahvk11o5k] {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-tertiary);
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
    transition: background-color 100ms ease;
}

.caseboard-list__row:last-child[b-yahvk11o5k] {
    border-bottom: none;
}

.caseboard-list__row:hover[b-yahvk11o5k] {
    background: var(--bg-primary-hover);
}

/* Avatar and the name/subject pair share the first cell, so the five headings
   line up with the five things they name. */
.caseboard-list__patient[b-yahvk11o5k] {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.caseboard-list__main[b-yahvk11o5k] {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.caseboard-list__name[b-yahvk11o5k] {
    display: block;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caseboard-list__subject[b-yahvk11o5k] {
    display: block;
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caseboard-list__code[b-yahvk11o5k] {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-quaternary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caseboard-list__stage[b-yahvk11o5k] {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

/* Same tint ramp as the kanban column tile above — the header comment already said
   "shared by kanban column tiles AND list stage tiles", but this one kept reading the
   pre-tokenisation `--stage-color`, which nothing defines any more. It resolved to
   nothing, leaving white 9px text on a transparent 18px square: the stage number was
   invisible on the list view. */
.caseboard-list__stagetile[b-yahvk11o5k] {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    background: var(--stage-tile-bg);
    color: var(--stage-tile-fg);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.caseboard-list__stagename[b-yahvk11o5k] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caseboard-list__time[b-yahvk11o5k] {
    white-space: nowrap;
}

/* The prototype names the assignee here instead of showing initials to decode. */
.caseboard-list__assignee[b-yahvk11o5k] {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caseboard-list__unassigned[b-yahvk11o5k] {
    color: var(--text-disabled);
}

/* ── Assign modal: selectable agent cards (name + role) ── */
.caseboard-assign__list[b-yahvk11o5k] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.caseboard-assign__option[b-yahvk11o5k] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 11px;
    text-align: left;
    background: var(--bg-primary-alt, var(--bg-primary));
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 100ms ease, border-color 100ms ease;
}

.caseboard-assign__option:hover[b-yahvk11o5k] {
    background: var(--bg-secondary-hover);
}

.caseboard-assign__option:focus-visible[b-yahvk11o5k] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

.caseboard-assign__option--on[b-yahvk11o5k] {
    background: var(--bg-brand-primary);
    border-color: var(--border-brand);
    color: var(--text-brand-primary);
}

.caseboard-assign__option-text[b-yahvk11o5k] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.caseboard-assign__option-name[b-yahvk11o5k] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caseboard-assign__option-role[b-yahvk11o5k] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caseboard-assign__none[b-yahvk11o5k] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}
/* /Components/Pages/CaseBoard/CaseBoardListSkeleton.razor.rz.scp.css */
/* ============================================================
   List-view skeleton — placeholder rows shown while cases load.
   Grid template / padding mirror .caseboard-list__row
   (CaseBoardList.razor.css) so the cells line up under the table
   header and real rows fade in over the same layout. Rendered as
   direct children of .caseboard-list, after the header strip.
   ============================================================ */

.cb-list-skeleton__row[b-cksfl68unu] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-tertiary);
}

.cb-list-skeleton__row:last-child[b-cksfl68unu] {
    border-bottom: none;
}

/* Avatar + name/subject share the first cell, mirroring .caseboard-list__patient. */
.cb-list-skeleton__patient[b-cksfl68unu] {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.cb-list-skeleton__main[b-cksfl68unu] {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cb-list-skeleton__stage[b-cksfl68unu] {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
/* /Components/Pages/ChatActions/CaseProcessAction/AgentConnectMenu.razor.rz.scp.css */
/* =============================================================================================
   AgentConnectMenu — the "Connect an AI agent" popover (proto:453-472).

   Geometry is the prototype's, at this app's 90% root font size (Styles/app.css :root), which is
   the same root the artboards were drawn against — so 290px here is the 290px that was drawn.
   Every colour is a token; no raw hex (C13).

   The popover's POSITION is the parent's business (it hangs off a node inside the pan/zoom
   transform), so nothing here sets top/left. ::deep is used where a rule must reach a child
   component's own markup - a scoped sheet does not otherwise (C17).
   ============================================================================================= */

.cpd-agent-menu[b-p39d04f9z7] {
    width: 290px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    cursor: default;
}

/* ── Header ─────────────────────────────────────────────────────────────────────────────── */

.cpd-agent-menu__head[b-p39d04f9z7] {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border-secondary);
}

.cpd-agent-menu__head-icon[b-p39d04f9z7] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--fg-brand-primary);
}

.cpd-agent-menu__title[b-p39d04f9z7] {
    flex: 1;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* ── Rows ───────────────────────────────────────────────────────────────────────────────── */

.cpd-agent-menu__body[b-p39d04f9z7] {
    max-height: 230px;
    overflow-y: auto;
}

.cpd-agent-menu__row[b-p39d04f9z7] {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    padding: 9px 12px;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-tertiary);
    cursor: pointer;
    transition: background 0.12s;
}

.cpd-agent-menu__row:last-child[b-p39d04f9z7] {
    border-bottom: none;
}

.cpd-agent-menu__row:hover:not(:disabled)[b-p39d04f9z7] {
    background: var(--bg-secondary-hover);
}

.cpd-agent-menu__row:focus-visible[b-p39d04f9z7] {
    outline: 2px solid var(--border-brand);
    outline-offset: -2px;
}

/* An agent already on THIS block. Not hidden - the admin needs to see it is already there
   (proto:1427-1433 keeps the row and disables it, carrying the reason in its tooltip). */
.cpd-agent-menu__row--used[b-p39d04f9z7],
.cpd-agent-menu__row:disabled[b-p39d04f9z7] {
    cursor: default;
}

.cpd-agent-menu__row--used .cpd-agent-menu__row-name[b-p39d04f9z7] {
    color: var(--text-disabled);
}

.cpd-agent-menu__row--used .cpd-agent-menu__row-icon[b-p39d04f9z7] {
    background: var(--bg-tertiary);
    color: var(--fg-quaternary);
}

.cpd-agent-menu__row--skeleton[b-p39d04f9z7] {
    cursor: default;
    align-items: center;
}

.cpd-agent-menu__row-icon[b-p39d04f9z7] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-md);
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
}

/* AiAgentGlyph renders a bare <svg> with no width/height - sizing is the call site's job, and a
   child component's markup is out of a scoped sheet's reach without ::deep (C17). */
.cpd-agent-menu__row-icon[b-p39d04f9z7]  svg {
    width: 13px;
    height: 13px;
}

.cpd-agent-menu__row-main[b-p39d04f9z7] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cpd-agent-menu__row-top[b-p39d04f9z7] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cpd-agent-menu__row-name[b-p39d04f9z7] {
    flex: 1;
    min-width: 0;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cpd-agent-menu__row-task[b-p39d04f9z7] {
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-tertiary);
}

/* ── The three non-row states (EC-18) ───────────────────────────────────────────────────── */

.cpd-agent-menu__state[b-p39d04f9z7] {
    padding: 14px 12px;
}

/* ErrorState/EmptyState centre themselves and size for a page; inside a 290px popover they need
   to give up their page-scale gaps. Both are child components, hence ::deep. */
.cpd-agent-menu__state[b-p39d04f9z7]  .error-state,
.cpd-agent-menu__state[b-p39d04f9z7]  .empty-state {
    padding: 0;
    text-align: center;
}

.cpd-agent-menu__state[b-p39d04f9z7]  .error-state__description,
.cpd-agent-menu__state[b-p39d04f9z7]  .empty-state__description {
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
}

.cpd-agent-menu__sr-status[b-p39d04f9z7] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ── Footer ─────────────────────────────────────────────────────────────────────────────── */

.cpd-agent-menu__footer[b-p39d04f9z7] {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-top: 1px solid var(--border-secondary);
    background: transparent;
    color: var(--text-brand-primary);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    text-align: left;
    cursor: pointer;
    transition: background 0.12s;
}

.cpd-agent-menu__footer:hover[b-p39d04f9z7] {
    background: var(--bg-secondary-hover);
}

.cpd-agent-menu__footer:focus-visible[b-p39d04f9z7] {
    outline: 2px solid var(--border-brand);
    outline-offset: -2px;
}
/* /Components/Pages/ChatActions/CaseProcessAction/AgentNodeCard.razor.rz.scp.css */
/* =============================================================================================
   AgentNodeCard — interior layout (proto:483-495).

   The card's SURFACE (width, absolute positioning, tint, border, shadow, selected ring, and the
   dark-mode rebind of the tint) is NOT here: it lives in Styles/components/chat-actions.css under
   .cpd-agent-card, because the dark rule's selector starts at <html data-mode> and because the
   parent canvas positions the node. This file styles only what AgentNodeCard.razor draws inside
   its own root, which is exactly what a scoped sheet reaches (C17).

   Sizes are the prototype's px at this app's 90% root font size (Styles/app.css), the same root
   the artboards were drawn against. Every colour is a token (C13).
   ============================================================================================= */

.cpd-agent-card__head[b-lh5czasa3u] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px 6px;
}

.cpd-agent-card__title[b-lh5czasa3u] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cpd-agent-card__eyebrow[b-lh5czasa3u] {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-brand-primary);
}

.cpd-agent-card__name[b-lh5czasa3u] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── The two icon controls and the grip ─────────────────────────────────────────────────── */

.cpd-agent-card__grip[b-lh5czasa3u],
.cpd-agent-card__icon-btn[b-lh5czasa3u] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.cpd-agent-card__grip[b-lh5czasa3u] {
    margin-left: -4px;
    cursor: grab;
}

.cpd-agent-card__grip:active[b-lh5czasa3u] {
    cursor: grabbing;
}

.cpd-agent-card__grip:hover[b-lh5czasa3u],
.cpd-agent-card__icon-btn:hover[b-lh5czasa3u] {
    background: var(--bg-primary-hover);
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

.cpd-agent-card__grip:focus-visible[b-lh5czasa3u],
.cpd-agent-card__icon-btn:focus-visible[b-lh5czasa3u] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

/* ── Body ───────────────────────────────────────────────────────────────────────────────── */

.cpd-agent-card__task[b-lh5czasa3u] {
    margin: 0;
    padding: 0 12px 8px;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
}

/* EC-20. Warning-toned so it reads as a state, not as prose; it replaces the task line rather
   than crowding in beside it, because a card pointing at nothing has nothing else to say. */
.cpd-agent-card__orphan-note[b-lh5czasa3u] {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 12px 8px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-warning-primary, var(--bg-secondary));
    color: var(--text-warning-primary, var(--text-secondary));
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
}

.cpd-agent-card__orphan-note svg[b-lh5czasa3u] {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Footer ─────────────────────────────────────────────────────────────────────────────── */

.cpd-agent-card__footer[b-lh5czasa3u] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-top: 1px solid var(--border-tertiary);
}

.cpd-agent-card__spacer[b-lh5czasa3u] {
    flex: 1;
}

/* The badges are child components, so their own markup needs ::deep to be reached (C17). The
   canvas is dense: the agent name already ellipsizes, and a long custom autonomy value (EC-14
   echoes unknown values verbatim) must not push the gear button off the card. */
.cpd-agent-card__footer[b-lh5czasa3u]  .badge {
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Components/Pages/ChatActions/CaseProcessAction/AgentQuickConfigModal.razor.rz.scp.css */
/* =============================================================================================
   AgentQuickConfigModal — the mAgent form body (proto:1140-1173).

   The panel, header and footer chrome are the shared Modal's; this file styles only the form
   this component draws. Sizes are the prototype's px at the app's 90% root font size
   (Styles/app.css), the same root the artboards were drawn against. Every colour is a token.

   ::deep appears where a rule must reach a child component's own markup - a scoped sheet stops
   at this component's boundary (C17).
   ============================================================================================= */

.cpd-agent-cfg[b-e7ccij0daf] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cpd-agent-cfg__identity[b-e7ccij0daf] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cpd-agent-cfg__field[b-e7ccij0daf] {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cpd-agent-cfg__field--tight[b-e7ccij0daf] {
    gap: 5px;
}

.cpd-agent-cfg__label[b-e7ccij0daf] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-quaternary);
}

/* EC-13. "Following the agent" / "Set for this step" - the only visible difference between an
   inherited dial and one pinned to this step, and v1 ships no way back, so it is not decoration.
   Sentence case against the uppercase label so it reads as a note, not a second heading. */
.cpd-agent-cfg__origin[b-e7ccij0daf] {
    margin-left: auto;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-regular);
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-tertiary);
}

/* A pin is the irreversible half of this form, so it does not read at the same weight as the
   inherited state it replaces. Tokens only (C13); both resolve in all six themes. */
.cpd-agent-cfg__origin[data-origin-pinned="true"][b-e7ccij0daf] {
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.cpd-agent-cfg__hint[b-e7ccij0daf] {
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-tertiary);
}

/* ── The two radio-tab groups ───────────────────────────────────────────────────────────── */

.cpd-agent-cfg__choice[b-e7ccij0daf] {
    align-self: flex-start;
}

/* The design system's .tab-button has no disabled state, because until now nothing needed one.
   "Manual only" does (d-7): it is drawn because the design draws it, and it must be visibly
   unavailable rather than quietly inert. Scoped here on purpose - widening the shared tab
   component is a change this feature is not licensed to make (elevation design=off). */
.cpd-agent-cfg__choice .tab-button:disabled[b-e7ccij0daf] {
    opacity: 0.45;
    cursor: not-allowed;
    color: var(--text-disabled);
}

.cpd-agent-cfg__choice .tab-button:disabled:hover[b-e7ccij0daf] {
    background: transparent;
    color: var(--text-disabled);
}

/* ── Max messages + Stop on patient reply ───────────────────────────────────────────────── */

.cpd-agent-cfg__row[b-e7ccij0daf] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cpd-agent-cfg__number[b-e7ccij0daf] {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 180px;
    flex-shrink: 0;
}

.cpd-agent-cfg__toggle[b-e7ccij0daf] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 22px;
    min-width: 0;
}

/* ── Task ───────────────────────────────────────────────────────────────────────────────── */

.cpd-agent-cfg__task[b-e7ccij0daf] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ── Shared-component trims ─────────────────────────────────────────────────────────────── */

/* Alert always emits <p class="alert-title">, empty or not; the prototype's grey note has no
   title and the empty paragraph would add a blank line above the text. */
.cpd-agent-cfg[b-e7ccij0daf]  .alert-title:empty {
    display: none;
}

/* Alert's floating card carries page-scale padding; inside a 471px modal body it needs to sit
   closer to the text it annotates. */
.cpd-agent-cfg[b-e7ccij0daf]  .alert-floating {
    padding: 9px 12px;
    gap: 9px;
    align-items: flex-start;
}
/* /Components/Pages/ChatActions/CaseProcessAction/CaseProcessAction.razor.rz.scp.css */
/* Required-field asterisk */
.cp-required-asterisk[b-60yij1r4dj] {
    color: var(--fg-error-secondary);
}

/* ─── Case workflows list (T11 / spec FR-1, proto:373-414) ───────────────────────────
   Scoped, because every element styled here is written in THIS component's markup - the
   row cell templates and the empty-state wrapper. The two rules that reach INTO a shared
   component (EmptyState's icon chip) use ::deep, which is the only thing that crosses that
   boundary (C17). Colours are tokens throughout (C13); px sizes are the drawn sizes, and
   Styles/app.css sets :root{font-size:90%} so the artboard's px are these px. */

/* proto:377-383 - a 30px brand tile, then a name/meta stack that must be able to shrink. */
.cw-name[b-60yij1r4dj] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cw-name__tile[b-60yij1r4dj] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
}

.cw-name__stack[b-60yij1r4dj] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

/* A real button, so the designer is reachable from the keyboard: a DataTable <tr> carries
   no tabindex and widening that shared component is not this task's to do. It is drawn as
   the plain row title the handoff shows. */
.cw-name__link[b-60yij1r4dj] {
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-text-sm);
    color: var(--text-primary);
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cw-name__link:hover[b-60yij1r4dj] {
    text-decoration: underline;
}

.cw-name__link:focus-visible[b-60yij1r4dj] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

.cw-name__meta[b-60yij1r4dj] {
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* proto:387-393 - the toggle and the dot badge share the status cell. */
.cw-status[b-60yij1r4dj] {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* proto:398-401 - Delete is the danger item, under a hairline divider.

   Positional (:last-child) because DataTable.DropdownItem carries only Key and Label - it has
   no Destructive flag, unlike its sibling RowActionItem, and widening a shared component is
   not this task's to do (elevation design=off). The menu is declared right above in
   _rowMenuItems with Delete last, and if that ever changes this rule tints whatever became
   last - so the two live together deliberately. A `Destructive` flag on DropdownItem is the
   clean fix. Scoped to .cw-list so the other three Chat Actions tables are untouched. */
.cw-list[b-60yij1r4dj]  .table-dropdown-item:last-child {
    color: var(--text-error-primary);
    border-top: 1px solid var(--border-tertiary);
    margin-top: 3px;
    padding-top: 9px;
}

/* proto:405-414 - the empty block sits inside the table card, not on the page. */
.cw-empty[b-60yij1r4dj] {
    padding: 20px 0;
}

.cw-empty[b-60yij1r4dj]  .empty-state__icon-wrapper {
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
}

.cw-empty[b-60yij1r4dj]  .empty-state__action {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* ─── Designer chrome + canvas toolbar (T12 / spec FR-3, FR-4, proto:429-437, 519-531) ───
   Scoped, and NOT in Styles/components/chat-actions.css, for the same reason T11's list rules
   are: every element below is written in THIS component's markup, so a scoped rule reaches it
   without ::deep - and keeping the shared sheet untouched keeps the C14 css regeneration T17
   owns no staler than the design phase already made it. Where a rule has to WIN against the
   shared sheet (.cpd-canvas, .cpd-controls) it does so on specificity: Blazor rewrites these to
   `.x[b-xxxxx]`, which is (0,2,0) against the shared sheet's (0,1,0).
   Colours are tokens throughout (C13); all of --bg-secondary-subtle, --border-secondary,
   --border-tertiary, --shadow-xs/-md, --radius-xl/-md, --bg-brand-primary, --fg-brand-primary,
   --border-brand and --text-quaternary were measured present in all six Styles/themes folders,
   so no token-to-token fallback is needed here. px are the drawn px (:root font-size is 90%). */

/* proto:431 - the breadcrumb parent IS the way back; there is no separate arrow. */
.cp-breadcrumb__link[b-60yij1r4dj] {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: var(--text-tertiary);
    white-space: nowrap;
    cursor: pointer;
}

.cp-breadcrumb__link:hover[b-60yij1r4dj] {
    color: var(--text-primary);
    text-decoration: underline;
}

.cp-breadcrumb__link:focus-visible[b-60yij1r4dj] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

.cp-breadcrumb__sep[b-60yij1r4dj] {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--text-quaternary);
}

/* The header on a narrow panel. In Settings › Case workflow the panel sits beside two sidebars
   (~860px at 1440), and the one-row header did not fit there: the actions and the autosave note
   cannot shrink, so the breadcrumb (min-width: 0 in the shared sheet) was squeezed below the width
   of its own fixed parts - "Case workflows", the separator and the status badge - and they spilled
   out of it, painting the "Positions save automatically" note over the Active badge.
   Now only the workflow NAME gives way (it truncates, full name in its title), the fixed parts keep
   their width, and when the row still does not fit the actions drop to a second row instead of
   overlapping. Where everything fits the header is the same single row as before. */
.cp-designer-header[b-60yij1r4dj] {
    flex-wrap: wrap;
    row-gap: var(--spacing-2);
}

.cp-breadcrumb__link[b-60yij1r4dj],
.cp-breadcrumb__status[b-60yij1r4dj],
.cp-breadcrumb[b-60yij1r4dj]  .badge {
    flex-shrink: 0;
}

.cp-breadcrumb__status[b-60yij1r4dj] {
    display: inline-flex;
}

/* Capped, so a long name truncates on one row (the shared sheet's intent) rather than pushing
   the whole header onto two rows on a wide screen. */
.cp-breadcrumb__current[b-60yij1r4dj] {
    min-width: 0;
    max-width: 22rem;
}

/* On its own row the action group may itself be wider than the panel (Lookups + three buttons
   + the extraction chip); it wraps inside, still right-aligned, rather than running off the edge. */
.cp-designer-header__actions[b-60yij1r4dj] {
    flex-shrink: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: var(--spacing-2);
    min-width: 0;
}

/* proto:434 - says out loud what a drag already does, so the canvas never feels unsaved. */
.cpd-autosave[b-60yij1r4dj] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
    white-space: nowrap;
}

/* proto:438 - a 20px dot grid on the subtle surface, rounded xl with the drawn shadow.
   The shared sheet draws 24px on --bg-secondary; this is the re-sync. */
.cpd-canvas[b-60yij1r4dj] {
    background:
        radial-gradient(circle, var(--border-secondary) 1px, transparent 1px),
        var(--bg-secondary-subtle);
    background-size: 20px 20px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
}

/* The non-scrolling box the canvas sits in. It takes over the canvas's slot in the column
   (flex 1, min-height 0) so the toolbar, hint and notices can be anchored to IT: anchored to the
   canvas they were inside its overflow:auto scroll box and scrolled away with the diagram. */
.cpd-canvas-frame[b-60yij1r4dj] {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cpd-canvas-frame > .cpd-canvas[b-60yij1r4dj] {
    flex: 1 1 0;
}

.cpd-canvas-frame > .cpd-controls[b-60yij1r4dj],
.cpd-canvas-frame > .cpd-canvas-hint[b-60yij1r4dj],
.cpd-canvas-frame > .cpd-canvas-notice[b-60yij1r4dj] {
    z-index: 20;
}

/* Clear the canvas's own scrollbars, which run along the frame's right and bottom edges. */
.cpd-canvas-frame > .cpd-canvas-hint[b-60yij1r4dj] {
    right: 22px;
    bottom: 20px;
}

/* The two "+" buttons are shared <Button IconOnly> instances, and the primitive's size rules
   (.btn-md.btn-icon-only: width + padding) out-rank a single class, which stretched both into
   ovals. Pinned square with no padding here, at a specificity that wins. */
.cpd-canvas[b-60yij1r4dj]  .btn.btn-icon-only.cpd-add-port-btn,
.cpd-canvas[b-60yij1r4dj]  .btn.btn-icon-only.cpd-agent-add-btn {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    padding: 0;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-full);
    line-height: 1;
}

.cpd-canvas[b-60yij1r4dj]  .btn.btn-icon-only.cpd-add-port-btn {
    width: 24px;
    height: 24px;
    border: none;
}

.cpd-canvas[b-60yij1r4dj]  .btn.btn-icon-only.cpd-agent-add-btn {
    width: 20px;
    height: 20px;
}

.cpd-canvas[b-60yij1r4dj]  .btn.btn-icon-only.cpd-add-port-btn svg {
    width: 12px;
    height: 12px;
}

.cpd-canvas[b-60yij1r4dj]  .btn.btn-icon-only.cpd-agent-add-btn svg {
    width: 10px;
    height: 10px;
}

/* proto:519 - the toolbar moves to the bottom LEFT (the shared sheet pins it right, so `right`
   has to be unset explicitly, not merely overridden). */
.cpd-controls[b-60yij1r4dj] {
    left: 14px;
    right: auto;
    bottom: 20px;
    gap: 2px;
    padding: 3px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.cpd-ctrl-sep[b-60yij1r4dj] {
    height: 16px;
    margin: 0 3px;
    background: var(--border-tertiary);
}

/* proto:522 - a fixed-width, tabular percentage so the cluster does not resize as it counts. */
.cpd-ctrl-zoom-label[b-60yij1r4dj] {
    min-width: 44px;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

/* proto:520's btn-secondary-color while the hand tool is on - the pressed state has to read as
   pressed at a glance, not as a slightly darker neutral. */
[b-60yij1r4dj] .cpd-ctrl-btn--active {
    background: var(--bg-brand-primary);
    border-color: var(--border-brand);
    color: var(--fg-brand-primary);
}

/* Link to the extraction action generated from this workflow. Rendered via <Button
   CssClass="cp-extract-chip">, so Button owns the root and the scope attribute never lands
   on it (C17/Task 9's hazard) - ::deep is required. */
[b-60yij1r4dj] .cp-extract-chip {
    /* inline-block rather than inline-flex so text-overflow can ellipsize the
       label - the chip holds a single text node and no icon. */
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    cursor: pointer;
    /* An action name defaults to the workflow name, which can be long enough to
       crowd the buttons out of the header. Cap it and let the tooltip carry the
       full text. */
    max-width: 16rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[b-60yij1r4dj] .cp-extract-chip:hover {
    background: var(--bg-secondary-hover);
    color: var(--text-primary);
}

/* ─── AI generator re-sync (T15 / spec FR-12, FR-13, proto:536-678) ───────────────────────
   Scoped for the same reason T11's and T12's rules are: every element below is written in
   THIS component's markup, so a scoped rule reaches it without ::deep (C17), and the shared
   Styles/components/chat-actions.css keeps the selector set the built wwwroot/app.css already
   carries - so T15 adds nothing new for T17's C14 regeneration to chase. The pre-existing
   .cp-aigen-* rules in the shared sheet still supply the pane frames; these rules re-sync what
   the handoff changed and add what it introduced. Blazor rewrites each selector to
   `.x[b-xxxxx]` (0,2,0), which is how they win against the shared sheet's (0,1,0).
   Colours are tokens (C13): --bg-brand-primary, --fg-brand-primary, --border-brand,
   --text-brand-primary, --bg-secondary-subtle, --border-secondary/-tertiary/-primary,
   --text-primary/-secondary/-tertiary/-quaternary, --radius-*, --shadow-xs. */

/* proto:548 - the sparkle tile that identifies the assistant, in the header and per bubble. */
.cp-aigen-avatar[b-60yij1r4dj] {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
}

.cp-aigen-avatar--sm[b-60yij1r4dj] {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
}

.cp-aigen-chat-title[b-60yij1r4dj] {
    flex: 1;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* proto:554-566 - a bubble row: avatar beside the bubble, user rows flipped to the right. */
.cp-aigen-msg-row[b-60yij1r4dj] {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* The pair is written out rather than left implicit: T58's D1 gate proves that a class used in
   markup and defined in no loaded sheet renders wrong QUIETLY, and --ai was exactly that. */
.cp-aigen-msg-row--ai[b-60yij1r4dj] {
    justify-content: flex-start;
}

.cp-aigen-msg-row--user[b-60yij1r4dj] {
    justify-content: flex-end;
}

.cp-aigen-msg-col[b-60yij1r4dj] {
    max-width: 82%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.cp-aigen-msg[b-60yij1r4dj] {
    display: block;
    max-width: 100%;
}

.cp-aigen-options[b-60yij1r4dj] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* proto:568-573 - the busy row says WHICH kind of work is in flight. */
.cp-aigen-busy[b-60yij1r4dj] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-text-sm);
    color: var(--text-quaternary);
}

/* proto:575 - the composer stacks chips, textarea and the action row. */
.cp-aigen-input[b-60yij1r4dj] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cp-aigen-input-row[b-60yij1r4dj] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}

.cp-aigen-input-spacer[b-60yij1r4dj] {
    flex: 1;
}

.cp-aigen-input-hint[b-60yij1r4dj] {
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* proto:604-607 - the empty preview is a STATE with a name, not a blank pane. */
.cp-aigen-preview-empty[b-60yij1r4dj] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 24px;
}

.cp-aigen-empty-icon[b-60yij1r4dj] {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
}

.cp-aigen-empty-title[b-60yij1r4dj] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.cp-aigen-empty-body[b-60yij1r4dj] {
    margin: 0;
    max-width: 260px;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-tertiary);
}

/* proto:611-619 - the workflow card is brand-headed, not the old warning-tinted panel. */
.cp-aigen-process-card[b-60yij1r4dj] {
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
    padding: 0;
    margin-bottom: 10px;
    gap: 0;
}

.cp-aigen-process-card__head[b-60yij1r4dj] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--bg-brand-primary);
    border-bottom: 1px solid var(--border-brand);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-brand-primary);
}

.cp-aigen-process-card__body[b-60yij1r4dj] {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* proto:648-666 - a step is a collapsed header that expands, not a permanently open form. */
.cp-aigen-step-card[b-60yij1r4dj] {
    padding: 0;
    gap: 0;
    box-shadow: var(--shadow-xs);
}

.cp-aigen-step-header[b-60yij1r4dj] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
}

.cp-aigen-step-header:focus-visible[b-60yij1r4dj] {
    outline: 2px solid var(--border-brand);
    outline-offset: -2px;
    border-radius: var(--radius-md);
}

.cp-aigen-step-name[b-60yij1r4dj] {
    flex: 1;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-aigen-step-body[b-60yij1r4dj] {
    padding: 10px 10px 12px;
    border-top: 1px solid var(--border-tertiary);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* proto:632-637 - a stage is a flat row on the rail, not a card. */
.cp-aigen-stage-row[b-60yij1r4dj] {
    display: flex;
    align-items: center;
    gap: 9px;
}

/* Rendered via <Button CssClass="cp-aigen-add-here"> - ::deep, same reason as above. */
[b-60yij1r4dj] .cp-aigen-add-here {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: var(--radius-full);
}

/* proto:671-675 - Discard sits left, the create CTA right, in every state. */
.cp-aigen-preview-footer[b-60yij1r4dj] {
    justify-content: flex-start;
}

/* proto:1092-1096 - the upload zone. It wraps the file input, so :focus-within is the only
   focus ring a keyboard user can get: the input itself is clipped to 1x1 px. */
.cp-aigen-dropzone[b-60yij1r4dj] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
    border: 1.5px dashed var(--border-primary);
    border-radius: var(--radius-lg);
    background: transparent;
    text-align: center;
    cursor: pointer;
    color: var(--fg-quaternary);
}

.cp-aigen-dropzone:hover[b-60yij1r4dj] {
    background: var(--bg-secondary-subtle);
}

.cp-aigen-dropzone:focus-within[b-60yij1r4dj] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
}

.cp-aigen-dropzone__title[b-60yij1r4dj] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.cp-aigen-dropzone__title strong[b-60yij1r4dj] {
    color: var(--text-brand-primary);
    font-weight: var(--font-weight-semibold);
}

.cp-aigen-dropzone__hint[b-60yij1r4dj] {
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
}

/* proto:1109-1112 - "Or select from knowledge base" with a rule running off it. */
.cp-aigen-divider[b-60yij1r4dj] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-quaternary);
}

.cp-aigen-divider[b-60yij1r4dj]::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-tertiary);
}

/* proto:505-512 - the step node's footer chips, the entry to the prompt quick-edit. */
.cpd-card-desc[b-60yij1r4dj] {
    margin: 0;
    padding: 0 12px 8px;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
}

.cpd-card-foot[b-60yij1r4dj] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
}

.cpd-card-foot__spacer[b-60yij1r4dj] {
    flex: 1;
}

/* .cpd-card-chip renders on both a <Button CssClass="cpd-card-chip"> (Prompt/Output) and a
   plain page-owned <span> (the static files count) - ::deep reaches both, since the ::deep
   descendant match does not require the scope attribute either way. */
[b-60yij1r4dj] .cpd-card-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--font-size-text-xs);
    line-height: 1.6;
    cursor: pointer;
}

[b-60yij1r4dj] .cpd-card-chip:hover {
    background: var(--bg-secondary-hover);
    color: var(--text-primary);
}

[b-60yij1r4dj] .cpd-card-chip:focus-visible {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

/* The files badge is a count, not a control - it must not offer a hover it cannot honour. */
.cpd-card-chip--static[b-60yij1r4dj] {
    cursor: default;
    color: var(--text-tertiary);
}

.cpd-card-chip--static:hover[b-60yij1r4dj] {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
}

/* The Generate Action menu's items render via <Button CssClass="floating-menu-item">. The class
   is the shared floating-menu vocabulary, but Button's own .btn base sets
   `justify-content: center`, which would centre each label instead of the left alignment a menu
   row calls for. Button owns that root, so ::deep is required (the same fix CaseBoard.razor.css
   carries for its filter menus). */
[b-60yij1r4dj] .floating-menu-item {
    justify-content: flex-start;
}
/* /Components/Pages/ChatActions/CaseProcessAction/ExtractionFieldsEditor.razor.rz.scp.css */
/* Field rows of an extraction action, shared by the whole-workflow and per-step review
   windows. Tokens only - no literal colours. These rules live HERE rather than in either
   host's sheet because a scoped rule only reaches elements written in its own component. */

.eam-fields[b-skfjd7jf0v] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.eam-field-row[b-skfjd7jf0v] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
}

.eam-field-row__main[b-skfjd7jf0v] {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.eam-field-row__meta[b-skfjd7jf0v] {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.eam-source[b-skfjd7jf0v] {
    font-size: var(--font-size-text-xs);
    color: var(--text-placeholder);
}
/* /Components/Pages/ChatActions/CaseProcessAction/StepActionsModal.razor.rz.scp.css */
/* The per-step action review window: steps on the left, the selected step's action on the
   right. Tokens only - no literal colours or font sizes. */

.sam[b-u7yghjnucy] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sam-body[b-u7yghjnucy] {
    display: grid;
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    gap: var(--spacing-xl);
    align-items: start;
}

.sam-steps[b-u7yghjnucy] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.sam-step[b-u7yghjnucy] {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
}

.sam-step--selected[b-u7yghjnucy] {
    border-color: var(--border-brand);
    background: var(--bg-secondary);
}

.sam-step[data-sam-status="save-failed"][b-u7yghjnucy],
.sam-step[data-sam-status="load-failed"][b-u7yghjnucy],
.sam-step[data-sam-status="read-failed"][b-u7yghjnucy] {
    border-color: var(--border-error);
}

/* Always rendered, ticked or not, so the step names line up down the column. */
.sam-step__tick[b-u7yghjnucy] {
    display: inline-flex;
    flex: none;
    justify-content: center;
    width: var(--spacing-xl);
}

/* The row's pick target is a <Button CssClass="sam-step__pick">: Button owns that root, so the
   scope attribute never lands on it and ::deep is required. */
[b-u7yghjnucy] .sam-step__pick {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    height: auto;
    padding: var(--spacing-xs);
    text-align: left;
}

.sam-step__name[b-u7yghjnucy] {
    max-width: 100%;
    overflow: hidden;
    color: var(--text-primary);
    font-size: var(--font-size-text-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sam-step__status[b-u7yghjnucy] {
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
}

.sam-detail[b-u7yghjnucy] {
    min-width: 0;
}

.sam-detail__none[b-u7yghjnucy] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.sam-detail__tools[b-u7yghjnucy] {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 48rem) {
    .sam-body[b-u7yghjnucy] {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* /Components/Pages/ChatActions/ChatActions.razor.rz.scp.css */
/* Chat Actions page — scoped styles */

/* Panel inherits layout-settings which handles the two-column shell.
   Any page-level overrides specific to ChatActions go here. */

.layout-settings__panel[b-tgia4ylntc] {
    overflow-y: auto;
}
/* /Components/Pages/ChatActions/QuickReplyAction/CardReplyList.razor.rz.scp.css */
/*
   Scoped styles for CardReplyList (T53).

   These live here rather than in Styles/components/chat-actions.css because that sheet is
   another task's file and the generated wwwroot/app.css is the wiring task's. Scoped .razor.css
   needs no CSS build step and no shared-sheet import, so this component styles itself without
   touching either.

   Only elements written in THIS component's markup are reachable from here - Blazor stamps the
   scope attribute at compile time, so it never reaches child-component internals or anything a
   RenderFragment builds through RenderTreeBuilder (C17). Colours are tokens only (C13).
*/

/* CHA-C8: the sort control that stands in for the header row this grid does not have. */
/* "Updated <date>" line on each card - the field the sort control orders by, shown so a
   sorted grid can actually be read as sorted. */
.ca-card-reply-card__updated[b-2fusnan9cv] {
    margin: 0;
    padding: 0 14px;
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary, var(--text-tertiary));
    font-variant-numeric: tabular-nums;
}
/* /Components/Pages/Chat/ActionRunningTracker.razor.rz.scp.css */
/* ============================================================
   Running-action banner controls — proto:180-181.

   Sized and coloured to sit inside the banner strip, which paints
   --bg-brand-primary and --text-brand-primary; these read as link-style
   buttons on that ground rather than as a second, competing bar.
   ============================================================ */

.chat-action-running-controls[b-67jyxclyf2] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.chat-action-running-btn[b-67jyxclyf2] {
    display: inline-flex;
    align-items: center;
    border: none;
    background: transparent;
    color: var(--text-brand-primary);
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 16px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.chat-action-running-btn:hover:not(:disabled)[b-67jyxclyf2] {
    background: var(--bg-secondary-hover);
}

.chat-action-running-btn:focus-visible[b-67jyxclyf2] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

.chat-action-running-btn:disabled[b-67jyxclyf2] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Token fallback, not a hex one (C13): `marvelo-book` is the one theme with no
   --text-error-primary, and an unresolved var() would leave Stop the same colour as Pause. */
.chat-action-running-btn--destructive[b-67jyxclyf2] {
    color: var(--text-error-primary, var(--fg-error-primary));
}

/* Sits IN the banner row beside the buttons (the host mounts this component inside the strip),
   so it ellipsizes rather than wrapping the strip onto a second line. */
.chat-action-running-error[b-67jyxclyf2] {
    margin: 0;
    padding: 0;
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-error-primary, var(--fg-error-primary));
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-action-stop-copy[b-67jyxclyf2] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    color: var(--text-secondary);
}
/* /Components/Pages/Chat/Chat.razor.rz.scp.css */
/* proto:44 — the screen is a full-bleed flex row of columns: no page gutter, no
   ground colour behind floating cards, nothing rounded. The three panes meet on
   hairlines instead of being separated by a 10px gap, which is what gives the
   design its density. Everything below follows from that one decision. */
.chat-page[b-462lkp0uum] {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    overflow: hidden;
    box-sizing: border-box;
}

/* The full-width page strip is the MOBILE bar only.
   proto:43-69 has no such row: the title, the subtitle and the two coming-soon
   buttons live at the top of the conversation-list column (ChatLeftSidePanel),
   and the three panes start at the top of the page. Below 64rem that column is
   an off-canvas drawer, so this row is switched back on there — in the same
   media query that creates the drawers — to carry their triggers and a title. */
.chat-page-header[b-462lkp0uum] {
    display: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    flex: 0 0 auto;
}

.chat-header-left[b-462lkp0uum] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* Title + its subtitle stack, so the count sits UNDER "Inbox" (proto:61-64) rather than
   beside it. min-width:0 lets the subtitle ellipsize instead of pushing the header wide. */
.chat-inbox-heading[b-462lkp0uum] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-inbox-title[b-462lkp0uum] {
    font-size: var(--font-size-display-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* The workspace's open-conversation count (proto:64), moved here with its markup (BF-124).
   This rule is compiled against Chat.razor's scope id, which is the one the element now
   carries — a rule left in ChatUserDetailHeader.razor.css would match nothing (C17).
   Reads as ambient context, not as an action: quieter and smaller than the title above it.
   Tokens only (C13) — --text-tertiary is defined in every one of the six themes (verified
   across Styles/themes/{bold,marvelo-book,peach,soft,untitled,warm}). */
.chat-header-open-count[b-462lkp0uum] {
    margin: 0;
    color: var(--text-tertiary);
    font-size: var(--font-size-text-sm);
    font-weight: 400;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
    user-select: none;
}

.chat-header-actions[b-462lkp0uum] {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.chat-header-icon-btn[b-462lkp0uum] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--fg-quaternary);
    cursor: pointer;
}

    .chat-header-icon-btn:hover[b-462lkp0uum] {
        background: var(--bg-secondary);
        color: var(--fg-secondary);
    }

    .chat-header-icon-btn:focus-visible[b-462lkp0uum] {
        outline: 2px solid var(--border-brand);
        outline-offset: 1px;
    }

/* Not-yet-built (proto:67-68). aria-disabled rather than `disabled`, so the control keeps its
   accessible name — "coming soon" is the whole point of it still being on screen — while
   reading and behaving as unavailable. */
.chat-header-icon-btn--soon[b-462lkp0uum] {
    opacity: 0.45;
    cursor: default;
}

    .chat-header-icon-btn--soon:hover[b-462lkp0uum] {
        background: transparent;
        color: var(--fg-quaternary);
    }

.chat-page-body[b-462lkp0uum] {
    display: flex;
    flex-direction: row;
    width: 100%;
    /* Fill the remaining height of .chat-page (which fills .app-shell__main).
       No 100vh calc — robust under the < 48rem mobile top app-bar. */
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    position: relative;
}

/* Panes are rendered by child components — reach them with ::deep.
   Each pane fills the body's height; inner lists scroll via their own
   flex:1 / overflow rules. */
/* proto:60 — a plain white column that ends in a hairline. Live made it a grey
   rounded card, which is what read as "a widget on a page" rather than "a column
   of the app". The width model is unchanged (see the splitter below). */
.chat-page-body[b-462lkp0uum]  .chat-left-side-bar {
    display: flex;
    flex-direction: column;
    width: 20%;
    background: var(--bg-primary);
    height: 100%;
    overflow: hidden;
    border-right: 1px solid var(--border-secondary);
}

/* proto:142 — flush against its neighbours. No box border and no radius: the
   divider on its right is drawn by .chat-pane-resizer (which has to be there
   anyway), so the two never double up into a 2px seam. */
.chat-page-body[b-462lkp0uum]  .chat-user-detail {
    display: flex;
    flex-direction: column;
    /* Width is user-draggable via the .chat-pane-resizer handle, which sets
       --conversation-width on .chat-page-body (falls back to the default 55%). */
    width: var(--conversation-width, 55%);
    height: 100%;
    overflow: hidden;
    background: var(--bg-primary);
}

/* proto:308 — the tools column, flush and unrounded. min-width tracks the
   prototype's fixed 330px panel plus its 56px rail. */
.chat-page-body[b-462lkp0uum]  .chat-right-side-bar {
    display: flex;
    flex-direction: row;
    /* Counterpart of --conversation-width: dragging the resizer trades width
       between this pane and the conversation pane. */
    width: var(--tools-width, 24%);
    /* ...and this pane ABSORBS whatever the three columns leave over, so the
       page always ends at the window edge.

       The three widths are independent percentages (20 + 55 + 24) that sum to
       99, so 1% of the viewport — ~19px at 1920, more on a wide monitor — was
       falling out on the right as bare page background beside the icon rail.
       Correcting 24 to 25 would fix today's arithmetic and leave the next
       rounding error (a dragged split, a stale `chatPaneSplit`, a future
       fourth column) free to reopen the same gap. Growing removes the class. */
    flex: 1 1 auto;
    min-width: 320px;
    height: 100%;
    overflow: visible;
    background: var(--bg-primary);
}

/* ===== Draggable splitter (conversation ⇆ tools) =====
   Now doubles as the column divider. proto:140 draws a 5px transparent strip
   that tints on hover; at rest it shows nothing, because the panes it sits
   between already carry hairlines. Here the strip IS the hairline — one line,
   not a border plus a floating pill — so the columns read flush.

   The 12px hit area and the focus ring stay: BF-50 made this a real keyboard
   splitter, and a 5px target is not one. Only the RESTING paint changed. */
.chat-pane-resizer[b-462lkp0uum] {
    flex: 0 0 auto;
    align-self: stretch;
    width: 12px;
    /* Pull the neighbours in so the 12px grab strip does not open a visible gap:
       the columns meet, and the hairline lands where their edges touch. */
    margin: 0 -6px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: col-resize;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

/* At rest: the divider between the two panes, full height, 1px. */
.chat-pane-resizer[b-462lkp0uum]::before {
    content: "";
    width: 1px;
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--border-secondary);
    transition: background-color 0.15s ease, height 0.15s ease, width 0.15s ease;
}

/* On approach it becomes the grip, so "drag me" is still discoverable. */
.chat-pane-resizer:hover[b-462lkp0uum]::before,
.chat-pane-resizer.dragging[b-462lkp0uum]::before {
    width: 5px;
    height: 64px;
    background: var(--bg-brand-solid);
}

/* Keyboard focus has to be visible on a 12px strip — the grip alone is too subtle,
   so the whole strip takes the ring (BF-50). */
.chat-pane-resizer:focus-visible[b-462lkp0uum] {
    outline: 2px solid var(--border-brand);
    outline-offset: -1px;
    border-radius: var(--radius-sm);
}

.chat-pane-resizer:focus-visible[b-462lkp0uum]::before {
    width: 5px;
    height: 64px;
    background: var(--bg-brand-solid);
}

/* The tools column's own left edge is this splitter, so when the splitter is
   hidden (collapsed, or below 64rem) the rail supplies the line instead — see
   .chat-action-sidebar. */

/* Kill the width transition while actively dragging so the pane tracks the
   pointer instead of easing behind it. */
.chat-page-body.resizing[b-462lkp0uum]  .chat-user-detail,
.chat-page-body.resizing[b-462lkp0uum]  .chat-right-side-bar {
    transition: none;
}

.chat-page-body[b-462lkp0uum]  .chat-right-side-bar,
.chat-page-body[b-462lkp0uum]  .chat-user-detail {
    transition: width 0.3s ease;
}

/* Content panel sits beside the icon rail (DOM order: panel, then rail).
   It takes the remaining width after the rail — no 65px reserve, so
   Quick Reply text no longer clips. */
.chat-page-body[b-462lkp0uum]  .tab-action-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding-right: var(--spacing-3);
    height: inherit !important;
    min-height: 0;
    overflow: hidden;
    /* proto:308 — the tools panel ends in a hairline and the rail follows it.
       The radii are gone with the rounded shell; nothing here clips a child's
       corner any more, so a tab that paints a full-bleed background (Saved
       Customer Data) now simply meets the edge. */
    border-right: 1px solid var(--border-secondary);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Collapse state (desktop right-rail collapse) — bar shrinks to just the
   icon rail, so override the expanded min-width. The rail itself stays on
   screen, which is what keeps the collapse REVERSIBLE: its toggle button is
   the control that put the panel in this state (BF-48). */
.chat-page-body.panel-collapsed[b-462lkp0uum]  .chat-right-side-bar {
    width: auto;
    min-width: 0;
    /* Collapsed the bar is only the rail, so it must NOT take the leftover —
       that would strand the rail at the left of a wide empty bar. The
       conversation grows instead (below). */
    flex: 0 0 auto;
}
/* No resizing while the tools panel is collapsed to the icon rail. Hiding it also
   removes it from the tab order, so the splitter never takes focus in a state
   where its arrow keys could do nothing. */
.chat-page-body.panel-collapsed .chat-pane-resizer[b-462lkp0uum] { display: none; }
/* Collapsed, the conversation takes everything the rail does not. A fixed 75%
   left the same residual strip this pane's grow is here to close. */
.chat-page-body.panel-collapsed[b-462lkp0uum]  .chat-user-detail {
    width: auto;
    flex: 1 1 auto;
}
.chat-page-body.panel-collapsed[b-462lkp0uum]  .tab-action-panel {
    opacity: 0;
    visibility: hidden;
    flex: 0 0 0;
    width: 0;
    padding: 0;
    overflow: hidden;
}
/* Collapsed, the panel is zero-width, so ITS hairline is what the rail sits
   against — the rail must not draw a second one on top of it. */
.chat-page-body.panel-collapsed[b-462lkp0uum]  .chat-action-sidebar {
    border-left: none;
}

/* Right-rail icon sidebar — fixed-width flex sibling beside the panel.
   proto:630 gives it no border of its own: the panel to its left already ends
   in one. Keeping both drew a 2px seam once the shell went flush. */
.chat-page-body[b-462lkp0uum]  .chat-action-sidebar {
    flex: 0 0 auto;
    height: inherit;
    overflow: visible;
    border-left: none;
    background: var(--bg-primary);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}

/* The rail's collapse button (.arrows-icon) is gone — proto:173 puts the tools-pane
   collapse at the end of the conversation header, and it renders there now
   (ChatUserDetailHeader). Its rules are removed with it rather than left to match nothing. */

/* ============================================================
   < 64rem (below md): conversation fills width; thread list and
   tools become slide-over drawers anchored to .chat-page-body.
   The triggers and the scrim live in ChatMobileDrawers.
   ============================================================ */
@media (max-width: 64rem) {
    /* The list column is off-canvas here, so its header (proto:61-69) is unreachable
       while the drawer is shut. The page strip returns to carry the drawer triggers
       and keep a title on screen. */
    .chat-page-header[b-462lkp0uum] { display: flex; }

    /* Tools pane is an off-canvas drawer here — nothing to resize against. */
    .chat-pane-resizer[b-462lkp0uum] { display: none; }

    /* Clip the off-canvas drawers so they don't create horizontal scroll.
       (Desktop keeps overflow unset so the rail's tooltips can paint.) */
    .chat-page-body[b-462lkp0uum] {
        overflow: hidden;
    }

    /* Conversation takes the full body width. */
    .chat-page-body[b-462lkp0uum]  .chat-user-detail {
        width: 100%;
        margin-left: 0;
    }

    /* ----- Left slide-over: thread list ----- */
    .chat-page-body[b-462lkp0uum]  .chat-left-side-bar {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 320px;
        max-width: 85vw;
        height: 100%;
        transform: translateX(-100%);
        /* visibility (not just the transform) is what takes a CLOSED drawer out of the
           tab order — an off-canvas pane is otherwise still focusable, so tabbing walked
           into a panel nobody can see. Delayed on close so it survives the slide-out. */
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
        z-index: 30;
        background: var(--bg-primary);
        border-right: 1px solid var(--border-primary);
        box-shadow: var(--shadow-lg);
    }

    .chat-page-body.list-open[b-462lkp0uum]  .chat-left-side-bar {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.25s ease, visibility 0s;
    }

    /* ----- Right slide-over: tools ----- */
    .chat-page-body[b-462lkp0uum]  .chat-right-side-bar {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 360px;
        min-width: 0;
        max-width: 85vw;
        height: 100%;
        margin-left: 0;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
        z-index: 30;
        box-shadow: var(--shadow-lg);
    }

    .chat-page-body.tools-open[b-462lkp0uum]  .chat-right-side-bar {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.25s ease, visibility 0s;
    }

    /* In the drawer the tools panel is always visible — neutralize the
       desktop collapsed state (icon-rail-only width / hidden panel). This is why
       the collapse toggle's placement is decided at the desktop breakpoint: below
       it, the collapsed state has no effect at all (BF-48). */
    .chat-page-body.panel-collapsed[b-462lkp0uum]  .chat-right-side-bar {
        width: 360px;
        max-width: 85vw;
    }
    .chat-page-body.panel-collapsed[b-462lkp0uum]  .tab-action-panel {
        opacity: 1;
        visibility: visible;
        flex: 1 1 auto;
        width: auto;
        padding-right: var(--spacing-3);
        overflow: hidden;
    }
    /* In drawer mode the conversation is simply the whole body — it neither widens to
       the desktop collapsed share nor shrink-to-fits around out-of-flow drawers. */
    .chat-page-body.panel-collapsed[b-462lkp0uum]  .chat-user-detail {
        width: 100%;
    }
}

/* ============================================================
   < 48rem (sm): drawers fill the full width.
   ============================================================ */
@media (max-width: 48rem) {
    .chat-page-body[b-462lkp0uum]  .chat-left-side-bar,
    .chat-page-body[b-462lkp0uum]  .chat-right-side-bar,
    .chat-page-body.panel-collapsed[b-462lkp0uum]  .chat-right-side-bar {
        width: 100%;
        max-width: none;
    }
}
/* /Components/Pages/Chat/ChatLeftSideComponents/ChatLeftSidePanel.razor.rz.scp.css */
/* =============================================================================
 * Conversation-list column header — proto:61-69.
 *
 * The prototype has no full-width page strip: "Inbox", its subtitle and the two
 * coming-soon buttons sit at the top of the list column, directly above the
 * search row (.thread-toolbar, ChatThread.razor.css). Chat.razor keeps the page
 * strip only below 64rem, where this column is an off-canvas drawer.
 *
 * Tokens only (C13) — no raw hex. The buttons are the shared design-system
 * .btn .btn-xs .btn-tertiary .btn-icon-only trio, exactly as the prototype uses
 * them, so their size and hover cannot drift from the rest of the app.
 * ============================================================================= */

.thread-header[b-t16jofm1ml] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    /* proto:61 — 14px sides, and the 10px bottom leaves .thread-toolbar's own
       12px top padding to finish the gap to the search row. */
    padding: 14px 14px 10px;
    flex: 0 0 auto;
}

/* Title over subtitle, and min-width:0 so the subtitle ellipsizes instead of
   pushing the two buttons out of the column. */
.thread-header__heading[b-t16jofm1ml] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.thread-header__title[b-t16jofm1ml] {
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-md);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.thread-header__subtitle[b-t16jofm1ml] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: 400;
    line-height: 15px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
    user-select: none;
}

/* Not-yet-built (proto:67-68). aria-disabled keeps the accessible name readable
   — see the component comment — so the dimming and the dead hover are done here
   rather than by the `disabled` attribute. */
.thread-header__soon[b-t16jofm1ml] {
    opacity: 0.45;
    cursor: default;
}

    .thread-header__soon:hover[b-t16jofm1ml] {
        background: transparent;
        color: var(--fg-quaternary);
    }

/* Below 64rem Chat.razor renders the page strip again, and it carries the same title
   and the same two coming-soon buttons. Both headers would then be visible at once
   while the list drawer is open — one visual duplicate, and one duplicate pair of
   controls in the accessibility tree. The strip wins there because it is reachable
   with the drawer shut, so this header stands down. */
@media (max-width: 64rem) {
    .thread-header[b-t16jofm1ml] { display: none; }
}
/* /Components/Pages/Chat/ChatLeftSideComponents/ChatThread.razor.rz.scp.css */
/* =============================================================================
 * THREAD LIST (Inbox left pane) — restyled to the redesign handoff.
 * Visual source: docs/MettaFlow screen redesign-handoff/.../Inbox.dc.html proto:60-137.
 *
 * Structure changed from the old card list to the handoff's full-bleed rows:
 *   36px avatar with the platform mark tucked into its corner, then a two-line
 *   body (name + relative time / preview + action + unread), with the assigned
 *   agents on a compact third line when a thread has any.
 *
 * All colour comes from theme tokens (C13) — no raw hex anywhere in this file.
 * The keyframes live here because a keyframe cannot be expressed inline and the
 * two animations (reorder flash, running-action pulse) belong to this component
 * alone. `.chat-left-side-bar` and `.chat-user-list` keep their names: the pane
 * chrome and the < 64rem drawer rules in Chat.razor.css reach them via ::deep.
 * ============================================================================= */

/* ---------- Toolbar: search + filter toggle (proto:70-76) ---------- */
.thread-toolbar[b-zq36mm8e1g] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 12px 14px 10px;
    flex: 0 0 auto;
}

/* The search box and filter button are the shared .panel-search / .panel-filter-btn
   controls from Styles/components/panel-controls.css — the same pair the five
   right-rail tabs use. No local overrides, so the look cannot drift. */

/* ---------- Filter card (proto:77-92) ---------- */
.thread-filters[b-zq36mm8e1g] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 14px 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    flex: 0 0 auto;
}

.thread-filter-row[b-zq36mm8e1g] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.thread-filter-chips[b-zq36mm8e1g] {
    gap: 5px;
    min-width: 0;
    flex: 1 1 auto;
}

/* Chips inherit .panel-chip; only the scale is tightened for the narrow pane. With no label beside them the
   row is all theirs: they share it out evenly so the group spans the card edge to edge (T69). */
.thread-filter-chips .panel-chip[b-zq36mm8e1g] {
    padding: 2px 9px;
    font-size: var(--font-size-text-xs);
    flex: 1 1 auto;
    justify-content: center;
}

/* ---------- Scrollable list ---------- */
.chat-user-list[b-zq36mm8e1g] {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 0 0 8px;
}

/* ---------- Thread row (proto:116-134) ---------- */
.thread-row[b-zq36mm8e1g] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.thread-row:hover[b-zq36mm8e1g] {
    background: var(--bg-secondary-hover);
}

/* proto:957 — the selected row is a background tint and nothing else. Live also drew a
   2px brand rail down its left edge, which the prototype has nowhere; the transparent
   copy of it on every OTHER row was also nudging all the content 2px off the 14px
   gutter, so the list never sat on the prototype's grid. */
.thread-row--active[b-zq36mm8e1g] {
    background: var(--bg-active);
}

.thread-row:focus-visible[b-zq36mm8e1g] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

/* Reorder / insert highlight — the prototype's mf-flash (proto:21,958), which the
   live list never had even though it reorders on every SignalR thread update. */
.thread-row--flash[b-zq36mm8e1g] {
    animation: threadRowFlash-b-zq36mm8e1g 1.6s ease-out;
}

@keyframes threadRowFlash-b-zq36mm8e1g {
    0% { background: var(--bg-brand-primary); }
    100% { background: transparent; }
}

/* ---------- Avatar + platform mark ---------- */
.thread-row__avatar[b-zq36mm8e1g] {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
}

/* Scoped CSS cannot reach a child component's internals, so the 36px handoff size
   is applied through ::deep (C17). */
.thread-row__avatar[b-zq36mm8e1g]  .avatar {
    width: 36px;
    height: 36px;
}

.thread-row__platform[b-zq36mm8e1g] {
    position: absolute;
    right: -3px;
    bottom: -3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--fg-tertiary);
}

/* ---------- Body: two lines + optional agent line ---------- */
.thread-row__body[b-zq36mm8e1g] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1 1 auto;
    min-width: 0;
}

.thread-row__line[b-zq36mm8e1g] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.thread-row__name[b-zq36mm8e1g] {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 18px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thread-row__time[b-zq36mm8e1g] {
    flex: 0 0 auto;
    font-size: var(--font-size-text-xs);
    line-height: 16px;
    color: var(--text-quaternary);
    white-space: nowrap;
}

.thread-row__preview[b-zq36mm8e1g] {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    line-height: 17px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Running / paused action indicator (INB-C2) ---------- */
.thread-row__action[b-zq36mm8e1g] {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    color: var(--fg-brand-primary);
    line-height: 1;
}

.thread-row__action-bolt[b-zq36mm8e1g] {
    flex: 0 0 auto;
    animation: threadActionPulse-b-zq36mm8e1g 1.4s ease-in-out infinite;
}

.thread-row__action-count[b-zq36mm8e1g] {
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Paused reads as held, not live: warning tone and no pulse. */
.thread-row__action--paused[b-zq36mm8e1g] {
    color: var(--fg-warning-primary);
}

.thread-row__action--paused .thread-row__action-bolt[b-zq36mm8e1g] {
    animation: none;
}

@keyframes threadActionPulse-b-zq36mm8e1g {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}

/* ---------- Unread count ---------- */
.thread-row__unread[b-zq36mm8e1g] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--bg-brand-solid);
    color: var(--text-white);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* ---------- Assigned agents (INB-C2) ----------
   Inline on line 2 now, beside the action bolt and the unread badge, so the row keeps
   the prototype's two-line height. flex:0 0 auto and the preview's min-width:0 mean a
   long preview ellipsizes into these rather than pushing them out of the column. */
.thread-row__agents[b-zq36mm8e1g] {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 0 0 auto;
}

.thread-row__agent[b-zq36mm8e1g] {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    border-radius: var(--radius-full);
    border: 1px solid var(--bg-primary);
    object-fit: cover;
}

.thread-row__agent + .thread-row__agent[b-zq36mm8e1g],
.thread-row__agent + .thread-row__agent-more[b-zq36mm8e1g] {
    margin-left: -4px;
}

.thread-row__agent--initials[b-zq36mm8e1g] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-brand-solid);
    color: var(--text-white);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.thread-row__agent-more[b-zq36mm8e1g] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 15px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* ---------- Load states ---------- */
.thread-loading[b-zq36mm8e1g] {
    display: flex;
    justify-content: center;
    padding: 12px;
}

/* SH-1 error surfaces come from the shared ErrorState primitive; only the box
   spacing is set here so the inline variant sits like a list row block. ErrorState
   is a child component, so its root element carries no scope attribute — ::deep is
   the only way to reach it (C17). */
.chat-user-list[b-zq36mm8e1g]  .thread-list-error {
    margin: 8px 14px;
}

.chat-user-list[b-zq36mm8e1g]  .thread-list-error--more {
    margin-top: 0;
}

/* ---------- Teams: the Mine strip and the Team / Waiting hints (board .strip) ---------- */
.pq-strip[b-zq36mm8e1g] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 14px 10px;
    padding: 8px 10px;
    border-radius: var(--radius-lg);
    background: var(--bg-brand-primary);
    font-size: var(--font-size-text-sm);
    color: var(--text-primary);
    flex: 0 0 auto;
}

.pq-strip__text[b-zq36mm8e1g] {
    flex: 1 1 auto;
    min-width: 0;
}

.pq-hint[b-zq36mm8e1g] {
    margin: 0;
    padding: 0 14px 10px;
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
    flex: 0 0 auto;
}

/* Burmese previews need Myanmar-friendly leading or the glyphs clip (board .my = 1.8). English rows keep 17px. */
.thread-row__preview--my[b-zq36mm8e1g] {
    line-height: 1.8;
}
/* /Components/Pages/Chat/ChatLeftSideComponents/PresenceBanner.razor.rz.scp.css */
/* Teams: the "You're Away" strip (board .band.away). Tokens only. */
.pq-away[b-l6pgp0issm] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 14px 10px;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    background: var(--bg-warning-primary);
    color: var(--text-warning-primary);
    font-size: var(--font-size-text-sm);
    flex: 0 0 auto;
}

.pq-away__text[b-l6pgp0issm] {
    flex: 1 1 auto;
    min-width: 0;
}
/* /Components/Pages/Chat/ChatLeftSideComponents/PresenceToggle.razor.rz.scp.css */
/* Teams: the Available / Away pill (board .stat). Tokens only. */
.pq-presence__dot[b-047owo5pbh] {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--fg-success-primary);
    flex: 0 0 auto;
}

.pq-presence__dot--away[b-047owo5pbh] {
    background: var(--fg-warning-primary);
}
/* /Components/Pages/Chat/ChatLeftSideComponents/QueueRowExtras.razor.rz.scp.css */
/* Teams: the queue lines of a Chat list row. Tokens only (the team dot's colour is the team's own, set inline).
   Every piece that holds staff-typed text (team name, holder name, reason) is bounded and ellipsised the way
   .thread-row__name / __preview are, so a long or Burmese name can never push the row wider than the pane. */
.pq-extras[b-tb9duj8j64] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    margin-top: 2px;
}

.pq-extras__line[b-tb9duj8j64] {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
}

.pq-extras__reason[b-tb9duj8j64] {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.pq-extras__reason[b-tb9duj8j64]  .badge {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pq-extras__team[b-tb9duj8j64] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 9rem;
    padding: 0 8px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-xs);
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: nowrap;
}

.pq-extras__team-text[b-tb9duj8j64] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pq-extras__dot[b-tb9duj8j64] {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    flex: 0 0 auto;
}

.pq-extras__channel[b-tb9duj8j64],
.pq-extras__time[b-tb9duj8j64] {
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pq-extras__holder[b-tb9duj8j64] {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    font-size: var(--font-size-text-xs);
    line-height: 1.6;
    color: var(--text-tertiary);
}

.pq-extras__holder-text[b-tb9duj8j64] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Reply time left (P2): colour follows QueueClockText.Tone. Tokens only. */
.pq-extras__time--ok[b-tb9duj8j64] { color: var(--text-success-primary); }
.pq-extras__time--warn[b-tb9duj8j64] { color: var(--text-warning-primary); font-weight: 600; }
.pq-extras__time--late[b-tb9duj8j64] { color: var(--text-error-primary); font-weight: 600; }
.pq-extras__time--paused[b-tb9duj8j64] { color: var(--text-tertiary); }
/* /Components/Pages/Chat/ChatLeftSideComponents/QueueTabs.razor.rz.scp.css */
/* Teams queue tabs (board TeamQueue.dc.html .qtabs). Tokens only; the pills themselves are Button xs. */
.pq-tabs[b-5wzuhybas2] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 14px 10px;
    flex: 0 0 auto;
}

.pq-tabs__n[b-5wzuhybas2] {
    margin-left: 6px;
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

.pq-tabs__n--hot[b-5wzuhybas2] {
    color: var(--text-error-primary);
    font-weight: var(--font-weight-semibold);
}
/* /Components/Pages/Chat/ChatLeftSideComponents/TeamAlertBell.razor.rz.scp.css */
/* Alert settings menu (sound + browser notifications). Tokens only. */
.pq-alert-prefs[b-0wf00bli7g] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    padding: var(--spacing-1);
}

.pq-alert-prefs__heading[b-0wf00bli7g] {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.pq-alert-prefs__hint[b-0wf00bli7g] {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--text-warning-primary);
}
/* /Components/Pages/Chat/ChatLeftSideComponents/ThreadListSkeleton.razor.rz.scp.css */
/* ============================================================
   Conversation-list skeleton — placeholder rows shown while the
   first page of threads loads. Padding, gap and avatar size
   mirror the restyled .thread-row (see ChatThread.razor.css) so
   the real list fades in over the same geometry.
   ============================================================ */

.thread-list-skeleton[b-v98alkmb57] {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.thread-list-skeleton__row[b-v98alkmb57] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-left: 2px solid transparent;
}

.thread-list-skeleton__body[b-v98alkmb57] {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 3px;
}

.thread-list-skeleton__line[b-v98alkmb57] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
}
/* /Components/Pages/Chat/ChatMiddleComponents/ActionButtonModals/FollowUpForm.razor.rz.scp.css */
/* ===== FollowUp form ===== */
.followup-form[b-hdqv5qiufn] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    /* The footer row lives inside .modal-body (which has no bottom padding), so give it
       the same bottom gap the shared .modal-footer has — else the buttons touch the edge. */
    padding-bottom: var(--spacing-6);
}

/* ===== Form sections ===== */
.followup-form-section[b-hdqv5qiufn] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.followup-form-label[b-hdqv5qiufn] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.followup-form-hint[b-hdqv5qiufn] {
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-tertiary);
    margin: 0;
}

/* The assignee picker is the shared <Dropdown> (its own label + focus ring); the raw
   <select> this sheet used to style is gone. */

/* ===== Message card ===== */
.followup-message-card[b-hdqv5qiufn] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    background: var(--bg-secondary);
}

.followup-message-meta[b-hdqv5qiufn] {
    display: flex;
    flex-direction: column;
}

.followup-message-meta-text[b-hdqv5qiufn] {
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-tertiary);
    margin: 0;
}

.followup-message-sender[b-hdqv5qiufn] {
    font-weight: 500;
    color: var(--text-primary);
}

.followup-message-body[b-hdqv5qiufn] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}

.followup-message-icon[b-hdqv5qiufn] {
    color: var(--text-quaternary);
    flex: 0 0 auto;
    margin-top: 1px;
}

.followup-message-text[b-hdqv5qiufn] {
    font-size: var(--font-size-text-sm);
    line-height: 18px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Info alert ===== */
.followup-info-alert[b-hdqv5qiufn] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-brand-primary);
    color: var(--text-brand-primary);
}

.followup-info-text[b-hdqv5qiufn] {
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-brand-primary);
    margin: 0;
}

/* ===== Error ===== */
.followup-error[b-hdqv5qiufn] {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-error-primary);
}

.followup-error-text[b-hdqv5qiufn] {
    font-size: var(--font-size-text-sm);
    color: var(--text-error-primary);
    margin: 0;
}

/* ===== Footer actions ===== */
/* Cancel / Add are the shared design-system <Button> (variant, size, loading spinner and
   disabled state all come from there) — this rule only lays the row out. */
.followup-form-footer[b-hdqv5qiufn] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
/* /Components/Pages/Chat/ChatMiddleComponents/ActionStatusCards/ActionCompleteCard.razor.rz.scp.css */
/* ===== Outer wrapper — matches Portal's pb-1 mb-2 spacing ===== */
.action-complete-card-outer[b-4024e7g45q] {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 4px;
    margin-bottom: 8px;
}

/* ===== Card surface ===== */
.action-complete-card[b-4024e7g45q] {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
}

/* ===== Main row (icon + body) ===== */
.action-complete-card-row[b-4024e7g45q] {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 12px;
    align-items: flex-start;
}

/* ===== Check-circle icon ===== */
.action-complete-icon[b-4024e7g45q] {
    display: flex;
    flex: 0 0 auto;
}

/* ===== Body ===== */
.action-complete-body[b-4024e7g45q] {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: 4px;
}

.action-complete-title[b-4024e7g45q] {
    font-size: var(--font-size-text-lg);
    font-weight: 500;
    line-height: 24px;
    color: var(--text-primary);
    margin: 0;
}

.action-complete-desc[b-4024e7g45q] {
    font-size: var(--font-size-text-md);
    line-height: 20px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Footer ===== */
.action-complete-footer[b-4024e7g45q] {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 8px;
    gap: 12px;
}

/* ===== Dismiss button ===== */
.action-complete-btn[b-4024e7g45q] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.action-complete-btn:hover[b-4024e7g45q] {
    background: var(--bg-secondary-hover);
    color: var(--text-primary);
    border-color: var(--border-primary);
}

.action-complete-btn:focus-visible[b-4024e7g45q] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
}

/* The real affordance that replaced the old "Would you like to save it?" dead edge */
.action-complete-btn-primary[b-4024e7g45q] {
    background: var(--bg-brand-solid);
    border-color: var(--bg-brand-solid);
    color: var(--text-white);
}

.action-complete-btn-primary:hover[b-4024e7g45q] {
    background: var(--bg-brand-solid);
    border-color: var(--bg-brand-solid);
    color: var(--text-white);
    opacity: 0.9;
}
/* /Components/Pages/Chat/ChatMiddleComponents/ActionStatusCards/ActionMessageStatusCard.razor.rz.scp.css */
/* ===== Outer wrapper — matches Portal's pb-1 mb-2 spacing ===== */
.action-msg-card-outer[b-p9bae22dlg] {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 4px;
    margin-bottom: 8px;
}

/* ===== Card surface ===== */
.action-msg-card-wrapper[b-p9bae22dlg] {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.action-msg-card-wrapper:hover[b-p9bae22dlg] {
    box-shadow: var(--shadow-sm);
}

/* Orange border when card is in "occupied" / edit mode */
.card-border-active[b-p9bae22dlg] {
    border-color: var(--text-warning-primary) !important;
}

/* ===== Main row (icon + body) ===== */
.action-msg-card-row[b-p9bae22dlg] {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 8px;
    align-items: flex-start;
}

/* ===== Hierarchy icon ===== */
.action-msg-card-icon[b-p9bae22dlg] {
    display: flex;
    flex: 0 0 auto;
    color: var(--text-quaternary);
    margin-top: 2px;
}

/* ===== Body (textarea + footer) ===== */
.action-msg-card-body[b-p9bae22dlg] {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: 8px;
}

.action-msg-card-text-row[b-p9bae22dlg] {
    display: flex;
    width: 100%;
}

/* ===== Textarea ===== */
.action-msg-textarea[b-p9bae22dlg] {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    overflow: hidden;
    font-size: var(--font-size-text-md);
    line-height: 20px;
    color: var(--text-primary);
    font-family: inherit;
    padding: 0;
}

.action-msg-textarea[b-p9bae22dlg]::placeholder {
    color: var(--text-quaternary);
}

/* ===== Footer row (status left / actions right) ===== */
.action-msg-card-footer[b-p9bae22dlg] {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.action-msg-card-status[b-p9bae22dlg] {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.action-msg-countdown[b-p9bae22dlg] {
    font-size: var(--font-size-text-md);
    line-height: 20px;
    color: var(--text-primary);
}

.action-msg-card-actions[b-p9bae22dlg] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

/* ===== Dismiss / Send buttons ===== */
.action-msg-btn[b-p9bae22dlg] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.action-msg-btn:hover[b-p9bae22dlg] {
    background: var(--bg-secondary-hover);
    color: var(--text-primary);
}

.action-msg-btn:disabled[b-p9bae22dlg] {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-msg-btn-primary[b-p9bae22dlg] {
    background: var(--bg-brand-solid);
    border-color: var(--bg-brand-solid);
    color: var(--text-white);
}

.action-msg-btn-primary:hover[b-p9bae22dlg] {
    opacity: 0.9;
    background: var(--bg-brand-solid);
    color: var(--text-white);
}

.action-msg-btn:focus-visible[b-p9bae22dlg],
.action-msg-claim-btn:focus-visible[b-p9bae22dlg] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
}

/* ===== Header (kind + edited provenance) ===== */
.action-msg-card-header[b-p9bae22dlg] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

/* ===== Claim affordance — a real button, so it is keyboard-reachable ===== */
.action-msg-claim-btn[b-p9bae22dlg] {
    font-size: var(--font-size-text-md);
    line-height: 20px;
    color: var(--text-tertiary);
    background: transparent;
    border: none;
    padding: 4px 2px;
    cursor: pointer;
    white-space: nowrap;
}

.action-msg-claim-btn:hover[b-p9bae22dlg] {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* ===== Guard refusal / send failure (NN-1 E25, BF-72) ===== */
.action-msg-blocked[b-p9bae22dlg] {
    margin: 0;
    padding: 6px 10px;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-warning-primary);
    background: var(--bg-warning-primary);
    border: 1px solid var(--border-warning);
    border-radius: var(--radius-sm);
}
/* /Components/Pages/Chat/ChatMiddleComponents/AiHandlingBadge.razor.rz.scp.css */
/* ============================================================
   "AI handling" badge beside the customer's name (spec 2026-10-07 §1).
   The pill itself is the shared <Badge>; this file only places it and hides the
   screen-reader line. Never pass class= to <Badge>: it replaces the primitive's own
   classes. The layout lets the reason ("Team replied") shrink before the countdown does.
   ============================================================ */

.ai-handling-badge[b-1274gecape] {
    display: inline-flex;
    flex: 1 1 7.5rem;            /* wraps like the short pill, then grows into the free space */
    min-width: 0;
    max-width: max-content;
    align-items: center;
    white-space: nowrap;
}

/* The shared pill must be allowed to shrink inside this wrapper (child component: ::deep). */
.ai-handling-badge[b-1274gecape]  .badge {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* "Team replied ·" gives way first... */
.ai-handling-badge__why[b-1274gecape] {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ...and "AI back in 4:32" never does. */
.ai-handling-badge__when[b-1274gecape] {
    flex: 0 0 auto;
}

/* The digits stay the same width as they count, so the pill does not jitter. */
.ai-handling-badge__clock[b-1274gecape] {
    font-variant-numeric: tabular-nums;
}

.ai-handling-badge__sr[b-1274gecape] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
/* /Components/Pages/Chat/ChatMiddleComponents/AiHandlingBar.razor.rz.scp.css */
/* ============================================================
   The rainbow line (spec 2026-10-07 §1) — requested by the user, a deliberate exception
   to the inbox's "no permanent animation" stance (ChatUserDeatil.razor.css): 3px, not a strip.
   Palette tokens only (C13), no raw colours. It animates transform only, per UX_PATTERNS
   "animate opacity and transform only"; the whole spectrum is visible at once and stays
   visible, still, under reduced motion.
   ============================================================ */

.ai-handling-bar[b-10dshienh7] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;            /* over the header's own 1px bottom border */
    height: 3px;
    overflow: hidden;
    pointer-events: none;
}

.ai-handling-bar[b-10dshienh7]::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 200%;
    background: linear-gradient(90deg,
        var(--error-500),
        var(--orange-500),
        var(--yellow-500),
        var(--green-500),
        var(--blue-500),
        var(--violet-500),
        var(--error-500)) 0 0 / 50% 100% repeat-x;
    animation: ai-handling-bar-run-b-10dshienh7 3s linear infinite;
}

@keyframes ai-handling-bar-run-b-10dshienh7 {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* Still shown, whole spectrum, no longer moving. */
@media (prefers-reduced-motion: reduce) {
    .ai-handling-bar[b-10dshienh7]::before {
        animation: none;
    }
}
/* /Components/Pages/Chat/ChatMiddleComponents/AISuggestImageCard.razor.rz.scp.css */
/* =============================================================================
 * AI card suggestion — carried forward (parity row «AI image/card suggestions»);
 * the prototype renders text suggestions only.
 *
 * It therefore has no artboard of its own, so it borrows the TEXT card's anatomy
 * (proto:265-275) exactly: a content block, then one meta row with the kind badge
 * left and the action right. Live made the card a ROW of three columns
 * (thumb+text | action) with space-between, which at a third of the composer's
 * width left the body text a few words wide beside a solid Send pill.
 * ============================================================================= */

.ai-suggest-image-card[b-6ohnspj6i7] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    /* Equal-width within the suggestion row: 1 card = full, 2 = 50/50, 3 = thirds */
    flex: 1 1 0;
    min-width: 0;
}

/* Thumbnail beside its text — the one place this card legitimately differs from the
   text card, because it HAS media. flex:1 keeps its height matched to its siblings
   so every meta row in the suggestion strip sits on the same line. */
.ai-suggest-image-card-main[b-6ohnspj6i7] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.ai-suggest-image-card-thumb[b-6ohnspj6i7] {
    display: flex;
    flex: 0 0 auto;
}

.ai-suggest-card-image[b-6ohnspj6i7] {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
}

.ai-suggest-card-image-placeholder[b-6ohnspj6i7] {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-quaternary);
}

.ai-suggest-image-card-text[b-6ohnspj6i7] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

/* Matches the text card's body type (proto:266) so the two card kinds read as one
   family. The title is the card's own text, so it clamps rather than ellipsizing on
   a single line — one line of a card body says almost nothing. */
.ai-suggest-image-card-title[b-6ohnspj6i7] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

.ai-suggest-image-card-sub[b-6ohnspj6i7] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-tertiary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

/* proto:268's meta row. */
.ai-suggest-image-card-meta[b-6ohnspj6i7] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ai-suggest-image-card-spacer[b-6ohnspj6i7] {
    flex: 1 1 auto;
}

/* This one really does SEND to the customer, so it is not styled as "Use". It matches
   the Quick Replies panel's Send (proto:400) — brand text with a paper-plane — which is
   the same kind of action on the same screen. The old solid pill was the loudest thing
   in the suggestion strip and did not fit a third-width card. */
.ai-suggest-send-btn[b-6ohnspj6i7] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 2px;
    border: none;
    background: transparent;
    color: var(--text-brand-primary);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.ai-suggest-send-btn:hover:not(:disabled)[b-6ohnspj6i7] {
    text-decoration: underline;
}

.ai-suggest-send-btn:disabled[b-6ohnspj6i7] {
    opacity: 0.55;
    cursor: not-allowed;
}

.ai-suggest-send-btn:focus-visible[b-6ohnspj6i7] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
    border-radius: var(--radius-xs, 4px);
}

.ai-suggest-send-spinner[b-6ohnspj6i7] {
    animation: ai-card-send-spin-b-6ohnspj6i7 0.7s linear infinite;
}

@keyframes ai-card-send-spin-b-6ohnspj6i7 {
    to { transform: rotate(360deg); }
}

.ai-suggest-sent-label[b-6ohnspj6i7] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* A flex-column child of the card now, so the card's own 8px gap is the spacing. */
.ai-suggest-card-error[b-6ohnspj6i7] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-error-primary);
}
/* /Components/Pages/Chat/ChatMiddleComponents/AISuggestionEditForm.razor.rz.scp.css */
/* AISuggestionEditForm — re-skinned for MettaFlowWeb Warm theme */

/* ===== Editor container ===== */
.edit-response-editor[b-9wpx5k0uab] {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-primary);
}

/* ===== Toolbar ===== */
.editor-toolbar[b-9wpx5k0uab] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    flex-wrap: wrap;
}

.toolbar-group[b-9wpx5k0uab] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
}

.toolbar-separator[b-9wpx5k0uab] {
    width: 1px;
    height: 18px;
    background: var(--border-primary);
    margin: 0 4px;
    flex: 0 0 auto;
}

.toolbar-btn[b-9wpx5k0uab] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-tertiary);
    border: none;
    cursor: pointer;
    font-size: var(--font-size-text-sm);
    line-height: 1;
    transition: background 100ms ease, color 100ms ease;
}

.toolbar-btn:hover[b-9wpx5k0uab] {
    background: var(--bg-secondary-hover);
    color: var(--text-primary);
}

.toolbar-btn.active[b-9wpx5k0uab] {
    background: var(--bg-brand-primary);
    color: var(--text-brand-primary);
}

.toolbar-tab-label[b-9wpx5k0uab] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
}

.toolbar-text-icon[b-9wpx5k0uab] {
    font-size: var(--font-size-text-sm);
    font-weight: 700;
    line-height: 1;
    color: inherit;
}

.toolbar-text-icon.underline[b-9wpx5k0uab] {
    text-decoration: underline;
}

/* ===== Tone dropdown (replaces the old Preview tab) ===== */
.tone-dropdown[b-9wpx5k0uab] {
    position: relative;
    display: inline-flex;
}

.tone-dropdown-toggle.disabled[b-9wpx5k0uab] {
    opacity: 0.6;
    cursor: not-allowed;
}

.tone-dropdown-caret[b-9wpx5k0uab] {
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
    transition: transform 120ms ease;
}

.tone-dropdown.open .tone-dropdown-caret[b-9wpx5k0uab] {
    transform: rotate(180deg);
}

.tone-dropdown-backdrop[b-9wpx5k0uab] {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 10;
}

.tone-dropdown-menu[b-9wpx5k0uab] {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 170px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 4px;
    z-index: 11;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tone-dropdown-item[b-9wpx5k0uab] {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    white-space: nowrap;
    transition: background 0.1s ease;
}

.tone-dropdown-item:hover[b-9wpx5k0uab] {
    background: var(--bg-secondary);
}

.tone-dropdown-item.selected[b-9wpx5k0uab] {
    background: var(--bg-brand-primary);
    color: var(--text-brand-primary);
}

/* Pushes "Use in composer" to the toolbar's trailing edge (the host owns the footer). */
.editor-toolbar-spacer[b-9wpx5k0uab] {
    flex: 1 1 auto;
    min-width: 8px;
}

.editor-use-btn[b-9wpx5k0uab] {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-brand-primary);
    border: 1px solid var(--border-brand);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 120ms ease, color 120ms ease;
}

.editor-use-btn:hover[b-9wpx5k0uab] {
    background: var(--bg-brand-primary);
}

.toolbar-btn:focus-visible[b-9wpx5k0uab],
.editor-use-btn:focus-visible[b-9wpx5k0uab],
.tone-dropdown-item:focus-visible[b-9wpx5k0uab] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

/* ===== Tone error notice ===== */
.editor-tone-error[b-9wpx5k0uab] {
    padding: 7px 14px;
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    color: var(--text-error-primary);
    background: var(--bg-error-primary);
    border-bottom: 1px solid var(--border-error);
}

/* ===== Send refusal / send failure (NN-1 E25, BF-59 class) ===== */
.editor-send-error[b-9wpx5k0uab] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    padding: 7px 14px;
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    color: var(--text-warning-primary);
    background: var(--bg-warning-primary);
    border-bottom: 1px solid var(--border-warning);
}

.editor-composer-notice[b-9wpx5k0uab] {
    padding: 7px 14px;
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

/* ===== Textarea area ===== */
.editor-textarea-wrapper[b-9wpx5k0uab] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.editor-textarea[b-9wpx5k0uab] {
    width: 100%;
    min-height: 160px;
    padding: 12px 14px;
    font-size: var(--font-size-text-md);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: none;
    outline: none;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.editor-textarea[b-9wpx5k0uab]::placeholder {
    color: var(--text-quaternary);
}

.editor-preview-div[b-9wpx5k0uab] {
    padding: 12px 14px;
    min-height: 160px;
    font-size: var(--font-size-text-md);
    line-height: 1.6;
    color: var(--text-primary);
    overflow-y: auto;
}

/* Footer buttons live in the host's Modal <Footer> slot and use the shared
   Button component — no local footer styles (scoped CSS can't reach them). */
/* /Components/Pages/Chat/ChatMiddleComponents/AISuggestionItem.razor.rz.scp.css */
/* AISuggestionItem — the unreadable-suggestion notice. The suggestion cards themselves carry
   their own scoped styles; this file exists only for the state live had no UI for at all. */

.ai-suggest-unreadable[b-4nzvjmxmvo] {
    margin: 0;
    padding: 8px 12px;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-warning-primary);
    background: var(--bg-warning-primary);
    border: 1px solid var(--border-warning);
    border-radius: var(--radius-md);
    flex: 1 1 0;
    min-width: 0;
}
/* /Components/Pages/Chat/ChatMiddleComponents/AISuggestTextCard.razor.rz.scp.css */
/* =============================================================================
 * AI text suggestion — proto:265-275.
 *
 * A COLUMN: clamped reply text, then one meta row (kind badge left, Use
 * right). Live made the three blocks a ROW with space-between, which at a third
 * of the composer's width left the text about 120px wide beside its own buttons.
 *
 * Card chrome is the prototype's: white surface, hairline border, radius-lg and
 * a soft shadow — not the grey fill live used, which made the suggestions look
 * disabled next to the composer they sit above.
 * ============================================================================= */

.ai-suggest-text-card[b-upnfidfq4v] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    /* Equal-width within the suggestion row: 1 card = full, 2 = 50/50, 3 = thirds */
    flex: 1 1 0;
    min-width: 0;
}

/* proto:266 — 12.5px/1.5 secondary text, clamped to three lines. flex:1 makes every
   card in the row the same height regardless of how much text each one carries, so
   the meta rows line up across all three. */
.ai-suggest-text-card-text[b-upnfidfq4v] {
    flex: 1 1 auto;
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

/* proto:268 — badge, then a spacer, then the action. */
.ai-suggest-text-card-meta[b-upnfidfq4v] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ai-suggest-text-card-spacer[b-upnfidfq4v] {
    flex: 1 1 auto;
}

/* proto:271 "Use" is btn-link-color — brand TEXT, not a pill. It fills the composer,
   it never sends. */
.ai-suggest-use-btn[b-upnfidfq4v] {
    display: inline-flex;
    align-items: center;
    padding: 0 2px;
    border: none;
    background: transparent;
    color: var(--text-brand-primary);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.ai-suggest-use-btn:hover[b-upnfidfq4v] {
    text-decoration: underline;
}

.ai-suggest-use-btn:focus-visible[b-upnfidfq4v] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
    border-radius: var(--radius-xs, 4px);
}

/* A flex-column child of the card now, so the card's own 8px gap is the spacing. */
.ai-suggest-text-card-notice[b-upnfidfq4v] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-tertiary);
}
/* /Components/Pages/Chat/ChatMiddleComponents/BookmarkedListModal.razor.rz.scp.css */
/* ============================================================
   Bookmarked messages — proto:808-823. A quiet quote card: the message text, then
   one "who · when" line with Remove on the right. No avatar column: the list is
   always scoped to one conversation, so the sender adds nothing as a glyph.
   ============================================================ */

.bookmark-modal-content[b-ewdmkj25we] {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 120px;
}

.bookmark-loading[b-ewdmkj25we] {
    display: flex;
    justify-content: center;
    padding: 24px;
}

/* ===== List ===== */
.bookmark-list[b-ewdmkj25we] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 4px;
}

/* ===== Card ===== */
.bookmark-card[b-ewdmkj25we] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-secondary);
    background: var(--bg-primary);
}

.bookmark-text[b-ewdmkj25we] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bookmark-card-foot[b-ewdmkj25we] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.bookmark-meta[b-ewdmkj25we] {
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bookmark-delete-btn[b-ewdmkj25we] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-error-primary);
    cursor: pointer;
    flex: 0 0 auto;
    transition: background 0.12s ease;
}

.bookmark-delete-btn:hover[b-ewdmkj25we] { background: var(--bg-error-primary); }
.bookmark-delete-btn:focus-visible[b-ewdmkj25we] { outline: 2px solid var(--border-brand); outline-offset: 1px; }

/* ===== Inline failures (a load-more or a delete that failed keeps the list) ===== */
.bookmark-inline-error[b-ewdmkj25we] {
    margin: 0;
    padding: 4px 0;
    font-size: var(--font-size-text-xs);
    color: var(--text-error-primary);
}

.bookmark-inline-retry[b-ewdmkj25we] {
    background: transparent;
    border: 0;
    padding: 0;
    margin-left: 6px;
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    color: var(--text-brand-primary);
    cursor: pointer;
}

.bookmark-inline-retry:hover[b-ewdmkj25we] { text-decoration: underline; }

/* ===== Load more (INB-C19 — explicit paging, not infinite scroll) ===== */
.bookmark-load-more[b-ewdmkj25we] {
    display: flex;
    justify-content: center;
    padding: 8px 0 2px;
}
/* /Components/Pages/Chat/ChatMiddleComponents/ChatBox.razor.rz.scp.css */
/* ===== ChatBox wrapper ===== */
.chat-box-wrapper[b-3rf58tmsqj] {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 0 0 auto;
    border-top: 1px solid var(--border-primary);
    background: var(--bg-primary);
}

/* ===== AI suggestions panel — proto:232-279 =====
   BF-57: these rules arrived as inline `style=` attributes because this stylesheet belonged to
   no task when the composer was restyled. Four rules that had gone dead in the same restyle
   (.ai-chat-box-header-loading, .ai-assist-status-text, .ai-assist-label, .ai-wait-text, plus
   the bare .ai-assistant-bar container) are deleted here rather than left to look load-bearing:
   the "Thinking…/Please wait" status texts they styled are a parity `drop`. */
.ai-chat-box-header[b-3rf58tmsqj] {
    background: var(--bg-primary);
    padding: 8px 12px;
    transition: background 0.15s ease;
}

/* NOT overflow:hidden.
   It was here for one reason — to make the grey header bar respect the panel's rounded
   top — but it also clipped the Tone menu, which opens UPWARD from the header and so
   lands outside the panel's box: the dropdown was rendering, just invisible behind the
   panel edge. The header now rounds its own corners (below) and nothing is clipped. */
.ai-suggest-panel[b-3rf58tmsqj] {
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
}

.ai-suggest-panel-title[b-3rf58tmsqj] {
    font-weight: 600;
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-primary);
}

/* Rounds to sit inside the panel's 1px border, replacing the clip that used to do this.
   `:last-child` covers the collapsed panel, where this row is the whole card and its
   bottom corners need rounding too. */
.ai-assistant-bar-row[b-3rf58tmsqj] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--bg-secondary);
    padding: 6px 8px 6px 12px;
    gap: 8px;
    border-top-left-radius: calc(var(--radius-lg) - 1px);
    border-top-right-radius: calc(var(--radius-lg) - 1px);
}

.ai-assistant-bar-row:last-child[b-3rf58tmsqj] {
    border-bottom-left-radius: calc(var(--radius-lg) - 1px);
    border-bottom-right-radius: calc(var(--radius-lg) - 1px);
}

.ai-assistant-bar-left[b-3rf58tmsqj] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.ai-star-icon[b-3rf58tmsqj] {
    color: var(--text-brand-primary);
    flex: 0 0 auto;
}

.ai-assistant-actions[b-3rf58tmsqj] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

/* ===== Tone dropdown ===== */
.tone-dropdown[b-3rf58tmsqj] {
    position: relative;
    display: inline-flex;
}

/* proto:238 is btn-tertiary — no border and no fill until hover. Live drew a bordered
   grey pill, which read as a chip (a value) rather than a control (a choice). */
/* Rendered via <Button CssClass="tone-dropdown-toggle"> - Button owns the root, so no scope
   attribute lands on it (Task 9's hazard); ::deep is required on every rule below. */
[b-3rf58tmsqj] .tone-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-primary);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    font-weight: 400;
    user-select: none;
    white-space: nowrap;
    transition: background 0.12s ease;
}

[b-3rf58tmsqj] .tone-dropdown-toggle:hover {
    background: var(--bg-secondary-hover);
}

[b-3rf58tmsqj] .tone-dropdown-toggle[disabled],
[b-3rf58tmsqj] .tone-dropdown-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tone-dropdown-prefix[b-3rf58tmsqj] {
    color: var(--text-tertiary);
}

.tone-dropdown-label[b-3rf58tmsqj] {
    color: var(--text-primary);
    font-weight: 500;
}

.tone-dropdown-caret[b-3rf58tmsqj] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
    transition: transform 120ms ease;
}

.tone-dropdown.open .tone-dropdown-caret[b-3rf58tmsqj] {
    transform: rotate(180deg);
}

.tone-dropdown-backdrop[b-3rf58tmsqj] {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 10;
}

.tone-dropdown-menu[b-3rf58tmsqj] {
    position: absolute;
    bottom: calc(100% + 4px);
    right: 0;
    min-width: 150px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 4px;
    /* Above the suggestion cards and the composer surface it now overlaps. */
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Rendered via <Button CssClass="tone-dropdown-item"> - ::deep, same hazard as above. */
[b-3rf58tmsqj] .tone-dropdown-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    white-space: nowrap;
    transition: background 0.1s ease;
}

[b-3rf58tmsqj] .tone-dropdown-item:hover {
    background: var(--bg-secondary);
}

[b-3rf58tmsqj] .tone-dropdown-item.selected {
    background: var(--bg-brand-primary);
    color: var(--text-brand-primary);
}

/* ===== Suggest button ===== */
/* proto:246 is btn-secondary-color — brand text on a tinted fill inside a brand border.
   Live shipped a SOLID brand pill, which competed with the composer's Send button for
   the eye: two primary-looking actions, one of which only drafts. */
/* Rendered via <Button CssClass="ai-suggest-btn"> - ::deep, same hazard as above. */
[b-3rf58tmsqj] .ai-suggest-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-brand-primary);
    border: 1px solid var(--border-brand);
    cursor: pointer;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 16px;
    white-space: nowrap;
    transition: background 0.15s ease;
}

[b-3rf58tmsqj] .ai-suggest-btn:hover {
    background: var(--bg-brand-primary);
}

/* instant-switch is now a <Toggle> (Phase 3A Task 6) - its own focus ring lives in
   Styles/components/toggle.css (global), not here, so it drops out of this selector. */
[b-3rf58tmsqj] .ai-suggest-btn:focus-visible,
[b-3rf58tmsqj] .tone-dropdown-toggle:focus-visible,
[b-3rf58tmsqj] .ai-collapse-btn:focus-visible {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

/* ===== Collapse/expand button ===== */
/* Rendered via <Button IconOnly CssClass="ai-collapse-btn"> - ::deep, same hazard as above. */
[b-3rf58tmsqj] .ai-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid var(--border-primary);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    flex: 0 0 auto;
}

[b-3rf58tmsqj] .ai-collapse-btn:hover {
    background: var(--bg-secondary-hover);
    color: var(--text-primary);
}

/* ===== Suggestion card container ===== */
.ai-suggest-card-container[b-3rf58tmsqj] {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 2px;
    scrollbar-width: thin;
}

.ai-suggest-card-container--padded[b-3rf58tmsqj] {
    padding: 10px 12px;
}

/* ===== Suggestion loading skeleton (proto:250-262) =====
   Chrome tracks the real cards exactly — same surface, hairline, radius and shadow —
   so the strip does not visibly change shape when the suggestions land. It was still
   on the old grey/radius-md card after those were restyled. */
.ai-suggest-skeleton-card[b-3rf58tmsqj] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

/* ===== Composer box — proto:281-302 ===== */
.chat-box[b-3rf58tmsqj] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-primary);
}

.chat-composer-surface[b-3rf58tmsqj] {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* The textarea's own outline is suppressed, so the SURFACE has to show focus — otherwise the
   composer is the one control on the screen with no visible focus state. */
.chat-composer-surface:focus-within[b-3rf58tmsqj] {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-xs);
}

.chat-box-textarea[b-3rf58tmsqj] {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    /* proto:284 */
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    font-family: var(--font-family-body);
    resize: none;
    min-height: 24px;
    max-height: 160px;
    padding: 12px 14px 4px;
}

.chat-box-textarea[b-3rf58tmsqj]::placeholder {
    color: var(--text-quaternary);
}

.chat-box-footer[b-3rf58tmsqj] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 10px;
    gap: 8px;
}

.chat-box-footer-left[b-3rf58tmsqj] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.chat-box-footer-right[b-3rf58tmsqj] {
    display: flex;
}

/* ===== Send button ===== */
/* Rendered via <Button CssClass="chat-send-btn"> - ::deep, same hazard as above. */
[b-3rf58tmsqj] .chat-send-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-brand-solid);
    color: var(--text-white);
    border: none;
    cursor: pointer;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 18px;
    transition: background 0.15s ease, opacity 0.15s ease;
}

[b-3rf58tmsqj] .chat-send-btn:hover:not(:disabled) {
    background: var(--bg-brand-solid-hover);
}

[b-3rf58tmsqj] .chat-send-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

[b-3rf58tmsqj] .chat-send-btn:focus-visible {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
}

.chat-send-btn__icon[b-3rf58tmsqj] {
    margin-right: 6px;
    flex: 0 0 auto;
}

/* proto:296 — the in-flight send spins rather than only relabelling. The keyframe is why this
   could not be done inline: a scoped stylesheet is the only place to declare one. The name is
   deliberately NOT the prototype's generic `mf-spin`; @keyframes names are global even from a
   scoped sheet, so a component-specific name cannot collide with a future shared one. */
.chat-send-btn__spinner[b-3rf58tmsqj] {
    margin-right: 6px;
    flex: 0 0 auto;
    animation: chat-send-spin-b-3rf58tmsqj 1s linear infinite;
}

@keyframes chat-send-spin-b-3rf58tmsqj {
    to { transform: rotate(360deg); }
}

/* An agent who has asked for reduced motion still needs to see that the send is in flight —
   the button's "Sending" label and disabled state carry that on their own. */
@media (prefers-reduced-motion: reduce) {
    .chat-send-btn__spinner[b-3rf58tmsqj] {
        animation: none;
    }
}

/* ===== Messenger 24h-window strip ===== */
.chat-window-strip[b-3rf58tmsqj] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    border-top: 1px solid var(--border-primary);
}

.chat-window-strip--info[b-3rf58tmsqj] {
    background: var(--bg-brand-primary);
    color: var(--text-secondary);
}

/* C13: the raw-hex fallbacks these carried are replaced by TOKEN fallbacks, because they were
   not decorative — `marvelo-book` is the one theme that defines no --text-error-primary /
   --text-warning-primary (verified file-by-file across Styles/themes/**), so an unqualified
   var() there is invalid at computed-value time and the colour silently falls back to
   `inherit`. --fg-error-primary / --fg-warning-primary exist in all six themes. Same family as
   BF-53: the handoff's tokens are not uniformly defined, so check before trusting one. */
.chat-window-strip--warning[b-3rf58tmsqj] {
    background: var(--bg-warning-primary);
    color: var(--text-warning-primary, var(--fg-warning-primary));
}

.chat-window-strip a[b-3rf58tmsqj] {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.chat-window-strip__text[b-3rf58tmsqj] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
}

/* Rendered via <Button CssClass="chat-window-strip__retry"> - ::deep, same hazard as above. */
[b-3rf58tmsqj] .chat-window-strip__retry {
    flex: 0 0 auto;
}

.chat-window-strip__counter[b-3rf58tmsqj] {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    color: var(--text-tertiary);
}

.chat-window-strip__counter--over[b-3rf58tmsqj] {
    color: var(--text-error-primary, var(--fg-error-primary));
    font-weight: 600;
}

/* =============================================================================
 * RW-1 — rewrite the typed message in a chosen tone (proto:286-292)
 * ============================================================================= */

/* The footer's left cluster: proto:285-292 puts the controls here and Send at the
   far right. It was an empty div until this feature existed. */
.chat-box-footer-left[b-3rf58tmsqj] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* The composer's menu opens UPWARD (there is nothing below it) and aligns to the
   LEFT edge of its trigger — proto:290. The panel's copy of this menu keeps the
   shared right-alignment, because its trigger sits at the right end of that bar. */
.tone-dropdown-menu--up[b-3rf58tmsqj] {
    left: 0;
    right: auto;
}

.chat-rewrite-spinner[b-3rf58tmsqj] {
    /* Reuses the send button's keyframe - one spin definition for this component. */
    animation: chat-send-spin-b-3rf58tmsqj 0.7s linear infinite;
    flex: 0 0 auto;
}

/* Outcome strip — between the textarea and the controls, because it reports on the
   text above it. Success and refusal share the shape and differ only in tone colour,
   so the eye reads "something happened here" the same way in both. */
.chat-rewrite-strip[b-3rf58tmsqj] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 14px 0;
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-success-primary);
}

.chat-rewrite-strip--error[b-3rf58tmsqj] {
    color: var(--text-error-primary);
}

.chat-rewrite-strip svg[b-3rf58tmsqj] {
    flex: 0 0 auto;
}

/* Undo is the recovery path for text the agent typed themselves, so it is a real
   button with a real focus ring — not a quiet link that a keyboard user can lose. */
.chat-rewrite-undo[b-3rf58tmsqj] {
    border: none;
    background: transparent;
    padding: 0 2px;
    cursor: pointer;
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    font-weight: 600;
    color: var(--text-brand-primary);
    text-decoration: underline;
}

.chat-rewrite-undo:hover[b-3rf58tmsqj] {
    color: var(--text-brand-secondary-hover, var(--text-brand-primary));
}

.chat-rewrite-undo:focus-visible[b-3rf58tmsqj] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
    border-radius: var(--radius-xs, 4px);
}

/* A draft being rewritten must not be edited underneath the request — the answer
   would paste over the edit. readonly (not disabled) keeps it focusable and readable. */
.chat-box-textarea[readonly][b-3rf58tmsqj] {
    opacity: 0.7;
    cursor: progress;
}

/* =============================================================================
 * bot-rich-messaging T17 — reply chip, photo tray, capability line, typing word
 *
 * C13 per-theme notes, MEASURED across Styles/themes/{bold,marvelo-book,peach,
 * soft,untitled,warm} rather than assumed (the six themes are not uniform, so a
 * token undefined in one renders as nothing THERE only):
 *   * --fg-disabled            is MISSING from marvelo-book -> --text-disabled is
 *                              used instead; that one is declared in all six.
 *   * --radius-full            is MISSING from marvelo-book -> a token->token
 *                              fallback is impossible for a radius, so the two
 *                              uses carry a plain length fallback (a length, not
 *                              a colour, so C13 is untouched).
 *   * --border-success-primary exists in NO theme           -> never used here.
 *   * --text-error-primary / --text-warning-primary ARE declared in all six today
 *     (marvelo-book aliases them onto the --fg-* pair), but this file already
 *     writes them token->token and that is the shape which survives the next
 *     theme, so the fallbacks are kept.
 * Everything else below (--bg-*, --text-*, --border-*, --radius-sm/md/xs,
 * --shadow-xs/md) is declared in all six.
 * ============================================================================= */

/* ── The one capability line ────────────────────────────────────────────────
   A third variant of the strip this component already owns, rather than a second
   strip component. Nothing is wrong on this channel, so nothing is coloured as
   though it were: the warning tone stays reserved for states that are degraded. */
.chat-window-strip--quiet[b-3rf58tmsqj] {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
}

.chat-window-strip__channel[b-3rf58tmsqj] {
    font-weight: 600;
    color: var(--text-secondary);
}

.chat-window-strip__why[b-3rf58tmsqj] {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.chat-window-strip__why:focus-visible[b-3rf58tmsqj] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
    border-radius: var(--radius-xs, 4px);
}

/* ── Reply chip ─────────────────────────────────────────────────────────────
   Built on the transcript's existing left-rule quote idiom (.msg__translation: a
   2px --border-brand rule with a micro-label), so it reads as native on day one
   instead of introducing a fifth way of showing a quotation. */
.composer-reply[b-3rf58tmsqj] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 14px 0;
    padding: 6px 8px 6px 10px;
    border-left: 2px solid var(--border-brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--bg-secondary);
}

/* E22: an unconfirmable quote is warned about BEFORE the send, never downgraded
   silently after it. */
.composer-reply--warning[b-3rf58tmsqj] {
    background: var(--bg-warning-primary);
    border-left-color: var(--fg-warning-primary);
}

.composer-reply__body[b-3rf58tmsqj] {
    flex: 1 1 auto;
    min-width: 0;
}

.composer-reply__who[b-3rf58tmsqj] {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 16px;
    color: var(--text-tertiary);
}

.composer-reply__name[b-3rf58tmsqj] {
    font-weight: 600;
    color: var(--text-secondary);
}

.composer-reply__dot[b-3rf58tmsqj] {
    color: var(--text-quaternary);
}

/* One line, ellipsised. An excerpt that wraps to three lines is a second copy of
   the message rather than a reference to it. */
.composer-reply__excerpt[b-3rf58tmsqj] {
    margin: 2px 0 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.composer-reply__note[b-3rf58tmsqj] {
    margin: 3px 0 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-tertiary);
}

.composer-reply__warning[b-3rf58tmsqj] {
    margin: 3px 0 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-warning-primary, var(--fg-warning-primary));
}

/* Rendered via <Button IconOnly CssClass="composer-reply__cancel"> - ::deep, same hazard as above. */
[b-3rf58tmsqj] .composer-reply__cancel {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: var(--radius-xs, 4px);
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
}

[b-3rf58tmsqj] .composer-reply__cancel:hover {
    background: var(--bg-secondary-hover);
    color: var(--text-secondary);
}

[b-3rf58tmsqj] .composer-reply__cancel:focus-visible {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

/* ── Photo tray ─────────────────────────────────────────────────────────────
   56px tiles in selection order. There is no drag-to-reorder in v1 and the order
   rule is WRITTEN DOWN instead: an affordance nobody can discover is worse than a
   rule that is stated. */
.composer-tray[b-3rf58tmsqj] {
    margin: 10px 14px 0;
}

.composer-tray__items[b-3rf58tmsqj] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.composer-tray__item[b-3rf58tmsqj] {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
}

/* Colour is never the only signal (design-spec §8): the dim pairs with a badge on
   the tile and a sentence in the tray. */
.composer-tray__item--invalid .composer-tray__thumb[b-3rf58tmsqj] {
    opacity: 0.45;
    border-color: var(--border-error);
}

.composer-tray__thumb[b-3rf58tmsqj] {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
}

.composer-tray__thumb--blank[b-3rf58tmsqj] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-quaternary);
}

.composer-tray__badge[b-3rf58tmsqj] {
    position: absolute;
    left: 2px;
    bottom: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full, 9999px);
    background: var(--bg-primary);
    color: var(--text-warning-primary, var(--fg-warning-primary));
}

.composer-tray__item--invalid .composer-tray__badge[b-3rf58tmsqj] {
    color: var(--text-error-primary, var(--fg-error-primary));
}

/* Rendered via <Button IconOnly CssClass="composer-tray__remove"> - ::deep, same hazard as above. */
[b-3rf58tmsqj] .composer-tray__remove {
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full, 9999px);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

[b-3rf58tmsqj] .composer-tray__remove:hover {
    background: var(--bg-secondary-hover);
    color: var(--text-primary);
}

[b-3rf58tmsqj] .composer-tray__remove:focus-visible {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

.composer-tray__plan[b-3rf58tmsqj] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    margin: 6px 0 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-tertiary);
}

.composer-tray__caption-note[b-3rf58tmsqj] {
    margin: 2px 0 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-tertiary);
}

.composer-tray__error[b-3rf58tmsqj] {
    margin: 4px 0 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-error-primary, var(--fg-error-primary));
}

/* ── Attach photos ──────────────────────────────────────────────────────────
   The real <input type=file> is laid over the icon at zero opacity: it is natively
   focusable and Space/Enter opens the picker, so the control needs no JS
   click-shim and has no keyboard dead end. */
.composer-attach[b-3rf58tmsqj] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    color: var(--text-tertiary);
}

.composer-attach:hover[b-3rf58tmsqj] {
    background: var(--bg-secondary-hover);
    color: var(--text-secondary);
}

.composer-attach__icon[b-3rf58tmsqj] {
    display: inline-flex;
    pointer-events: none;
}

/* C17: <InputFile> renders its OWN <input>, so this stylesheet's scope attribute never lands
   on it and a plain `.composer-attach__input` would silently match nothing - leaving a raw,
   unstyled file picker sitting in the composer footer. ::deep is the way through: the
   selector before it (`.composer-attach`, this component's own span) carries the scope, and
   everything after it is matched without one. */
.composer-attach[b-3rf58tmsqj]  .composer-attach__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Same reason: the glyph is a child component's <svg>. */
.composer-tray__badge[b-3rf58tmsqj]  .chat-rewrite-spinner {
    animation: chat-send-spin-b-3rf58tmsqj 0.7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .composer-tray__badge[b-3rf58tmsqj]  .chat-rewrite-spinner {
        animation: none;
    }
}

/* The input hides its own ring because it is invisible, so the WRAPPER carries the
   focus state - otherwise the keyboard path to this control shows nothing at all. */
.composer-attach:focus-within[b-3rf58tmsqj] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

/* Disabled with a REASON (design-spec §4.4): never the `disabled` attribute. A
   disabled button receives no pointer events, so the reason it carries is
   unreachable by mouse and by keyboard alike - which is exactly how "disabled with
   a reason" silently becomes "disabled with no reason". */
.composer-attach--reasoned:hover[b-3rf58tmsqj] {
    background: transparent;
}

/* Rendered via <Button IconOnly CssClass="composer-attach__btn"> - ::deep, same hazard as above. */
[b-3rf58tmsqj] .composer-attach__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-disabled);
    cursor: not-allowed;
}

[b-3rf58tmsqj] .composer-attach__btn:focus-visible {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

/* The reason is always in the DOM and always linked by aria-describedby, so
   assistive tech can read it at any time; sighted users get it on hover AND on
   focus, and the focus half is the one that is usually missing. */
.composer-attach__reason[b-3rf58tmsqj] {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    z-index: 20;
    display: block;
    width: max-content;
    max-width: 260px;
    padding: 6px 8px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    color: var(--text-secondary);
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.composer-attach--reasoned:hover .composer-attach__reason[b-3rf58tmsqj],
.composer-attach--reasoned:focus-within .composer-attach__reason[b-3rf58tmsqj] {
    opacity: 1;
    visibility: visible;
}

/* ── Typing word ────────────────────────────────────────────────────────────
   FR-11's entire agent-facing surface. Deliberately the smallest thing on the
   screen: it is a state report, not an event, so there is no spinner and nothing
   to reduce for prefers-reduced-motion. */
.composer-typing[b-3rf58tmsqj] {
    font-size: var(--font-size-text-xs);
    line-height: 16px;
    color: var(--text-quaternary);
    white-space: nowrap;
}
/* /Components/Pages/Chat/ChatMiddleComponents/ChatMessageActionButtons.razor.rz.scp.css */
/* ============================================================
   Per-message actions in the redesigned meta row (Inbox.dc.html proto:220-226).

   The live toolbar was a floating white pill (border + full radius + shadow)
   revealed on hover. The prototype puts bare, always-visible icon buttons inline
   with the timestamp and tags, so the pill chrome is gone. The hit area is kept
   larger than the prototype's `padding:0` and a focus ring is added: the reveal
   used to be hover-only with no :focus-within, i.e. unreachable by keyboard.

   Colours are tokens only (C13).
   ============================================================ */

.message-actions[b-olitkcejbe] {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
}

.message-action-btn[b-olitkcejbe] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--fg-quaternary);
    cursor: pointer;
    flex: 0 0 auto;
    transition: background 0.12s ease, color 0.12s ease;
}

.message-action-btn:hover:not(:disabled)[b-olitkcejbe] {
    background: var(--bg-secondary-hover);
    color: var(--fg-secondary);
}

.message-action-btn:focus-visible[b-olitkcejbe] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

.message-action-btn:disabled[b-olitkcejbe] {
    opacity: 0.4;
    cursor: default;
}

/* Bookmarked is a state, not a hover style - it must read as ON at rest. */
.message-action-btn--bookmarked[b-olitkcejbe] {
    color: var(--text-warning-primary);
}

.message-action-btn--bookmarked:hover:not(:disabled)[b-olitkcejbe] {
    color: var(--text-warning-primary);
    background: var(--bg-warning-primary);
}

/* ============================================================
   Reply / React — bot-rich-messaging design-spec §2 S4, §5.4.

   Both buttons reuse .message-action-btn above: they are the same borderless
   icon control in the same meta row, at positions 1 and 2. Nothing here styles
   a DISABLED capability state, because there is none — an action this channel
   cannot perform is not emitted at all (see the component's header comment).

   Colours are tokens only (C13). --fg-disabled is deliberately unused: it is
   undefined in the marvelo-book theme (measured), where it would render as
   nothing at all.
   ============================================================ */

.message-action-react[b-olitkcejbe] {
    position: relative;
    display: inline-flex;
}

/* The picker is open: the trigger reads as ON at rest, not only on hover. */
.message-action-btn--on[b-olitkcejbe] {
    background: var(--bg-secondary-hover);
    color: var(--fg-secondary);
}

/* Click-away. Same idiom as the shared Dropdown's overlay; it exists only while
   the picker is open, so it is never a phantom hit target. */
.message-react-overlay[b-olitkcejbe] {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.message-react-picker[b-olitkcejbe] {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    z-index: 41;
    width: 236px;
    max-height: 216px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
}

/* An outbound stack is right-aligned, so a left-anchored panel would run off the
   pane. Matching an ancestor class from another component is legitimate here —
   the scope attribute lands on the LAST selector, which is this component's. */
.msg--out .message-react-picker[b-olitkcejbe] {
    left: auto;
    right: 0;
}

.message-react-grid[b-olitkcejbe] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.message-react-emoji[b-olitkcejbe] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 28px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    font-size: var(--font-size-text-lg);
    line-height: 1;
    cursor: pointer;
    transition: background 0.12s ease;
}

.message-react-emoji:hover[b-olitkcejbe] {
    background: var(--bg-secondary-hover);
}

.message-react-emoji:focus-visible[b-olitkcejbe] {
    outline: 2px solid var(--border-brand);
    outline-offset: -1px;
}

/* Ours already: the same outline the chip under the bubble wears, so "this is the
   one you sent" is one mark in both places. */
.message-react-emoji[aria-pressed="true"][b-olitkcejbe] {
    border-color: var(--border-brand);
    background: var(--bg-secondary);
}

/* Only on a channel that publishes no whitelist — the sentence that stops the grid
   above from reading as a limit. */
.message-react-note[b-olitkcejbe] {
    margin: 8px 0 0;
    font-size: var(--font-size-text-xs);
    line-height: 15px;
    color: var(--text-tertiary);
}
/* /Components/Pages/Chat/ChatMiddleComponents/ChatMessageDetail.razor.rz.scp.css */
/* ============================================================
   One message row — redesigned chat chrome (Inbox.dc.html proto:186-229).

   Layout is direction-driven: the row aligns its stack left for inbound and
   right for outbound, the stack caps at 62% of the pane, and body / translation
   / send-failure / meta stack vertically with a 6px rhythm.

   NOTE (constitution C17): the markdown body is AddMarkupContent output, so the
   generated <p>/<ul>/<code> children carry no scope attribute and a plain
   descendant selector never matches them. Everything that reaches inside
   .msg__md goes through ::deep. Colours are tokens only (C13).
   ============================================================ */

.msg[b-gkk8muurr2] {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 14px;
}

.msg--in[b-gkk8muurr2] { align-items: flex-start; }
.msg--out[b-gkk8muurr2] { align-items: flex-end; }

.msg__stack[b-gkk8muurr2] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 62%;
    min-width: 0;
}

.msg--in .msg__stack[b-gkk8muurr2] { align-items: flex-start; }
.msg--out .msg__stack[b-gkk8muurr2] { align-items: flex-end; }

/* ===== Text bubble ===== */
.msg__bubble[b-gkk8muurr2] {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    padding: 9px 13px;
    color: var(--text-primary);
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    min-width: 0;
    overflow-wrap: anywhere;
}

.msg__bubble--out[b-gkk8muurr2] {
    background: var(--bg-brand-solid);
    border-color: var(--bg-brand-solid);
    color: var(--text-white);
}

.msg__unsupported[b-gkk8muurr2] {
    font-style: italic;
    color: var(--text-tertiary);
}

.msg__bubble--out .msg__unsupported[b-gkk8muurr2] { color: var(--text-white); }

/* ===== Markdown body — ::deep so the rules reach the generated children ===== */
.msg__md[b-gkk8muurr2] { font-size: var(--font-size-text-sm); line-height: 1.55; }
.msg__md[b-gkk8muurr2]  > :first-child { margin-top: 0; }
.msg__md[b-gkk8muurr2]  > :last-child { margin-bottom: 0; }
.msg__md[b-gkk8muurr2]  p { margin: 0 0 8px; }
.msg__md[b-gkk8muurr2]  ul,
.msg__md[b-gkk8muurr2]  ol { margin: 0 0 8px; padding-left: 20px; }
.msg__md[b-gkk8muurr2]  li { margin: 2px 0; }
.msg__md[b-gkk8muurr2]  pre {
    margin: 0 0 8px;
    padding: 8px 10px;
    overflow-x: auto;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
}
.msg__md[b-gkk8muurr2]  code { font-family: var(--font-family-mono, monospace); font-size: var(--font-size-text-sm); }
.msg__md[b-gkk8muurr2]  a { text-decoration: underline; }
.msg__md[b-gkk8muurr2]  img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* Outgoing bubbles are on a solid brand fill: force the inherited colour through
   every generated descendant, not just the wrapper. */
.msg__bubble--out .msg__md[b-gkk8muurr2],
.msg__bubble--out .msg__md[b-gkk8muurr2]  * { color: var(--text-white); }
.msg__bubble--out .msg__md[b-gkk8muurr2]  pre { background: var(--bg-brand-solid-hover); }

/* Metta theme: its brand-solid is the full #FF3B00 accent, which under white
   text is only 3.6:1 and glares across a long thread. Outgoing bubbles there use
   the soft brand tint with ink text instead (peach #FFD9CC light, ~14:1; deep
   rust #5E220F with paper text dark). The theme contract allows token values
   only, so this one rule lives here, scoped to [data-theme="metta"] — Blazor
   appends the scope attribute to the last compound only, so the <html>
   ancestor still matches, and the extra attribute outranks the rules above. */
[data-theme="metta"] .msg__bubble--out[b-gkk8muurr2] {
    background: var(--bg-brand-secondary);
    border-color: var(--bg-brand-secondary);
    color: var(--text-primary);
}
[data-theme="metta"] .msg__bubble--out .msg__unsupported[b-gkk8muurr2] { color: var(--text-secondary); }
[data-theme="metta"] .msg__bubble--out .msg__md[b-gkk8muurr2],
[data-theme="metta"] .msg__bubble--out .msg__md[b-gkk8muurr2]  * { color: var(--text-primary); }
[data-theme="metta"] .msg__bubble--out .msg__md[b-gkk8muurr2]  pre { background: var(--bg-brand-primary); }

/* See-more clamp (INB-C5) */
.msg__md--clamped[b-gkk8muurr2] {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.msg__clamp-toggle[b-gkk8muurr2] { align-self: flex-start; }

/* ===== Media ===== */
.msg__media[b-gkk8muurr2] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.msg__media--audio[b-gkk8muurr2] { min-width: 260px; }

.msg__image-link[b-gkk8muurr2] {
    display: block;
    width: fit-content;
    border-radius: var(--radius-lg);
}

.msg__image-link:focus-visible[b-gkk8muurr2] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
}

.msg__image[b-gkk8muurr2] {
    max-width: 300px;
    max-height: 300px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    display: block;
}

.msg__video[b-gkk8muurr2] {
    max-width: 300px;
    max-height: 300px;
    border-radius: var(--radius-lg);
    display: block;
}

.msg__audio[b-gkk8muurr2] { width: 100%; }

.msg__media-missing[b-gkk8muurr2] {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border: 1px dashed var(--border-secondary);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.msg__caption[b-gkk8muurr2] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ===== Document card (INB-C6) ===== */
.msg__doc[b-gkk8muurr2] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    min-width: 250px;
}

.msg__doc-icon[b-gkk8muurr2] {
    display: inline-flex;
    align-items: center;
    color: var(--fg-brand-primary);
    flex: 0 0 auto;
}

.msg__doc-info[b-gkk8muurr2] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1 1 auto;
    min-width: 0;
}

.msg__doc-name[b-gkk8muurr2] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-primary);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msg__doc-size[b-gkk8muurr2] {
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
}

.msg__doc-download[b-gkk8muurr2] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    background: var(--bg-primary);
    color: var(--text-brand-primary);
    flex: 0 0 auto;
    transition: background-color 0.15s ease;
}

.msg__doc-download:hover[b-gkk8muurr2] { background: var(--bg-brand-primary); }
.msg__doc-download:focus-visible[b-gkk8muurr2] { outline: 2px solid var(--border-brand); outline-offset: 1px; }

/* ===== Interactive / template card ===== */
.msg__card[b-gkk8muurr2] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 8px;
    max-width: 280px;
    box-shadow: var(--shadow-xs);
}

.msg__card-media[b-gkk8muurr2] { display: flex; width: 100%; }

.msg__card-img[b-gkk8muurr2] {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    display: block;
}

.msg__card-img--placeholder[b-gkk8muurr2] {
    height: 120px;
    background: var(--bg-secondary-hover);
}

.msg__card-body[b-gkk8muurr2] { margin: 0; font-size: var(--font-size-text-sm); line-height: 1.5; color: var(--text-primary); }
.msg__card-footer[b-gkk8muurr2] { margin: 0; font-size: var(--font-size-text-xs); color: var(--text-tertiary); }

/* The card's buttons are the CUSTOMER's affordances, echoed back to the agent for
   reference. They were <button> elements with no handler in the live app — a
   keyboard dead end — so they render as inert labels here. */
.msg__card-btn[b-gkk8muurr2] {
    display: block;
    width: 100%;
    padding: 7px 12px;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    text-align: center;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-brand-primary);
}

/* ===== Translation ===== */
.msg__translation[b-gkk8muurr2] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 2px solid var(--border-brand);
    /* A subtle brand-tinted wash (a slight blue in the default theme) so the translation reads as its own
       block under the message rather than as more of it (T72): half the strength of the theme's brand tint,
       mixed into the surface colour so it stays gentle in every theme and in dark mode. The left rule keeps
       its edge; the right corners round. */
    background: color-mix(in srgb, var(--bg-brand-primary) 50%, var(--bg-primary));
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 6px 12px 6px 10px;
    text-align: left;
    align-self: stretch;
}

.msg__translation-label[b-gkk8muurr2] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-brand-primary);
}

.msg__translation-body[b-gkk8muurr2] {
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ===== BUG-5 send failure ===== */
.msg__failed[b-gkk8muurr2] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: var(--font-size-text-sm);
    color: var(--text-error-primary);
}

.msg__failed-reason[b-gkk8muurr2] {
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
}

/* ===== Meta row ===== */
.msg__meta[b-gkk8muurr2] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.msg--out .msg__meta[b-gkk8muurr2] { justify-content: flex-end; }

.msg__sender[b-gkk8muurr2] {
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    color: var(--text-tertiary);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msg__time[b-gkk8muurr2] { font-size: var(--font-size-text-xs); color: var(--text-quaternary); }

/* Partner agents: "via {agent} (partner agent)" under an inbound bubble a partner agent typed
   for the customer (Agent Portal canvas, StaffInbox). Brand-coloured so it reads as provenance,
   not as the customer's own words. */
.msg__via[b-gkk8muurr2] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);
    min-width: 0;
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    color: var(--text-brand-secondary);
}

.msg__tag[b-gkk8muurr2] {
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    background: var(--bg-warning-primary);
    color: var(--text-warning-primary);
}

.msg__tag--neutral[b-gkk8muurr2] {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
}

/* The action toolbar is a child component, so its own class is only reachable
   with ::deep. It is ALWAYS visible now: the live hover-only reveal had no
   :focus-within, which left keyboard users with no way to bookmark or copy. */
.msg__meta[b-gkk8muurr2]  .message-actions {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

/* ===== Shared inline link button ===== */
.msg__link[b-gkk8muurr2] {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    color: var(--text-brand-primary);
    cursor: pointer;
}

.msg__link:hover[b-gkk8muurr2] { text-decoration: underline; }
.msg__link:disabled[b-gkk8muurr2] { opacity: 0.7; cursor: default; text-decoration: none; }
.msg__link:focus-visible[b-gkk8muurr2] { outline: 2px solid var(--border-brand); outline-offset: 2px; border-radius: var(--radius-xs); }
.msg__link--muted[b-gkk8muurr2] { color: var(--text-tertiary); }

/* ============================================================
   Rich messaging (bot-rich-messaging, design-spec §5)

   Only the pieces that belong to THIS component's own markup live here. The
   quote block, the gallery, the chips and the ticks are separate components and
   carry their own scoped stylesheets — scoped CSS does not reach a child
   component's internals (C17), and an ::deep rule reaching into them would style
   by position instead of by identity.
   ============================================================ */

/* DC-3 degradation note in the meta row. Agent-side only, and deliberately the
   quietest thing on the row: it explains, it does not warn. */
.msg__note[b-gkk8muurr2] {
    font-size: var(--font-size-text-xs);
    line-height: 1.3;
    color: var(--text-tertiary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Jump-to-original lands here: a 1.2s flash that is NOT colour alone — the
   outline carries the same signal for anyone who cannot see the tint. The row is
   tabindex="-1" so focus (which is what scrolls it into view) never adds a tab stop. */
.msg:focus[b-gkk8muurr2] { outline: none; }

.msg--jump .msg__stack[b-gkk8muurr2] {
    border-radius: var(--radius-lg);
    outline: 2px solid var(--border-brand);
    outline-offset: 4px;
    animation: msg-jump-flash-b-gkk8muurr2 1.2s ease-out forwards;
}

@keyframes msg-jump-flash-b-gkk8muurr2 {
    from { background-color: var(--bg-brand-primary); }
    to { background-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .msg--jump .msg__stack[b-gkk8muurr2] { animation: none; }
}
/* /Components/Pages/Chat/ChatMiddleComponents/ChatMessageList.razor.rz.scp.css */
/* ===== Message scroll body (column-reverse: newest at visual bottom) ===== */
.chat-detail-message-body[b-n6wy235r61] {
    display: flex;
    flex-direction: column-reverse;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 18px 20px;
    gap: 0;
    background: var(--bg-primary);
}

/* Toggled by changeChatMessageBodyMaximize(bool) JS interop */
.chat-detail-message-body.maximized[b-n6wy235r61] {
    height: 100%;
}

/* ===== Date divider (proto:186) =====
   Emitted after the OLDEST row of each day; column-reverse renders it above that row. */
.msg-divider[b-n6wy235r61] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    margin: 4px 0 14px;
}

.msg-divider__rule[b-n6wy235r61] {
    flex: 1;
    height: 1px;
    background: var(--border-tertiary);
}

.msg-divider__label[b-n6wy235r61] {
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    color: var(--text-quaternary);
    white-space: nowrap;
}

/* ===== Older-messages loader (visual top in column-reverse) ===== */
.chat-message-loader[b-n6wy235r61] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    flex: 0 0 auto;
}

/* A failed older-page fetch keeps the loaded transcript and offers a retry in place —
   it must never replace the messages already on screen (SH-1). */
.msg-older-error[b-n6wy235r61] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-text-sm);
    color: var(--text-error-primary);
}

.msg-older-retry[b-n6wy235r61] {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-brand-primary);
    cursor: pointer;
}

.msg-older-retry:hover[b-n6wy235r61] { text-decoration: underline; }
.msg-older-retry:focus-visible[b-n6wy235r61] { outline: 2px solid var(--border-brand); outline-offset: 2px; }

/* ============================================================
   Rich messaging (bot-rich-messaging, design-spec §5.3)
   ============================================================ */

/* R2 — the read/seen boundary. Same rule-and-label geometry as the date divider
   above, but RIGHT-ALIGNED and quieter, because it is a statement about the
   agent's own outbound messages rather than a heading for the day. Exactly one
   per thread; zero rows matched is a normal outcome, not an error. */
.msg-divider--read[b-n6wy235r61] {
    margin: 2px 0 10px;
}

.msg-divider--read .msg-divider__label[b-n6wy235r61] {
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    color: var(--text-quaternary);
}

/* Visually hidden live region: the album-amend announcement is for a screen
   reader only, and reserving layout for it would push the composer. */
.msg-live[b-n6wy235r61] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
/* /Components/Pages/Chat/ChatMiddleComponents/ChatUserDeatil.razor.rz.scp.css */
/* ============================================================
   Running-action banner — proto:176-182: a flat brand strip under the header,
   lightning glyph + one line of text, left-aligned.

   The live version was a centred, shimmering gradient with a pulsing dot. The
   redesign keeps every piece of INFORMATION (paused-only state, counts, the
   full-text title for long action names — parity row «Running-action banner»)
   and drops the animation: a permanently animating strip above a live transcript
   competes with the messages for attention.
   ============================================================ */

.chat-action-running-banner[b-q3t6e8w97f] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 7px 16px;
    background: var(--bg-brand-primary);
    border-bottom: 1px solid var(--border-secondary);
    color: var(--text-brand-primary);
    min-width: 0;
}

/* Nothing is running. The strip stays in the DOM because it hosts ActionRunningTracker — the
   component that FETCHES the counts this strip renders — but it must take no space and leave no
   accessibility-tree entry, so this is display:none rather than a visual-only hide. */
.chat-action-running-banner.is-empty[b-q3t6e8w97f] {
    display: none;
}

/* Paused, or waiting on a team reply (AI hold, 2026-10-07): a warning, not progress. */
.chat-action-running-banner.is-paused-only[b-q3t6e8w97f],
.chat-action-running-banner.is-held[b-q3t6e8w97f] {
    background: var(--bg-warning-primary);
    color: var(--text-warning-primary);
}

.chat-action-running-banner-icon[b-q3t6e8w97f] {
    flex: 0 0 auto;
}

/* Single line, ellipsized when action names run long; the full list stays in title=. */
.chat-action-running-banner-text[b-q3t6e8w97f] {
    margin: 0;
    flex: 1 1 auto;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 18px;
    color: inherit;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Components/Pages/Chat/ChatMiddleComponents/ChatUserDetailHeader.razor.rz.scp.css */
/* ============================================================
   Conversation header — proto:162-174, tidied by the "Chat header cleanup" canvas
   (https://claude.ai/artifact/AvfohkMEBukGuyqduqeeQA). Identity on the left (name +
   lead tags, then channel line + AI state), actions on the right, ONE line at every
   width: the actions fold into More as the pane narrows (the fold rules below).
   ============================================================ */

.chat-user-detail-header[b-5poux2j1gw] {
    position: relative;   /* anchors AiHandlingBar's line to this header's bottom border */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 10px 16px;
    flex: 0 0 auto;
    border-bottom: 1px solid var(--border-secondary);
    background: var(--bg-primary);
    gap: 12px;
    min-width: 0;
    min-height: 60px;
    box-sizing: border-box;
    /* "Chat header cleanup": the actions fold by the PANE's width, not the screen's - the pane is user-resizable and
       shares the screen with the list and the tools. Inline-size only: no layout containment, so the fixed dialogs,
       menus and the capability sheet inside still place themselves against the viewport. */
    container: chat-header / inline-size;
}

/* ===== Left: avatar + text identity ===== */
.chat-user-detail-identity[b-5poux2j1gw] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.chat-user-detail-avatar-wrap[b-5poux2j1gw] {
    flex: 0 0 auto;
}

/* INB-C4 — the customer's real profile picture. */
.chat-user-detail-img[b-5poux2j1gw] {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    object-fit: cover;
    display: block;
}

/* Initials fallback for a customer with no picture. */
.chat-user-detail-img-placeholder[b-5poux2j1gw] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-brand-solid);
    color: var(--text-white);
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    text-transform: uppercase;
    user-select: none;
}

.chat-user-detail-info[b-5poux2j1gw] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

/* Line 1: name + lead/mood tags. leads.css lets this row wrap (so in a tight pane the tags used to stack under the name,
   one per line); here it stays ONE line and the name ellipsises first. Same class, scoped: this rule wins. */
.lm-header-name-row[b-5poux2j1gw] {
    flex-wrap: nowrap;
    gap: 8px;
}

.lm-header-name-row[b-5poux2j1gw]  .lm-header-tags {
    flex: 0 0 auto;
}

/* Line 2: the channel line, then the AI's state; the channel sentence gives way first. */
.chat-user-detail-meta-row[b-5poux2j1gw] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.chat-user-detail-meta-row > .chat-user-detail-meta[b-5poux2j1gw],
.chat-user-detail-meta-row > .chat-channel-sheet-anchor[b-5poux2j1gw] {
    flex: 0 1 auto;
}

.chat-user-detail-meta-row[b-5poux2j1gw]  .ai-handling-badge {
    flex: 0 1 auto;
}

.chat-user-detail-name[b-5poux2j1gw] {
    margin: 0;
    font-size: var(--font-size-text-md);
    font-weight: 600;
    line-height: 20px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* proto:166 — channel mark, then the sentence. The icon must not shrink or ellipsize,
   so the flex row gives it a fixed slot and lets only the text clip. */
.chat-user-detail-meta[b-5poux2j1gw] {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.chat-user-detail-meta__platform[b-5poux2j1gw] {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.chat-user-detail-meta__text[b-5poux2j1gw] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Right: action row ===== */
.chat-user-detail-actions[b-5poux2j1gw] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

/* Button is a child component, so its class is only reachable with ::deep. */
.chat-user-detail-actions[b-5poux2j1gw]  .chat-header-btn {
    white-space: nowrap;
}

/* ============================================================
   Fold order ("Chat header cleanup"). Every step keeps every action reachable:
     1. Bookmarks + Summarize move into More (the More button appears),
     2. Case board / Follow up keep only their icon (aria-label and title still name them),
     3. Case board / Follow up move into More too,
     4. a phone-narrow pane drops the lead tags (Tools > Lead & mood still has them) and
        shortens "Mark done" to "Done" (QueueHeaderActions.razor.css).
   A chat with team-queue actions ("Mark done" split, "Move to...") has a wider actions row,
   so each step comes at a wider pane (the --queue rules).
   ============================================================ */

.chat-header-more[b-5poux2j1gw] {
    display: none;
}

/* Rows of More that only exist once step 3 has happened. */
.chat-header-more[b-5poux2j1gw]  .chat-header-more__item--label {
    display: none;
}

.chat-header-more[b-5poux2j1gw]  .floating-menu {
    display: inline-flex;
}

.chat-header-more[b-5poux2j1gw]  .floating-menu-panel {
    min-width: 15rem;
}

.chat-header-more[b-5poux2j1gw]  .floating-menu-item {
    justify-content: flex-start;
    white-space: nowrap;
}

/* Two classes: .chat-header-icon-btn (later in this file) sets display too. */
@container chat-header (max-width: 720px) {
    .chat-user-detail-actions .chat-header-fold--icon[b-5poux2j1gw] { display: none; }
    .chat-header-more[b-5poux2j1gw] { display: inline-flex; }
}

@container chat-header (max-width: 640px) {
    .chat-header-btn__label[b-5poux2j1gw] { display: none; }
    .chat-user-detail-actions[b-5poux2j1gw]  .chat-header-fold--label {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@container chat-header (max-width: 520px) {
    .chat-user-detail-actions[b-5poux2j1gw]  .chat-header-fold--label { display: none; }
    .chat-header-more[b-5poux2j1gw]  .chat-header-more__item--label { display: flex; }
}

@container chat-header (max-width: 880px) {
    .chat-user-detail-header--queue .chat-user-detail-actions .chat-header-fold--icon[b-5poux2j1gw] { display: none; }
    .chat-user-detail-header--queue .chat-header-more[b-5poux2j1gw] { display: inline-flex; }
}

@container chat-header (max-width: 800px) {
    .chat-user-detail-header--queue .chat-header-btn__label[b-5poux2j1gw] { display: none; }
    .chat-user-detail-header--queue .chat-user-detail-actions[b-5poux2j1gw]  .chat-header-fold--label {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@container chat-header (max-width: 660px) {
    .chat-user-detail-header--queue .chat-user-detail-actions[b-5poux2j1gw]  .chat-header-fold--label { display: none; }
    .chat-user-detail-header--queue .chat-header-more[b-5poux2j1gw]  .chat-header-more__item--label { display: flex; }
}

@container chat-header (max-width: 440px) {
    .lm-header-name-row[b-5poux2j1gw]  .lm-header-tags { display: none; }
    .chat-user-detail-img[b-5poux2j1gw] { width: 30px; height: 30px; }
}

/* The open-conversation count's rule moved OUT of this stylesheet with its markup (BF-124):
   it belongs to the Inbox page header now, so it is compiled against Chat.razor's scope id.
   A rule left behind here would match nothing — scoped CSS follows the component, not the
   class name (C17). See .chat-header-open-count in Chat.razor.css. */

.chat-header-icon-btn[b-5poux2j1gw] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--fg-quaternary);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    padding: 0;
}

.chat-header-icon-btn:hover[b-5poux2j1gw] {
    background: var(--bg-secondary-hover);
    color: var(--fg-secondary);
    border-color: var(--border-primary);
}

.chat-header-icon-btn:focus-visible[b-5poux2j1gw] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

/* proto:173 — the tools-pane collapse, relocated here from the tool rail. Below 64rem the
   tools pane is an off-canvas drawer and the collapsed state does nothing at all (BF-48),
   so the control is removed rather than left as a button that cannot act. */
@media (max-width: 64rem) {
    .chat-header-icon-btn--panel[b-5poux2j1gw] { display: none; }
}

/* ============================================================
   S5 — the channel capability sheet (bot-rich-messaging design-spec §3).

   The badge keeps .chat-user-detail-meta's geometry exactly: it is the SAME line,
   promoted to a control, so the header does not visibly change when the feature is
   switched on. Only the affordances are new — a hover tint, a focus ring, and a
   caret-free popover anchored under it.

   The panel is sized to show all FIVE rows at once, which is what makes "opens
   scrolled to the relevant row" a highlight rather than a scroll. scroll-margin-block
   is set anyway, so a sixth row the registry adds later still lands clear of the head.

   Colours are tokens only (C13).
   ============================================================ */

.chat-channel-sheet-anchor[b-5poux2j1gw] {
    position: relative;
    display: flex;
    min-width: 0;
}

/* Promoted to a <button>, so the UA's own button chrome has to go. */
.chat-channel-badge[b-5poux2j1gw] {
    padding: 1px 4px;
    margin-left: -4px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chat-channel-badge:hover[b-5poux2j1gw] {
    background: var(--bg-secondary-hover);
    border-color: var(--border-primary);
    color: var(--text-secondary);
}

.chat-channel-badge:focus-visible[b-5poux2j1gw] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

.chat-channel-sheet-overlay[b-5poux2j1gw] {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: transparent;
}

.chat-channel-sheet[b-5poux2j1gw] {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 61;
    width: 302px;
    max-height: 420px;
    overflow-y: auto;
    padding: 10px 12px 12px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
}

.chat-channel-sheet__head[b-5poux2j1gw] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-secondary);
}

.chat-channel-sheet__title[b-5poux2j1gw] {
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 18px;
    color: var(--text-primary);
}

.chat-channel-sheet__close[b-5poux2j1gw] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--fg-quaternary);
    cursor: pointer;
}

.chat-channel-sheet__close:hover[b-5poux2j1gw] {
    background: var(--bg-secondary-hover);
    color: var(--fg-secondary);
}

.chat-channel-sheet__close:focus-visible[b-5poux2j1gw] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

.chat-channel-sheet__rows[b-5poux2j1gw] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chat-channel-sheet__row[b-5poux2j1gw] {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 10px;
    padding: 6px 6px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    scroll-margin-block: 44px;
}

/* Opened from a composer "Why?" — the row the agent actually asked about. */
.chat-channel-sheet__row--target[b-5poux2j1gw] {
    border-color: var(--border-brand);
    background: var(--bg-secondary);
}

.chat-channel-sheet__label[b-5poux2j1gw] {
    grid-column: 1;
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    line-height: 16px;
    color: var(--text-tertiary);
}

.chat-channel-sheet__answer[b-5poux2j1gw] {
    grid-column: 2;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 16px;
    color: var(--text-primary);
}

/* "No" is not styled as an error: nothing is wrong, this channel simply does not do it. */
.chat-channel-sheet__answer--no[b-5poux2j1gw] {
    font-weight: 500;
    color: var(--text-tertiary);
}

.chat-channel-sheet__detail[b-5poux2j1gw] {
    grid-column: 2;
    margin-top: 2px;
    font-size: var(--font-size-text-xs);
    line-height: 16px;
    color: var(--text-tertiary);
}

.chat-channel-sheet__loading[b-5poux2j1gw] {
    padding: 6px 6px 2px;
}

/* ErrorState is a child component, so its internals are only reachable with ::deep (C17). */
.chat-channel-sheet__error[b-5poux2j1gw]  .error-state {
    padding: 4px 2px;
}
/* /Components/Pages/Chat/ChatMiddleComponents/MessageExtractionPanel.razor.rz.scp.css */
/* ============================================================
   Per-message extraction, in the redesigned file-card chrome
   (Inbox.dc.html proto:193-205) plus the flag-gated edit drawer
   (proto:718-780).

   NOTE (constitution C17): the extracted body is AddMarkupContent output
   (Markdig), so its generated children carry no scope attribute - everything
   reaching inside .extract__body goes through ::deep. The buttons and badges
   are child components for the same reason. Colours are tokens only (C13).
   ============================================================ */

.extract[b-aezwessrbr] {
    margin-top: 6px;
    min-width: 0;
}

/* ===== Pending (proto:194) ===== */
.extract__pending[b-aezwessrbr] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.extract__spinner[b-aezwessrbr] {
    animation: extract-spin-b-aezwessrbr 1s linear infinite;
}

@keyframes extract-spin-b-aezwessrbr {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ===== Failed (proto:195) ===== */
.extract__failed[b-aezwessrbr] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: var(--font-size-text-sm);
    color: var(--text-error-primary);
}

.extract__failed-detail[b-aezwessrbr] {
    color: var(--text-tertiary);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Success card (proto:196-203) ===== */
.extract__card[b-aezwessrbr] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    min-width: 0;
}

.extract__head[b-aezwessrbr] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Provenance is prose, not decoration: it says WHO produced the text you are
   about to trust (SH-4). */
.extract__provenance[b-aezwessrbr] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
}

.extract__body[b-aezwessrbr] {
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary);
    max-height: 300px;
    overflow: auto;
    overflow-wrap: anywhere;
    min-width: 0;
}

.extract__body--muted[b-aezwessrbr] {
    color: var(--text-quaternary);
    font-style: italic;
}

.extract__body[b-aezwessrbr]  .md-content > :first-child { margin-top: 0; }
.extract__body[b-aezwessrbr]  .md-content > :last-child { margin-bottom: 0; }
.extract__body[b-aezwessrbr]  pre,
.extract__body[b-aezwessrbr]  code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* A failed fetch is its own state, never a blank body (SH-1). */
.extract__load-failed[b-aezwessrbr] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: var(--font-size-text-sm);
    color: var(--text-error-primary);
}

.extract__actions[b-aezwessrbr] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.extract__actions-spacer[b-aezwessrbr] {
    flex: 1 1 auto;
}

/* ============================================================
   Edit drawer (proto:718-780) - rendered inside the shared <Drawer>,
   so its own chrome (header/body/footer) comes from drawer.css.
   ============================================================ */

.extract-drawer[b-aezwessrbr] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.extract-drawer__block[b-aezwessrbr] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.extract-drawer__eyebrow[b-aezwessrbr] {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-quaternary);
    overflow-wrap: anywhere;
}

.extract-drawer__eyebrow svg[b-aezwessrbr] {
    color: var(--fg-brand-primary);
    flex-shrink: 0;
}

.extract-drawer__preview[b-aezwessrbr] {
    min-height: 180px;
    display: grid;
    place-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.extract-drawer__image[b-aezwessrbr] {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
}

.extract-drawer__preview-fallback[b-aezwessrbr] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
}

.extract-drawer__preview-icon[b-aezwessrbr] {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
    display: grid;
    place-items: center;
}

.extract-drawer__preview-name[b-aezwessrbr] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.extract-drawer__preview-hint[b-aezwessrbr] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
}

.extract-drawer__data-head[b-aezwessrbr] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.extract-drawer__spacer[b-aezwessrbr] {
    flex: 1 1 auto;
}

/* ----- preview list (proto:750-756) ----- */
.extract-drawer__rows[b-aezwessrbr] {
    display: flex;
    flex-direction: column;
    gap: 7px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    padding: 10px 12px;
    min-width: 0;
}

.extract-drawer__row[b-aezwessrbr] {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.extract-drawer__row svg[b-aezwessrbr] {
    color: var(--fg-success-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.extract-drawer__empty[b-aezwessrbr] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-style: italic;
    color: var(--text-quaternary);
}

/* ----- editor (proto:757-769) ----- */
.extract-drawer__editor[b-aezwessrbr] {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-width: 0;
}

.extract-drawer__toolbar[b-aezwessrbr] {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    padding: 4px 6px;
    border-bottom: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
}

.extract-drawer__toolbar-divider[b-aezwessrbr] {
    width: 1px;
    height: 16px;
    background: var(--border-secondary);
    margin: 0 4px;
}

/* The textarea is an InputField (a child component), so its border must be
   removed from inside the editor frame via ::deep - C17. */
.extract-drawer__editor[b-aezwessrbr]  .input-group {
    margin: 0;
}

.extract-drawer__editor[b-aezwessrbr]  .input-field {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    resize: vertical;
    font-size: var(--font-size-text-sm);
    line-height: 1.6;
}

/* Says, in words, which of the two texts applies and what each control does to it -
   the legible alternative to a UI that guesses (BF-75). */
.extract-drawer__hint[b-aezwessrbr] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-tertiary);
}

.extract-drawer__error[b-aezwessrbr] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    color: var(--text-error-primary);
}

/* .drawer-footer is `display:flex; justify-content:flex-end`, so this note claims the
   free space and keeps the two actions hard right (proto:773-777). */
.extract-drawer__footnote[b-aezwessrbr] {
    flex: 1 1 auto;
    align-self: center;
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-tertiary);
}
/* /Components/Pages/Chat/ChatMiddleComponents/MessageListSkeleton.razor.rz.scp.css */
/* ============================================================
   Message-history skeleton (proto:150-158). Rows mirror the redesigned message
   row: inbound bars sit left, outbound bars right, no avatar placeholder because
   the real row has no per-message avatar.

   Rendered inside .chat-detail-message-body, which already supplies the padding,
   so this wrapper adds none. That container is column-reverse, so this wrapper
   pins its own direction to column to keep the rhythm reading top-down.
   ============================================================ */

.message-list-skeleton[b-578cqifofm] {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.message-list-skeleton__row[b-578cqifofm] {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 14px;
}

.message-list-skeleton__row--out[b-578cqifofm] {
    justify-content: flex-end;
}

/* Skeleton is a child component: its root is only reachable with ::deep. The bar
   takes the row's width so the percentage widths above are of the pane, not of a
   shrink-to-fit box. */
.message-list-skeleton__row[b-578cqifofm]  .skeleton {
    border-radius: var(--radius-lg);
}
/* /Components/Pages/Chat/ChatMiddleComponents/QueueHeaderActions.razor.rz.scp.css */
/* Teams: the conversation header's queue actions - the holder's "Mark done" split control with its Move to... / Give back...
   menu, a lead's plain "Move to...", and their two dialogs. Tokens only. Button, PhIcon and FloatingMenu are child components,
   so their own elements are reached with ::deep. */
.qha[b-3usn2f24v1] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

/* ===== "Mark done" + arrow, drawn as one control ===== */
.qha-split[b-3usn2f24v1] {
    display: inline-flex;
    align-items: stretch;
}

.qha-split[b-3usn2f24v1]  .qha-split__main {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    white-space: nowrap;
}

.qha-split[b-3usn2f24v1]  .qha-split__check {
    color: var(--fg-brand-primary);
}

.qha-split[b-3usn2f24v1]  .floating-menu {
    display: inline-flex;
}

.qha-split[b-3usn2f24v1]  .qha-split__caret {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    height: 100%;
}

.qha[b-3usn2f24v1]  .qha-move {
    white-space: nowrap;
}

/* The short label is for a narrow pane only (the rule at the end of this file). */
.qha-label-short[b-3usn2f24v1] {
    display: none;
}

/* ===== The arrow's menu: a title and a one-line hint per row ===== */
.qha-split[b-3usn2f24v1]  .floating-menu-panel {
    min-width: 17.5rem;
}

.qha-split[b-3usn2f24v1]  .qha-menu-item {
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    white-space: normal;
    text-align: left;
}

.qha-split[b-3usn2f24v1]  .qha-menu-item .floating-menu-icon {
    margin-top: 2px;
}

.qha-menu-item__text[b-3usn2f24v1] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.qha-menu-item__title[b-3usn2f24v1] {
    color: var(--text-primary);
    font-weight: 500;
}

.qha-menu-item__hint[b-3usn2f24v1] {
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
    line-height: 1.6;
    font-weight: 400;
}

/* "chat-header" is the conversation header (ChatUserDetailHeader.razor.css). On a phone-narrow pane "Mark done" becomes
   "Done" and "Move to..." keeps only its arrow (its aria-label still says it). */
@container chat-header (max-width: 440px) {
    .qha-label[b-3usn2f24v1] {
        display: none;
    }

    .qha-label-short[b-3usn2f24v1] {
        display: inline;
    }
}

/* ===== The two dialogs ===== */
.qha-form[b-3usn2f24v1] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    line-height: 1.6;
}

.qha-or[b-3usn2f24v1] {
    margin: 0;
    color: var(--text-tertiary);
    font-size: var(--font-size-text-sm);
}
/* /Components/Pages/Chat/ChatMiddleComponents/QueueHolderBar.razor.rz.scp.css */
/* Teams: what sits under the conversation header (spec 5.5; "Chat header cleanup" canvas
   https://claude.ai/artifact/AvfohkMEBukGuyqduqeeQA): focus mode's dark row, then ONE status strip - holder, reply clock,
   reason - then the take-over ask while one is open. Tokens only. Staff-typed names (holder, asker, team) may be long Burmese:
   they are bounded and ellipsised like the Chat list row (QueueRowExtras), and wrapping text keeps a line-height of at least
   1.6 so Myanmar stacks don't clip. */

.qhb-focus[b-ycjuwn1esg] {
    display: flex;
    align-items: center;
    gap: 6px 12px;
    flex-wrap: wrap;
    padding: 6px 16px;
    background: var(--bg-primary-solid);
    color: var(--text-white);
    font-size: var(--font-size-text-sm);
    line-height: 1.6;
}

.qhb-focus__lead[b-ycjuwn1esg] {
    font-weight: 600;
    white-space: nowrap;
}

.qhb-focus__hint[b-ycjuwn1esg] {
    min-width: 0;
    opacity: 0.8;
}

.qhb-focus__actions[b-ycjuwn1esg] {
    display: inline-flex;
    gap: 6px;
    margin-left: auto;
}

/* ===== The strip: one line, wrapping only when the pane is too narrow ===== */
.qhb-strip[b-ycjuwn1esg] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-width: 0;
    min-height: 40px;
    box-sizing: border-box;
    padding: 6px 16px;
    border-bottom: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-sm);
    line-height: 1.6;
    color: var(--text-tertiary);
}

.qhb-strip--mine[b-ycjuwn1esg] {
    background: var(--bg-brand-primary);
}

.qhb-strip--other[b-ycjuwn1esg] {
    background: var(--bg-secondary);
}

.qhb-strip--wait[b-ycjuwn1esg] {
    background: var(--bg-warning-primary);
}

.qhb-state[b-ycjuwn1esg] {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 6px;
    min-width: 0;
}

.qhb-state b[b-ycjuwn1esg] {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* PhIcon is a child component: ::deep. */
.qhb-state[b-ycjuwn1esg]  .qhb-state__icon {
    flex: 0 0 auto;
    color: var(--fg-brand-primary);
}

.qhb-strip--other .qhb-state[b-ycjuwn1esg]  .qhb-state__icon {
    color: var(--fg-quaternary);
}

.qhb-strip--wait .qhb-state[b-ycjuwn1esg]  .qhb-state__icon {
    color: var(--fg-warning-primary);
}

.qhb-state__sub[b-ycjuwn1esg] {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* A holder / asker / team name: one line, cut with an ellipsis, never wider than the pane. */
.qhb-name[b-ycjuwn1esg] {
    display: inline-block;
    max-width: min(16rem, 100%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

/* Reply time: a chip, coloured by how much time is left. A holder's name inside it is cut, never wrapped wide. */
.qhb-clock[b-ycjuwn1esg] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
    height: 24px;
    box-sizing: border-box;
    padding: 0 9px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
}

.qhb-clock[b-ycjuwn1esg]  .qhb-clock__icon {
    flex: 0 0 auto;
}

.qhb-clock--ok[b-ycjuwn1esg] {
    color: var(--text-success-primary);
    background: var(--bg-success-primary);
    border-color: var(--border-success);
}

.qhb-clock--warn[b-ycjuwn1esg] {
    color: var(--text-warning-primary);
    background: var(--bg-warning-primary);
    border-color: var(--border-warning);
    font-weight: 600;
}

.qhb-clock--late[b-ycjuwn1esg] {
    color: var(--text-error-primary);
    background: var(--bg-error-primary);
    border-color: var(--border-error);
    font-weight: 600;
}

.qhb-clock--paused[b-ycjuwn1esg] {
    color: var(--text-tertiary);
}

/* Why it is here: pushed to the right end of the line; on a wrapped line it simply starts the next one. */
.qhb-why[b-ycjuwn1esg] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-left: auto;
}

.qhb-why__reason[b-ycjuwn1esg] {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
}

.qhb-why__reason[b-ycjuwn1esg]  .badge {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qhb-why__also[b-ycjuwn1esg] {
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    white-space: nowrap;
}

.qhb-why__more[b-ycjuwn1esg] {
    display: inline-flex;
}

.qhb-why__pop[b-ycjuwn1esg] {
    margin: 0 0 6px;
    line-height: 1.6;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.qhb-why__pop b[b-ycjuwn1esg] {
    color: var(--text-primary);
    font-weight: 600;
}

.qhb-why__pop--detail[b-ycjuwn1esg] {
    color: var(--text-tertiary);
}

.qhb-why__link[b-ycjuwn1esg] {
    color: var(--text-brand-secondary);
    font-size: var(--font-size-text-sm);
    text-decoration: underline;
}

/* ===== Take-over ask: its own row, only while the ask is open ===== */
.qhb-ask[b-ycjuwn1esg] {
    display: flex;
    align-items: center;
    gap: 6px 12px;
    flex-wrap: wrap;
    padding: 6px 16px;
    background: var(--bg-warning-primary);
    border-bottom: 1px solid var(--border-warning);
    color: var(--text-secondary);
    font-size: var(--font-size-text-sm);
    line-height: 1.6;
}

.qhb-ask__text[b-ycjuwn1esg] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.qhb-ask__text b[b-ycjuwn1esg] {
    font-weight: 600;
    color: var(--text-primary);
}

.qhb-ask__hint[b-ycjuwn1esg] {
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
}

.qhb-ask__actions[b-ycjuwn1esg] {
    display: inline-flex;
    gap: 6px;
    margin-left: auto;
}

.qhb-error[b-ycjuwn1esg] {
    padding: 6px 16px;
}
/* /Components/Pages/Chat/ChatMiddleComponents/QueueHoldStrip.razor.rz.scp.css */
/* Teams: the line above the composer (board .comp .lock and the "Take it" row). Tokens only; names are bounded with an
   ellipsis and wrapping text keeps line-height 1.6 for Myanmar script. */
.qhs[b-9tunssmghv] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 8px;
}

.qhs__row[b-9tunssmghv] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-text-sm);
    line-height: 1.6;
}

.qhs__row--lock[b-9tunssmghv] {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
}

.qhs__row--take[b-9tunssmghv] {
    background: var(--bg-warning-primary);
    color: var(--text-warning-primary);
}

.qhs__text[b-9tunssmghv] {
    flex: 1 1 14rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.qhs__name[b-9tunssmghv] {
    display: inline-block;
    max-width: min(14rem, 100%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    color: var(--text-secondary);
    font-weight: 600;
}

.qhs__actions[b-9tunssmghv] {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.qhs__error[b-9tunssmghv] {
    margin: 0;
    padding: 0 4px;
    color: var(--text-error-primary);
    font-size: var(--font-size-text-sm);
    line-height: 1.6;
}
/* /Components/Pages/Chat/ChatMiddleComponents/RichMessaging/MessageGallery.razor.rz.scp.css */
/* ============================================================
   Album gallery — design-spec §5.2. ONE row, N tiles.

   Sizing follows the single-image branch it replaces (.msg__image is capped at
   300px), so an album occupies the same visual footprint a single photo does and
   the 62% stack cap still holds.

   Colours are tokens only (C13). --fg-disabled is deliberately not used: it is
   undefined in the marvelo-book theme, where it would render as nothing.
   ============================================================ */

.msg__gallery-wrap[b-vy0x1ttvgb] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    max-width: 300px;
}

.msg__gallery[b-vy0x1ttvgb] {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.msg__gallery[data-gallery-cols="1"][b-vy0x1ttvgb] { grid-template-columns: 1fr; }
.msg__gallery[data-gallery-cols="2"][b-vy0x1ttvgb] { grid-template-columns: repeat(2, 1fr); }
.msg__gallery[data-gallery-cols="3"][b-vy0x1ttvgb] { grid-template-columns: repeat(3, 1fr); }

.msg__gallery-cell[b-vy0x1ttvgb] {
    margin: 0;
    padding: 0;
    min-width: 0;
}

.msg__gallery-tile[b-vy0x1ttvgb] {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 0;
    padding: 0;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.msg__gallery-tile:focus-visible[b-vy0x1ttvgb] {
    outline: 2px solid var(--border-brand);
    outline-offset: -2px;
}

.msg__gallery-img[b-vy0x1ttvgb] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* E2 — a failed tile is dimmed AND badged AND counted AND labelled. The dim is
   decoration over an image, never the sole carrier of the state. */
.msg__gallery-tile--failed .msg__gallery-img[b-vy0x1ttvgb] {
    opacity: 0.45;
}

.msg__gallery-tile--failed[b-vy0x1ttvgb] {
    background: var(--bg-error-primary);
}

.msg__gallery-badge[b-vy0x1ttvgb] {
    position: absolute;
    top: 4px;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    /* --radius-full is UNDEFINED in the marvelo-book theme (measured), where it would
       render as no radius at all. --radius-4xl (24px there) is the token->token fallback
       C13 asks for, and 24px fully rounds a 20px badge. */
    border-radius: var(--radius-full, var(--radius-4xl));
    background: var(--bg-primary);
    color: var(--fg-warning-primary);
}

/* A tile whose media we cannot open: still a tile, still labelled, never a broken image. */
.msg__gallery-tile--empty[b-vy0x1ttvgb] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-secondary);
}

.msg__gallery-empty-label[b-vy0x1ttvgb] {
    font-size: var(--font-size-text-xs);
    line-height: 1.3;
    color: var(--text-tertiary);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* The +N expander sits over the 4th slot's own image. */
.msg__gallery-tile--more[b-vy0x1ttvgb] {
    cursor: pointer;
}

.msg__gallery-more[b-vy0x1ttvgb] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-overlay, var(--bg-quaternary));
    color: var(--text-white);
    font-size: var(--font-size-text-md);
    font-weight: 600;
}

.msg__gallery-caption[b-vy0x1ttvgb] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ===== Partial-failure footer ===== */
.msg__gallery-footer[b-vy0x1ttvgb] {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-secondary);
}

.msg__gallery-count[b-vy0x1ttvgb] {
    color: var(--text-secondary);
}

.msg__gallery-unwired[b-vy0x1ttvgb] {
    color: var(--text-tertiary);
}

/* Matches .msg__link in ChatMessageDetail.razor.css. It is restated rather than
   shared because scoped CSS does not reach a child component's markup (C17), and
   an ::deep rule in the parent would style by position instead of by identity. */
.msg__gallery-action[b-vy0x1ttvgb] {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    color: var(--text-brand-primary);
    cursor: pointer;
}

.msg__gallery-action:hover[b-vy0x1ttvgb] { text-decoration: underline; }
.msg__gallery-action:disabled[b-vy0x1ttvgb] { color: var(--text-disabled); cursor: default; text-decoration: none; }
.msg__gallery-action:focus-visible[b-vy0x1ttvgb] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

.msg__gallery-collapse[b-vy0x1ttvgb] { align-self: flex-start; }
/* /Components/Pages/Chat/ChatMiddleComponents/RichMessaging/MessageQuoteBlock.razor.rz.scp.css */
/* ============================================================
   Quoted bubble — design-spec §5.1.

   Geometry is lifted from .msg__translation (ChatMessageDetail.razor.css): a 2px
   --border-brand left rule with a micro-label above a muted body. Reusing the
   idiom rather than inventing one is why this reads as native on day one.

   Colours are tokens only (C13).
   ============================================================ */

.msg__quote[b-1l9a189qso] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: left;
    border: 0;
    border-left: 2px solid var(--border-brand);
    border-radius: 0;
    background: transparent;
    padding: 3px 0 3px 10px;
    font: inherit;
}

/* The resolvable form is a real button: pointer, hover, and a visible focus ring. */
button.msg__quote[b-1l9a189qso] {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

button.msg__quote:hover[b-1l9a189qso] {
    background: var(--bg-secondary-hover);
}

button.msg__quote:focus-visible[b-1l9a189qso] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
}

.msg__quote-head[b-1l9a189qso] {
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-brand-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* One line, ellipsised. The excerpt is plain text on purpose (never markdown). */
.msg__quote-body[b-1l9a189qso] {
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* E9 — unresolvable is not an affordance: no pointer, no hover, no focus ring. */
.msg__quote--unavailable .msg__quote-body[b-1l9a189qso] {
    font-style: italic;
    color: var(--text-tertiary);
}

/* E10 — an inbox-only (Viber) reply must not look like a native quote the customer saw.
   Dashed rule is the visual signal; the meta row carries the sentence (DC-3). */
.msg__quote--degraded[b-1l9a189qso] {
    border-left-style: dashed;
    border-left-color: var(--border-secondary);
}

.msg__quote--degraded .msg__quote-head[b-1l9a189qso] {
    color: var(--text-tertiary);
}
/* /Components/Pages/Chat/ChatMiddleComponents/RichMessaging/MessageTicks.razor.rz.scp.css */
/* ============================================================
   Delivery ticks — design-spec §5.3.

   Sent / Delivered / Read differ by GLYPH and STROKE WEIGHT first; colour is the
   third signal, never the only one (§8). Colours are tokens only (C13); the Read
   green is --fg-success-primary, verified present in all six themes. Neither
   --fg-disabled (absent in marvelo-book) nor --border-success-primary (absent in
   every theme) is used anywhere in this feature.
   ============================================================ */

.msg__tick[b-ozd9kkwjmw] {
    display: inline-flex;
    align-items: center;
    color: var(--text-quaternary);
    flex: 0 0 auto;
    line-height: 0;
}

.msg__tick--read[b-ozd9kkwjmw] {
    color: var(--fg-success-primary);
}
/* /Components/Pages/Chat/ChatMiddleComponents/RichMessaging/ReactionChips.razor.rz.scp.css */
/* ============================================================
   Reaction chips — design-spec §5.4.

   Geometry matches .msg__tag (ChatMessageDetail.razor.css): 20px tall, fully
   rounded, --bg-secondary. Restated here rather than shared because scoped CSS
   does not reach a child component's markup (C17).

   Colours are tokens only (C13).
   ============================================================ */

.msg__reactions[b-msdwlrvt5x] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.msg--out .msg__reactions[b-msdwlrvt5x] { justify-content: flex-end; }

.msg__reaction[b-msdwlrvt5x] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    padding: 0 7px;
    /* --radius-full is UNDEFINED in the marvelo-book theme (measured), where it would
       render as a square chip. --radius-4xl (24px there) is the token->token fallback
       C13 asks for, and 24px fully rounds a 20px chip. */
    border-radius: var(--radius-full, var(--radius-4xl));
    border: 1px solid transparent;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--font-size-text-xs);
    line-height: 1;
    cursor: default;
}

/* Ours is outlined, and it is the only one that is a control. */
.msg__reaction--mine[b-msdwlrvt5x] {
    border-color: var(--border-brand);
}

.msg__reaction[aria-pressed="true"][b-msdwlrvt5x] {
    cursor: pointer;
}

.msg__reaction:focus-visible[b-msdwlrvt5x] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
}

.msg__reaction-emoji[b-msdwlrvt5x] {
    font-size: var(--font-size-text-sm);
    line-height: 1;
}

/* U+FFFD is never printed: a custom or paid reaction reads as a word. */
.msg__reaction-custom[b-msdwlrvt5x] {
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-tertiary);
}

.msg__reaction-count[b-msdwlrvt5x] {
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    color: var(--text-tertiary);
}
/* /Components/Pages/Chat/ChatMobileDrawers.razor.rz.scp.css */
/* ============================================================
   INB-C3 — mobile drawer triggers + scrim.

   Only the controls live here. The drawers themselves are other components' roots
   (.chat-left-side-bar / .chat-right-side-bar) and are positioned by Chat.razor.css,
   which owns the .chat-page-body state classes they key off.
   ============================================================ */

/* Desktop shows all three panes at once, so the triggers have nothing to open. */
.chat-drawer-trigger[b-50sg504rd7] {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--fg-quaternary);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chat-drawer-trigger:hover[b-50sg504rd7] {
    background: var(--bg-secondary);
    color: var(--fg-secondary);
}

.chat-drawer-trigger:focus-visible[b-50sg504rd7] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

/* An open drawer's trigger reads as pressed, so the toggle's state is visible and
   not only announced. */
.chat-drawer-trigger[aria-expanded="true"][b-50sg504rd7] {
    background: var(--bg-brand-primary);
    border-color: var(--border-brand);
    color: var(--text-brand-primary);
}

/* ===== Scrim =====
   A real button so the drawer can be dismissed from the keyboard; it is only in the
   DOM while a drawer is open, so it adds no tab stop the rest of the time. */
.chat-drawer-scrim[b-50sg504rd7] {
    position: absolute;
    inset: 0;
    z-index: 25;
    border: none;
    padding: 0;
    background: var(--bg-overlay);
    cursor: pointer;
    /* No content — the accessible name comes from aria-label. */
    font: inherit;
    color: transparent;
}

.chat-drawer-scrim:focus-visible[b-50sg504rd7] {
    outline: 2px solid var(--border-brand);
    outline-offset: -3px;
}

/* Below the 3-pane breakpoint the two side panes become drawers, so their triggers
   are the only way to reach them. */
@media (max-width: 64rem) {
    .chat-drawer-trigger[b-50sg504rd7] {
        display: inline-flex;
    }
}
/* /Components/Pages/Chat/ChatRightSideComponents/Actions/Action.razor.rz.scp.css */
/* ============================================================
   Action tab panel — Warm design-system re-skin
   ============================================================ */

/* ── Header ── */
/* T21 — removed. The header is the shared global .panel-header now (panel-controls.css), the
   same chrome the other seven rail panels wear; .action-panel-header / .action-panel-title
   described a 16px/700 iconless variant that nothing renders any more. */

/* ── Scrollable list wrapper ── */
.action-card-list[b-3b63hubbc8] {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* T32 — the list used to start flush against the panel header because the static
       "Customized Action" banner (removed in T29) carried a 14px margin-bottom that happened to
       space the first card. With the banner gone the first .action-item sat against the header
       rule, so the breathing room is now the list's own rather than a side effect of a card that
       no longer exists. */
    padding: var(--spacing-2-5) 12px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

/* ── Customized-action banner card ── */
/* T29 — removed. The banner it styled was static copy with no handler; nothing renders these
   classes any more. */

/* ── Infinite wrapper ── */
.action-infinite-wrapper[b-3b63hubbc8] {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ── Individual action item card ── */
/* ── Action card — proto:408-419 ──────────────────────────────────────────────
   A COLUMN: header row (lightning, name, status badge), description, controls.
   Live was a row with the text on one side and icon-only buttons on the other,
   which squeezed the description and made running / paused / inactive nearly
   indistinguishable — one glyph apart, with no state named anywhere. */
.action-item[b-3b63hubbc8] {
    display: flex;
    flex-direction: column;
    gap: 7px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    padding: 10px 12px;
    margin-bottom: 10px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.action-item:hover[b-3b63hubbc8] {
    border-color: var(--border-brand);
}

.action-item-head[b-3b63hubbc8] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.action-item-mark[b-3b63hubbc8] {
    flex: 0 0 auto;
    color: var(--fg-brand-primary);
}

.action-item-title[b-3b63hubbc8] {
    flex: 1 1 auto;
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 18px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-item-desc[b-3b63hubbc8] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-tertiary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

/* ── Controls — proto:411-415, labelled not icon-only ─────────────────────── */
.action-item-controls[b-3b63hubbc8] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn[b-3b63hubbc8] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 16px;
    cursor: pointer;
    white-space: nowrap;
    background: var(--bg-primary);
    transition: background 0.15s ease, border-color 0.15s ease;
}

/* Pause / Resume — btn-secondary. */
.action-btn--neutral[b-3b63hubbc8] {
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.action-btn--neutral:hover[b-3b63hubbc8] {
    background: var(--bg-secondary-hover);
}

/* Start — btn-secondary-color. */
.action-btn--brand[b-3b63hubbc8] {
    border: 1px solid var(--border-brand);
    color: var(--text-brand-primary);
}

.action-btn--brand:hover[b-3b63hubbc8] {
    background: var(--bg-brand-primary);
}

/* Stop — btn-secondary-destructive. The only control here that cannot be undone,
   so it must not look like the one next to it. */
.action-btn--destructive[b-3b63hubbc8] {
    border: 1px solid var(--border-error, var(--border-primary));
    color: var(--text-error-primary);
}

.action-btn--destructive:hover[b-3b63hubbc8] {
    background: var(--bg-error-secondary, var(--bg-secondary-hover));
}

.action-btn:focus-visible[b-3b63hubbc8] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

/* ── In-flight ──────────────────────────────────────────────────────────────
   A row waiting on a write disables BOTH its controls, so the pair reads as one
   thing happening rather than one dead button next to a live one. The variant
   :hover rules above would otherwise still paint under the cursor and invite the
   second click the disable exists to prevent, so they are answered here with
   higher specificity ([disabled] beats the bare variant class). */
.action-btn[disabled][b-3b63hubbc8] {
    cursor: not-allowed;
    opacity: 0.55;
}

.action-btn[disabled]:hover[b-3b63hubbc8] {
    background: var(--bg-primary);
}

/* The button that was actually PRESSED keeps full contrast and gets the spinner:
   it is the one reporting progress, not the one being held back. */
.action-btn--busy[disabled][b-3b63hubbc8] {
    cursor: progress;
    opacity: 1;
}

.action-btn__spinner[b-3b63hubbc8] {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    /* currentColor keeps it on the variant's own ink in all six themes rather than
       reaching for a --color-* that warm/marvelo-book redefine. */
    border: 1.5px solid currentColor;
    border-top-color: transparent;
    animation: action-btn-spin-b-3b63hubbc8 0.7s linear infinite;
}

@keyframes action-btn-spin-b-3b63hubbc8 {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .action-btn__spinner[b-3b63hubbc8] {
        animation-duration: 2.4s;
    }
}


/* ── Send button (completed / unstarted actions) ── */
.action-item-send[b-3b63hubbc8] {
    flex: 0 0 auto;
}

/* .action-send-btn is gone with the markup: proto:414 makes the inactive-action
   control a labelled "Start" (.action-btn--brand), not a solid "Send" pill. */


/* ── Loading ── */
.action-loading[b-3b63hubbc8] {
    display: flex;
    justify-content: center;
    padding: 12px;
}

/* ── Stop confirmation (proto:804-807 / BF-104) ── */
.action-stop-copy[b-3b63hubbc8] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    color: var(--text-secondary);
}

/* Token fallback, not a hex one (C13): `marvelo-book` is the one theme that defines no
   --text-error-primary (BF-102), and an unresolved var() would leave the failure line the
   same colour as the body copy — on the one message that must not be missed. */
.action-stop-error[b-3b63hubbc8] {
    margin: 8px 0 0;
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-error-primary, var(--fg-error-primary));
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/AICompanion.razor.rz.scp.css */
/* ============================================================
   AI Companion shell — header, Ask/Recent tabs, search, suggestion chips.

   The transcript's rules moved to AICompanionMessageList.razor.css with the
   markup they style: scoped CSS does not cross a component boundary (C17), so
   they would have stopped applying if they had stayed here.
   Tokens only (C13); no Styles/** file touched (no css:build).
   ============================================================ */

/* ===== Header =====
   Now the SHARED .panel-header (panel-controls.css) — icon + title, the same object the
   other seven tools panels wear. The 16px/700 bare title that used to live here is gone
   with its markup. */

/* ===== Search + view switch (proto:328-340) =====
   One row: the search box takes the width, the view menu's toggle sits beside it. */
.ai-companion-search[b-3b30eeqkeg] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 10px 12px 8px;
    flex: 0 0 auto;
}

.ai-companion-search .panel-search[b-3b30eeqkeg] {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---- View menu (Ask / Recent) ---- */
.ai-companion-view[b-3b30eeqkeg] {
    position: relative;
    flex: 0 0 auto;
}

.ai-companion-view-toggle[b-3b30eeqkeg] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--fg-tertiary);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ai-companion-view-toggle:hover[b-3b30eeqkeg] {
    background: var(--bg-secondary-hover);
    color: var(--fg-secondary);
}

.ai-companion-view-toggle:focus-visible[b-3b30eeqkeg] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

/* Catches the click that closes the menu. Transparent, below the menu, above the panel. */
.ai-companion-view-backdrop[b-3b30eeqkeg] {
    position: fixed;
    inset: 0;
    z-index: 39;
}

.ai-companion-view-menu[b-3b30eeqkeg] {
    position: absolute;
    top: 32px;
    right: 0;
    z-index: 40;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    padding: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.ai-companion-view-item[b-3b30eeqkeg] {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.ai-companion-view-item:hover[b-3b30eeqkeg] { background: var(--bg-secondary-hover); }

.ai-companion-view-item:focus-visible[b-3b30eeqkeg] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.ai-companion-view-item.is-active[b-3b30eeqkeg] { background: var(--bg-active); }

.ai-companion-view-item__icon[b-3b30eeqkeg] { color: var(--fg-tertiary); flex: 0 0 auto; }

.ai-companion-view-item__label[b-3b30eeqkeg] { flex: 1 1 auto; }

.ai-companion-view-item__check[b-3b30eeqkeg] { color: var(--fg-brand-primary); flex: 0 0 auto; }

/* ===== Quick-action suggestion chips (proto:617-619) =====
   One wrapping row of gray pills, no heading. The chips themselves are the SHARED
   `badge badge-sm badge-pill badge-gray`; only what a badge does not know about — that it
   is clickable, that it wraps, that it carries a brand sparkle — is set here. */
.ai-companion-suggestions[b-3b30eeqkeg] {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 0 12px 8px;
    flex: 0 0 auto;
}

.ai-companion-suggestion-chip[b-3b30eeqkeg],
.ai-companion-suggestions-refresh[b-3b30eeqkeg] {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ai-companion-suggestion-chip[b-3b30eeqkeg] {
    gap: 5px;
    /* Chips wrap as whole chips; a long suggestion wraps inside its own pill rather than
       forcing a horizontal scroll on a 330px panel. */
    white-space: normal;
    height: auto;
    min-height: 1.375rem;
    text-align: left;
}

.ai-companion-suggestion-chip__spark[b-3b30eeqkeg] {
    color: var(--fg-brand-primary);
    flex: 0 0 auto;
}

.ai-companion-suggestion-chip:hover[b-3b30eeqkeg],
.ai-companion-suggestions-refresh:hover:not(:disabled)[b-3b30eeqkeg] {
    background: var(--bg-secondary-hover);
}

.ai-companion-suggestion-chip:focus-visible[b-3b30eeqkeg],
.ai-companion-suggestions-refresh:focus-visible[b-3b30eeqkeg] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

/* Regenerate is icon-only, so it is square rather than pill-wide. */
.ai-companion-suggestions-refresh[b-3b30eeqkeg] {
    width: 1.375rem;
    padding: 0;
    color: var(--fg-tertiary);
}

.ai-companion-suggestions-refresh:disabled[b-3b30eeqkeg] {
    cursor: default;
    opacity: 0.5;
}

.ai-companion-suggestions-refresh.is-loading[b-3b30eeqkeg] {
    animation: ai-companion-spin-b-3b30eeqkeg 0.8s linear infinite;
}

@keyframes ai-companion-spin-b-3b30eeqkeg {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ai-companion-suggestions-refresh.is-loading[b-3b30eeqkeg] { animation: none; }
    .ai-companion-view-toggle[b-3b30eeqkeg],
    .ai-companion-suggestion-chip[b-3b30eeqkeg],
    .ai-companion-suggestions-refresh[b-3b30eeqkeg] { transition: none; }
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/AICompanionChatBox.razor.rz.scp.css */
/* proto:616 — the composer is the panel's last row and is separated from the transcript by
   a hairline, not by a floating capsule. */
.ai-companion-composer[b-qxq9sk54pw] {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 7px;
    width: 100%;
    padding: 9px 14px 10px;
    border-top: 1px solid var(--border-secondary);
    flex: 0 0 auto;
}

/* proto:621 — 1px border, radius-md, 7px 10px. */
.ai-companion-composer-field[b-qxq9sk54pw] {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-companion-composer-field:focus-within[b-qxq9sk54pw] {
    border-color: var(--border-brand);
    box-shadow: var(--focus-ring-brand);
}

.ai-companion-composer-textarea[b-qxq9sk54pw] {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    resize: none;
    overflow-y: hidden;
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--font-size-text-sm);
    line-height: 18px;
    /* Multi-line stays: Shift+Enter is a newline here, which the prototype's <input> cannot
       do. Capped so a long question scrolls inside the field instead of eating the
       transcript. */
    max-height: 96px;
    overflow-y: auto;
}

.ai-companion-composer-textarea[b-qxq9sk54pw]::placeholder { color: var(--text-placeholder); }

/* proto:622 — icon-only primary, square, sized to the field beside it. */
.ai-companion-composer-send[b-qxq9sk54pw] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    background: var(--bg-brand-solid);
    color: var(--text-white);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ai-companion-composer-send:hover[b-qxq9sk54pw] { background: var(--bg-brand-solid-hover); }

.ai-companion-composer-send:focus-visible[b-qxq9sk54pw] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.ai-companion-composer-textarea:disabled[b-qxq9sk54pw] { cursor: not-allowed; }

.ai-companion-composer-send:disabled[b-qxq9sk54pw] {
    background: var(--bg-disabled);
    color: var(--text-disabled);
    cursor: not-allowed;
}

.ai-companion-composer-send:disabled:hover[b-qxq9sk54pw] { background: var(--bg-disabled); }

@media (prefers-reduced-motion: reduce) {
    .ai-companion-composer-field[b-qxq9sk54pw],
    .ai-companion-composer-send[b-qxq9sk54pw] { transition: none; }
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/AICompanionMessageList.razor.rz.scp.css */
/* ============================================================
   AI Companion transcript — T16 / W2.

   These rules moved here WITH the markup they style. Scoped CSS does not cross a
   component boundary (constitution C17), so leaving them in AICompanion.razor.css
   while the transcript lives in this component would silently unstyle the whole
   panel. The header / tabs / search / suggestion chips stay in the parent's sheet
   because that markup stayed there.

   All colours are tokens (C13); no Styles/** file is touched (so no css:build).
   ============================================================ */

/* ===== Message body (scroll container) ===== */
.ai-companion-message-body[b-xz3bvj3b3e] {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    padding: 0 12px 12px;
    scroll-behavior: smooth;
}

/* ===== Date divider ===== */
.ai-companion-date-divider[b-xz3bvj3b3e] {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ai-companion-date-divider-line[b-xz3bvj3b3e] {
    flex: 1 1 auto;
    height: 1px;
    background: var(--border-secondary);
}

.ai-companion-date-divider-text[b-xz3bvj3b3e] {
    font-size: var(--font-size-text-md);
    line-height: 20px;
    color: var(--text-placeholder);
    white-space: nowrap;
    margin: 0 12px;
}

/* ===== Older-page status ===== */
.ai-companion-older[b-xz3bvj3b3e] {
    margin: 0 0 12px;
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-tertiary);
    text-align: center;
}

/* ===== Message rows ===== */
.ai-companion-msg[b-xz3bvj3b3e] {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-bottom: 16px;
}

.ai-companion-msg-user[b-xz3bvj3b3e] { justify-content: flex-end; }

.ai-companion-msg-avatar-wrap[b-xz3bvj3b3e] {
    display: flex;
    position: relative;
    flex: 0 0 auto;
    margin-right: 8px;
}

.ai-companion-msg-avatar-wrap-user[b-xz3bvj3b3e] {
    align-self: flex-start;
    margin-right: 0;
    margin-left: 8px;
}

.ai-companion-msg-avatar[b-xz3bvj3b3e] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-brand-primary);
    color: var(--text-brand-primary);
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    text-transform: uppercase;
}

.ai-companion-msg-status-dot[b-xz3bvj3b3e] {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--bg-success-primary);
    border: 2px solid var(--bg-primary);
}

.ai-companion-msg-content[b-xz3bvj3b3e] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ai-companion-msg-content-user[b-xz3bvj3b3e] { align-items: flex-end; }

.ai-companion-msg-sender[b-xz3bvj3b3e] {
    font-size: var(--font-size-text-md);
    font-weight: 600;
    line-height: 20px;
    color: var(--text-primary);
    margin: 0 0 4px;
}

/* proto:345-350. Live was 14px/20px in a 280px fixed box; the panel is ~330px wide, so
   a fixed max-width could not adapt to the pinned rail or a dragged split. */
.ai-companion-msg-bubble[b-xz3bvj3b3e] {
    border-radius: var(--radius-lg);
    padding: 10px 12px;
    margin-bottom: 4px;
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    max-width: 88%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* proto:349 — the assistant's answer is a bordered CARD on the secondary surface, which
   is what lets the typed blocks inside it read as one answer. Live used a borderless
   hover-grey fill, so consecutive answers ran together. */
.ai-companion-msg-bubble-ai[b-xz3bvj3b3e] {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
}

/* The markdown body is AddMarkupContent output, which scoped selectors cannot
   reach without ::deep (C17). */
.ai-companion-msg-bubble-ai[b-xz3bvj3b3e]  p { margin: 0; }
.ai-companion-msg-bubble-ai[b-xz3bvj3b3e]  p + p { margin-top: 8px; }
.ai-companion-msg-bubble-ai[b-xz3bvj3b3e]  a { color: var(--text-brand-primary); }
.ai-companion-msg-bubble-ai[b-xz3bvj3b3e]  pre {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 8px;
    overflow-x: auto;
}
.ai-companion-msg-bubble-ai[b-xz3bvj3b3e]  code { font-size: var(--font-size-text-sm); }

/* proto:347 — the agent's own question is a brand TINT with brand text, not the solid
   fill. Solid brand is the composer's Send and the customer-facing outbound bubble; using
   it here made an internal question look like a message that had gone to the customer. */
.ai-companion-msg-bubble-user[b-xz3bvj3b3e] {
    background: var(--bg-brand-primary);
    color: var(--text-brand-primary);
}

.ai-companion-msg-text[b-xz3bvj3b3e] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    color: inherit;
}

.ai-companion-msg-meta[b-xz3bvj3b3e] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.ai-companion-msg-time[b-xz3bvj3b3e] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-tertiary);
}

/* ===== Empty state ===== */
.ai-companion-empty[b-xz3bvj3b3e] {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
}

.ai-companion-empty-center[b-xz3bvj3b3e] {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.ai-companion-empty-logo[b-xz3bvj3b3e] {
    display: flex;
    margin-bottom: 8px;
    color: var(--text-brand-primary);
}

.ai-companion-empty-text[b-xz3bvj3b3e] {
    font-size: var(--font-size-text-md);
    line-height: 20px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

.ai-companion-empty-action[b-xz3bvj3b3e] {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
}

.ai-companion-empty-link[b-xz3bvj3b3e] {
    border: none;
    background: transparent;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--font-size-text-md);
    font-weight: 500;
    line-height: 20px;
    color: var(--text-brand-primary);
    cursor: pointer;
}

.ai-companion-empty-link:hover[b-xz3bvj3b3e] { text-decoration: underline; }

.ai-companion-empty-link:focus-visible[b-xz3bvj3b3e] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

/* =========================================================================
 * GENERATIVE-UI TURN
 * =========================================================================
 * A copilot reply in `ui` mode renders typed block cards (Blocks/BlockRenderer)
 * instead of a markdown bubble. Those cards need the panel's FULL inner width so
 * tables/code can scroll inside their own containers (they never widen the panel).
 * ------------------------------------------------------------------------- */
.ai-companion-msg-bubble--gen-ui[b-xz3bvj3b3e] {
    max-width: none;
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border:0px;
}

.ai-companion-msg-content--gen-ui[b-xz3bvj3b3e] { width: 100%; min-width: 0; }

/* =========================================================================
 * "THINKING" PLACEHOLDER TURN
 * ========================================================================= */
.ai-companion-thinking[b-xz3bvj3b3e] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary-hover);
    color: var(--text-tertiary);
}

.ai-companion-thinking__dots[b-xz3bvj3b3e] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ai-companion-thinking__dot[b-xz3bvj3b3e] {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--text-quaternary);
    animation: ai-companion-think-b-xz3bvj3b3e 1.2s ease-in-out infinite;
}

.ai-companion-thinking__dot:nth-child(2)[b-xz3bvj3b3e] { animation-delay: 0.18s; }
.ai-companion-thinking__dot:nth-child(3)[b-xz3bvj3b3e] { animation-delay: 0.36s; }

.ai-companion-thinking__label[b-xz3bvj3b3e] {
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    color: var(--text-tertiary);
}

@keyframes ai-companion-think-b-xz3bvj3b3e {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30%           { opacity: 1;   transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .ai-companion-thinking__dot[b-xz3bvj3b3e] { animation: none; opacity: 0.6; }
    .ai-companion-message-body[b-xz3bvj3b3e] { scroll-behavior: auto; }
}

/* =========================================================================
 * SEND / REPLY ALERT (BF-71)
 * =========================================================================
 * The question that never reached the copilot, or the reply that never came
 * back. Distinct from the error TURN below (a malformed reply that DID arrive)
 * — this one is about the round trip, not the content.
 * ------------------------------------------------------------------------- */
.ai-companion-alert[b-xz3bvj3b3e] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
    padding: 8px 10px;
    border: 1px solid var(--border-error);
    border-radius: var(--radius-md);
    background: var(--bg-error-primary);
}

.ai-companion-alert__title[b-xz3bvj3b3e] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 16px;
    color: var(--text-error-primary);
}

.ai-companion-alert__reason[b-xz3bvj3b3e] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-error-primary);
}

.ai-companion-alert__actions[b-xz3bvj3b3e] {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.ai-companion-alert__link[b-xz3bvj3b3e] {
    border: none;
    background: transparent;
    padding: 0;
    font-family: inherit;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 16px;
    color: var(--text-error-primary);
    text-decoration: underline;
    cursor: pointer;
}

.ai-companion-alert__link:focus-visible[b-xz3bvj3b3e] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

/* =========================================================================
 * ERROR TURN (malformed-envelope fallback)
 * ========================================================================= */
.ai-companion-msg-bubble--error[b-xz3bvj3b3e] {
    background: var(--bg-error-primary);
    border: 1px solid var(--border-error);
    color: var(--text-error-primary);
}

.ai-companion-msg-error[b-xz3bvj3b3e] {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
}

.ai-companion-msg-error__icon[b-xz3bvj3b3e] {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    color: var(--text-error-primary);
}

.ai-companion-msg-error__icon svg[b-xz3bvj3b3e] { width: 100%; height: 100%; }

/* =========================================================================
 * RAW-JSON DEBUG TOGGLE (staff/dev only, config-gated)
 * ========================================================================= */
.ai-companion-rawjson-toggle[b-xz3bvj3b3e] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    margin-top: 6px;
    padding: 2px 8px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-quaternary);
    font-family: var(--font-family-mono, ui-monospace, monospace);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ai-companion-rawjson-toggle:hover[b-xz3bvj3b3e] {
    background: var(--bg-secondary-hover);
    color: var(--text-secondary);
    border-color: var(--border-primary);
}

.ai-companion-rawjson-toggle:focus-visible[b-xz3bvj3b3e] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.ai-companion-rawjson-toggle.is-active[b-xz3bvj3b3e] {
    background: var(--bg-brand-primary);
    color: var(--text-brand-primary);
    border-color: var(--border-brand);
}

.ai-companion-rawjson[b-xz3bvj3b3e] {
    margin: 4px 0 0;
    padding: var(--spacing-2-5);
    background: var(--bg-primary-solid);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    overflow-y: auto;
    max-height: 320px;
    scrollbar-width: thin;
    font-family: var(--font-family-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace);
    font-size: var(--font-size-text-xs);
    line-height: 1.55;
    color: var(--text-white);
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}

.ai-companion-rawjson:focus-visible[b-xz3bvj3b3e] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/AICompanionThreads.razor.rz.scp.css */
/* ============================================================
   AI Companion — Recent threads. Tokens only (C13).
   The dead .ai-companion-threads-icon-btn rules went with the two handler-less
   icon buttons they styled; the thread card is a <button> now, so it carries the
   button reset and a focus ring.
   ============================================================ */

.ai-companion-threads[b-loe8xe3o8j] {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 12px 12px;
}

/* New thread */
.ai-companion-threads-new[b-loe8xe3o8j] {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin-bottom: 12px;
}

.ai-companion-threads-new-link[b-loe8xe3o8j] {
    border: none;
    background: transparent;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--font-size-text-md);
    font-weight: 500;
    line-height: 20px;
    color: var(--text-brand-primary);
    cursor: pointer;
}

.ai-companion-threads-new-link:hover[b-loe8xe3o8j] { text-decoration: underline; }

.ai-companion-threads-new-link:focus-visible[b-loe8xe3o8j] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.ai-companion-threads-body[b-loe8xe3o8j] { display: flex; flex-direction: column; width: 100%; }

/* "Most recent" header */
.ai-companion-threads-head[b-loe8xe3o8j] {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-secondary);
}

.ai-companion-threads-head-title[b-loe8xe3o8j] {
    font-size: var(--font-size-text-md);
    font-weight: 500;
    line-height: 20px;
    color: var(--text-tertiary);
    margin: 0;
}

.ai-companion-threads-head-count[b-loe8xe3o8j] {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-quaternary);
    font-variant-numeric: tabular-nums;
}

/* Thread card — a real button, so the list is reachable by keyboard */
.ai-companion-thread-card[b-loe8xe3o8j] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
    padding: 0 4px 12px 0;
    border: none;
    border-bottom: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    background: transparent;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.ai-companion-thread-card:hover[b-loe8xe3o8j] { background: var(--bg-secondary-subtle); }

.ai-companion-thread-card:focus-visible[b-loe8xe3o8j] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.ai-companion-thread-card-text[b-loe8xe3o8j] { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.ai-companion-thread-card-subject[b-loe8xe3o8j] {
    font-size: var(--font-size-text-md);
    font-weight: 500;
    line-height: 20px;
    color: var(--text-primary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ai-companion-thread-card-time[b-loe8xe3o8j] {
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-tertiary);
    margin: 0;
}

.ai-companion-thread-card-chevron[b-loe8xe3o8j] {
    flex: 0 0 auto;
    color: var(--fg-quaternary);
}

.ai-companion-threads-loading[b-loe8xe3o8j] { display: flex; justify-content: center; padding: 12px; }
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/BarsBlockView.razor.rz.scp.css */
.gb-bars[b-ji7unpqqrk] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2-5);
}

.gb-bar[b-ji7unpqqrk] {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.gb-bar__head[b-ji7unpqqrk] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--spacing-2);
    min-width: 0;
}

.gb-bar__label[b-ji7unpqqrk] {
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gb-bar__value[b-ji7unpqqrk] {
    flex: 0 0 auto;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.gb-bar__track[b-ji7unpqqrk] {
    position: relative;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary-hover);
    overflow: hidden;
}

.gb-bar__fill[b-ji7unpqqrk] {
    height: 100%;
    min-width: 3px;   /* keep a hairline visible even at tiny values */
    border-radius: var(--radius-full);
    background: var(--bg-brand-solid);
    /* grow-in on reveal */
    transform-origin: left center;
    animation: gb-bar-grow-b-ji7unpqqrk 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes gb-bar-grow-b-ji7unpqqrk {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .gb-bar__fill[b-ji7unpqqrk] { animation: none; }
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/BlockCard.razor.rz.scp.css */
/* ==========================================================================
 * BlockCard — surface chrome for data panels and tinted notices.
 * Quiet card: hairline border, soft radius, whisper of elevation. Tones tint
 * the surface + a slim left rail. All values are theme tokens (NFR-8).
 * Entrance animation lives on the BlockRenderer item wrapper, not here.
 * ========================================================================== */
.gblock[b-fcuugiaasi] {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    padding: var(--spacing-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

/* Slim left accent rail — the tone signal. Neutral gets no rail (quietest). */
.gblock[b-fcuugiaasi]::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: transparent;
}

.gblock--brand[b-fcuugiaasi]::before   { background: var(--bg-brand-solid); }
.gblock--info[b-fcuugiaasi]::before    { background: var(--utility-blue-light-500, var(--fg-tertiary)); }
.gblock--warn[b-fcuugiaasi]::before    { background: var(--bg-warning-solid); }
.gblock--success[b-fcuugiaasi]::before { background: var(--bg-success-solid); }
.gblock--danger[b-fcuugiaasi]::before  { background: var(--bg-error-solid); }

/* Feedback tones get a subtle tinted surface + matching border so a notice reads
   as a notice at a glance — reinforced (never replaced) by its icon + title text. */
.gblock--info[b-fcuugiaasi]    { background: var(--utility-blue-light-50, var(--bg-secondary-subtle)); border-color: var(--utility-blue-light-100, var(--border-secondary)); }
.gblock--warn[b-fcuugiaasi]    { background: var(--bg-warning-primary); border-color: var(--border-warning); }
.gblock--success[b-fcuugiaasi] { background: var(--bg-success-primary); border-color: var(--border-success); }
.gblock--danger[b-fcuugiaasi]  { background: var(--bg-error-primary); border-color: var(--border-error); }

/* ---- Optional head row (caption + meta) — unused by current views ---------- */
.gblock__head[b-fcuugiaasi] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2);
    min-width: 0;
}

.gblock__tag[b-fcuugiaasi] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--text-quaternary);
}

.gblock__tag-icon[b-fcuugiaasi] {
    display: inline-flex;
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
}

.gblock__tag-icon svg[b-fcuugiaasi] { width: 100%; height: 100%; }

.gblock__tag-label[b-fcuugiaasi] {
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gblock__meta[b-fcuugiaasi] {
    flex: 0 0 auto;
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-quaternary);
    font-variant-numeric: tabular-nums;
}

.gblock__body[b-fcuugiaasi] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/BlockRenderer.razor.rz.scp.css */
/* Vertical stack of blocks inside one AI turn. Editorial rhythm: flow blocks read
   as one composed document, card blocks sit as quiet panels between them. */
.gen-ui-blocks[b-uv6u7xh6e6] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2-5);
    min-width: 0;
}

/* Each block rises in a beat after the previous one (delay set per-item by the
   renderer via --gen-ui-delay). Animating the wrapper covers card AND flow blocks. */
.gen-ui-blocks__item[b-uv6u7xh6e6] {
    min-width: 0;
    animation: gen-ui-rise-b-uv6u7xh6e6 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--gen-ui-delay, 0ms);
}

/* A heading opens a new section — give it extra breathing room above, except at the top. */
.gen-ui-blocks__item:not(:first-child)[b-uv6u7xh6e6]  .gb-heading {
    margin-top: var(--spacing-2);
}

/* The end frame is `transform: none`, NOT translateY(0): with fill-mode `both` the end frame persists, and
   ANY transform (even an identity one) makes the item the containing block for `position: fixed`
   descendants — the widget form's date/time picker popups would then be positioned against the item
   and clipped by the scrolling panel (genui-micro-apps; repo memory "popup positioning"). `none`
   interpolates as the identity matrix, so the rise still animates. */
@keyframes gen-ui-rise-b-uv6u7xh6e6 {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .gen-ui-blocks__item[b-uv6u7xh6e6] {
        animation: none;
    }
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/CalloutBlockView.razor.rz.scp.css */
/* Icon inline with title — one composed notice. */
.gb-callout[b-xjw6zu2yh1] {
    display: grid;
    grid-template-columns: 16px 1fr;
    column-gap: var(--spacing-2);
    align-items: start;
    min-width: 0;
}

.gb-callout__icon[b-xjw6zu2yh1] {
    display: inline-flex;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex: 0 0 auto;
}

.gb-callout__icon svg[b-xjw6zu2yh1] { width: 100%; height: 100%; }

.gb-callout--info    .gb-callout__icon[b-xjw6zu2yh1] { color: var(--utility-blue-light-600, var(--text-tertiary)); }
.gb-callout--warn    .gb-callout__icon[b-xjw6zu2yh1] { color: var(--text-warning-primary); }
.gb-callout--success .gb-callout__icon[b-xjw6zu2yh1] { color: var(--text-success-primary); }

.gb-callout__content[b-xjw6zu2yh1] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.gb-callout__title[b-xjw6zu2yh1] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    word-break: break-word;
}

.gb-callout__text[b-xjw6zu2yh1] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    color: var(--text-secondary);
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Visually-hidden variant prefix ("Warning: ") — read by AT, invisible on screen. */
.gb-vh[b-xjw6zu2yh1] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/ChoicesBlockView.razor.rz.scp.css */
.gb-choices[b-ehsavbevri] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gb-choice[b-ehsavbevri] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2);
    width: 100%;
    padding: 8px 12px 8px 14px;
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
    color: var(--text-brand-primary);
    font-family: inherit;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.gb-choice__label[b-ehsavbevri] {
    min-width: 0;
    word-break: break-word;
}

.gb-choice__arrow[b-ehsavbevri] {
    display: inline-flex;
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    opacity: 0.55;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.gb-choice__arrow svg[b-ehsavbevri] { width: 100%; height: 100%; }

.gb-choice:hover:not(:disabled)[b-ehsavbevri] {
    background: var(--bg-brand-solid);
    border-color: var(--bg-brand-solid);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.gb-choice:hover:not(:disabled) .gb-choice__arrow[b-ehsavbevri] {
    opacity: 1;
    transform: translateX(2px);
}

.gb-choice:active:not(:disabled)[b-ehsavbevri] {
    transform: translateY(1px);
    box-shadow: none;
}

.gb-choice:focus-visible[b-ehsavbevri] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
    border-color: var(--bg-brand-solid);
}

.gb-choice:disabled[b-ehsavbevri] {
    cursor: not-allowed;
    opacity: 0.5;
    background: var(--bg-disabled);
    border-color: var(--border-disabled);
    color: var(--text-disabled);
    box-shadow: none;
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/CodeBlockView.razor.rz.scp.css */
/* Dark editor-style panel: slim language header + scrolling code body. */
.gb-codewrap[b-zkjdb736ji] {
    background: var(--bg-primary-solid);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    min-width: 0;
}

.gb-code__head[b-zkjdb736ji] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 5px 12px;
    border-bottom: 1px solid var(--border-primary);
}

.gb-code__lang[b-zkjdb736ji] {
    font-family: var(--font-family-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-white);
    opacity: 0.6;
}

/* Own horizontal scroll region — long lines scroll, never widen the panel. */
.gb-code[b-zkjdb736ji] {
    margin: 0;
    padding: var(--spacing-2-5) var(--spacing-3);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.gb-code:focus-visible[b-zkjdb736ji] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.gb-code__code[b-zkjdb736ji] {
    display: block;
    font-family: var(--font-family-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace);
    font-size: var(--font-size-text-sm);
    line-height: 1.6;
    color: var(--text-white);
    white-space: pre;   /* preserve formatting; scroll instead of wrap */
    tab-size: 2;
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/ComparisonBlockView.razor.rz.scp.css */
/* Two options stack in the narrow panel — each a quiet mini-panel. */
.gb-cmp[b-il9w9565et] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.gb-cmp__col[b-il9w9565et] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
    padding: var(--spacing-2-5) var(--spacing-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    min-width: 0;
}

.gb-cmp__name[b-il9w9565et] {
    margin: 0;
    padding-bottom: var(--spacing-1-5);
    border-bottom: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    word-break: break-word;
}

.gb-cmp__list[b-il9w9565et] {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gb-cmp__list--con[b-il9w9565et] { margin-top: 2px; }

.gb-cmp__item[b-il9w9565et] {
    display: grid;
    grid-template-columns: 14px 1fr;
    align-items: start;
    column-gap: 7px;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.gb-cmp__glyph[b-il9w9565et] {
    display: inline-flex;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.gb-cmp__glyph svg[b-il9w9565et] { width: 100%; height: 100%; }

.gb-cmp__glyph--pro[b-il9w9565et] { color: var(--text-success-primary); }
.gb-cmp__glyph--con[b-il9w9565et] { color: var(--text-error-primary); }

/* Visually-hidden "Pro:"/"Con:" prefix — read by AT, invisible on screen. */
.gb-vh[b-il9w9565et] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/HeadingBlockView.razor.rz.scp.css */
.gb-heading[b-t1io75iuyk] {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-md);   /* 16px */
    line-height: var(--line-height-text-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    word-break: break-word;
}

/* Short terracotta underline — a quiet editorial section marker. */
.gb-heading[b-t1io75iuyk]::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin-top: var(--spacing-1-5);
    border-radius: var(--radius-full);
    background: var(--bg-brand-solid);
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/ListBlockView.razor.rz.scp.css */
.gb-list[b-jzks2jtdao] {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    counter-reset: gb-li;
}

.gb-list__item[b-jzks2jtdao] {
    position: relative;
    padding-left: 1.45em;
    font-size: var(--font-size-text-sm);   /* 14px */
    line-height: 1.55;
    color: var(--text-secondary);
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Bullet marker — a small terracotta dot. */
.gb-list--bullet .gb-list__item[b-jzks2jtdao]::before {
    content: "";
    position: absolute;
    left: 0.35em;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: var(--radius-full);
    background: var(--bg-brand-solid);
}

/* Ordered marker — a tabular counter in the accent colour. */
.gb-list--ordered[b-jzks2jtdao] { counter-reset: gb-li; }

.gb-list--ordered .gb-list__item[b-jzks2jtdao] {
    counter-increment: gb-li;
}

.gb-list--ordered .gb-list__item[b-jzks2jtdao]::before {
    content: counter(gb-li) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.8;
    color: var(--text-brand-primary);
    font-variant-numeric: tabular-nums;
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/MetricsBlockView.razor.rz.scp.css */
/* Compact 2-up KPI grid; classic dashboard treatment: tracked caption over big value. */
.gb-metrics[b-hdcvs3qgrw] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-2-5) var(--spacing-3);
    margin: 0;
}

.gb-metric[b-hdcvs3qgrw] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: var(--spacing-2) 0 0;
    border-top: 1px solid var(--border-secondary);
}

/* First row has no top divider. */
.gb-metric:nth-child(-n + 2)[b-hdcvs3qgrw] { border-top: 0; padding-top: 0; }

.gb-metric__label[b-hdcvs3qgrw] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-quaternary);
    word-break: break-word;
}

.gb-metric__value[b-hdcvs3qgrw] {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.gb-metric__num[b-hdcvs3qgrw] {
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-lg);   /* 18px */
    line-height: 1.2;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    word-break: break-word;
}

/* Delta as a small tinted pill — direction also carried by glyph + aria-label. */
.gb-metric__delta[b-hdcvs3qgrw] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gb-metric__delta-glyph[b-hdcvs3qgrw] { font-size: 0.7em; line-height: 1; }

.gb-metric__delta--up[b-hdcvs3qgrw]   { color: var(--text-success-primary); background: var(--bg-success-primary); }
.gb-metric__delta--down[b-hdcvs3qgrw] { color: var(--text-error-primary); background: var(--bg-error-primary); }
.gb-metric__delta--flat[b-hdcvs3qgrw] { color: var(--text-quaternary); background: var(--bg-secondary-subtle); }
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/StepsBlockView.razor.rz.scp.css */
.gb-steps[b-zi445nppa9] {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: gb-step;
    display: flex;
    flex-direction: column;
}

.gb-step[b-zi445nppa9] {
    position: relative;
    counter-increment: gb-step;
    display: grid;
    grid-template-columns: 22px 1fr;
    column-gap: var(--spacing-2-5);
    padding-bottom: var(--spacing-3);
}

.gb-step:last-child[b-zi445nppa9] { padding-bottom: 0; }

/* Numbered node — a solid terracotta disc with the step ordinal (decorative; <ol> carries meaning). */
.gb-step__node[b-zi445nppa9] {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: var(--bg-brand-solid);
    box-shadow: var(--shadow-xs);
    display: grid;
    place-items: center;
}

.gb-step__node[b-zi445nppa9]::before {
    content: counter(gb-step);
    font-size: var(--font-size-text-xs);
    font-weight: 700;
    line-height: 1;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

/* Connector line running down through the node column. */
.gb-step:not(:last-child)[b-zi445nppa9]::before {
    content: "";
    position: absolute;
    left: 10.5px;
    top: 24px;
    bottom: 2px;
    width: 1px;
    background: var(--border-primary);
}

.gb-step__body[b-zi445nppa9] {
    min-width: 0;
    padding-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gb-step__title[b-zi445nppa9] {
    margin: 0;
    font-size: var(--font-size-text-sm);   /* 14px */
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.gb-step__detail[b-zi445nppa9] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    color: var(--text-tertiary);
    word-break: break-word;
    overflow-wrap: anywhere;
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/TableBlockView.razor.rz.scp.css */
/* Own scroll region — the table scrolls horizontally inside here, never widening the panel.
   Negative inline margin lets the scroll area use the card's full inner width edge-to-edge. */
.gb-table-scroll[b-rs2z0c659o] {
    margin: 0 calc(-1 * var(--spacing-3));
    padding: 0 var(--spacing-3);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.gb-table-scroll:focus-visible[b-rs2z0c659o] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
    border-radius: var(--radius-sm);
}

.gb-table[b-rs2z0c659o] {
    border-collapse: collapse;
    width: 100%;
    min-width: max-content;   /* force real width so overflow-x kicks in; never wrap-squeeze */
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
}

.gb-table th[b-rs2z0c659o],
.gb-table td[b-rs2z0c659o] {
    padding: 6px 10px;
    text-align: left;
    white-space: nowrap;
    vertical-align: top;
    border-bottom: 1px solid var(--border-secondary);
}

/* Header as a tracked caption row — dashboard-grade, not spreadsheet-grade. */
.gb-table th[b-rs2z0c659o] {
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-quaternary);
    border-bottom: 1px solid var(--border-primary);
}

.gb-table td[b-rs2z0c659o] {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.gb-table tbody tr:last-child td[b-rs2z0c659o] { border-bottom: 0; }

/* Zebra for legibility in dense grids. */
.gb-table tbody tr:nth-child(even) td[b-rs2z0c659o] { background: var(--bg-secondary-subtle); }
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/TagsBlockView.razor.rz.scp.css */
.gb-tags[b-hxqeci1je4] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gb-tag[b-hxqeci1je4] {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-full);
    background: var(--bg-secondary-subtle);
    color: var(--text-secondary);
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/TextBlockView.razor.rz.scp.css */
.gb-text[b-0qq5r3se9x] {
    margin: 0;
    font-size: var(--font-size-text-sm);   /* 14px */
    line-height: 1.6;
    color: var(--text-secondary);
    word-break: break-word;
    overflow-wrap: anywhere;
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/UnsupportedBlockView.razor.rz.scp.css */
.gb-unsupported[b-i2dpefwdk0] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    min-width: 0;
}

.gb-unsupported__head[b-i2dpefwdk0] {
    display: grid;
    grid-template-columns: 16px 1fr;
    column-gap: var(--spacing-2);
    align-items: start;
}

.gb-unsupported__icon[b-i2dpefwdk0] {
    display: inline-flex;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: var(--text-warning-primary);
}

.gb-unsupported__icon svg[b-i2dpefwdk0] { width: 100%; height: 100%; }

.gb-unsupported__note[b-i2dpefwdk0] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary);
}

.gb-unsupported__json[b-i2dpefwdk0] {
    margin: 0;
    padding: var(--spacing-2);
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 180px;
    scrollbar-width: thin;
    font-family: var(--font-family-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace);
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
    white-space: pre;
}

.gb-unsupported__json:focus-visible[b-i2dpefwdk0] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/Widgets/CalculatorWidgetView.razor.rz.scp.css */
/* ==========================================================================
 * CalculatorWidgetView — single column inside ~266px (design-spec §1 column
 * budget): label row over control row, nothing may widen the panel.
 * Type roles per UX_PATTERNS §2.6; tokens only (C13); primitives' internals
 * are reached with ::deep (C17).
 * ========================================================================== */
.cw[b-ehm64x5ncj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    min-width: 0;
}

/* ---- Input rows -------------------------------------------------------------- */
.cw-inputs[b-ehm64x5ncj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    min-width: 0;
}

.cw-row[b-ehm64x5ncj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
    min-width: 0;
}

.cw-row__head[b-ehm64x5ncj] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2);
    min-width: 0;
}

.cw-row__label[b-ehm64x5ncj] {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

/* The exact-value twin: compact height set here (InputField has one size). */
.cw-row__twin[b-ehm64x5ncj] {
    flex: 0 0 44%;
    max-width: 44%;
    min-width: 0;
}

.cw-row__twin[b-ehm64x5ncj]  .input-group {
    gap: 0;
}

.cw-row__twin[b-ehm64x5ncj]  .input-wrapper {
    height: 32px;
}

.cw-row__twin[b-ehm64x5ncj]  .input-field {
    min-width: 0;
    padding: 0 var(--spacing-2);
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cw-row__twin[b-ehm64x5ncj]  .input-addon-leading-text,
.cw-row__twin[b-ehm64x5ncj]  .input-addon-trailing-text {
    padding: 0 var(--spacing-2);
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
}

/* The twin is only ~117px wide: InputField's own error glyph would clip the number. The row's issue
   line already says it with icon + text, and the border turns red — colour is never alone. */
.cw-row__twin[b-ehm64x5ncj]  .input-group--error .input-addon-trailing {
    display: none;
}

/* Slider + its min–max caption BESIDE the track's right end (never below — the hand covers it). */
.cw-row__track[b-ehm64x5ncj] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
}

.cw-row__track[b-ehm64x5ncj]  .range-input {
    flex: 1 1 auto;
}

.cw-row__range[b-ehm64x5ncj] {
    flex: 0 0 auto;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-quaternary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Inline issue: icon + text, adjacent to its row (UX_PATTERNS §2.10 "smallest level that fits"). */
.cw-issue[b-ehm64x5ncj] {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-1);
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-error-primary);
    overflow-wrap: anywhere;
}

.cw-issue[b-ehm64x5ncj]  svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 1px;
}

/* ---- Read-only values (Expired / Unavailable / SessionExpired / Refused) ----- */
.cw-values[b-ehm64x5ncj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
    margin: 0;
}

.cw-values__row[b-ehm64x5ncj] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    gap: var(--spacing-2);
    align-items: baseline;
}

.cw-values__label[b-ehm64x5ncj] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.cw-values__value[b-ehm64x5ncj] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    text-align: right;
    overflow-wrap: anywhere;
}

/* ---- Outputs -------------------------------------------------------------------- */
.cw-outputs[b-ehm64x5ncj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2-5);
    min-width: 0;
    padding-top: var(--spacing-2-5);
    border-top: 1px solid var(--border-secondary);
}

.cw-primary[b-ehm64x5ncj] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cw-primary__head[b-ehm64x5ncj] {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--spacing-1-5);
}

/* Data caption (the metrics block's caption style) — not a type tag. */
.cw-caption[b-ehm64x5ncj] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-quaternary);
    overflow-wrap: anywhere;
}

.cw-preview-tag[b-ehm64x5ncj] {
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-tertiary);
}

.cw-primary__value[b-ehm64x5ncj] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.cw-figure[b-ehm64x5ncj] {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-lg);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.cw-figure--sm[b-ehm64x5ncj] {
    font-size: var(--font-size-text-md);
}

/* D2: the preview is dimmed by a colour token, never opacity — contrast holds in every theme. */
.cw-outputs--preview .cw-figure[b-ehm64x5ncj] {
    color: var(--text-tertiary);
}

.cw-secondary[b-ehm64x5ncj] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-2-5) var(--spacing-3);
    margin: 0;
}

.cw-secondary__item[b-ehm64x5ncj] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

/* Delta vs the conversation's own figure: glyph + words carry the direction; neutral colour,
   because a higher payment is neither "good" nor "bad" (UX_PATTERNS §2.5 colour is status). */
.cw-delta[b-ehm64x5ncj] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cw-delta__glyph[b-ehm64x5ncj] {
    font-size: 0.7em;
    line-height: 1;
}

.cw-stale[b-ehm64x5ncj] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-warning-primary);
}

.cw-reset[b-ehm64x5ncj] {
    display: flex;
    margin: calc(var(--spacing-1) * -1) 0 0 -0.831rem;
}

/* ---- Assumptions / Terms ----------------------------------------------------- */
.cw-section[b-ehm64x5ncj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    min-width: 0;
    padding-top: var(--spacing-2-5);
    border-top: 1px solid var(--border-secondary);
}

/* The one eyebrow role (UX_PATTERNS §2.6): text-xs 500, uppercase, 0.06em, --text-tertiary. */
.cw-eyebrow[b-ehm64x5ncj] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.cw-assumption[b-ehm64x5ncj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    min-width: 0;
}

.cw-assumption__text[b-ehm64x5ncj] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1 1 auto;
    min-width: 0;
}

.cw-assumption__source[b-ehm64x5ncj] {
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-tertiary);
}

.cw-assumption__value[b-ehm64x5ncj] {
    flex: 0 0 auto;
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.cw-terms[b-ehm64x5ncj] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    margin: 0;
}

.cw-terms__row[b-ehm64x5ncj] {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--spacing-2);
    align-items: baseline;
}

.cw-terms__row dt[b-ehm64x5ncj] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
    overflow-wrap: anywhere;
}

.cw-terms__row dd[b-ehm64x5ncj] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

/* ---- Disclosure: always shown, one quiet line ------------------------------- */
.cw-disclosure[b-ehm64x5ncj] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
    overflow-wrap: anywhere;
}

/* Visually hidden, still read (the settled-figure live region). */
.cw-vh[b-ehm64x5ncj] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/Widgets/FormWidgetView.razor.rz.scp.css */
/* ==========================================================================
 * FormWidgetView — the Smart Forms fill anatomy at panel density, one column
 * inside ~266px. Library-default control heights (not the 48px phone sizing);
 * helper / issue text-xs (UX_PATTERNS §2.6). Tokens only (C13); primitive
 * internals via ::deep (C17).
 * ========================================================================== */
.fw[b-go2kpl1v9t] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    min-width: 0;
}

.fw-intro[b-go2kpl1v9t] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

/* ---- Goal-gradient meter: 4px, brand fill, caption "3 of 6 answered" -------- */
.fw-meter[b-go2kpl1v9t] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.fw-meter__track[b-go2kpl1v9t] {
    position: relative;
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary-hover);
    overflow: hidden;
}

.fw-meter__fill[b-go2kpl1v9t] {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--bg-brand-solid);
}

.fw-meter__caption[b-go2kpl1v9t] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

/* ---- Fields ------------------------------------------------------------------ */
.fw-fields[b-go2kpl1v9t] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    min-width: 0;
}

.fw-field[b-go2kpl1v9t] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
    min-width: 0;
    border-radius: var(--radius-sm);
}

.fw-field:focus-visible[b-go2kpl1v9t] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.fw-field__head[b-go2kpl1v9t] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2);
    min-width: 0;
}

.fw-field__label[b-go2kpl1v9t] {
    min-width: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.fw-field__req[b-go2kpl1v9t] {
    margin-left: 2px;
    color: var(--text-error-primary);
}

.fw-field__head[b-go2kpl1v9t]  .badge {
    flex: 0 0 auto;
}

.fw-field__help[b-go2kpl1v9t] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
    overflow-wrap: anywhere;
}

.fw-field__issue[b-go2kpl1v9t] {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-1);
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-error-primary);
    overflow-wrap: anywhere;
}

.fw-field__issue--warn[b-go2kpl1v9t] {
    color: var(--text-warning-primary);
}

.fw-field__issue[b-go2kpl1v9t]  svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 1px;
}

.fw-field__ok[b-go2kpl1v9t] {
    display: inline-flex;
    color: var(--text-success-primary);
}

/* Library controls at panel density: text-sm type, full width, no label rows of their own. */
.fw-field[b-go2kpl1v9t]  .input-group,
.fw-field[b-go2kpl1v9t]  .dropdown,
.fw-field[b-go2kpl1v9t]  .input-date-picker,
.fw-field[b-go2kpl1v9t]  .input-time-picker {
    gap: 0;
    width: 100%;
    min-width: 0;
}

.fw-field[b-go2kpl1v9t]  .input-wrapper {
    height: 36px;
}

.fw-field[b-go2kpl1v9t]  .input-group--textarea .input-wrapper {
    height: auto;
}

.fw-field[b-go2kpl1v9t]  .input-field {
    min-width: 0;
    padding-inline: var(--spacing-2-5);
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
}

.fw-field[b-go2kpl1v9t]  .input-addon-leading-text,
.fw-field[b-go2kpl1v9t]  .input-addon-trailing-text {
    padding: 0 var(--spacing-2);
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
}

.fw-field[b-go2kpl1v9t]  .input-addon-trailing {
    padding-right: var(--spacing-2);
}

.fw-field[b-go2kpl1v9t]  .dropdown-trigger {
    width: 100%;
    min-width: 0;
    font-size: var(--font-size-text-sm);
}

/* ---- Radio / yes-no: stacked choice buttons (role=radio + aria-checked) ------ */
.fw-choices[b-go2kpl1v9t] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
    min-width: 0;
}

.fw-choices[b-go2kpl1v9t]  .fw-choice {
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 32px;
    padding: var(--spacing-1-5) var(--spacing-2-5);
    text-align: left;
    font-weight: 500;
}

.fw-choices[b-go2kpl1v9t]  .fw-choice--on {
    border-color: var(--bg-brand-solid);
    background: var(--bg-brand-primary);
    color: var(--text-primary);
}

.fw-choices[b-go2kpl1v9t]  .fw-choice__dot {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    background: var(--bg-primary);
}

.fw-choices[b-go2kpl1v9t]  .fw-choice--on .fw-choice__dot {
    border: 5px solid var(--bg-brand-solid);
}

.fw-choices[b-go2kpl1v9t]  .fw-choice__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.fw-choices[b-go2kpl1v9t]  .fw-choice__hint {
    font-size: var(--font-size-text-xs);
    font-weight: 400;
    color: var(--text-tertiary);
}

.fw-checks[b-go2kpl1v9t] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
    min-width: 0;
}

/* ---- Save --------------------------------------------------------------------- */
.fw-actions[b-go2kpl1v9t] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
}

.fw-actions[b-go2kpl1v9t]  .fw-save {
    width: 100%;
}

.fw-footnote[b-go2kpl1v9t] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
}

/* ---- Read-only values (Submitted / view-only / expired / refused) ------------ */
.fw-values[b-go2kpl1v9t] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    margin: 0;
}

.fw-values__row[b-go2kpl1v9t] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.fw-values__label[b-go2kpl1v9t] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-tertiary);
    overflow-wrap: anywhere;
}

.fw-values__value[b-go2kpl1v9t] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

/* ---- Review before saving ------------------------------------------------------ */
.fw-review[b-go2kpl1v9t] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2-5);
    min-width: 0;
}

.fw-review__title[b-go2kpl1v9t] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    border-radius: var(--radius-xs);
}

.fw-review__title:focus-visible[b-go2kpl1v9t] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.fw-review__lead[b-go2kpl1v9t] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary);
}

.fw-review__list[b-go2kpl1v9t] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    margin: 0;
}

.fw-review__item[b-go2kpl1v9t] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: var(--spacing-2) var(--spacing-2-5);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary-subtle);
}

.fw-review__label[b-go2kpl1v9t] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-tertiary);
    overflow-wrap: anywhere;
}

.fw-review__pair[b-go2kpl1v9t] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px var(--spacing-2);
    margin: 0;
    align-items: baseline;
}

.fw-review__tag[b-go2kpl1v9t] {
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
}

.fw-review__value[b-go2kpl1v9t] {
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.fw-review__value--new[b-go2kpl1v9t] {
    font-weight: 600;
    color: var(--text-primary);
}

.fw-review__actions[b-go2kpl1v9t] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
}

/* ---- Loading skeleton: mirrors label + control rows ---------------------------- */
.fw-skeleton[b-go2kpl1v9t] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.fw-skeleton__field[b-go2kpl1v9t] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
}

.fw-skeleton__label[b-go2kpl1v9t] {
    display: flex;
}
/* /Components/Pages/Chat/ChatRightSideComponents/AICompanion/Blocks/Widgets/WidgetFrame.razor.rz.scp.css */
/* ==========================================================================
 * WidgetFrame — shared widget chrome inside the ~266px gen-ui column.
 * BlockCard stays Neutral; only its 3px rail changes for blocking states
 * (painted through ::deep — BlockCard owns that element, C17). Tokens only.
 * ========================================================================== */
.wf[b-de8yzjhhrk] {
    min-width: 0;
}

.wf--rail-warn[b-de8yzjhhrk]  .gblock::before {
    background: var(--bg-warning-solid);
}

.wf--rail-danger[b-de8yzjhhrk]  .gblock::before {
    background: var(--bg-error-solid);
}

.wf[b-de8yzjhhrk]  .gblock__body {
    gap: var(--spacing-2-5);
}

/* ---- Title row: icon + title, quiet status word on the right --------------- */
.wf-head[b-de8yzjhhrk] {
    display: flex;
    align-items: center;
    gap: var(--spacing-1-5);
    min-width: 0;
}

.wf-head__icon[b-de8yzjhhrk] {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--fg-tertiary);
}

.wf-head__title[b-de8yzjhhrk] {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.wf-head__slot[b-de8yzjhhrk] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);
    flex: 0 0 auto;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.wf-head__slot[b-de8yzjhhrk]  .loading__label {
    color: var(--text-tertiary);
}

.wf-head__slot--done[b-de8yzjhhrk] {
    color: var(--text-success-primary);
}

/* ---- Status / notice strip: the CalloutBlock grid (icon · text · action) --- */
.wf-strip[b-de8yzjhhrk] {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    column-gap: var(--spacing-2);
    row-gap: var(--spacing-1);
    align-items: start;
    min-width: 0;
    padding: var(--spacing-2) var(--spacing-2-5);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary-subtle);
}

.wf-strip:focus-visible[b-de8yzjhhrk] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.wf-strip__icon[b-de8yzjhhrk] {
    display: inline-flex;
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

.wf-strip__text[b-de8yzjhhrk] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.wf-strip__action[b-de8yzjhhrk] {
    grid-column: 2;
    justify-self: start;
    margin-left: calc(var(--spacing-2-5) * -1);
}

/* Tone tints are MIXED from each family's solid tone over --bg-primary (badge.css precedent), not taken
   from --bg-{tone}-primary: in untitled-dark and bold-dark that token is a saturated 500 fill that
   swallows the icon and the tertiary action (measured on the rendered gallery, C13 per-theme).
   The solid tones are mid-tones in all 4 themes x 2 modes, so the tint reads as a tint everywhere. */
.wf-strip--info[b-de8yzjhhrk] {
    --wf-tone: var(--utility-blue-light-600, var(--fg-quaternary));
    background: color-mix(in srgb, var(--wf-tone) 10%, var(--bg-primary));
    border-color: color-mix(in srgb, var(--wf-tone) 28%, var(--bg-primary));
}

.wf-strip--info .wf-strip__icon[b-de8yzjhhrk] {
    color: var(--wf-tone);
}

.wf-strip--warn[b-de8yzjhhrk] {
    background: color-mix(in srgb, var(--bg-warning-solid) 12%, var(--bg-primary));
    border-color: color-mix(in srgb, var(--bg-warning-solid) 35%, var(--bg-primary));
}

.wf-strip--warn .wf-strip__icon[b-de8yzjhhrk] {
    color: var(--fg-warning-primary);
}

.wf-strip--danger[b-de8yzjhhrk] {
    background: color-mix(in srgb, var(--bg-error-solid) 10%, var(--bg-primary));
    border-color: color-mix(in srgb, var(--bg-error-solid) 35%, var(--bg-primary));
}

.wf-strip--danger .wf-strip__icon[b-de8yzjhhrk] {
    color: var(--fg-error-primary);
}

.wf-strip--success[b-de8yzjhhrk] {
    background: color-mix(in srgb, var(--bg-success-solid) 10%, var(--bg-primary));
    border-color: color-mix(in srgb, var(--bg-success-solid) 35%, var(--bg-primary));
}

.wf-strip--success .wf-strip__icon[b-de8yzjhhrk] {
    color: var(--fg-success-primary);
}

/* ---- Body -------------------------------------------------------------------- */
.wf-body[b-de8yzjhhrk] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    min-width: 0;
}
/* /Components/Pages/Chat/ChatRightSideComponents/CaseBoard/ChatCaseBoard.razor.rz.scp.css */
/* The panel title row is the SHARED .panel-header (panel-controls.css).
   The .cb-icon-btn rules that styled the Filter / More buttons are gone with the
   buttons themselves — both were hard-coded `disabled` with no handler in live and
   absent from the prototype (parity: dropped-by-design). */

/* ===== Search row ===== */
/* Chrome is shared (.panel-search-row / .panel-search); this owns the outer padding. */
.cb-search-row[b-pjv18q5xz3] {
    padding: 10px 12px 8px;
    flex: 0 0 auto;
}

/* ===== Filter chips ===== */
/* Chips are shared — see .panel-chips / .panel-chip in panel-controls.css.
   This wrapper only owns the row's outer padding + sizing. */
.cb-filters[b-pjv18q5xz3] {
    padding: 0 12px 12px;
    flex: 0 0 auto;
}

/* Every chip carries its count (proto:1232) — dimmed so the label still reads first. */
.cb-chip-count[b-pjv18q5xz3] {
    margin-left: 4px;
    font-variant-numeric: tabular-nums;
    opacity: 0.7;
}

/* ===== Create button row ===== */
/* The button itself is shared (.panel-create-btn in panel-controls.css). */
.cb-create-row[b-pjv18q5xz3] {
    padding: 0 12px 12px;
    flex: 0 0 auto;
}

/* ===== Scrollable body ===== */
.cb-body[b-pjv18q5xz3] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 12px 8px;
}

/* ===== Loading row ===== */
.cb-loading-row[b-pjv18q5xz3] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
}

.cb-loading-label[b-pjv18q5xz3] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-tertiary);
}

/* ===== Section grouping ===== */
.cb-section[b-pjv18q5xz3] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.cb-section:last-child[b-pjv18q5xz3] {
    margin-bottom: 0;
}

.cb-cards[b-pjv18q5xz3] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== Case card ===== */
/* proto:544 — a COLUMN: title, then the meta row. Live put the status pill beside the
   title block, so the two competed for one line. */
.cb-card[b-pjv18q5xz3] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

/* proto:544 style-hover — a background change and nothing else. The lift and the
   shadow step were ours. */
.cb-card:hover[b-pjv18q5xz3] {
    background: var(--bg-secondary-hover);
    text-decoration: none;
}

.cb-card:focus-visible[b-pjv18q5xz3] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

/* No status rail. proto:544 borders the card evenly on all four sides; the 3px brand
   edge was ours, and it reads as a SELECTION marker on a card that is not selected —
   on a one-case board every card wore it. Status is the badge's job, and the badge
   says it in words. */

/* proto:1016 — a finished case strikes its title through and drops to the quiet text
   colour. Fading the whole card with `opacity` took the status badge and the date down
   with it, which is exactly what you still want legible on a done row. */
.cb-card[data-case-state="done"] .cb-card-title[b-pjv18q5xz3] {
    text-decoration: line-through;
    color: var(--text-quaternary);
}

/* proto:545 — the title owns its line and can therefore use it all. */
.cb-card-title[b-pjv18q5xz3] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 18px;
    color: var(--text-primary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

/* proto:546-549 — status badge, code badge, spacer, timestamp, on ONE line.
   No flex-wrap: the artboard's row cannot wrap, and letting it wrap is what put the
   date on a line of its own. The code badge yields first if the row is ever too narrow
   for all three. */
.cb-card-meta[b-pjv18q5xz3] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

/* The one shrinkable item in the row. */
.cb-card-code[b-pjv18q5xz3] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.375rem;
}

.cb-card-spacer[b-pjv18q5xz3] {
    flex: 1 1 auto;
}

.cb-card-stamp[b-pjv18q5xz3] {
    flex: 0 0 auto;
    font-size: var(--font-size-text-xs);
    line-height: 16px;
    color: var(--text-quaternary);
    white-space: nowrap;
}

/* Status pills are shared — see .panel-badge in panel-controls.css. */

/* Filter-empty now uses the shared <EmptyState Size="sm"> component. */

/* A failed NEXT page keeps the pages that did load, so its error is the compact form. */
.cb-more-error[b-pjv18q5xz3] {
    margin: 4px 0 8px;
}

/* ===== Reduced motion ===== */
/* Nothing moves any more — the card's only transition is a colour fade — so the
   transform overrides that used to live here have gone with the transform. */
@media (prefers-reduced-motion: reduce) {
    .cb-card[b-pjv18q5xz3] {
        transition: none;
    }
}
/* /Components/Pages/Chat/ChatRightSideComponents/CaseBoard/CreateCaseBoardForm.razor.rz.scp.css */
/* The drawer (.drawer-body) is the scroll container and supplies the outer
   padding. The layout wrapper stacks the sections vertically by default and
   switches to a two-column split (AI Suggestion | Case Library) once the AI
   suggestion flow starts — at which point the drawer itself widens to lg. */

/* ===== Layout wrapper ===== */
.ccbf-layout[b-cj2iqb7vl5] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* Two-column split: AI Suggestion on the left, Case Library on the right. */
.ccbf-layout--split[b-cj2iqb7vl5] {
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    /* Fill the drawer body (a flex column) rather than hugging the taller column, so the divider below
       runs the panel's full height however little or much the columns hold (T68). */
    flex: 1 1 auto;
}

.ccbf-layout--split .ccbf-ai-col[b-cj2iqb7vl5],
.ccbf-layout--split .ccbf-library-col[b-cj2iqb7vl5] {
    flex: 1 1 0;
    min-width: 0;
}

/* Vertical divider between the two columns in split mode. */
.ccbf-divider-v[b-cj2iqb7vl5] {
    flex: 0 0 auto;
    width: 1px;
    align-self: stretch;
    background: var(--border-primary);
    /* Bleed through the drawer body's padding (--spacing-xl on all sides) so the rule meets the header's
       border above and the footer's below, as a divider between two panes does. */
    margin-block: calc(var(--spacing-xl) * -1);
}

/* Fall back to a single stacked column on narrow viewports (the drawer is
   capped to 100vw, so the split would otherwise get too cramped). */
@media (max-width: 680px) {
    .ccbf-layout--split[b-cj2iqb7vl5] {
        flex-direction: column;
        gap: 16px;
    }

    .ccbf-divider-v[b-cj2iqb7vl5] {
        width: auto;
        height: 1px;
        align-self: auto;
        margin-block: 0;
    }
}

/* ===== AI Suggestion section ===== */
.ccbf-ai-col[b-cj2iqb7vl5] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ccbf-ai-section-title[b-cj2iqb7vl5] {
    margin: 0 0 8px;
    font-size: var(--font-size-text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

/* Thinking card */
.ccbf-text-card[b-cj2iqb7vl5] {
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 12px;
    background: var(--bg-primary-alt);
}

.ccbf-ai-thinking[b-cj2iqb7vl5] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ccbf-ai-thinking-body[b-cj2iqb7vl5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 0;
    color: var(--text-tertiary);
}

.ccbf-ai-thinking-title[b-cj2iqb7vl5] {
    margin: 0;
    font-size: var(--font-size-text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.ccbf-ai-thinking-sub[b-cj2iqb7vl5] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

/* Reasoning card */
/* A failed suggestion says so AND offers the retry — the button sits under the message so a
   narrow (md) drawer never has to wrap the pair side by side. */
.ccbf-ai-error[b-cj2iqb7vl5] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid var(--border-error);
    border-radius: var(--radius-xl);
    padding: 12px;
    background: var(--bg-error-primary);
}

.ccbf-ai-error-text[b-cj2iqb7vl5] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-error-primary);
}

.ccbf-ai-reasoning[b-cj2iqb7vl5] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
    line-height: 18px;
}

.ccbf-ai-no-match-text[b-cj2iqb7vl5] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

/* "Suggested case" label row */
.ccbf-ai-suggested-label[b-cj2iqb7vl5] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: var(--font-size-text-md);
    font-weight: 500;
    color: var(--text-primary);
}

/* Warning info card at bottom of AI col */
.ccbf-ai-info-card[b-cj2iqb7vl5] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid var(--bg-warning-secondary);
    border-radius: var(--radius-xl);
    padding: 10px 12px;
    background: var(--bg-warning-primary);
    margin-top: 4px;
}

.ccbf-ai-info-icon[b-cj2iqb7vl5] {
    flex: 0 0 auto;
    margin-top: 1px;
}

.ccbf-ai-info-text[b-cj2iqb7vl5] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
    line-height: 18px;
}

/* ===== Case library section ===== */
.ccbf-library-col[b-cj2iqb7vl5] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ccbf-lib-title[b-cj2iqb7vl5] {
    margin: 0 0 4px;
    font-size: var(--font-size-text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== Search row ===== */
/* The box itself is the shared panel chrome (.panel-search / .panel-search__input in
   panel-controls.css) wrapping <DebouncedInput>, so the case-library search now looks and
   behaves exactly like every other search in the right-hand panels. */
.ccbf-search-row[b-cj2iqb7vl5] {
    margin-bottom: 4px;
}

/* ===== AI promo card ("Get started with AI") ===== */
.ccbf-ai-promo-card[b-cj2iqb7vl5] {
    display: flex;
    flex-direction: row;
    /* Top, not centre: the call to action sits in the card's top right corner (T74). */
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 10px 12px;
    background: var(--bg-primary-alt);
    margin-bottom: 4px;
}

.ccbf-ai-promo-left[b-cj2iqb7vl5] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ccbf-ai-promo-icon[b-cj2iqb7vl5] {
    flex: 0 0 auto;
    color: var(--text-brand-primary);
}

.ccbf-ai-promo-text[b-cj2iqb7vl5] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ccbf-ai-promo-title[b-cj2iqb7vl5] {
    margin: 0;
    font-size: var(--font-size-text-md);
    font-weight: 500;
    color: var(--text-primary);
}

.ccbf-ai-promo-desc[b-cj2iqb7vl5] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

/* ===== Case process list ===== */
.ccbf-process-list[b-cj2iqb7vl5] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* ===== Action / case card row ===== */
/* Name and Add/Added share the first row; the description takes the full width of the card on the
   row below, running under the button rather than stopping short of it (T67). */
.ccbf-action-card[b-cj2iqb7vl5] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 10px 12px;
    background: var(--bg-primary);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

/* Hover lights the card's border in the brand colour, as the design system's other selectable cards do
   (checkbox-card); a selected card already carries the stronger brand border, so it keeps it (T70). */
.ccbf-action-card:hover:not(.ccbf-action-card--selected)[b-cj2iqb7vl5] {
    border-color: var(--border-brand);
}

.ccbf-action-card--selected[b-cj2iqb7vl5] {
    border-color: var(--bg-brand-solid);
    background: var(--bg-brand-primary);
    box-shadow: var(--shadow-xs);
}

/* The wrapper only groups name + description in the markup: its children are the card grid's own items. */
.ccbf-action-card-info[b-cj2iqb7vl5] {
    display: contents;
}

.ccbf-action-card-name[b-cj2iqb7vl5] {
    margin: 0;
    font-size: var(--font-size-text-md);
    font-weight: 500;
    color: var(--text-primary);
    /* One line then an ellipsis, so a long case name never pushes its description down (T66).
       The full name stays reachable as the element's title. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    grid-column: 1;
    grid-row: 1;
}

.ccbf-action-card-desc[b-cj2iqb7vl5] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
    /* Two lines then an ellipsis: a long case description no longer stretches its card (T65).
       The full text stays reachable as the element's title. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    grid-column: 1 / -1;
    grid-row: 2;
}

.ccbf-action-card-btn-wrap[b-cj2iqb7vl5] {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
}

/* ===== Toggle / secondary button ===== */
.ccbf-toggle-btn[b-cj2iqb7vl5] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ccbf-toggle-btn:hover[b-cj2iqb7vl5] {
    background: var(--bg-secondary-hover);
    color: var(--text-primary);
}

.ccbf-toggle-btn--active[b-cj2iqb7vl5] {
    background: var(--bg-brand-solid);
    border-color: var(--bg-brand-solid);
    color: var(--text-white);
}

.ccbf-toggle-btn--active:hover[b-cj2iqb7vl5] {
    background: var(--bg-brand-solid-hover, var(--bg-brand-solid));
    color: var(--text-white);
}

.ccbf-nowrap[b-cj2iqb7vl5] {
    white-space: nowrap;
}

/* ===== Primary / submit button ===== */
.ccbf-primary-btn[b-cj2iqb7vl5] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--bg-brand-solid);
    color: var(--text-white);
    font-size: var(--font-size-text-md);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.ccbf-primary-btn:hover:not(:disabled)[b-cj2iqb7vl5] {
    background: var(--bg-brand-solid-hover, var(--bg-brand-solid));
}

.ccbf-primary-btn:disabled[b-cj2iqb7vl5] {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Compact size for a call to action inside a card, where the full-size footer button is too heavy. */
.ccbf-primary-btn--sm[b-cj2iqb7vl5] {
    flex: 0 0 auto;
    padding: 5px 12px;
    font-size: var(--font-size-text-sm);
}

/* ===== Loading row ===== */
.ccbf-list-loading[b-cj2iqb7vl5] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
}

.ccbf-list-loading-label[b-cj2iqb7vl5] {
    font-size: var(--font-size-text-md);
    color: var(--text-tertiary);
}

/* ===== Empty / error states ===== */
/* Both are shared components now (<EmptyState Size="sm"> and <ErrorState Mode="inline">) —
   the hand-rolled "No case processes found" paragraph could not tell a failed request from
   an empty library, which is exactly SH-1. */
.ccbf-library-error[b-cj2iqb7vl5] {
    margin: 8px 0;
}

.ccbf-save-error[b-cj2iqb7vl5] {
    margin: 0 auto 0 0;
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-error-primary);
}

/* ===== Spacing helpers (scoped, no Bootstrap) ===== */
.ccbf-mb-8[b-cj2iqb7vl5]  { margin-bottom: 8px; }
.ccbf-mb-12[b-cj2iqb7vl5] { margin-bottom: 12px; }
.ccbf-mb-16[b-cj2iqb7vl5] { margin-bottom: 16px; }
/* /Components/Pages/Chat/ChatRightSideComponents/FollowUp/FollowUp.razor.rz.scp.css */
/* Follow-ups tab (redesign 2026-10-08).

   ONE sheet for the tab and its three children (FollowUpRow, FollowUpComposer,
   FollowUpWhenChoices). Their markup carries no scope attribute of this file, so every
   rule that targets something a child renders - or a design-system component's own
   root (.btn, a PhIcon given a CssClass, ErrorState's CssClass) - is written under
   `.followup-card-list ::deep`. A rule without it would be silently inert there.

   The panel title row is the SHARED .panel-header, the search box and filter button
   the shared .panel-search / .panel-filter-btn, and the group headings the shared
   .panel-section-label (all Styles/components/panel-controls.css). */

/* ===== Search + filter + add row ===== */
/* Layout (flex row + gap) comes from the shared .panel-search-row class;
   this rule only owns the row's outer padding. */
.followup-search-row[b-2quglvrzqz] {
    padding: 10px 12px;
    flex: 0 0 auto;
}

/* ===== Filter panel =====
   The controls themselves are design-system components (SegmentedControl, Dropdown,
   InputDatePicker). This sheet owns only the panel's own box and layout. */
.followup-filters[b-2quglvrzqz] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 12px 10px;
    padding: 12px;
    flex: 0 0 auto;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}

.followup-filter-row[b-2quglvrzqz] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.followup-date-filters[b-2quglvrzqz] {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.followup-date-col[b-2quglvrzqz] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 50%;
    min-width: 0;
}

.followup-filter-label[b-2quglvrzqz] {
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    font-weight: 500;
    color: var(--text-tertiary);
}

/* How many match on the left, the way out on the right. */
.followup-filters-foot[b-2quglvrzqz] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 20px;
}

.followup-filters-count[b-2quglvrzqz] {
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
}

.followup-clear-filters[b-2quglvrzqz] {
    border: 0;
    background: transparent;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    color: var(--text-brand-primary);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s ease;
}

.followup-clear-filters:hover[b-2quglvrzqz] {
    color: var(--text-primary);
}

.followup-clear-filters:focus-visible[b-2quglvrzqz] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

/* ===== Open / Done / All ===== */
.followup-views[b-2quglvrzqz] {
    padding: 0 12px 10px;
    flex: 0 0 auto;
}

/* ===== The list (scrollable area) ===== */
.followup-card-list[b-2quglvrzqz] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 12px 12px;
    scroll-behavior: smooth;
}

/* Group heading: the shared tracked label, with the count pushed right. Overdue is the
   one group that says so in colour as well as in words. */
.followup-group[b-2quglvrzqz] {
    margin-top: 4px;
}

.followup-group[data-followup-group="overdue"][b-2quglvrzqz],
.followup-group[data-followup-group="overdue"] .panel-section-label__meta[b-2quglvrzqz] {
    color: var(--text-error-primary);
}

/* ===== Undo bar ===== */
.followup-undo[b-2quglvrzqz] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border-success);
    border-radius: var(--radius-md);
    background: var(--bg-success-primary);
    /* The words stay in the text colour: success green on its own tint is too faint to read
       at this size. The icon carries the colour. */
    color: var(--text-secondary);
}

.followup-undo[role="alert"][b-2quglvrzqz] {
    border-color: var(--border-error);
    background: var(--bg-error-primary);
}

.followup-undo-text[b-2quglvrzqz] {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.followup-card-list[b-2quglvrzqz]  .followup-undo-icon {
    flex: 0 0 auto;
    color: var(--fg-success-primary);
}

.followup-undo[role="alert"][b-2quglvrzqz]  .followup-undo-icon {
    color: var(--fg-error-primary);
}

/* ===== One follow-up (FollowUpRow) =====
   A tick beside a column: what it is about, then when + who, then the message it was
   raised from. */
.followup-card-list[b-2quglvrzqz]  .followup-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
    padding: 10px 12px;
}

.followup-card-list[b-2quglvrzqz]  .followup-card--done {
    background: var(--bg-secondary);
    box-shadow: none;
}

.followup-card-list[b-2quglvrzqz]  .followup-check {
    flex: 0 0 auto;
    margin-top: 1px;
}

.followup-card-list[b-2quglvrzqz]  .followup-card-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1 1 auto;
    min-width: 0;
}

.followup-card-list[b-2quglvrzqz]  .followup-task-title {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.followup-card-list[b-2quglvrzqz]  .followup-card--done .followup-task-title {
    font-weight: 400;
    text-decoration: line-through;
    color: var(--text-tertiary);
}

/* When + who on one line; a long zone name sends "who" to a second line rather than
   squeezing either. */
.followup-card-list[b-2quglvrzqz]  .followup-card-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.followup-card-list[b-2quglvrzqz]  .followup-card-meta .btn {
    max-width: 100%;
    min-width: 0;
}

.followup-card-list[b-2quglvrzqz]  .followup-card-meta .btn > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.followup-card-list[b-2quglvrzqz]  .followup-done-note {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
}

/* The strip a row opens for "Move it to" / "Hand it to": choices in the row itself. */
.followup-card-list[b-2quglvrzqz]  .followup-strip {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 9px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
}

.followup-card-list[b-2quglvrzqz]  .followup-strip-label {
    margin: 0;
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-tertiary);
}

.followup-card-list[b-2quglvrzqz]  .followup-strip-hint {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
}

/* A set of choices (FollowUpWhenChoices, and the who-buttons). */
.followup-card-list[b-2quglvrzqz]  .followup-choices {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}

/* "Pick a time": the date on its own line, then the time and - in a row's strip - Set.
   Side by side, a ~300px panel left the date field room for "12 Oc". */
.followup-card-list[b-2quglvrzqz]  .followup-when-custom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
}

.followup-card-list[b-2quglvrzqz]  .followup-when-custom > :first-child {
    grid-column: 1 / -1;
}

.followup-card-list[b-2quglvrzqz]  .followup-row-error {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-error-primary);
}

/* The message it was raised from. Author, stamp and text each get their own line: on one
   line the stamp (which names its zone) left the text no width at all. */
.followup-card-list[b-2quglvrzqz]  .followup-quote,
.followup-card-list[b-2quglvrzqz]  .followup-compose-quote {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 7px 9px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    min-width: 0;
}

.followup-card-list[b-2quglvrzqz]  .followup-quote-head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.followup-card-list[b-2quglvrzqz]  .followup-message-author-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.followup-card-list[b-2quglvrzqz]  .followup-message-date {
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
}

.followup-card-list[b-2quglvrzqz]  .followup-quote-text {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== The add form (FollowUpComposer) ===== */
.followup-card-list[b-2quglvrzqz]  .followup-compose {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--utility-brand-200);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
}

.followup-card-list[b-2quglvrzqz]  .followup-compose-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.followup-card-list[b-2quglvrzqz]  .followup-compose-name {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-primary);
}

.followup-card-list[b-2quglvrzqz]  .followup-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.followup-card-list[b-2quglvrzqz]  .followup-field-label {
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-secondary);
}

.followup-card-list[b-2quglvrzqz]  .followup-compose-hint {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
}

.followup-card-list[b-2quglvrzqz]  .followup-compose-error {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-error-primary);
}

.followup-card-list[b-2quglvrzqz]  .followup-compose-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ===== Foot of the list: "Show 2 done", "Show more" ===== */
.followup-list-foot[b-2quglvrzqz] {
    display: flex;
    justify-content: center;
}

/* ===== Loading / error ===== */
.followup-loading[b-2quglvrzqz] {
    display: flex;
    justify-content: center;
    padding: 12px;
}

/* A failed NEXT read keeps the rows that did load, so its error is the compact form. */
.followup-card-list[b-2quglvrzqz]  .followup-more-error {
    margin: 4px 0 8px;
}
/* /Components/Pages/Chat/ChatRightSideComponents/Form/Form.razor.rz.scp.css */
/* ===== Panel header ===== */
.form-panel-header[b-dp487rfscw] {
    padding: 12px 12px 8px;
    flex: 0 0 auto;
}

.form-panel-title[b-dp487rfscw] {
    font-size: var(--font-size-text-lg);
    font-weight: 700;
    line-height: 24px;
    color: var(--text-primary);
    margin: 0;
}

/* ===== Toolbar (search + filter toggle) ===== */
.form-toolbar[b-dp487rfscw] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0 12px 12px;
    flex: 0 0 auto;
}

.form-search[b-dp487rfscw] {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
}

.form-search-icon[b-dp487rfscw] {
    position: absolute;
    left: 10px;
    color: var(--text-quaternary);
    pointer-events: none;
}

.form-search[b-dp487rfscw]  .form-search-input {
    width: 100%;
    padding: 7px 12px 7px 32px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-text-md);
    line-height: 20px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-search[b-dp487rfscw]  .form-search-input::placeholder { color: var(--text-placeholder); }

.form-search[b-dp487rfscw]  .form-search-input:focus {
    border-color: var(--border-brand);
    box-shadow: var(--focus-ring-brand);
}

.form-filter-btn[b-dp487rfscw] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-quaternary);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.form-filter-btn:hover[b-dp487rfscw] {
    background: var(--bg-secondary-hover);
    color: var(--text-secondary);
}

.form-filter-btn.is-active[b-dp487rfscw] {
    background: var(--bg-brand-solid);
    border-color: var(--bg-brand-solid);
    color: var(--text-white);
}

/* ===== Filters panel ===== */
.form-filters[b-dp487rfscw] {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 0 12px 12px;
    flex: 0 0 auto;
}

.form-filter[b-dp487rfscw] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 50%;
    min-width: 0;
}

.form-filter-label[b-dp487rfscw] {
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-tertiary);
}

.form-filter-select[b-dp487rfscw] {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-text-sm);
    line-height: 20px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.form-filter-select:focus[b-dp487rfscw] {
    border-color: var(--border-brand);
    box-shadow: var(--focus-ring-brand);
}

/* ===== AI Suggest card ===== */
.form-suggest-card[b-dp487rfscw] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin: 0 12px 12px;
    padding: 12px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    flex: 0 0 auto;
}

.form-suggest-icon[b-dp487rfscw] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--text-brand-primary);
}

.form-suggest-body[b-dp487rfscw] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.form-suggest-title[b-dp487rfscw] {
    font-size: var(--font-size-text-md);
    font-weight: 500;
    line-height: 20px;
    color: var(--text-primary);
    margin: 0;
}

.form-suggest-desc[b-dp487rfscw] {
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-tertiary);
    margin: 0;
}

/* ===== Shared action button ===== */
.form-action-btn[b-dp487rfscw] {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    margin-top: 8px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-action-btn:hover[b-dp487rfscw] {
    background: var(--bg-secondary-hover);
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-xs);
}

/* ===== Scrollable form list ===== */
.form-list[b-dp487rfscw] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 12px 8px;
}

/* ===== Form item card ===== */
.form-item[b-dp487rfscw] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-item:hover[b-dp487rfscw] {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-xs);
}

.form-item-info[b-dp487rfscw] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.form-item-title[b-dp487rfscw] {
    font-size: var(--font-size-text-md);
    font-weight: 500;
    line-height: 20px;
    color: var(--text-primary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-item-desc[b-dp487rfscw] {
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-tertiary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.form-item .form-action-btn[b-dp487rfscw] {
    margin-top: 0;
    flex: 0 0 auto;
}

/* ===== Loading ===== */
.form-loading[b-dp487rfscw] {
    display: flex;
    justify-content: center;
    padding: 12px;
}
/* /Components/Pages/Chat/ChatRightSideComponents/Note/Note.razor.rz.scp.css */
/* =========================================================================
 * NOTES panel — T14 / W2, INB-C11
 * =========================================================================
 * Prototype: Inbox.dc.html:516-530 — a "New note" button then one bordered
 * card per note (body copy, then a footer row: initials, when, Edit, Delete).
 * The inline compose textarea moved into a modal (parity row «Note: inline
 * compose … → modal»), so the composer styles that used to live here are gone
 * and the modal body reuses the same textarea skin.
 *
 * Header chrome, search row, filter button, "New note" CTA, section label and
 * the error slot are all shared (Styles/components/panel-controls.css).
 * ========================================================================= */

/* ===== Create row ======================================================== */
/* T34 — .note-create-row removed. The create button lives in the search row beside the filter
   button now, so the panel no longer spends a whole row on one control. */

/* ===== List section ====================================================== */
.note-card-list[b-0hu7jhxeqg] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: var(--spacing-2-5) 12px var(--spacing-3);
}

.note-section[b-0hu7jhxeqg] {
    width: 100%;
    gap: var(--spacing-2-5);
}

/* ===== Date filter row =================================================== */
.note-date-row[b-0hu7jhxeqg] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
}

.note-date-input-wrap[b-0hu7jhxeqg] { flex: 1 1 auto; min-width: 0; }

/* ===== Note card ========================================================= */
.note-card[b-0hu7jhxeqg] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
    padding: 10px 12px;
    margin-bottom: var(--spacing-2-5);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.note-card:hover[b-0hu7jhxeqg],
.note-card:focus-within[b-0hu7jhxeqg] {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-sm);
}

/* The card body is a real button (Enter/Space open the detail with no key
   handler to forget), so it has to be reset to look like text. */
.note-card-body[b-0hu7jhxeqg] {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.note-card-body:focus-visible[b-0hu7jhxeqg] {
    outline: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--focus-ring-brand);
}

.note-text[b-0hu7jhxeqg] {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-secondary);
    word-break: break-word;
}

.note-card-body:hover .note-text[b-0hu7jhxeqg] {
    color: var(--text-primary);
}

/* ===== Card footer: initials, when, Edit, Delete ========================= */
.note-card-foot[b-0hu7jhxeqg] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
}

.note-when[b-0hu7jhxeqg] {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-quaternary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-link-btn[b-0hu7jhxeqg] {
    flex: 0 0 auto;
    padding: 2px 0;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.15s ease;
}

.note-link-btn:hover[b-0hu7jhxeqg] {
    color: var(--text-primary);
    text-decoration: underline;
}

.note-link-btn:focus-visible[b-0hu7jhxeqg] {
    outline: none;
    border-radius: var(--radius-xs);
    box-shadow: var(--focus-ring-brand);
}

.note-link-btn--danger[b-0hu7jhxeqg] { color: var(--text-error-primary); }

.note-link-btn--danger:hover[b-0hu7jhxeqg] { color: var(--text-error-primary); }

/* A per-row failure (a delete the API refused) — the row stays put and says so. */
.note-row-error[b-0hu7jhxeqg] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-error-primary);
}

/* ===== Loading ========================================================== */
.note-load-more[b-0hu7jhxeqg] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2-5);
    padding: var(--spacing-3) 0;
}

.note-load-more-label[b-0hu7jhxeqg] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

/* ===== Compose / edit modal ============================================= */
.note-field-label[b-0hu7jhxeqg] {
    display: block;
    margin-bottom: var(--spacing-1-5);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-tertiary);
}

.note-save-error[b-0hu7jhxeqg] {
    margin: var(--spacing-2) 0 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-error-primary);
}

.note-modal-icon[b-0hu7jhxeqg] {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-brand-primary);
}

@media (prefers-reduced-motion: reduce) {
    .note-card[b-0hu7jhxeqg] { transition: none; }
}
/* /Components/Pages/Chat/ChatRightSideComponents/Note/NoteDetailForm.razor.rz.scp.css */
.note-detail-body[b-znsipzxefu] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
}

.note-detail-text[b-znsipzxefu] {
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    color: var(--text-primary);
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.note-detail-stamp[b-znsipzxefu] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-quaternary);
}
/* /Components/Pages/Chat/ChatRightSideComponents/PanelListSkeleton.razor.rz.scp.css */
/* ============================================================
   Panel list skeleton — placeholder rows shown inside a
   right-side tool while its list data loads. Geometry mirrors
   the shared item card (see Actions/Action.razor.css .action-item).
   ============================================================ */

.panel-list-skeleton[b-5rpnnwty4j] {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.panel-list-skeleton__card[b-5rpnnwty4j] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 12px;
    margin-bottom: 10px;
    background: var(--bg-primary);
}

.panel-list-skeleton__card-body[b-5rpnnwty4j] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}
/* /Components/Pages/Chat/ChatRightSideComponents/QuickReply/QuickReply.razor.rz.scp.css */
/* =========================================================================
 * QUICK REPLY panel shell — T14 / W2
 * =========================================================================
 * Header chrome is shared now (.panel-header in
 * Styles/components/panel-controls.css, prototype :309-313), so the old
 * .qr-header / .qr-title pair is gone rather than restyled — five tabs
 * converging on one header is the point of that file.
 *
 * Search box and category chips are also shared (.panel-search*, .panel-chips,
 * .panel-chip). What is left here is padding and the two category-row states
 * the shared sheet has no opinion about.
 * ========================================================================= */

.qr-search-row[b-vllwkevvmz] {
    padding: var(--spacing-2-5) 12px var(--spacing-2);
    flex: 0 0 auto;
}

/* ===== Category chip row ================================================= */
.qr-tag-filter[b-vllwkevvmz] {
    padding: 0 12px var(--spacing-2);
    flex: 0 0 auto;
}

/* One line, always. The chips used to wrap into a 76px-tall cloud that ate two
   rows of the panel before a single reply was visible; they now sit on one row
   and scroll sideways instead. The scrollbar is hidden on purpose — the row is
   still scrollable by trackpad, wheel and keyboard, and a visible bar under a
   28px strip of chips costs more height than it explains.

   Overrides .panel-chips' flex-wrap: wrap (panel-controls.css:116) for this row
   only; the thread filters and the Saved-data tabs still wrap. */
.qr-chips[b-vllwkevvmz] {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: var(--spacing-1-5);
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* legacy Edge */
    overscroll-behavior-x: contain; /* a chip row must not bounce the panel */
}

.qr-chips[b-vllwkevvmz]::-webkit-scrollbar {
    display: none;                  /* Chrome / Safari */
}

/* Without this a long category list squeezes every chip instead of overflowing,
   which is the whole point of the row scrolling. */
.qr-chips .panel-chip[b-vllwkevvmz] {
    flex: 0 0 auto;
}

.qr-tags-loading[b-vllwkevvmz] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--spacing-1) 0;
}

.qr-tags-empty[b-vllwkevvmz] {
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-tertiary);
    margin: 0;
    padding: var(--spacing-0-5) 0;
}

/* SH-1: a failed category fetch is not "no categories". */
.qr-tags-error[b-vllwkevvmz] {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-2);
    margin: 0;
    padding: var(--spacing-0-5) 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-warning-primary);
}

.qr-tags-retry[b-vllwkevvmz] {
    border: none;
    background: transparent;
    padding: 0;
    color: var(--text-brand-primary);
    font-family: inherit;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
}

.qr-tags-retry:hover[b-vllwkevvmz] {
    text-decoration: underline;
}

.qr-tags-retry:focus-visible[b-vllwkevvmz] {
    outline: none;
    border-radius: var(--radius-xs);
    box-shadow: var(--focus-ring-brand);
}

/* ===== Card list container =============================================== */
.qr-card-list[b-vllwkevvmz] {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
/* /Components/Pages/Chat/ChatRightSideComponents/QuickReply/QuickReplyCardEditForm.razor.rz.scp.css */
/* ===== Editor container ===== */
.qrce-editor[b-4x0yu7342z] {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-primary);
}

/* ===== Toolbar ===== */
.qrce-toolbar[b-4x0yu7342z] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
    flex-wrap: wrap;
}

.qrce-toolbar-group[b-4x0yu7342z] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
}

.qrce-toolbar-separator[b-4x0yu7342z] {
    width: 1px;
    height: 20px;
    background: var(--border-primary);
    margin: 0 4px;
    flex: 0 0 auto;
}

.qrce-toolbar-btn[b-4x0yu7342z] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-tertiary);
    font-size: var(--font-size-text-sm);
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    white-space: nowrap;
}

.qrce-toolbar-btn:hover[b-4x0yu7342z] {
    background: var(--bg-secondary-hover);
    color: var(--text-secondary);
}

.qrce-toolbar-btn:focus-visible[b-4x0yu7342z] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.qrce-toolbar-btn.active[b-4x0yu7342z] {
    background: var(--bg-brand-primary);
    border-color: var(--border-brand);
    color: var(--text-brand-primary);
}

.qrce-toolbar-tab-label[b-4x0yu7342z] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
}

.qrce-toolbar-text-icon[b-4x0yu7342z] {
    font-size: var(--font-size-text-md);
    font-weight: 700;
    color: currentColor;
    line-height: 1;
}

.qrce-underline[b-4x0yu7342z] {
    text-decoration: underline;
}

/* ===== Textarea / Preview area ===== */
.qrce-textarea-wrap[b-4x0yu7342z] {
    flex: 1 1 auto;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.qrce-textarea[b-4x0yu7342z] {
    width: 100%;
    flex: 1 1 auto;
    min-height: 140px;
    padding: 12px;
    border: none;
    outline: none;
    resize: vertical;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-text-md);
    line-height: 20px;
    font-family: var(--font-family-body);
}

.qrce-textarea[b-4x0yu7342z]::placeholder {
    color: var(--text-placeholder);
}

.qrce-preview-div[b-4x0yu7342z] {
    padding: 12px;
    min-height: 140px;
    flex: 1 1 auto;
    color: var(--text-primary);
    font-size: var(--font-size-text-md);
    line-height: 20px;
}

.qrce-preview-div[b-4x0yu7342z]  p { margin: 0 0 6px; }
.qrce-preview-div[b-4x0yu7342z]  p:last-child { margin-bottom: 0; }
.qrce-preview-div[b-4x0yu7342z]  ul, .qrce-preview-div[b-4x0yu7342z]  ol { margin: 0 0 6px; padding-left: 20px; }
.qrce-preview-div[b-4x0yu7342z]  strong { font-weight: 700; }
.qrce-preview-div[b-4x0yu7342z]  a { color: var(--text-brand-primary); }

/* ===== Guard notice / refusal / failure strip =============================
 * NN-1 (E23/E25): a card send refused by the 24-hour window, and a send the
 * API did not accept, both explain themselves here instead of no-oping. The
 * callout skin is shared (Styles/components/panel-controls.css).
 * ========================================================================= */
.qrce-alert[b-4x0yu7342z] {
    margin-top: var(--spacing-2-5);
}

.qrce-alert-lead[b-4x0yu7342z] {
    font-weight: var(--font-weight-semibold);
}

/* A blocked Send stays activatable so it can explain itself. */
.qrce-btn-primary[aria-disabled="true"][b-4x0yu7342z] {
    opacity: 0.7;
}

/* ===== Footer row ===== */
.qrce-footer[b-4x0yu7342z] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 0 0;
}

/* ===== Buttons ===== */
.qrce-btn-text[b-4x0yu7342z] {
    padding: 7px 14px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--font-size-text-md);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.qrce-btn-text:hover[b-4x0yu7342z] {
    background: var(--bg-secondary-hover);
}

.qrce-btn-text:focus-visible[b-4x0yu7342z],
.qrce-btn-primary:focus-visible[b-4x0yu7342z] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.qrce-btn-primary[b-4x0yu7342z] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid var(--bg-brand-solid);
    border-radius: var(--radius-md);
    background: var(--bg-brand-solid);
    color: var(--text-white);
    font-size: var(--font-size-text-md);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.qrce-btn-primary:hover:not(:disabled)[b-4x0yu7342z] {
    background: var(--bg-brand-solid-hover);
    border-color: var(--bg-brand-solid-hover);
}

.qrce-btn-primary:disabled[b-4x0yu7342z] {
    opacity: 0.5;
    cursor: not-allowed;
}
/* /Components/Pages/Chat/ChatRightSideComponents/QuickReply/QuickReplyList.razor.rz.scp.css */
/* =========================================================================
 * QUICK REPLY LIST — T14 / W2, INB-C12
 * =========================================================================
 * Prototype: Inbox.dc.html:396-402 — a bordered card per reply (title row +
 * category badge, body copy, then a row of link buttons). The hover overlay
 * that used to hide Send/Edit is GONE: the actions are part of the card now
 * (parity row «QuickReply Edit/Send are hover-only overlays»), which also
 * removed the only non-token colour in this sheet (an rgba scrim).
 *
 * Shared vocabulary comes from Styles/components/panel-controls.css
 * (.panel-badge, .panel-callout, .panel-error) — not restyled here.
 * ========================================================================= */

/* ===== Notice / refusal / failure strips ================================= */
.qrl-notice[b-vujlqk3oo2],
.qrl-alert[b-vujlqk3oo2] {
    margin: 0 12px var(--spacing-2);
    align-items: center;
}

.qrl-alert-text[b-vujlqk3oo2] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.qrl-alert-lead[b-vujlqk3oo2] {
    font-weight: var(--font-weight-semibold);
}

.qrl-alert[b-vujlqk3oo2]  .qrl-alert-retry {
    flex: 0 0 auto;
}

/* ===== Loading skeleton wrapper ===== */
/* Matches .qrl-list horizontal padding so placeholder cards line up with the
   real list items once they load (the skeleton renders into the unpadded
   .qr-card-list container). */
.qrl-skeleton[b-vujlqk3oo2] {
    padding: var(--spacing-1) 12px var(--spacing-3);
}

/* ===== Scrollable list wrapper ===== */
.qrl-list[b-vujlqk3oo2] {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: var(--spacing-1) 12px var(--spacing-3);
    gap: 0;
}

/* ===== Load-more spinner row ===== */
.qrl-load-more[b-vujlqk3oo2] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) 0 var(--spacing-1);
}

.qrl-load-more-text[b-vujlqk3oo2] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text-tertiary);
}

/* ===== Per-item container ===== */
.qrl-item[b-vujlqk3oo2] {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 10px;
}

.qrl-item:last-child[b-vujlqk3oo2] {
    margin-bottom: 0;
}

/* ===== Card ============================================================== */
.qrl-card[b-vujlqk3oo2] {
    display: flex;
    flex-direction: column;
    gap: 7px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
    padding: 10px 12px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Hover lifts the border only — the same single cue .action-item uses. The card
   used to also swap shadow-xs for shadow-sm, which made an Actions card and a
   quick-reply card react differently to the same gesture. */
.qrl-card:hover[b-vujlqk3oo2],
.qrl-card:focus-within[b-vujlqk3oo2] {
    border-color: var(--border-brand);
}

.qrl-card-head[b-vujlqk3oo2] {
    display: flex;
    align-items: center;
    gap: var(--spacing-1-5);
    min-width: 0;
}

.qrl-card-title[b-vujlqk3oo2] {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Markdown body ===================================================== */

/* A quick reply can be a dozen lines of intake instructions; unclamped, one card
   filled the whole panel (the captured body was 216px tall in a 292px card). Five
   lines is enough to recognise a reply, and .qrl-clamp-toggle opens the rest.
   -webkit-box is the only clamp that works across the generated markdown, so the
   body is the flex item that gets clamped, not each <p>. */
.qrl-card-body--clamped[b-vujlqk3oo2] {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* A text link on purpose: it reveals text in place, it does not act on the reply,
   so it must not compete with the Send/Edit pills below it. */
.qrl-clamp-toggle[b-vujlqk3oo2] {
    align-self: flex-start;
    padding: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.5;
    color: var(--text-brand-primary);
    cursor: pointer;
}

.qrl-clamp-toggle:hover[b-vujlqk3oo2] {
    color: var(--text-brand-secondary);
    text-decoration: underline;
}

.qrl-clamp-toggle:focus-visible[b-vujlqk3oo2] {
    outline: none;
    border-radius: var(--radius-xs);
    box-shadow: var(--focus-ring-brand);
}

.qrl-card-body[b-vujlqk3oo2]  p {
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-tertiary);
    margin: 0 0 var(--spacing-1);
}

.qrl-card-body[b-vujlqk3oo2]  p:last-child {
    margin-bottom: 0;
}

.qrl-card-body[b-vujlqk3oo2]  ul,
.qrl-card-body[b-vujlqk3oo2]  ol {
    margin: 0 0 var(--spacing-1);
    padding-left: var(--spacing-4);
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-tertiary);
}

/* ===== Actions row — always visible (proto:400) ========================== */
/* Mirrors .action-item-controls (Action.razor.css:153) — proto:411-415's
   labelled controls, which wrap rather than overflow a 268px panel. */
.qrl-card-actions[b-vujlqk3oo2] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: var(--spacing-0-5);
}

/* .action-btn's shape (Action.razor.css:161). These were borderless text links,
   so the same "primary action on a card" read as a hyperlink in Quick replies
   and as a pill in Actions. */
.qrl-action-btn[b-vujlqk3oo2] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-family: inherit;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;

    /* Edit, the unmarked control — .action-btn--neutral. */
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.qrl-action-btn:hover[b-vujlqk3oo2] {
    background: var(--bg-secondary-hover);
}

.qrl-action-btn:focus-visible[b-vujlqk3oo2] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

/* Send — .action-btn--brand, the counterpart of Actions' "Start". */
.qrl-action-btn--primary[b-vujlqk3oo2] {
    border: 1px solid var(--border-brand);
    color: var(--text-brand-primary);
}

.qrl-action-btn--primary:hover[b-vujlqk3oo2] {
    background: var(--bg-brand-primary);
}

/* A blocked Send stays activatable on purpose (NN-1/E25 — it must be able to
   explain itself), so it reads as muted rather than dead. */
.qrl-action-btn[aria-disabled="true"][b-vujlqk3oo2] {
    border-color: var(--border-secondary);
    color: var(--text-quaternary);
}

/* ===== Card-type specific ================================================ */
.qrl-card-image-wrap[b-vujlqk3oo2] {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrl-card-img[b-vujlqk3oo2] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qrl-card-image-placeholder[b-vujlqk3oo2] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-quaternary);
}

.qrl-card-btn-row[b-vujlqk3oo2] {
    display: flex;
    width: 100%;
    padding-top: var(--spacing-2);
    border-top: 1px solid var(--border-secondary);
}

.qrl-card-btn[b-vujlqk3oo2] {
    flex: 1 1 auto;
    padding: var(--spacing-1-5) var(--spacing-3);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-brand-primary);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .qrl-card[b-vujlqk3oo2] { transition: none; }
}
/* /Components/Pages/Chat/ChatRightSideComponents/SavedCustomerData/PartnerCustomerOrigin.razor.rz.scp.css */
/* Partner agents: "Added by partner agent" in the customer panel (Agent Portal canvas,
   StaffInbox.dc.html) - a brand-tinted block so provenance reads apart from saved data. */

.partner-origin[b-orikd1dm4n] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2-5);
    margin: var(--spacing-3) var(--spacing-3) 0;
    padding: var(--spacing-3-5);
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-xl);
    background: var(--bg-brand-primary);
    flex-shrink: 0;
}

.partner-origin__label[b-orikd1dm4n] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-brand-secondary);
}

.partner-origin__agent[b-orikd1dm4n] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2-5);
    min-width: 0;
}

.partner-origin__who[b-orikd1dm4n] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.partner-origin__name[b-orikd1dm4n] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.partner-origin__when[b-orikd1dm4n] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
}

.partner-origin__consent[b-orikd1dm4n] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: var(--line-height-text-sm);
    color: var(--text-secondary);
}

.partner-origin__consent strong[b-orikd1dm4n] {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.partner-origin__details[b-orikd1dm4n] {
    display: flex;
    flex-direction: column;
    padding-top: var(--spacing-1);
    border-top: 1px solid var(--border-brand);
}
/* /Components/Pages/Chat/ChatRightSideComponents/SavedCustomerData/SavedCustomerData.razor.rz.scp.css */
/* ===== Outer shell ===== */
.cust-profile[b-bs109hozq1] {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: var(--bg-primary);
}

/* The panel title row is the SHARED .panel-header (panel-controls.css). */

/* ===== Tab bar ===== */
/* Tabs is a child component, so its rendered root never carries this file's b-scopeid - ::deep
   is required to reach it from here (see also CaseBoard.razor.css, AgentConnectMenu.razor.css). */
.cust-profile[b-bs109hozq1]  .cust-profile-tabs-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 12px 8px;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-primary);
}

/* ===== Body (scrollable) ===== */
.cust-profile-body[b-bs109hozq1] {
    padding: 8px 12px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Loading is the shared <PanelListSkeleton> (the old .cust-profile-loading spinner rule
   matched nothing and is gone).
   Empty states use the shared <EmptyState Size="sm"> component; a FAILED load uses
   <ErrorState Mode="inline"> in the shared .panel-error slot. */

/* A write (delete) the server refused. */
.cust-inline-error[b-bs109hozq1] {
    margin: 8px 0 0;
    font-size: var(--font-size-text-sm);
    line-height: 16px;
    color: var(--text-error-primary);
}

/* ===== Section ===== */
/* Section labels + key/value rows + file cards are shared editorial classes
   (.panel-section-label / .panel-row / .panel-doc in panel-controls.css). */
.cust-profile-section[b-bs109hozq1] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0 10px;
    border-bottom: 1px solid var(--border-secondary);
}

.cust-profile-section:last-child[b-bs109hozq1] {
    border-bottom: 0;
    padding-bottom: 0;
}

/* One saved record: its field card plus the stamp underneath it. The tighter gap is what binds
   the two together, so the section's own 10px gap reads as the space BETWEEN records. */
.cust-profile-entry[b-bs109hozq1] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cust-profile-section-foot[b-bs109hozq1] {
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
    margin: 0;
}

/* "Show more" / "Show less" under a group. .panel-section-label__meta carries the colour and
   type; this only moves it out of the label row onto its own line and left-aligns it. */
.cust-profile-more[b-bs109hozq1] {
    align-self: flex-start;
    padding: 2px 0;
    background: none;
    border: 0;
    cursor: pointer;
}

/* Key/value rows use shared .panel-row; this is just the column wrapper. */
/* proto:584-588 — the profile rows sit inside ONE bordered card with hairline dividers
   between them, not as bare rows on the panel background. */
.cust-profile-fields[b-bs109hozq1] {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    overflow: hidden;
}

/* The shared .panel-row is a grid whose value column is bold primary text. proto:587
   makes the value the QUIETER half — regular weight, secondary — with the key as the
   fixed-width label beside it. A saved value is data, not a headline. */
.cust-profile-fields .panel-row[b-bs109hozq1] {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-tertiary);
}

.cust-profile-fields .panel-row:last-child[b-bs109hozq1] {
    border-bottom: 0;
}

.cust-profile-fields .panel-row__key[b-bs109hozq1] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-quaternary);
}

.cust-profile-fields .panel-row__value[b-bs109hozq1] {
    font-size: var(--font-size-text-sm);
    font-weight: 400;
    color: var(--text-secondary);
}

/* ===== Files ===== */
.cust-profile-files[b-bs109hozq1] {
    display: flex;
    flex-direction: column;
}

.cust-profile-files-mt[b-bs109hozq1] {
    margin-top: 4px;
}

/* The file name + meta are a link; Delete is a sibling button, not a nested one (interactive
   content inside an <a> is invalid HTML). The link takes the row's free space. */
.cust-file-link[b-bs109hozq1] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-3);
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.cust-file-link:focus-visible[b-bs109hozq1] {
    outline: none;
    border-radius: var(--radius-md);
    box-shadow: var(--focus-ring-brand);
}

/* The shared .panel-doc__body/__name/__meta rules were written for block elements; inside the
   link these are spans, so they need the block box back to stack name over meta. */
.cust-file-link .panel-doc__body[b-bs109hozq1],
.cust-file-link .panel-doc__name[b-bs109hozq1],
.cust-file-link .panel-doc__meta[b-bs109hozq1] {
    display: block;
}

.cust-file-tile[b-bs109hozq1] {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.cust-file-tile svg[b-bs109hozq1] { width: 18px; height: 18px; }

/* File-type accents — mapped to the warm theme's semantic tints (no raw hex),
   so they stay on-palette and adapt with the theme. */
.cust-file-tile--pdf[b-bs109hozq1] { background: var(--bg-error-primary);   color: var(--text-error-primary); }
.cust-file-tile--doc[b-bs109hozq1] { background: var(--bg-brand-primary);   color: var(--text-brand-primary); }
.cust-file-tile--xls[b-bs109hozq1] { background: var(--bg-success-primary); color: var(--text-success-primary); }
.cust-file-tile--ppt[b-bs109hozq1] { background: var(--bg-warning-primary); color: var(--text-warning-primary); }
.cust-file-tile--img[b-bs109hozq1] { background: var(--bg-brand-primary);   color: var(--text-brand-primary); }
.cust-file-tile--def[b-bs109hozq1] { background: var(--bg-secondary);       color: var(--text-tertiary); }

/* File name + meta use shared .panel-doc__name / .panel-doc__meta. */

.cust-file-action[b-bs109hozq1] {
    border: 0;
    background: transparent;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    color: var(--text-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.panel-doc:hover .cust-file-action[b-bs109hozq1],
.panel-doc:focus-within .cust-file-action[b-bs109hozq1] {
    opacity: 1;
}

.cust-file-action:hover[b-bs109hozq1] {
    background: var(--bg-error-primary);
    color: var(--text-error-primary);
}

.cust-file-action:focus-visible[b-bs109hozq1] {
    outline: none;
    opacity: 1;
    box-shadow: var(--focus-ring-brand);
    color: var(--text-error-primary);
}

@media (hover: none) {
    .cust-file-action[b-bs109hozq1] {
        opacity: 1;
    }
}

/* ===== Filter chips ===== */
/* Chips are shared — see .panel-chips / .panel-chip in panel-controls.css.
   This wrapper only owns the row's outer padding. */
.cust-profile-chips[b-bs109hozq1] {
    padding: 12px 0 4px;
}

/* ===== Notes ===== */
.cust-profile-notes[b-bs109hozq1] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
}

/* The sticky-note look now comes from the warning tokens rather than two raw hex values
   (C13) — it stays a note in every theme instead of a light-mode-only yellow. */
.cust-profile-note[b-bs109hozq1] {
    background: var(--bg-warning-primary);
    border: 1px solid var(--border-warning);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    padding-right: 36px;
    position: relative;
}

.cust-note-text[b-bs109hozq1] {
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
    margin: 0 0 8px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.cust-note-stamp[b-bs109hozq1] {
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
    margin: 0;
}

.cust-note-action[b-bs109hozq1] {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 0;
    background: transparent;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-md);
    color: var(--text-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cust-note-action:hover[b-bs109hozq1] {
    background: var(--bg-error-primary);
    color: var(--text-error-primary);
}

.cust-note-action:focus-visible[b-bs109hozq1] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
    color: var(--text-error-primary);
}
/* /Components/Pages/Chat/ChatRightSideComponents/Tools/ActionItemsCard.razor.rz.scp.css */
/* ============================================================
   Action items — card-specific rules only (proto:449-461).
   Shared card chrome lives in Tools.razor.css (::deep). Tokens only (C13).
   ============================================================ */

.actionitem-list[b-wwrsjrypzo] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.actionitem[b-wwrsjrypzo] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.actionitem__row[b-wwrsjrypzo] {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-2);
}

.actionitem__check[b-wwrsjrypzo] {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    padding: 0;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xs);
    background: var(--bg-primary);
    color: var(--text-white);
    cursor: pointer;
}

.actionitem__check svg[b-wwrsjrypzo] {
    width: 11px;
    height: 11px;
}

.actionitem__check:hover[b-wwrsjrypzo] {
    border-color: var(--border-brand);
}

.actionitem__check:focus-visible[b-wwrsjrypzo] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.actionitem__check--on[b-wwrsjrypzo] {
    border-color: var(--border-brand);
    background: var(--bg-brand-solid);
}

.actionitem__text[b-wwrsjrypzo] {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.actionitem__text--done[b-wwrsjrypzo] {
    color: var(--text-quaternary);
    text-decoration: line-through;
}

[b-wwrsjrypzo] .actionitem__task {
    align-self: flex-start;
    margin-left: 23px;
}
/* /Components/Pages/Chat/ChatRightSideComponents/Tools/MissingDocumentsCard.razor.rz.scp.css */
/* ============================================================
   Missing documents — card-specific rules only (proto:499-511).
   Shared card chrome lives in Tools.razor.css (::deep). Tokens only (C13).
   ============================================================ */

.missingdoc-list[b-lditgklqu9] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.missingdoc[b-lditgklqu9] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.missingdoc__row[b-lditgklqu9] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.missingdoc__icon[b-lditgklqu9] {
    display: inline-flex;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
}

.missingdoc__icon svg[b-lditgklqu9] {
    width: 100%;
    height: 100%;
}

.missingdoc__icon--missing[b-lditgklqu9] {
    color: var(--fg-warning-primary);
}

.missingdoc__icon--present[b-lditgklqu9] {
    color: var(--fg-success-primary);
}

.missingdoc__name[b-lditgklqu9] {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

/* The state is spelled out, not carried by icon colour alone. */
.missingdoc__state[b-lditgklqu9] {
    flex: 0 0 auto;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

[b-lditgklqu9] .missingdoc__request {
    align-self: flex-start;
    margin-left: 23px;
}
/* /Components/Pages/Chat/ChatRightSideComponents/Tools/SummarizeChatCard.razor.rz.scp.css */
/* ============================================================
   Summarize chat — card-specific rules only.

   The card chrome (.tool-card*, .tool-pill, …) is declared once
   in Tools.razor.css under ::deep — see the note there. Its buttons (Generate/
   Regenerate, Save as note, Copy) render through the shared <Button>
   component (Components/UI/Button.razor) instead — there is no more
   .tool-action/.tool-btn chrome to declare. What is left here is the
   structured summary render: the sections, the key/value snapshot rows, the
   recap timeline and the custom date inputs.
   All colours are tokens (C13).
   ============================================================ */

/* ── Custom date range ── */
.summarize-dates[b-50uvh07v9e] {
    display: flex;
    align-items: center;
    gap: var(--spacing-1-5);
}

.summarize-date[b-50uvh07v9e] {
    flex: 1 1 0;
    min-width: 0;
    padding: 4px 7px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
}

.summarize-date:focus-visible[b-50uvh07v9e] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.summarize-date-sep[b-50uvh07v9e] {
    flex: 0 0 auto;
    color: var(--text-quaternary);
    font-size: var(--font-size-text-xs);
}

/* ── Structured result sections ── */
.summarize-section[b-50uvh07v9e] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
    padding: 8px 10px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.summarize-section__label[b-50uvh07v9e] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

.summarize-kv[b-50uvh07v9e] {
    display: flex;
    gap: var(--spacing-2);
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
}

.summarize-kv__k[b-50uvh07v9e] {
    flex: 0 0 38%;
    color: var(--text-tertiary);
}

.summarize-kv__v[b-50uvh07v9e] {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.summarize-list[b-50uvh07v9e] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    margin: 0;
    padding-left: 16px;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary);
}

.summarize-tag[b-50uvh07v9e] {
    display: inline-block;
    margin-right: var(--spacing-1-5);
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--bg-warning-primary);
    color: var(--text-warning-primary);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Full-recap timeline ── */
.summarize-tl[b-50uvh07v9e] {
    display: flex;
    gap: var(--spacing-2);
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
}

.summarize-tl__date[b-50uvh07v9e] {
    flex: 0 0 46px;
    color: var(--text-quaternary);
    font-variant-numeric: tabular-nums;
}

.summarize-tl__text[b-50uvh07v9e] {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.summarize-outstanding[b-50uvh07v9e] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: var(--spacing-1) 0 0;
    padding-top: var(--spacing-2);
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-warning-primary);
}

.summarize-outstanding__h[b-50uvh07v9e] {
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: var(--font-size-text-xs);
}
/* /Components/Pages/Chat/ChatRightSideComponents/Tools/TeamQueueToolCard.razor.rz.scp.css */
/* Tools › Team: "Team · why it's here" and "Your day" (board TeamQueue.dc.html .tcard / .tcard.hl / dl.mini). Tokens only. */
.tqc[b-th0vzsvsap] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
}

.tqc--why[b-th0vzsvsap] {
    border: 2px solid var(--purple-600);
    padding: 13px;
}

.tqc__label[b-th0vzsvsap] {
    margin: 0;
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tqc--why .tqc__label[b-th0vzsvsap] {
    color: var(--purple-700);
}

.tqc__reason[b-th0vzsvsap] {
    display: inline-flex;
    align-self: flex-start;
    min-width: 0;
    max-width: 100%;
}

.tqc__reason[b-th0vzsvsap]  .badge {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tqc__text[b-th0vzsvsap] {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-size-text-sm);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.tqc__numbers[b-th0vzsvsap] {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    margin: 0;
    font-size: var(--font-size-text-sm);
}

.tqc__numbers dt[b-th0vzsvsap] {
    color: var(--text-tertiary);
}

.tqc__numbers dd[b-th0vzsvsap] {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
/* /Components/Pages/Chat/ChatRightSideComponents/Tools/TonePolisherCard.razor.rz.scp.css */
/* ============================================================
   Tone polisher — card-specific rules only.
   Shared card chrome lives in Tools.razor.css (::deep). Tokens only (C13).
   ============================================================ */

.polish-draft-head[b-yg8qh5v4q9] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2);
}

.polish-draft[b-yg8qh5v4q9] {
    width: 100%;
    min-height: 68px;
    padding: 7px 9px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    resize: vertical;
}

.polish-draft[b-yg8qh5v4q9]::placeholder {
    color: var(--text-placeholder);
}

.polish-draft:hover[b-yg8qh5v4q9] {
    border-color: var(--border-brand);
}

.polish-draft:focus-visible[b-yg8qh5v4q9] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}
/* /Components/Pages/Chat/ChatRightSideComponents/Tools/Tools.razor.rz.scp.css */
/* ============================================================
   Tools panel — T16 / W2
   Prototype: Inbox.dc.html :420-513 (four collapsible tool cards)

   The card chrome is declared ONCE here, under ::deep, and reaches every
   *Card.razor rendered inside .tools-card-list. Scoped CSS does not cross into
   a child component's markup without ::deep (constitution C17) — and the
   alternative, five near-identical copies of the same chrome in five scoped
   sheets, is what this file exists to avoid. Card-specific rules stay in each
   card's own sheet.

   Every colour is a token (C13). No Styles/** file is touched, so no
   `npm run css:build` is required (C14).
   ============================================================ */

/* ── Scrollable card list ── */
.tools-card-list[b-lekkpkegpw] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2-5);
    width: 100%;
    padding: 12px 14px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

/* =========================================================================
   Shared tool-card chrome (proto :423-436)
   ========================================================================= */

.tools-card-list[b-lekkpkegpw]  .tool-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

/* ---- Head: icon chip + title/subtitle + optional badge + chevron -------- */
.tools-card-list[b-lekkpkegpw]  .tool-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.tools-card-list[b-lekkpkegpw]  .tool-card__head:hover {
    background: var(--bg-secondary-subtle);
}

.tools-card-list[b-lekkpkegpw]  .tool-card__head:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.tools-card-list[b-lekkpkegpw]  .tool-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
}

.tools-card-list[b-lekkpkegpw]  .tool-card__icon svg {
    width: 16px;
    height: 16px;
}

.tools-card-list[b-lekkpkegpw]  .tool-card__text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.tools-card-list[b-lekkpkegpw]  .tool-card__title {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    color: var(--text-primary);
}

.tools-card-list[b-lekkpkegpw]  .tool-card__sub {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-quaternary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tools-card-list[b-lekkpkegpw]  .tool-card__chevron {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: var(--fg-quaternary);
    transition: transform 160ms ease;
}

.tools-card-list[b-lekkpkegpw]  .tool-card__chevron--open {
    transform: rotate(180deg);
}

/* ---- Body: indented under the title, as the prototype does -------------- */
.tools-card-list[b-lekkpkegpw]  .tool-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    padding: 0 12px 12px 54px;
}

/* =========================================================================
   Shared body controls
   ========================================================================= */

.tools-card-list[b-lekkpkegpw]  .tool-field {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
}

.tools-card-list[b-lekkpkegpw]  .tool-field__label {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

.tools-card-list[b-lekkpkegpw]  .tool-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tools-card-list[b-lekkpkegpw]  .tool-pill {
    padding: 3px 9px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    cursor: pointer;
}

.tools-card-list[b-lekkpkegpw]  .tool-pill:hover {
    background: var(--bg-secondary-hover);
}

.tools-card-list[b-lekkpkegpw]  .tool-pill:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.tools-card-list[b-lekkpkegpw]  .tool-pill[aria-pressed="true"],
.tools-card-list[b-lekkpkegpw]  .tool-pill[aria-checked="true"] {
    border-color: var(--border-brand);
    background: var(--bg-brand-primary);
    color: var(--text-brand-primary);
}

.tools-card-list[b-lekkpkegpw]  .tool-pill:disabled {
    cursor: not-allowed;
    background: var(--bg-disabled);
    color: var(--text-disabled);
}

/* Secondary/link actions row (Copy, Regenerate, Use in composer …) */
.tools-card-list[b-lekkpkegpw]  .tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    padding-top: var(--spacing-1);
}

@media (prefers-reduced-motion: reduce) {
    .tools-card-list[b-lekkpkegpw]  .tool-card__chevron { transition: none; }
}

/* ---- Result surface ---------------------------------------------------- */
.tools-card-list[b-lekkpkegpw]  .tool-result {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
    padding: 8px 10px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.tools-card-list[b-lekkpkegpw]  .tool-result__label {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

.tools-card-list[b-lekkpkegpw]  .tool-result__text {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    color: var(--text-secondary);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
/* /Components/Pages/Chat/ChatRightSideComponents/Tools/ToolsPanelV2.razor.rz.scp.css */
/* ============================================================
   Tools panel v2 — the redesigned hub + eleven tool views.

   The whole vocabulary is declared ONCE here, under ::deep, and reaches every
   view rendered inside .tools-v2. Scoped CSS does not cross into a child
   component's markup without ::deep, and eleven near-identical copies of the
   same chrome in eleven scoped sheets is exactly what this file exists to
   avoid — the same decision Tools.razor.css made for the v1 cards.

   Every colour is a token. The design canvas is drawn in the Untitled blue
   (#2847C4); nothing here hard-codes it, so the panel is terracotta under the
   warm theme without a second stylesheet. No Styles/** file is touched, so no
   `npm run css:build` is required.
   ============================================================ */

.tools-v2[b-u1uqg23yoy] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

/* =========================================================================
   Head — the hub's title row, and every view's back row
   ========================================================================= */

.tools-v2[b-u1uqg23yoy]  .tv-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-secondary);
}

.tools-v2[b-u1uqg23yoy]  .tv-head__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--fg-brand-primary);
}

.tools-v2[b-u1uqg23yoy]  .tv-head__text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.tools-v2[b-u1uqg23yoy]  .tv-head__title {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.tools-v2[b-u1uqg23yoy]  .tv-head__sub {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.35;
    color: var(--text-quaternary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tools-v2[b-u1uqg23yoy]  .tv-head__btn {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-quaternary);
    cursor: pointer;
}

.tools-v2[b-u1uqg23yoy]  .tv-head__btn:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.tools-v2[b-u1uqg23yoy]  .tv-head__btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.tools-v2[b-u1uqg23yoy]  .tv-head__btn--end {
    margin-left: auto;
}

/* =========================================================================
   Scroll body — one per view, the only thing that scrolls
   ========================================================================= */

.tools-v2[b-u1uqg23yoy]  .tv-scroll {
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1 1 auto;
    min-height: 0;
    padding: 11px 14px 16px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* A view whose child scrolls itself (Customer data = the Saved data panel, with its own tab bar):
   no padding and no second scroller — the child fills the column under the header. */
.tools-v2[b-u1uqg23yoy]  .tv-fill {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.tools-v2[b-u1uqg23yoy]  .tv-fill > * {
    flex: 1 1 auto;
    min-height: 0;
}

/* =========================================================================
   Hub — search, section rules, tool rows, recent
   ========================================================================= */

/* T31 — the search box is the shared global .panel-search / .panel-search__input now, the same
   one every other right-panel search uses. Only the thing the shared class cannot know is kept:
   inside the tv-scroll column this row must not shrink. */
.tools-v2[b-u1uqg23yoy]  .tv-search-row {
    flex: 0 0 auto;
}

.tools-v2[b-u1uqg23yoy]  .tv-sec {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 2px;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

.tools-v2[b-u1uqg23yoy]  .tv-sec::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--border-secondary);
}

.tools-v2[b-u1uqg23yoy]  .tv-grp {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tools-v2[b-u1uqg23yoy]  .tv-row {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.tools-v2[b-u1uqg23yoy]  .tv-row:hover {
    border-color: var(--border-secondary);
    background: var(--bg-secondary-subtle);
}

.tools-v2[b-u1uqg23yoy]  .tv-row:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.tools-v2[b-u1uqg23yoy]  .tv-row__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-md);
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
}

.tools-v2[b-u1uqg23yoy]  .tv-row__text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.tools-v2[b-u1uqg23yoy]  .tv-row__name {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    color: var(--text-primary);
}

.tools-v2[b-u1uqg23yoy]  .tv-row__sub {
    font-size: var(--font-size-text-xs);
    line-height: 1.35;
    color: var(--text-quaternary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tools-v2[b-u1uqg23yoy]  .tv-row__chevron {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    color: var(--fg-quaternary);
}

/* Recent runs sit on the same row, with a status dot instead of an icon chip. */
.tools-v2[b-u1uqg23yoy]  .tv-row--compact {
    padding: 5px 8px;
}

.tools-v2[b-u1uqg23yoy]  .tv-dot {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    border-radius: var(--radius-full);
}

/* Same five tones as the badges above, kept independent so the dot's color survives on its own
   (it is a status indicator wrapping an icon, not a text pill — it does not fit <Badge>). */
.tools-v2[b-u1uqg23yoy]  .tv-dot--neutral {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
}

.tools-v2[b-u1uqg23yoy]  .tv-dot--brand {
    background: var(--bg-brand-secondary);
    color: var(--text-brand-primary);
}

.tools-v2[b-u1uqg23yoy]  .tv-dot--ok {
    background: var(--bg-success-primary);
    color: var(--text-success-primary);
}

.tools-v2[b-u1uqg23yoy]  .tv-dot--warn {
    background: var(--bg-warning-primary);
    color: var(--text-warning-primary);
}

.tools-v2[b-u1uqg23yoy]  .tv-dot--bad {
    background: var(--bg-error-primary);
    color: var(--text-error-primary);
}

.tools-v2[b-u1uqg23yoy]  .tv-when {
    flex: 0 0 auto;
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
}

/* =========================================================================
   Start here — the one card that reads the conversation and offers one move
   ========================================================================= */

.tools-v2[b-u1uqg23yoy]  .tv-suggest {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 9px 10px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}

.tools-v2[b-u1uqg23yoy]  .tv-suggest--brand {
    border-color: var(--border-brand);
    background: var(--bg-brand-primary);
}

.tools-v2[b-u1uqg23yoy]  .tv-suggest__top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tools-v2[b-u1uqg23yoy]  .tv-suggest__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    background: var(--bg-brand-secondary);
    color: var(--fg-brand-primary);
}

.tools-v2[b-u1uqg23yoy]  .tv-suggest__title {
    margin: 0 0 1px;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    color: var(--text-primary);
}

.tools-v2[b-u1uqg23yoy]  .tv-suggest__acts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 30px;
}

/* =========================================================================
   Shared view vocabulary
   ========================================================================= */

.tools-v2[b-u1uqg23yoy]  .tv-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tools-v2[b-u1uqg23yoy]  .tv-label {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

.tools-v2[b-u1uqg23yoy]  .tv-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tools-v2[b-u1uqg23yoy]  .tv-body {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.6;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.tools-v2[b-u1uqg23yoy]  .tv-hint {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-quaternary);
}

.tools-v2[b-u1uqg23yoy]  .tv-mono {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: var(--font-size-text-xs);
}

.tools-v2[b-u1uqg23yoy]  .tv-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tools-v2[b-u1uqg23yoy]  .tv-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 11px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}

.tools-v2[b-u1uqg23yoy]  .tv-card--quiet {
    background: var(--bg-secondary);
}

.tools-v2[b-u1uqg23yoy]  .tv-card__head {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tools-v2[b-u1uqg23yoy]  .tv-card__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1.35;
    color: var(--text-primary);
}

/* ---- Key/value rows: the shape every "what we know" list takes ---------- */

.tools-v2[b-u1uqg23yoy]  .tv-kv {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px dashed var(--border-secondary);
}

.tools-v2[b-u1uqg23yoy]  .tv-kv:last-child {
    border-bottom: none;
}

.tools-v2[b-u1uqg23yoy]  .tv-kv__k {
    flex: 0 0 84px;
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-quaternary);
    overflow-wrap: anywhere;
}

.tools-v2[b-u1uqg23yoy]  .tv-kv__v {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1.45;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.tools-v2[b-u1uqg23yoy]  .tv-kv__v--missing {
    font-weight: var(--font-weight-regular, 400);
    color: var(--text-quaternary);
}

/* ---- Records: a saved value, its source, and what can be done to it -----
   A key/value ROW cannot carry a badge and a button as well: at 300px the value
   column is squeezed to nothing and a long unbroken value (a JSON blob saved by
   an action) wraps to one character per line. So a record puts its label, source
   and controls on one line and gives the VALUE the full width underneath. */

.tools-v2[b-u1uqg23yoy]  .tv-record {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--border-secondary);
}

.tools-v2[b-u1uqg23yoy]  .tv-record:last-child {
    border-bottom: none;
}

.tools-v2[b-u1uqg23yoy]  .tv-record__head {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* The record row is compact (7px vertical padding, see .tv-record above), so its inline Edit
   button keeps the same tight footprint the raw <button style="padding:2px 7px"> had rather than
   the standard btn-xs size, which would read as oversized next to the badge beside it. */
.tools-v2[b-u1uqg23yoy]  .tv-record__edit-btn {
    padding: 2px 7px;
}

.tools-v2[b-u1uqg23yoy]  .tv-record__k {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-quaternary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tools-v2[b-u1uqg23yoy]  .tv-record__v {
    margin: 0;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.tools-v2[b-u1uqg23yoy]  .tv-record__v--missing {
    font-weight: 400;
    color: var(--text-quaternary);
}

/* A value an action stored as a JSON object is unpacked into its own rows
   rather than printed as a blob. */
.tools-v2[b-u1uqg23yoy]  .tv-record__nested {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 8px;
    border-left: 2px solid var(--border-secondary);
}

.tools-v2[b-u1uqg23yoy]  .tv-record__pair {
    display: flex;
    gap: 6px;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
}

.tools-v2[b-u1uqg23yoy]  .tv-record__pair-k {
    flex: 0 0 auto;
    color: var(--text-quaternary);
}

.tools-v2[b-u1uqg23yoy]  .tv-record__pair-v {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.tools-v2[b-u1uqg23yoy]  .tv-record__edit {
    display: flex;
    gap: 5px;
    align-items: center;
}

/* ---- Tiles: a pickable thing (a file, a form, a destination) ------------ */

.tools-v2[b-u1uqg23yoy]  .tv-tile {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 9px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.tools-v2[b-u1uqg23yoy]  .tv-tile:hover {
    background: var(--bg-secondary-subtle);
}

.tools-v2[b-u1uqg23yoy]  .tv-tile:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

/* A tile that is a LINK (Send a form: a sent form opens its response) keeps the tile's look —
   no underline, no link colour bleeding into the name. */
.tools-v2[b-u1uqg23yoy]  a.tv-tile {
    color: inherit;
    text-decoration: none;
}

.tools-v2[b-u1uqg23yoy]  .tv-tile:disabled {
    cursor: default;
    opacity: 0.6;
}

.tools-v2[b-u1uqg23yoy]  .tv-tile[aria-pressed="true"] {
    border-color: var(--border-brand);
    background: var(--bg-brand-primary);
}

.tools-v2[b-u1uqg23yoy]  .tv-tile__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-tertiary);
}

.tools-v2[b-u1uqg23yoy]  .tv-tile__text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.tools-v2[b-u1uqg23yoy]  .tv-tile__name {
    margin: 0;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1.35;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tools-v2[b-u1uqg23yoy]  .tv-tile__kind {
    flex: 0 0 auto;
    padding: 1px 5px;
    border-radius: var(--radius-xs, 4px);
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tools-v2[b-u1uqg23yoy]  .tv-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tools-v2[b-u1uqg23yoy]  .tv-pill {
    padding: 3px 9px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    cursor: pointer;
}

.tools-v2[b-u1uqg23yoy]  .tv-pill:hover:not(:disabled) {
    background: var(--bg-secondary);
}

.tools-v2[b-u1uqg23yoy]  .tv-pill:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.tools-v2[b-u1uqg23yoy]  .tv-pill[aria-pressed="true"] {
    border-color: var(--border-brand);
    background: var(--bg-brand-primary);
    color: var(--text-brand-primary);
    font-weight: var(--font-weight-semibold);
}

.tools-v2[b-u1uqg23yoy]  .tv-pill:disabled {
    cursor: not-allowed;
    background: var(--bg-disabled);
    color: var(--text-disabled);
}

/* ---- Inputs ------------------------------------------------------------- */

.tools-v2[b-u1uqg23yoy]  .tv-textarea,
.tools-v2[b-u1uqg23yoy]  .tv-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--font-size-text-xs);
    line-height: 1.55;
    outline: none;
    box-sizing: border-box;
}

.tools-v2[b-u1uqg23yoy]  .tv-textarea {
    resize: vertical;
}

.tools-v2[b-u1uqg23yoy]  .tv-textarea:focus-visible,
.tools-v2[b-u1uqg23yoy]  .tv-input:focus-visible {
    border-color: var(--border-brand);
    box-shadow: var(--focus-ring-brand);
}

/* =========================================================================
   Bridge for the two carried-forward cards
   -------------------------------------------------------------------------
   SummarizeChatCard and TonePolisherCard are REUSED whole inside their views:
   the summary's SignalR wiring, cached-summary read and note-save, and the
   polisher's composer pull, are real, tested behaviour worth keeping rather
   than re-typing.

   Their own scoped sheets (summarize-*, polish-*) still reach them. What does
   NOT is the shared `tool-*` chrome, which Tools.razor.css declares under
   `.tools-card-list ::deep` — a scope that exists only in the v1 panel. So the
   handful of `tool-*` names those two bodies use are mapped onto the v2
   vocabulary here, as extra selectors rather than a second copy of the rules.
   ========================================================================= */

.tools-v2[b-u1uqg23yoy]  .tool-card {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.tools-v2[b-u1uqg23yoy]  .tool-card__body {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 0;
}

.tools-v2[b-u1uqg23yoy]  .tool-field { display: flex; flex-direction: column; gap: 5px; }

.tools-v2[b-u1uqg23yoy]  .tool-field__label {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

.tools-v2[b-u1uqg23yoy]  .tool-pills { display: flex; flex-wrap: wrap; gap: 4px; }

.tools-v2[b-u1uqg23yoy]  .tool-pill {
    padding: 3px 9px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    cursor: pointer;
}

.tools-v2[b-u1uqg23yoy]  .tool-pill:hover:not(:disabled) { background: var(--bg-secondary); }

.tools-v2[b-u1uqg23yoy]  .tool-pill:focus-visible { outline: none; box-shadow: var(--focus-ring-brand); }

.tools-v2[b-u1uqg23yoy]  .tool-pill[aria-pressed="true"],
.tools-v2[b-u1uqg23yoy]  .tool-pill[aria-checked="true"] {
    border-color: var(--border-brand);
    background: var(--bg-brand-primary);
    color: var(--text-brand-primary);
    font-weight: var(--font-weight-semibold);
}

.tools-v2[b-u1uqg23yoy]  .tool-pill:disabled {
    cursor: not-allowed;
    background: var(--bg-disabled);
    color: var(--text-disabled);
}

.tools-v2[b-u1uqg23yoy]  .tool-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.tools-v2[b-u1uqg23yoy]  .tool-result {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 11px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.tools-v2[b-u1uqg23yoy]  .tool-result__label {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

.tools-v2[b-u1uqg23yoy]  .tool-result__text {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* =========================================================================
   What to do next — the step cards
   -------------------------------------------------------------------------
   One card shape for every step, and ONE of them promoted: the first thing to
   do wears the brand tint the hub's "Start here" card wears, so the two read
   as the same object. Text inside a tinted card is --text-tertiary, not the
   quaternary the white cards use: quaternary on a tint falls under 4.5:1.

   Tints are mixed from ONE tone colour (--ns-tone), the way the shared Tip
   and the dark-mode Badge build theirs, not taken from --bg-*-primary: in
   dark mode those become solids and a label on them disappears, while a mix
   over the surface stays a tint with readable text on it in both modes.

   The names are ns-*, not tv-*: the shared tv- vocabulary above is for chrome
   every view wears, and these belong to one view (and the hub's one card).
   ========================================================================= */

.tools-v2[b-u1uqg23yoy]  .ns-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 11px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}

.tools-v2[b-u1uqg23yoy]  .ns-card--quiet {
    background: var(--bg-secondary);
}

.tools-v2[b-u1uqg23yoy]  .ns-card--start {
    --ns-tone: var(--fg-brand-primary);
    gap: 9px;
    padding: 12px;
    border-color: color-mix(in srgb, var(--ns-tone) 30%, transparent);
    background: color-mix(in srgb, var(--ns-tone) 10%, var(--bg-primary));
}

/* An upset customer: the first card says so before anything on it is read. */
.tools-v2[b-u1uqg23yoy]  .ns-card--care {
    --ns-tone: var(--fg-error-primary);
}

.tools-v2[b-u1uqg23yoy]  .ns-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tools-v2[b-u1uqg23yoy]  .ns-start {
    flex: 1 1 auto;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    /* The tone, pulled toward the text colour so it clears 4.5:1 on its own tint. */
    color: color-mix(in srgb, var(--ns-tone) 82%, var(--text-primary));
}

.tools-v2[b-u1uqg23yoy]  .ns-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-md);
    --ns-tone: var(--fg-quaternary);
    background: color-mix(in srgb, var(--ns-tone) 14%, transparent);
    color: color-mix(in srgb, var(--ns-tone) 85%, var(--text-primary));
}

.tools-v2[b-u1uqg23yoy]  .ns-icon--brand {
    --ns-tone: var(--fg-brand-primary);
}

.tools-v2[b-u1uqg23yoy]  .ns-icon--warn {
    --ns-tone: var(--fg-warning-primary);
}

.tools-v2[b-u1uqg23yoy]  .ns-icon--bad {
    --ns-tone: var(--fg-error-primary);
}

.tools-v2[b-u1uqg23yoy]  .ns-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.35;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.tools-v2[b-u1uqg23yoy]  .ns-meta {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
    overflow-wrap: anywhere;
}

.tools-v2[b-u1uqg23yoy]  .ns-text {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.tools-v2[b-u1uqg23yoy]  .ns-nowrap {
    flex: 0 0 auto;
    white-space: nowrap;
}

.tools-v2[b-u1uqg23yoy]  .ns-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tools-v2[b-u1uqg23yoy]  .ns-inline .progress {
    flex: 1 1 auto;
    min-width: 0;
}

/* The customer's own words. The shared lead quote, on white so it reads inside a tinted card. */
.tools-v2[b-u1uqg23yoy]  .ns-quote {
    padding: 8px 10px;
    border: 1px solid var(--border-secondary);
    background: var(--bg-primary);
}

.tools-v2[b-u1uqg23yoy]  .ns-quote blockquote {
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-secondary);
}

.tools-v2[b-u1uqg23yoy]  .ns-files {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* The name gets the whole line and the size and time go under it: side by side at this width,
   the time wins and the name is cut to its first word. */
.tools-v2[b-u1uqg23yoy]  .ns-file {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tools-v2[b-u1uqg23yoy]  .ns-file__text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.tools-v2[b-u1uqg23yoy]  .ns-file__name {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tools-v2[b-u1uqg23yoy]  .ns-file__meta {
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
}

/* A follow-up that is not due yet: the same card, quieter. */
.tools-v2[b-u1uqg23yoy]  .ns-card--row {
    gap: 4px;
    padding: 8px 11px;
}

.tools-v2[b-u1uqg23yoy]  .ns-title--sm {
    font-size: var(--font-size-text-xs);
}

/* ---- "Nothing needs you" and "all clear" --------------------------------- */

.tools-v2[b-u1uqg23yoy]  .ns-summary {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.tools-v2[b-u1uqg23yoy]  .ns-summary--ok {
    border-color: color-mix(in srgb, var(--fg-success-primary) 30%, transparent);
    background: color-mix(in srgb, var(--fg-success-primary) 10%, var(--bg-primary));
}

.tools-v2[b-u1uqg23yoy]  .ns-summary__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.tools-v2[b-u1uqg23yoy]  .ns-check {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--fg-success-primary) 18%, transparent);
    color: color-mix(in srgb, var(--fg-success-primary) 85%, var(--text-primary));
}

.tools-v2[b-u1uqg23yoy]  .ns-summary .ns-check {
    width: 22px;
    height: 22px;
}

/* ---- Cleared just now ---------------------------------------------------- */

.tools-v2[b-u1uqg23yoy]  .ns-cleared {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.tools-v2[b-u1uqg23yoy]  .ns-cleared__text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

/* ---- What was checked ----------------------------------------------------
   The proof behind an empty list: which places were read and what each held.
   A place that could not be read is said in the warning colour, never left out. */

.tools-v2[b-u1uqg23yoy]  .ns-places {
    display: flex;
    flex-direction: column;
}

.tools-v2[b-u1uqg23yoy]  .ns-place {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px dashed var(--border-secondary);
}

.tools-v2[b-u1uqg23yoy]  .ns-place:last-child {
    border-bottom: none;
}

.tools-v2[b-u1uqg23yoy]  .ns-place__k {
    flex: 0 0 84px;
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-tertiary);
}

.tools-v2[b-u1uqg23yoy]  .ns-place__v {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1.45;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.tools-v2[b-u1uqg23yoy]  .ns-place__v--failed {
    color: color-mix(in srgb, var(--fg-warning-primary) 75%, var(--text-primary));
}

.tools-v2[b-u1uqg23yoy]  .ns-foot {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 9px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.tools-v2[b-u1uqg23yoy]  .btn.ns-foot__toggle {
    justify-content: space-between;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    color: var(--text-secondary);
}

/* =========================================================================
   Suggested by AI (SuggestionsSection, and the hub's "Suggested by AI" card)

   Which case workflow to open, which chat action to start, and the lead
   estimate. Tints are mixes over the surface, as for ns-*, so they stay tints
   in dark mode. The names are sg-*: they belong to that one section.
   ========================================================================= */

.tools-v2[b-u1uqg23yoy]  .sg {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tools-v2[b-u1uqg23yoy]  .sg-fresh {
    min-height: 22px;
}

.tools-v2[b-u1uqg23yoy]  .btn.sg-link {
    align-self: flex-start;
    padding-left: 0;
    padding-right: 0;
}

/* ---- notes: ready / waits / failed --------------------------------------- */

.tools-v2[b-u1uqg23yoy]  .sg-note {
    --sg-tone: var(--fg-quaternary);
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 7px 9px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--sg-tone) 9%, var(--bg-primary));
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-secondary);
}

.tools-v2[b-u1uqg23yoy]  .sg-note svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 1px;
    fill: none;
    stroke: color-mix(in srgb, var(--sg-tone) 85%, var(--text-primary));
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tools-v2[b-u1uqg23yoy]  .sg-note--ok {
    --sg-tone: var(--fg-success-primary);
    color: color-mix(in srgb, var(--fg-success-primary) 60%, var(--text-primary));
}

.tools-v2[b-u1uqg23yoy]  .sg-note--warn {
    --sg-tone: var(--fg-warning-primary);
    color: color-mix(in srgb, var(--fg-warning-primary) 60%, var(--text-primary));
}

/* ---- match: name, %, bar -------------------------------------------------- */

.tools-v2[b-u1uqg23yoy]  .sg-match {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 9px 10px;
    border: 1px solid color-mix(in srgb, var(--fg-brand-primary) 22%, transparent);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--fg-brand-primary) 6%, var(--bg-primary));
}

.tools-v2[b-u1uqg23yoy]  .sg-match__head {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tools-v2[b-u1uqg23yoy]  .sg-match__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.35;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.tools-v2[b-u1uqg23yoy]  .sg-match__pct {
    flex: 0 0 auto;
    font-size: var(--font-size-text-md);
    font-weight: var(--font-weight-bold);
    font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, var(--fg-brand-primary) 85%, var(--text-primary));
}

/* ---- rows: other matches, fields, steps, hidden ------------------------- */

.tools-v2[b-u1uqg23yoy]  .sg-rows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tools-v2[b-u1uqg23yoy]  .sg-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
}

.tools-v2[b-u1uqg23yoy]  .sg-row__k {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.tools-v2[b-u1uqg23yoy]  .sg-row__v {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 55%;
    text-align: right;
    color: var(--text-tertiary);
    overflow-wrap: anywhere;
}

.tools-v2[b-u1uqg23yoy]  .sg-row__pct {
    flex: 0 0 34px;
    text-align: right;
    font-weight: var(--font-weight-semibold);
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
}

.tools-v2[b-u1uqg23yoy]  .sg-row [role="progressbar"] {
    flex: 0 0 56px;
}

.tools-v2[b-u1uqg23yoy]  .sg-dot {
    --sg-tone: var(--fg-quaternary);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    border: 1.5px solid color-mix(in srgb, var(--sg-tone) 55%, transparent);
    font-size: calc(var(--font-size-text-xs) * 0.75);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    color: color-mix(in srgb, var(--sg-tone) 85%, var(--text-primary));
}

.tools-v2[b-u1uqg23yoy]  .sg-dot--done {
    --sg-tone: var(--fg-success-primary);
    border-color: transparent;
    background: color-mix(in srgb, var(--sg-tone) 18%, transparent);
}

.tools-v2[b-u1uqg23yoy]  .sg-dot--run,
.tools-v2[b-u1uqg23yoy]  .sg-dot--next {
    --sg-tone: var(--fg-brand-primary);
}

.tools-v2[b-u1uqg23yoy]  .sg-dot--run,
.tools-v2[b-u1uqg23yoy]  .sg-dot--todo {
    border-style: dashed;
}

.tools-v2[b-u1uqg23yoy]  .sg-dot--risk {
    --sg-tone: var(--fg-warning-primary);
    border-color: transparent;
    background: color-mix(in srgb, var(--sg-tone) 18%, transparent);
}

.tools-v2[b-u1uqg23yoy]  .sg-dot--num {
    --sg-tone: var(--fg-brand-primary);
    border-color: transparent;
    background: color-mix(in srgb, var(--sg-tone) 14%, transparent);
}

/* ---- the inline confirmations --------------------------------------------- */

.tools-v2[b-u1uqg23yoy]  .sg-confirm {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px dashed var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

/* ---- lead estimate --------------------------------------------------------- */

.tools-v2[b-u1uqg23yoy]  .sg-big-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tools-v2[b-u1uqg23yoy]  .sg-big {
    flex: 0 0 auto;
    font-size: var(--font-size-display-xs);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.tools-v2[b-u1uqg23yoy]  .sg-big-row__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.tools-v2[b-u1uqg23yoy]  .sg-temp {
    --sg-tone: var(--fg-quaternary);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    color: color-mix(in srgb, var(--sg-tone) 80%, var(--text-primary));
    overflow-wrap: anywhere;
}

.tools-v2[b-u1uqg23yoy]  .sg-temp--hot,
.tools-v2[b-u1uqg23yoy]  .sg-meter__fill--hot {
    --sg-tone: var(--fg-error-primary);
}

.tools-v2[b-u1uqg23yoy]  .sg-temp--warm,
.tools-v2[b-u1uqg23yoy]  .sg-meter__fill--warm {
    --sg-tone: var(--fg-warning-primary);
}

.tools-v2[b-u1uqg23yoy]  .sg-temp--cold,
.tools-v2[b-u1uqg23yoy]  .sg-meter__fill--cold {
    --sg-tone: var(--fg-brand-primary);
}

.tools-v2[b-u1uqg23yoy]  .sg-meter {
    position: relative;
    height: 8px;
    margin-top: 2px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
}

.tools-v2[b-u1uqg23yoy]  .sg-meter__fill {
    --sg-tone: var(--fg-quaternary);
    height: 100%;
    border-radius: inherit;
    background: var(--sg-tone);
}

/* The workspace's "ready for Leads" bar, so the gap to it is seen, not worked out. */
.tools-v2[b-u1uqg23yoy]  .sg-meter__tick {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    margin-left: -1px;
    border-radius: 1px;
    background: var(--text-primary);
}

.tools-v2[b-u1uqg23yoy]  .sg-scale {
    position: relative;
    height: 14px;
    font-size: calc(var(--font-size-text-xs) * 0.85);
    line-height: 14px;
    color: var(--text-tertiary);
}

.tools-v2[b-u1uqg23yoy]  .sg-scale span {
    position: absolute;
    top: 0;
    white-space: nowrap;
}

.tools-v2[b-u1uqg23yoy]  .sg-scale__bar {
    transform: translateX(-50%);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
}

.tools-v2[b-u1uqg23yoy]  .sg-signal {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 3px 0;
}

.tools-v2[b-u1uqg23yoy]  .sg-signal__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.tools-v2[b-u1uqg23yoy]  .sg-signal__title {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1.45;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

/* ---- the hub's glance card ------------------------------------------------- */

.tools-v2[b-u1uqg23yoy]  .sg-hub {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tools-v2[b-u1uqg23yoy]  .sg-hub__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
}

.tools-v2[b-u1uqg23yoy]  .sg-hub__k {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.tools-v2[b-u1uqg23yoy]  .sg-hub__k strong {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.tools-v2[b-u1uqg23yoy]  .sg-hub__pct {
    flex: 0 0 auto;
    font-weight: var(--font-weight-bold);
    font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, var(--fg-brand-primary) 85%, var(--text-primary));
}
/* /Components/Pages/Chat/ChatRightSideComponents/Tools/TranslateCard.razor.rz.scp.css */
/* ============================================================
   Translate — card-specific rules only (proto:474-479).
   Shared card chrome lives in Tools.razor.css (::deep). Tokens only (C13).
   ============================================================ */

.translate-switch[b-jlrd49beww] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    cursor: pointer;
}

/* The native checkbox stays in the accessibility tree and keeps keyboard
   behaviour; the track/thumb below are the visual. */
.translate-switch__input[b-jlrd49beww] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.translate-switch__track[b-jlrd49beww] {
    position: relative;
    flex: 0 0 auto;
    width: 30px;
    height: 17px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    transition: background 140ms ease, border-color 140ms ease;
}

.translate-switch__thumb[b-jlrd49beww] {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 11px;
    height: 11px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
    transition: transform 140ms ease;
}

.translate-switch__input:checked + .translate-switch__track[b-jlrd49beww] {
    border-color: var(--border-brand);
    background: var(--bg-brand-solid);
}

.translate-switch__input:checked + .translate-switch__track .translate-switch__thumb[b-jlrd49beww] {
    transform: translateX(13px);
}

.translate-switch__input:focus-visible + .translate-switch__track[b-jlrd49beww] {
    outline: none;
    box-shadow: var(--focus-ring-brand);
}

.translate-switch__input:disabled + .translate-switch__track[b-jlrd49beww] {
    background: var(--bg-disabled);
}

.translate-switch__label[b-jlrd49beww] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.translate-switch__input:disabled ~ .translate-switch__label[b-jlrd49beww] {
    color: var(--text-disabled);
}

.translate-hint[b-jlrd49beww] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-quaternary);
}

@media (prefers-reduced-motion: reduce) {
    .translate-switch__track[b-jlrd49beww],
    .translate-switch__thumb[b-jlrd49beww] {
        transition: none;
    }
}
/* /Components/Pages/Dashboard/Components/ChannelHealthList.razor.rz.scp.css */
.channels-card[b-1fc62vyzk4] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-5);
}

.channels-head[b-1fc62vyzk4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
}

.channels-head-text[b-1fc62vyzk4] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
}

.channels-title[b-1fc62vyzk4] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* Count of connected channels — a fact a tbPage row proves, unlike the status badge
   this replaces (W6 ruling 6). */
.channels-count[b-1fc62vyzk4] {
    flex-shrink: 0;
    min-width: 20px;
    padding: 0 var(--spacing-1);
    border-radius: var(--radius-full, 999px);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.channels-note[b-1fc62vyzk4] {
    margin: calc(var(--spacing-2) * -1) 0 0;
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
}

.channels-manage[b-1fc62vyzk4] {
    border: none;
    background: none;
    cursor: pointer;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-brand-secondary);
    padding: 0;
}

.channels-manage:hover[b-1fc62vyzk4] {
    text-decoration: underline;
}

.channels-list[b-1fc62vyzk4] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.channels-row[b-1fc62vyzk4] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-2) 0;
}

/* Channel brand glyph chip (DSH-R1: "letter initial -> channel brand glyph").
   The predecessor rule painted `background: var(--bg-brand-subtle)`, a token declared in
   NONE of the six themes and in no tokens/*.css — so the chip has had no background in any
   theme since it shipped (C13's per-theme clause, BF-109 family). --bg-brand-primary and
   --fg-brand-primary ARE declared in all six, and are the pair the prototype uses. */
.channels-glyph[b-1fc62vyzk4] {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
}

.channels-glyph svg[b-1fc62vyzk4] {
    width: 17px;
    height: 17px;
    display: block;
}

.channels-glyph__initial[b-1fc62vyzk4] {
    line-height: 1;
}

.channels-row-text[b-1fc62vyzk4] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.channels-name[b-1fc62vyzk4] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.channels-sub[b-1fc62vyzk4] {
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
}
/* /Components/Pages/Dashboard/Components/KpiTile.razor.rz.scp.css */
/* ==========================================================================
 * KPI TILE
 *
 * Reconstructed from the redesign artboard
 *   docs/MettaFlow screen redesign-handoff/mettaflow-screen-redesign/project/Dashboard.dc.html
 *   (proto:189-195 standard/hero, proto:213-220 progress, proto:271-289 donut)
 * Numbers are lifted from that file. The tile got tighter — 14px/16px padding, a 22px value,
 * a 12px label — because the artboard fits five of them across, where the old geometry fitted
 * three and reflowed the rest onto a second row.
 * ========================================================================== */

.kpi-tile[b-f7wcd048qb] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    padding: 14px 16px;
    min-width: 0;
    transition: box-shadow .15s ease;
}

.kpi-tile:hover[b-f7wcd048qb] {
    box-shadow: 0 4px 12px rgba(10, 13, 18, .06);
}

/* proto:181-182 — the hero is a brand-tinted card, not a recoloured number. */
.kpi-tile--hero[b-f7wcd048qb] {
    background: var(--bg-brand-primary);
    border-color: var(--border-brand);
}

.kpi-tile__label[b-f7wcd048qb] {
    margin: 0;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-quaternary);
}

.kpi-tile__value-row[b-f7wcd048qb] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.kpi-tile__value[b-f7wcd048qb] {
    font-family: var(--font-family-display);
    font-size: var(--font-size-display-xs);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.kpi-tile--hero .kpi-tile__value[b-f7wcd048qb] {
    font-size: var(--font-size-display-sm);
}

/* ── Foot: change pill + definition (proto:191-194) ──
   Pinned to the card bottom, so when the grid row stretches the tiles the slack sits between
   the value and the definition and the definitions line up across the row. */
.kpi-tile__foot[b-f7wcd048qb] {
    margin: auto 0 0;
    padding-top: 6px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.kpi-tile__delta[b-f7wcd048qb] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.kpi-tile__delta-glyph[b-f7wcd048qb] {
    font-size: 0.8em;
}

.kpi-tile__delta--up[b-f7wcd048qb] {
    color: var(--success-700);
    background: var(--success-50);
}

.kpi-tile__delta--down[b-f7wcd048qb] {
    color: var(--error-700);
    background: var(--error-50);
}

.kpi-tile__delta--flat[b-f7wcd048qb] {
    color: var(--text-tertiary);
    background: var(--bg-secondary);
}

/* The metric's definition. DSH-C1 makes this the only place any metric on the dashboard is
   defined, so it is real copy at a readable size — never a caption to be squinted at. */
.kpi-tile__subtitle[b-f7wcd048qb] {
    margin: 0;
    flex: 1 1 100%;
    min-width: 0;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-tertiary);
}

.kpi-tile__progress[b-f7wcd048qb] {
    margin-top: 2px;
}

/* ── Channel-mix variant: CSS conic ring + legend, no chart instance (proto:271-289) ──
   The tile sits in a row whose other cards are ~300px tall, so the ring + legend take the
   free height and centre in it rather than hugging the label with a void underneath. The
   legend is capped so a percentage stays next to its channel name on a wide tile. */
.kpi-tile__mix[b-f7wcd048qb] {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 0;
}

.kpi-tile__ring[b-f7wcd048qb] {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.kpi-tile__ring-hole[b-f7wcd048qb] {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-primary);
}

.kpi-tile__mix-legend[b-f7wcd048qb] {
    flex: 1;
    min-width: 0;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kpi-tile__legend-row[b-f7wcd048qb] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.kpi-tile__legend-dot[b-f7wcd048qb] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kpi-tile__legend-text[b-f7wcd048qb] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kpi-tile__legend-pct[b-f7wcd048qb] {
    margin-left: auto;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}
/* /Components/Pages/Dashboard/Components/SetupGuideReopenCard.razor.rz.scp.css */
/* Wraps: in the dashboard's channels row this card gets ~280px at a 1440px viewport, and without
   wrapping the "Re-open guide" button kept its width while the text column was squeezed to one
   word per line. The body asks for 180px; below that the button drops under the text.
   align-content centres the wrapped lines in the row's stretched height. */
.reopen-card[b-s2l6hx7pnl] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    gap: var(--spacing-4);
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-5);
}

.reopen-card__icon[b-s2l6hx7pnl] {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    /* --bg-brand-subtle is declared in NONE of the six themes and in no tokens/*.css, so this
       chip has had no background since it shipped (C13's per-theme clause, BF-109 family). The
       --bg-brand-primary / --fg-brand-primary pair IS declared in all six, and is the pair the
       handoff uses for this exact chip. */
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
}

.reopen-card__icon svg[b-s2l6hx7pnl] {
    width: 22px;
    height: 22px;
}

.reopen-card__body[b-s2l6hx7pnl] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 180px;
    min-width: 0;
}

.reopen-card__title[b-s2l6hx7pnl] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.reopen-card__desc[b-s2l6hx7pnl] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
    line-height: 1.4;
}

.reopen-card__error[b-s2l6hx7pnl] {
    margin: 2px 0 0;
    font-size: var(--font-size-text-xs);
    /* --error-600 is declared in only 2 of the 6 themes (marvelo-book, warm), so in the other
       four this line rendered in ordinary body colour — an error message that does not look
       like one, on the one surface whose entire job is to say the write failed (C13's
       per-theme clause). --text-error-primary is declared in all six. */
    color: var(--text-error-primary, var(--error-600));
}
/* /Components/Pages/Dashboard/Components/SetupStepCard.razor.rz.scp.css */
.step-card[b-8t9zk4g1ay] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-5);
    cursor: pointer;
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.step-card:hover[b-8t9zk4g1ay] {
    box-shadow: 0 4px 12px rgba(10, 13, 18, .06);
    transform: translateY(-1px);
}

/* The card is now keyboard-reachable (role="button" + tabindex), so it needs a focus ring —
   an invisible focus stop is not accessibility, it is a trap. */
.step-card:focus-visible[b-8t9zk4g1ay] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
}

.step-card--static[b-8t9zk4g1ay] {
    cursor: default;
}

.step-card--static:hover[b-8t9zk4g1ay] {
    box-shadow: none;
    transform: none;
}

.step-card--current[b-8t9zk4g1ay] {
    border-color: var(--bg-brand-solid);
    box-shadow: 0 0 0 1px var(--bg-brand-solid);
}

.step-card--done[b-8t9zk4g1ay] {
    background: var(--bg-secondary);
}

.step-card__head[b-8t9zk4g1ay] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-card__num[b-8t9zk4g1ay] {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: .04em;
    color: var(--text-quaternary);
}

.step-card__body[b-8t9zk4g1ay] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    flex: 1;
}

.step-card__title[b-8t9zk4g1ay] {
    margin: 0;
    font-size: var(--font-size-text-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.step-card__desc[b-8t9zk4g1ay] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
    line-height: 1.4;
}

.step-card__cta[b-8t9zk4g1ay] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-brand-secondary);
}

.step-card__cta-arrow[b-8t9zk4g1ay] {
    transition: transform .15s ease;
}

.step-card:hover .step-card__cta-arrow[b-8t9zk4g1ay] {
    transform: translateX(3px);
}

/* The CTA row now carries a second control ("Learn how"), so it is a row rather than a lone
   span. The help link is quieter than the CTA on purpose: finishing the step is the card's
   job, and reading about it is the fallback. */
.step-card__foot[b-8t9zk4g1ay] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.step-card__help[b-8t9zk4g1ay] {
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    cursor: pointer;
}

.step-card__help:hover[b-8t9zk4g1ay] {
    color: var(--text-brand-primary, var(--border-brand));
}

.step-card__help:focus-visible[b-8t9zk4g1ay] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
    border-radius: var(--radius-xs, 4px);
}
/* /Components/Pages/Dashboard/Dashboard.razor.rz.scp.css */
/* ==========================================================================
 * DASHBOARD — shell
 *
 * Reconstructed from the redesign artboard
 *   docs/MettaFlow screen redesign-handoff/mettaflow-screen-redesign/project/Dashboard.dc.html
 * Numbers here are lifted from that file, not rounded to a spacing scale — where the artboard
 * says 12.5px or 17px, this says 12.5px or 17px. Colours are all tokens; the artboard uses the
 * same ones (its base DS is a subset of Styles/components).
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * Root
 *
 * Keeps .layout-list (so `.app-shell__main > .layout-list` still grants the fill rule in
 * layouts.css) but drops its page padding and 3xl gap: the topbar draws its own divider edge to
 * edge and <main> owns the padding, exactly as the artboard does.
 *
 * T94: also narrowed to 90% and centred, the same rule /activity, /chatusers, /caseboard and
 * /setting use for their own content column (Setting.razor.css, T58). The topbar's divider and
 * <main>'s grey ground (below) no longer bleed to the true shell edges as a result - the same
 * trade-off T93 made for Case Board's tinted canvas, for the same reason: a column that is
 * centred but still lets one of its own pieces bleed past its edges is not actually centred.
 * -------------------------------------------------------------------------- */
/* Fix-Loop T142: the 90% column is now drawn with inline padding on the topbar and <main> rather
   than by narrowing this root, so the topbar's lower border (and white ground) spans the full
   width while every piece of content stays in the same centred 90% column. Percent padding
   resolves against this root's full width: 5% a side leaves exactly the old 90%. */
.dashboard[b-e6h3qbbn9l] {
    padding: 0;
    gap: 0;
    --dashboard-gutter: 5%;
}

/* --------------------------------------------------------------------------
 * Header bar (proto:57-62)
 * -------------------------------------------------------------------------- */
.dashboard__topbar[b-e6h3qbbn9l] {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    flex-shrink: 0;
    padding: 0 calc(var(--dashboard-gutter) + 20px);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-secondary);
}

.dashboard__title[b-e6h3qbbn9l] {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-lg);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.dashboard__spacer[b-e6h3qbbn9l] {
    flex: 1;
}

/* proto:61 — a quiet salutation, not a heading. It is the least important thing on the bar and
   is sized to say so. */
.dashboard__greeting[b-e6h3qbbn9l] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: 400;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
 * Scrolling body (proto:64)
 *
 * The page itself never scrolls — .layout-list is overflow:hidden and this is the one element
 * that scrolls internally, so the topbar stays put while the sections move under it.
 * -------------------------------------------------------------------------- */
/* Fix-Loop T140: no tinted ground of its own. Inside the 90% centred column it read as a boxed
   wrapper around the sections; the cards now sit straight on the page background. */
.dashboard__main[b-e6h3qbbn9l] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px calc(var(--dashboard-gutter) + 24px) 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --------------------------------------------------------------------------
 * Shell loading (proto:71-85)
 *
 * The artboard's wait is a picture of what is coming — one heading line, a five-tile row, a
 * three-panel row — so the layout does not jump when the numbers land.
 * -------------------------------------------------------------------------- */
.dashboard__skeleton[b-e6h3qbbn9l] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard__skeleton-tiles[b-e6h3qbbn9l] {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.dashboard__skeleton-panels[b-e6h3qbbn9l] {
    display: grid;
    grid-template-columns: 2fr 2fr 1.4fr;
    gap: 12px;
}

@media (max-width: 1180px) {
    .dashboard__skeleton-tiles[b-e6h3qbbn9l] {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard__skeleton-panels[b-e6h3qbbn9l] {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
 * Shell failure (proto:88-95)
 *
 * Pushed down the page the way the artboard does, so a failed dashboard does not read as an
 * empty one glued to the top of the viewport.
 * -------------------------------------------------------------------------- */
.dashboard__shell-error[b-e6h3qbbn9l] {
    margin-top: 96px;
}
/* /Components/Pages/Dashboard/DashboardOperationalView.razor.rz.scp.css */
/* ==========================================================================
 * DASHBOARD — operational view
 *
 * Reconstructed from the redesign artboard
 *   docs/MettaFlow screen redesign-handoff/mettaflow-screen-redesign/project/Dashboard.dc.html
 * Numbers here are lifted from that file, not rounded to a spacing scale — where the artboard
 * says 13.5px or 14.5px, this says 13.5px or 14.5px. Colours are all tokens.
 *
 * The grids are FIXED column counts, not auto-fit: the artboard's rhythm is five operations
 * tiles, four AI tiles and two three-panel rows, and an auto-fit grid reflows that into
 * whatever the viewport allows — which is how the same five metrics used to land as 3 + 3.
 * ========================================================================== */

.op-view[b-wo0wass4bh] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --------------------------------------------------------------------------
 * Section heading row (proto:169-179)
 *
 * Plain 14.5px semibold — the uppercase micro-label with a brand bar is gone. It competed with
 * the tile labels underneath it for the same "this is a heading" signal.
 * -------------------------------------------------------------------------- */
.op-section[b-wo0wass4bh] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.op-section-head[b-wo0wass4bh] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.op-section-title[b-wo0wass4bh] {
    margin: 0;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-md);
    font-weight: 600;
    color: var(--text-primary);
}

.op-section-spacer[b-wo0wass4bh] {
    flex: 1;
}

.op-loading[b-wo0wass4bh] {
    display: flex;
    justify-content: center;
    padding: var(--spacing-16) 0;
}

/* ── Range-change pending affordance (DSH-R1, proto:172) ──
   The live screen used to swap the numbers silently, so a click that failed and a click that
   worked looked identical. The note sits between the section title and the control that was
   clicked; the grids dim while the new range is in flight; the tab strip itself is disabled, so
   a second click cannot queue behind the first. */
.op-updating[b-wo0wass4bh] {
    display: inline-flex;
    align-items: center;
}

.op-grid--updating[b-wo0wass4bh] {
    opacity: .5;
    transition: opacity 150ms ease;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
 * Tile grids (proto:187-195, 211-221)
 * -------------------------------------------------------------------------- */
.op-grid[b-wo0wass4bh] {
    display: grid;
    gap: 12px;
}

.op-grid--5[b-wo0wass4bh] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.op-grid--4[b-wo0wass4bh] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
 * Panel rows (proto:229-267, 269-341)
 * -------------------------------------------------------------------------- */
.op-row[b-wo0wass4bh] {
    display: grid;
    gap: 12px;
    align-items: stretch;
}

.op-row--trends[b-wo0wass4bh] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.op-row--channels[b-wo0wass4bh] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
}

/* The channel-mix tile is wrapped so the dim class has somewhere to live; the wrapper has to
   pass its own stretched height AND width through to the tile inside it. Without the flex-grow
   the tile shrank to its content (~280px) and left an empty hole in the middle of the row.
   ::deep because .kpi-tile is KpiTile's root, which this file's scope never reaches. */
.op-mix-cell[b-wo0wass4bh] {
    display: flex;
    min-width: 0;
}

.op-mix-cell[b-wo0wass4bh]  .kpi-tile {
    flex: 1 1 auto;
    min-width: 0;
}

/* --------------------------------------------------------------------------
 * Trend + breakdown cards (proto:231-245)
 *
 * The artboard's trends are bare sparklines with the period total printed inline beside the
 * title, so the card is short and three of them fit on one row. The long explanatory sub-line
 * the 240px version carried is dropped with the height it needed.
 * -------------------------------------------------------------------------- */
.op-chart-card[b-wo0wass4bh] {
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.op-chart-head[b-wo0wass4bh] {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.op-chart-title[b-wo0wass4bh] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.op-chart-total[b-wo0wass4bh] {
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-xl);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.op-chart-period[b-wo0wass4bh] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: 400;
    color: var(--text-quaternary);
}

/* ── Case-status donut + drill-in legend (DSH-R1, proto:246-267) ──
   The drill target is the LEGEND, not the ring: a real button, reachable from the keyboard and
   assertable in a render test, where an ECharts canvas click is neither. The dot colour comes
   from ChartTheme.GetColor(i) — the exact colour the donut paints slice i — so the legend and
   the ring can never disagree about which slice is which. */
.op-case-card[b-wo0wass4bh] {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.op-case-ring[b-wo0wass4bh] {
    width: 132px;
    flex-shrink: 0;
}

.op-case-body[b-wo0wass4bh] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Which cases the ring counts — the ones opened in the range, not the backlog tile above. */
.op-case-note[b-wo0wass4bh] {
    margin-bottom: 4px;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-tertiary);
}

.op-case-none[b-wo0wass4bh] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.op-legend[b-wo0wass4bh] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.op-legend-row[b-wo0wass4bh] {
    margin: 0;
}

.op-legend-btn[b-wo0wass4bh] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 4px;
    border: none;
    border-radius: var(--radius-md);
    background: none;
    text-align: left;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
    cursor: pointer;
}

.op-legend-btn--static[b-wo0wass4bh] {
    cursor: default;
}

.op-legend-btn:not(.op-legend-btn--static):hover[b-wo0wass4bh] {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.op-legend-btn:not(.op-legend-btn--static):focus-visible[b-wo0wass4bh] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

.op-legend-dot[b-wo0wass4bh] {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
}

.op-legend-label[b-wo0wass4bh] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.op-legend-value[b-wo0wass4bh] {
    flex-shrink: 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
 * AI-performance empty state (DSH-R1, proto:203-208)
 *
 * Renders only when NEITHER AI tile carries a number; a measured zero keeps its tiles. It takes
 * the two columns those tiles would have occupied, so "Total messages" and "Resolution rate" —
 * which are measured whether or not the AI did anything — stay where they were on the row.
 * -------------------------------------------------------------------------- */
.op-ai-empty[b-wo0wass4bh] {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px dashed var(--border-primary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}

/* The notice now hosts <EmptyState> (BF-267 wrapper pattern — EmptyState does not splat
   data-ai-empty, so it stays on this div). EmptyState is built for a vertical, centred
   layout; this notice is the private markup's horizontal icon-plus-text row, so the shared
   component is turned sideways here rather than losing that shape. */
.op-ai-empty[b-wo0wass4bh]  .empty-state {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 0;
}

.op-ai-empty[b-wo0wass4bh]  .empty-state__icon-wrapper {
    flex-shrink: 0;
    display: inline-flex;
    width: auto;
    height: auto;
    color: var(--fg-quaternary);
}

.op-ai-empty[b-wo0wass4bh]  .empty-state__text {
    gap: 0;
    text-align: left;
}

.op-ai-empty[b-wo0wass4bh]  .empty-state__title {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.op-ai-empty[b-wo0wass4bh]  .empty-state__description {
    margin-top: 2px;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
 * Narrow viewports
 *
 * The artboard is drawn at a 1280px minimum, so everything below that is this file's own
 * problem. Columns halve, then stack — the ORDER never changes, so a metric never moves
 * relative to its section heading.
 * -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .op-grid--5[b-wo0wass4bh],
    .op-grid--4[b-wo0wass4bh] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .op-row--trends[b-wo0wass4bh],
    .op-row--channels[b-wo0wass4bh] {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .op-grid--5[b-wo0wass4bh],
    .op-grid--4[b-wo0wass4bh] {
        grid-template-columns: minmax(0, 1fr);
    }

    .op-ai-empty[b-wo0wass4bh] {
        grid-column: span 1;
    }

    .op-case-card[b-wo0wass4bh] {
        flex-direction: column;
        align-items: stretch;
    }

    .op-case-ring[b-wo0wass4bh] {
        width: 100%;
    }
}
/* /Components/Pages/Dashboard/DashboardPartialView.razor.rz.scp.css */
/* ==========================================================================
 * DASHBOARD — partial (setup-in-progress) view
 *
 * Reconstructed from the redesign artboard
 *   docs/MettaFlow screen redesign-handoff/mettaflow-screen-redesign/project/Dashboard.dc.html
 *   (proto:99-163)
 * Numbers are lifted from that file, not rounded to a spacing scale. Colours are all tokens.
 * ========================================================================== */

.partial-view[b-x6szf3xqq6] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --------------------------------------------------------------------------
 * Setup guide card (proto:101-134)
 * -------------------------------------------------------------------------- */
.setup-guide[b-x6szf3xqq6] {
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.setup-guide-head[b-x6szf3xqq6] {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.setup-guide-icon[b-x6szf3xqq6] {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
    display: grid;
    place-items: center;
}

.setup-guide-headtext[b-x6szf3xqq6] {
    flex: 1;
    min-width: 0;
}

.setup-guide-title[b-x6szf3xqq6] {
    margin: 0;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-md);
    font-weight: 600;
    color: var(--text-primary);
}

/* DSH-C1's carry-forward sentence — the only place the product says why the KPI view is being
   withheld. It reads as the card's own sub-line rather than as a separate page intro. */
.partial-sub[b-x6szf3xqq6] {
    margin: 2px 0 0;
    max-width: 640px;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-tertiary);
}

/* proto:110-113 — a fixed column so the bar length means the same thing on every workspace,
   whatever the title above it wraps to. */
.setup-guide-meta[b-x6szf3xqq6] {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.setup-guide-count[b-x6szf3xqq6] {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.setup-guide-count-num[b-x6szf3xqq6] {
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-brand-primary);
}

.setup-guide-count-total[b-x6szf3xqq6] {
    color: var(--text-quaternary);
    font-weight: 500;
}

.setup-guide-count-label[b-x6szf3xqq6] {
    font-size: var(--font-size-text-sm);
    color: var(--text-quaternary);
}

.setup-guide-progress[b-x6szf3xqq6] {
    width: 100%;
}

/* proto:116 — two rows of three for the six steps DSH-N1 defines. Fixed, not auto-fit: an
   auto-fit grid reflowed them 4 + 2 and the "current" step stopped being where the eye goes. */
.setup-guide-grid[b-x6szf3xqq6] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

/* proto:129-133 */
.setup-guide-foot[b-x6szf3xqq6] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-tertiary);
    padding-top: 12px;
}

.setup-guide-note[b-x6szf3xqq6] {
    font-size: var(--font-size-text-sm);
    color: var(--text-quaternary);
}

.setup-guide-spacer[b-x6szf3xqq6] {
    flex: 1;
}

/* --------------------------------------------------------------------------
 * Today's snapshot (proto:136-161)
 * -------------------------------------------------------------------------- */
.partial-section[b-x6szf3xqq6] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.partial-section-head[b-x6szf3xqq6] {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.partial-section-title[b-x6szf3xqq6] {
    margin: 0;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-md);
    font-weight: 600;
    color: var(--text-primary);
}

/* "point-in-time — refreshes on load" (DSH-R1, proto:139). One span, and it is the only place
   the screen tells anyone these numbers do not tick while they watch. */
.partial-snapshot-hint[b-x6szf3xqq6] {
    font-size: var(--font-size-text-sm);
    color: var(--text-quaternary);
}

.partial-grid[b-x6szf3xqq6] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

/* --------------------------------------------------------------------------
 * Snapshot trend (proto:150-160)
 *
 * Local copy of the operational view's chart-card rules — scoped CSS does not cross components,
 * and this screen renders its own card rather than borrowing that one.
 * -------------------------------------------------------------------------- */
.partial-chart-card[b-x6szf3xqq6] {
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.partial-chart-head[b-x6szf3xqq6] {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.partial-chart-title[b-x6szf3xqq6] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.partial-chart-total[b-x6szf3xqq6] {
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-xl);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.partial-chart-period[b-x6szf3xqq6] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    color: var(--text-quaternary);
}

/* --------------------------------------------------------------------------
 * Narrow viewports — columns halve, then stack. The step ORDER never changes.
 * -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .setup-guide-grid[b-x6szf3xqq6],
    .partial-grid[b-x6szf3xqq6] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .setup-guide-meta[b-x6szf3xqq6] {
        width: 100%;
        align-items: flex-start;
    }

    .setup-guide-grid[b-x6szf3xqq6],
    .partial-grid[b-x6szf3xqq6] {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* /Components/Pages/Growth/GrowthBlast.razor.rz.scp.css */
/* One blast's result page (Blast.dc.html look): the cards stack their pieces; the results sentence sits in a well. */

.gb-card[b-eq7vkjsxg6] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.gb-bars[b-eq7vkjsxg6] {
    display: flex;
    flex-direction: column;
}

.gb-chips[b-eq7vkjsxg6] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.gb-h3[b-eq7vkjsxg6] {
    margin: 0;
    font-size: var(--font-size-text-md);
    font-weight: 700;
    color: var(--text-primary);
}

.gb-result[b-eq7vkjsxg6] {
    margin: 0;
}

/* The message as it was written, line breaks kept */
.gb-message-text[b-eq7vkjsxg6] {
    white-space: pre-wrap;
    color: var(--text-primary);
}
/* /Components/Pages/Growth/GrowthBlastNew.razor.rz.scp.css */
/* The AI blast composer (Blast.dc.html), in theme tokens: three numbered sections on the left, the rail on the right.
   Prefix gb- (Growth blast). Cards are layout-detail-card; chips, wells, the hero and soon notes are the shared pieces. */

/* -- The name under the header (the H1 is the blast's name) ---------------- */

.gb-name[b-fga031di19] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--spacing-3);
}

.gb-name__field[b-fga031di19] {
    flex: 1 1 280px;
    min-width: 0;
}

/* -- The split (.split: main 3 : rail 2, wrapping under 950px or so) -------- */

.gb-split[b-fga031di19] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.gb-main[b-fga031di19] {
    display: flex;
    flex: 3 1 620px;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.gb-rail[b-fga031di19] {
    display: flex;
    flex: 2 1 330px;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* -- The board's layout, sized against the Growth panel ------------------------------------------------------
   GrowthShell makes the panel the size container "growth-panel", so these rules read the panel's width, not the
   screen's: with the app's sidebar open a 1440px screen leaves the panel about 860px (a content box of about 800px).
   Narrower than the rule, the page stacks as it always did; the phone rules (@media) are unchanged. */

/* the three sections and the rail side by side (bases 460 + 300, 3 : 2 as they grow) */
@container growth-panel (min-width: 760px) {
    .gb-split[b-fga031di19] {
        flex-wrap: nowrap;
    }

    .gb-main[b-fga031di19] {
        flex: 3 1 460px;
    }

    .gb-rail[b-fga031di19] {
        flex: 2 1 300px;
    }
}

/* -- A numbered section (.card.pad + .row .n .h2) ---------------------------- */

.gb-section[b-fga031di19] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.gb-card[b-fga031di19] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.gb-section__head[b-fga031di19] {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* the Soon marker beside a heading whose words come with a later phase */
.gb-head-soon[b-fga031di19] {
    display: inline-flex;
    align-items: center;
    cursor: default;
}

.gb-n[b-fga031di19] {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--bg-brand-section);
    color: var(--text-primary-on-brand);
    font-size: var(--font-size-text-sm);
    font-weight: 700;
}

.gb-h2[b-fga031di19] {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-lg);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.gb-h3[b-fga031di19] {
    margin: 0;
    font-size: var(--font-size-text-md);
    font-weight: 700;
    color: var(--text-primary);
}

.gb-sub[b-fga031di19] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.gb-inline[b-fga031di19] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-2);
}

/* -- The kind switch (offers / the consent question) ---------------------------- */

.gb-kind[b-fga031di19] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-3);
}

.gb-kind p[b-fga031di19] {
    margin: 0;
}

/* -- 1. Who: your segments and the Yes/No answers option ------------------------ */

.gb-custom[b-fga031di19],
.gb-yesno[b-fga031di19] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.gb-yesno p[b-fga031di19] {
    margin: 0;
}

.gb-custom__list[b-fga031di19] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
}

.gb-custom__row[b-fga031di19] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-2);
    padding: 4px 8px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
}

.gb-custom__row[data-selected="true"][b-fga031di19] {
    border-color: var(--brand-500);
}

/* -- 1. Who: the picked chips, the uplift block, the funnel ------------------- */

.gb-picked[b-fga031di19] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* The board's outlined chip: white ground, a stronger line, the name in ink and the count after it */
.gb-pick[b-fga031di19] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.gb-pick b[b-fga031di19] {
    color: var(--text-primary);
    font-weight: 700;
}

.gb-min[b-fga031di19] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.gb-min p[b-fga031di19] {
    margin: 0;
}

.gb-uplift[b-fga031di19] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.gb-uplift__chart[b-fga031di19] {
    flex: 1 1 340px;
    min-width: 0;
}

.gb-uplift__side[b-fga031di19] {
    display: flex;
    flex: 1 1 220px;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.gb-funnel[b-fga031di19] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gb-funnel__head[b-fga031di19] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 4px;
}

.gb-stale[b-fga031di19] {
    color: var(--text-warning-primary);
}

/* Numbers from a count made for an earlier version of the blast: still readable, clearly not current */
.gb-is-stale[b-fga031di19] {
    opacity: 0.55;
}

.gb-funnel__rows[b-fga031di19],
.gb-channel-list[b-fga031di19] {
    display: flex;
    flex-direction: column;
}

.gb-funnel__rows[b-fga031di19] {
    gap: 2px;
}

/* .fn: label | bar | number */
.gb-fn[b-fga031di19] {
    display: grid;
    grid-template-columns: 1fr 2fr minmax(48px, auto);
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.gb-fn--total .gb-fn__label[b-fga031di19] {
    color: var(--text-primary);
    font-weight: 700;
}

.gb-fn__track[b-fga031di19] {
    display: block;
    min-width: 0;
}

/* .hb: the bar starts square at the axis and rounds at its end */
.gb-fn__bar[b-fga031di19] {
    display: block;
    height: 10px;
    border-radius: 0 4px 4px 0;
    background: var(--fg-quinary);
}

.gb-fn__bar--total[b-fga031di19] {
    background: var(--utility-blue-700, var(--blue-700));
}

.gb-fn__value[b-fga031di19] {
    color: var(--text-primary);
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* A row a later phase fills: its sentence takes the bar and the number's place */
.gb-fn__soon[b-fga031di19] {
    grid-column: 2 / 4;
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
}

/* -- 2. What: the offer, the message, the examples, the variants ------------- */

.gb-offer[b-fga031di19],
.gb-message[b-fga031di19],
.gb-examples[b-fga031di19],
.gb-variants[b-fga031di19] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.gb-offer p[b-fga031di19],
.gb-message p[b-fga031di19] {
    margin: 0;
}

/* The question as a customer sees it: the words, then the two buttons (drawn here, not pressable) */
.gb-ask[b-fga031di19] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.gb-ask__bubble[b-fga031di19] {
    padding: var(--spacing-3);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--font-size-text-sm);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.gb-ask__buttons[b-fga031di19] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
}

.gb-qbtn[b-fga031di19] {
    padding: 6px 14px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    color: var(--text-brand-secondary);
    font-size: var(--font-size-text-sm);
    font-weight: 600;
}

.gb-message__head[b-fga031di19] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
}

/* -- 3. When & where ---------------------------------------------------------- */

.gb-when[b-fga031di19] {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.gb-when__hours[b-fga031di19] {
    display: flex;
    flex: 1 1 300px;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.gb-when__channels[b-fga031di19] {
    display: flex;
    flex: 1 1 260px;
    flex-direction: column;
    min-width: 0;
}

.gb-channel[b-fga031di19] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-sm);
    color: var(--text-primary);
}

.gb-channel:first-child[b-fga031di19] {
    border-top: 0;
}

.gb-channel__name[b-fga031di19] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* .ch: the channel's small square mark */
.gb-ch[b-fga031di19] {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-xs);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.gb-channel__value[b-fga031di19] {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* -- The rail: the checks (.ok-li), Send, stop ---------------------------------- */

.gb-checks[b-fga031di19] {
    display: flex;
    flex-direction: column;
    padding-top: 6px;
}

.gb-check[b-fga031di19] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-sm);
    color: var(--text-primary);
}

.gb-check--soon[b-fga031di19],
.gb-check--pending[b-fga031di19] {
    color: var(--text-tertiary);
}

.gb-actions[b-fga031di19] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
}

.gb-stop[b-fga031di19] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: var(--font-size-text-sm);
    color: var(--text-primary);
}

.gb-stop__soon[b-fga031di19] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
}
/* /Components/Pages/Growth/GrowthCustomer.razor.rz.scp.css */
/* Customer 360 (/growth/customers/{id}): the board Customer360.dc.html in theme tokens - never the board's hex.
   Shared Growth pieces (gr-tile, gr-chip, gr-well, section heads) come from Styles/components/growth.css. */

/* -- Header card: avatar, name + "customer since", chips, actions --------------------------------- */

.c360-head[b-t662yhxqwa] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.c360-head[b-t662yhxqwa]  .c360-avatar {
    flex: none;
    background: var(--bg-tertiary);
}

.c360-head[b-t662yhxqwa]  .c360-avatar .avatar-initials {
    color: var(--text-primary);
    font-size: var(--font-size-text-xl);
    font-weight: 800;
}

.c360-head__main[b-t662yhxqwa] {
    display: flex;
    flex: 1 1 420px;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* The board puts the name and "customer since" on one line */
.c360-head[b-t662yhxqwa]  .c360-head__title .page-header-left {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    min-width: 0;
}

.c360-head[b-t662yhxqwa]  .c360-head__title .page-header-supporting {
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
}

.c360-head__actions[b-t662yhxqwa] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.c360-chips[b-t662yhxqwa] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* The segment chip is the board's white chip with a hairline */
.c360-chip--segment[b-t662yhxqwa] {
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    color: var(--text-secondary);
}

/* A chip whose reading comes later: outlined, muted, with its Soon badge */
.c360-chip--soon[b-t662yhxqwa] {
    background: var(--bg-primary);
    border: 1px dashed var(--border-primary);
    color: var(--text-tertiary);
    cursor: default;
}

/* The channel letters inside the accounts chip (the board's .ch) */
.c360-ch[b-t662yhxqwa] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--bg-brand-section);
    color: var(--text-primary-on-brand);
    font-size: var(--font-size-text-xs);
    font-weight: 700;
    line-height: 1;
}

.c360-ch + .c360-ch[b-t662yhxqwa] {
    margin-left: -2px;
}

/* -- Two columns (the board's .split): main 2 : side 1 --------------------------------------------- */

.c360-split[b-t662yhxqwa] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.c360-main[b-t662yhxqwa] {
    display: flex;
    flex: 2 1 600px;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.c360-side[b-t662yhxqwa] {
    display: flex;
    flex: 1 1 340px;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.c360-card[b-t662yhxqwa] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* -- Small type helpers (the board's .sub / .ink / .num) -------------------------------------------- */

.c360-sub[b-t662yhxqwa] {
    color: var(--text-tertiary);
    font-size: var(--font-size-text-sm);
}

.c360-ink[b-t662yhxqwa] {
    color: var(--text-primary);
}

.c360-num[b-t662yhxqwa] {
    font-variant-numeric: tabular-nums;
}

.c360-between[b-t662yhxqwa] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* -- "Why {p}%?" waterfall (the board's .wf): label | track | number --------------------------------- */

.c360-wf[b-t662yhxqwa] {
    display: flex;
    flex-direction: column;
}

.c360-wf__row[b-t662yhxqwa] {
    display: grid;
    grid-template-columns: minmax(200px, 1.1fr) 2fr 56px;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.c360-wf__row--total[b-t662yhxqwa] {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border-primary);
}

.c360-wf__label[b-t662yhxqwa] {
    min-width: 0;
    overflow-wrap: anywhere;
}

.c360-wf__track[b-t662yhxqwa] {
    position: relative;
    height: 20px;
    border-radius: 4px;
    background: var(--bg-secondary);
}

.c360-wf__bar[b-t662yhxqwa] {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 3px;
}

/* the starting point: grey; a part that pushed up: blue; down: amber; the person: ink */
.c360-wf__bar--base[b-t662yhxqwa] {
    background: var(--utility-gray-400, var(--gray-400));
}

.c360-wf__bar--up[b-t662yhxqwa] {
    background: var(--utility-blue-600, var(--blue-600));
}

.c360-wf__bar--down[b-t662yhxqwa] {
    background: var(--utility-warning-500, var(--warning-500));
}

.c360-wf__bar--total[b-t662yhxqwa] {
    background: var(--fg-primary);
}

.c360-wf__value[b-t662yhxqwa] {
    text-align: right;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.c360-wf__value--up[b-t662yhxqwa] {
    color: var(--utility-blue-700, var(--blue-700));
}

.c360-wf__value--down[b-t662yhxqwa] {
    color: var(--utility-warning-700, var(--warning-700));
}

.c360-wf__value--total[b-t662yhxqwa] {
    font-size: var(--font-size-text-md);
}

/* -- Next best actions (the board's .act) ------------------------------------------------------------ */

.c360-act[b-t662yhxqwa] {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--border-secondary);
}

.c360-act__rank[b-t662yhxqwa] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 700;
}

.c360-act__rank--first[b-t662yhxqwa] {
    background: var(--bg-brand-section);
    color: var(--text-primary-on-brand);
}

.c360-act__body[b-t662yhxqwa] {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.c360-act__title[b-t662yhxqwa] {
    color: var(--text-primary);
    font-size: var(--font-size-text-md);
}

.c360-act__buttons[b-t662yhxqwa] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* evidence chips (the board's .cite) */
.c360-cites[b-t662yhxqwa] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.c360-cite[b-t662yhxqwa] {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: var(--radius-xs);
    background: var(--utility-blue-50, var(--blue-50));
    color: var(--utility-blue-700, var(--blue-700));
    font-size: var(--font-size-text-xs);
    font-weight: 600;
}

/* -- Timeline (the board's .ev): date | what happened | chip or amount ------------------------------- */

.c360-ev[b-t662yhxqwa] {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.c360-ev__text[b-t662yhxqwa] {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* -- Most like them: each row a link ---------------------------------------------------------------- */

.c360-like[b-t662yhxqwa] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border-secondary);
    color: inherit;
    text-decoration: none;
}

.c360-like:hover .c360-like__who b[b-t662yhxqwa] {
    text-decoration: underline;
}

.c360-like__who[b-t662yhxqwa] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.c360-like__sim[b-t662yhxqwa] {
    flex: none;
    color: var(--text-primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* -- Consent & accounts ------------------------------------------------------------------------------ */

.c360-account[b-t662yhxqwa] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    min-width: 0;
}

/* the join line and its "split" (disabled until identity review) */
.c360-joined[b-t662yhxqwa] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}

.c360-consent__stop[b-t662yhxqwa] {
    padding-top: 10px;
    border-top: 1px solid var(--border-secondary);
}

/* -- The board's layout, sized against the Growth panel ------------------------------------------------------
   GrowthShell makes the panel the size container "growth-panel", so these rules read the panel's width, not the
   screen's: with the app's sidebar open a 1440px screen leaves the panel about 860px (a content box of about 800px).
   Narrower than the rule, the page stacks as it always did; the phone rules (@media) are unchanged. */

/* the six score tiles in one row (the board's), from a panel of about 780px; .gr-tiles elsewhere is unchanged */
@container growth-panel (min-width: 700px) {
    .c360-tiles[b-t662yhxqwa] {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* the main column and the right column side by side (bases 480 + 300, 2 : 1 as they grow) */
@container growth-panel (min-width: 760px) {
    .c360-split[b-t662yhxqwa] {
        flex-wrap: nowrap;
    }

    .c360-main[b-t662yhxqwa] {
        flex: 2 1 480px;
    }

    .c360-side[b-t662yhxqwa] {
        flex: 1 1 300px;
    }
}

/* -- Phone width: the waterfall keeps room for its bars, the timeline's date column narrows ---------- */

@media (max-width: 640px) {
    .c360-wf__row[b-t662yhxqwa] {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
        gap: 8px;
    }

    .c360-ev[b-t662yhxqwa] {
        grid-template-columns: 56px minmax(0, 1fr) auto;
        gap: 8px;
    }
}

/* -- P2: intent chips, interests, consent rows, the mark dialog ---------------------------------- */

.c360-ev__intents[b-t662yhxqwa] {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 6px;
    vertical-align: middle;
}

.c360-interest[b-t662yhxqwa] {
    text-decoration: none;
}

.c360-interest:hover[b-t662yhxqwa] {
    border-color: var(--border-brand);
}

.c360-consent__state[b-t662yhxqwa] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.c360-mark[b-t662yhxqwa] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* /Components/Pages/Growth/GrowthCustomers.razor.rz.scp.css */
/* Customers (/growth/customers): the boards' look - a tile header, then the list in one card. */

/* A lone tile keeps a tile's width instead of stretching across the row */
.customers-tiles[b-9pks0zvwlk] {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.customers-card[b-9pks0zvwlk] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
/* /Components/Pages/Growth/GrowthModels.razor.rz.scp.css */
/* Model studio (/growth/models), board ModelStudio.dc.html. The shared Growth pieces (tiles, chips, wells, section heads,
   the algorithm badge) are styled in Styles/components/growth.css and their own sheets; this sheet only lays out this page
   and draws its own rows (the table's selection, champion vs challenger, the PSI bars, the settings list). Tokens only. */

/* -- Tiles: a wrapper per tile that draws no box (the tile stays the grid item) and carries the board's value colour -- */

.ms-tile[b-3emevos3oi] {
    display: contents;
}

.ms-tile[data-tone="ok"][b-3emevos3oi]  .gr-tile__value {
    color: var(--text-success-primary);
}

.ms-tile[data-tone="warn"][b-3emevos3oi]  .gr-tile__value {
    color: var(--text-warning-primary);
}

/* -- Cards ------------------------------------------------------------------------------------------------------- */

.ms-panel[b-3emevos3oi] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* The board's .split: two cards side by side, wrapping when the panel is narrow. The bases are narrower than the board's
   (420 / 520 / 340) because the Growth panel beside two sidebars is about 860px wide at 1440px. */
.ms-split[b-3emevos3oi] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.ms-split__half[b-3emevos3oi] {
    flex: 1 1 360px;
}

.ms-split__main[b-3emevos3oi] {
    flex: 3 1 440px;
}

.ms-split__side[b-3emevos3oi] {
    flex: 2 1 300px;
}

/* -- The models table ---------------------------------------------------------------------------------------------- */

/* Six columns of words: wider than the card at most panel widths, so it scrolls inside the card (gr-scroll-cue) */
.ms-table[b-3emevos3oi]  .info-table {
    min-width: 1040px;
}

/* A row is the model picker: it is clickable and focusable, and the picked one has the board's paper tint (tr.sel) */
.ms-table[b-3emevos3oi]  tbody tr {
    cursor: pointer;
}

.ms-table[b-3emevos3oi]  tbody tr:focus-visible {
    outline: 2px solid var(--border-brand);
    outline-offset: -2px;
}

.ms-table[b-3emevos3oi]  tbody tr[data-selected="true"] td {
    background: var(--bg-secondary);
}

.ms-model[b-3emevos3oi] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ms-name[b-3emevos3oi] {
    font-weight: 700;
    color: var(--text-primary);
}

.ms-sub[b-3emevos3oi] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.ms-algos[b-3emevos3oi] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ms-algo[b-3emevos3oi] {
    display: inline-flex;
}

/* The board's dark algorithm badge (.algo): the ink pill with paper text. It inverts in dark mode (a light pill with dark
   text), so it stays a strong pill on the dark card; the second and later names keep AlgoBadge's own tint (.algo.l). */
.ms-algo--lead[b-3emevos3oi]  .gr-algo {
    background: var(--fg-primary);
    color: var(--bg-primary);
}

/* The status column keeps room for its chip and the category note under it (the other columns are wordier) */
.ms-status[b-3emevos3oi] {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 9.5rem;
}

/* "Sun 8 Nov" stays on one line */
.ms-table[b-3emevos3oi]  td:last-child {
    white-space: nowrap;
}

.ms-note[b-3emevos3oi] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
}

.ms-footnote[b-3emevos3oi] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

/* -- Champion vs challenger (.cmp): a label, the champion's number (bold), the challenger's -------------------------- */

.ms-cmp[b-3emevos3oi] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px 88px;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.ms-cmp--head[b-3emevos3oi] {
    border-top: 0;
}

.ms-cmp .ms-algo[b-3emevos3oi] {
    justify-self: start;
}

.ms-cmp__lead[b-3emevos3oi] {
    font-weight: 700;
    color: var(--text-primary);
}

/* -- Buttons in a row (a chip beside them, or a callout's text before them) ----------------------------------------- */

.ms-actions[b-3emevos3oi] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}

.ms-actions--inline[b-3emevos3oi] {
    padding-top: 0;
}

/* -- Has the data shifted? (.psi): label, a 0-0.3 track with the 0.2 tick, the PSI ----------------------------------- */

.ms-psis[b-3emevos3oi] {
    display: flex;
    flex-direction: column;
}

.ms-psi[b-3emevos3oi] {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) 2fr 44px;
    gap: 12px;
    align-items: center;
    padding: 7px 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.ms-psi[data-warn="true"] .ms-psi__label[b-3emevos3oi] {
    font-weight: 700;
    color: var(--text-primary);
}

.ms-psi__track[b-3emevos3oi] {
    position: relative;
    display: block;
    height: 12px;
    border-radius: var(--radius-xs);
    background: var(--bg-secondary);
}

.ms-psi__fill[b-3emevos3oi] {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: block;
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    background: var(--utility-blue-600, var(--blue-600));
}

/* at or past 0.2: the board's amber */
.ms-psi[data-warn="true"] .ms-psi__fill[b-3emevos3oi] {
    background: var(--fg-warning-primary);
}

.ms-psi__tick[b-3emevos3oi] {
    position: absolute;
    top: -4px;
    bottom: -4px;
    display: block;
    width: 2px;
    margin-left: -1px;
    background: var(--fg-primary);
}

.ms-psi__value[b-3emevos3oi] {
    text-align: right;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.ms-psi[data-warn="true"] .ms-psi__value[b-3emevos3oi] {
    color: var(--text-warning-primary);
}

/* The callout under the bars (a .well): the sentence, then Retrain now and Roll back */
.ms-callout[b-3emevos3oi] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.ms-callout__text[b-3emevos3oi] {
    flex: 1 1 240px;
    min-width: 0;
}

.ms-ink[b-3emevos3oi] {
    font-weight: 700;
    color: var(--text-primary);
}

/* While a version is pinned: "Rolled back to version 7." and Use the newest again */
.ms-pinned[b-3emevos3oi] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

/* -- Settings (.hp): name on the left, value on the right; a model parameter in mono ------------------------------- */

.ms-settings[b-3emevos3oi] {
    display: flex;
    flex-direction: column;
}

.ms-setting[b-3emevos3oi] {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.ms-setting:first-child[b-3emevos3oi] {
    border-top: 0;
}

.ms-setting__value[b-3emevos3oi] {
    min-width: 0;
    text-align: right;
    font-weight: 700;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.ms-setting__value--mono[b-3emevos3oi] {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-text-xs);
    font-weight: 500;
}

/* -- A wider panel gives the rows the board's column widths ----------------------------------------------------------- */

@container growth-panel (min-width: 720px) {
    .ms-cmp[b-3emevos3oi] {
        grid-template-columns: minmax(0, 1fr) 110px 110px;
    }

    .ms-psi[b-3emevos3oi] {
        grid-template-columns: minmax(170px, 1fr) 2fr 44px;
    }
}
/* /Components/Pages/Growth/GrowthOverview.razor.rz.scp.css */
/* Command centre (/growth), board CommandCentre.dc.html. The shared Growth pieces (hero, tiles, chips, wells) are styled
   in Styles/components/growth.css; this sheet only lays out this page. Tokens only. */

/* -- Header: "Period [Last 30 days]" and the inactive Autopilot chip --------------------------------------------- */

.cc-period[b-i8rm4qyehk] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
}

.cc-period__label[b-i8rm4qyehk] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.cc-chip-off[b-i8rm4qyehk] {
    display: inline-flex;
    cursor: default;
}

/* -- Dark hero: revenue | weekly sales (twice as wide) | autopilot today, ruled off on its left ------------------- */
/* The board's bases (240 / 460 / 220) assume a wider main column than the Growth panel beside two sidebars; these
   keep the three side by side from about 800px of panel and let them wrap below that. */

.cc-hero__revenue[b-i8rm4qyehk] {
    flex: 1 1 180px;
}

.cc-hero__sales[b-i8rm4qyehk] {
    flex: 2 1 340px;
}

.cc-hero__autopilot[b-i8rm4qyehk] {
    flex: 1 1 180px;
    padding-left: 24px;
    border-left: 1px solid color-mix(in srgb, var(--text-primary-on-brand) 12%, transparent);
}

.cc-ink[b-i8rm4qyehk] {
    font-weight: 600;
    color: var(--text-primary-on-brand);
}

/* The weekly chart's title row: the title, and (with a forecast) the legend words on the right */
.cc-sales-head[b-i8rm4qyehk] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 14px;
}

.cc-legend[b-i8rm4qyehk] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary-on-brand);
}

.cc-legend__item[b-i8rm4qyehk] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cc-legend__line[b-i8rm4qyehk] {
    width: 16px;
    height: 0;
    border-top: 2px solid var(--utility-blue-600, var(--blue-600));
}

.cc-legend__line--dashed[b-i8rm4qyehk] {
    border-top-style: dashed;
}

.cc-legend__band[b-i8rm4qyehk] {
    width: 14px;
    height: 10px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--utility-blue-600, var(--blue-600)) 25%, transparent);
}

/* A link-style button on the dark hero keeps the hero's link colour. */
[b-i8rm4qyehk] .cc-on-dark,
[b-i8rm4qyehk] .cc-on-dark:disabled {
    padding: 0;
    color: var(--text-tertiary-on-brand);
}

/* -- Card rows: the board's .split (3 : 2, wrapping; bases narrowed like the hero's) ------------------------------- */

.cc-split[b-i8rm4qyehk] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.cc-split__main[b-i8rm4qyehk] {
    flex: 3 1 460px;
    min-width: 0;
}

.cc-split__side[b-i8rm4qyehk] {
    flex: 2 1 300px;
    min-width: 0;
}

.cc-card[b-i8rm4qyehk] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* A heading with an icon before it (Needs you, Spotted overnight) */
.cc-head[b-i8rm4qyehk] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-head__icon[b-i8rm4qyehk] {
    display: inline-flex;
    flex: none;
    color: var(--text-brand-secondary);
}

.cc-head__icon--fill[b-i8rm4qyehk] {
    color: var(--brand-500);
}

/* "Needs you" carries the board's accent edge */
.cc-needs[b-i8rm4qyehk] {
    border: 2px solid var(--brand-500);
}

.cc-more[b-i8rm4qyehk] {
    align-self: flex-start;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
}

.cc-flat[b-i8rm4qyehk] {
    margin: 0;
}

/* -- Customer map ------------------------------------------------------------------------------------------------- */

.cc-note[b-i8rm4qyehk] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.8;
    color: var(--text-tertiary);
}

/* "Colour by": the Tooltip around the control explains the one option that is not there yet (Churn risk), so it
   shows while that option is hovered, or when the control itself has keyboard focus - not over Segment or Value. */
.cc-colour-by[b-i8rm4qyehk]  .tooltip:hover .tooltip-content,
.cc-colour-by[b-i8rm4qyehk]  .tooltip:focus-within .tooltip-content {
    opacity: 0;
    visibility: hidden;
}

.cc-colour-by[b-i8rm4qyehk]  .tooltip:has(.segmented-control__option:disabled:hover) .tooltip-content,
.cc-colour-by[b-i8rm4qyehk]  .tooltip:focus-visible .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* -- Journeys running: this month's AI blasts under the journeys -------------------------------------------------- */

.cc-blasts[b-i8rm4qyehk] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border-secondary);
}

.cc-blasts__head[b-i8rm4qyehk] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cc-blasts__title[b-i8rm4qyehk] {
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

/* -- Model health ------------------------------------------------------------------------------------------------- */

.cc-chips[b-i8rm4qyehk] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* -- Lifecycle · this month: bars, the chat-only line and the moves well ---------------------------------------------- */

.cc-lc[b-i8rm4qyehk] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cc-moves[b-i8rm4qyehk] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.cc-moves__title[b-i8rm4qyehk] {
    color: var(--text-primary);
}

.cc-moves__ink[b-i8rm4qyehk] {
    color: var(--text-primary);
}

/* a move into At risk or Lost reads as a setback */
.cc-move--bad[b-i8rm4qyehk] {
    color: var(--text-warning-primary);
}

.cc-soon-mark[b-i8rm4qyehk] {
    display: inline-flex;
    vertical-align: middle;
    cursor: default;
}

/* -- Needs you: one line of words, its action under it ---------------------------------------------------------- */

.cc-need[b-i8rm4qyehk] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-sm);
    color: var(--text-primary);
}

.cc-need__actions[b-i8rm4qyehk] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* The ringed customer under the map: their name, then the link to their profile */
.cc-picked[b-i8rm4qyehk] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}

.cc-picked__name[b-i8rm4qyehk] {
    color: var(--text-primary);
}
/* /Components/Pages/Growth/GrowthPredictions.razor.rz.scp.css */
/* Predictions (/growth/predictions), board Predictions.dc.html. Shared Growth styles (gr-*) live in growth.css; these
   are this page's own. Tokens only. */

/* -- Tab panel: the board's sections, one under the other ------------------------- */

.pr-panel[b-io1azinwfq] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pr-card[b-io1azinwfq] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* -- Dark banner (section.dark): question on the left, five tiles on the right ----- */

.pr-banner[b-io1azinwfq] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.pr-banner__main[b-io1azinwfq] {
    display: flex;
    flex: 1 1 280px;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.pr-banner__note[b-io1azinwfq] {
    flex: 2 1 520px;
    min-width: 0;
}

.pr-badges[b-io1azinwfq] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* The challenger is not live: a muted pill on the dark banner (the board's dark .algo with a faint outline),
   unlike the champion's light OnDark pill */
.pr-challenger[b-io1azinwfq]  .gr-algo {
    background: var(--bg-brand-section-subtle);
    color: var(--text-secondary-on-brand);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-primary-on-brand) 20%, transparent);
}

/* The drivers badge on a light card: the board's dark ink pill (.algo) */
.pr-ink-badge[b-io1azinwfq]  .gr-algo {
    background: var(--bg-brand-section);
    color: var(--text-primary-on-brand);
}

.pr-question[b-io1azinwfq] {
    margin: 0;
    font-size: var(--font-size-text-xl);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary-on-brand);
}

.pr-tiles[b-io1azinwfq] {
    display: grid;
    flex: 2 1 520px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    min-width: 0;
}

.pr-tile[b-io1azinwfq] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pr-tile__value[b-io1azinwfq] {
    font-family: var(--font-family-display);
    font-size: var(--font-size-display-xs);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary-on-brand);
    font-variant-numeric: tabular-nums;
}

.pr-tile__value--soon[b-io1azinwfq] {
    color: var(--text-secondary-on-brand);
}

/* The drift tile when a signal has moved: the board's warm accent on the dark ground (metta's on-brand peach) */
.pr-tile__value--alert[b-io1azinwfq] {
    color: var(--text-tertiary-on-brand);
}

/* The drift tile's "coming soon" sits on the tile's own dark ground: no second inset */
.pr-tile[b-io1azinwfq]  .gr-soon {
    padding: 0;
    background: transparent;
    color: var(--text-secondary-on-brand);
    font-size: var(--font-size-text-xs);
}

/* -- Two cards side by side (.split): 3 : 2 ---------------------------------------- */

.pr-split[b-io1azinwfq] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.pr-split__wide[b-io1azinwfq] {
    flex: 3 1 560px;
}

.pr-split__narrow[b-io1azinwfq] {
    flex: 2 1 420px;
}

.pr-split__narrow--calibration[b-io1azinwfq] {
    flex-basis: 340px;
}

/* -- The board's layout, sized against the Growth panel ------------------------------------------------------
   GrowthShell makes the panel the size container "growth-panel", so these rules read the panel's width, not the
   screen's: with the app's sidebar open a 1440px screen leaves the panel about 860px of content.
   Narrower than the rule, the page stacks as it always did; the phone rules (@media) are unchanged. */

/* the two cards of each row side by side (bases 460 + 300, 3 : 2 as they grow) */
@container growth-panel (min-width: 760px) {
    .pr-split[b-io1azinwfq] {
        flex-wrap: nowrap;
    }

    .pr-split__wide[b-io1azinwfq] {
        flex: 3 1 460px;
    }

    .pr-split__narrow[b-io1azinwfq],
    .pr-split__narrow--calibration[b-io1azinwfq] {
        flex: 2 1 300px;
    }
}

/* "50% and above - n people", above the spread */
.pr-caption[b-io1azinwfq] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.pr-foot[b-io1azinwfq] {
    margin: 0;
    padding-top: 6px;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

/* -- Put it to work ------------------------------------------------------------------- */

.pr-work[b-io1azinwfq]  table {
    min-width: 760px;
}

.pr-work__name[b-io1azinwfq] {
    color: var(--text-primary);
    font-weight: 600;
}

/* P3: a category row's name with its model's AUC (or its state) under it */
.pr-work__label[b-io1azinwfq] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pr-work__sub[b-io1azinwfq] {
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
    white-space: nowrap;
}

.pr-work__actions[b-io1azinwfq] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* "Already in a journey" is a coming-soon note: kept small inside a table cell */
.pr-work[b-io1azinwfq]  .gr-soon {
    padding: 4px 8px;
    font-size: var(--font-size-text-xs);
    white-space: nowrap;
}

/* -- The other six --------------------------------------------------------------------- */

.pr-others[b-io1azinwfq] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.pr-other[b-io1azinwfq] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
}

.pr-other__name[b-io1azinwfq] {
    color: var(--text-primary);
    font-weight: 600;
}

.pr-other[b-io1azinwfq]  .gr-soon {
    align-self: stretch;
}

/* P3: each card is a link that opens its tab (the board's a.card.om): name and chip on one line, the badge, the sub */
.pr-other--live[b-io1azinwfq] {
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.pr-other--live:hover[b-io1azinwfq] {
    border-color: var(--border-primary);
    color: var(--text-primary);
    text-decoration: none;
}

.pr-other--live:focus-visible[b-io1azinwfq] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
}

/* a long state word ("learning 9/12 mo") drops under the name instead of squeezing it */
.pr-other__head[b-io1azinwfq] {
    display: flex;
    flex-wrap: wrap;
    align-self: stretch;
    align-items: center;
    justify-content: space-between;
    gap: 4px 8px;
}

.pr-other__sub[b-io1azinwfq] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

/* "by category - same model, one per category": the board's .sub on the right of Put it to work's heading */
.pr-head-note[b-io1azinwfq] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}
/* /Components/Pages/Growth/GrowthRules.razor.rz.scp.css */
/* Recommendations (board Recommendations.dc.html): the page's own pieces. Shared Growth pieces live in growth.css. */

/* -- Cards ---------------------------------------------------------------------- */

.rec-card[b-c8jhdpdhjn] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.rec-ink[b-c8jhdpdhjn] {
    color: var(--text-primary);
}

.rec-b[b-c8jhdpdhjn] {
    font-weight: 600;
}

.rec-num[b-c8jhdpdhjn] {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.rec-muted[b-c8jhdpdhjn] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.rec-small[b-c8jhdpdhjn] {
    font-size: var(--font-size-text-sm);
}

.rec-soon[b-c8jhdpdhjn] {
    color: var(--text-tertiary);
}

.rec-h3[b-c8jhdpdhjn] {
    margin: 0 0 4px;
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-md);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

/* -- 1. Network + pattern engine, side by side (the board's .split) --------------- */

.rec-split[b-c8jhdpdhjn] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.rec-split__network[b-c8jhdpdhjn] {
    flex: 3 1 580px;
}

.rec-split__engine[b-c8jhdpdhjn] {
    flex: 2 1 340px;
    gap: 6px;
}

/* -- The board's layout, sized against the Growth panel ------------------------------------------------------
   GrowthShell makes the panel the size container "growth-panel", so these rules read the panel's width, not the
   screen's: with the app's sidebar open a 1440px screen leaves the panel about 860px of content.
   Narrower than the rule, the page stacks as it always did; the narrow rules below read the panel too. */

/* the network beside the pattern engine (bases 460 + 300, 3 : 2 as they grow) */
@container growth-panel (min-width: 760px) {
    .rec-split[b-c8jhdpdhjn] {
        flex-wrap: nowrap;
    }

    .rec-split__network[b-c8jhdpdhjn] {
        flex: 3 1 460px;
    }

    .rec-split__engine[b-c8jhdpdhjn] {
        flex: 2 1 300px;
    }
}

.rec-net__chart[b-c8jhdpdhjn] {
    min-width: 0;
}

/* The engine's settings (the board's .par): the words left, the read-only value right */
.rec-par[b-c8jhdpdhjn] {
    display: grid;
    grid-template-columns: 1fr minmax(92px, 160px);
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.rec-par:first-child[b-c8jhdpdhjn] {
    border-top: none;
}

/* the board's 34px read-only box (.par input) */
.rec-par[b-c8jhdpdhjn]  .input-wrapper {
    height: 34px;
}

.rec-par[b-c8jhdpdhjn]  .input-field {
    padding: 0 10px;
    font-size: var(--font-size-text-sm);
    text-align: right;
}

.rec-stats[b-c8jhdpdhjn] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rec-stat[b-c8jhdpdhjn] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
}

.rec-stat b[b-c8jhdpdhjn] {
    font-weight: 700;
}

.rec-stat__value[b-c8jhdpdhjn] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* The run time of the tab picked above: lifted out of the well */
.rec-stat--active[b-c8jhdpdhjn] {
    margin: 0 -8px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
}

/* -- 2. Strongest patterns --------------------------------------------------------- */

.rec-patterns[b-c8jhdpdhjn]  .info-table {
    min-width: 900px;
}

.rec-patterns b[b-c8jhdpdhjn] {
    font-weight: 600;
}

/* -- 3. Recommender lab ------------------------------------------------------------ */

.rec-lab-card[b-c8jhdpdhjn] {
    gap: 16px;
}

.rec-lab[b-c8jhdpdhjn] {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.rec-lab__col[b-c8jhdpdhjn] {
    display: flex;
    flex: 1 1 360px;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* One source and its weight (the board's .bl), drawn as a read-only bar */
.rec-weight[b-c8jhdpdhjn] {
    display: grid;
    grid-template-columns: minmax(200px, 1.2fr) 2fr 40px;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

/* The cold-start line under the weights */
.rec-lab__note[b-c8jhdpdhjn] {
    padding-top: 6px;
}

.rec-weight__name[b-c8jhdpdhjn] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.rec-weight__track[b-c8jhdpdhjn] {
    display: block;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--bg-quaternary);
    overflow: hidden;
}

.rec-weight__fill[b-c8jhdpdhjn] {
    display: block;
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--brand-500);
}

.rec-dot[b-c8jhdpdhjn] {
    display: inline-block;
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

/* One colour per source, in the recommender's order (the board's four dots) */
.rec-source--bought_together[b-c8jhdpdhjn] {
    background: var(--utility-blue-600);
}

.rec-source--item_knn[b-c8jhdpdhjn] {
    background: var(--utility-success-500);
}

.rec-source--taste[b-c8jhdpdhjn] {
    background: var(--utility-purple-500);
}

.rec-source--segment_popular[b-c8jhdpdhjn] {
    background: var(--utility-warning-400);
}

/* The hybrid recommender's four parts (Predict on), the board's dots in its order: people like them, what they asked,
   bought together, chance to buy */
.rec-hybrid--people_like_them[b-c8jhdpdhjn] {
    background: var(--utility-blue-600);
}

.rec-hybrid--asked[b-c8jhdpdhjn] {
    background: var(--utility-success-500);
}

.rec-hybrid--bought_together[b-c8jhdpdhjn] {
    background: var(--utility-purple-500);
}

.rec-hybrid--chance[b-c8jhdpdhjn] {
    background: var(--utility-warning-400);
}

/* -- Preview --------------------------------------------------------------------- */

.rec-preview[b-c8jhdpdhjn] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rec-preview__head[b-c8jhdpdhjn] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rec-preview__tools[b-c8jhdpdhjn] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rec-preview__pick[b-c8jhdpdhjn] {
    flex: none;
    width: 260px;
}

/* One offer (the board's .ev): the item, its score split by source, the score */
.rec-ev[b-c8jhdpdhjn] {
    display: grid;
    grid-template-columns: minmax(0, 210px) 1fr 44px;
    gap: 12px;
    align-items: center;
    padding: 6px 0;
}

.rec-ev > .rec-b[b-c8jhdpdhjn] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* A best-seller fill: its reason where a blended offer has its bar */
.rec-fill[b-c8jhdpdhjn] {
    min-width: 0;
}

/* The stacked bar (the board's .st): as wide as the score, one part per source */
.rec-stack[b-c8jhdpdhjn] {
    display: flex;
    gap: 2px;
    height: 16px;
    border-radius: 4px;
    overflow: hidden;
}

.rec-stack__part[b-c8jhdpdhjn] {
    flex-basis: 0;
    flex-shrink: 1;
    min-width: 2px;
    height: 100%;
}

/* A score stored without its split (a stage-1 run): one plain bar */
.rec-stack__part--whole[b-c8jhdpdhjn] {
    flex-grow: 1;
    background: var(--utility-gray-400);
}

.rec-legend[b-c8jhdpdhjn] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: var(--font-size-text-xs);
}

.rec-legend__item[b-c8jhdpdhjn] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* a narrow panel (a phone, or the panel beside the app's sidebar), never the screen's width */
@container growth-panel (max-width: 640px) {
    .rec-weight[b-c8jhdpdhjn] {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
    }

    .rec-ev[b-c8jhdpdhjn] {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
    }

    .rec-preview__pick[b-c8jhdpdhjn] {
        width: 100%;
    }
}

/* -- Pattern engine (P2): the Save under the five settings --------------------------------------------------------- */

.rec-engine__save[b-c8jhdpdhjn] {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}
/* /Components/Pages/Growth/GrowthSegments.razor.rz.scp.css */
/* Segments & map (board Segments.dc.html). Tokens only; the board's .split / .between / .row / .dot / .zt in theme tokens. */

/* .split: two cards side by side (3 : 2, as on the board), wrapping under each other when the panel is narrow */
.seg-split[b-v8m99hv924] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.seg-card[b-v8m99hv924] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.seg-card--map[b-v8m99hv924] {
    flex: 3 1 480px;
}

.seg-card--found[b-v8m99hv924] {
    flex: 2 1 300px;
}

.seg-card--z[b-v8m99hv924] {
    flex: 3 1 460px;
}

.seg-card--moved[b-v8m99hv924] {
    flex: 2 1 300px;
}

/* .row / .between */
.seg-row[b-v8m99hv924] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.seg-between[b-v8m99hv924] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.seg-line[b-v8m99hv924] {
    padding-top: 10px;
    border-top: 1px solid var(--border-secondary);
}

.seg-kept[b-v8m99hv924] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seg-stack[b-v8m99hv924] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seg-value[b-v8m99hv924] {
    color: var(--text-primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.seg-sub[b-v8m99hv924] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.seg-chips[b-v8m99hv924] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* .dot: a segment's colour (its map colour, set inline from GrowthChartPalette); an RFM group gets the outlined dot */
.seg-dot[b-v8m99hv924] {
    display: inline-block;
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

.seg-dot--own[b-v8m99hv924] {
    background: var(--bg-primary);
    border: 2px solid var(--fg-quaternary);
}

/* a topic segment the run found by grouping chat topics: the board's hollow dot with the ink border ("Students before exams") */
.seg-dot--topic[b-v8m99hv924] {
    background: var(--bg-primary);
    border: 2px solid var(--fg-primary);
}

/* the map's own note under the chart: why the map is PCA when UMAP fell back */
.seg-note[b-v8m99hv924] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

/* the board's line under "All segments" (.sub, padding-top 10px), with its algorithm badge inline */
.seg-foot[b-v8m99hv924] {
    margin: 0;
    padding-top: 10px;
    font-size: var(--font-size-text-sm);
    line-height: 1.6;
    color: var(--text-tertiary);
}

/* -- All segments ------------------------------------------------------------ */

.seg-name[b-v8m99hv924] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.seg-name[b-v8m99hv924]  .btn-link {
    color: var(--text-primary);
    font-weight: 700;
}

.seg-table[b-v8m99hv924]  .info-table {
    min-width: 980px;
}

.seg-table[b-v8m99hv924]  tr[data-selected="true"] td {
    background: var(--bg-secondary);
}

.seg-soon[b-v8m99hv924] {
    color: var(--text-tertiary);
}

/* the "8 weeks" sparkline: a bare 80 x 24 line (the chart frame's own minimum height would make it a card) */
.seg-spark[b-v8m99hv924] {
    display: inline-block;
    width: 80px;
    height: 24px;
    vertical-align: middle;
}

.seg-spark[b-v8m99hv924]  .ds-chart {
    min-height: 0;
}

/* -- What makes each segment different (.zt) ---------------------------------- */

.seg-z[b-v8m99hv924] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 640px;
    font-size: var(--font-size-text-xs);
}

/* each row is its own grid on the same columns (a real box, so it keeps role="row"); --seg-z-cols is set on .seg-z */
.seg-z__row[b-v8m99hv924] {
    display: grid;
    grid-template-columns: minmax(170px, 1.3fr) repeat(var(--seg-z-cols, 1), minmax(72px, 1fr));
    gap: 3px;
}

.seg-z__head[b-v8m99hv924] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 4px;
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
}

.seg-z__signal[b-v8m99hv924] {
    display: flex;
    align-items: center;
    padding: 8px 6px;
    color: var(--text-secondary);
}

.seg-z__cell[b-v8m99hv924] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* five steps: amber below, blank around 0, blue above */
.seg-z__cell--low2[b-v8m99hv924] {
    background: var(--utility-warning-200);
}

.seg-z__cell--low1[b-v8m99hv924] {
    background: var(--utility-warning-50);
}

.seg-z__cell--mid[b-v8m99hv924] {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

.seg-z__cell--high1[b-v8m99hv924] {
    background: var(--utility-blue-100);
}

.seg-z__cell--high2[b-v8m99hv924] {
    background: var(--utility-blue-300);
}

/* a signal this segment does not report */
.seg-z__cell--none[b-v8m99hv924] {
    background: transparent;
}

/* the legend: lower / average / higher */
.seg-legend[b-v8m99hv924] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-text-xs);
    color: var(--text-secondary);
}

.seg-legend__item[b-v8m99hv924] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.seg-swatch[b-v8m99hv924] {
    display: inline-block;
    width: 14px;
    height: 10px;
    border-radius: 2px;
}

.seg-swatch.seg-z__cell--mid[b-v8m99hv924] {
    border: 1px solid var(--border-secondary);
}

/* -- Who moved (.mx): rows last month, columns now, grey = stayed, blue = moved -- */

/* a fixed floor (the board's: a 150 px name column, then about 60 px a segment), never the names' own width: the
   card scrolls past it inside .gr-scroll-cue */
.seg-mv[b-v8m99hv924] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: calc(150px + var(--seg-mv-cols, 1) * 60px);
    font-size: var(--font-size-text-xs);
}

/* each row is its own grid on the same columns (a real box, so it keeps role="row"); --seg-mv-cols is set on .seg-mv */
.seg-mv__row[b-v8m99hv924] {
    display: grid;
    grid-template-columns: 150px repeat(var(--seg-mv-cols, 1), minmax(0, 1fr));
    gap: 3px;
}

/* a long segment name wraps inside its column instead of widening it */
.seg-mv__head[b-v8m99hv924] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 4px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

/* the row names (and the corner above them) stay in view while the counts scroll under them */
.seg-mv__corner[b-v8m99hv924],
.seg-mv__from[b-v8m99hv924] {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg-primary);
    box-shadow: 3px 0 0 var(--bg-primary);
}

.seg-mv__from[b-v8m99hv924] {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.seg-mv__cell[b-v8m99hv924] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* who stayed: the board's grey diagonal */
.seg-mv__cell--stayed[b-v8m99hv924] {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    font-weight: 600;
}

/* who moved: five blues, light to dark, against the biggest move. The utility scale flips in dark mode (700 turns light,
   50 turns dark), so the darkest cell takes its text from the other end of the same scale and keeps its contrast in both */
.seg-mv__cell--l1[b-v8m99hv924] {
    background: var(--utility-blue-50, var(--blue-50));
}

.seg-mv__cell--l2[b-v8m99hv924] {
    background: var(--utility-blue-100, var(--blue-100));
}

.seg-mv__cell--l3[b-v8m99hv924] {
    background: var(--utility-blue-200, var(--blue-200));
}

.seg-mv__cell--l4[b-v8m99hv924] {
    background: var(--utility-blue-400, var(--blue-400));
}

.seg-mv__cell--l5[b-v8m99hv924] {
    background: var(--utility-blue-700, var(--blue-700));
    color: var(--utility-blue-50, var(--blue-50));
}
/* /Components/Pages/Growth/GrowthSetup.razor.rz.scp.css */
/* Data & setup (/growth/setup): the Platform board's sections (docs/designs/MettaFlow_Growth_Canvas/project/Platform.dc.html)
   in theme tokens. The shared look (chips, soon notes, algorithm badges) comes from growth.css; only this page's layout is here. */

.setup-section[b-saqd2j2qwh] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* The board's section heading (h2, 800) */
.setup-h2[b-saqd2j2qwh] {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: var(--font-size-display-xs);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* The board's .h3 */
.setup-h3[b-saqd2j2qwh] {
    margin: 0;
    font-size: var(--font-size-text-md);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

/* The board's .sub */
.setup-sub[b-saqd2j2qwh] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

/* The board's .between */
.setup-between[b-saqd2j2qwh] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* -- Where the data comes from: four source cards (.card.src) ------------------ */

/* The board's 280px minimum assumes its 1320px canvas. Narrow panels wrap the cards by a 240px minimum; the @container
   rule at the end of this file puts all four in one row from a panel of about 840px. */
.setup-sources[b-saqd2j2qwh] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 12px;
}

.setup-src[b-saqd2j2qwh] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-2xl);
    background: var(--bg-primary);
}

.setup-src__title[b-saqd2j2qwh] {
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.setup-src__count[b-saqd2j2qwh] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* The last nightly import (the card's status line) */
.setup-src__status[b-saqd2j2qwh] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* A small line under a card's own: the optional columns, why the last nightly import failed */
.setup-src__note[b-saqd2j2qwh] {
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
}

/* Items a sales file made up, waiting for a price from the item list */
.setup-src__warn[b-saqd2j2qwh] {
    margin: 0;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-warning-primary);
    color: var(--text-warning-primary);
    font-size: var(--font-size-text-xs);
}

/* The card's button sits at its foot, so the four cards line up */
.setup-src__actions[b-saqd2j2qwh] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

/* -- One person, many accounts | Feature store (.split of two .card.pad) -------- */

.setup-split[b-saqd2j2qwh] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.setup-card[b-saqd2j2qwh] {
    display: flex;
    flex: 1 1 420px;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 20px 22px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-2xl);
    background: var(--bg-primary);
}

.setup-card > .setup-h3[b-saqd2j2qwh],
.setup-card__head[b-saqd2j2qwh] {
    padding-bottom: 6px;
}

/* A rule row (.between.line) */
.setup-rule[b-saqd2j2qwh] {
    padding: 10px 0;
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

/* A "coming soon" sentence standing where a chip or a bar would: the well, made compact */
.setup-rule[b-saqd2j2qwh]  .gr-soon,
.setup-fs__soon[b-saqd2j2qwh]  .gr-soon {
    padding: 4px 10px;
    font-size: var(--font-size-text-xs);
}

.setup-note[b-saqd2j2qwh] {
    padding-top: 6px;
}

/* -- Feature store rows (.fs): name | bar | count -------------------------------- */

.setup-fs[b-saqd2j2qwh] {
    display: grid;
    grid-template-columns: minmax(min(200px, 45%), 1.2fr) 2fr 40px;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.setup-fs__name[b-saqd2j2qwh] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

/* The board's .hb: a plain bar, square at the start */
.setup-fs__bar[b-saqd2j2qwh] {
    display: block;
    height: 10px;
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    background: var(--utility-blue-600, var(--blue-600));
}

.setup-fs__count[b-saqd2j2qwh] {
    text-align: right;
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
    font-variant-numeric: tabular-nums;
}

/* An empty group: its sentence takes the bar and the count's place */
.setup-fs__soon[b-saqd2j2qwh] {
    grid-column: 2 / span 2;
    min-width: 0;
}

/* -- The board's layout, sized against the Growth panel ------------------------------------------------------
   GrowthShell makes the panel the size container "growth-panel", so these rules read the panel's width, not the
   screen's: with the app's sidebar open a 1440px screen leaves the panel about 860px (a content box of about 800px).
   Narrower than the rule, the page stacks as it always did; the phone rules (@media) are unchanged. Below 769px the
   panel is no container at all (GrowthShell.razor.css), so none of these apply on a phone.
   These rules come LAST: they change base rules of the same weight, and the later rule wins. */

/* the four source cards in one row (at least about 190px each), never 3 + 1 */
@container growth-panel (min-width: 780px) {
    .setup-sources[b-saqd2j2qwh] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* "One person, many accounts" beside the feature store */
@container growth-panel (min-width: 760px) {
    .setup-split[b-saqd2j2qwh] {
        flex-wrap: nowrap;
    }

    .setup-card[b-saqd2j2qwh] {
        flex-basis: 360px;
    }
}

/* The Similar name row: the chip and the Review button end the row together */
.setup-rule__end[b-saqd2j2qwh] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
/* /Components/Pages/Growth/Recommendations/GrowthWeightsLab.razor.rz.scp.css */
/* The recommender lab's two columns (board Recommendations.dc.html, "Recommender lab"): the weights (.bl) and the backtest (.ev).
   Tokens only. The board's .split: side by side, wrapping under each other when the panel is narrow. */

.wl[b-zb261mteio] {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.wl-col[b-zb261mteio] {
    display: flex;
    flex: 1 1 360px;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.wl-ink[b-zb261mteio] {
    color: var(--text-primary);
    font-weight: 700;
}

.wl-num[b-zb261mteio] {
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.wl-sub[b-zb261mteio] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.wl-h3[b-zb261mteio] {
    margin: 0;
    padding-bottom: 4px;
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-md);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

/* -- The weights (.bl): the source, its slider, its readout -------------------------------------------------------- */

.wl-row[b-zb261mteio] {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) 2fr 40px;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.wl-name[b-zb261mteio] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    min-width: 0;
}

/* a source that didn't run: its words step back; the slider still edits */
.wl-row[data-available="false"] .wl-name[b-zb261mteio] {
    color: var(--text-tertiary);
}

.wl-dot[b-zb261mteio] {
    display: inline-block;
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

/* the board's four dots, in its order: people like them, what they asked, bought together, chance to buy */
.wl-dot--people_like_them[b-zb261mteio] {
    background: var(--utility-blue-600);
}

.wl-dot--asked[b-zb261mteio] {
    background: var(--utility-success-500);
}

.wl-dot--bought_together[b-zb261mteio] {
    background: var(--utility-purple-500);
}

.wl-dot--chance[b-zb261mteio] {
    background: var(--utility-warning-400);
}

.wl-why[b-zb261mteio] {
    margin: -4px 0 4px;
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
}

/* the cold-start note under the weights */
.wl-note[b-zb261mteio] {
    margin: 0;
    padding-top: 6px;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.wl-save[b-zb261mteio] {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

/* -- The backtest (.ev): the bar's name, its length, its hit rate ---------------------------------------------------- */

.wl-bar[b-zb261mteio] {
    display: grid;
    grid-template-columns: 150px 1fr 14ch; /* the same track for every bar: the value column is wide enough for ".20 (.14–.28)" */
    gap: 12px;
    align-items: center;
    padding: 6px 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.wl-bar__track[b-zb261mteio] {
    position: relative;
    display: block;
    min-width: 0;
}

/* the 95 % range: a thin line over the track from the low end to the high end, with a cap at each end */
.wl-bar__range[b-zb261mteio] {
    position: absolute;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: var(--text-primary);
    min-width: 2px;
}
.wl-bar__range[b-zb261mteio]::before {
    content: "";
    position: absolute;
    left: -2px;
    top: -3px;
    width: calc(100% + 4px);
    height: 8px;
    border-left: 2px solid var(--text-primary);
    border-right: 2px solid var(--text-primary);
    box-sizing: border-box;
}

/* the one sentence under the bars: is the blend's gap to best sellers bigger than chance */
.wl-verdict[b-zb261mteio] {
    margin: 4px 0 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

/* the board's .hb: a 10px bar, square at the start; each source alone muted, the blend in the fill colour */
.wl-bar__fill[b-zb261mteio] {
    display: block;
    height: 10px;
    border-radius: 0 4px 4px 0;
    background: var(--fg-quaternary);
}

.wl-bar__fill--hybrid[b-zb261mteio] {
    background: var(--brand-500);
}

.wl-lines[b-zb261mteio] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wl-lines p[b-zb261mteio] {
    margin: 0;
}

/* A narrow Growth panel (a phone): the board's fixed name (170px) and bar-name (150px) columns would leave the slider and
   the bar almost no room, so every column shares the width. Sized against the panel (GrowthShell's "growth-panel"), not the
   screen: below 480px a stacked lab column is under ~430px, where the fixed columns stop fitting. */
@container growth-panel (max-width: 480px) {
    .wl-row[b-zb261mteio] {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
    }

    .wl-bar[b-zb261mteio] {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 14ch;
    }
}
/* /Components/Pages/Growth/Segments/GrowthRuleBuilder.razor.rz.scp.css */
/* The rule builder (no board drawing; the Platform board's pieces). Tokens only. The body is its own size container,
   so a condition row stacks when the dialog is narrow (a phone), whatever the screen. */

.rb[b-pwkjr0agxc] {
    container-type: inline-size;
    container-name: rule-builder;
}

.rb-stack[b-pwkjr0agxc] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rb-strong[b-pwkjr0agxc] {
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--font-size-text-sm);
}

.rb-sub[b-pwkjr0agxc] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

/* "People who match [all | any] of these:" */
.rb-match[b-pwkjr0agxc] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.rb-conditions[b-pwkjr0agxc] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* field / check / value / remove */
.rb-cond[b-pwkjr0agxc] {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
}

.rb-cond__part[b-pwkjr0agxc] {
    min-width: 0;
}

@container rule-builder (max-width: 520px) {
    .rb-cond[b-pwkjr0agxc] {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .rb-cond__part[b-pwkjr0agxc] {
        grid-column: 1;
    }
}

.rb-row[b-pwkjr0agxc] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* the live count, the server's problems, the words */
.rb-count[b-pwkjr0agxc] {
    min-height: 24px;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.rb-count__value[b-pwkjr0agxc] {
    color: var(--text-primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rb-problems[b-pwkjr0agxc] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding-left: 18px;
    color: var(--text-error-primary);
}

.rb-words[b-pwkjr0agxc] {
    font-size: var(--font-size-text-sm);
    color: var(--text-primary);
}
/* /Components/Pages/Growth/Setup/GrowthChatReadingCard.razor.rz.scp.css */
/* Data & setup > "Reading chats for interests", inside the feature-store card. Theme tokens only. */

.chatread[b-eyj0cpplg7] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-secondary);
}

.chatread__title[b-eyj0cpplg7] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.chatread__line[b-eyj0cpplg7] {
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.chatread__warn[b-eyj0cpplg7] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-warning-primary);
}

.chatread__controls[b-eyj0cpplg7] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.chatread__cap[b-eyj0cpplg7] {
    min-width: 160px;
    flex: 0 1 220px;
}
/* /Components/Pages/Growth/Setup/GrowthConsentFormCard.razor.rz.scp.css */
/* Data & setup > "Yes to offers from a Smart Form". The card, form rows and Save come from the app; only the note and the
   Save row are laid out here. */

.consent__note[b-xur8u6cffy] {
    margin: 4px 0 0;
}

.consent__foot[b-xur8u6cffy] {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}
/* /Components/Pages/Growth/Setup/GrowthImportPanel.razor.rz.scp.css */
/* Data & setup > the file import, full width under the source cards: the import card and the past imports. The shared
   look (.gr-map, .gr-map__label, .gr-file, .gr-well--warn, chips) comes from growth.css; only this panel's layout is here. */

.setup-import[b-v0sa7szh8k] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* The import card: its parts one under another, evenly spaced */
.setup-import > .layout-detail-card[b-v0sa7szh8k] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.setup-import > .layout-detail-card > .gr-card-head[b-v0sa7szh8k] {
    margin-bottom: 0;
}

/* Four kinds: on a narrow panel the picker scrolls sideways instead of widening the page */
.import-kind[b-v0sa7szh8k] {
    max-width: 100%;
    overflow-x: auto;
}

/* The mapping's head: how the columns were matched */
.import-mapped-by[b-v0sa7szh8k] {
    margin: 4px 0 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* The mapping grid (growth.css .gr-map) has two fixed-minimum columns; on a phone it stacks */
@media (max-width: 640px) {
    .setup-import .gr-map[b-v0sa7szh8k] {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* /Components/Pages/Growth/Setup/GrowthListsSection.razor.rz.scp.css */
/* Data & setup > "Your lists": the Platform board's pieces (cards, a table, chips) in theme tokens. The shared look
   (.layout-detail-card, .gr-card-head, .gr-scroll-cue, chips) comes from the app and growth.css; only this section's
   layout is here. */

.lists[b-0joyuzfrg8] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* The board's section heading (h2, 800), as the page's other sections */
.lists__h2[b-0joyuzfrg8] {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: var(--font-size-display-xs);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.lists__sub[b-0joyuzfrg8] {
    margin: 0 0 12px;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.lists__empty[b-0joyuzfrg8] {
    margin: 0;
    padding: 12px 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

/* Discount rules: Covers | Which | Up to % | remove */
.lists__rules[b-0joyuzfrg8] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lists__rule[b-0joyuzfrg8] {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1.2fr) minmax(110px, 0.7fr) auto;
    align-items: start;
    gap: 12px;
}

.lists__rule--head[b-0joyuzfrg8] {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-tertiary);
}

.lists__foot[b-0joyuzfrg8] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-secondary);
}

.lists__days[b-0joyuzfrg8] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

/* Calendar rows: name, kind chip, dates, Edit */
.lists__entry[b-0joyuzfrg8] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-sm);
}

.lists__entry-name[b-0joyuzfrg8] {
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.lists__entry-dates[b-0joyuzfrg8] {
    margin-left: auto;
    color: var(--text-tertiary);
}

.lists__dates[b-0joyuzfrg8] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

/* A phone: the rule's four cells stack */
@media (max-width: 640px) {
    .lists__rule[b-0joyuzfrg8] {
        grid-template-columns: minmax(0, 1fr);
    }

    .lists__rule--head[b-0joyuzfrg8] {
        display: none;
    }
}
/* /Components/Pages/Growth/Setup/GrowthNightlyPanel.razor.rz.scp.css */
/* Data & setup > "Your system, every night", full width under the source cards like the file import. No board drawing:
   the Platform board's pieces (a card, form rows, a warn well, the mapping grid) in theme tokens. The shared look comes
   from growth.css (.gr-map, .gr-map__label, .gr-well--warn); only this panel's layout is here. */

.setup-nightly[b-07yarler81] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* The nightly import is switched off on this server */
.setup-nightly .gr-well--warn[b-07yarler81] {
    margin-bottom: 16px;
}

.nightly-add[b-07yarler81] {
    display: inline-block;
    margin-top: 8px;
    font-size: var(--font-size-text-sm);
}

/* Fetch's row holds the mapping and the sample: it takes the row's whole width, and a wide sample scrolls inside it */
.nightly-fetch[b-07yarler81] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    max-width: none;
}

.nightly-fields__title[b-07yarler81] {
    margin: 0 0 8px;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* The switch on the left, Save on the right */
.nightly-foot[b-07yarler81] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-secondary);
}

/* "Not saved yet" beside Save */
.nightly-foot__save[b-07yarler81] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nightly-foot + div[b-07yarler81] {
    margin-top: 12px;
}

/* The mapping grid (growth.css .gr-map) has two fixed-minimum columns; on a phone it stacks */
@media (max-width: 640px) {
    .setup-nightly .gr-map[b-07yarler81] {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* /Components/Pages/Growth/Setup/GrowthReviewPanel.razor.rz.scp.css */
/* Data & setup > the possible-duplicates review: the Platform board's pieces (a card, two person cards, a chip) in theme
   tokens. The shared look (.layout-detail-card, .gr-card-head, chips) comes from the app and growth.css. */

.review__sub[b-jyx0f0l504] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.review__pairs[b-jyx0f0l504] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review__pair[b-jyx0f0l504] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
}

.review__cards[b-jyx0f0l504] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.review__card[b-jyx0f0l504] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}

.review__name[b-jyx0f0l504] {
    font-size: var(--font-size-text-md);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.review__line[b-jyx0f0l504] {
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.review__foot[b-jyx0f0l504] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.review__actions[b-jyx0f0l504] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* /Components/Pages/Growth/Shared/AlgoBadge.razor.rz.scp.css */
/* The boards' algorithm badge (growth.css .algo.l): small mono type on the light tint, 6px corners. */
.gr-algo[b-1vqhj34ydf] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    padding: 0 8px;
    border-radius: var(--radius-xs);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

/* On a dark section (Main.dc.html .dalgo): the hero's own two colours swapped - a light pill with the section's ink.
   Both stay right in dark mode, where the section is still dark. */
.gr-algo--on-dark[b-1vqhj34ydf] {
    background: var(--text-primary-on-brand);
    color: var(--bg-brand-section);
}

/* Not running yet: faded, so it never reads as a model at work */
.gr-algo--soon[b-1vqhj34ydf] {
    opacity: 0.6;
}
/* /Components/Pages/Growth/Shared/GrowthFirstRun.razor.rz.scp.css */
/* The Command centre's first-run state (board Main.dc.html). Tokens only; the dark panels are GrowthHero. */

.fr[b-idwd8pzhdi] {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* -- Hero ------------------------------------------------------------------------ */

.fr-intro[b-idwd8pzhdi]  .gr-hero {
    gap: 32px;
    padding: 40px;
}

.fr-hero[b-idwd8pzhdi] {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fr-hero__kicker[b-idwd8pzhdi] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* "Marketing intelligence": the board's solid accent chip (a fill, so --brand-500 is right; GrowthChip is unchanged) */
.fr-hero__kicker[b-idwd8pzhdi]  .gr-chip {
    background: var(--brand-500);
    color: var(--text-primary-on-brand);
}

.fr-hero__lead[b-idwd8pzhdi] {
    margin: 0;
    font-size: var(--font-size-text-lg);
    line-height: 1.6;
    color: var(--text-secondary-on-brand);
}

.fr-hero__actions[b-idwd8pzhdi] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* -- Section heads ------------------------------------------------------------------- */

.fr-section[b-idwd8pzhdi] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fr-head[b-idwd8pzhdi] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fr-h2[b-idwd8pzhdi] {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: var(--font-size-display-xs);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.fr-sub[b-idwd8pzhdi] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

/* -- The intelligence loop: six stage cards on the dark panel, and the line back ------- */

.fr-loop[b-idwd8pzhdi]  .gr-hero {
    gap: 14px;
    padding: 28px;
}

.fr-stages[b-idwd8pzhdi] {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.fr-stage[b-idwd8pzhdi] {
    display: flex;
    flex: 1 1 220px; /* three a row in the Growth panel, all six from about 1,400px */
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--text-primary-on-brand) 8%, transparent);
    border-radius: var(--radius-lg);
    background: var(--bg-brand-section-subtle);
}

/* "6 · Measure": the accent edge and kicker */
.fr-stage--measure[b-idwd8pzhdi] {
    border-color: var(--brand-500);
}

.fr-stage--measure .gr-k[b-idwd8pzhdi] {
    color: var(--text-tertiary-on-brand);
}

/* the kicker, and the Soon marker of a stage that comes in a later phase (the badge's height, so every kicker lines up) */
.fr-stage__head[b-idwd8pzhdi] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 22px;
}

/* a stage of a later phase: its words stay, faded, under its Soon marker (the on-brand text tokens are all accent
   tints, so it is faded rather than recoloured) */
.fr-stage--soon .fr-stage__title[b-idwd8pzhdi],
.fr-stage--soon .fr-stage__text[b-idwd8pzhdi],
.fr-stage--soon .fr-stage__algos[b-idwd8pzhdi] {
    opacity: 0.6;
}

.fr-stage__title[b-idwd8pzhdi] {
    margin: 0;
    font-size: var(--font-size-text-md);
    font-weight: 700;
    color: var(--text-primary-on-brand);
}

.fr-stage__text[b-idwd8pzhdi] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary-on-brand);
}

.fr-stage__algos[b-idwd8pzhdi] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* what the stage does not do yet: one line each, with its Soon marker */
.fr-later[b-idwd8pzhdi] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-secondary-on-brand);
}

/* the menu's Soon marker: the badge (its sentence is in the Tooltip around it) */
.fr-soon[b-idwd8pzhdi],
.fr-algo-soon[b-idwd8pzhdi] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: default;
}

.fr-loopback[b-idwd8pzhdi] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    color: var(--text-tertiary-on-brand);
}

.fr-loopback svg[b-idwd8pzhdi] {
    flex: 1;
    min-width: 0;
}

.fr-loopback span[b-idwd8pzhdi] {
    white-space: nowrap;
}

/* -- Twelve screens ---------------------------------------------------------------------- */

.fr-screens[b-idwd8pzhdi] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
    gap: 14px;
}

.fr-screen[b-idwd8pzhdi] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    text-decoration: none;
}

a.fr-screen:hover[b-idwd8pzhdi] {
    border-color: var(--border-primary);
    color: var(--text-secondary);
    text-decoration: none;
}

a.fr-screen:focus-visible[b-idwd8pzhdi] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
}

.fr-screen__icon[b-idwd8pzhdi] {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-brand-primary);
    color: var(--text-brand-secondary);
}

.fr-screen__title[b-idwd8pzhdi] {
    font-size: var(--font-size-text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

/* an unbuilt screen's title with its Soon badge */
.fr-screen__head[b-idwd8pzhdi] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fr-screen__soon[b-idwd8pzhdi] {
    margin-top: auto;
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
}

/* -- Autonomy levels --------------------------------------------------------------------- */

.fr-levels[b-idwd8pzhdi] {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.fr-level[b-idwd8pzhdi] {
    display: flex;
    flex: 1 1 260px;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
}

.fr-level__head[b-idwd8pzhdi] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 22px;
}

.fr-level__name[b-idwd8pzhdi] {
    font-size: var(--font-size-text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.fr-note[b-idwd8pzhdi] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}
/* /Components/Pages/Growth/Shared/GrowthShell.razor.rz.scp.css */
/* ==========================================================================
 * GROWTH SHELL - Scaffold G (LAYOUT.md "Sidebar + panel") with the boards' grouped menu.
 *
 * Board: docs/designs/MettaFlow_Growth_Canvas/project/CommandCentre.dc.html (the .sec nav) and growth.css:16-23
 *   .sec    white column, hairline right border, 22px 12px padding, 2px between rows
 *   .sec-h  accent tile + "Growth", heavy
 *   .sl     group label: small, bold, spaced capitals, muted
 *   .sn     38px row, 10px radius; hover = paper; .on = the tint, ink, bold
 *   .main   paper ground, 24px 32px padding, 20px between sections
 * Tokens only. Scoped to .growth-shell: .layout-settings and its children are shared with Settings, Team,
 * CaseboardSetup and ChatActions. ::deep reaches what the page (ChildContent) and the UI components render.
 * ========================================================================== */

.layout-settings.growth-shell[b-a4kg2b6gie] {
    min-height: 0;
    border: none;
    border-radius: 0;
    background: var(--bg-secondary);
}

/* -- The menu column (.sec) ------------------------------------------------ */

.growth-shell .layout-settings__sidebar[b-a4kg2b6gie] {
    width: 236px;
    min-width: 236px;
    padding: 0;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-secondary);
    overflow-y: auto;
}

.growth-shell .sidebar-nav-items[b-a4kg2b6gie] {
    flex: none;
    gap: 2px;
    padding: 22px 12px;
    overflow: visible;
}

/* .sec-h */
.growth-shell .settings-nav__title[b-a4kg2b6gie] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 10px 12px;
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-lg);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
}

/* The board's accent icon tile (.tile at 32px) */
.growth-shell .growth-shell__mark[b-a4kg2b6gie] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-brand-primary);
    color: var(--text-brand-secondary);
}

/* .sl */
.growth-shell .sidebar-nav-section-label[b-a4kg2b6gie] {
    margin: 0;
    padding: 14px 10px 6px;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

.growth-shell .growth-shell__group[b-a4kg2b6gie] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* .sn */
.growth-shell .sidebar-nav-item[b-a4kg2b6gie] {
    gap: 10px;
    min-height: 38px;
    margin: 0;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.growth-shell .sidebar-nav-item-text[b-a4kg2b6gie] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-secondary);
}

.growth-shell a.sidebar-nav-item:hover[b-a4kg2b6gie] {
    background: var(--bg-primary-hover);
    text-decoration: none;
}

.growth-shell a.sidebar-nav-item:hover .sidebar-nav-item-text[b-a4kg2b6gie] {
    color: var(--text-primary);
}

.growth-shell a.sidebar-nav-item:focus-visible[b-a4kg2b6gie] {
    outline: 2px solid var(--border-brand);
    outline-offset: -2px;
}

/* .sn.on */
.growth-shell .sidebar-nav-item.active[b-a4kg2b6gie],
.growth-shell .sidebar-nav-item.active:hover[b-a4kg2b6gie] {
    background: var(--bg-active);
}

.growth-shell .sidebar-nav-item.active .sidebar-nav-item-text[b-a4kg2b6gie] {
    font-weight: 700;
    color: var(--text-primary);
}

/* The boards' count beside an item (.sn .ct): pushed right, small, muted, bold */
.growth-shell .growth-shell__count[b-a4kg2b6gie] {
    margin-left: auto;
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

/* A screen from a later phase: inert, muted, no hover. Its Tooltip wrapper fills the row like a link would.
   Scoped to the menu's groups: a page in the panel wraps its disabled actions in Tooltips too, and must not get this. */
.growth-shell .growth-shell__group[b-a4kg2b6gie]  .tooltip {
    display: flex;
    width: 100%;
}

.growth-shell .growth-shell__soon[b-a4kg2b6gie],
.growth-shell .growth-shell__soon:hover[b-a4kg2b6gie] {
    width: 100%;
    cursor: default;
    background: transparent;
}

.growth-shell .growth-shell__soon .sidebar-nav-item-text[b-a4kg2b6gie] {
    color: var(--text-quaternary);
}

/* A Soon item is drawn twice: the wide copy in its Tooltip, and the phone copy (badge, no Tooltip, the sentence for a
   screen reader). One is display:none at every width, so it is neither seen nor read. */
.growth-shell .growth-shell__soon--wide[b-a4kg2b6gie] {
    display: flex;
    width: 100%;
}

.growth-shell .growth-shell__soon--phone[b-a4kg2b6gie] {
    display: none;
}

/* Read by a screen reader, not drawn */
.growth-shell .growth-shell__sr[b-a4kg2b6gie] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* -- The page (.main) ------------------------------------------------------- */

/* The panel is the scroll container and the containing block for anything a page positions absolutely. Its padding
   is the 24px 32px the sticky SectionFooter of a layout-page (layouts.css) is drawn against. */
.growth-shell .layout-settings__panel[b-a4kg2b6gie] {
    position: relative;
    padding: 24px 32px;
    background: var(--bg-secondary);
}

/* Above the phone width (the phone rules below are max-width: 768px; "width > 768px" is their exact complement, with no
   gap at a zoomed, fractional width) the panel is also the size container
   "growth-panel": the pages lay their board columns out by the panel's width with @container rules, not by the
   screen's - with the app's sidebar open a 1440px screen leaves the panel about 860px.
   Current browsers apply no layout containment for a size container, so fixed popovers, dialogs and drawers inside a
   page still place themselves against the viewport. Safari 16 did, and re-anchored the shared Dropdown's fixed menu to
   the panel; a phone therefore gets no container. It needs none: every board-column rule starts wider than a phone's
   panel, and with no container a rule simply does not apply (the older notes in panel-controls.css and
   error-state.css say the same). A Safari older than 16.4 does not read the range syntax at all, so it gets no
   container on any width: its board columns stack and its fixed menus stay where they belong. */
@media (width > 768px) {
    .growth-shell .layout-settings__panel[b-a4kg2b6gie] {
        container-type: inline-size;
        container-name: growth-panel;
    }
}

.growth-shell .layout-settings__panel[b-a4kg2b6gie]  > .layout-body,
.growth-shell .layout-settings__panel[b-a4kg2b6gie]  > .layout-list {
    gap: 20px;
    padding: 0 0 32px;
}

/* A footer page (Scaffold D) runs into the panel's bottom padding, so a short page's SectionFooter sits on the panel's
   bottom edge as it does once it sticks. */
.growth-shell .layout-settings__panel[b-a4kg2b6gie]  > .layout-page {
    flex: 1 0 auto;
    margin-bottom: -24px;
}

.growth-shell .layout-settings__panel[b-a4kg2b6gie]  > .layout-page > .layout-body {
    gap: 20px;
    padding: 0 0 var(--spacing-20);
}

/* -- Phone: the menu becomes one scrolling row above the page ---------------- */

@media (max-width: 768px) {
    .growth-shell .layout-settings__sidebar[b-a4kg2b6gie] {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-secondary);
        overflow-x: auto;
        overflow-y: hidden;
    }

    .growth-shell .sidebar-nav-items[b-a4kg2b6gie] {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: 8px 12px;
    }

    .growth-shell .settings-nav__title[b-a4kg2b6gie],
    .growth-shell .sidebar-nav-section-label[b-a4kg2b6gie] {
        display: none;
    }

    .growth-shell .growth-shell__group[b-a4kg2b6gie] {
        flex-direction: row;
        gap: 4px;
    }

    .growth-shell .sidebar-nav-item[b-a4kg2b6gie] {
        flex: none;
        white-space: nowrap;
    }

    .growth-shell .growth-shell__group[b-a4kg2b6gie]  .tooltip {
        flex: none;
        width: auto;
    }

    /* The strip clips a tooltip above it and a phone has no hover: the Soon item is the phone copy */
    .growth-shell .growth-shell__soon--wide[b-a4kg2b6gie] {
        display: none;
    }

    /* position: the hidden sentence (absolute) belongs to the item, so the strip's overflow clips it and it never
       widens the page */
    .growth-shell .growth-shell__soon--phone[b-a4kg2b6gie] {
        position: relative;
        display: flex;
        flex: none;
        width: auto;
    }

    .growth-shell .layout-settings__panel[b-a4kg2b6gie] {
        padding: 16px;
    }

    .growth-shell .layout-settings__panel[b-a4kg2b6gie]  > .layout-page {
        margin-bottom: -16px;
    }

    .growth-shell .layout-settings__panel[b-a4kg2b6gie]  > .layout-page > .section-footer {
        bottom: -16px;
        width: calc(100% + 32px);
        margin-left: -16px;
    }
}
/* /Components/Pages/Ops/MaintenanceMode.razor.rz.scp.css */
/* Maintenance mode (/ops/maintenance). Page-specific layout only; controls are the shared components. */

/* ── Steps: switch on → publish → switch off ── */

.mm-steps[b-3x0gnonvhm] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: var(--spacing-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mm-step[b-3x0gnonvhm] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-4);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-secondary);
    background: var(--bg-primary);
}

.mm-step[data-current="true"][b-3x0gnonvhm] {
    border-color: var(--border-brand);
    background: var(--bg-brand-primary-alt);
}

.mm-step__num[b-3x0gnonvhm] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: 50%;
    border: 1px solid var(--border-primary);
    background: var(--bg-primary);
    color: var(--text-tertiary);
    font-size: var(--font-size-text-sm);
    font-weight: 600;
}

.mm-step[data-current="true"] .mm-step__num[b-3x0gnonvhm] {
    border-color: var(--bg-brand-solid);
    background: var(--bg-brand-solid);
    color: var(--text-white);
}

.mm-step[data-done="true"] .mm-step__num[b-3x0gnonvhm] {
    border-color: var(--bg-success-solid);
    background: var(--bg-success-solid);
    color: var(--text-white);
}

.mm-step__copy[b-3x0gnonvhm] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    color: var(--text-tertiary);
}

.mm-step__copy strong[b-3x0gnonvhm] {
    font-weight: 600;
    color: var(--text-primary);
}

.mm-step[data-current="true"] .mm-step__copy strong[b-3x0gnonvhm] { color: var(--text-brand-secondary); }

/* ── Two columns: controls | preview + history ── */

.mm-grid[b-3x0gnonvhm] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(30rem, 100%), 1fr));
    gap: var(--spacing-6);
    align-items: start;
}

.mm-col[b-3x0gnonvhm] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
    min-width: 0;
}

.mm-stack[b-3x0gnonvhm] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.mm-head[b-3x0gnonvhm] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-4);
}

.mm-head__copy[b-3x0gnonvhm] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    min-width: 0;
}

.mm-heading[b-3x0gnonvhm] {
    margin: 0;
    font-size: var(--font-size-text-md);
    line-height: 1.5;
    font-weight: 600;
    color: var(--text-primary);
}

.mm-supporting[b-3x0gnonvhm],
.mm-hint[b-3x0gnonvhm],
.mm-caption[b-3x0gnonvhm] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-tertiary);
}

.mm-caption[b-3x0gnonvhm] { white-space: nowrap; font-weight: 500; }

.mm-hint--warn[b-3x0gnonvhm] { color: var(--text-warning-primary); }

.mm-label[b-3x0gnonvhm] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    font-weight: 500;
    color: var(--text-secondary);
}

.mm-field[b-3x0gnonvhm] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.mm-narrow[b-3x0gnonvhm] { max-width: 16rem; }

.mm-actions[b-3x0gnonvhm] {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-3);
}

.mm-list[b-3x0gnonvhm] {
    margin: 0;
    padding-left: 1.125rem;
}

/* ── Preview: a still copy of the maintenance notice ── */

.mm-stage[b-3x0gnonvhm] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 22rem;
    padding: var(--spacing-5);
    box-sizing: border-box;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--bg-overlay) 55%, var(--bg-tertiary));
}

.mm-notice[b-3x0gnonvhm] {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 24rem;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: var(--bg-primary);
    box-shadow: 0 24px 48px -12px rgb(10 13 18 / 0.32);
}

.mm-notice__strip[b-3x0gnonvhm] {
    position: relative;
    display: block;
    height: 4px;
    overflow: hidden;
    background: color-mix(in srgb, var(--fg-warning-primary) 16%, var(--bg-primary));
}

.mm-notice__bar[b-3x0gnonvhm] {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-warning-solid);
    animation: mm-slide-b-3x0gnonvhm 2.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.mm-notice__body[b-3x0gnonvhm] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-4);
    padding: var(--spacing-6) var(--spacing-6) var(--spacing-5);
    text-align: center;
}

.mm-notice__icon[b-3x0gnonvhm] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--fg-warning-primary) 16%, var(--bg-primary));
    color: var(--fg-warning-primary);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--fg-warning-primary) 7%, var(--bg-primary));
}

.mm-notice__copy[b-3x0gnonvhm] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    min-width: 0;
    width: 100%;
}

.mm-notice__heading[b-3x0gnonvhm] {
    margin: 0;
    font-size: var(--font-size-text-lg);
    line-height: 1.5;
    font-weight: 600;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.mm-notice__message[b-3x0gnonvhm] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-tertiary);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.mm-notice__facts[b-3x0gnonvhm] {
    display: flex;
    width: 100%;
    margin: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
    text-align: left;
}

.mm-notice__facts > div[b-3x0gnonvhm] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    padding: var(--spacing-2) var(--spacing-3);
}

.mm-notice__facts > div + div[b-3x0gnonvhm] { border-left: 1px solid var(--border-secondary); }

.mm-notice__facts dt[b-3x0gnonvhm] {
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
}

.mm-notice__facts dd[b-3x0gnonvhm] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    font-weight: 600;
    color: var(--text-primary);
}

.mm-notice__note[b-3x0gnonvhm] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.5;
    color: var(--text-tertiary);
}

/* ── Banner preview ── */

.mm-banner-preview[b-3x0gnonvhm] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.mm-banner[b-3x0gnonvhm] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--fg-warning-primary) 32%, var(--bg-primary));
    background: color-mix(in srgb, var(--fg-warning-primary) 9%, var(--bg-primary));
    color: color-mix(in srgb, var(--text-warning-primary) 70%, var(--text-primary));
}

.mm-banner p[b-3x0gnonvhm] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
}

.mm-banner strong[b-3x0gnonvhm] { font-weight: 600; }

.mm-banner__icon[b-3x0gnonvhm] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--fg-warning-primary) 16%, var(--bg-primary));
    color: var(--fg-warning-primary);
}

/* ── History ── */

.mm-history[b-3x0gnonvhm] {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mm-history__row[b-3x0gnonvhm] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-3) 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
}

.mm-history__row + .mm-history__row[b-3x0gnonvhm] { border-top: 1px solid var(--border-secondary); }

.mm-history__dot[b-3x0gnonvhm] {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--fg-quaternary);
}

.mm-history__row[data-kind="on"] .mm-history__dot[b-3x0gnonvhm] { background: var(--fg-warning-primary); }

.mm-history__what[b-3x0gnonvhm] {
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--spacing-2);
    flex: 1;
    min-width: 0;
    color: var(--text-tertiary);
}

.mm-history__what strong[b-3x0gnonvhm] {
    font-weight: 500;
    color: var(--text-primary);
}

.mm-history__when[b-3x0gnonvhm] {
    flex-shrink: 0;
    color: var(--text-tertiary);
    white-space: nowrap;
}

@keyframes mm-slide-b-3x0gnonvhm {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(260%); }
}

@media (prefers-reduced-motion: reduce) {
    .mm-notice__bar[b-3x0gnonvhm] { animation: none; }
}
/* /Components/Pages/PatientRepository/PatientRepository.razor.rz.scp.css */
/* ── Patient Repository list page ── */

/* Page padding — layout-list ships with no padding, so the header would sit
   flush against the app-shell edges. Add 15px breathing room for this page.

   T94: the whole column is also narrowed to 90% and centred — the same rule /activity, /chatusers,
   /caseboard and /setting use for their own content column (Setting.razor.css, T58) - rather than
   the header and table spanning the app-shell's full remaining width. Horizontal padding moves off
   .layout-list itself: with both set, the 15px would sit INSIDE the 90% box, insetting the column
   a second time on top of the 5%-a-side margin the width/margin-inline pair already supplies. The
   15px stays for top/bottom breathing room, which the width change does not touch. */
.layout-list[b-jdbcsf882i] {
    padding: 15px 0;
    width: 90%;
    margin-inline: auto;
}

.pr-loading[b-jdbcsf882i] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-10);
}

/* File name column: icon + text */
.pr__filename-cell[b-jdbcsf882i] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
}

.pr__file-icon[b-jdbcsf882i] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--fg-quaternary);
}

.pr__filename-text[b-jdbcsf882i] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-size-text-sm);
    color: var(--fg-primary);
}

/* Copy link icon button */
.pr__copy-btn[b-jdbcsf882i] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--fg-quaternary);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.pr__copy-btn:hover[b-jdbcsf882i] {
    border-color: var(--border-strong);
    color: var(--fg-primary);
    background-color: var(--bg-secondary);
}

.pr__copy-btn:active[b-jdbcsf882i] {
    background-color: var(--bg-tertiary);
}
/* /Components/Pages/PatientRepository/PatientRepositoryForm.razor.rz.scp.css */
/* ── Patient Repository form (inside Modal) ── */

.pr-form__upload-zone[b-e8np04xvk8] {
    /* Extra bottom spacing to separate the upload area from the fields */
    margin-bottom: var(--spacing-2);
}

.pr-form__toggle-row[b-e8np04xvk8] {
    padding: var(--spacing-1) 0;
}

/* ── Edit-mode existing file display ── */
.pr-form__existing-file[b-e8np04xvk8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-4);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
}

.pr-form__existing-file-info[b-e8np04xvk8] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    flex: 1;
    min-width: 0;
    color: var(--fg-quaternary);
}

.pr-form__existing-filename[b-e8np04xvk8] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* /Components/Pages/Setting/Accounts/AccountDetailSlideOut.razor.rz.scp.css */
/* Accounts detail slide-out (Settings › Accounts › an account). The shared SlideOutMenu panel
   is 400px wide, so a long email address has to wrap instead of running out of it. */

/* ---- header: avatar | name / email ---- */
.acct-detail-head[b-pm1in3ajfu] {
    padding-right: var(--spacing-8); /* keep the text clear of the panel's close button */
    text-align: left;                /* the shared header centres text; wrapped lines read left */
}

.acct-detail-head__text[b-pm1in3ajfu] {
    min-width: 0;
}

/* An address has no spaces to break at, so allow a break anywhere rather than overflow. */
.acct-detail-wrap[b-pm1in3ajfu] {
    overflow-wrap: anywhere;
}
/* /Components/Pages/Setting/AiAgent/AiAgentBuilder.razor.rz.scp.css */
/* Tabs is a child component, so its rendered root never carries this file's b-scopeid - ::deep
   is required to reach it from here (see also CaseBoard.razor.css, SavedCustomerData.razor.css,
   AgentConnectMenu.razor.css). Restores the 16px gap the retired .agent-tabs class used to
   provide below the tab strip, so .settings-cols content doesn't sit flush under the underline
   indicator. */
[data-agent-builder][b-av9yhbdxd1]  .agent-tab-strip {
    margin-bottom: 16px;
}
/* /Components/Pages/Setting/Appearance.razor.rz.scp.css */
/* ── Appearance settings tab ──────────────────────────────────────────────
 * Theme cards paint themselves in the theme they represent, so the preview
 * swatches are inline styles from the manifest (NOT tokens) — that is the
 * whole point: you see the other theme's colours while still in the current
 * one. Everything AROUND the previews uses tokens as normal.
 * ======================================================================== */

.appearance-card-subtitle[b-0fjt4fpoly] {
    margin: calc(2px - 16px) 0 0 !important;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-tertiary);
}

/* proto:119 — 3-up at 10px on the artboard's fixed content column, reflowing to auto-fit only
   once the panel is too narrow to hold three. */
.appearance-theme-grid[b-0fjt4fpoly] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 900px) {
    .appearance-theme-grid[b-0fjt4fpoly] {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* RadioCard itself now supplies the border, radius, background and hover/selected states that
   this rule used to own (see .appearance-theme__card etc., removed below) — this wrapper is
   layout-only, grouping the card with its optional palette row underneath. */
.appearance-theme[b-0fjt4fpoly] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

/* Theme cards (T59): the label row and the description read left-aligned, and a long description
   stops at two lines instead of growing the card (the full text is the description's tooltip).
   ::deep because RadioCard's own elements belong to that child component, not to this page. */
.appearance-theme-grid[b-0fjt4fpoly]  .radio-card__footer {
    justify-content: flex-start;
}

.appearance-theme-grid[b-0fjt4fpoly]  .radio-card__description {
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Mini app-shell preview (rendered inside RadioCard's Visual slot) ── */
.appearance-theme__preview[b-0fjt4fpoly] {
    display: flex;
    align-items: stretch;
    gap: var(--spacing-2);
    height: 100%;
    padding: var(--spacing-3);
}

.appearance-theme__preview-rail[b-0fjt4fpoly] {
    flex: 0 0 22px;
    border-radius: var(--radius-sm);
    opacity: 0.9;
}

.appearance-theme__preview-body[b-0fjt4fpoly] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-2);
}

.appearance-theme__preview-pill[b-0fjt4fpoly] {
    width: 46px;
    height: 12px;
    border-radius: 999px;
}

.appearance-theme__preview-line[b-0fjt4fpoly] {
    height: 6px;
    width: 100%;
    border-radius: 999px;
    /* Text colour at low alpha reads as body copy without overpowering the
       brand pill — mirrors how text actually sits against bgPrimary. */
    opacity: 0.28;
}

.appearance-theme__preview-line--short[b-0fjt4fpoly] {
    width: 60%;
}

/* ── Palette dots (only themes with >1 palette render this row) ──
 * No longer nested inside a shared bordered card (RadioCard owns its own card chrome now),
 * so this row carries its own border/radius to still read as one unit with the RadioCard
 * above it, joined by the small gap on .appearance-theme. */
.appearance-palette-row[b-0fjt4fpoly] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-4);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.appearance-palette[b-0fjt4fpoly] {
    /* reset */
    appearance: none;
    background: none;
    font: inherit;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-1) var(--spacing-2);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out;
}

.appearance-palette:hover[b-0fjt4fpoly] {
    background: var(--bg-primary-hover);
}

.appearance-palette:focus-visible[b-0fjt4fpoly] {
    outline: 2px solid var(--border-brand-solid);
    outline-offset: 1px;
}

.appearance-palette--active[b-0fjt4fpoly] {
    border-color: var(--border-brand-solid);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.appearance-palette__dot[b-0fjt4fpoly] {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    flex-shrink: 0;
    /* Hairline keeps a pale palette dot visible on a pale row. */
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
}

.appearance-palette__label[b-0fjt4fpoly] {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}


/* ── Mode and Font rows (proto:129-145) ────────────────────────────────────
 * Label-first rows, vertically centred, separated by the card's own rule rather than by a per-row
 * top border (which Setting.razor.css removes inside this panel).
 *
 * The description takes every pixel the control does not need and the control wraps its own
 * content at the row's right edge (T56/T57). The artboard's fixed 120px label column - later
 * 180px here - wrapped this app's full-sentence copy into a narrow column and left dead space
 * beside it; Translation already lays its rows out this way.
 * ------------------------------------------------------------------------ */
.layout-detail-card .layout-form-row[b-0fjt4fpoly] {
    align-items: center;
}

.layout-detail-card .layout-form-row__label[b-0fjt4fpoly] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.layout-detail-card .layout-form-row__control[b-0fjt4fpoly] {
    flex: 0 0 auto;
    max-width: none;
}

.layout-detail-card .layout-form-row__label h3[b-0fjt4fpoly] {
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.layout-detail-card .layout-form-row__label p[b-0fjt4fpoly] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-tertiary);
}
/* /Components/Pages/Setting/Billing.razor.rz.scp.css */
/* ==========================================================================
 * BILLINGS
 *
 * ONE FIGURE. The five KPI cards, the token-count trend chart, the By category / By model tables and
 * the per-category breakdown this file used to style are all gone along with their markup - what is
 * left is the share of the monthly allowance, and nothing a customer would have to convert.
 *
 * Spacing and geometry below are lifted from the redesign artboard rather than rounded to the
 * spacing scale; type sizes all come from the --font-size-text-* scale (the Phase 1 guardrail).
 * ========================================================================== */

.billing-usage[b-dzr6odts7a] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* --------------------------------------------------------------------------
 * KPI row (proto:191-197)
 *
 * Five across on the artboard's 980px column; auto-fit only once the panel is too narrow to hold
 * them, so the row never collapses into three-and-a-gap.
 * -------------------------------------------------------------------------- */
.billing-usage__cards[b-dzr6odts7a] {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 900px) {
    .billing-usage__cards[b-dzr6odts7a] {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

.billing-card[b-dzr6odts7a] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

/* proto:194 - sentence case, not the all-caps micro-label the previous version used: at 11.5px
   the caps were doing the shouting the 19px figure below is there to do. */
.billing-card__label[b-dzr6odts7a] {
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-quaternary);
}

.billing-card__value[b-dzr6odts7a] {
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-xl);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}


/* --------------------------------------------------------------------------
 * Panels (proto:200-209)
 *
 * A title bar over content that runs edge to edge, so the tables below can carry their own tinted
 * header row and full-width separators the way the artboard draws them.
 * -------------------------------------------------------------------------- */
.billing-usage__grid[b-dzr6odts7a] {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 12px;
}

@media (max-width: 900px) {
    .billing-usage__grid[b-dzr6odts7a] {
        grid-template-columns: 1fr;
    }
}

.billing-usage__panel[b-dzr6odts7a] {
    padding: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.billing-usage__panel-title[b-dzr6odts7a] {
    margin: 0;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

/* proto:201-207 - the chart panel is the one that keeps a padded box, because a chart drawn flush
   to a card edge has nowhere to put its own axis labels. */
.billing-usage__panel--chart[b-dzr6odts7a] {
    padding: 18px 20px;
}

.billing-usage__panel--chart .billing-usage__panel-title[b-dzr6odts7a] {
    margin-bottom: 10px;
    padding: 0;
    border-bottom: none;
    font-size: var(--font-size-text-sm);
}


/* proto:195 - the comparison line, quieter than the figure it qualifies. */
.billing-card__delta[b-dzr6odts7a] {
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-tertiary);
}


/* --------------------------------------------------------------------------
 * Allowance meter
 *
 * Above the KPI row: what share of the workspace's monthly token allowance this period has spent.
 * Display only - crossing 100% recolours the bar and adds a line, and blocks nothing.
 * -------------------------------------------------------------------------- */
.billing-meter[b-dzr6odts7a] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
}

.billing-meter__head[b-dzr6odts7a],
.billing-meter__figures[b-dzr6odts7a] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.billing-meter__period[b-dzr6odts7a] {
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.billing-meter__reset[b-dzr6odts7a] {
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-quaternary);
}

.billing-meter__used[b-dzr6odts7a] {
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.billing-meter__percent[b-dzr6odts7a] {
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-xl);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.billing-meter__track[b-dzr6odts7a] {
    height: 8px;
    border-radius: 999px;
    background: var(--bg-quaternary);
    overflow: hidden;
}

.billing-meter__fill[b-dzr6odts7a] {
    height: 100%;
    border-radius: 999px;
    background: var(--bg-brand-solid);
}

.billing-meter--warn .billing-meter__fill[b-dzr6odts7a] {
    background: var(--bg-warning-solid);
}

.billing-meter--warn .billing-meter__percent[b-dzr6odts7a] {
    color: var(--fg-warning-primary);
}

.billing-meter--over .billing-meter__fill[b-dzr6odts7a] {
    background: var(--bg-error-solid);
}

.billing-meter--over .billing-meter__percent[b-dzr6odts7a] {
    color: var(--fg-error-primary);
}

/* margin:0 is explicit - MettaFlowWeb does not load Portal's global p reset. */
.billing-meter__over[b-dzr6odts7a] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--fg-error-primary);
}
/* /Components/Pages/Setting/ChatSettings/SuggestionsSettingsSection.razor.rz.scp.css */
/* Settings › Chat settings › Suggestions: the read-only lead facts, the include lists and the
   30-day numbers. Everything else is the shared settings layout (layout-detail-card, lm-*). */

.sg-set-facts[b-9b22jft4nn] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

.sg-set-fact[b-9b22jft4nn] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.sg-set-fact__k[b-9b22jft4nn],
.sg-set-stat__k[b-9b22jft4nn] {
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-tertiary);
}

.sg-set-fact__v[b-9b22jft4nn] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    color: var(--text-primary);
}

.sg-set-list[b-9b22jft4nn] {
    display: flex;
    flex-direction: column;
}

.sg-set-item[b-9b22jft4nn] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-secondary);
}

.sg-set-item:last-child[b-9b22jft4nn] {
    border-bottom: none;
}

.sg-set-stats[b-9b22jft4nn] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.sg-set-stat[b-9b22jft4nn] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
}

.sg-set-stat__v[b-9b22jft4nn] {
    font-size: var(--font-size-display-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}
/* /Components/Pages/Setting/Datasource/DatasourceWizard.razor.rz.scp.css */
/* ==========================================================================
 * DATASOURCE WIZARD — width
 *
 * T104: the shared .layout-wizard-step primitive (layouts.css, "P10 Wizard step content
 * wrapper") caps every wizard step at max-width:640px, width:100% - a deliberate readable-form
 * width the same seven other wizards (Messenger, WhatsApp, Telegram, Viber, both Custom Webhook
 * wizards, Outbound's DestinationWizard) all still use unmodified.
 *
 * Datasource's own step sits inside Settings' WIDE panel (settings-panel--wide, ~1174px here),
 * flush against its left edge rather than centred, so the 640px cap left roughly 530px of dead
 * space on the right - not a readable-width form, just an unbalanced one. Widened HERE, scoped to
 * this component only, rather than in the shared primitive: Datasource's own step content
 * (.ids-grid's Method/URL/Timeout/Retries/Cache rows) genuinely uses the extra room, and the other
 * seven wizards' simpler one-or-two-field forms were not part of this task and are left exactly as
 * they were.
 * ========================================================================== */
.layout-wizard-step[b-fyrowvuqw0] {
    max-width: none;
}
/* /Components/Pages/Setting/General.razor.rz.scp.css */
/* ==========================================================================
 * GENERAL SETTINGS
 *
 * Reconstructed from the redesign artboard
 *   docs/MettaFlow screen redesign-handoff/mettaflow-screen-redesign/project/Setting.dc.html
 * (proto:95-111).
 *
 * The panel's chrome - content column, card padding and lift, the rule between the identity
 * fields and the time zone - is painted for every restyled section by Setting.razor.css. What
 * was here before was a single .general-hint rule that no markup referenced, sized from
 * --text-sm, which is not a token in this app (the type scale is --font-size-text-*).
 * ========================================================================== */

/* proto:105-106 - the two identity fields sit side by side at a fixed 14px, not on the form
   grid's wider two-column gutter. */
.layout-form-grid[b-mzmdeu8ilo] {
    gap: 14px;
    align-items: start;
}
/* /Components/Pages/Setting/Integration.razor.rz.scp.css */
/* ==========================================================================
 * INBOUND CHANNELS — the hub's own chrome
 *
 * Reconstructed from the redesign artboard
 *   docs/MettaFlow screen redesign-handoff/mettaflow-screen-redesign/project/Setting.dc.html
 * (proto:234-273).
 *
 * Numbers are lifted from the artboard rather than rounded to the spacing scale — where it says
 * 14px, 11.5px or 9px, this says 14px, 11.5px or 9px. Every colour is a token that already
 * exists in all six themes. The section's 980px content column, its page header and the card
 * chrome of the error state come from Setting.razor.css, which paints them for every restyled
 * section — this file only draws what Integration.razor renders itself.
 *
 * SCOPED, so it is compiled by the .NET SDK: no `npm run css:build` is involved, and no other
 * page can pick these rules up. Scoping is also why nothing here reaches into <Button> or
 * <Badge> — their chrome is the shared button/badge sheets, and the artboard's btn-xs /
 * badge-sm-success are exactly what those sheets already draw.
 * ========================================================================== */


/* --------------------------------------------------------------------------
 * Groups (proto:239-240,256-257)
 *
 * A small-caps label over its grid, 8px apart. The artboard has no card around either group —
 * the cards ARE the surface.
 * -------------------------------------------------------------------------- */
.int-group[b-vnvyjqzom0] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.int-group__label[b-vnvyjqzom0] {
    margin: 0;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

/* The "Coming soon" group carries a sentence under its label; the artboard's own groups do not,
   so this borrows the section header's supporting size. */
.int-group__note[b-vnvyjqzom0] {
    margin: -2px 0 2px;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-tertiary);
}

/* proto:258 — every channel connected. A statement of fact, not an empty state. */
.int-note[b-vnvyjqzom0] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--border-success);
    border-radius: var(--radius-lg);
    background: var(--bg-success-primary);
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-success-primary);
}

.int-note__icon[b-vnvyjqzom0] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--fg-success-primary, var(--text-success-primary));
}


/* --------------------------------------------------------------------------
 * The error state's supporting copy (kept from the pre-redesign hub)
 * -------------------------------------------------------------------------- */
.integration-subtitle[b-vnvyjqzom0] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-tertiary);
}


/* --------------------------------------------------------------------------
 * Card grid (proto:241,259)
 *
 * Three across on the artboard's 980px column; below it the grid falls back to auto-fill so a
 * narrow window does not squeeze three cards into a strip.
 * -------------------------------------------------------------------------- */
.integration-grid[b-vnvyjqzom0] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 900px) {
    .integration-grid[b-vnvyjqzom0] {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}


/* --------------------------------------------------------------------------
 * Channel card (proto:242-253 connected, proto:260-271 on offer)
 * -------------------------------------------------------------------------- */
.integration-card[b-vnvyjqzom0] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease;
}

/* proto:260 — a channel not yet connected is drawn as an outline, not a filled card. */
.integration-card:not(.integration-card--connected)[b-vnvyjqzom0] {
    border: 1px dashed var(--border-primary);
    background: var(--bg-primary);
}

.integration-card:not(.integration-card--connected):hover[b-vnvyjqzom0] {
    background: var(--bg-primary-hover);
}

/* proto:242 — connected cards are a wash of the success surface over the page, NOT a success
   alert: the tint is 45% so a row of them reads as calm rather than as five notifications. */
.integration-card--connected[b-vnvyjqzom0] {
    border: 1px solid var(--border-secondary);
    background: color-mix(in oklch, var(--bg-success-primary) 45%, var(--bg-primary));
    box-shadow: var(--shadow-xs);
}

.integration-card--connected:hover[b-vnvyjqzom0] {
    background: color-mix(in oklch, var(--bg-success-primary) 70%, var(--bg-primary));
}

/* Not a control: no pointer, no hover, and the disabled button inside says why (C27). */
.integration-card--soon[b-vnvyjqzom0] {
    cursor: default;
    opacity: 0.65;
}

.integration-card--soon:hover[b-vnvyjqzom0] {
    background: var(--bg-primary);
}

.integration-card:focus-visible[b-vnvyjqzom0] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
}


/* Head row: icon chip, name, status badge (proto:243-247) */
.integration-card__head[b-vnvyjqzom0] {
    display: flex;
    align-items: center;
    gap: 9px;
}

.integration-card__icon-wrap[b-vnvyjqzom0] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--fg-tertiary);
}

/* proto:244 — a connected channel's chip is brand-tinted. The logos are full-colour SVGs rather
   than the artboard's monochrome glyphs, so the chip carries the tint and the mark stays itself. */
.integration-card__icon-wrap--connected[b-vnvyjqzom0] {
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
}

.integration-card__icon[b-vnvyjqzom0] {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.integration-card__name[b-vnvyjqzom0] {
    flex: 1;
    min-width: 0;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* proto:248,266 — one quiet line: what this connection is, or what the channel connects with. */
.integration-card__meta[b-vnvyjqzom0] {
    margin: 0;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-quaternary);
}

/* proto:249,267 — the button sits at the card's start, sized by its own content. */
.integration-card__actions[b-vnvyjqzom0] {
    display: flex;
    align-self: flex-start;
    gap: 8px;
}


/* --------------------------------------------------------------------------
 * The wizard, in place of the grid (proto:275-357)
 *
 * A connect/configure surface replaces the hub rather than opening over it, and it sits on the
 * same column. The panel's own 15px padding is zeroed for restyled sections in Setting.razor.css,
 * so this wrapper — which is not a .layout-tab-content — has to carry the column itself, or the
 * wizard would run to the panel's edge.
 * -------------------------------------------------------------------------- */
.integration-wizard-panel[b-vnvyjqzom0] {
    width: 100%;
    max-width: 980px;
    padding: 28px 32px;
}
/* /Components/Pages/Setting/Integrations/CustomWebhook/CustomWebhookManagement.razor.rz.scp.css */
/* The shared .layout-wizard-step (layouts.css) caps steps at 640px; the management tabs and
 * "At a glance" table sit in Settings' wide panel, so lift the cap here. Same override as T104. */
.layout-wizard-step[b-au2wiqrtz3] {
    max-width: none;
}
/* /Components/Pages/Setting/Outbound/DestinationCard.razor.rz.scp.css */
/* ==========================================================================
 * OUTBOUND CHANNELS — a connected destination
 *
 * Reconstructed from the redesign artboard
 *   docs/MettaFlow screen redesign-handoff/mettaflow-screen-redesign/project/Setting.dc.html
 * (proto:781-815).
 *
 * Numbers are lifted from the artboard rather than rounded to the spacing scale.
 *
 * SCOPED for the reason given at the top of OutboundSection.razor.css: `.ob-card` is defined in
 * TWO global stylesheets (outbound-channels.css:46 and onboarding.css:173) and the onboarding
 * organisation step renders that class too. A scoped `.ob-card` here is (0,2,0) and wins for this
 * component only, leaving both global definitions - and onboarding - exactly as they were.
 * ========================================================================== */

/* proto:783 - a live destination is tinted, so "this one is exporting" reads down a list of six
   before any badge is looked at. The artboard's own value: 45% of the success surface mixed into
   the card surface, which stays legible in all six themes because both sides are tokens.
   The two ATTENTION states below keep the plain surface - a card that is NOT exporting must not
   wear the colour that means it is. */
.ob-card[b-cwmz3uk7ee] {
    gap: 14px;
    padding: 16px;
    background: color-mix(in oklch, var(--bg-success-primary) 45%, var(--bg-primary));
}

.ob-card--attention[b-cwmz3uk7ee],
.ob-card--stopped[b-cwmz3uk7ee] {
    background: var(--bg-primary);
}

/* proto:784-790 */
.ob-card__head[b-cwmz3uk7ee] {
    gap: 10px;
}

.ob-card__icon svg[b-cwmz3uk7ee] {
    width: 17px;
    height: 17px;
}

.ob-card__name[b-cwmz3uk7ee] {
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
}

.ob-card__meta[b-cwmz3uk7ee] {
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
}

/* proto:792-809 - the scope and cadence editors sit side by side under the identity row. */
.ob-controls[b-cwmz3uk7ee] {
    gap: 12px;
}

/* proto:811 */
.ob-card__foot[b-cwmz3uk7ee] {
    gap: 10px;
    padding-top: 11px;
}

.ob-card__last[b-cwmz3uk7ee] {
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
}
/* /Components/Pages/Setting/Outbound/DestinationWizard.razor.rz.scp.css */
/* The shared .layout-wizard-step (layouts.css) caps steps at 640px; in Settings' wide panel that
 * leaves the step flush-left with dead space beside it. Same override as DatasourceWizard (T104). */
.layout-wizard-step[b-33q1nqko6o] {
    max-width: none;
}
/* /Components/Pages/Setting/Outbound/OutboundSection.razor.rz.scp.css */
/* ==========================================================================
 * OUTBOUND CHANNELS — section surface
 *
 * Reconstructed from the redesign artboard
 *   docs/MettaFlow screen redesign-handoff/mettaflow-screen-redesign/project/Setting.dc.html
 * (proto:631-839).
 *
 * Numbers are lifted from the artboard rather than rounded to the spacing scale. The section's
 * content column (980px), card chrome and page header come from Setting.razor.css, which paints
 * them for every restyled section.
 *
 * SCOPED, NOT WRITTEN INTO Styles/components/outbound-channels.css. That file is global and
 * `.ob-card` is ALREADY defined twice across the bundle - here and at onboarding.css:173, which
 * the onboarding organisation step renders. Restyling the shared class would have silently moved
 * a page this change was never asked to touch, and which of the two definitions wins depends on
 * nothing more than @import order in app.css. Scoping also means no `npm run css:build`: the .NET
 * SDK compiles this file, Tailwind does not.
 *
 * Every rule below is (0,2,0) or better against the global file's (0,1,0), so it wins without
 * !important.
 * ========================================================================== */


/* --------------------------------------------------------------------------
 * Main column (proto:632)
 *
 * T103: the artboard wraps its whole section - header, groups, everything - in one flex column at
 * gap:16px, so "Active destinations" and "Add a destination" were always meant to read as two
 * blocks a clear 16px apart. The live markup nests them one level deeper, inside
 * .settings-cols__main (settings-rail.css - shared with six other rail screens, so this rule is
 * scoped here, not there): .layout-body's own gap:16px reaches its direct children
 * (PageHeader, .settings-cols) but never this grandchild, so the two .ob-group siblings had no
 * gap of their own and sat flush against each other.
 * -------------------------------------------------------------------------- */
.settings-cols__main[b-6nr4u7q37a] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --------------------------------------------------------------------------
 * Groups (proto:778-780,821-823)
 * -------------------------------------------------------------------------- */
.ob-group[b-6nr4u7q37a] {
    gap: 8px;
}

.ob-group__label[b-6nr4u7q37a] {
    font-size: var(--font-size-text-sm);
    line-height: 1.4;
    letter-spacing: 0.05em;
}

/* proto:780 - connected destinations stack at 10px. */
.ob-list[b-6nr4u7q37a] {
    gap: 10px;
}


/* --------------------------------------------------------------------------
 * Available-destination tiles (proto:824-836)
 *
 * The artboard draws three across on its 980px column. The live grid auto-fills from a 220px
 * minimum, which lands on four at this width and reads as a denser thing than the artboard's.
 * -------------------------------------------------------------------------- */
.ob-tiles[b-6nr4u7q37a] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 900px) {
    .ob-tiles[b-6nr4u7q37a] {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.ob-tile[b-6nr4u7q37a] {
    gap: 8px;
    padding: 14px;
}

/* proto:827-831 - the tile's head is a neutral icon chip beside the name, at 9px.
   NOTE a deliberate deviation: the artboard draws a card with a separate "Set up" button inside
   it. Here the whole tile IS the button, and it stays that way - a nested <button> is invalid
   HTML, and this element's `disabled` is load-bearing (it is what makes an unavailable
   destination inert rather than a dead control, C27). The chrome matches; the affordance is the
   tile itself. */
.ob-tile__head[b-6nr4u7q37a] {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ob-tile__icon[b-6nr4u7q37a] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--fg-tertiary);
}

.ob-tile__icon svg[b-6nr4u7q37a] {
    width: 17px;
    height: 17px;
}

.ob-tile__name[b-6nr4u7q37a] {
    flex: 1;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.ob-tile__meta[b-6nr4u7q37a] {
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-quaternary);
}
/* /Components/Pages/Setting/PartnerAgents/InvitePartnerAgentSlideOut.razor.rz.scp.css */
/* Invite partner agent slide-out. The panel is the shared SlideOutMenu; the host div only exists
   so ::deep can widen that component's panel to the canvas width (480px). */

.pa-invite-host[b-mbam7lnnqr]  .slide-out-panel {
    width: 30rem;
}

.pa-panel-head[b-mbam7lnnqr] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    padding-right: var(--spacing-8);
    text-align: left;
}

.pa-panel-head__sub[b-mbam7lnnqr],
.pa-panel-note[b-mbam7lnnqr] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: var(--line-height-text-sm);
    color: var(--text-tertiary);
}

.pa-panel-foot[b-mbam7lnnqr] {
    align-items: center;
}

/* ---- "What a partner agent can do" (canvas: grey box, green ticks, red crosses) ---- */
.pa-can[b-mbam7lnnqr] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    padding: var(--spacing-4);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    background: var(--bg-secondary-subtle);
}

.pa-can__heading[b-mbam7lnnqr] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.pa-can__list[b-mbam7lnnqr] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.pa-can__item[b-mbam7lnnqr] {
    position: relative; /* anchors the screen-reader prefix below */
    display: flex;
    align-items: center;
    gap: var(--spacing-2-5);
    font-size: var(--font-size-text-sm);
    line-height: var(--line-height-text-sm);
    color: var(--text-secondary);
}

.pa-can__mark[b-mbam7lnnqr] {
    display: inline-flex;
    flex: 0 0 auto;
}

.pa-can__item--yes .pa-can__mark[b-mbam7lnnqr] {
    color: var(--fg-success-primary);
}

.pa-can__item--no .pa-can__mark[b-mbam7lnnqr] {
    color: var(--fg-error-primary);
}

/* "Can:" / "Cannot:" for screen readers - the tick and cross are aria-hidden. */
.pa-can__sr[b-mbam7lnnqr] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
/* /Components/Pages/Setting/PartnerAgents/PartnerAgentDetailSlideOut.razor.rz.scp.css */
/* Partner agent detail slide-out. The host div exists only so ::deep can widen the shared
   SlideOutMenu's panel to the canvas width (560px); the customers list needs the room. */

.pa-detail-host[b-pvksc70x2m]  .slide-out-panel {
    width: 35rem;
}

/* ---- header: avatar | name + status / email / phone ---- */
.pa-detail-head[b-pvksc70x2m] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3-5);
    padding-right: var(--spacing-8);
    text-align: left;
    min-width: 0;
}

.pa-detail-head__text[b-pvksc70x2m] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-0-5);
    min-width: 0;
}

.pa-detail-head__line[b-pvksc70x2m] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-2);
}

.pa-detail-head__contact[b-pvksc70x2m] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
    overflow-wrap: anywhere;
}

/* ---- facts: the shared .panel-row key/value rows ---- */
.pa-facts[b-pvksc70x2m] {
    display: flex;
    flex-direction: column;
}

/* ---- a titled block: customers, invite, enable, danger zone ---- */
.pa-block[b-pvksc70x2m] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2-5);
}

.pa-block--boxed[b-pvksc70x2m],
.pa-block--danger[b-pvksc70x2m] {
    padding: var(--spacing-4);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
}

.pa-block--danger[b-pvksc70x2m] {
    border-color: var(--border-error);
    background: var(--bg-error-primary);
}

.pa-block__head[b-pvksc70x2m] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--spacing-2);
}

.pa-block__heading[b-pvksc70x2m] {
    margin: 0;
    font-size: var(--font-size-text-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.pa-block__heading--danger[b-pvksc70x2m] {
    font-size: var(--font-size-text-sm);
    color: var(--text-error-primary);
}

.pa-block__aside[b-pvksc70x2m],
.pa-block__foot[b-pvksc70x2m] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: var(--line-height-text-sm);
    color: var(--text-tertiary);
}

.pa-block__text[b-pvksc70x2m] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: var(--line-height-text-sm);
    color: var(--text-secondary);
}

/* ---- customers: name + added | lane | Move to... ---- */
.pa-customers[b-pvksc70x2m] {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
}

.pa-customers__row[b-pvksc70x2m] {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) 10rem;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-2-5) var(--spacing-3-5);
    border-bottom: 1px solid var(--border-secondary);
}

.pa-customers__row:last-child[b-pvksc70x2m] {
    border-bottom: 0;
}

.pa-customers__row--moved .pa-customers__name[b-pvksc70x2m] {
    color: var(--text-tertiary);
}

.pa-customers__who[b-pvksc70x2m] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pa-customers__name[b-pvksc70x2m] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.pa-customers__sub[b-pvksc70x2m] {
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
}

.pa-customers__move[b-pvksc70x2m] {
    min-width: 0;
}

.pa-customers__moved[b-pvksc70x2m] {
    font-size: var(--font-size-text-sm);
    color: var(--text-success-primary);
}

@media (max-width: 640px) {
    .pa-customers__row[b-pvksc70x2m] {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* /Components/Pages/Setting/PartnerAgents/PartnerAgentsSection.razor.rz.scp.css */
/* Settings -> Access -> Partner agents. Tokens only; the list itself is the shared DataTable. */

/* ---- The "Agent Portal address" strip (canvas: address | note | Copy link) ---- */
.pa-portal[b-tepof7e3ux] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-4);
    padding: var(--spacing-3) var(--spacing-4);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    background: var(--bg-secondary-subtle);
}

.pa-portal__address[b-tepof7e3ux] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-0-5);
    flex: 1 1 16rem;
    min-width: 0;
}

.pa-portal__label[b-tepof7e3ux] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.pa-portal__url[b-tepof7e3ux] {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.pa-portal__missing[b-tepof7e3ux] {
    font-size: var(--font-size-text-sm);
    color: var(--text-warning-primary);
}

.pa-portal__note[b-tepof7e3ux] {
    flex: 1 1 18rem;
    max-width: 22rem;
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: var(--line-height-text-sm);
    color: var(--text-tertiary);
}
/* /Components/Pages/Setting/PartnerAgents/PartnerInviteCode.razor.rz.scp.css */
/* The one-time invite code, shown when the invite email could not be sent. */

.pa-code[b-au9iurd7bz] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.pa-code__box[b-au9iurd7bz] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    padding: var(--spacing-4);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    background: var(--bg-secondary-subtle);
}

.pa-code__label[b-au9iurd7bz] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

/* Prominent on purpose: this is read aloud or typed from the screen. */
.pa-code__value[b-au9iurd7bz] {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-text-xl);
    line-height: var(--line-height-text-xl);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.12em;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.pa-code__url[b-au9iurd7bz] {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-text-sm);
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.pa-code__missing[b-au9iurd7bz] {
    font-size: var(--font-size-text-sm);
    color: var(--text-warning-primary);
}

.pa-code__hint[b-au9iurd7bz] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: var(--line-height-text-sm);
    color: var(--text-tertiary);
}
/* /Components/Pages/Setting/Setting.razor.rz.scp.css */
/* ==========================================================================
 * SETTINGS SHELL
 *
 * Reconstructed from the redesign artboard
 *   docs/MettaFlow screen redesign-handoff/mettaflow-screen-redesign/project/Setting.dc.html
 * (shell proto:39-93, nav row model proto:1664-1700).
 *
 * Numbers are lifted from the artboard rather than rounded to the spacing scale - where it says
 * 9px, 11px or 11.5px, this says 9px, 11px or 11.5px. Colours are all tokens; the artboard's base
 * design system is a subset of Styles/, so every token used here already exists in all six themes.
 *
 * SCOPED TO .settings-shell ON PURPOSE. `.layout-settings` and its two children are shared with
 * CaseboardSetup, ThreadCaseBoard, Team and ChatActions; writing the artboard's chrome into
 * layouts.css would restyle four pages this change was not asked to touch.
 *
 * ::deep is required for every rule that reaches into a child component (the section components
 * and the layout primitives THEY render). Blazor stamps this file's scope attribute only on
 * elements Setting.razor itself renders, so without ::deep those rules silently never match.
 * ========================================================================== */


/* --------------------------------------------------------------------------
 * Shell (proto:39-41)
 *
 * The artboard is full-bleed: the sub-nav's own right border is the only division and the panel
 * runs to the window edge. The layout primitive draws a rounded, bordered card instead.
 * -------------------------------------------------------------------------- */
.layout-settings.settings-shell[b-e07wrj0s4h] {
    min-height: 0;
    border: none;
    border-radius: 0;
    background: var(--bg-primary);
}


/* --------------------------------------------------------------------------
 * Sub-nav sidebar (proto:56-57)
 *
 * 264px and WHITE in the artboard; the primitive is 240px on --bg-secondary. Padding moves off
 * the sidebar onto .sidebar-nav-items so the scroll container is the nav itself, as it is there.
 * -------------------------------------------------------------------------- */
.settings-shell .layout-settings__sidebar[b-e07wrj0s4h] {
    width: 264px;
    min-width: 264px;
    padding: 0;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-secondary);
    overflow-y: auto;
}

.settings-shell .sidebar-nav-items[b-e07wrj0s4h] {
    gap: 6px;
    padding: 16px 12px;
}

/* proto:57 */
.settings-shell .settings-nav__title[b-e07wrj0s4h] {
    margin: 0 0 12px;
    padding: 0 8px;
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-lg);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Group headings (proto:60). Every group carries the 16px lead-in, the first included - the
   heading is never the nav's first child (the <h1> is), so the app sidebar's
   .sidebar-nav-section-label:first-child rule, which zeroes it, does not reach these. */
.settings-shell .sidebar-nav-section-label[b-e07wrj0s4h] {
    margin: 16px 0 6px;
    padding: 0 8px;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}


/* --------------------------------------------------------------------------
 * Nav rows (proto:61-68, row model proto:1691-96)
 *
 * Two lines per row, so the row is sized by its content rather than by the app sidebar's
 * single-line min-height.
 * -------------------------------------------------------------------------- */
.settings-shell .sidebar-nav-item[b-e07wrj0s4h] {
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 9px 10px;
    min-height: 0;
    border: none;
    border-radius: var(--radius-lg);
    background: transparent;
}

.settings-shell .sidebar-nav-item:hover:not([disabled])[b-e07wrj0s4h] {
    background: var(--bg-secondary-hover);
}

.settings-shell .sidebar-nav-item.active[b-e07wrj0s4h] {
    background: var(--bg-brand-primary);
}

.settings-shell .sidebar-nav-item-icon[b-e07wrj0s4h] {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    color: var(--fg-tertiary);
}

/* The row icons are inline SVGs authored at 20px in Setting.razor, so their width/height
   attributes have to be overridden rather than inherited. */
.settings-shell .sidebar-nav-item-icon svg[b-e07wrj0s4h] {
    display: block;
    width: 19px;
    height: 19px;
}

.settings-shell .sidebar-nav-item.active .sidebar-nav-item-icon[b-e07wrj0s4h] {
    color: var(--fg-brand-primary);
}

.settings-shell .sidebar-nav-item[disabled] .sidebar-nav-item-icon[b-e07wrj0s4h] {
    color: var(--text-disabled);
}

/* The row's text column. Label and description are one stacked block so the "Soon" badge stays on
   the row's own centre line (proto:66-68). */
.settings-shell .sidebar-nav-item-text[b-e07wrj0s4h] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-secondary);
}

.settings-shell .sidebar-nav-item.active .sidebar-nav-item-text[b-e07wrj0s4h] {
    font-weight: 600;
    color: var(--fg-brand-primary);
}

.settings-shell .sidebar-nav-item[disabled] .sidebar-nav-item-text[b-e07wrj0s4h] {
    color: var(--text-disabled);
}

.settings-shell .settings-nav__label[b-e07wrj0s4h],
.settings-shell .settings-nav__desc[b-e07wrj0s4h] {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.settings-shell .settings-nav__desc[b-e07wrj0s4h] {
    font-size: var(--font-size-text-xs);
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-quaternary);
}

.settings-shell .sidebar-nav-item.active .settings-nav__desc[b-e07wrj0s4h] {
    color: var(--text-brand-primary);
}

.settings-shell .sidebar-nav-item[disabled] .settings-nav__desc[b-e07wrj0s4h] {
    color: var(--text-disabled);
}


/* --------------------------------------------------------------------------
 * Panel (proto:74)
 *
 * Tinted behind the section's white cards, and carrying NO padding of its own: the artboard puts
 * the page gutter on each section's own content column, which is what lets Billings run wider
 * than the other three.
 *
 * Applied only while a RESTYLED section is showing (Setting.razor `PanelCss`), so the sections
 * still on their original layout keep the primitive's padding and background.
 * -------------------------------------------------------------------------- */
.settings-shell .settings-panel--redesign[b-e07wrj0s4h] {
    padding: 0;
    background: var(--bg-secondary-subtle);
}

/* --------------------------------------------------------------------------
 * The panel is the containing block for whatever a section positions absolutely
 *
 * Fix-Loop, /setting: two vertical scrollbars side by side at the panel's right edge - the panel's
 * own and a full-height WINDOW one. .app-shell is 100vh with overflow:hidden, so a window scrollbar
 * always means the DOCUMENT grew, and it grows when an absolutely-positioned element has no
 * positioned ancestor: its containing block is then the initial containing block, so it is laid out
 * in document coordinates and is NOT clipped by this overflow:auto panel. The Leads section's
 * visually-hidden "Remove" column headers (.lm-sr-only, leads.css) are one such element; any
 * section's sr-only label or hidden native input sitting below the fold does the same.
 *
 * Positioning the panel makes IT the containing block, so those elements are clipped by and scroll
 * with the panel and the window never scrolls. No visual change: they carry no offsets, so they keep
 * their static position. Popups are unaffected - Dropdown places itself with measured fixed
 * coordinates, and Popover and Tooltip anchor to their own position:relative wrappers.
 * -------------------------------------------------------------------------- */
.settings-shell .layout-settings__panel[b-e07wrj0s4h] {
    position: relative;
}

/* --------------------------------------------------------------------------
 * THE CONTENT COLUMN — T36, and the ONE place that decides it
 *
 * Every settings section's content column is 80% of the panel, centred in it. One rule, because
 * the complaint T36 was filed on was that there was no one rule: the column was being set in SIX
 * files at EIGHT different widths, and never centred.
 *
 *   Setting.razor.css     860px default, 980px .settings-panel--wide, 920px .settings-panel--medium
 *   rule-base.css         1180px for .layout-body[data-rb-state="ready"]
 *   extraction.css        1364px for [data-extractions-state="editing"]
 *   outbound-channels.css 1364px for [data-outbound-state="ready"]
 *   inbound-datasource.css 1364px for [data-ids-state="ready"]
 *   ai-agent.css          1364px for [data-agents-state="editing"|"ready"]
 *   Accounts              no column at all (.layout-list was never named)
 *   Inbound Channels      no column in its wizard state (.integration-wizard-panel, never named)
 *
 * So a section could change width when its own state changed, and two sections had no column. All
 * five per-state overrides are deleted at their source rather than out-specified from here: one
 * place deciding the column is the property that stops this recurring, and a second override
 * layered on top would have preserved the cause.
 *
 * Why 80% is bounded and not a runaway: MainLayout's .content already caps the page at 90rem
 * (1440px) and the sub-nav takes 264px, so the panel tops out near 1176px and this column near
 * 941px — inside the 860-980 band the artboard was already working in. The 1364px states were
 * never really 1364 either; that is wider than the panel can ever be, so they were "full width".
 * Those five now narrow to the same 80% as everything else, which is the visible trade this makes.
 *
 * NOT removed here, deliberately: Setting.razor still emits .settings-panel--wide and
 * .settings-panel--medium, which after this change are modifiers that modify nothing. Every rule
 * that read them is gone, so they are inert — but that file carries unrelated in-progress work in
 * the same working tree, and deleting its WideSections/MediumSections arrays would have swept that
 * into this commit. It is a one-minute follow-up once Setting.razor is otherwise clean.
 *
 * Scoped on .settings-shell .layout-settings__panel, NOT on .settings-panel--redesign: Accounts is
 * not a redesigned section and still has to get the column. .layout-settings__panel is rendered by
 * Setting.razor, so it carries this file's scope attribute and ::deep reaches the section
 * components' own roots from there.
 *
 * ::deep > , NOT a plain ::deep descendant (T78): Quick Reply's tab body (QuickReplyAction) nests a
 * SECOND .layout-list (TextReplyList) inside its own outer one. A descendant match would style
 * both, compounding to 90% of 90%; the direct-child combinator reaches only the panel's own
 * immediate child - the same discipline chat-actions.css's three-level `>` chain already documents,
 * now needed here too because Quick Reply is the first Settings section to nest one of these roots
 * inside another.
 * -------------------------------------------------------------------------- */
.settings-shell .layout-settings__panel[b-e07wrj0s4h]  > .layout-tab-content,
.settings-shell .layout-settings__panel[b-e07wrj0s4h]  > .layout-body,
.settings-shell .layout-settings__panel[b-e07wrj0s4h]  > .layout-list,
.settings-shell .layout-settings__panel[b-e07wrj0s4h]  > .perm-section,
.settings-shell .layout-settings__panel[b-e07wrj0s4h]  > .integration-wizard-panel,
/* T78: the Chat settings group's Flows section (FlowsSettingsSection -> FlowsAction) switches its
   own root to the Flow designer, which carries no layout-* class (same reason it needed naming on
   the old /chatactions page's own version of this rule, chat-actions.css). */
.settings-shell .layout-settings__panel[b-e07wrj0s4h]  > .flow-designer {
    width: 90%; /* T58: was 80% (T36); /chatactions and /activity use the same 90% column */
    /* max-width is reset, not merely unset: .perm-section carries its own global max-width: 920px
       in permission-matrix.css, deliberately, so that Roles still looks right if it is ever mounted
       outside this panel. Left alone it would cap Roles at 920px while every other section sat at
       ~941px — the same inconsistency in miniature. The global cap stays for the mounted-elsewhere
       case; inside this panel the column decides. */
    max-width: none;
    margin-inline: auto;
}

/* The redesign artboard's column rhythm (proto:96,114,152 - and the shell's own loading state,
   proto:76). Width is NOT set here any more; this is padding and spacing only. .perm-section is
   named alongside the layout-* primitives because Roles roots on it (proto:843): it is a section
   component, not a page, and it owns its own root.

   T95/T96/T97 removed .layout-tab-content's own padding on the premise that
   .layout-settings__panel (layouts.css) already insets its content 15px - true for the
   NON-redesigned sections (Actions and the rest of the Chat settings group render straight
   onto .layout-settings__panel, so its 15px is the only inset they get), but FALSE for a
   redesigned panel: .settings-panel--redesign zeroes the panel's own padding (proto:74, above -
   the artboard puts the gutter on each section's content column, not the panel), and has done
   so since T36/T58, well before T95/96/97. Zeroing .layout-tab-content's padding on top of that
   left General, Appearance, Translation and Billing with NO inset at all - confirmed live
   (insetTop: 0px) rather than the "doubled" 43px the T95/96/97 diagnosis assumed.

   T98: captured on Actions (.layout-settings__panel, unredesigned, still a clean 15px inset) with
   "adopt this container's padding... for all pages of /setting" - i.e. undo the zero, but land on
   the SAME 15px Actions already has rather than the pre-T95/96/97 28px/32px, so every settings
   section's content now sits the identical distance off the panel edge regardless of which CSS
   path gives it that inset.

   2026-09-28: and now ONE rule for every root, because T98's "every settings section's content sits
   the identical distance off the panel edge" was still only true of the sections rooting on
   .layout-tab-content. .layout-body (Inbound Datasource, Rule base, Outbound Channels, AI agents,
   Data extraction, Message templates) and .perm-section (Roles) carried 28px 32px - nearly double
   the gutter of Inbound Channels beside them in the same sub-nav - and .layout-list (Accounts) was
   never named at all. The roots stay as they are: .layout-body's `flex: 1` and .layout-list's
   internal table scrolling are behaviour, not spacing, and only the spacing was inconsistent. */
.settings-panel--redesign[b-e07wrj0s4h]  .layout-tab-content,
.settings-panel--redesign[b-e07wrj0s4h]  .layout-body,
.settings-panel--redesign[b-e07wrj0s4h]  .layout-list,
.settings-panel--redesign[b-e07wrj0s4h]  .perm-section {
    margin-top: 0;
    padding: 15px;
    gap: 16px;
}


/* --------------------------------------------------------------------------
 * Section headers (proto:97,115,153,189)
 *
 * The artboard's section heading is 18px display over a 13px tertiary line, 4px apart. PageHeader
 * is a shared component sized for a full page header (24px over 18px, --spacing-xl apart), so it
 * is re-sized here for the restyled panel only - never globally.
 * -------------------------------------------------------------------------- */
.settings-panel--redesign[b-e07wrj0s4h]  .page-header,
.settings-panel--redesign[b-e07wrj0s4h]  .page-header-content {
    gap: 10px;
}

.settings-panel--redesign[b-e07wrj0s4h]  .page-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.settings-panel--redesign[b-e07wrj0s4h]  .page-header-title {
    font-size: var(--font-size-text-xl);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.settings-panel--redesign[b-e07wrj0s4h]  .page-header-supporting {
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
}


/* --------------------------------------------------------------------------
 * Cards (proto:98,117,154,209)
 *
 * Same surface and border as the primitive, plus the artboard's tighter 20px padding, its lift,
 * and a real 16px gap between rows - the primitive stacks its children with no rhythm of its own.
 * -------------------------------------------------------------------------- */
.settings-panel--redesign[b-e07wrj0s4h]  .layout-detail-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    box-shadow: var(--shadow-xs);
}

/* Rows inside a card are separated by the card's own gap and by explicit rules, the way the
   artboard draws them, so the primitive's per-row top border and vertical padding would double up
   against that gap. */
.settings-panel--redesign[b-e07wrj0s4h]  .layout-detail-card .layout-form-row {
    gap: 14px;
    padding: 0;
    border-top: none;
}

/* A separator drawn as a row of its own (proto:128,136,174). */
.settings-panel--redesign[b-e07wrj0s4h]  .settings-rule {
    height: 1px;
    flex-shrink: 0;
    background: var(--border-tertiary);
}

/* A small-caps label introducing a block inside a card (proto:156,175). */
.settings-panel--redesign[b-e07wrj0s4h]  .settings-group-label {
    margin: 0;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

/* A card label (proto:118). The primitive gives it a bottom border and its own 16px lead-out,
   both of which fight the card's flex gap now that the card has one. */
.settings-panel--redesign[b-e07wrj0s4h]  .layout-detail-card__title {
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

/* A label and its supporting line are a 2px pair on the artboard, so the supporting line pulls
   back out of the card's 16px rhythm rather than sitting a whole row below its own label. */
.settings-panel--redesign[b-e07wrj0s4h]  .layout-detail-card__title + .appearance-card-subtitle,
.settings-panel--redesign[b-e07wrj0s4h]  .layout-detail-card__title + .translation-card-subtitle {
    margin: calc(2px - 16px) 0 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-tertiary);
}


/* --------------------------------------------------------------------------
 * A section's own sticky footer (the AI agent builder's draft bar)
 *
 * The section column carries 28px of bottom padding, and a sticky `bottom: 0` bar can never
 * reach past it: scrolled to the end, the bar came to rest 28px short of the scroller's bottom
 * edge with a dead white strip under it. Pulling the last child up by exactly that padding puts
 * the bar flush against the bottom of the scroll area, which is what "sticky to the bottom"
 * is supposed to mean.
 * -------------------------------------------------------------------------- */
.settings-panel--redesign[b-e07wrj0s4h]  .agent-draftbar {
    margin-bottom: -28px;
}
/* /Components/Pages/Setting/Templates/TemplatesSection.razor.rz.scp.css */
/* ==========================================================================
 * SETTINGS -> MESSAGE TEMPLATES
 *
 * This section was the last one in the Integration group still drawing itself on the generic
 * wizard chrome (.wizard-card / .wizard-selectable-item). It now uses the redesign artboard's
 * own vocabulary, the one Setting.razor.css already paints for General / Appearance /
 * Translation / Billings / Outbound:
 *
 *   card      = --bg-primary, 1px --border-secondary, --radius-xl, --shadow-xs, 20px padding
 *   heading   = 18px display over 13px --text-tertiary (PageHeader, resized by the shell)
 *   column    = 860px, 28px/32px padding, 16px gap  (Setting.razor.css, redesign panel only)
 *
 * SCOPED, so nothing here reaches the four other screens that share .wizard-*. The section is
 * ALSO mounted pinned inside the Messenger wizard (Integrations/FacebookMessengerIntegration),
 * which is not a redesigned panel - these rules are written to stand on their own there too,
 * taking only the column geometry from the shell when the shell offers it.
 *
 * Two shapes are deliberately NOT reused from the old markup:
 *
 *   1. .wizard-selectable-item for list rows. It is a SELECTABLE affordance - pointer cursor,
 *      brand-tinted hover, --selected modifier - and a template row is not selectable. The rows
 *      are a table now: a grid with a header, no hover state, and the only interactive thing in
 *      the row is the Delete button that was always the only interactive thing in the row.
 *
 *   2. .wizard-card for the 24-hour policy. It sat at the top with the same weight as the Agent
 *      Reply card, so the rule competed with the answer. It is a footnote chip at the bottom now.
 *
 * No colour is literal; every value is a token, so all six themes and both modes follow.
 * ========================================================================== */


/* --------------------------------------------------------------------------
 * Shared bits
 * -------------------------------------------------------------------------- */

.mt-eyebrow[b-0yywskn3au] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

.mt-rule[b-0yywskn3au] {
    height: 1px;
    flex-shrink: 0;
    background: var(--border-tertiary);
}

.mt-card[b-0yywskn3au] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
}

/* The status disc. Its tint is the ONLY place a status colour is decided outside the badge, and
   it is driven by the same StatusView.BadgeColor - never by a second opinion about approval. */
.mt-disc[b-0yywskn3au] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
}

.mt-disc svg[b-0yywskn3au] {
    display: block;
}

.mt-disc--success[b-0yywskn3au] {
    background: var(--bg-success-primary);
    border-color: var(--success-200);
    color: var(--fg-success-primary);
}

.mt-disc--warning[b-0yywskn3au] {
    background: var(--bg-warning-primary);
    border-color: var(--warning-200);
    color: var(--fg-warning-primary);
}

.mt-disc--error[b-0yywskn3au] {
    background: var(--bg-error-primary);
    border-color: var(--error-200);
    color: var(--fg-error-primary);
}

.mt-disc--gray[b-0yywskn3au] {
    background: var(--bg-tertiary);
    border-color: var(--border-secondary);
    color: var(--fg-quaternary);
}


/* --------------------------------------------------------------------------
 * Which Facebook Page these templates belong to
 *
 * A template's approval belongs to ONE page, so the page is named on the screen rather than
 * assumed. Slim on purpose: it is context, not a control.
 * -------------------------------------------------------------------------- */

.mt-context[b-0yywskn3au] {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 13px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.mt-context__avatar[b-0yywskn3au] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--bg-brand-primary);
    color: var(--text-brand-primary);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-bold);
}

.mt-context__text[b-0yywskn3au] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.mt-context__name[b-0yywskn3au] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    color: var(--text-primary);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mt-context__meta[b-0yywskn3au] {
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-quaternary);
}


/* --------------------------------------------------------------------------
 * The Agent Reply card
 *
 * The one row the 24-hour window turns on, so it leads with the ANSWER - can an agent reply
 * after the window closes - rather than with a label and a badge to decode. The badge and the
 * explanation below it are unchanged and still come from StatusView.
 * -------------------------------------------------------------------------- */

.mt-hero__head[b-0yywskn3au] {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.mt-hero__body[b-0yywskn3au] {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.mt-hero__title[b-0yywskn3au] {
    margin: 0;
    font-size: var(--font-size-text-lg);
    font-weight: var(--font-weight-bold);
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.mt-hero__explain[b-0yywskn3au] {
    margin: 0;
    max-width: 62ch;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-tertiary);
}

.mt-hero__foot[b-0yywskn3au] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
}

.mt-hero__label[b-0yywskn3au] {
    color: var(--text-quaternary);
}

.mt-hero__name[b-0yywskn3au] {
    font-family: var(--font-family-mono);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
}

.mt-hero__sep[b-0yywskn3au] {
    color: var(--border-primary);
}

.mt-hero__actions[b-0yywskn3au] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mt-hero__hint[b-0yywskn3au] {
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
}


/* --------------------------------------------------------------------------
 * Meta's reason
 *
 * Tinted so it reads as a refusal, never truncated and never clipped: the sentence is the only
 * account of why the window stays shut, so the box grows to fit it rather than the other way
 * round (no max-height, no line clamp, wrapping allowed anywhere a long token demands it).
 * -------------------------------------------------------------------------- */

.mt-reason[b-0yywskn3au] {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 13px;
    background: var(--bg-error-primary);
    border: 1px solid var(--error-200);
    border-radius: var(--radius-md);
}

.mt-reason__icon[b-0yywskn3au] {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--fg-error-primary);
}

.mt-reason__text[b-0yywskn3au] {
    margin: 0;
    min-width: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.55;
    color: var(--error-700);
    overflow-wrap: anywhere;
}


/* --------------------------------------------------------------------------
 * The list, as a table
 * -------------------------------------------------------------------------- */

.mt-table[b-0yywskn3au] {
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.mt-table__head[b-0yywskn3au] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-secondary);
}

.mt-table__title[b-0yywskn3au] {
    margin: 0;
    flex: 1;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    color: var(--text-primary);
}

.mt-cols[b-0yywskn3au],
.mt-row[b-0yywskn3au] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px 190px auto;
    gap: 12px;
}

.mt-cols[b-0yywskn3au] {
    padding: 7px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

.mt-row[b-0yywskn3au] {
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-tertiary);
}

/* The last thing in the card carries no rule, whether it is a row or a row's reason strip. */
.mt-table > .mt-item:last-child > :last-child[b-0yywskn3au] {
    border-bottom: none;
}

.mt-cell-name[b-0yywskn3au] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.mt-name-line[b-0yywskn3au] {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.mt-name[b-0yywskn3au] {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    color: var(--text-primary);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mt-preview[b-0yywskn3au] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-quaternary);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mt-lang[b-0yywskn3au] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.mt-cell-status[b-0yywskn3au] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.mt-verdict[b-0yywskn3au] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.4;
    color: var(--text-quaternary);
}

.mt-row-reason[b-0yywskn3au] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 16px 11px;
    background: var(--bg-error-primary);
    border-top: 1px solid var(--error-200);
    border-bottom: 1px solid var(--border-tertiary);
}


/* --------------------------------------------------------------------------
 * Page picker (only when the workspace has more than one Messenger page)
 * -------------------------------------------------------------------------- */

.mt-picker[b-0yywskn3au] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mt-picker__opt[b-0yywskn3au] {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 13px;
    text-align: left;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}

.mt-picker__opt:hover[b-0yywskn3au] {
    border-color: var(--border-brand);
    background: var(--bg-brand-primary);
}

.mt-picker__opt--on[b-0yywskn3au] {
    border-color: var(--border-brand);
    background: var(--bg-brand-primary);
}


/* --------------------------------------------------------------------------
 * Notes: no page connected, and the picker's own header
 * -------------------------------------------------------------------------- */

.mt-note__head[b-0yywskn3au] {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.mt-note__body[b-0yywskn3au] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.mt-note__title[b-0yywskn3au] {
    margin: 0;
    font-size: var(--font-size-text-md);
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    color: var(--text-primary);
}

.mt-note__text[b-0yywskn3au] {
    margin: 0;
    max-width: 70ch;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-tertiary);
}


/* --------------------------------------------------------------------------
 * Empty state
 * -------------------------------------------------------------------------- */

.mt-empty__icon[b-0yywskn3au] {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    color: var(--fg-quaternary);
}


/* --------------------------------------------------------------------------
 * The policy, as a footnote
 * -------------------------------------------------------------------------- */

.mt-policy[b-0yywskn3au] {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 13px;
    background: var(--bg-brand-primary);
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-md);
    color: var(--text-brand-primary);
}

.mt-policy__icon[b-0yywskn3au] {
    flex-shrink: 0;
    margin-top: 1px;
}

.mt-policy__text[b-0yywskn3au] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}


/* --------------------------------------------------------------------------
 * Narrow panels (the Messenger wizard's column, and small windows)
 * -------------------------------------------------------------------------- */

@media (max-width: 720px) {
    .mt-cols[b-0yywskn3au] {
        display: none;
    }

    .mt-row[b-0yywskn3au] {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 8px;
    }

    .mt-lang[b-0yywskn3au] {
        display: none;
    }
}
/* /Components/Pages/Setting/Translation.razor.rz.scp.css */
/* ==========================================================================
 * TRANSLATION SETTINGS
 *
 * Reconstructed from the redesign artboard
 *   docs/MettaFlow screen redesign-handoff/mettaflow-screen-redesign/project/Setting.dc.html
 * (proto:151-185).
 *
 * Numbers are lifted from the artboard rather than rounded to the spacing scale. The card chrome,
 * the small-caps group labels and the rule between the two blocks come from Setting.razor.css,
 * which paints them for every restyled section; only what is specific to this panel lives here.
 * ========================================================================== */


/* --------------------------------------------------------------------------
 * Rows (proto:158,169,176)
 *
 * The artboard's rows read label-first: the description takes the width and the control hugs the
 * right edge. The layout primitive does the opposite - a fixed 17.5rem label beside a control
 * that grows - so both halves are re-proportioned here.
 * -------------------------------------------------------------------------- */
.layout-form-row[b-vzghkuizdw] {
    align-items: center;
    gap: 14px;
}

.layout-form-row__label[b-vzghkuizdw] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    width: auto;
    min-width: 0;
}

.layout-form-row__label h3[b-vzghkuizdw] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.layout-form-row__label p[b-vzghkuizdw] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-tertiary);
}

.layout-form-row__control[b-vzghkuizdw] {
    flex: 0 0 auto;
    max-width: none;
}


/* --------------------------------------------------------------------------
 * Autosave status (proto:181)
 *
 * A quiet line under the card, not a bordered notice: this panel saves on change, so the status
 * is a confirmation the eye can skip rather than something to read. min-height reserves its row
 * so the card does not jump as the message comes and goes.
 * -------------------------------------------------------------------------- */
.translation-status[b-vzghkuizdw] {
    min-height: 16px;
    margin-top: 0;
    padding: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-quaternary);
    background: none;
    border: none;
}
/* /Components/Pages/Setting/WebChat/WebChatConnectionCard.razor.rz.scp.css */
/* ==========================================================================
 * WEBSITE CHAT — the body of one website's card on the Inbound Channels hub
 * (design-spec §6). The card's surface, head, hover and focus ring are the hub's own
 * (Integration.razor.css); this sheet only draws the three rows inside it, on the hub's
 * numbers (meta = xs / quaternary / 1.45, actions = 8px apart, start-aligned).
 * Tokens only (C13), all declared in every theme block.
 * ========================================================================== */

.wcc-meta[b-g1fv97f5em] {
    margin: 0;
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-quaternary);
}

.wcc-tags[b-g1fv97f5em] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-1-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.wcc-actions[b-g1fv97f5em] {
    display: flex;
    flex-wrap: wrap;
    align-self: flex-start;
    gap: var(--spacing-2);
}

/* "Copied" is also announced (WCAG 4.1.3), without moving anything on screen. */
.wcc-sr[b-g1fv97f5em] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
/* /Components/Pages/Setting/WebChat/WebChatConnectPanel.razor.rz.scp.css */
/* ==========================================================================
 * WEBSITE CHAT — connect / manage panel (web-chat-widget design-spec §7, §9)
 *
 * Wizard chrome is the shared family's (integration-wizard.css: breadcrumb, channel head,
 * wizard-card, wizard-note, wizard-step-footer; custom-webhook.css: cw-danger rows). This sheet
 * only draws what is new: the domain list, the colour row, the live preview and the manage
 * summary.
 *
 * Tokens only (C13), each checked in all 8 theme blocks (untitled / bold / editorial /
 * terracotta x light / dark) — see design-notes-web.md. The preview is the ONE deliberate
 * exception to "themed": the widget it depicts is light-only with fixed neutrals, so its
 * neutrals are the theme-independent primitives (--base-white, --gray-*), and its accent is the
 * admin's value bound inline as --wcp-accent (data, never authored here).
 *
 * SCOPED: rules that reach into a child component (Button, InputField, PhIcon) use ::deep (C17).
 * ========================================================================== */

/* The preview needs ~340px beside the form, so this panel runs wider than the family's 640px
   step column. The hub's .integration-wizard-panel (max 980px) still bounds it. */
.wcp[b-ejmwt6wt33] {
    max-width: 56rem;
}

.wcp-crumb-static[b-ejmwt6wt33] {
    cursor: default;
}

.wcp-brand-tile[b-ejmwt6wt33] {
    background: var(--bg-brand-primary);
    color: var(--fg-brand-primary);
}

.wcp-head-text[b-ejmwt6wt33] {
    flex: 1;
    min-width: 0;
}

.wcp-head-actions[b-ejmwt6wt33] {
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
    margin-left: auto;
    flex-shrink: 0;
}

.wcp-inline-note[b-ejmwt6wt33] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-tertiary);
}

/* ── Step 1 · allowed websites ─────────────────────────────────────────────── */
.wcp-domains[b-ejmwt6wt33] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.wcp-domains__row[b-ejmwt6wt33] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--spacing-2);
    align-items: start;
}

/* Sits level with the input box, below the field's label. */
.wcp-domains__row[b-ejmwt6wt33]  .wcp-domains__add {
    margin-top: calc(var(--line-height-text-sm) + var(--spacing-1-5));
}

.wcp-tags[b-ejmwt6wt33] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* E13: a wildcard never covers its apex; offer to add it. */
.wcp-apex[b-ejmwt6wt33] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-secondary);
}

.wcp-apex[b-ejmwt6wt33]  .wcp-apex__icon {
    flex-shrink: 0;
    color: var(--fg-brand-primary);
}

/* ── Step 2 · appearance ───────────────────────────────────────────────────── */
.wcp-colour[b-ejmwt6wt33] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.5rem;
    gap: var(--spacing-2);
    align-items: start;
}

.wcp-colour__picker[b-ejmwt6wt33]  .input-field {
    padding: var(--spacing-1);
    cursor: pointer;
}

.wcp-colour__picker[b-ejmwt6wt33]  input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.wcp-colour__picker[b-ejmwt6wt33]  input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: var(--radius-sm);
}

.wcp-colour__picker[b-ejmwt6wt33]  input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: var(--radius-sm);
}

/* The foreground is said in words, never by colour alone (WCAG 1.4.1). */
.wcp-readout[b-ejmwt6wt33] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.wcp-readout strong[b-ejmwt6wt33] {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.wcp-warn[b-ejmwt6wt33] {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-2);
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    color: var(--text-warning-primary);
}

.wcp-warn[b-ejmwt6wt33]  svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.wcp-field[b-ejmwt6wt33] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
}

/* ── Step 3 · the fields a toggle reveals hang off it ──────────────────────── */
.wcp-indent[b-ejmwt6wt33] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    margin-left: var(--spacing-5);
    padding-left: var(--spacing-4);
    border-left: 2px solid var(--border-secondary);
}

/* ── Live preview: a CSS-only miniature of the widget (design-spec §3) ─────── */
.wcp-preview[b-ejmwt6wt33] {
    position: sticky;
    top: var(--spacing-4);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

/* A stand-in host page: light, like almost every clinic site the widget will sit on. */
.wcp-preview__stage[b-ejmwt6wt33] {
    position: relative;
    padding: var(--spacing-4) var(--spacing-4) 4.75rem;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    background: var(--gray-100);
}

.wcp-preview__window[b-ejmwt6wt33] {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--base-white);
    box-shadow: var(--shadow-lg);
}

.wcp-preview[data-position="left"] .wcp-preview__window[b-ejmwt6wt33] {
    margin-left: 0;
    margin-right: auto;
}

/* Accent is only ever a BACKGROUND, under the computed foreground (design-spec §0). */
.wcp-preview__head[b-ejmwt6wt33] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3);
    background: var(--wcp-accent, var(--bg-brand-solid));
    color: var(--wcp-on-accent, var(--text-primary-on-brand));
}

.wcp-preview__logo[b-ejmwt6wt33] {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-full);
    background: var(--base-white);
    object-fit: contain;
}

.wcp-preview__glyph[b-ejmwt6wt33] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--wcp-on-accent, var(--text-primary-on-brand)) 18%, transparent);
}

.wcp-preview__head-text[b-ejmwt6wt33] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.wcp-preview__name[b-ejmwt6wt33] {
    overflow: hidden;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wcp-preview__sub[b-ejmwt6wt33] {
    overflow: hidden;
    font-size: var(--font-size-text-xs);
    line-height: 1.35;
    opacity: 0.85;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wcp-preview__close[b-ejmwt6wt33] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.wcp-preview__body[b-ejmwt6wt33] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5);
    min-height: 11rem;
    padding: var(--spacing-3);
    background: var(--gray-50);
}

.wcp-preview__label[b-ejmwt6wt33] {
    font-size: var(--font-size-text-xs);
    color: var(--gray-500);
}

.wcp-preview__bubble[b-ejmwt6wt33] {
    max-width: 85%;
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.wcp-preview__bubble--agent[b-ejmwt6wt33] {
    align-self: flex-start;
    border: 1px solid var(--gray-200);
    background: var(--base-white);
    color: var(--gray-900);
}

.wcp-preview__bubble--visitor[b-ejmwt6wt33] {
    align-self: flex-end;
    background: var(--wcp-accent, var(--bg-brand-solid));
    color: var(--wcp-on-accent, var(--text-primary-on-brand));
}

.wcp-preview__composer[b-ejmwt6wt33] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    border-top: 1px solid var(--gray-200);
    background: var(--base-white);
}

.wcp-preview__placeholder[b-ejmwt6wt33] {
    flex: 1;
    font-size: var(--font-size-text-xs);
    color: var(--gray-500);
}

.wcp-preview__send[b-ejmwt6wt33] {
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-full);
    background: var(--wcp-accent, var(--bg-brand-solid));
    color: var(--wcp-on-accent, var(--text-primary-on-brand));
}

.wcp-preview__footer[b-ejmwt6wt33] {
    padding: 0 var(--spacing-3) var(--spacing-2);
    background: var(--base-white);
    font-size: var(--font-size-text-xs);
    text-align: center;
    color: var(--gray-500);
}

.wcp-preview__launcher[b-ejmwt6wt33] {
    position: absolute;
    right: var(--spacing-4);
    bottom: var(--spacing-4);
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    background: var(--wcp-accent, var(--bg-brand-solid));
    color: var(--wcp-on-accent, var(--text-primary-on-brand));
    box-shadow: var(--shadow-md);
}

.wcp-preview[data-position="left"] .wcp-preview__launcher[b-ejmwt6wt33] {
    right: auto;
    left: var(--spacing-4);
}

.wcp-preview__caption[b-ejmwt6wt33] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.45;
    color: var(--text-tertiary);
}

/* ── Manage · settings summary ─────────────────────────────────────────────── */
.wcp-summary > .layout-form-row:first-child[b-ejmwt6wt33] {
    padding-top: 0;
    border-top: 0;
}

.wcp-summary .layout-form-row__control[b-ejmwt6wt33] {
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-secondary);
}

.wcp-summary__appearance[b-ejmwt6wt33] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.wcp-swatch-dot[b-ejmwt6wt33] {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    border-radius: var(--radius-full);
    background: var(--wcp-accent, var(--bg-brand-solid));
    box-shadow: 0 0 0 1px var(--border-secondary);
}

/* ── Rotate modal body ─────────────────────────────────────────────────────── */
.wcp-modal[b-ejmwt6wt33] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.wcp-modal__copy[b-ejmwt6wt33] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    color: var(--text-secondary);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .wcp-appearance[b-ejmwt6wt33] {
        grid-template-columns: 1fr;
    }

    .wcp-preview[b-ejmwt6wt33] {
        position: static;
    }
}

@media (max-width: 640px) {
    .wcp-domains__row[b-ejmwt6wt33] {
        grid-template-columns: 1fr;
    }

    .wcp-domains__row[b-ejmwt6wt33]  .wcp-domains__add {
        margin-top: 0;
        justify-self: start;
    }

    .wcp-indent[b-ejmwt6wt33] {
        margin-left: 0;
    }
}
/* /Components/Pages/Setting/WebChat/WebChatMobileAppCard.razor.rz.scp.css */
/* ==========================================================================
 * WEBSITE CHAT — "Mobile app" card (webchat-mobile-app-keys design §5.1)
 * Tokens only. Child internals (InputField, Button) are reached with ::deep.
 * ========================================================================== */

.wma-head[b-c2w1qowye8] {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--spacing-2);
}

.wma-note[b-c2w1qowye8] {
    margin: 0 0 var(--spacing-3);
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-tertiary);
}

.wma-notice[b-c2w1qowye8] {
    margin: 0 0 var(--spacing-3);
    font-size: var(--font-size-text-sm);
    color: var(--text-success-primary);
}

.wma-problem[b-c2w1qowye8] {
    margin: 0 0 var(--spacing-3);
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-error-primary);
}

.wma-rows[b-c2w1qowye8] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    margin: var(--spacing-3) 0;
}

.wma-row[b-c2w1qowye8] {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: var(--spacing-3);
    align-items: start;
}

.wma-row dt[b-c2w1qowye8] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.wma-row dd[b-c2w1qowye8] {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-primary);
}

.wma-mono[b-c2w1qowye8] {
    font-family: var(--font-family-mono, monospace);
    word-break: break-all;
}

.wma-key__line[b-c2w1qowye8] {
    flex-basis: 100%;
}

.wma-key__sub[b-c2w1qowye8] {
    flex-basis: 100%;
    color: var(--text-tertiary);
    word-break: break-all;
}

.wma-key__actions[b-c2w1qowye8] {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
}

.wma-form[b-c2w1qowye8] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.wma-certs[b-c2w1qowye8] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    align-items: flex-start;
}

.wma-certs__row[b-c2w1qowye8] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--spacing-2);
    align-items: end;
    width: 100%;
}

.wma-field[b-c2w1qowye8] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

@media (max-width: 40rem) {
    .wma-row[b-c2w1qowye8] {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-1);
    }
}
/* /Components/Pages/Setting/WebChat/WebChatMobileKeyModal.razor.rz.scp.css */
/* Mobile app key modal. Tokens only. */
.wmk[b-v9itsthlhi] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.wmk__error[b-v9itsthlhi] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    color: var(--text-error-primary);
}

.wmk__footer[b-v9itsthlhi] {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-2);
}
/* /Components/Pages/Setting/WebChat/WebChatSnippetResult.razor.rz.scp.css */
/* ==========================================================================
 * WEBSITE CHAT — result view + install material (design-spec §8, §9)
 * Card chrome, bullets and the collapsible developer detail are the shared family's
 * (WizardCard, .cw-bullets, .cw-devdetail). Tokens only (C13).
 * ========================================================================== */

/* Same rhythm as the .layout-wizard-step column this sits in. */
.wsr[b-7pja0gfio1] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

/* .wizard-result-card consumes --bg-success-subtle / --border-success-subtle, which NO theme
   declares (measured in all 8 blocks) — it paints transparent and borderless everywhere today.
   Token -> token fallback, per design-spec §0; the full border shorthand is restated because an
   unresolved var() voids the whole declaration. The pre-existing gap is a next-backlog item. */
.wizard-result-card.wsr-summary[b-7pja0gfio1] {
    background: var(--bg-success-subtle, var(--bg-success-primary));
    border: 1px solid var(--border-success-subtle, var(--border-secondary));
}

.wsr-note[b-7pja0gfio1] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    color: var(--text-tertiary);
}

.wsr-note strong[b-7pja0gfio1] {
    color: var(--text-secondary);
}

.wsr-note--warn[b-7pja0gfio1] {
    color: var(--text-warning-primary);
}

/* The install guide link and what it covers, on one wrapping line. */
.wsr-help[b-7pja0gfio1] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-2);
}

.wsr-loads-on[b-7pja0gfio1] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-2);
}

.wsr-tags[b-7pja0gfio1] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-1-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.wsr-identity[b-7pja0gfio1] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
}

.wsr-masked[b-7pja0gfio1] {
    flex: 1 1 14rem;
    min-width: 0;
    padding: var(--spacing-2-5) var(--spacing-3);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-text-sm);
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
}

.wsr-hmac__body[b-7pja0gfio1] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.wsr-guard-icon[b-7pja0gfio1] {
    display: grid;
    place-items: center;
    color: var(--fg-warning-primary);
}
/* /Components/Pages/Team/Member/TeamMember.razor.rz.scp.css */
.team-member__name-cell[b-ma6u5ysnlc] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.team-member__name-text[b-ma6u5ysnlc] {
    font: var(--text-sm-medium);
    color: var(--text-primary);
}

.team-member__phone[b-ma6u5ysnlc],
.team-member__email[b-ma6u5ysnlc] {
    font: var(--text-sm-regular);
    color: var(--text-secondary);
}

.team-member__loading[b-ma6u5ysnlc] {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-10);
}
/* /Components/Pages/Team/Performance/CoachingNotes.razor.rz.scp.css */
.cn-card[b-jufwvua15s] { display: flex; flex-direction: column; gap: var(--spacing-3); padding: var(--spacing-4); border: 1px solid var(--border-secondary); border-radius: var(--radius-xl); background: var(--bg-primary); min-width: 0; }
.cn-head[b-jufwvua15s] { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-3); }
.cn-h2[b-jufwvua15s] { margin: 0; font-size: var(--font-size-text-lg); font-weight: 600; color: var(--text-primary); }
.cn-empty[b-jufwvua15s] { margin: 0; color: var(--text-tertiary); font-size: var(--font-size-text-sm); line-height: 1.7; }
.cn-note[b-jufwvua15s] { display: flex; flex-direction: column; gap: var(--spacing-2); padding: var(--spacing-3) var(--spacing-4); border-radius: var(--radius-lg); background: var(--bg-secondary); }
.cn-note__head[b-jufwvua15s] { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-3); min-width: 0; }
.cn-author[b-jufwvua15s] { display: flex; align-items: center; gap: var(--spacing-2); min-width: 0; color: var(--text-primary); }
.cn-ellipsis[b-jufwvua15s] { display: block; min-width: 0; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.7; }
.cn-when[b-jufwvua15s] { display: flex; align-items: center; gap: var(--spacing-2); flex-shrink: 0; font-size: var(--font-size-text-xs); color: var(--text-tertiary); }
.cn-text[b-jufwvua15s] { margin: 0; font-size: var(--font-size-text-sm); line-height: 1.7; color: var(--text-primary); white-space: pre-wrap; overflow-wrap: anywhere; }
.cn-form[b-jufwvua15s] { display: flex; flex-direction: column; gap: var(--spacing-2); }
.cn-count[b-jufwvua15s] { margin: 0; text-align: end; font-size: var(--font-size-text-xs); color: var(--text-tertiary); }
.cn-count--off[b-jufwvua15s] { color: var(--text-error-primary); }
/* /Components/Pages/Team/Performance/LaterDash.razor.rz.scp.css */
.pf-later[b-zobx456sx4] {
    color: var(--text-tertiary);
}
/* /Components/Pages/Team/Performance/MemberCell.razor.rz.scp.css */
.pf-member[b-vqladvmapr] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.pf-member__text[b-vqladvmapr] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pf-ellipsis[b-vqladvmapr] {
    display: block;
    min-width: 0;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.7;
}

.pf-muted[b-vqladvmapr] {
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
}
/* /Components/Pages/Team/Performance/MemberPerformancePage.razor.rz.scp.css */
/* One member's page (scaffold C: stacked detail cards). Every colour is a token; long (Burmese) text gets an ellipsis and a line-height of at least 1.6. */
.mp-page[b-1trpaool0t] { min-width: 0; }

.mp-page[b-1trpaool0t]  h1 {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.6;
}

.mp-back[b-1trpaool0t] { display: flex; }

.mp-split[b-1trpaool0t] { display: flex; flex-wrap: wrap; gap: var(--spacing-4); align-items: flex-start; }
.mp-split > *[b-1trpaool0t] { flex: 1 1 26rem; min-width: 0; }
.mp-split--score > .mp-score[b-1trpaool0t] { flex: 1 1 18rem; max-width: 28rem; }
.mp-split--score > .mp-parts[b-1trpaool0t] { flex: 2 1 28rem; }

.mp-score[b-1trpaool0t] { display: flex; flex-direction: column; gap: var(--spacing-3); }
.mp-score__row[b-1trpaool0t] { display: flex; align-items: flex-end; gap: var(--spacing-4); }
.mp-score__side[b-1trpaool0t] { display: flex; flex-direction: column; gap: var(--spacing-1); padding-bottom: var(--spacing-2); }
.mp-big[b-1trpaool0t] { margin: 0; font-size: var(--font-size-display-xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.mp-big--small[b-1trpaool0t] { font-size: var(--font-size-display-xs); line-height: 1.6; letter-spacing: 0; }
.mp-sub[b-1trpaool0t] { margin: 0; font-size: var(--font-size-text-sm); line-height: 1.7; color: var(--text-tertiary); }
.mp-xs[b-1trpaool0t] { margin: 0; font-size: var(--font-size-text-xs); line-height: 1.7; color: var(--text-tertiary); }
.mp-delta[b-1trpaool0t] { font-size: var(--font-size-text-xs); font-weight: 600; }
.mp-delta--up[b-1trpaool0t] { color: var(--text-success-primary); }
.mp-delta--down[b-1trpaool0t] { color: var(--text-error-primary); }

.mp-head[b-1trpaool0t] { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--spacing-2); }
.mp-link[b-1trpaool0t] { font-size: var(--font-size-text-xs); font-weight: 600; color: var(--text-brand-secondary); }

.mp-parts[b-1trpaool0t] { display: flex; flex-direction: column; gap: var(--spacing-3); }
.mp-brk[b-1trpaool0t] { display: grid; grid-template-columns: 10rem minmax(0, 1fr) 6rem; gap: var(--spacing-3); align-items: center; font-size: var(--font-size-text-sm); }
.mp-num[b-1trpaool0t] { text-align: end; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.mp-num b[b-1trpaool0t] { color: var(--text-primary); }
.mp-later[b-1trpaool0t] { margin: 0; font-size: var(--font-size-text-xs); line-height: 1.7; color: var(--text-tertiary); }

.mp-ellipsis[b-1trpaool0t] { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.7; }

.mp-ind-grid[b-1trpaool0t] { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: var(--spacing-3); }
.mp-ind[b-1trpaool0t] { display: flex; flex-direction: column; gap: var(--spacing-1); padding: var(--spacing-3) var(--spacing-4); border-radius: var(--radius-lg); background: var(--bg-secondary); min-width: 0; }
.mp-ind b[b-1trpaool0t] { font-size: var(--font-size-text-xl); line-height: 1.4; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.mp-ind span[b-1trpaool0t] { font-size: var(--font-size-text-xs); line-height: 1.6; color: var(--text-tertiary); }
.mp-ind--late b[b-1trpaool0t] { color: var(--text-error-primary); }
.mp-ind--warn b[b-1trpaool0t] { color: var(--text-warning-primary); }

.mp-topics[b-1trpaool0t], .mp-misses[b-1trpaool0t], .mp-access[b-1trpaool0t] { display: flex; flex-direction: column; gap: var(--spacing-3); }
.mp-scroll[b-1trpaool0t] { overflow-x: auto; }
.mp-topic[b-1trpaool0t] { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-2); min-width: 0; }

.mp-miss[b-1trpaool0t] { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-3); min-width: 0; }
.mp-miss__text[b-1trpaool0t] { display: flex; flex-direction: column; min-width: 0; }

.mp-who[b-1trpaool0t] { display: flex; flex-direction: column; gap: var(--spacing-2); margin: 0; padding: 0; list-style: none; font-size: var(--font-size-text-sm); color: var(--text-primary); }
.mp-who li[b-1trpaool0t] { display: flex; align-items: center; gap: var(--spacing-2); min-width: 0; }

@media (max-width: 640px) {
    .mp-brk[b-1trpaool0t] { grid-template-columns: minmax(0, 1fr) 5rem; }
    .mp-brk > :nth-child(2)[b-1trpaool0t] { grid-column: 1 / -1; grid-row: 2; }
    .mp-big[b-1trpaool0t] { font-size: var(--font-size-display-lg); }
}
/* /Components/Pages/Team/Performance/PerfMembersTab.razor.rz.scp.css */
.pf-card[b-tq56m9um15] {
    min-width: 0;
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
}

.pf-card__head[b-tq56m9um15] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    padding: var(--spacing-4) var(--spacing-5);
}

.pf-card__sentence[b-tq56m9um15] {
    margin: 0;
    flex: 1 1 24rem;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-tertiary);
}

.pf-card__tools[b-tq56m9um15] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-2);
}

.pf-card__label[b-tq56m9um15] {
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
}

/* The table is wider than a narrow panel: it scrolls sideways inside its card. */
.pf-scroll[b-tq56m9um15] {
    overflow-x: auto;
}

.pf-scroll[b-tq56m9um15]  table {
    min-width: 1160px;
}

/* Plain text cells carry Burmese names and sentences ("What happened"): marks stack above and below the line. */
.pf-scroll[b-tq56m9um15]  td {
    line-height: 1.6;
}

.pf-num[b-tq56m9um15] {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pf-muted[b-tq56m9um15] {
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
    line-height: 1.7;
}

.pf-ellipsis[b-tq56m9um15] {
    display: block;
    min-width: 0;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.7;
}

.pf-member[b-tq56m9um15] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.pf-member__text[b-tq56m9um15] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pf-score[b-tq56m9um15] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
}

.pf-track[b-tq56m9um15] {
    display: inline-block;
    width: 56px;
    height: 6px;
    overflow: hidden;
    border-radius: var(--radius-full);
    background: var(--bg-quaternary);
}

.pf-track > span[b-tq56m9um15] {
    display: block;
    height: 100%;
    background: var(--bg-brand-solid);
}
/* /Components/Pages/Team/Performance/PerfMissedTab.razor.rz.scp.css */
.pf-card[b-q0aoyasfvm] {
    min-width: 0;
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
}

.pf-card__head[b-q0aoyasfvm] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    padding: var(--spacing-4) var(--spacing-5);
}

.pf-card__sentence[b-q0aoyasfvm] {
    margin: 0;
    flex: 1 1 24rem;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-tertiary);
}

.pf-card__tools[b-q0aoyasfvm] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-2);
}

.pf-card__label[b-q0aoyasfvm] {
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
}

/* The table is wider than a narrow panel: it scrolls sideways inside its card. */
.pf-scroll[b-q0aoyasfvm] {
    overflow-x: auto;
}

.pf-scroll[b-q0aoyasfvm]  table {
    min-width: 1000px;
}

/* Plain text cells carry Burmese names and sentences ("What happened"): marks stack above and below the line. */
.pf-scroll[b-q0aoyasfvm]  td {
    line-height: 1.6;
}

.pf-num[b-q0aoyasfvm] {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pf-muted[b-q0aoyasfvm] {
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
    line-height: 1.7;
}

.pf-ellipsis[b-q0aoyasfvm] {
    display: block;
    min-width: 0;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.7;
}

.pf-member[b-q0aoyasfvm] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.pf-member__text[b-q0aoyasfvm] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pf-score[b-q0aoyasfvm] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
}

.pf-track[b-q0aoyasfvm] {
    display: inline-block;
    width: 56px;
    height: 6px;
    overflow: hidden;
    border-radius: var(--radius-full);
    background: var(--bg-quaternary);
}

.pf-track > span[b-q0aoyasfvm] {
    display: block;
    height: 100%;
    background: var(--bg-brand-solid);
}

.pf-stack[b-q0aoyasfvm] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    min-width: 0;
}

.pf-split[b-q0aoyasfvm] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: var(--spacing-4);
}

.pf-pad[b-q0aoyasfvm] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    padding: var(--spacing-5);
}

.pf-h2[b-q0aoyasfvm] {
    margin: 0;
    font-size: var(--font-size-text-md);
    font-weight: var(--font-weight-semibold);
    line-height: 1.6;
    color: var(--text-primary);
}

.pf-line[b-q0aoyasfvm] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-secondary);
}

.pf-small[b-q0aoyasfvm] {
    font-size: var(--font-size-text-xs);
    line-height: 1.7;
    color: var(--text-secondary);
    min-width: 14rem;
}

.pf-teamchip[b-q0aoyasfvm] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
}

.pf-dot[b-q0aoyasfvm] {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

.pf-note[b-q0aoyasfvm] {
    margin: 0;
    padding: var(--spacing-3) var(--spacing-5);
    font-size: var(--font-size-text-xs);
    line-height: 1.7;
    color: var(--text-tertiary);
}
/* /Components/Pages/Team/Performance/PerformanceSection.razor.rz.scp.css */
/* Team > Performance: the page rhythm. Cards own their padding; every colour is a token (the chart's hex values live in PerformanceUi). */
.pf-section[b-0lposv8eyu] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    min-width: 0;
}

.pf-note[b-0lposv8eyu] {
    margin: 0;
    padding: var(--spacing-2) var(--spacing-4) 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.7;
    color: var(--text-tertiary);
}
/* /Components/Pages/Team/Performance/PerfTeamsTab.razor.rz.scp.css */
.pf-card[b-qtszds4dvx] {
    min-width: 0;
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
}

.pf-card__head[b-qtszds4dvx] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    padding: var(--spacing-4) var(--spacing-5);
}

.pf-card__sentence[b-qtszds4dvx] {
    margin: 0;
    flex: 1 1 24rem;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-tertiary);
}

.pf-card__tools[b-qtszds4dvx] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-2);
}

.pf-card__label[b-qtszds4dvx] {
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
}

/* The table is wider than a narrow panel: it scrolls sideways inside its card. */
.pf-scroll[b-qtszds4dvx] {
    overflow-x: auto;
}

.pf-scroll[b-qtszds4dvx]  table {
    min-width: 1040px;
}

/* Plain text cells carry Burmese names and sentences ("What happened"): marks stack above and below the line. */
.pf-scroll[b-qtszds4dvx]  td {
    line-height: 1.6;
}

.pf-num[b-qtszds4dvx] {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pf-muted[b-qtszds4dvx] {
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
    line-height: 1.7;
}

.pf-ellipsis[b-qtszds4dvx] {
    display: block;
    min-width: 0;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.7;
}

.pf-member[b-qtszds4dvx] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.pf-member__text[b-qtszds4dvx] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pf-score[b-qtszds4dvx] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
}

.pf-track[b-qtszds4dvx] {
    display: inline-block;
    width: 56px;
    height: 6px;
    overflow: hidden;
    border-radius: var(--radius-full);
    background: var(--bg-quaternary);
}

.pf-track > span[b-qtszds4dvx] {
    display: block;
    height: 100%;
    background: var(--bg-brand-solid);
}

.pf-teamchip[b-qtszds4dvx] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
}

.pf-dot[b-qtszds4dvx] {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

.pf-well[b-qtszds4dvx] {
    margin: var(--spacing-4) var(--spacing-5) var(--spacing-5);
    padding: var(--spacing-3) var(--spacing-4);
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}
/* /Components/Pages/Team/Performance/ScoreCell.razor.rz.scp.css */
.pf-score[b-7ujljsgyi5] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
}

.pf-num[b-7ujljsgyi5] {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pf-muted[b-7ujljsgyi5] {
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
    line-height: 1.7;
}

.pf-track[b-7ujljsgyi5] {
    display: inline-block;
    width: 56px;
    height: 6px;
    overflow: hidden;
    border-radius: var(--radius-full);
    background: var(--bg-quaternary);
}

.pf-track > span[b-7ujljsgyi5] {
    display: block;
    height: 100%;
    background: var(--bg-brand-solid);
}
/* /Components/Pages/Team/Performance/ScoreSpark.razor.rz.scp.css */
.pf-spark[b-ygiwm91e9c] {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 28px;
    width: 64px;
}

.pf-spark__bar[b-ygiwm91e9c] {
    flex: 1 1 0;
    min-width: 0;
    border-radius: var(--radius-xs);
    background: var(--bg-quaternary);
}

.pf-spark__bar--none[b-ygiwm91e9c] {
    opacity: 0.5;
}

.pf-spark__bar--last[b-ygiwm91e9c] {
    background: var(--bg-brand-solid);
}
/* /Components/Pages/Team/Performance/ScoreWeightsModal.razor.rz.scp.css */
.pf-weights[b-5v2a5hei94] {
    display: grid;
    gap: var(--spacing-3);
}

.pf-weights__sum[b-5v2a5hei94] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.6;
    color: var(--text-success-primary);
}

.pf-weights__sum--off[b-5v2a5hei94] {
    color: var(--text-warning-primary);
}

.pf-weights__note[b-5v2a5hei94] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.7;
    color: var(--text-tertiary);
}
/* /Components/Pages/Team/Performance/TeamDotName.razor.rz.scp.css */
.pf-teamchip[b-1qlz96fxww] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
}

.pf-dot[b-1qlz96fxww] {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

.pf-ellipsis[b-1qlz96fxww] {
    display: block;
    min-width: 0;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.7;
}

.pf-bold[b-1qlz96fxww] {
    font-weight: var(--font-weight-semibold);
}
/* /Components/Pages/Team/Role/TeamRole.razor.rz.scp.css */
.team-role__role-name[b-mbg3ozjyx4] {
    font: var(--text-sm-medium);
    color: var(--text-primary);
}

.team-role__loading[b-mbg3ozjyx4] {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-10);
}
/* /Components/Pages/Team/Role/TeamRoleForm.razor.rz.scp.css */
.team-role-form__permissions[b-ntgowy7u7v] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.team-role-form__permissions-label[b-ntgowy7u7v] {
    font: var(--text-sm-semibold);
    color: var(--text-secondary);
}

.team-role-form__permissions-loading[b-ntgowy7u7v] {
    display: flex;
    justify-content: center;
    padding: var(--spacing-6);
}
/* /Components/Pages/Team/Team.razor.rz.scp.css */
/* Team page — structural overrides only; layout-settings handles the grid */
/* /Components/Pages/Team/Teams/DaysOffModal.razor.rz.scp.css */
.do-form[b-y5o1miwil9] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    min-width: 0;
}

.do-add[b-y5o1miwil9] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--spacing-3);
    min-width: 0;
}

.do-list[b-y5o1miwil9] {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.do-item[b-y5o1miwil9] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    padding: var(--spacing-2) 0;
    border-top: 1px solid var(--border-secondary);
    min-width: 0;
}

.do-item__text[b-y5o1miwil9] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-tertiary);
}

.do-item__text b[b-y5o1miwil9] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.do-empty[b-y5o1miwil9] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-tertiary);
}
/* /Components/Pages/Team/Teams/DistributionCard.razor.rz.scp.css */
/* The Team distribution card (board Teams.dc.html). Tokens only; the brand outline marks it as the switch that
   everything below depends on. */
.ts-dist[b-iyg68jsfy9] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    border: 2px solid var(--border-brand);
}

.ts-dist__head[b-iyg68jsfy9] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-4);
    flex-wrap: wrap;
}

.ts-dist__intro[b-iyg68jsfy9] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 18rem;
}

/* Title + one line beside the switch (board): no divider between the title and its line. */
.ts-dist__intro .layout-detail-card__title[b-iyg68jsfy9] {
    margin: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.ts-dist__sub[b-iyg68jsfy9] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.6;
    color: var(--text-tertiary);
}

.ts-dist__label[b-iyg68jsfy9] {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.6;
    color: var(--text-tertiary);
}

/* One sentence; the "Change auto-reply" link runs on at the end of it instead of taking its own line. */
.ts-dist__now[b-iyg68jsfy9] {
    padding: var(--spacing-3) var(--spacing-4);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    font-size: var(--font-size-text-sm);
    line-height: 1.6;
    color: var(--text-secondary);
}

.ts-dist__now b[b-iyg68jsfy9] {
    color: var(--text-primary);
}

/* The three choices: one under the other, each a left-aligned row (RadioCard Layout="row"), as on the board. */
.ts-dist__which[b-iyg68jsfy9] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.ts-dist__matrix[b-iyg68jsfy9] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

/* 2 x 2 like the board (never four across); one column when the panel is narrow. */
.ts-dist__cells[b-iyg68jsfy9] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(16rem, calc(50% - var(--spacing-2)))), 1fr));
    gap: var(--spacing-2);
}

.ts-dist__cell[b-iyg68jsfy9] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: var(--spacing-2-5) var(--spacing-3);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    font-size: var(--font-size-text-sm);
    line-height: 1.6;
    color: var(--text-secondary);
}

.ts-dist__cell--current[b-iyg68jsfy9] {
    background: var(--bg-brand-primary);
    box-shadow: inset 0 0 0 2px var(--border-brand);
    color: var(--text-primary);
}

.ts-dist__cell-head[b-iyg68jsfy9] {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
/* /Components/Pages/Team/Teams/TeamCard.razor.rz.scp.css */
/* One team on the Teams page. Team and member names are staff-typed (often long Burmese): every piece is
   bounded with min-width:0 + ellipsis and carries its full text in title; wrapping text keeps line-height >= 1.6. */
.ts-card[b-eqxnfo8yue] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    min-width: 0;
    padding: var(--spacing-5);
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
}

.ts-card__head[b-eqxnfo8yue] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    min-width: 0;
}

.ts-card__name[b-eqxnfo8yue] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
    flex: 1 1 auto;
}

.ts-card__dot[b-eqxnfo8yue] {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

.ts-card__heading[b-eqxnfo8yue] {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-size-text-md);
    font-weight: var(--font-weight-semibold);
    line-height: 1.6;
    color: var(--text-primary);
}

.ts-card__receive[b-eqxnfo8yue] {
    flex: none;
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
}

.ts-card__desc[b-eqxnfo8yue] {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-secondary);
}

.ts-card__people[b-eqxnfo8yue] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-2) var(--spacing-3);
    min-width: 0;
}

.ts-card__members[b-eqxnfo8yue] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
}

.ts-card__muted[b-eqxnfo8yue] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-size-text-xs);
    line-height: 1.6;
    color: var(--text-tertiary);
}

.ts-card__lead[b-eqxnfo8yue] {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-size-text-xs);
    line-height: 1.6;
    color: var(--text-tertiary);
}

.ts-card__lead b[b-eqxnfo8yue] {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.ts-card__counts[b-eqxnfo8yue] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-2);
}

.ts-card__counts > div[b-eqxnfo8yue] {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.ts-card__counts b[b-eqxnfo8yue] {
    font-size: var(--font-size-text-xl);
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
    color: var(--text-primary);
}

.ts-card__counts span[b-eqxnfo8yue] {
    font-size: var(--font-size-text-xs);
    line-height: 1.6;
    color: var(--text-tertiary);
}

.ts-card__count--warn b[b-eqxnfo8yue] {
    color: var(--text-warning-primary);
}

.ts-card__chips[b-eqxnfo8yue] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    min-width: 0;
}

.ts-card__foot[b-eqxnfo8yue] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    min-width: 0;
    padding-top: var(--spacing-3);
    border-top: 1px solid var(--border-secondary);
}
/* /Components/Pages/Team/Teams/TeamDetailsTab.razor.rz.scp.css */
/* Team page, tab 1. Names, topics and descriptions are staff-typed (often long Burmese): every cell is bounded with
   min-width:0, long text is ellipsised and carries its full text in title; wrapping text keeps line-height >= 1.6. */
.td-stack[b-1pjqoqnmyy] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    min-width: 0;
}

.td-block[b-1pjqoqnmyy] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    min-width: 0;
}

.td-split[b-1pjqoqnmyy] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--spacing-4);
    min-width: 0;
}

.td-grow[b-1pjqoqnmyy] {
    flex: 1 1 18rem;
    min-width: 0;
}

.td-field[b-1pjqoqnmyy] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.td-label[b-1pjqoqnmyy] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    line-height: 1.6;
}

.td-swatches[b-1pjqoqnmyy] {
    display: flex;
    gap: var(--spacing-2);
}

/* The swatch is a Button (IconOnly): its colour comes from --td-swatch on the element. */
.td-swatches[b-1pjqoqnmyy]  .td-swatch {
    width: 1.75rem;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border-radius: var(--radius-full);
    background: var(--td-swatch);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 0 1px var(--border-secondary);
}

.td-swatches[b-1pjqoqnmyy]  .td-swatch--on {
    box-shadow: 0 0 0 2px var(--text-primary);
}

.td-head[b-1pjqoqnmyy] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-3);
    min-width: 0;
}

.td-intro[b-1pjqoqnmyy] {
    flex: 1 1 18rem;
    min-width: 0;
}

.td-sub[b-1pjqoqnmyy],
.td-note[b-1pjqoqnmyy],
.td-hint[b-1pjqoqnmyy],
.td-none[b-1pjqoqnmyy] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-tertiary);
    overflow-wrap: anywhere;
}

.td-hours-line[b-1pjqoqnmyy] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
}

.td-muted[b-1pjqoqnmyy] {
    min-width: 0;
    font-size: var(--font-size-text-xs);
    line-height: 1.6;
    color: var(--text-tertiary);
}

.td-members[b-1pjqoqnmyy] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: auto;
}

.td-row[b-1pjqoqnmyy] {
    display: grid;
    grid-template-columns: minmax(10rem, 1.4fr) minmax(7rem, 0.8fr) minmax(10rem, 1.6fr) minmax(9rem, 1fr) minmax(8rem, 1fr) auto;
    align-items: center;
    gap: var(--spacing-3);
    min-width: 52rem;
    padding: var(--spacing-3) 0;
    border-top: 1px solid var(--border-secondary);
}

.td-row--head[b-1pjqoqnmyy] {
    border-top: 0;
    padding-top: 0;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-tertiary);
}

.td-person[b-1pjqoqnmyy] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
}

.td-person__text[b-1pjqoqnmyy] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.td-person__name[b-1pjqoqnmyy] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.6;
    color: var(--text-primary);
}

.td-person__text .td-muted[b-1pjqoqnmyy] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.td-cell[b-1pjqoqnmyy] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-1);
    min-width: 0;
}

.td-cell--end[b-1pjqoqnmyy] {
    align-items: flex-end;
}

.td-topics[b-1pjqoqnmyy] {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-1);
}

.td-tag[b-1pjqoqnmyy] {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
}

.td-tag[b-1pjqoqnmyy]  .tag-text {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.6;
}

.td-hours[b-1pjqoqnmyy] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.td-well[b-1pjqoqnmyy] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    min-width: 0;
    padding: var(--spacing-4);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.td-topic-list[b-1pjqoqnmyy] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    min-width: 0;
}

.td-add-topic[b-1pjqoqnmyy] {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-2);
    min-width: 0;
}

.td-add-topic > :first-child[b-1pjqoqnmyy] {
    flex: 1 1 auto;
    min-width: 0;
}

.td-add[b-1pjqoqnmyy] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    min-width: 0;
}

.td-candidates[b-1pjqoqnmyy] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    max-height: 18rem;
    overflow-y: auto;
}

/* Title + one line under it (board): no divider between the title and its line. */
.td-intro .layout-detail-card__title[b-1pjqoqnmyy] {
    margin: 0 0 2px;
    padding-bottom: 0;
    border-bottom: 0;
}
/* /Components/Pages/Team/Teams/TeamEditPage.razor.rz.scp.css */
/* One team's page: the rhythm only. The sub-nav column is layout-settings__sidebar; the tabs own their own sheets. */
.te-page[b-nkyjpx95qk] {
    min-width: 0;
}

.te-dot[b-nkyjpx95qk] {
    flex: none;
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: var(--radius-full);
}

/* The four tabs. */
.te-tabs[b-nkyjpx95qk] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
    border-bottom: 1px solid var(--border-secondary);
}

.te-tabs[b-nkyjpx95qk]  .tabs {
    border-bottom: 0;
}
/* /Components/Pages/Team/Teams/TeamHandingOutTab.razor.rz.scp.css */
/* Team page, tab 3. */
.ho-stack[b-gziochexu8] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    min-width: 0;
}

.ho-block[b-gziochexu8] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    min-width: 0;
}

.ho-auto[b-gziochexu8],
.ho-always[b-gziochexu8] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3) var(--spacing-4);
    min-width: 0;
}

.ho-always + .ho-always[b-gziochexu8] {
    padding-top: var(--spacing-3);
    border-top: 1px solid var(--border-secondary);
}

.ho-intro[b-gziochexu8],
.ho-always__text[b-gziochexu8] {
    display: flex;
    flex-direction: column;
    flex: 1 1 16rem;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-primary);
}

.ho-always__text b[b-gziochexu8] {
    font-weight: var(--font-weight-semibold);
}

/* Title + one line beside a switch (board): no divider between the title and its line. */
.ho-intro .layout-detail-card__title[b-gziochexu8] {
    margin: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.ho-sub[b-gziochexu8] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-tertiary);
    overflow-wrap: anywhere;
}

/* The five ways, one under the other (RadioCard Layout="row"), as on the board. */
.ho-modes[b-gziochexu8] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.ho-weights[b-gziochexu8] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    min-width: 0;
    padding: var(--spacing-4);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.ho-label[b-gziochexu8] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
}

.ho-weight[b-gziochexu8] {
    display: grid;
    grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr) 2.75rem;
    align-items: center;
    gap: var(--spacing-3);
    font-size: var(--font-size-text-sm);
    color: var(--text-primary);
}

.ho-weight__value[b-gziochexu8] {
    text-align: end;
    font-variant-numeric: tabular-nums;
}

.ho-sum[b-gziochexu8] {
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-tertiary);
}

.ho-sum--bad[b-gziochexu8] {
    color: var(--text-warning-primary);
    font-weight: var(--font-weight-semibold);
}

.ho-preview[b-gziochexu8] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.8;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}
/* /Components/Pages/Team/Teams/TeamHoursModal.razor.rz.scp.css */
.th-form[b-m8nulyi3wv] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    min-width: 0;
}

.th-days[b-m8nulyi3wv] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-3) var(--spacing-4);
}

.th-times[b-m8nulyi3wv] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-3);
}

.th-zone[b-m8nulyi3wv] {
    margin: 0;
    color: var(--text-tertiary);
    font-size: var(--font-size-text-sm);
    line-height: 1.6;
}
/* /Components/Pages/Team/Teams/TeamHowPage.razor.rz.scp.css */
/* How chats are picked (board Routing.dc.html). Customer messages and names can be Burmese: wrapping text keeps
   line-height >= 1.6, names are bounded with an ellipsis and carry their full text in title. */
.th-page[b-ug6534u4mm] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.th-pick[b-ug6534u4mm] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-3);
}

.th-pick__label[b-ug6534u4mm] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-tertiary);
}

.th-card[b-ug6534u4mm] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    min-width: 0;
    padding: var(--spacing-5);
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
}

/* ── the chat ── */
.th-chat__head[b-ug6534u4mm] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    min-width: 0;
}

.th-who[b-ug6534u4mm] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    min-width: 0;
}

.th-who__text[b-ug6534u4mm] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.th-who__name[b-ug6534u4mm] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: var(--font-weight-semibold);
    line-height: 1.6;
    color: var(--text-primary);
}

.th-who__where[b-ug6534u4mm] {
    font-size: var(--font-size-text-xs);
    line-height: 1.6;
    color: var(--text-tertiary);
}

.th-msg[b-ug6534u4mm] {
    margin: 0;
    padding: var(--spacing-3) var(--spacing-4);
    overflow-wrap: anywhere;
    font-size: var(--font-size-text-md);
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

/* ── steps ── */
.th-steps[b-ug6534u4mm] {
    gap: var(--spacing-5);
}

.th-step[b-ug6534u4mm] {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    min-width: 0;
}

.th-step__n[b-ug6534u4mm] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--bg-brand-solid);
    color: var(--text-primary-on-brand);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
}

.th-step__body[b-ug6534u4mm] {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    min-width: 0;
}

.th-step__headrow[b-ug6534u4mm] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2);
}

.th-step__title[b-ug6534u4mm],
.th-h2[b-ug6534u4mm] {
    margin: 0;
    font-size: var(--font-size-text-md);
    font-weight: var(--font-weight-semibold);
    line-height: 1.6;
    color: var(--text-primary);
}

.th-text[b-ug6534u4mm] {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-primary);
}

.th-muted[b-ug6534u4mm] {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: var(--font-size-text-xs);
    line-height: 1.7;
    color: var(--text-tertiary);
}

.th-line[b-ug6534u4mm] {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--border-secondary);
}

/* ── the rules ── */
.th-rules[b-ug6534u4mm] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.th-rule[b-ug6534u4mm] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    min-width: 0;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-text-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.th-rule--hit[b-ug6534u4mm] {
    background: var(--bg-success-primary);
    color: var(--text-success-primary);
    font-weight: var(--font-weight-semibold);
}

.th-rule__n[b-ug6534u4mm] {
    flex: none;
    min-width: 1.25rem;
    color: var(--text-tertiary);
}

.th-rule--hit .th-rule__n[b-ug6534u4mm] {
    color: inherit;
}

.th-rule__text[b-ug6534u4mm] {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.th-rule__res[b-ug6534u4mm] {
    flex: none;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
}

/* ── the AI bars ── */
.th-ai[b-ug6534u4mm] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.th-ai__head[b-ug6534u4mm] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-2);
}

.th-ai__title[b-ug6534u4mm] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.6;
    color: var(--text-primary);
}

.th-bar[b-ug6534u4mm] {
    display: grid;
    grid-template-columns: minmax(0, 8rem) minmax(0, 1fr) 3rem;
    align-items: center;
    gap: var(--spacing-3);
    font-size: var(--font-size-text-sm);
}

.th-bar__name[b-ug6534u4mm] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

.th-bar--top .th-bar__name[b-ug6534u4mm] {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.th-bar__track[b-ug6534u4mm] {
    height: 8px;
    overflow: hidden;
    background: var(--bg-quaternary);
    border-radius: var(--radius-full);
}

.th-bar__fill[b-ug6534u4mm] {
    display: block;
    height: 100%;
    background: var(--border-primary);
    border-radius: var(--radius-full);
}

.th-bar--top .th-bar__fill[b-ug6534u4mm] {
    background: var(--bg-brand-solid);
}

.th-bar__pct[b-ug6534u4mm] {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* ── the verdict ── */
.th-well[b-ug6534u4mm] {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-4);
    background: var(--bg-success-primary);
    color: var(--text-success-primary);
    border-radius: var(--radius-lg);
}

.th-well__text[b-ug6534u4mm] {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-primary);
}

.th-pop[b-ug6534u4mm] {
    max-width: 36rem;
    padding: var(--spacing-3) var(--spacing-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
}

/* ── tables (InfoTable draws the rows; these are the cell contents) ── */
.th-scroll[b-ug6534u4mm] {
    min-width: 0;
    overflow-x: auto;
}

.th-num--strong[b-ug6534u4mm] {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.th-member[b-ug6534u4mm] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
}

.th-member__name[b-ug6534u4mm] {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* ── the fast AI model ── */
.th-model__head[b-ug6534u4mm] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

/* The two models, one under the other (RadioCard Layout="row"), as on the board. */
.th-radios[b-ug6534u4mm] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.th-model__name[b-ug6534u4mm] {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.th-model__later[b-ug6534u4mm] {
    color: var(--text-tertiary);
    font-style: italic;
}
/* /Components/Pages/Team/Teams/TeamRulesList.razor.rz.scp.css */
/* The workspace rules list. Rule text and team names are staff-typed: bounded, ellipsised, titled; wrapping text keeps
   a roomy line height. */
.ts-rules[b-rplvq0um29] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    padding: 0;
    overflow: hidden;
}

.ts-rules__head[b-rplvq0um29] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-3);
    flex-wrap: wrap;
    padding: var(--spacing-5) var(--spacing-5) 0;
}

.ts-rules__intro[b-rplvq0um29] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 16rem;
}

.ts-rules__sub[b-rplvq0um29] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.6;
    color: var(--text-tertiary);
}

.ts-rules__empty[b-rplvq0um29] {
    margin: 0;
    padding: var(--spacing-4) var(--spacing-5);
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-tertiary);
}

.ts-rules__list[b-rplvq0um29] {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border-secondary);
}

.ts-rule[b-rplvq0um29] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-5);
    border-bottom: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-sm);
    color: var(--text-primary);
}

.ts-rule--off .ts-rule__text[b-rplvq0um29] {
    color: var(--text-tertiary);
}

.ts-rule__grip[b-rplvq0um29] {
    display: inline-flex;
    color: var(--fg-quaternary);
}

.ts-rule__n[b-rplvq0um29] {
    min-width: 1.25rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-tertiary);
}

.ts-rule__text[b-rplvq0um29] {
    flex: 1 1 14rem;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.7;
}

.ts-rule__to[b-rplvq0um29] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
    max-width: 12rem;
    color: var(--fg-tertiary);
}

.ts-rule__dot[b-rplvq0um29] {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

.ts-rule__team[b-rplvq0um29] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.ts-rule__actions[b-rplvq0um29] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);
    margin-left: auto;
}

.ts-rules__end[b-rplvq0um29] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-5);
    background: var(--bg-secondary);
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-secondary);
}

.ts-rules__end b[b-rplvq0um29] {
    color: var(--text-primary);
}

.ts-rules__end > span[b-rplvq0um29] {
    flex: 1 1 18rem;
    min-width: 0;
}

.ts-rule-form[b-rplvq0um29] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

/* Title + one line under it (board): no divider between the title and its line. */
.ts-rules__intro .layout-detail-card__title[b-rplvq0um29] {
    margin: 0;
    padding-bottom: 0;
    border-bottom: 0;
}
/* /Components/Pages/Team/Teams/TeamsSection.razor.rz.scp.css */
/* Team > Teams: the page rhythm only. The cards own their own sheets; the stat tiles are the shared layout-stat-cards. */
.ts-section[b-pix7e1qgr7] {
    margin-top: 0;
}

.ts-teams[b-pix7e1qgr7] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: var(--spacing-4);
}

/* A KPI tile fills its grid cell. */
[data-kpi][b-pix7e1qgr7] {
    min-width: 0;
}

[data-kpi][b-pix7e1qgr7]  .metric-item {
    height: 100%;
}
/* /Components/Pages/Team/Teams/TeamTimeTargetsTab.razor.rz.scp.css */
/* Team page, tab 4. */
.tt-stack[b-jhfqr6armk] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    min-width: 0;
}

.tt-block[b-jhfqr6armk] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    min-width: 0;
}

.tt-intro[b-jhfqr6armk],
.tt-row__text[b-jhfqr6armk] {
    display: flex;
    flex-direction: column;
    flex: 1 1 16rem;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-primary);
}

.tt-row[b-jhfqr6armk] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3) var(--spacing-4);
    min-width: 0;
}

.tt-row + .tt-row[b-jhfqr6armk] {
    padding-top: var(--spacing-3);
    border-top: 1px solid var(--border-secondary);
}

.tt-row__text b[b-jhfqr6armk] {
    font-weight: var(--font-weight-semibold);
}

.tt-sub[b-jhfqr6armk] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-tertiary);
    overflow-wrap: anywhere;
}

.tt-example[b-jhfqr6armk] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    padding-top: var(--spacing-3);
    border-top: 1px solid var(--border-secondary);
}

.tt-example__title[b-jhfqr6armk] {
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-tertiary);
}

.tt-timeline[b-jhfqr6armk] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: var(--spacing-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tt-timeline li[b-jhfqr6armk] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: var(--spacing-2);
    border-top: 3px solid var(--border-primary);
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.tt-timeline li:first-child[b-jhfqr6armk] { border-top-color: var(--fg-success-primary); }
.tt-timeline li:nth-child(2)[b-jhfqr6armk] { border-top-color: var(--fg-warning-primary); }
.tt-timeline li:nth-child(3)[b-jhfqr6armk] { border-top-color: var(--fg-error-primary); }

.tt-timeline b[b-jhfqr6armk] {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* Title + one line under it (board): no divider between the title and its line. */
.tt-intro .layout-detail-card__title[b-jhfqr6armk] {
    margin: 0;
    padding-bottom: 0;
    border-bottom: 0;
}
/* /Components/Pages/Team/Teams/TeamWhenTab.razor.rz.scp.css */
/* Team page, tab 2. Condition wording and customer messages are free text (often Burmese): bounded, with a roomy line height. */
.tw-stack[b-sgsjut2eyg] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    min-width: 0;
}

.tw-block[b-sgsjut2eyg] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    min-width: 0;
}

.tw-head[b-sgsjut2eyg] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-3);
    min-width: 0;
}

.tw-intro[b-sgsjut2eyg] {
    flex: 1 1 18rem;
    min-width: 0;
}

.tw-sub[b-sgsjut2eyg],
.tw-hint[b-sgsjut2eyg] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-tertiary);
    overflow-wrap: anywhere;
}

.tw-warn[b-sgsjut2eyg] {
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-warning-primary);
}

.tw-reason[b-sgsjut2eyg] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    min-width: 0;
}

.tw-case[b-sgsjut2eyg] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    margin-inline-start: var(--spacing-8, 2rem);
    min-width: 0;
}

.tw-tags[b-sgsjut2eyg] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
}

.tw-tag[b-sgsjut2eyg] {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
}

.tw-tag[b-sgsjut2eyg]  .tag-text {
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.6;
}

.tw-add-case[b-sgsjut2eyg] {
    min-width: 10rem;
}

.tw-conds[b-sgsjut2eyg] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tw-cond[b-sgsjut2eyg] {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    min-width: 0;
    padding: var(--spacing-3) 0;
    border-top: 1px solid var(--border-secondary);
}

.tw-cond:first-child[b-sgsjut2eyg] {
    border-top: 0;
}

.tw-cond--off .tw-cond__text[b-sgsjut2eyg] {
    color: var(--text-tertiary);
}

.tw-cond__text[b-sgsjut2eyg] {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-primary);
}

.tw-test[b-sgsjut2eyg] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    min-width: 0;
    padding: var(--spacing-4);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.tw-test__title[b-sgsjut2eyg] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.tw-result[b-sgsjut2eyg] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    min-width: 0;
    font-size: var(--font-size-text-sm);
    line-height: 1.7;
    color: var(--text-secondary);
}

.tw-quote[b-sgsjut2eyg] {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.8;
}

.tw-rules[b-sgsjut2eyg] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    min-width: 0;
}

.tw-rule[b-sgsjut2eyg] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    min-width: 0;
    font-size: var(--font-size-text-sm);
    color: var(--text-primary);
}

.tw-rule--off[b-sgsjut2eyg] {
    color: var(--text-tertiary);
}

.tw-rule__n[b-sgsjut2eyg] {
    flex: none;
    min-width: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-tertiary);
}

.tw-rule__text[b-sgsjut2eyg] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.7;
}

.tw-form[b-sgsjut2eyg] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    min-width: 0;
}

/* Title + one line under it (board): no divider between the title and its line. */
.tw-intro .layout-detail-card__title[b-sgsjut2eyg] {
    margin: 0 0 2px;
    padding-bottom: 0;
    border-bottom: 0;
}
/* /Components/Pages/ThreadCaseBoard/ThreadCaseBoard.razor.rz.scp.css */
/* ── ThreadCaseBoard Shell ── */

.tcb-user-header[b-1qat7qc9mo] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-4) var(--spacing-4) var(--spacing-3);
    /* No border-bottom: the shared .subnav__header (SubNavPanel.razor.css) already
       draws the divider between this header slot and the nav items. Adding one here
       too stacked a second inset line ~16px above it. */
    margin-bottom: var(--spacing-1);
}

.tcb-user-header__info[b-1qat7qc9mo] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    min-width: 0;
}

.tcb-user-header__name[b-1qat7qc9mo] {
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tcb-user-header__status[b-1qat7qc9mo] {
    font-size: var(--font-size-text-xs);
    color: var(--color-text-tertiary);
    display: flex;
    align-items: center;
}

/* -- CDT-R1: case header + back link (proto:60, proto:379-382) --
   A sibling of .layout-settings, NEVER a wrapper around it: layouts.css targets
   `.app-shell__main > .layout-settings` for the fill rule, so nesting the panel one level
   deeper would silently stop it filling the viewport. */
.tcb-topbar[b-1qat7qc9mo] {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* proto:59 - the header is the design's own 12px/20px band, not a padding-less strip sitting on
       whatever inset its parent happened to have. It draws its own gutters because the body below
       it is edge-to-edge (three flush columns), so there is no page padding left to inherit. */
    gap: 10px;
    flex-shrink: 0;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-secondary);
    background: var(--bg-primary);
    margin-bottom: 0;
}

.tcb-topbar__back[b-1qat7qc9mo] {
    flex-shrink: 0;
    text-decoration: none;
}

.tcb-topbar__text[b-1qat7qc9mo] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* proto:61 - `font:600 17px var(--font-family-display); letter-spacing:-0.02em`.
   This is the fix for the header that read twice the size of the design: the element is an <h1>,
   and app.css gives a bare h1 --font-size-display-sm (30px/38px). Nothing here overrode the size,
   so the case title rendered at 30px against a design that draws it at 17px. */
.tcb-topbar__title[b-1qat7qc9mo] {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: var(--font-size-text-lg);
    line-height: 24px;
    letter-spacing: -0.02em;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -- CDT-C8 / BF-272: "Run remaining" and its report, in the case header (proto:77) -- */
.tcb-topbar__actions[b-1qat7qc9mo] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Never a disabled control with no words next to it (C27). */
.tcb-topbar__note[b-1qat7qc9mo] {
    color: var(--text-warning-primary);
    white-space: nowrap;
}

.tcb-report[b-1qat7qc9mo] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    padding: var(--spacing-3);
    /* The header now owns 20px gutters and the body below is edge-to-edge, so this strip has to
       inset itself or it runs into both page edges. */
    margin: var(--spacing-3) 20px;
    flex-shrink: 0;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary-subtle);
}

/* A clean run and a stopped run must not look the same at a glance. */
.tcb-report--clean[b-1qat7qc9mo] {
    border-color: var(--border-success);
    background: var(--bg-success-primary);
}

.tcb-report--stopped[b-1qat7qc9mo] {
    border-color: var(--border-warning);
    background: var(--bg-warning-primary);
}

.tcb-report__headline[b-1qat7qc9mo] {
    color: var(--text-primary);
}

.tcb-report--clean .tcb-report__headline[b-1qat7qc9mo] {
    color: var(--text-success-primary);
}

.tcb-report--stopped .tcb-report__headline[b-1qat7qc9mo] {
    color: var(--text-warning-primary);
}

.tcb-report__detail[b-1qat7qc9mo] {
    color: var(--text-secondary);
}

.tcb-report__lines[b-1qat7qc9mo] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.tcb-report__line[b-1qat7qc9mo] {
    color: var(--text-tertiary);
}

.tcb-report__line[data-run-outcome="blocked"][b-1qat7qc9mo],
.tcb-report__line[data-run-outcome="refused"][b-1qat7qc9mo] {
    color: var(--text-warning-primary);
}

.tcb-way-forward[b-1qat7qc9mo] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2);
    flex-wrap: wrap;
}

.tcb-way-forward__refusal[b-1qat7qc9mo] {
    color: var(--text-warning-primary);
}

/* -- Tab strip hidden (prototype has no tab column).
      No width rule is needed: .layout-settings is a flex row and .layout-settings__panel is
      already flex:1, so with the sidebar gone the panel fills the row on its own. The modifier
      stays as a styling/testing hook and as the visible marker that this page is running
      without its strip. -- */
.layout-settings--no-sidebar[b-1qat7qc9mo] {
    /* intentionally no layout overrides - see comment above */
}

/* -- Back out of a panel that the hidden strip can no longer return you from (C27) -- */
/* align-self IS LOAD-BEARING: the panel is a flex column, which stretches every child to its full
   width - inline-flex alone does not stop that, and the button ran across the whole page. */
.tcb-panel-back[b-1qat7qc9mo] {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--spacing-3, 12px);
    padding: 5px 12px 5px 8px;
    border: 1px solid var(--color-border-secondary);
    border-radius: var(--radius-md);
    background: var(--background-surface-primary);
    color: var(--color-text-secondary);
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    cursor: pointer;
}

.tcb-panel-back:hover[b-1qat7qc9mo] {
    background: var(--background-surface-secondary);
    color: var(--color-text-primary);
}

.tcb-panel-back:focus-visible[b-1qat7qc9mo] {
    outline: 2px solid var(--color-fg-brand-primary);
    outline-offset: 2px;
}

/* -- The one case-header row (proto:60-78) ---------------------------------------------------
   back · title · chips · progress · auto-run · Run remaining.
   It WRAPS rather than crushing: this workflow has five stages, so the chip run alone can exceed
   the row. Nothing in here may shrink to min-content - that is what previously collapsed the
   title to one word per line - and nothing may push "Run remaining" off the right edge. */
/* ONE ROW (proto:60). The previous rule let this header wrap, and on the real data it wrapped to
   three rows ~120px tall against a design that draws ~48px: this workflow has five stages and
   their names are sentences ("Move to Confirmed - Awaiting Arrival Stage"), so the chip run alone
   is wider than the row. The design's answer is not a taller header - it is chips that give way.
   Each pill ellipsises and carries its full name in its tooltip; the run as a whole is the only
   thing allowed to shrink, so the title, the progress and "Run remaining" never move.
   Below the design's own 1280px floor it wraps again, because there it genuinely cannot fit. */
.tcb-topbar[b-1qat7qc9mo] {
    flex-wrap: nowrap;
    row-gap: var(--spacing-2);
}

@media (max-width: 80rem) {
    .tcb-topbar[b-1qat7qc9mo] { flex-wrap: wrap; }
    .tcb-topbar__chips[b-1qat7qc9mo] { flex-wrap: wrap; }
}

/* proto:62 - a plain `flex:1` spacer between the title and everything on the right. The old
   `1 1 16rem` basis reserved a quarter of the row for a title that is one ellipsised line, which
   is what pushed the chip run and the progress bar onto a second row on ordinary widths. */
.tcb-topbar__text[b-1qat7qc9mo] {
    flex: 1 1 auto;
    /* Not 0: the title is the page's name and must stay readable, so it holds ~10rem before the
       chip run starts giving way. */
    min-width: 10rem;
}

.tcb-topbar__progress[b-1qat7qc9mo] { flex-shrink: 0; }

/* `flex: 0 1 auto` + `min-width: 0` is what makes the chip run the giving-way element. Past the
   point where ellipsis stops being readable it scrolls sideways instead of shrinking further —
   five stage names in the width the design drew for two has to end somewhere, and a chip squeezed
   to "Sta..." tells the reader nothing. */
.tcb-topbar__chips[b-1qat7qc9mo] {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex: 0 1 auto;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    /* Fade the trailing edge so a run that scrolls reads as "there is more", rather than as a
       stage name chopped mid-word. */
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
}

.tcb-topbar__chips[b-1qat7qc9mo]::-webkit-scrollbar { display: none; }

.tcb-chip[b-1qat7qc9mo] {
    min-width: 7rem;
    max-width: 13rem;
    flex-shrink: 1;
}

/* The stage the case is standing in is the one thing in this run that must never be abbreviated:
   it is the answer to "where is this case?". The stages either side of it may ellipsise. */
.tcb-chip.badge-brand[b-1qat7qc9mo] {
    flex-shrink: 0;
    max-width: 20rem;
}

.tcb-chip__label[b-1qat7qc9mo] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* proto:66 - the arrow that says the stages run in order. */
.tcb-chip__arrow[b-1qat7qc9mo] {
    flex-shrink: 0;
    color: var(--fg-quaternary);
}

/* The n-of-m inside a stage pill. It inherits the pill's own colour scale rather than forcing
   brand, so it stays legible on both the brand and the gray variant. */
.tcb-chip__count[b-1qat7qc9mo] {
    font-weight: 600;
    opacity: 0.85;
}

.tcb-topbar__progress[b-1qat7qc9mo] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* proto:70 - `font:500 12px; color:var(--text-tertiary)`. An ordinary count in the ordinary
   voice; .tcb-topbar__note is reserved for the warning cases below it. */
.tcb-topbar__progress-label[b-1qat7qc9mo] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 18px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* The track needs its own visible background - a bare fill on nothing reads as a stray blue
   stub at low percentages, which is how "1 of 9" looked. */
.tcb-progress-track[b-1qat7qc9mo] {
    width: 120px;
    height: 6px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--background-surface-secondary);
    border: 1px solid var(--color-border-secondary);
    overflow: hidden;
}

.tcb-progress-fill[b-1qat7qc9mo] {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--color-bg-brand-solid, var(--brand-600));
    transition: width 400ms ease;
}

.tcb-topbar__divider[b-1qat7qc9mo] {
    width: 1px;
    height: 18px;
    flex-shrink: 0;
    background: var(--color-border-secondary);
}

/* -- Auto-run switch -- */
.tcb-autorun[b-1qat7qc9mo] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.tcb-autorun__input[b-1qat7qc9mo] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.tcb-autorun__track[b-1qat7qc9mo] {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--background-surface-secondary);
    border: 1px solid var(--color-border-secondary);
    transition: background 150ms ease, border-color 150ms ease;
}

.tcb-autorun__thumb[b-1qat7qc9mo] {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--background-surface-primary);
    box-shadow: var(--shadow-sm);
    transition: transform 150ms ease;
}

.tcb-autorun--on .tcb-autorun__track[b-1qat7qc9mo] {
    background: var(--color-bg-brand-solid, var(--brand-600));
    border-color: var(--color-bg-brand-solid, var(--brand-600));
}

.tcb-autorun--on .tcb-autorun__thumb[b-1qat7qc9mo] { transform: translateX(14px); }

/* proto:75 - `font:500 12px; color:var(--text-tertiary)`. Same correction as the progress label:
   the switch's own caption was borrowing the warning voice. */
.tcb-autorun__label[b-1qat7qc9mo] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    line-height: 18px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* .tcb-topbar__actions is defined above (it keeps margin-left:auto so the run controls stay
   right-aligned); only the gap changes now that the switch and divider share the group.
   nowrap + no shrink: the switch stacking above "Run remaining" is what kept this header two rows
   tall even after the chips gave way, and neither control may be the thing that ellipsises. */
.tcb-topbar__actions[b-1qat7qc9mo] {
    gap: 10px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

@media (max-width: 80rem) {
    .tcb-topbar__actions[b-1qat7qc9mo] { flex-wrap: wrap; }
}

/* =============================================================================================
   THE BODY: three flush columns, not a card inside two nested insets (proto:81-372)
   ---------------------------------------------------------------------------------------------
   The design's case detail is edge-to-edge: a 330px step list, the report canvas, and a 320px
   context rail, separated by hairlines and nothing else. What was rendering instead was that row
   inside .layout-settings - a rounded, bordered card - inside .layout-settings__panel's 15px, on
   top of .layout-body's own 15px. That is a 1px stray border around the whole screen, 30px of
   inset the design does not have, and three columns floating with a 24px gutter between them
   where the design draws a border.

   Scoped to --no-sidebar (this page) so every other .layout-settings screen keeps its card.
   ============================================================================================= */
.layout-settings--no-sidebar[b-1qat7qc9mo] {
    border: none;
    border-radius: 0;
    min-height: 0;
    background: var(--bg-primary);
}

/* Only the PADDING goes, and only on the case-profile tab - the Documents surface reached from
   the rail has no gutters of its own and would otherwise sit flush against the viewport edges.
   The panel keeps its overflow-y:auto either way: Documents scrolls through it, and the case
   profile clips itself and scrolls its three columns individually (proto:82, 135, 373), so no
   second scrollbar appears there. */
.tcb-panel--flush[b-1qat7qc9mo] {
    padding: 0;
}
/* /Components/Pages/Users/ChatUserPreviewDrawer.razor.rz.scp.css */
/* Chat Users — conversation preview drawer (CHU-N1)
   Every colour, radius and shadow below is a token. No literal hex. */

/* The prototype's drawer is 400px; the shared Drawer's `md` is 480. ::deep is required —
   .drawer-panel belongs to the child <Drawer>, and scoped CSS does not reach a child
   component's internals without it. */
[b-4unfy1lwef] .drawer-panel {
    max-width: 400px;
}

/* ── Header identity block ── */
.cu-drawer__id[b-4unfy1lwef] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    min-width: 0;
    flex: 1;
}

.cu-drawer__id-text[b-4unfy1lwef] {
    flex: 1;
    min-width: 0;
}

.cu-drawer__name[b-4unfy1lwef] {
    margin: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cu-drawer__channel[b-4unfy1lwef] {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
}

.cu-drawer__channel-icon[b-4unfy1lwef] {
    display: inline-flex;
    width: 13px;
    height: 13px;
}

.cu-drawer__channel-icon svg[b-4unfy1lwef] {
    width: 100%;
    height: 100%;
}

/* ── Tabs ── */
.cu-drawer__tabs[b-4unfy1lwef] {
    margin-bottom: var(--spacing-4);
}

/* ── Generic section ── */
.cu-drawer__section[b-4unfy1lwef] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.cu-drawer__label[b-4unfy1lwef] {
    margin: var(--spacing-2) 0 var(--spacing-1);
    font-size: var(--font-size-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-quaternary);
}

.cu-drawer__skeleton-row[b-4unfy1lwef] {
    padding: var(--spacing-1) 0;
}

/* ── Transcript ── */
.cu-drawer__transcript[b-4unfy1lwef] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.cu-bubble-row[b-4unfy1lwef] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cu-bubble-row--in[b-4unfy1lwef] {
    align-items: flex-start;
}

.cu-bubble-row--out[b-4unfy1lwef] {
    align-items: flex-end;
}

.cu-bubble[b-4unfy1lwef] {
    max-width: 85%;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
    box-shadow: var(--shadow-xs);
    overflow-wrap: anywhere;
}

.cu-bubble--in[b-4unfy1lwef] {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-xs);
}

.cu-bubble--out[b-4unfy1lwef] {
    background: var(--bg-brand-solid);
    color: var(--text-primary-on-brand);
    border: 1px solid var(--bg-brand-solid);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-xs) var(--radius-lg);
}

/* Metta theme: soft brand tint + ink text instead of the full #FF3B00 accent —
   same treatment as the Inbox thread (ChatMessageDetail.razor.css). */
[data-theme="metta"] .cu-bubble--out[b-4unfy1lwef] {
    background: var(--bg-brand-secondary);
    color: var(--text-primary);
    border-color: var(--bg-brand-secondary);
}

/* A media-only message has no text. Saying so beats an empty bubble the reader
   cannot tell from a rendering fault. */
.cu-bubble__nontext[b-4unfy1lwef] {
    font-style: italic;
    opacity: 0.85;
}

.cu-bubble__time[b-4unfy1lwef] {
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
}

/* ── Captured information ── */
.cu-info[b-4unfy1lwef] {
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cu-info__row[b-4unfy1lwef] {
    display: flex;
    gap: var(--spacing-3);
    padding: var(--spacing-2) var(--spacing-3);
    border-bottom: 1px solid var(--border-tertiary);
    font-size: var(--font-size-text-sm);
}

.cu-info__row:last-child[b-4unfy1lwef] {
    border-bottom: none;
}

.cu-info__key[b-4unfy1lwef] {
    width: 88px;
    flex-shrink: 0;
    font-weight: 500;
    color: var(--text-quaternary);
}

.cu-info__val[b-4unfy1lwef] {
    color: var(--text-secondary);
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ── Files ── */
.cu-files[b-4unfy1lwef] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.cu-file[b-4unfy1lwef] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-2) var(--spacing-3);
}

.cu-file__icon[b-4unfy1lwef] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--fg-brand-primary);
}

.cu-file__name[b-4unfy1lwef] {
    flex: 1;
    min-width: 0;
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cu-file__size[b-4unfy1lwef] {
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
    flex-shrink: 0;
}

/* ── Footer ── */
[b-4unfy1lwef] .cu-drawer__open-btn {
    flex: 1;
}
/* /Components/Pages/Users/ChatUsers.razor.rz.scp.css */
/* Chat Users list page — scoped styles (CHU-R1)
   Every colour is a token. No literal hex. */

/* Page padding — layout-list ships with no padding, so the header would sit
   flush against the app-shell edges.

   T82: the whole column is also narrowed to 90% and centred — the same rule /activity and
   /setting use for their own content column (Setting.razor.css, T58) - rather than the header,
   stats strip and table spanning the app-shell's full remaining width. Horizontal padding moves
   off .layout-list itself: with both set, the 15px would sit INSIDE the 90% box, insetting the
   column a second time on top of the 5%-a-side margin the width/margin-inline pair already
   supplies. The 15px stays for top/bottom breathing room, which the width change does not touch. */
.layout-list[b-ynruj9p1k0] {
    padding: 15px 0;
    gap: var(--spacing-4);
    width: 90%;
    margin-inline: auto;
}

/* T89: the top gap above the header must match Activity's - .activity__header carries
   `padding-block: var(--spacing-3xl) var(--spacing-xl)` (Activity.razor.css), so its own top gap
   is --spacing-3xl, not this page's flat 15px. Overrides only padding-top, in a later declaration
   in the same rule the shorthand above sets - the bottom 15px is untouched, since this task is
   about the top gap only. */
.layout-list[b-ynruj9p1k0] {
    padding-top: var(--spacing-3xl);
}

/* T88: adopt the same compact treatment Settings ▸ General (Setting.razor.css's
 * .settings-panel--redesign ::deep .page-header* rules) already gives PageHeader, so this page's
 * header reads consistently with it rather than PageHeader's raw, full-page default sizing
 * (24px title over an 18px line). Numbers are kept in lockstep with Setting.razor.css's own
 * override on purpose, not re-derived - if that scale changes, this should move with it. */
.layout-list[b-ynruj9p1k0] >  .page-header,
.layout-list[b-ynruj9p1k0]  .page-header-content {
    gap: 10px;
}

.layout-list[b-ynruj9p1k0]  .page-header-left {
    gap: 4px;
}

.layout-list[b-ynruj9p1k0]  .page-header-title {
    font-size: var(--font-size-text-xl);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.layout-list[b-ynruj9p1k0]  .page-header-supporting {
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
}

/* ── Status legend (page header actions) ── */
.chat-users__legend[b-ynruj9p1k0] {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
}

.chat-users__legend-item[b-ynruj9p1k0] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);
    white-space: nowrap;
}

.chat-users__dot[b-ynruj9p1k0] {
    width: 7px;
    height: 7px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.chat-users__dot--recent[b-ynruj9p1k0] {
    background: var(--success-500);
}

.chat-users__dot--idle[b-ynruj9p1k0] {
    background: var(--fg-quaternary);
}

/* ── Context strip ── */
.chat-users__stats[b-ynruj9p1k0] {
    display: flex;
    gap: var(--spacing-3);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.chat-users__stat[b-ynruj9p1k0] {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--spacing-3) var(--spacing-4);
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.chat-users__stat-label[b-ynruj9p1k0] {
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    color: var(--text-quaternary);
}

.chat-users__stat-value[b-ynruj9p1k0] {
    font-size: var(--font-size-display-xs, 20px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.chat-users__stat-value--recent[b-ynruj9p1k0] {
    color: var(--text-success-primary);
}

/* ── Table wrapper: in-flight dim ──
   A re-query over rows that are already on screen must be visible, or a filter change that
   returns the same first page looks like a click that did nothing. Skeletons are for the
   FIRST load only; this is the "the rows you are reading are stale" signal.

   The dim is scoped to the ROWS (::deep .table-scroll), never the whole card: the search box,
   the status filter and the Refresh button all live in the toolbar above, and dimming — worse,
   disabling — the search input on every keystroke would fight the person typing in it. */
.chat-users__table[b-ynruj9p1k0] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

/* T84: the refresh button + range readout ride DataTable's ToolbarLeading slot, which renders as
   the toolbar row's FIRST child - left of the status filters and search box. Reorder it to the
   row's own end instead of reaching into DataTable's markup, which every other ToolbarLeading
   caller still relies on rendering first. .toolbar-actions is a plain flex row (table.css), so
   `order` alone moves it past the filter buttons and search box, both left at the default order. */
.chat-users__table[b-ynruj9p1k0]  .toolbar-leading {
    order: 1;
}

.chat-users__table[b-ynruj9p1k0]  .table-scroll {
    transition: opacity 150ms ease;
}

.chat-users__table--busy[b-ynruj9p1k0]  .table-scroll {
    opacity: 0.55;
}

/* ── Internal scrolling ──
   .layout-list clips its own overflow and delegates scrolling to the rows area, but the
   global rules that arrange that are direct-child selectors:
       .layout-list > .table-section > .table-scroll
   This table is wrapped in .chat-users__table (for the in-flight dim above), so that chain
   never matched: .table-section kept its natural full height inside an overflow:hidden
   parent, and everything past the fold was clipped with nothing able to scroll.
   Re-apply the same three rules through the wrapper. */
.chat-users__table[b-ynruj9p1k0]  .table-section {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.chat-users__table[b-ynruj9p1k0]  .table-section > .table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* Header row stays put while rows scroll. Collapsed borders don't travel with a sticky
   cell, so the divider is drawn as an inset shadow. */
.chat-users__table[b-ynruj9p1k0]  .data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    box-shadow: inset 0 -1px 0 var(--border-secondary);
}

/* ── Toolbar extras ── */
.chat-users__toolbar[b-ynruj9p1k0] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
}

.chat-users__refresh[b-ynruj9p1k0] {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--fg-tertiary);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
}

.chat-users__refresh:hover:not(:disabled)[b-ynruj9p1k0] {
    background: var(--bg-primary-hover);
    color: var(--text-secondary);
}

.chat-users__refresh:disabled[b-ynruj9p1k0] {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-users__refresh svg[b-ynruj9p1k0] {
    width: 15px;
    height: 15px;
}

@keyframes chat-users-spin-b-ynruj9p1k0 {
    to { transform: rotate(360deg); }
}

.chat-users__refresh-icon--spin[b-ynruj9p1k0] {
    animation: chat-users-spin-b-ynruj9p1k0 1s linear infinite;
}

.chat-users__range[b-ynruj9p1k0],
.chat-users__inflight[b-ynruj9p1k0] {
    font-size: var(--font-size-text-xs);
    font-weight: 500;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* ── No-match state ── */
.chat-users__no-match[b-ynruj9p1k0] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-6) var(--spacing-4);
}

/* ── Cells ── */
.chat-users__patient-cell[b-ynruj9p1k0] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    min-width: 0;
}

.chat-users__patient-name[b-ynruj9p1k0] {
    font-size: var(--font-size-text-sm);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.chat-users__last-cell[b-ynruj9p1k0] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.chat-users__last-message[b-ynruj9p1k0] {
    font-size: var(--font-size-text-sm);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-users__last-when[b-ynruj9p1k0] {
    font-size: var(--font-size-text-xs);
    color: var(--text-quaternary);
}

/* Rows are clickable now — say so with the cursor. */
[b-ynruj9p1k0] .table-row {
    cursor: pointer;
}
/* /Components/Shared/AdvancedFileUpload.razor.rz.scp.css */
/* ==========================================================================
   AdvancedFileUpload — scoped component styles
   Uses design-system tokens; no hardcoded hex values.
   ========================================================================== */

/* ── Outer wrapper ── */
.adv-upload[b-1qsn6moth3] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    width: 100%;
}

/* ── Hidden file input ── */
.adv-upload__input[b-1qsn6moth3] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Drop zone (idle / no file) ── */
.adv-upload__dropzone[b-1qsn6moth3] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-5) var(--spacing-6);
    background-color: var(--bg-primary);
    border: 1px dashed var(--border-secondary);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    text-align: center;
    min-height: 120px;
}

.adv-upload__dropzone:hover[b-1qsn6moth3] {
    border-color: var(--border-brand);
    background-color: var(--bg-brand-secondary);
}

/* ── Drop zone icon ── */
.adv-upload__dropzone-icon[b-1qsn6moth3] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--fg-quaternary);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.adv-upload__dropzone:hover .adv-upload__dropzone-icon[b-1qsn6moth3] {
    color: var(--fg-brand-primary);
}

.adv-upload__dropzone-icon svg[b-1qsn6moth3] {
    width: 100%;
    height: 100%;
}

/* ── Drop zone text ── */
.adv-upload__label[b-1qsn6moth3] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    line-height: var(--line-height-text-sm);
}

.adv-upload__hint[b-1qsn6moth3] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-regular);
    color: var(--text-tertiary);
    line-height: var(--line-height-text-xs);
}

/* ── File selected — preview row ── */
.adv-upload__preview[b-1qsn6moth3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-4);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
}

.adv-upload__preview-file[b-1qsn6moth3] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    min-width: 0;
    flex: 1;
}

/* Thumbnail (image preview) */
.adv-upload__preview-thumb[b-1qsn6moth3] {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

/* Generic file / video icon */
.adv-upload__preview-icon[b-1qsn6moth3] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--fg-quaternary);
    flex-shrink: 0;
}

.adv-upload__preview-icon svg[b-1qsn6moth3] {
    width: 1.25rem;
    height: 1.25rem;
}

/* File name + size */
.adv-upload__preview-info[b-1qsn6moth3] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-0-5);
    min-width: 0;
}

.adv-upload__preview-name[b-1qsn6moth3] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adv-upload__preview-size[b-1qsn6moth3] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-regular);
    color: var(--text-tertiary);
}

/* Remove button */
.adv-upload__remove-btn[b-1qsn6moth3] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--fg-quaternary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.adv-upload__remove-btn:hover[b-1qsn6moth3] {
    background-color: var(--bg-error-secondary);
    color: var(--fg-error-primary);
}

.adv-upload__remove-btn svg[b-1qsn6moth3] {
    width: 1rem;
    height: 1rem;
}

/* Upload button — full-width below the preview */
.adv-upload__upload-btn[b-1qsn6moth3] {
    width: 100%;
    justify-content: center;
}

/* ── Progress state ── */
.adv-upload__progress-wrap[b-1qsn6moth3] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    padding: var(--spacing-4);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
}

.adv-upload__progress-name[b-1qsn6moth3] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adv-upload__progress-meta[b-1qsn6moth3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2);
}

.adv-upload__progress-status[b-1qsn6moth3] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-regular);
    color: var(--text-tertiary);
}

/* ── Complete state ── */
.adv-upload__complete[b-1qsn6moth3] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-4);
    background-color: var(--bg-success-secondary);
    border: 1px solid var(--border-success-subtle);
    border-radius: var(--radius-xl);
}

.adv-upload__complete-icon[b-1qsn6moth3] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: var(--fg-success-primary);
    border-radius: var(--radius-full);
    color: var(--fg-white);
    flex-shrink: 0;
}

.adv-upload__complete-icon svg[b-1qsn6moth3] {
    width: 1rem;
    height: 1rem;
}

.adv-upload__complete-info[b-1qsn6moth3] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-0-5);
    flex: 1;
    min-width: 0;
}

.adv-upload__complete-title[b-1qsn6moth3] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-success-primary);
}

.adv-upload__complete-name[b-1qsn6moth3] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-regular);
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Error banner ── */
.adv-upload__error[b-1qsn6moth3] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2-5) var(--spacing-3);
    background-color: var(--bg-error-secondary);
    border: 1px solid var(--border-error-subtle);
    border-radius: var(--radius-lg);
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-regular);
    color: var(--text-error-primary);
}

.adv-upload__error svg[b-1qsn6moth3] {
    color: var(--fg-error-primary);
    flex-shrink: 0;
}
/* /Components/Shared/MarkdownViewer.razor.rz.scp.css */
/* MarkdownViewer — rendered HTML comes from a MarkupString, so its children do
   NOT receive this component's scope attribute. Reach them via ::deep from the
   statically-authored .markdown-content wrapper (see scoped-css gotcha note). */

.markdown-content[b-exlxn2eu6l] {
    overflow: visible;
    color: var(--text-neutral-primary, #181d27);
    /* Deliberate: was 14px (via a dead --font-size-sm fallback); now the text-sm body token (12.6px at the 90% root), the same size as the global .md-content markdown body. */
    font-size: var(--font-size-text-sm);
    line-height: 1.55;
    word-break: break-word;
}

.markdown-content.markdown-content--white[b-exlxn2eu6l],
.markdown-content.markdown-content--white[b-exlxn2eu6l]  * {
    color: #fff !important;
}

.markdown-content[b-exlxn2eu6l]  p {
    font-size: var(--font-size-text-md);
    margin: 0 0 8px;
}

.markdown-content[b-exlxn2eu6l]  p:last-child {
    margin-bottom: 0;
}

.markdown-content[b-exlxn2eu6l]  h1 {
    font-size: var(--font-size-display-xs);
    font-weight: 600;
    margin: 16px 0 8px;
}

.markdown-content[b-exlxn2eu6l]  h2 {
    font-size: var(--font-size-text-xl);
    font-weight: 600;
    margin: 14px 0 8px;
}

.markdown-content[b-exlxn2eu6l]  h3 {
    font-size: var(--font-size-text-lg);
    font-weight: 600;
    margin: 12px 0 6px;
}

.markdown-content[b-exlxn2eu6l]  strong {
    font-weight: 600;
}

.markdown-content[b-exlxn2eu6l]  ul,
.markdown-content[b-exlxn2eu6l]  ol {
    margin: 4px 0 8px;
    padding-left: 22px;
}

.markdown-content[b-exlxn2eu6l]  li {
    margin: 2px 0;
}

.markdown-content[b-exlxn2eu6l]  a {
    color: var(--text-brand-primary, #3f5fd6);
    text-decoration: underline;
}

.markdown-content[b-exlxn2eu6l]  code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--font-size-text-sm);
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 4px;
    padding: 1px 5px;
}

.markdown-content[b-exlxn2eu6l]  pre {
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 8px;
    padding: 12px 14px;
    overflow-x: auto;
}

.markdown-content[b-exlxn2eu6l]  pre code {
    background: transparent;
    padding: 0;
}

.markdown-content[b-exlxn2eu6l]  blockquote {
    margin: 8px 0;
    padding: 4px 12px;
    border-left: 3px solid var(--border-secondary, #e0e0e0);
    color: var(--text-neutral-secondary, #535862);
}

.markdown-content[b-exlxn2eu6l]  table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: var(--font-size-text-md);
}

.markdown-content[b-exlxn2eu6l]  th,
.markdown-content[b-exlxn2eu6l]  td {
    border: 1px solid var(--border-secondary, #dee2e6);
    padding: 8px 12px;
    text-align: left;
}

.markdown-content[b-exlxn2eu6l]  th {
    background-color: var(--bg-secondary, #f1f3f5);
    font-weight: 600;
}

.markdown-content[b-exlxn2eu6l]  tr:nth-child(even) {
    background-color: var(--bg-secondary, #f8f9fa);
}
/* /Components/Shared/OtpInput.razor.rz.scp.css */
/* --- OTP fields ---
 * Moved from Styles/components/auth.css: OtpInput.razor is this rule's only
 * consumer, and it renders both .otp-input-fields and its <input> children
 * directly (no child component in between), so Blazor's scoped-CSS rewrite
 * still reaches every element it needs to. */
.otp-input-fields[b-rxw6novg4w] { display: flex; gap: 14px; justify-content: center; }
.otp-input-fields input[b-rxw6novg4w] {
  width: 48px; height: 48px; text-align: center;
  font-size: var(--font-size-text-lg); font-weight: var(--font-weight-semibold);
  border: 1px solid var(--border-primary); border-radius: var(--radius-md);
  background: var(--bg-primary); color: var(--text-primary);
}
.otp-input-fields input:focus[b-rxw6novg4w] { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--bg-brand-primary); }

/* --- Size "lg": a left-aligned row of 56×64 boxes (/verifyemail) ---
 * Was four boxes stretched across the whole 400px column (~91×80, 40px digits); the
 * 2026-10 design pass sized them down so the code reads as a code, not as four buttons. */
.otp-input-fields--lg[b-rxw6novg4w] {
  justify-content: flex-start;
  gap: var(--spacing-2-5);
}
.otp-input-fields--lg input[b-rxw6novg4w] {
  width: 3.5rem;
  height: 4rem;
  flex-shrink: 0;
  padding: 0;
  font-size: var(--font-size-display-sm);
  line-height: var(--line-height-display-sm);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
  color: var(--text-brand-primary);
  box-shadow: var(--shadow-xs);
  transition: border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
}
.otp-input-fields--lg input.otp-input--filled[b-rxw6novg4w] { border-color: var(--border-brand); }
.otp-input-fields--lg input:focus[b-rxw6novg4w] { border-color: var(--border-brand); box-shadow: var(--focus-ring-brand-shadow-xs); }
.otp-input-fields--lg input:disabled[b-rxw6novg4w] { background: var(--bg-disabled-subtle); cursor: not-allowed; }

/* --- Error: every box after a refused code --- */
.otp-input-fields--error input[b-rxw6novg4w],
.otp-input-fields--error input.otp-input--filled[b-rxw6novg4w] { border-color: var(--border-error); color: var(--text-error-primary); }
.otp-input-fields--error input:focus[b-rxw6novg4w] { border-color: var(--border-error-solid); box-shadow: var(--focus-ring-error-shadow-xs); }

/* /Components/Shared/SubNavPanel.razor.rz.scp.css */
/* ==========================================================================
 * SubNavPanel — Vertical icon+label nav list for settings-style sidebar pages.
 *
 * Consumes: layout-settings__sidebar (parent provides 240px width, bg-secondary,
 *           padding-block: spacing-2, border-right). This component fills it.
 * ========================================================================== */

.subnav[b-9qj4w1t75w] {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* Optional header slot (e.g. user-info card) rendered above the item list */
.subnav__header[b-9qj4w1t75w] {
    padding: var(--spacing-3) var(--spacing-4);
    border-bottom: 1px solid var(--border-secondary);
    margin-bottom: var(--spacing-2);
}

/* Scrollable item list */
.subnav__list[b-9qj4w1t75w] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    padding: var(--spacing-2) var(--spacing-3);
    overflow-y: auto;
    flex: 1;
}

/* -------------------------------------------------------------------------
 * Nav item — rendered as <button> for accessibility
 * ------------------------------------------------------------------------- */

.subnav__item[b-9qj4w1t75w] {
    /* Reset */
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;

    /* Layout */
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    width: 100%;
    padding: var(--spacing-3) var(--spacing-3);
    border-radius: var(--radius-md);

    /* Visuals */
    color: var(--text-secondary);
    background: transparent;
    transition: background 120ms ease, color 120ms ease;
}

/* Hover state */
.subnav__item:hover:not(:disabled)[b-9qj4w1t75w] {
    background: var(--bg-primary-hover);
    color: var(--text-primary);
}

/* Focus-visible: keyboard navigation ring */
.subnav__item:focus-visible[b-9qj4w1t75w] {
    outline: 2px solid var(--border-brand-solid);
    outline-offset: 2px;
}

/* Active / selected */
.subnav__item--active[b-9qj4w1t75w] {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.subnav__item--active:hover[b-9qj4w1t75w] {
    background: var(--bg-tertiary);
}

/* Disabled */
.subnav__item--disabled[b-9qj4w1t75w],
.subnav__item:disabled[b-9qj4w1t75w] {
    cursor: not-allowed;
    opacity: 0.45;
    pointer-events: none;
}

/* -------------------------------------------------------------------------
 * Icon slot — wraps inline SVG render fragment
 * ------------------------------------------------------------------------- */

.subnav__icon[b-9qj4w1t75w] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--fg-quaternary);
    transition: color 120ms ease;
}

.subnav__item:hover:not(:disabled) .subnav__icon[b-9qj4w1t75w] {
    color: var(--fg-secondary);
}

.subnav__item--active .subnav__icon[b-9qj4w1t75w] {
    color: var(--fg-brand-primary);
}

/* -------------------------------------------------------------------------
 * Text block — label + optional description
 * ------------------------------------------------------------------------- */

.subnav__text[b-9qj4w1t75w] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: var(--spacing-0-5);
}

.subnav__label[b-9qj4w1t75w] {
    font-size: var(--font-size-text-md);
    font-weight: inherit;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subnav__description[b-9qj4w1t75w] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -------------------------------------------------------------------------
 * Badge slot — optional count badge
 * ------------------------------------------------------------------------- */

.subnav__badge[b-9qj4w1t75w] {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}
/* /Components/UI/MathInput.razor.rz.scp.css */
.mi-wrapper[b-k34f2ryn8t] {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.mi-wrapper:focus-within[b-k34f2ryn8t] {
    border-color: var(--text-brand-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--text-brand-primary) 20%, transparent);
}

.mi-wrapper[data-disabled="true"][b-k34f2ryn8t] {
    background: var(--bg-disabled, var(--bg-secondary));
    cursor: not-allowed;
    opacity: 0.6;
}

.mi-wrapper[data-invalid="true"][b-k34f2ryn8t] {
    border-color: var(--border-error, #f04438);
}

.mi-wrapper[data-invalid="true"]:focus-within[b-k34f2ryn8t] {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--border-error, #f04438) 20%, transparent);
}

.mi-label[b-k34f2ryn8t] {
    display: flex;
    gap: var(--spacing-1);
    align-items: center;
    padding: var(--spacing-2) var(--spacing-3) 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-text-sm);
    color: var(--text-secondary);
}

.mi-label-required[b-k34f2ryn8t] { color: var(--text-error-primary); }

.mi-field-area[b-k34f2ryn8t] {
    padding: var(--spacing-3) var(--spacing-4);
}

.mi-field[b-k34f2ryn8t] {
    width: 100%;
    outline: none;
    font-size: var(--font-size-text-md);
    line-height: var(--line-height-text-md);
    color: var(--text-primary);
}

.mi-footer[b-k34f2ryn8t] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-xs);
    line-height: var(--line-height-text-xs);
    color: var(--text-tertiary);
}

.mi-error-text[b-k34f2ryn8t]   { color: var(--text-error-primary); }
.mi-helper-text[b-k34f2ryn8t]  { color: var(--text-tertiary); }

.mi-field-area.mi-mode-source math-field[b-k34f2ryn8t] {
    display: none;
}

.mi-source-preview[b-k34f2ryn8t] {
    margin: 0;
    padding: var(--spacing-2) var(--spacing-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-text-sm);
    line-height: var(--line-height-text-sm);
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-all;
}
/* /Components/UI/PhotoViewerHost.razor.rz.scp.css */
/* ============================================================
   Photo viewer — full-screen overlay over the app shell.

   COLOUR: tokens only. The chrome is light-on-dark in every theme, because the surface it
   sits on is the scrim, not the page — so it takes --fg-white rather than --fg-primary,
   which would be near-black in the five light themes and invisible here. Hover and border
   tints are derived from --fg-white with color-mix, never hard-coded rgba.

   The scrim colour is applied TWICE, on .pv and again on .pv__scrim. In themes where
   --bg-overlay is opaque that changes nothing; in marvelo-book, where it is 0.7 alpha, the
   two layers compose to ~0.91 — dark enough to actually look at a photo through, without
   inventing a colour the theme never defined.
   ============================================================ */

.pv[b-mtshm1ld5r] {
    position: fixed;
    inset: 0;
    /* Above the drawer (8000), below the toast stack (9000): a delivery failure that fires
       while a photo is open must still be readable. */
    z-index: 8500;
    display: block;
    background: var(--bg-overlay);
    overscroll-behavior: contain;
    color: var(--fg-white);
}

.pv:focus[b-mtshm1ld5r] { outline: none; }

.pv__scrim[b-mtshm1ld5r] {
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    cursor: zoom-out;
}

/* ===== Bars ===== */

.pv__bar[b-mtshm1ld5r] {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-4, 12px);
    padding: 12px 16px;
    pointer-events: none; /* only the controls inside are clickable */
}

.pv__bar--top[b-mtshm1ld5r] {
    top: 0;
    justify-content: space-between;
}

.pv__bar--bottom[b-mtshm1ld5r] {
    bottom: 0;
    flex-direction: column;
    gap: 10px;
}

.pv__id[b-mtshm1ld5r] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    pointer-events: auto;
}

.pv__title[b-mtshm1ld5r] {
    font-size: var(--font-size-text-sm);
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48vw;
}

.pv__sub[b-mtshm1ld5r] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-text-xs);
    opacity: 0.75;
    white-space: nowrap;
}

.pv__sep-dot[b-mtshm1ld5r] {
    width: 3px;
    height: 3px;
    border-radius: var(--radius-full);
    background: currentColor;
    opacity: 0.7;
    flex: none;
}

.pv__tools[b-mtshm1ld5r] {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--fg-white) 10%, transparent);
    pointer-events: auto;
}

.pv__sep[b-mtshm1ld5r] {
    width: 1px;
    align-self: stretch;
    margin: 4px 4px;
    background: color-mix(in srgb, var(--fg-white) 22%, transparent);
    flex: none;
}

/* ===== Buttons ===== */

.pv__btn[b-mtshm1ld5r] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--fg-white);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 120ms ease-out;
}

.pv__btn:hover[b-mtshm1ld5r] {
    background: color-mix(in srgb, var(--fg-white) 18%, transparent);
}

.pv__btn:active[b-mtshm1ld5r] {
    background: color-mix(in srgb, var(--fg-white) 28%, transparent);
}

.pv__btn:focus-visible[b-mtshm1ld5r] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

/* ===== Stage ===== */

.pv__stage[b-mtshm1ld5r] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Pointer-transparent so a click on the dark area reaches the scrim and closes the
       viewer. The image below re-enables pointer events for itself, and wheel/pointer events
       raised on it still bubble to the listeners photo-viewer.js binds here. */
    pointer-events: none;
    touch-action: none;
}

.pv__img[b-mtshm1ld5r] {
    max-width: 92vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    display: block;
    pointer-events: auto;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    /* No transition on transform: the wheel and the drag write it continuously, and an
       easing curve on those reads as lag rather than polish. */
    will-change: transform;
}

.pv__stage--zoomed .pv__img[b-mtshm1ld5r] { cursor: grab; }

.pv__stage--dragging .pv__img[b-mtshm1ld5r] { cursor: grabbing; }

/* ===== Prev / next ===== */

.pv__nav[b-mtshm1ld5r] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--fg-white) 12%, transparent);
    color: var(--fg-white);
    cursor: pointer;
    transition: background-color 120ms ease-out;
}

.pv__nav:hover[b-mtshm1ld5r] { background: color-mix(in srgb, var(--fg-white) 24%, transparent); }

.pv__nav:focus-visible[b-mtshm1ld5r] {
    outline: 2px solid var(--border-brand);
    outline-offset: 2px;
}

.pv__nav--prev[b-mtshm1ld5r] { left: 16px; }
.pv__nav--next[b-mtshm1ld5r] { right: 16px; }

/* ===== Caption + thumbnail strip ===== */

.pv__caption[b-mtshm1ld5r] {
    margin: 0;
    max-width: min(720px, 90vw);
    text-align: center;
    font-size: var(--font-size-text-sm);
    line-height: 1.45;
    opacity: 0.9;
    pointer-events: auto;
}

.pv__strip[b-mtshm1ld5r] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px;
    list-style: none;
    max-width: 90vw;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--fg-white) 10%, transparent);
    pointer-events: auto;
}

.pv__strip li[b-mtshm1ld5r] { margin: 0; padding: 0; flex: none; }

.pv__thumb[b-mtshm1ld5r] {
    display: block;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 120ms ease-out, border-color 120ms ease-out;
}

.pv__thumb:hover[b-mtshm1ld5r] { opacity: 0.9; }

.pv__thumb--current[b-mtshm1ld5r] {
    opacity: 1;
    border-color: var(--fg-white);
}

.pv__thumb:focus-visible[b-mtshm1ld5r] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

.pv__thumb img[b-mtshm1ld5r] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Narrow screens ===== */

@media (max-width: 640px) {
    .pv__title[b-mtshm1ld5r] { max-width: 40vw; }

    .pv__img[b-mtshm1ld5r] { max-width: 100vw; max-height: 70vh; }

    .pv__nav[b-mtshm1ld5r] { width: 38px; height: 38px; }
    .pv__nav--prev[b-mtshm1ld5r] { left: 6px; }
    .pv__nav--next[b-mtshm1ld5r] { right: 6px; }

    .pv__btn[b-mtshm1ld5r] { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .pv__btn[b-mtshm1ld5r],
    .pv__nav[b-mtshm1ld5r],
    .pv__thumb[b-mtshm1ld5r] { transition: none; }
}
/* /Components/UI/RangeInput.razor.rz.scp.css */
/* ==========================================================================
 * RangeInput — single-thumb slider on SEMANTIC tokens (design-spec §6).
 * Track 6px (--bg-secondary-hover + --border-secondary hairline), fill
 * --bg-brand-solid up to the thumb centre, thumb 24x24 --bg-primary with a
 * 2px --bg-brand-solid ring. Track area 24px tall so the hit area is >= 24x24
 * (WCAG 2.5.8). Tokens only — every one is declared in all 4 themes x 2 modes.
 * The fill stop mirrors the native thumb-centre maths:
 *   12px + fraction * (100% - 24px)   (--range-input-fraction set inline, 0..1)
 * ========================================================================== */
.range-input[b-t4hh0vqtmu] {
    --range-input-thumb: 24px;
    --range-input-track: 6px;
    --range-input-fill: var(--bg-brand-solid);
    --range-input-rest: var(--bg-secondary-hover);
    --range-input-edge: var(--border-secondary);
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: var(--range-input-thumb);
}

.range-input__control[b-t4hh0vqtmu] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    min-width: 0;
    height: var(--range-input-thumb);
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.range-input__control:focus[b-t4hh0vqtmu] {
    outline: none;
}

/* ---- WebKit / Blink ------------------------------------------------------ */
.range-input__control[b-t4hh0vqtmu]::-webkit-slider-runnable-track {
    height: var(--range-input-track);
    border-radius: var(--radius-full);
    background: linear-gradient(
        to right,
        var(--range-input-fill) 0,
        var(--range-input-fill) calc(12px + var(--range-input-fraction, 0) * (100% - 24px)),
        var(--range-input-rest) calc(12px + var(--range-input-fraction, 0) * (100% - 24px)),
        var(--range-input-rest) 100%);
    box-shadow: inset 0 0 0 1px var(--range-input-edge);
}

.range-input__control[b-t4hh0vqtmu]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: var(--range-input-thumb);
    height: var(--range-input-thumb);
    margin-top: calc((var(--range-input-track) - var(--range-input-thumb)) / 2);
    border: 2px solid var(--bg-brand-solid);
    border-radius: 50%;
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
}

/* ---- Firefox ------------------------------------------------------------- */
.range-input__control[b-t4hh0vqtmu]::-moz-range-track {
    box-sizing: border-box;
    height: var(--range-input-track);
    border: 1px solid var(--range-input-edge);
    border-radius: var(--radius-full);
    background: var(--range-input-rest);
}

.range-input__control[b-t4hh0vqtmu]::-moz-range-progress {
    height: var(--range-input-track);
    border-radius: var(--radius-full);
    background: var(--range-input-fill);
}

.range-input__control[b-t4hh0vqtmu]::-moz-range-thumb {
    box-sizing: border-box;
    width: var(--range-input-thumb);
    height: var(--range-input-thumb);
    border: 2px solid var(--bg-brand-solid);
    border-radius: 50%;
    background: var(--bg-primary);
    box-shadow: var(--shadow-xs);
}

/* ---- Hover: the track hairline takes the brand colour ---------------------- */
.range-input:not(.range-input--disabled):hover[b-t4hh0vqtmu] {
    --range-input-edge: var(--bg-brand-solid);
}

.range-input:not(.range-input--disabled):hover .range-input__control[b-t4hh0vqtmu]::-webkit-slider-thumb {
    box-shadow: var(--shadow-sm);
}

.range-input:not(.range-input--disabled):hover .range-input__control[b-t4hh0vqtmu]::-moz-range-thumb {
    box-shadow: var(--shadow-sm);
}

/* ---- Keyboard focus: the brand ring on the thumb --------------------------- */
.range-input__control:focus-visible[b-t4hh0vqtmu]::-webkit-slider-thumb {
    box-shadow: var(--focus-ring-brand);
}

.range-input__control:focus-visible[b-t4hh0vqtmu]::-moz-range-thumb {
    box-shadow: var(--focus-ring-brand);
}

/* ---- Disabled: disabled tokens, never opacity (contrast holds per theme) --- */
.range-input--disabled[b-t4hh0vqtmu] {
    --range-input-fill: var(--border-disabled);
    --range-input-rest: var(--bg-disabled);
    --range-input-edge: var(--border-disabled);
}

.range-input--disabled .range-input__control[b-t4hh0vqtmu] {
    cursor: not-allowed;
}

.range-input--disabled .range-input__control[b-t4hh0vqtmu]::-webkit-slider-thumb {
    border-color: var(--border-disabled);
    background: var(--bg-disabled);
    box-shadow: none;
}

.range-input--disabled .range-input__control[b-t4hh0vqtmu]::-moz-range-thumb {
    border-color: var(--border-disabled);
    background: var(--bg-disabled);
    box-shadow: none;
}

/* ---- Motion: only the hover/focus shadow eases; never the thumb position --- */
@media (prefers-reduced-motion: no-preference) {
    .range-input__control[b-t4hh0vqtmu]::-webkit-slider-thumb {
        transition: box-shadow 0.15s ease;
    }

    .range-input__control[b-t4hh0vqtmu]::-moz-range-thumb {
        transition: box-shadow 0.15s ease;
    }
}
/* /Components/UI/RichTextEditor.razor.rz.scp.css */
.rte-wrapper[b-e6lp2mrlz0] {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.rte-wrapper:focus-within[b-e6lp2mrlz0] {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-alpha-20, rgba(122, 90, 248, 0.2));
}

.rte-wrapper[data-disabled="true"][b-e6lp2mrlz0] {
    background: var(--bg-disabled, var(--bg-secondary));
    cursor: not-allowed;
    opacity: 0.6;
}

.rte-wrapper[data-invalid="true"][b-e6lp2mrlz0] {
    border-color: var(--border-error, #f04438);
}

.rte-wrapper[data-invalid="true"]:focus-within[b-e6lp2mrlz0] {
    box-shadow: 0 0 0 4px var(--error-alpha-20, rgba(240, 68, 56, 0.2));
}

.rte-content-area[b-e6lp2mrlz0] {
    overflow: auto;
    min-height: var(--rte-min-height, 12rem);
    max-height: var(--rte-max-height, none);
}

.rte-label[b-e6lp2mrlz0] {
    display: flex;
    gap: var(--spacing-1);
    align-items: center;
    padding: var(--spacing-2) var(--spacing-3) 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-text-sm);
    color: var(--text-secondary);
}

.rte-label-required[b-e6lp2mrlz0] { color: var(--text-error-primary); }

.rte-footer[b-e6lp2mrlz0] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-xs);
    line-height: var(--line-height-text-xs);
    color: var(--text-tertiary);
}

.rte-error-text[b-e6lp2mrlz0] { color: var(--text-error-primary); }
.rte-helper-text[b-e6lp2mrlz0] { color: var(--text-tertiary); }
.rte-character-count[b-e6lp2mrlz0] { color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.rte-character-count[data-over="true"][b-e6lp2mrlz0] { color: var(--text-error-primary); }
/* /Components/UI/RichTextEditorToolbar.razor.rz.scp.css */
.rte-toolbar[b-ggfa9si2ci] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-1);
    padding: var(--spacing-2);
    border-bottom: 1px solid var(--border-secondary);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.rte-toolbar-group[b-ggfa9si2ci] {
    display: inline-flex;
    gap: var(--spacing-0-5, 2px);
    align-items: center;
}

.rte-toolbar-group--block[b-ggfa9si2ci] {
    min-width: 9rem;
}

.rte-toolbar-divider[b-ggfa9si2ci] {
    width: 1px;
    height: 1.25rem;
    background: var(--border-secondary);
    margin-inline: var(--spacing-1);
}

.rte-toolbar-btn-active[b-ggfa9si2ci] {
    background: var(--bg-secondary, rgba(0, 0, 0, 0.06));
}

.rte-link-menu[b-ggfa9si2ci] {
    display: flex;
    gap: var(--spacing-2);
    align-items: center;
    padding: var(--spacing-2) var(--spacing-3);
    border-bottom: 1px solid var(--border-secondary);
}

.rte-link-menu-input[b-ggfa9si2ci] {
    flex: 1;
    padding: var(--spacing-1) var(--spacing-2);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--font-size-text-sm);
}

.rte-link-menu-input:focus[b-ggfa9si2ci] {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha-20, rgba(122, 90, 248, 0.2));
}

.rte-swatch-grid[b-ggfa9si2ci] {
    display: grid;
    grid-template-columns: repeat(4, 1.75rem);
    gap: var(--spacing-1);
    padding: var(--spacing-2);
}

.rte-swatch[b-ggfa9si2ci] {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-secondary);
    cursor: pointer;
}

.rte-swatch:focus-visible[b-ggfa9si2ci] {
    outline: 2px solid var(--text-brand-primary);
    outline-offset: 2px;
}

.rte-swatch-clear[b-ggfa9si2ci] {
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--font-size-text-xl);
    line-height: 1;
}

.rte-table-picker[b-ggfa9si2ci] { padding: var(--spacing-2); }
.rte-table-grid[b-ggfa9si2ci] {
    display: grid;
    grid-template-columns: repeat(6, 1rem);
    gap: 2px;
}
.rte-table-cell[b-ggfa9si2ci] {
    width: 1rem;
    height: 1rem;
    padding: 0;
    border: 1px solid var(--border-primary);
    background: var(--bg-primary);
    cursor: pointer;
}
.rte-table-cell-on[b-ggfa9si2ci] {
    background: var(--text-brand-primary);
    border-color: var(--text-brand-primary);
}
.rte-table-picker-label[b-ggfa9si2ci] {
    text-align: center;
    font-size: var(--font-size-text-xs);
    line-height: var(--line-height-text-xs);
    color: var(--text-secondary);
    margin-top: var(--spacing-2);
}
.rte-menu-divider[b-ggfa9si2ci] {
    border: 0;
    border-top: 1px solid var(--border-secondary);
    margin: var(--spacing-2) 0;
}
.rte-menu-item[b-ggfa9si2ci] {
    display: block;
    width: 100%;
    padding: var(--spacing-2) var(--spacing-3);
    background: transparent;
    border: 0;
    border-radius: var(--radius-xs);
    text-align: start;
    cursor: pointer;
    color: var(--text-primary);
    font-size: var(--font-size-text-sm);
    line-height: var(--line-height-text-sm);
    font-family: inherit;
}
.rte-menu-item:hover[b-ggfa9si2ci],
.rte-menu-item:focus-visible[b-ggfa9si2ci] {
    background: var(--bg-secondary);
    outline: none;
}

.rte-align-menu[b-ggfa9si2ci] {
    padding: var(--spacing-1);
    min-width: 8rem;
}

@media (max-width: 640px) {
    .rte-toolbar[b-ggfa9si2ci] { gap: var(--spacing-0-5, 2px); }
    .rte-toolbar-divider[b-ggfa9si2ci] { display: none; }
}
/* /Components/UI/ThemeSwitcher.razor.rz.scp.css */
.theme-switcher[b-s4rijl90w6] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    position: relative;
}

.theme-switcher__trigger[b-s4rijl90w6],
.theme-switcher__mode-toggle[b-s4rijl90w6] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.theme-switcher__trigger:hover[b-s4rijl90w6],
.theme-switcher__mode-toggle:hover:not(:disabled)[b-s4rijl90w6] {
    background: var(--bg-secondary-hover);
    color: var(--text-primary);
}

.theme-switcher__mode-toggle[b-s4rijl90w6] {
    padding: var(--spacing-2);
    width: 2rem;
    height: 2rem;
    justify-content: center;
}

.theme-switcher__mode-toggle:disabled[b-s4rijl90w6] {
    opacity: 0.4;
    cursor: not-allowed;
}

.theme-switcher__mode-toggle svg[b-s4rijl90w6] {
    width: 1rem;
    height: 1rem;
}

.theme-switcher__swatch-stack[b-s4rijl90w6] {
    display: inline-flex;
    gap: 2px;
}

.theme-switcher__swatch[b-s4rijl90w6] {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-switcher__chevron[b-s4rijl90w6] {
    width: 0.875rem;
    height: 0.875rem;
}

.theme-switcher__menu[b-s4rijl90w6] {
    position: absolute;
    top: calc(100% + var(--spacing-1));
    right: 0;
    min-width: 18rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    padding: var(--spacing-1);
    display: flex;
    flex-direction: column;
}

.theme-switcher__option[b-s4rijl90w6] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-2) var(--spacing-3);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.theme-switcher__option:hover[b-s4rijl90w6] {
    background: var(--bg-secondary-hover);
}

.theme-switcher__option--active[b-s4rijl90w6] {
    background: var(--bg-active);
}

.theme-switcher__option-text[b-s4rijl90w6] {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.theme-switcher__option-name[b-s4rijl90w6] {
    color: var(--text-primary);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
}

.theme-switcher__option-desc[b-s4rijl90w6] {
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
    margin-top: 0.125rem;
}

.theme-switcher__check[b-s4rijl90w6] {
    width: 1rem;
    height: 1rem;
    color: var(--fg-brand-primary);
}

/* Theme block — wraps a theme option button + its palette row */
.theme-switcher__theme-block[b-s4rijl90w6] {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm);
}

.theme-switcher__theme-block + .theme-switcher__theme-block[b-s4rijl90w6] {
    margin-top: 2px;
}

/* Trigger label palette segment */
.theme-switcher__name-divider[b-s4rijl90w6] {
    color: var(--text-quaternary);
    margin-inline: 0.125rem;
}

.theme-switcher__name-palette[b-s4rijl90w6] {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* Palette dot row — inline horizontal strip under each theme row */
.theme-switcher__palette-row[b-s4rijl90w6] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-1);
    padding: var(--spacing-1) var(--spacing-3) var(--spacing-2);
    margin-left: 2.25rem; /* aligns under the option-text column, past the swatch stack */
}

/* Individual palette dot — circle swatch + label */
.theme-switcher__palette-dot[b-s4rijl90w6] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.theme-switcher__palette-dot:hover[b-s4rijl90w6] {
    background: var(--bg-secondary-hover);
    color: var(--text-primary);
}

.theme-switcher__palette-dot:focus-visible[b-s4rijl90w6] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

.theme-switcher__palette-dot--active[b-s4rijl90w6] {
    background: var(--bg-active);
    border-color: var(--border-secondary);
    color: var(--text-primary);
}

.theme-switcher__palette-swatch[b-s4rijl90w6] {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.theme-switcher__palette-label[b-s4rijl90w6] {
    line-height: 1;
}

/* =========================================================================
 * Sidebar-footer placement — fill the rail width and open the menu upward
 * (the switcher is pinned to the bottom of the sidebar, so a downward menu
 * would be clipped by the viewport).
 * ========================================================================= */
.sidebar-nav-footer-top .theme-switcher[b-s4rijl90w6] {
    width: 100%;
}

.sidebar-nav-footer-top .theme-switcher__trigger[b-s4rijl90w6] {
    flex: 1;
    min-width: 0; /* allow the long theme name to ellipsis instead of overflowing */
}

.sidebar-nav-footer-top .theme-switcher__name[b-s4rijl90w6] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-nav-footer-top .theme-switcher__menu[b-s4rijl90w6] {
    top: auto;
    bottom: calc(100% + var(--spacing-1));
    left: 0;
    right: 0;
}
