:root {
  /* TaakaSuite look (redesign 2026-11, canvas "TaakaSuite Redesign"): white work surfaces on a
     cool grey page, a dark compact sidebar, one accent, and one status language (dot + label). */

  /* Accent */
  --color-primary: #2350D8;
  --color-primary-hover: #1D44BC;
  --color-primary-dark: #1A3DA8;
  --color-primary-light: #EEF3FD;
  --color-primary-lighter: #DCE5FB;
  --color-focus-ring: rgba(35, 80, 216, 0.18);

  /* Text */
  --color-text: #101828;
  --color-text-light: #3A4659;
  --color-text-muted: #5D6B82;
  --color-text-secondary: #687489;

  /* Borders & backgrounds */
  --color-border: #E4E7EC;
  --color-border-strong: #D5DAE2;
  --color-border-light: #EEF0F3;
  --color-page: #F5F6F8;
  --color-bg: #FFFFFF;
  --color-bg-subtle: #F8F9FB;
  --color-bg-muted: #F1F3F6;
  --color-bg-sidebar: #121A2B;
  --color-bg-warm: #FFFFFF;

  /* Sidebar */
  --sidebar-bg: #121A2B;
  --sidebar-raised: #1B2538;
  --sidebar-active: #24324D;
  --sidebar-line: #24324D;
  --sidebar-text: #C3CBD8;
  --sidebar-text-strong: #FFFFFF;
  --sidebar-text-muted: #93A0B4;
  --sidebar-label: #8794A8;

  /* Status: the same pair (text, tint) everywhere a state is shown */
  --color-success: #1E7A45;
  --color-success-dot: #1E8A4C;
  --color-success-light: #E6F4EC;
  --color-warning: #8A5300;
  --color-warning-dot: #C77700;
  --color-warning-light: #FFF4E0;
  --color-danger: #A3360A;
  --color-danger-dot: #C2410C;
  --color-danger-light: #FDEEE6;
  --color-danger-strong: #B42318;
  --color-info: #3E43B8;
  --color-info-dot: #5B5FD6;
  --color-info-light: #ECECFB;
  --color-teal: #0B5E69;
  --color-teal-light: #E3F3F5;
  --color-purple: #6D32D6;
  --color-purple-light: #F0EAFC;
  --color-neutral-dot: #8794A8;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.8125rem;
  --font-size-base: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.875rem;

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-pill: 9999px;
  --control-height: 40px;
}

html, body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.45;
    color: var(--color-text);
    background-color: var(--color-page) !important;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .page-title {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.content {
    padding-top: 1.75rem;
    padding-bottom: 3rem;
    background-color: var(--color-page);
}

/* The sidebar's collapse button sticks 12px into the page, level with the page title: give the
   page enough room that the title never starts under it (the phone layout below overrides this). */
@media (min-width: 769px) {
    .content {
        padding-left: 2.5rem !important;
        padding-right: 2rem !important;
    }
}

a, .btn-link {
    color: var(--color-primary);
}

a:hover, .btn-link:hover {
    color: var(--color-primary-dark);
}

/* Bootstrap pieces still used on older pages, in the same look. */
.btn-primary {
    color: #fff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-border-strong);
}

.btn-outline-primary:hover {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
}

.btn-secondary, .btn-outline-secondary {
    color: var(--color-text);
    background-color: var(--color-bg);
    border-color: var(--color-border-strong);
}

.btn-secondary:hover, .btn-outline-secondary:hover {
    color: var(--color-text);
    background-color: var(--color-bg-muted);
    border-color: var(--color-border-strong);
}

.btn { border-radius: var(--radius-md); font-weight: 500; }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.form-control, .form-select { border-color: var(--color-border-strong); border-radius: var(--radius-md); }

.table { color: var(--color-text); }
.table > :not(caption) > * > * { border-bottom-color: var(--color-border-light); }
.table thead th { font-size: var(--font-size-xs); font-weight: 500; color: var(--color-text-muted); }

.badge { font-weight: 600; border-radius: var(--radius-pill); }
.bg-primary { background-color: var(--color-primary) !important; }
.bg-success { background-color: var(--color-success-dot) !important; }
.bg-warning { background-color: var(--color-warning-dot) !important; color: #fff !important; }
.bg-danger { background-color: var(--color-danger-dot) !important; }
.bg-info { background-color: var(--color-info-dot) !important; color: #fff !important; }
.bg-secondary { background-color: var(--color-neutral-dot) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-muted { color: var(--color-text-muted) !important; }

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    /* Above every page overlay (progress shield 2000, confirm 2100): a page that stopped responding must say so. */
    z-index: 3000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Reconnect notice (Components/Shared/ConnectionNotices.razor, UI-17). blazor.web.js adds one of
   components-reconnect-show | -failed | -rejected, and -hide when the connection is back. */
.reconnect-notice {
    display: none;
    position: fixed;
    inset: 0;
    /* Above every page overlay, the progress shield (2000) and confirm dialog (2100) included. At 1100 a deploy
       during a long action left "Generating visits…" on screen all night over a hidden "This page has to reload". */
    z-index: 3000;
    background: rgba(15, 23, 42, 0.35);
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 1rem 1rem;
}

.reconnect-notice.components-reconnect-show,
.reconnect-notice.components-reconnect-failed,
.reconnect-notice.components-reconnect-rejected {
    display: flex;
}

.reconnect-notice__card {
    background: var(--color-bg, #fff);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 30rem;
    padding: 1.25rem 1.5rem;
}

.reconnect-notice__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0.25rem 0 0.5rem;
}

.reconnect-notice__state { display: none; }
.reconnect-notice.components-reconnect-show .reconnect-notice__state--show,
.reconnect-notice.components-reconnect-failed .reconnect-notice__state--failed,
.reconnect-notice.components-reconnect-rejected .reconnect-notice__state--rejected {
    display: block;
}

.reconnect-notice__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* The server is stopping for an update (DeployNotice, UI-17). */
.deploy-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1090;
    background: #fff4d6;
    border-bottom: 1px solid #e6c46b;
    padding: 0.6rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ═══════════════════════════════════════════
   Layout — Page, Sidebar, Main Content
   A dark compact sidebar (section labels, no icon per section while expanded; icons only
   when collapsed), a search that filters the menu, and the account menu under the user's name.
   ═══════════════════════════════════════════ */

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--color-page);
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 12px 12px;
    transition: width 0.2s ease-in-out;
}

.sidebar-collapsed .sidebar {
    width: 68px;
    padding-inline: 10px;
}

.page > main {
    flex: 1;
    min-width: 0;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.2s ease-in-out;
    background-color: var(--color-page);
}

.sidebar-collapsed > main {
    margin-left: 68px;
}

/* Only the phone shows the top bar (it holds the menu button). */
.top-row {
    display: none;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    height: 3.25rem;
    align-items: center;
}

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-text);
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: var(--color-text);
    left: 0;
}

.hamburger-icon::before { top: -7px; }
.hamburger-icon::after  { top: 7px; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(16, 24, 40, 0.45);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px !important;
        padding-inline: 12px !important;
        transition: transform 0.2s ease-in-out;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .page > main {
        margin-left: 0 !important;
    }
    .top-row, .hamburger-btn {
        display: flex;
    }
    .sidebar-overlay {
        display: block;
    }
    .sidebar-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }
    .sidebar-toggle {
        display: none !important;
    }
    .content {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 1.25rem;
    }
}

/* ═══════════════════════════════════════════
   Sidebar Navigation
   ═══════════════════════════════════════════ */

.sidebar-toggle {
    position: absolute;
    top: 22px;
    right: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--color-border-strong);
    background: var(--color-bg);
    color: var(--color-text-muted);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.sidebar-toggle:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Brand */
.nav-header {
    display: flex;
    align-items: center;
    padding: 2px 4px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.brand-name {
    color: var(--sidebar-text-strong);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-label {
    font-size: 12px;
    color: var(--sidebar-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrolling area */
.nav-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    margin-inline: -4px;
    padding-inline: 4px;
    scrollbar-width: thin;
    scrollbar-color: #33405A transparent;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 8px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* A section label ("PLAN"), which also folds the section */
button.nav-group-header {
    appearance: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font: inherit;
}

.nav-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 4px;
    cursor: pointer;
    color: var(--sidebar-label);
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.nav-group-header .nav-group-title {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-group-header:hover { color: var(--sidebar-text); }

.nav-group-header:focus-visible,
.sidebar .nav-link:focus-visible,
.user-card:focus-visible {
    outline: 2px solid #6B8CF0;
    outline-offset: 1px;
}

.nav-chevron {
    font-size: 0.6rem;
    opacity: 0;
    transition: opacity 0.15s;
}

.nav-group-header:hover .nav-chevron,
.nav-group-header:focus-visible .nav-chevron,
.nav-group-header[aria-expanded="false"] .nav-chevron {
    opacity: 1;
}

/* Section icons appear only in the collapsed rail. */
.nav-icon-circle {
    display: none;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--sidebar-text);
}

/* A section that is a single page ("Analytics & Reports") reads as an item, not a label. */
.nav-group--single .nav-group-header {
    height: 34px;
    padding: 0 10px;
    color: var(--sidebar-text);
}

.nav-group--single .nav-group-header .nav-group-title {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.nav-group--single .nav-group-header:hover { background: var(--sidebar-raised); color: #fff; }

.nav-group--single .nav-group-header.active {
    background: var(--sidebar-active);
    color: #fff;
}

.nav-group--single .nav-group-header.active .nav-group-title { font-weight: 500; }

.nav-group-children {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Override Bootstrap's .nav-link inside the sidebar */
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .nav-link:hover {
    background: var(--sidebar-raised);
    color: #fff;
}

.sidebar .nav-link.active {
    background: var(--sidebar-active);
    color: #fff;
    font-weight: 500;
}

.nav-external {
    font-size: 0.65rem;
    opacity: 0.6;
}

/* Collapsed rail: one icon per section, no labels. */
.sidebar-collapsed .nav-icon-circle { display: flex; }
.sidebar-collapsed .nav-group-header { justify-content: center; padding: 0; }
.sidebar-collapsed .nav-group-header:hover .nav-icon-circle,
.sidebar-collapsed .nav-group-header.active .nav-icon-circle { background: var(--sidebar-raised); color: #fff; }
.sidebar-collapsed .nav-group--single .nav-group-header { height: auto; background: transparent; }
.sidebar-collapsed .nav-menu { gap: 4px; align-items: center; }
.sidebar-collapsed .nav-header { justify-content: center; padding: 2px 0; }

/* Account (bottom) */
.nav-footer {
    position: relative;
    padding-top: 10px;
    border-top: 1px solid var(--sidebar-line);
}

.user-card {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 6px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.user-card:hover,
.user-card[aria-expanded="true"] {
    background: var(--sidebar-raised);
}

.sidebar-collapsed .user-card { justify-content: center; }

.user-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2E3B57;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.user-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.user-name {
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--sidebar-text-muted);
}

.user-more {
    color: var(--sidebar-text-muted);
}

/* Canvas Main footer: the card (opens the account menu) and a direct Settings link beside it. */
.user-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-row .user-card { flex: 1; min-width: 0; }

.account-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
}

.account-menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    z-index: 2;
    width: 220px;
    max-width: calc(100vw - 32px);
    padding: 6px;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.18);
}

.account-menu-who {
    display: flex;
    flex-direction: column;
    padding: 6px 10px 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--color-border-light);
    min-width: 0;
}

.account-menu-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-email { font-size: 12px; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.account-menu-item {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.account-menu-item:hover {
    background: var(--color-bg-muted);
    color: var(--color-text);
}

/* ═══════════════════════════════════════════
   Organization Page — Modern Restyle
   ═══════════════════════════════════════════ */

/* Layout */
.org-page-split {
    display: flex;
    min-height: calc(100vh - 8rem);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.org-tree-panel {
    width: 320px;
    min-width: 320px;
    background: var(--color-bg-subtle);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.org-content-panel {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Tree panel header */
.org-tree-panel-header {
    padding: 1.25rem 1.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

/* Tree node */
.org-tree-node {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
    user-select: none;
}

.org-tree-node:hover {
    background-color: #f0f2f5;
}

.org-tree-node--selected {
    background-color: #edf2ff;
    border-radius: 8px;
    margin: 0 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.org-tree-node--selected:hover {
    background-color: #dbe4ff;
}

.org-tree-node__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 0.25rem;
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.15s, color 0.15s;
    flex-shrink: 0;
}

.org-tree-node__chevron:hover {
    background-color: #e5e7eb;
    color: var(--color-text-light);
}

.org-tree-node__spacer {
    width: 20px;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.org-tree-node__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    margin-right: 0.5rem;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.org-tree-node__icon--corporate {
    background-color: var(--color-primary-lighter);
    color: var(--color-primary);
}

.org-tree-node__icon--region {
    background-color: #d1fae5;
    color: #059669;
}

.org-tree-node__icon--office {
    background-color: #fef3c7;
    color: #d97706;
}

.org-tree-node__icon--other {
    background-color: #ede9fe;
    color: #7c3aed;
}

.org-tree-node__name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.org-tree-node--selected .org-tree-node__name {
    color: var(--color-primary);
    font-weight: 600;
}

.org-tree-node__inactive {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.org-tree-node__add-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    flex-shrink: 0;
    opacity: 0;
}

.org-tree-node:hover .org-tree-node__add-child,
.org-tree-node--selected .org-tree-node__add-child {
    opacity: 1;
}

.org-tree-node__add-child:hover {
    background-color: var(--color-primary-lighter);
    color: var(--color-primary);
}

.org-tree-node__delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    flex-shrink: 0;
    opacity: 0;
}

.org-tree-node:hover .org-tree-node__delete,
.org-tree-node--selected .org-tree-node__delete {
    opacity: 1;
}

.org-tree-node__delete:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Breadcrumb */
.org-breadcrumb {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.org-breadcrumb span + span::before {
    content: " › ";
    margin: 0 0.35rem;
    color: var(--color-border-strong);
}

/* Content header */
.org-content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.org-content-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* Tabs */
.org-tabs {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 1.5rem;
    gap: 0;
}

.org-tab {
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.org-tab:hover {
    color: var(--color-primary);
}

.org-tab--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

/* Stat cards */
.org-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.org-stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: #fff;
}

.org-stat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.org-stat-card__text {
    display: flex;
    flex-direction: column;
}

.org-stat-card__number {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

.org-stat-card__label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.org-stat-card--blue .org-stat-card__icon {
    background-color: var(--color-primary-lighter);
    color: var(--color-primary);
}

.org-stat-card--green .org-stat-card__icon {
    background-color: #d1fae5;
    color: #059669;
}

.org-stat-card--amber .org-stat-card__icon {
    background-color: #fef3c7;
    color: #d97706;
}

.org-stat-card--purple .org-stat-card__icon {
    background-color: #ede9fe;
    color: #7c3aed;
}

.org-stat-card--rose .org-stat-card__icon {
    background-color: #ffe4e6;
    color: #e11d48;
}

/* User table */
.org-user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.org-user-table thead th {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.org-user-table tbody tr {
    transition: background-color 0.1s;
}

.org-user-table tbody tr:hover {
    background-color: var(--color-bg-subtle);
}

.org-user-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-bg-muted);
    vertical-align: middle;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Avatar */
.org-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.org-avatar--blue     { background-color: #3b82f6; }
.org-avatar--green    { background-color: #10b981; }
.org-avatar--amber    { background-color: #f59e0b; }
.org-avatar--purple   { background-color: #8b5cf6; }
.org-avatar--rose     { background-color: #f43f5e; }

/* Role badge */
.org-role-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 0.25rem;
}

.org-role-badge--admin {
    background-color: #fef3c7;
    color: #92400e;
}

.org-role-badge--manager {
    background-color: var(--color-primary-lighter);
    color: #1e40af;
}

.org-role-badge--viewer {
    background-color: #d1fae5;
    color: #065f46;
}

.org-role-badge--default {
    background-color: var(--color-bg-muted);
    color: var(--color-text-light);
}

/* Role card */
.org-role-card {
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 100%;
}

.org-role-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(59, 91, 219, 0.08);
}

/* Status dot */
.org-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.org-status-dot--active {
    background-color: #22c55e;
}

.org-status-dot--inactive {
    background-color: var(--color-border-strong);
}

/* Filter badge */
.org-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    background-color: #eef2ff;
    color: #4338ca;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.org-filter-badge__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #6366f1;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: background-color 0.15s;
}

.org-filter-badge__remove:hover {
    background-color: var(--color-primary-lighter);
}

/* Pagination summary */
.org-pagination-summary {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
}

/* Empty state */
.org-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-secondary);
}

.org-empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.org-empty-state p {
    margin: 0;
    font-size: 0.875rem;
}

/* ═══════════════════════════════════════════
   Wizard-in-Modal Styles
   ═══════════════════════════════════════════ */

.wizard-modal-body {
    padding: 0;
}

.wizard-modal-body .modal-content {
    border-radius: 20px;
    overflow: hidden;
}

/* Round the modal-content when wizard is inside */
.modal .wizard-modal-body ~ .modal-content,
.modal-content:has(.wizard-modal-body) {
    border-radius: 20px;
}

/* Also target the parent modal-content directly */
.wizard-modal-body .card {
    border: none;
    box-shadow: none;
}

.wizard-modal-body .card-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
}

.wizard-modal-body .card-body {
    padding: 1.5rem;
}

.wizard-modal-body .card-footer {
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
}

.wizard-field-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
}

.wizard-field-input {
    background-color: var(--color-bg-muted);
    border: 1px solid transparent;
    border-radius: 8px;
}

.wizard-field-input:focus {
    background-color: #fff;
    border-color: var(--color-primary);
}

.wizard-role-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wizard-role-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.wizard-role-item:hover {
    background-color: var(--color-bg-subtle);
    border-color: var(--color-primary);
}

.wizard-review-section {
    padding: 1rem 1.25rem;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.wizard-review-section h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.wizard-review-section dt {
    font-size: 0.8rem;
    font-weight: 500;
}

.wizard-review-section dd {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 992px) {
    .org-page-split {
        flex-direction: column;
    }

    .org-tree-panel {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        max-height: 300px;
    }

    .org-content-panel {
        padding: 1.25rem;
    }
}

/* ═══════════════════════════════════════════
   Rounded Modal Dialog (Wizard)
   ═══════════════════════════════════════════ */

.modal-dialog:has(.wizard-modal-body) .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-dialog:has(.wizard-modal-body) .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.75rem 0.5rem;
}

.modal-dialog:has(.wizard-modal-body) .modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
}

/* ═══════════════════════════════════════════
   Step Wizard (sw-)
   ═══════════════════════════════════════════ */

.sw-wizard {
    display: flex;
    flex-direction: column;
}

/* Stepper */
.sw-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem 2rem 1.25rem;
    gap: 0;
}

.sw-stepper__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sw-stepper__circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    background: #fff;
    color: var(--color-text-secondary);
    border: 2px solid var(--color-border-strong);
    transition: all 0.2s;
}

.sw-stepper__circle--active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.15);
}

.sw-stepper__circle--completed {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.sw-stepper__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
    text-align: center;
    white-space: nowrap;
}

.sw-stepper__label--active {
    color: var(--color-primary);
}

.sw-stepper__line {
    flex: 1;
    height: 2px;
    background: var(--color-border-strong);
    margin-top: 19px;
    min-width: 40px;
}

.sw-stepper__line--completed {
    background: var(--color-primary);
}

/* Divider */
.sw-divider {
    height: 1px;
    background: var(--color-border);
}

/* Body */
.sw-body {
    padding: 1.5rem 1.75rem;
    min-height: 200px;
    max-height: 55vh;
    overflow-y: auto;
}

/* Footer */
.sw-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.75rem 1.25rem;
}

.sw-footer__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: none;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: color 0.15s, background-color 0.15s;
}

.sw-footer__back:hover:not(:disabled) {
    color: var(--color-text);
    background-color: var(--color-bg-muted);
}

.sw-footer__back--disabled,
.sw-footer__back:disabled {
    color: var(--color-border-strong);
    cursor: not-allowed;
}

.sw-footer__next {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.sw-footer__next:hover:not(:disabled) {
    background: #364fc7;
    box-shadow: 0 4px 12px rgba(59, 91, 219, 0.3);
}

.sw-footer__next:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════
   Permission Module Selector (pms-)
   ═══════════════════════════════════════════ */

.pms-section-header {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.pms-module-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* Module card — collapsed */
.pms-module {
    border-radius: 12px;
    background: var(--color-bg-muted);
    border: 2px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
    overflow: hidden;
}

/* Module card — expanded */
.pms-module--expanded {
    background: #eef2ff;
    border-color: var(--color-primary-lighter);
}

/* Module header row */
.pms-module__header {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    cursor: pointer;
    user-select: none;
    gap: 0.75rem;
    transition: background-color 0.15s;
}

.pms-module__header:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.pms-module--expanded .pms-module__header {
    background: transparent;
}

/* Module icon */
.pms-module__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pms-module--expanded .pms-module__icon {
    color: var(--color-primary);
}

/* Module name */
.pms-module__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-light);
    flex: 1;
}

.pms-module--expanded .pms-module__name {
    color: var(--color-primary);
}

/* Selected count badge (collapsed) */
.pms-module__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.4rem;
    border-radius: 9999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Chevron */
.pms-module__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: color 0.15s;
}

.pms-module--expanded .pms-module__chevron {
    color: var(--color-primary);
}

/* Module body (expanded permission list) */
.pms-module__body {
    padding: 0 1rem 0.75rem 1rem;
}

/* Permission list with left border line */
.pms-permission-list {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--color-primary-lighter);
    margin-left: 1rem;
}

/* Individual permission row */
.pms-permission-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem 0.6rem 1rem;
    cursor: pointer;
    transition: background-color 0.1s;
    border-radius: 0 8px 8px 0;
    margin: 0;
}

.pms-permission-item:hover {
    background-color: rgba(59, 91, 219, 0.04);
}

.pms-permission-item__name {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 400;
}

/* Custom checkbox */
.pms-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-border-strong);
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: background-color 0.15s, border-color 0.15s;
}

.pms-checkbox:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.pms-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.pms-checkbox:hover:not(:checked) {
    border-color: var(--color-text-secondary);
}

/* ========================
   Compliance Tab Styles
   ======================== */

/* Stat cards — mirrors org-stat-cards */
.comp-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comp-stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: #fff;
}

.comp-stat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.comp-stat-card__text {
    display: flex;
    flex-direction: column;
}

.comp-stat-card__number {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

.comp-stat-card__label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.comp-stat-card--green .comp-stat-card__icon {
    background-color: #d1fae5;
    color: #059669;
}

.comp-stat-card--red .comp-stat-card__icon {
    background-color: #ffe4e6;
    color: #e11d48;
}

.comp-stat-card--blue .comp-stat-card__icon {
    background-color: var(--color-primary-lighter);
    color: var(--color-primary);
}

.comp-stat-card--amber .comp-stat-card__icon {
    background-color: #fef3c7;
    color: #d97706;
}

/* Toolbar: search + filter */
.comp-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.comp-search {
    flex: 1;
    position: relative;
}

.comp-search__icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    pointer-events: none;
}

.comp-search__input {
    width: 100%;
    padding: 0.55rem 0.85rem 0.55rem 2.25rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--color-text-light);
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.comp-search__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.08);
}

.comp-filter-group {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.comp-filter-btn {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    background: #fff;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.comp-filter-btn + .comp-filter-btn {
    border-left: 1px solid var(--color-border);
}

.comp-filter-btn:hover {
    background: var(--color-bg-subtle);
}

.comp-filter-btn--active {
    background: var(--color-primary);
    color: #fff;
}

.comp-filter-btn--active:hover {
    background: #3451c7;
}

.comp-filter-btn--pass.comp-filter-btn--active {
    background: #059669;
}

.comp-filter-btn--pass.comp-filter-btn--active:hover {
    background: #047857;
}

.comp-filter-btn--fail.comp-filter-btn--active {
    background: #e11d48;
}

.comp-filter-btn--fail.comp-filter-btn--active:hover {
    background: #be123c;
}

/* Entity type section — collapsible group */
.comp-section {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.comp-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: var(--color-bg-subtle);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s;
}

.comp-section__header:hover {
    background: var(--color-bg-muted);
}

.comp-section__left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.comp-section__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--color-primary-lighter);
    color: var(--color-primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.comp-section__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.comp-section__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.4rem;
    border-radius: 6px;
    background: var(--color-border);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.comp-section__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comp-section__stats {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.comp-section__stat-pass {
    color: #059669;
}

.comp-section__stat-fail {
    color: #e11d48;
}

.comp-section__chevron {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.comp-section__body {
    border-top: 1px solid var(--color-border);
}

/* Entity row within the unified table */
.comp-entity-row {
    cursor: pointer;
    user-select: none;
}

.comp-entity-row > td {
    padding: 0 !important;
    background: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border) !important;
}

.comp-entity-row:hover > td {
    background: var(--color-bg-muted);
}

.comp-entity-row__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
}

.comp-entity-row__left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comp-entity-row__chevron {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    width: 16px;
    text-align: center;
}

.comp-entity-row__name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
}

.comp-entity-row__badges {
    display: flex;
    gap: 0.35rem;
}

/* Badges */
.comp-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.comp-badge--pass {
    background-color: #d1fae5;
    color: #065f46;
}

.comp-badge--fail {
    background-color: #ffe4e6;
    color: #9f1239;
}

/* Table — mirrors org-user-table */
.comp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.comp-table thead th {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    background: var(--color-bg-subtle);
}

.comp-table tbody tr {
    transition: background-color 0.1s;
}

.comp-table tbody tr:hover {
    background-color: var(--color-bg-subtle);
}

.comp-table tbody td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--color-bg-muted);
    vertical-align: middle;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.comp-table tbody tr:last-child td {
    border-bottom: none;
}

.comp-table__row--fail {
    background-color: #fff5f5;
}

.comp-table__row--fail:hover {
    background-color: #fee2e2 !important;
}

.comp-code {
    font-size: 0.8rem;
    color: var(--color-primary);
    background: #f0f3ff;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* Empty state */
.comp-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-secondary);
}

.comp-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.comp-empty p {
    margin: 0;
    font-size: 0.875rem;
}

.comp-empty--sm {
    padding: 1.5rem 1rem;
}

/* ═══════════════════════════════════════════
   Unified Page Components
   ═══════════════════════════════════════════ */

/* Page header — title + action button */
.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px 16px;
    margin-bottom: 1.5rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--color-text);
    margin: 0;
}

.page-subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* "Was: <old page name>" under a redesigned page's title (WasLabel). */
.page-was {
    display: inline-block;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

/* Primary action button (Create, New, etc.) */
.page-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--control-height);
    padding: 0 16px;
    white-space: nowrap;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.page-action-btn:hover {
    background-color: var(--color-primary-hover);
    color: #fff;
    text-decoration: none;
}

.page-action-btn:active {
    background-color: var(--color-primary-dark);
}

.page-action-btn i {
    font-size: 0.9rem;
}

/* Secondary outline button */
.page-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--control-height);
    padding: 0 14px;
    white-space: nowrap;
    background-color: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.page-btn-outline:hover {
    background-color: var(--color-bg-muted);
    color: var(--color-text);
    text-decoration: none;
}

/* Danger outline button */
.page-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--control-height);
    padding: 0 14px;
    white-space: nowrap;
    background-color: var(--color-bg);
    color: var(--color-danger-strong);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.page-btn-danger:hover {
    background-color: var(--color-danger-light);
    border-color: var(--color-danger-strong);
}

/* Small button variants for table rows */
.page-btn-sm {
    min-height: 32px;
    padding: 0 10px;
    font-size: var(--font-size-sm);
}

/* Filter toolbar */
.page-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    margin-bottom: 1.25rem;
}

.page-toolbar__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 150px;
}

.page-toolbar__field--search {
    flex: 2;
    min-width: 200px;
}

.page-toolbar__field--action {
    flex: 0 0 auto;
}

.page-toolbar__label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-muted);
}

.page-toolbar__input {
    min-height: var(--control-height);
    padding: 0 12px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.15s, background-color 0.15s;
}

.page-toolbar__input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg);
    box-shadow: 0 0 0 3px var(--color-focus-ring);
}

/* Stat cards grid */
.page-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.page-stat-card:hover {
    border-color: var(--color-border-strong);
}

.page-stat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.page-stat-card__text {
    display: flex;
    flex-direction: column;
}

.page-stat-card__number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    color: var(--color-text);
}

.page-stat-card__label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.2;
}

/* Stat card color variants */
.page-stat-card--blue .page-stat-card__icon { background: var(--color-primary-lighter); color: var(--color-primary); }
.page-stat-card--green .page-stat-card__icon { background: var(--color-success-light); color: var(--color-success); }
.page-stat-card--amber .page-stat-card__icon { background: var(--color-warning-light); color: var(--color-warning); }
.page-stat-card--red .page-stat-card__icon { background: var(--color-danger-light); color: var(--color-danger); }
.page-stat-card--purple .page-stat-card__icon { background: var(--color-purple-light); color: var(--color-purple); }

/* Tabs */
.page-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 1.5rem;
    gap: 0;
}

.page-tab {
    white-space: nowrap;
    padding: 0.65rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.page-tab:hover {
    color: var(--color-text);
}

.page-tab--active {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

.page-tab__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.4rem;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-xs);
    font-weight: 700;
    background: var(--color-primary);
    color: #fff;
}

.page-tab__badge--warning {
    background: var(--color-warning-dot);
}

.page-tab__badge--muted {
    background: var(--color-text-secondary);
}

/* Content card */
.page-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-bg);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.page-card__header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border-light);
}

.page-card__title {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.page-card__body {
    padding: 20px;
}

/* Modern table */
.page-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.page-table thead th {
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border-light);
    text-align: left;
    white-space: nowrap;
    background-color: var(--color-bg-subtle);
}

.page-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text);
    font-size: var(--font-size-base);
    vertical-align: middle;
    white-space: nowrap;
    max-width: 28rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cells that hold paragraphs opt out of the one-line rule. */
.page-table td.wrap,
.page-table td.page-table__wrap { white-space: normal; max-width: none; }

.page-table tbody tr {
    background-color: var(--color-bg);
    transition: background-color 0.1s;
}

.page-table tbody tr:hover {
    background-color: var(--color-bg-subtle);
}

.page-table tbody tr:last-child td {
    border-bottom: none;
}

/* Standardized status badge */
.page-badge,
[class^="page-badge--"], [class*=" page-badge--"] {
    --dot: currentColor;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 9px;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-xs);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
    background: var(--color-bg-muted);
    color: var(--color-text-light);
}

.page-badge::before,
[class^="page-badge--"]::before, [class*=" page-badge--"]::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dot);
}

/* A badge that carries its own icon, or is just a count, needs no dot. */
.page-badge:has(> i)::before, [class*="page-badge--"]:has(> i)::before,
.page-badge.page-badge--count::before { display: none; }

.page-badge--success { background: var(--color-success-light); color: var(--color-success); --dot: var(--color-success-dot); }
.page-badge--warning { background: var(--color-warning-light); color: var(--color-warning); --dot: var(--color-warning-dot); }
.page-badge--danger { background: var(--color-danger-light); color: var(--color-danger); --dot: var(--color-danger-dot); }
.page-badge--info,
.page-badge--primary { background: var(--color-info-light); color: var(--color-info); --dot: var(--color-info-dot); }
.page-badge--muted,
.page-badge--secondary { background: var(--color-bg-muted); color: var(--color-text-muted); --dot: var(--color-neutral-dot); }
.page-badge--purple { background: var(--color-purple-light); color: var(--color-purple); --dot: var(--color-purple); }
.page-badge--teal { background: var(--color-teal-light); color: var(--color-teal); --dot: var(--color-teal); }

/* Status dot */
.page-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.4rem;
}

.page-status-dot--active { background-color: var(--color-success-dot); }
.page-status-dot--inactive { background-color: var(--color-neutral-dot); }

/* Modal overlay */
.page-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.page-modal {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    border: none;
}

.page-modal--lg {
    max-width: 700px;
}

.page-modal--xl {
    max-width: 900px;
}

/* Inline ?-icon button sitting next to a page title to open the HelpDialog.
   Subtle by default so it doesn't compete with primary actions; rounds out
   on hover to make it discoverable. */
.page-help-trigger {
    background: none;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.25rem 0.4rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.page-help-trigger:hover,
.page-help-trigger:focus-visible {
    color: var(--color-primary);
    background-color: var(--color-bg-muted);
    border-color: var(--color-border);
    outline: none;
}

/* Left-rail topic nav used by HelpDialog. Keeps the dialog body as a
   flex row: ~220px sidebar of topic buttons, rest is scrollable content. */
.page-help__layout {
    display: flex;
    min-height: 420px;
    max-height: calc(90vh - 140px);
}

.page-help__rail {
    flex: 0 0 220px;
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
    padding: 0.75rem 0;
}

.page-help__rail-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    padding: 0.5rem 1rem 0.5rem calc(1rem - 3px);
    color: var(--color-text);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.15s, border-left-color 0.15s;
}

.page-help__rail-btn:hover {
    background-color: var(--color-bg-muted);
}

.page-help__rail-btn--active {
    background-color: var(--color-bg-muted);
    border-left-color: var(--color-primary);
    font-weight: 600;
}

.page-help__content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.page-help__content section + section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.page-help__content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.page-help__content ol,
.page-help__content ul {
    padding-left: 1.25rem;
}

.page-help__content li {
    margin-bottom: 0.35rem;
}

.page-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.page-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.page-modal__close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background-color 0.15s;
}

.page-modal__close:hover {
    color: var(--color-text);
    background-color: var(--color-bg-muted);
}

.page-modal__body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.page-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

/* Empty state */
.page-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--color-text-secondary);
}

.page-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.page-empty p {
    margin: 0;
    font-size: var(--font-size-base);
}

/* Alert messages */
.page-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    margin-bottom: 1rem;
}

.page-alert--success {
    background: var(--color-success-light);
    color: var(--color-success);
    border: 1px solid #a7f3d0;
}

.page-alert--danger {
    background: var(--color-danger-light);
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.page-alert--warning {
    background: var(--color-warning-light);
    color: var(--color-warning);
    border: 1px solid #f5cf8f;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.page-alert--warning a { color: inherit; font-weight: 600; text-decoration: underline; }

.page-alert__close {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
}

.page-alert__close:hover {
    opacity: 1;
}

/* Form field */
.page-field-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 0.35rem;
}

.page-field-input {
    width: 100%;
    min-height: var(--control-height);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.page-field-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg);
    box-shadow: 0 0 0 3px var(--color-focus-ring);
}

/* Loading spinner */
.page-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
}

/* ═══════════════════════════════════════════
   DataTable Wrapper & Styled Pagination
   ═══════════════════════════════════════════ */

.dt-wrapper {
    background: var(--color-bg-warm);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 1rem;
    position: relative;
}

.dt-columns-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.dt-columns-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Filter row */
.dt-filter-row td {
    padding: 4px 8px;
}

.dt-filter-input,
.dt-filter-select {
    width: 100%;
    padding: 0.25rem 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s;
}

.dt-filter-input:focus,
.dt-filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-focus-ring);
}

/* Table inside wrapper - transparent header bg */
.dt-wrapper .page-table thead th {
    background: transparent;
}

/* Sortable header hover */
.dt-sortable {
    cursor: pointer;
    user-select: none;
}

.dt-sortable:hover {
    color: var(--color-primary);
}

/* Pagination */
.dt-pagination {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dt-pagination__top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dt-pagination__page-size {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.dt-pagination__page-size select {
    padding: 0.2rem 0.4rem;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.dt-pagination__page-size select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.dt-pagination__buttons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dt-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.dt-pagination__btn:hover:not(:disabled) {
    background: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-text);
}

.dt-pagination__btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.dt-pagination__btn--active {
    background: var(--color-primary) !important;
    color: #fff !important;
    border-color: var(--color-primary) !important;
}

.dt-pagination__btn--nav {
    border-radius: var(--radius-sm);
    min-width: auto;
    padding: 0 0.75rem;
}

.dt-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.dt-pagination__summary {
    text-align: center;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
}

/* Loading overlay */
.dt-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.dt-loading__spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: dt-spin 0.6s linear infinite;
}

@keyframes dt-spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════
   ColumnManager — slide-out panel (cm-*)
   ═══════════════════════════════════════════ */

/* Overlay */
.cm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: flex-end;
    z-index: 1050;
}

/* Panel */
.cm-panel {
    width: 480px;
    max-width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    animation: cm-slide-in 0.2s ease-out;
}

@keyframes cm-slide-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

/* Header */
.cm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.cm-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.cm-close:hover {
    color: var(--color-text);
}

/* Content */
.cm-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Footer */
.cm-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
}

.cm-footer__btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cm-footer__btn--primary {
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: #fff;
}

.cm-footer__btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.cm-footer__btn--secondary {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.cm-footer__btn--secondary:hover {
    border-color: var(--color-text-secondary);
}

/* Section label */
.cm-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

/* Preset buttons */
.cm-preset-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cm-preset-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.cm-preset-btn--active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Search */
.cm-search {
    position: relative;
}

.cm-search__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.cm-search__input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.75rem;
    border-radius: 25px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
    font-size: 0.875rem;
    outline: none;
    transition: all 0.15s ease;
}

.cm-search__input:focus {
    background: var(--color-bg);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-focus-ring);
}

/* Select all link */
.cm-select-all {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: none;
}

.cm-select-all:hover {
    text-decoration: underline;
}

/* Column list */
.cm-list {
    min-height: 60px;
    border-radius: 8px;
    transition: background 0.15s ease;
    border: 2px dashed transparent;
}

.cm-list--drag-over {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

/* Column item */
.cm-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    transition: all 0.15s ease;
    user-select: none;
}

.cm-item[draggable="true"] {
    cursor: grab;
}

.cm-item[draggable="true"]:active {
    cursor: grabbing;
}

.cm-item:hover:not(.cm-item--dragging) {
    background: var(--color-bg-subtle);
}

.cm-item--pinned {
    background: var(--color-primary-light);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.cm-item--hidden {
    background: #fafafa;
}

.cm-item--dragging {
    opacity: 0.4;
    background: var(--color-border);
}

.cm-item--drop-above {
    border-top: 3px solid var(--color-primary) !important;
}

.cm-item--drop-below {
    border-bottom: 3px solid var(--color-primary) !important;
}

/* Column icon */
.cm-icon {
    width: 24px;
    margin-right: 0.75rem;
    color: var(--color-text-secondary);
    font-size: 1rem;
    flex-shrink: 0;
}

.cm-icon--lock {
    color: var(--color-primary);
}

.cm-icon--drag {
    cursor: grab;
    user-select: none;
}

/* Column label */
.cm-label {
    flex: 1;
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    overflow: hidden;
}

/* Long column names wrap to two lines instead of losing the part that differs. */
.cm-label__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.cm-label__description {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-merge-toggle {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    cursor: pointer;
}

.cm-merge-toggle input {
    margin-top: 0.2rem;
}

.cm-merge-toggle small {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

.cm-label--muted {
    color: var(--color-text-muted);
}

/* Pinned badge */
.cm-pinned-badge {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Checkbox */
.cm-checkbox {
    position: relative;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.cm-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.cm-checkmark {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    transition: all 0.15s ease;
}

.cm-checkmark--checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.cm-checkmark--checked::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin: 2px 0 0 6px;
}

.cm-checkbox:hover .cm-checkmark {
    border-color: var(--color-primary);
}

/* Empty state */
.cm-empty {
    padding: 1rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ── Claude AI Chat ─────────────────────────────────────────────── */

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 10rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #fff;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.chat-message {
    margin-bottom: 1rem;
    max-width: 85%;
    word-wrap: break-word;
}

.chat-message--user {
    margin-left: auto;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg);
    padding: 0.75rem 1rem;
}

.chat-message--assistant {
    margin-right: auto;
    background: var(--color-bg-muted);
    color: var(--color-text);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-sm);
    padding: 0.75rem 1rem;
    line-height: 1.6;
}

.chat-message--assistant pre {
    background: var(--color-border);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 0.5rem 0;
    font-size: 0.85rem;
}

.chat-message--assistant code {
    background: var(--color-border);
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-size: 0.875em;
}

.chat-message--assistant pre code {
    background: none;
    padding: 0;
}

.chat-tools {
    max-width: 85%;
    margin-bottom: 0.75rem;
}

.chat-tools__detail {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.chat-tool-item {
    padding: 0.2rem 0;
    color: var(--color-text-muted);
}

.chat-input-area {
    border-top: 1px solid var(--color-border);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.75rem;
    resize: none;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 120px;
    overflow-y: auto;
}

.chat-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-light);
}

.chat-send-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 40px;
    transition: background 0.15s;
}

.chat-send-btn:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-stop-btn {
    background: #ef4444;
}

.chat-stop-btn:hover {
    background: #dc2626;
}

.chat-typing {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0.25rem 0;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: chatBounce 1.4s infinite ease-in-out both;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.16s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes chatBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.spinning {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.chat-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 4rem 1rem 2rem;
}

.chat-not-configured {
    max-width: 500px;
    margin: 3rem auto;
}

/* ═══════════════════════════════════════════
   Busy buttons and the progress dialog (2026-11-05)
   BusyButton, ActionGuard, ProgressService/ProgressHost.
   ═══════════════════════════════════════════ */

.busy-btn__spinner {
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: busy-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes busy-spin { to { transform: rotate(360deg); } }

button.is-busy,
button:disabled.is-busy {
    cursor: progress;
    opacity: 0.85;
}

.page-action-btn:disabled,
.page-btn-outline:disabled,
.page-btn-danger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.page-action-btn.is-busy:disabled,
.page-btn-outline.is-busy:disabled,
.page-btn-danger.is-busy:disabled {
    opacity: 0.85;
    cursor: progress;
}

.page-btn-danger-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    background-color: var(--color-danger);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
}

.page-btn-danger-solid:hover:not(:disabled) { filter: brightness(0.92); }
.page-btn-danger-solid:disabled { opacity: 0.45; cursor: not-allowed; }

.progress-shield {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: transparent;
    cursor: progress;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.progress-shield--visible {
    background: rgba(15, 23, 42, 0.45);
}

.progress-dialog {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    width: min(440px, calc(100vw - 2rem));
    padding: 1.5rem 1.5rem 1.25rem;
    cursor: default;
    animation: progress-pop 0.15s ease-out;
}

@keyframes progress-pop { from { transform: scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }

.progress-dialog__head { display: flex; align-items: center; gap: 0.75rem; }
.progress-dialog__spinner { width: 1.25rem; height: 1.25rem; color: var(--color-primary); border-width: 3px; }
.progress-dialog__title { margin: 0; font-size: var(--font-size-lg, 1.1rem); font-weight: 600; }
.progress-dialog__message { margin: 0.75rem 0 0; color: var(--color-text-secondary, #475569); word-break: break-word; }

.progress-dialog__bar {
    position: relative;
    height: 6px;
    margin-top: 1rem;
    border-radius: 999px;
    background: var(--color-bg-muted, var(--color-border));
    overflow: hidden;
}

.progress-dialog__fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.progress-dialog__bar--indeterminate .progress-dialog__fill {
    width: 35%;
    position: absolute;
    animation: progress-slide 1.2s ease-in-out infinite;
}

@keyframes progress-slide { from { left: -35%; } to { left: 100%; } }

.progress-dialog__count { margin-top: 0.35rem; font-size: var(--font-size-sm); color: var(--color-text-muted); text-align: right; }
.progress-dialog__hint { margin: 0.75rem 0 0; font-size: var(--font-size-sm); color: var(--color-text-muted); }
.progress-dialog__actions { display: flex; justify-content: flex-end; margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
    .busy-btn__spinner, .progress-dialog__bar--indeterminate .progress-dialog__fill, .progress-dialog { animation-duration: 2.5s; }
}

/* Type-the-name confirmation (cancel an audit in progress) */
.confirm-name__target {
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    background: var(--color-bg-muted, var(--color-bg-muted));
    padding: 0.1rem 0.35rem;
    border-radius: var(--radius-sm);
}

.confirm-name__input--match { border-color: var(--color-success, #16a34a) !important; }

/* Styled confirmation dialog (ConfirmService / ConfirmHost, 2026-11-05) */
.confirm-overlay { z-index: 2100; animation: progress-pop 0.12s ease-out; }
.confirm-dialog { max-width: 460px; width: calc(100vw - 2rem); outline: none; }
.confirm-dialog__body { display: flex; gap: 1rem; padding: 1.5rem 1.5rem 0.5rem; }
.confirm-dialog__icon {
    flex: 0 0 2.5rem; height: 2.5rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-primary-light, var(--color-primary-lighter)); color: var(--color-primary); font-size: 1.15rem;
}
.confirm-dialog__icon--danger { background: var(--color-danger-light, #ffe4e6); color: var(--color-danger); }
.confirm-dialog__text { flex: 1; min-width: 0; }
.confirm-dialog__title { margin: 0.25rem 0 0.35rem; font-size: var(--font-size-lg, 1.1rem); font-weight: 600; }
.confirm-dialog__message { margin: 0; color: var(--color-text-secondary, #475569); word-break: break-word; }

/* ═══════════════════════════════════════════
   Password fields: show/hide (js/password-reveal.js)
   ═══════════════════════════════════════════ */
.pw-field { position: relative; }
.pw-field > input { padding-right: 44px !important; width: 100%; }
.pw-reveal {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}
.pw-reveal:hover { color: var(--color-text); background: var(--color-bg-muted); }
.pw-reveal:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }

/* ═══════════════════════════════════════════
   Action panel (Components/Shared/ActionPanel.razor): side panel on desktop, bottom sheet on a phone
   ═══════════════════════════════════════════ */
.action-panel-scrim { display: none; }
.action-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    width: min(400px, 100vw);
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
    box-shadow: -12px 0 32px rgba(16, 24, 40, 0.10);
    outline: none;
}
.action-panel__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--color-border-light);
}
.action-panel__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.action-panel__title { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.action-panel__subtitle { color: var(--color-text-muted); font-size: var(--font-size-sm); }
.action-panel__status { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.action-panel__close {
    flex-shrink: 0;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: var(--radius-md);
    background: transparent; color: var(--color-text-muted); cursor: pointer;
}
.action-panel__close:hover { background: var(--color-bg-muted); color: var(--color-text); }
.action-panel__body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.action-panel__primary > * { width: 100%; }
.action-panel__groups { display: flex; flex-direction: column; gap: 16px; }
.action-panel-group { display: flex; flex-direction: column; gap: 6px; }
.action-panel-group__title {
    margin: 0;
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-family);
    font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--color-text-muted);
}
.action-panel-group__warn { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--color-danger-strong); }
.action-panel-group__items { display: flex; flex-direction: column; gap: 6px; }
.action-panel-group__items > .page-btn-outline,
.action-panel-group__items > .page-btn-danger,
.action-panel-group__items > a,
.action-panel-group__items > button { justify-content: flex-start; width: 100%; }
.action-panel-group--danger { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--color-border-light); }
.action-panel-group--danger .action-panel-group__items > * { color: var(--color-danger-strong); }

/* A table row that opens the panel. */
.page-table tbody tr.is-clickable { cursor: pointer; }
.page-table tbody tr.is-selected { background: var(--color-primary-light); }

@media (max-width: 767.98px) {
    .action-panel-scrim { display: block; position: fixed; inset: 0; z-index: 1039; background: rgba(16, 24, 40, 0.45); }
    .action-panel {
        top: auto; left: 0; right: 0;
        width: 100vw;
        max-height: 85vh;
        border-left: none;
        border-top: 1px solid var(--color-border);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -12px 32px rgba(16, 24, 40, 0.18);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

/* Action plan readiness: what a dealer's audit would contain (ActionPlanCoverageView). */
.coverage {
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    font-size: var(--font-size-base);
}
.coverage--warn {
    background: var(--color-warning-light);
    color: var(--color-warning);
    border-color: #f5cf8f;
}
.coverage-line { margin-top: 0.25rem; }
.coverage-list { margin: 0.25rem 0 0 1.1rem; padding: 0; }
.coverage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.5rem; }
.coverage-actions a { color: inherit; font-weight: 600; text-decoration: underline; }
.coverage-ack { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; }
