/*
 * Executive theme — global look & feel for every authenticated page.
 * Loaded last (see AppAsset) so it refines Tabler defaults without
 * touching page markup. Public/landing pages use a separate layout.
 */

:root {
    --ex-navy-900: #0b1b34;
    --ex-navy-800: #12294d;
    --ex-accent: #1d3a66; /* the one accent: navy ink for selection, focus and key figures */
    --ex-accent-rgb: 29, 58, 102;
    --ex-sky: #d8b778; /* gold-light: the only accent on navy surfaces */
    --ex-bronze: #876838; /* gold as text on light surfaces (AA 5.16:1 on white) */
    --ex-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ex-ink: #0f172a;
    --ex-muted: #64748b;
    --ex-line: #e2e8f0;
    --ex-surface: #f4f6fa;
    --tblr-body-bg: var(--ex-surface);
    --tblr-body-color: #1e293b;
    --tblr-border-color: var(--ex-line);
    --tblr-primary: #1d3a66;
    --tblr-primary-rgb: 29, 58, 102;
    --tblr-link-color: #1d3a66;
    --tblr-link-color-rgb: 29, 58, 102;
    --tblr-link-hover-color: #0b1b34;
    --ex-gold: #c5a059; /* deliberate secondary accent: Manifesto, goal stepper, clarity modal only */
    --tblr-font-sans-serif: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: var(--ex-surface);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "tnum" 1, "cv11" 1;
}

/* ---------- Sidebar ---------- */
.navbar-vertical {
    background: var(--ex-navy-900);
    border-right: 0;
}
.navbar-vertical .navbar-brand a {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
}
.navbar-vertical .nav-link {
    margin: 0.125rem 0.5rem;
    border-radius: 8px;
    color: #b6c3d8;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}
.navbar-vertical .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.navbar-vertical .nav-item.active > .nav-link {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--ex-sky);
}
.navbar-vertical .nav-item.active .nav-link-icon {
    color: var(--ex-sky);
}

/* ---------- Top bar ---------- */
.page-wrapper > header.navbar {
    position: relative;
    z-index: 1030; /* keep the user dropdown above page heroes */
    overflow: visible;
    background: #fff;
    border-bottom: 1px solid var(--ex-line);
    box-shadow: none;
}

/* ---------- Page hero (shared by all page headers) ---------- */
.page-hero,
.premium-hero-banner {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: 1.5rem 2rem;
    border: 0;
    border-radius: 16px;
    color: #e2e8f0;
    background: var(--ex-navy-900);
    box-shadow: none;
}
.premium-hero-banner::before {
    display: none;
}
.page-hero h2,
.premium-hero-banner h2 {
    margin-bottom: 0.375rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.page-hero h2.display-6,
.premium-hero-banner h2.display-6 {
    font-size: 1.75rem;
}
.page-hero p,
.page-hero .text-secondary,
.premium-hero-banner p,
.premium-hero-banner .text-secondary {
    max-width: 44rem;
    color: #a9b8cf !important;
    font-size: .875rem;
}
.page-hero a.text-secondary,
.premium-hero-banner a.text-secondary {
    color: var(--ex-sky) !important;
    text-decoration: none;
}
.page-hero-eyebrow {
    margin-bottom: 0.5rem;
    color: var(--ex-sky);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 0;
}
.mp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.mp-stat {
    min-width: 6.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
}
.mp-stat-value {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.mp-stat-label {
    margin-top: 0.375rem;
    color: #a9b8cf;
    font-size: .75rem;
    letter-spacing: 0;
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--ex-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -14px rgba(15, 23, 42, 0.12);
}
.card-header {
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}
.card-title {
    color: var(--ex-ink);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}
.card-body {
    padding: 1.25rem 1.5rem;
}

/* ---------- Tables ---------- */
.table thead th {
    padding: 0.75rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    color: #64748b;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
.table tbody td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}
.table tbody tr:last-child td {
    border-bottom: 0;
}
.table-hover tbody tr:hover,
.card-table tbody tr:hover {
    background: #f8fafc;
}

/* ---------- Buttons: one scale, one palette ---------- */
:root {
    --ex-success: #047857;
    --ex-warning: #b45309;
    --ex-danger: #b91c1c;
}
.btn {
    --tblr-btn-padding-y: 0.375rem;
    --tblr-btn-padding-x: 0.75rem;
    --tblr-btn-font-size: .8125rem;
    --tblr-btn-line-height: 1.4;
    --tblr-btn-border-radius: 8px;
    gap: 0.375rem;
    font-weight: 600;
    transition: background-color 0.15s var(--ex-ease), border-color 0.15s var(--ex-ease), color 0.15s var(--ex-ease), box-shadow 0.15s var(--ex-ease);
}
/* .btn.btn-sm outranks app.css's .btn, which otherwise cancels btn-sm */
.btn.btn-sm {
    --tblr-btn-padding-y: 0.25rem;
    --tblr-btn-padding-x: 0.75rem;
    --tblr-btn-font-size: .75rem;
    --tblr-btn-border-radius: 8px;
}
.btn.btn-icon {
    --tblr-btn-padding-x: 0;
    --tblr-btn-padding-y: 0;
    width: 2rem;
    height: 2rem;
}
.btn.btn-icon.btn-sm {
    width: 1.75rem;
    height: 1.75rem;
}

/* Solid */
.btn-primary,
.btn-success,
.btn-warning,
.btn-danger {
    --tblr-btn-color: #fff;
    --tblr-btn-hover-color: #fff;
    --tblr-btn-active-color: #fff;
    --tblr-btn-disabled-color: #fff;
}
.btn-primary {
    --tblr-btn-bg: var(--ex-navy-900);
    --tblr-btn-border-color: var(--ex-navy-900);
    --tblr-btn-hover-bg: var(--ex-navy-800);
    --tblr-btn-hover-border-color: var(--ex-navy-800);
    --tblr-btn-active-bg: var(--ex-navy-800);
    --tblr-btn-active-border-color: var(--ex-navy-800);
    --tblr-btn-disabled-bg: var(--ex-navy-900);
    --tblr-btn-disabled-border-color: var(--ex-navy-900);
}
.btn-success {
    --tblr-btn-bg: var(--ex-success);
    --tblr-btn-border-color: var(--ex-success);
    --tblr-btn-hover-bg: #065f46;
    --tblr-btn-hover-border-color: #065f46;
    --tblr-btn-active-bg: #065f46;
    --tblr-btn-active-border-color: #065f46;
    --tblr-btn-disabled-bg: var(--ex-success);
    --tblr-btn-disabled-border-color: var(--ex-success);
}
.btn-warning {
    --tblr-btn-bg: var(--ex-warning);
    --tblr-btn-border-color: var(--ex-warning);
    --tblr-btn-hover-bg: #92400e;
    --tblr-btn-hover-border-color: #92400e;
    --tblr-btn-active-bg: #92400e;
    --tblr-btn-active-border-color: #92400e;
    --tblr-btn-disabled-bg: var(--ex-warning);
    --tblr-btn-disabled-border-color: var(--ex-warning);
}
.btn-danger {
    --tblr-btn-bg: var(--ex-danger);
    --tblr-btn-border-color: var(--ex-danger);
    --tblr-btn-hover-bg: #991b1b;
    --tblr-btn-hover-border-color: #991b1b;
    --tblr-btn-active-bg: #991b1b;
    --tblr-btn-active-border-color: #991b1b;
}

/* Outline: neutral hairline, tinted on hover */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark {
    --tblr-btn-color: var(--ex-navy-900);
    --tblr-btn-border-color: #cbd5e1;
    --tblr-btn-hover-color: var(--ex-navy-900);
    --tblr-btn-hover-bg: #f1f5f9;
    --tblr-btn-hover-border-color: #94a3b8;
    --tblr-btn-active-color: var(--ex-navy-900);
    --tblr-btn-active-bg: #e8edf4;
    --tblr-btn-active-border-color: #94a3b8;
    background: #fff;
}
.btn-outline-success {
    --tblr-btn-color: var(--ex-success);
    --tblr-btn-border-color: #a7dcc8;
    --tblr-btn-hover-color: var(--ex-success);
    --tblr-btn-hover-bg: #ecfdf5;
    --tblr-btn-hover-border-color: var(--ex-success);
    --tblr-btn-active-color: var(--ex-success);
    --tblr-btn-active-bg: #d1fae5;
    --tblr-btn-active-border-color: var(--ex-success);
    background: #fff;
}
.btn-outline-warning {
    --tblr-btn-color: var(--ex-warning);
    --tblr-btn-border-color: #f1cf9c;
    --tblr-btn-hover-color: var(--ex-warning);
    --tblr-btn-hover-bg: #fffbeb;
    --tblr-btn-hover-border-color: var(--ex-warning);
    --tblr-btn-active-color: var(--ex-warning);
    --tblr-btn-active-bg: #fef3c7;
    --tblr-btn-active-border-color: var(--ex-warning);
    background: #fff;
}
.btn-outline-danger {
    --tblr-btn-color: var(--ex-danger);
    --tblr-btn-border-color: #f1b8b8;
    --tblr-btn-hover-color: var(--ex-danger);
    --tblr-btn-hover-bg: #fef2f2;
    --tblr-btn-hover-border-color: var(--ex-danger);
    --tblr-btn-active-color: var(--ex-danger);
    --tblr-btn-active-bg: #fee2e2;
    --tblr-btn-active-border-color: var(--ex-danger);
    background: #fff;
}

/* Ghost & link: same navy / semantic colors, no stray Tabler blue */
.btn-ghost-primary,
.btn-ghost-secondary {
    --tblr-btn-color: var(--ex-navy-800);
    --tblr-btn-hover-color: var(--ex-navy-900);
    --tblr-btn-hover-bg: #eef2f7;
    --tblr-btn-active-color: var(--ex-navy-900);
    --tblr-btn-active-bg: #e2e8f0;
}
.btn-ghost-danger {
    --tblr-btn-color: var(--ex-danger);
    --tblr-btn-hover-color: var(--ex-danger);
    --tblr-btn-hover-bg: #fef2f2;
    --tblr-btn-active-color: var(--ex-danger);
    --tblr-btn-active-bg: #fee2e2;
}
.btn-link {
    --tblr-btn-color: var(--ex-accent);
    --tblr-btn-hover-color: var(--ex-navy-900);
}

/* Inside a navy hero: light variants */
.page-hero .btn-outline-primary,
.page-hero .btn-outline-secondary,
.page-hero .btn-outline-dark,
.page-hero .btn-ghost-primary,
.page-hero .btn-ghost-secondary,
.premium-hero-banner .btn-outline-primary,
.premium-hero-banner .btn-outline-secondary,
.premium-hero-banner .btn-ghost-primary,
.premium-hero-banner .btn-ghost-secondary {
    --tblr-btn-color: #e2e8f0;
    --tblr-btn-border-color: rgba(255, 255, 255, 0.28);
    --tblr-btn-hover-color: var(--ex-navy-900);
    --tblr-btn-hover-bg: #fff;
    --tblr-btn-hover-border-color: #fff;
    --tblr-btn-active-color: var(--ex-navy-900);
    --tblr-btn-active-bg: #fff;
    --tblr-btn-active-border-color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.page-hero .btn-primary,
.premium-hero-banner .btn-primary {
    --tblr-btn-bg: #fff;
    --tblr-btn-border-color: #fff;
    --tblr-btn-color: var(--ex-navy-900);
    --tblr-btn-hover-bg: #eef1f6;
    --tblr-btn-hover-border-color: #eef1f6;
    --tblr-btn-hover-color: var(--ex-navy-900);
}
.page-hero .btn-outline-danger,
.premium-hero-banner .btn-outline-danger {
    --tblr-btn-color: #fecaca;
    --tblr-btn-border-color: rgba(254, 202, 202, 0.45);
    --tblr-btn-hover-color: var(--ex-danger);
    --tblr-btn-hover-bg: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* ---------- Typography tokens: label / eyebrow / caption ---------- */
:root {
    --tblr-secondary: #64748b;
    --tblr-secondary-rgb: 100, 116, 139;
    --ex-label: #334155;
    --ex-caption: #64748b;
}
.ex-caption {
    color: var(--ex-caption);
    font-size: .75rem;
    line-height: 1.45;
}
.small,
small {
    line-height: 1.45;
}

/* Section eyebrow: small caps label with a hairline */
.ex-eyebrow,
.text-uppercase.text-secondary {
    color: var(--ex-caption) !important;
    font-size: .75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0;
    text-transform: none !important;
}
div.text-uppercase.text-secondary {
    padding-bottom: 0.375rem;
    border-bottom: 1px solid #eef2f7;
}
.navbar-vertical .ex-eyebrow {
    color: #8d9bb3 !important;
    letter-spacing: 0;
}
.table thead th {
    color: var(--ex-caption);
}

/* ---------- Form labels ---------- */
.form-label,
.premium-dashboard-scope .form-label {
    margin-bottom: 0.25rem;
    color: var(--ex-label);
    font-size: .75rem !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.15s ease;
}
/* Required marker, derived from the control right after the label */
.form-label:has(+ [required])::after,
.form-label:has(+ .input-group [required])::after,
.form-label:has(+ .js-datepicker-wrap [required])::after {
    content: " *";
    color: var(--ex-danger);
    font-weight: 600;
}
.mb-3:focus-within > .form-label,
.form-group:focus-within > .form-label {
    color: var(--ex-accent);
}
.form-hint,
.form-text {
    margin-top: 0.25rem;
    color: var(--ex-caption);
    font-size: .75rem;
}
.invalid-feedback,
.form-text.text-danger {
    color: var(--ex-danger);
    font-size: .75rem;
    font-weight: 500;
}

/* ---------- Badges: tonal pills on the theme palette ---------- */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0;
}
.badge.bg-success-lt,
.avatar.bg-success-lt,
.badge.bg-green-lt,
.avatar.bg-green-lt { background-color: #e6f6ef !important; color: #047857 !important; }
.badge.bg-warning-lt,
.avatar.bg-warning-lt,
.badge.bg-yellow-lt,
.avatar.bg-yellow-lt,
.badge.bg-orange-lt,
.avatar.bg-orange-lt { background-color: #fdf3e0 !important; color: #b45309 !important; }
.badge.bg-danger-lt,
.avatar.bg-danger-lt,
.badge.bg-red-lt,
.avatar.bg-red-lt { background-color: #fdecec !important; color: #b91c1c !important; }
.badge.bg-primary-lt,
.avatar.bg-primary-lt,
.badge.bg-blue-lt,
.avatar.bg-blue-lt,
.badge.bg-azure-lt,
.avatar.bg-azure-lt,
.badge.bg-info-lt,
.avatar.bg-info-lt { background-color: #e8ecf3 !important; color: #1d3a66 !important; }
.badge.bg-purple-lt,
.avatar.bg-purple-lt { background-color: #efe9fb !important; color: #6d28d9 !important; }
.badge.bg-teal-lt,
.avatar.bg-teal-lt,
.badge.bg-cyan-lt,
.avatar.bg-cyan-lt { background-color: #def5f4 !important; color: #0f766e !important; }
.badge.bg-secondary-lt,
.avatar.bg-secondary-lt,
.badge.bg-dark-lt,
.avatar.bg-dark-lt { background-color: #eef2f6 !important; color: #475569 !important; }

/* Solid badges (TalentDNA types) use the same deep tones */
.badge.bg-blue { background-color: #1d4ed8 !important; color: #fff !important; }
.badge.bg-red { background-color: #b91c1c !important; color: #fff !important; }
.badge.bg-yellow { background-color: #b45309 !important; color: #fff !important; }
.badge.bg-success,
.badge.bg-green { background-color: #047857 !important; color: #fff !important; }
.badge.bg-danger { background-color: #b91c1c !important; color: #fff !important; }
.badge.bg-warning,
.badge.bg-orange { background-color: #b45309 !important; color: #fff !important; }

/* Status dot on tonal badges; counters, icons and chips opt out */
.badge[class*="-lt"]::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.375rem;
    border-radius: 50%;
    background: currentColor;
    vertical-align: 1px;
}
.badge.badge-plain::before,
.badge[class]:has(> .ti)::before {
    display: none;
}
/* Evenly sized status pills when a table cell holds a single badge */
.table td > .badge:only-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.75rem;
    white-space: nowrap;
}
.table td > .badge.badge-wide {
    justify-content: flex-start;
    width: 15.5rem;
}
.table td > .badge.badge-count:only-child {
    min-width: 0;
}

.badge-count {
    padding: 0.25rem 0.5rem;
    background-color: #e2e8f0 !important;
    color: #334155 !important;
    font-size: .6875rem;
    font-variant-numeric: tabular-nums;
}
.badge.badge-count::before {
    display: none;
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
    border-color: #cbd5e1;
    border-radius: 8px;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--ex-accent);
    box-shadow: 0 0 0 3px rgba(var(--ex-accent-rgb), 0.15);
}

/* ---------- Alerts, dropdowns, footer ---------- */
.alert {
    border-radius: 12px;
}
.dropdown-menu {
    border: 1px solid var(--ex-line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.footer {
    border-top: 1px solid var(--ex-line);
}

@media (max-width: 767px) {
    .page-hero,
    .premium-hero-banner {
        padding: 1.25rem;
    }
    .card-header,
    .card-body,
    .table thead th,
    .table tbody td {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* The member pages' scope forces dark text with !important; restore hero contrast. */
.premium-dashboard-scope .premium-hero-banner h2,
.premium-dashboard-scope .premium-hero-banner .display-6,
.premium-dashboard-scope .premium-hero-banner h3,
.premium-dashboard-scope .premium-hero-banner .text-white {
    color: #fff !important;
}
.premium-dashboard-scope .premium-hero-banner p,
.premium-dashboard-scope .premium-hero-banner .text-secondary,
.premium-dashboard-scope .premium-hero-banner .text-light {
    color: #a9b8cf !important;
}
.premium-dashboard-scope .premium-hero-banner a.text-secondary {
    color: var(--ex-sky) !important;
}

/* ---------- Alerts: tonal with a left accent ---------- */
.alert {
    padding: 0.75rem 1rem;
    border-width: 1px !important;
    border-left-width: 4px !important;
    border-style: solid !important;
    box-shadow: none;
}
.alert-success { background: #ecfdf5 !important; border-color: #a7dcc8 #a7dcc8 #a7dcc8 #047857 !important; color: #065f46 !important; }
.alert-info { background: #f2f4f8 !important; border-color: #d3dae6 #d3dae6 #d3dae6 var(--ex-accent) !important; color: var(--ex-navy-900) !important; }
.alert-warning { background: #fffbeb !important; border-color: #f1cf9c #f1cf9c #f1cf9c #b45309 !important; color: #78350f !important; }
.alert-danger { background: #fef2f2 !important; border-color: #f1b8b8 #f1b8b8 #f1b8b8 #b91c1c !important; color: #7f1d1d !important; }
.alert .alert-link,
.alert a:not(.btn) {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}
.alert-danger .ti,
.alert-danger .alert-icon { color: #b91c1c; }
.alert-success .ti { color: #047857; }

/* Callout: highlighted notice box (help requests, "stuck" hint) */
.callout {
    display: block;
    padding: 1rem 1.25rem;
    border: 1px solid #f1cf9c;
    border-left: 4px solid #b45309;
    border-radius: 12px;
    background: #fffbeb;
    box-shadow: none;
}
.callout-title {
    color: #78350f;
    font-weight: 600;
}
.callout-body {
    color: #92400e;
    line-height: 1.5;
}
.callout-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #b45309;
    font-size: 1.3rem;
}
.note-accent {
    border-left: 3px solid var(--ex-accent) !important;
}

/* ---------- Links & progress ---------- */
.text-primary {
    color: var(--ex-accent) !important;
}
.progress {
    background-color: #eef2f7;
    border-radius: 999px;
}
.progress-bar {
    border-radius: 999px;
}
.progress-bar.bg-primary {
    background: var(--ex-accent) !important;
}
.progress-bar.bg-success { background: #047857 !important; }
.progress-bar.bg-warning,
.progress-bar.bg-yellow,
.progress-bar.bg-orange { background: #b45309 !important; }
.progress-bar.bg-danger,
.progress-bar.bg-red { background: #b91c1c !important; }
.progress-bar.bg-blue,
.progress-bar.bg-azure,
.progress-bar.bg-cyan { background: var(--ex-accent) !important; }

/* ---------- Pagination, checks, list groups ---------- */
.page-link {
    margin: 0 0.125rem;
    border: 1px solid var(--ex-line);
    border-radius: 8px;
    color: var(--ex-navy-900);
}
.page-link:hover {
    background: #f1f5f9;
    color: var(--ex-navy-900);
}
.page-item.active .page-link {
    border-color: var(--ex-navy-900);
    background: var(--ex-navy-900);
    color: #fff;
}
.form-check-input:checked {
    border-color: var(--ex-navy-900);
    background-color: var(--ex-navy-900);
}
.form-check-input:focus {
    border-color: var(--ex-accent);
    box-shadow: 0 0 0 3px rgba(var(--ex-accent-rgb), 0.15);
}
.list-group-item {
    border-color: #eef2f7;
}
.list-group-item.active {
    border-color: var(--ex-navy-900);
    background: var(--ex-navy-900);
}

/* ---------- Dialogs ---------- */
.clarity-modal {
    background: rgba(11, 27, 52, 0.55);
}
.clarity-modal-card {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(11, 27, 52, 0.18);
}

/* ---------- Participant program page type scale ----------
 * One scale for the whole page: 20 title, 16 section, 14 body,
 * 13 supporting text, 11 uppercase eyebrow (theme default).
 */
.member-program {
    font-size: .875rem;
}
.member-program .small,
.member-program small {
    font-size: .8125rem;
}
.member-program .card-title {
    font-size: 1rem;
    font-weight: 600;
}
.member-program .card-table td {
    font-size: .875rem;
}

/* ---------- Kondisi Diri checkpoint scale ---------- */
.checkpoint-question {
    padding: 1rem 0 1.25rem;
    border-top: 1px solid #eef2f7;
}
.checkpoint-question:first-of-type {
    border-top: 0;
    padding-top: 0.25rem;
}
.checkpoint-question-head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.checkpoint-question-number {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(var(--ex-accent-rgb), 0.08);
    color: var(--ex-accent);
    font-size: .8125rem;
    font-weight: 600;
}
.checkpoint-question-label {
    float: none;
    width: auto;
    margin: 0 0 0.125rem;
    padding: 0;
    color: var(--ex-ink);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.4;
}
.checkpoint-question-text {
    color: var(--ex-muted);
    font-size: .8125rem;
    line-height: 1.5;
}
.checkpoint-scale {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 0.375rem;
    padding: 0.25rem;
    border-radius: 12px;
    background: var(--ex-surface);
    border: 1px solid var(--ex-line);
}
.checkpoint-scale-option {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    margin: 0;
    border-radius: 8px;
    color: #475569;
    font-weight: 600;
    font-size: .875rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s var(--ex-ease), color 0.15s var(--ex-ease), box-shadow 0.15s var(--ex-ease);
}
.checkpoint-scale-option:hover {
    background: #fff;
    color: var(--ex-accent);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.btn-check:checked + .checkpoint-scale-option {
    background: var(--ex-accent);
    color: #fff;
    box-shadow: none;
}
.btn-check:focus-visible + .checkpoint-scale-option {
    outline: 2px solid var(--ex-accent);
    outline-offset: 2px;
}
.blocker-type-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    height: 100%;
    margin: 0;
    padding: 0.5rem 1.75rem 0.5rem 0.625rem;
    border: 1px solid var(--ex-line);
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.35;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s var(--ex-ease), border-color 0.15s var(--ex-ease), color 0.15s var(--ex-ease), box-shadow 0.15s var(--ex-ease), transform 0.15s var(--ex-ease);
}
.blocker-type-option:hover {
    border-color: var(--ex-accent);
}
.blocker-type-option:active {
    transform: scale(0.98);
}
.blocker-type-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #0f172a;
    font-weight: 600;
}
.blocker-type-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0.125rem 0;
}
.blocker-type-icon {
    font-size: 1rem;
    color: #64748b;
}
.blocker-type-desc {
    color: #64748b;
    font-size: .75rem;
}
/* Empty radio ring signals the tile is selectable; it fills green with a check once chosen. */
.blocker-type-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    color: transparent;
    font-size: .75rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.blocker-type-option:hover .blocker-type-check {
    border-color: var(--ex-accent);
}
.btn-check:checked + .blocker-type-option {
    border-color: #16a34a;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}
.btn-check:checked + .blocker-type-option .blocker-type-title {
    color: #14532d;
}
.btn-check:checked + .blocker-type-option .blocker-type-desc {
    color: #166534;
}
.btn-check:checked + .blocker-type-option .blocker-type-icon {
    color: #16a34a;
}
.btn-check:checked + .blocker-type-option .blocker-type-check {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}
.btn-check:checked + .blocker-type-option:hover {
    border-color: #16a34a;
}

/* ---------- Gift: talent insight form ---------- */
.insight-form {
    padding: 1.25rem;
    border: 1px solid var(--ex-line);
    border-left: 3px solid var(--ex-accent);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}
.insight-form-head {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-bottom: 1rem;
}
.insight-form-eyebrow {
    color: var(--ex-accent);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 0;
}
.insight-form-title {
    color: #0f172a;
    font-size: .9375rem;
    font-weight: 600;
}
.insight-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.25rem;
    border-radius: 50%;
    background: var(--ex-accent);
    color: #fff;
    font-size: .6875rem;
    font-weight: 600;
}
.insight-hint {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: .75rem;
}
.insight-form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ex-line);
}
.insight-status {
    margin: 0;
}
.insight-status-options {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--ex-line);
    border-radius: 8px;
    background: #f8fafc;
}
.insight-status-option {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    color: #64748b;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.insight-status-option:hover {
    color: #0f172a;
}
.btn-check:checked + .insight-status-option {
    background: #fff;
    color: var(--ex-accent);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.btn-check:focus-visible + .insight-status-option {
    outline: 2px solid var(--ex-accent);
    outline-offset: 1px;
}

/* ---------- Grind: habit cards ---------- */
.habit-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.habit-card {
    padding: 1rem 1.125rem;
    border: 1px solid var(--ex-line);
    border-left: 3px solid var(--ex-accent);
    border-radius: 12px;
    background: #fff;
}
.habit-card.is-done-today {
    border-left-color: #16a34a;
}
.habit-card.is-inactive {
    border-left-color: #cbd5e1;
    background: #f8fafc;
}
.habit-card.is-inactive .habit-card-title,
.habit-card.is-inactive .habit-card-impact {
    color: #64748b;
}
.habit-card-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}
.habit-card-body {
    flex: 1 1 22rem;
    min-width: 0;
}
.habit-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.25rem;
    color: #0f172a;
    font-size: .9375rem;
    font-weight: 600;
}
.habit-card-impact {
    margin: 0 0 0.5rem;
    color: #475569;
    font-size: .8125rem;
    overflow-wrap: anywhere;
}
.habit-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.habit-card-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: .75rem;
    white-space: nowrap;
}
.habit-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}
.habit-card-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    font-size: .75rem;
}
.habit-streak {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #b45309;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.habit-card-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.habit-checkin-extra {
    margin-top: 0.75rem;
}
.habit-checkin-extra > summary {
    color: #64748b;
    font-size: .75rem;
    cursor: pointer;
}
.habit-checkin-extra > summary:hover {
    color: var(--ex-accent);
}
.habit-latest-checkin {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: .75rem;
}
.habit-edit-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ex-line);
}
.habit-form-section + .habit-form-section {
    margin-top: 1.25rem;
}
.habit-form-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.625rem;
    color: #0f172a;
    font-size: .8125rem;
    font-weight: 600;
}
.habit-reminder {
    padding: 0.875rem 1rem;
    border: 1px solid var(--ex-line);
    border-radius: 8px;
    background: #f8fafc;
}
.habit-reminder-detail {
    margin-top: 0.75rem;
}
.habit-reminder-channels {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-top: 1.5rem;
    color: #64748b;
    font-size: .75rem;
}
@media (max-width: 575.98px) {
    .habit-card-side {
        align-items: stretch;
        width: 100%;
    }
    .habit-card-stats {
        justify-content: flex-start;
    }
    .habit-reminder-channels {
        padding-top: 0;
    }
}

/* Spotlight talent groups: each list owns its own "add another" control. */
.spotlight-group {
    height: 100%;
    padding: 0.875rem;
    border: 1px solid var(--ex-line);
    border-radius: 8px;
    background: #f8fafc;
}
.spotlight-row {
    padding: 0.625rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--ex-line);
    border-radius: 8px;
    background: #fff;
}
.spotlight-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    padding: 0.5rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: .8125rem;
    font-weight: 600;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.spotlight-add-btn:hover {
    border-color: var(--ex-accent);
    background: #fff;
    color: var(--ex-accent);
}

.blocker-resolved-group > summary {
    cursor: pointer;
    list-style-position: inside;
    border-top: 1px solid var(--ex-line);
}
.blocker-resolved-group > summary:hover {
    color: #0f172a !important;
}
.blocker-item-resolved {
    background: #f8fafc;
    border-left: 3px solid #16a34a;
}

/* Growth Mindset page type scale: 15.2px card titles, 13px body/fields/buttons, 12px labels and helper text. */
.gm-page .premium-glass-card .small,
.gm-page .premium-glass-card .badge,
.gm-page .blocker-type-desc {
    font-size: .75rem;
}
.gm-page .premium-glass-card .form-control,
.gm-page .premium-glass-card .form-select,
.gm-page .premium-glass-card .btn,
.gm-page .premium-glass-card .card-subtitle,
.gm-page .alert {
    font-size: .8125rem;
}
.gm-page .premium-glass-card .card-subtitle {
    font-weight: 600;
}
.btn-check:focus-visible + .blocker-type-option {
    outline: 2px solid var(--ex-accent);
    outline-offset: 2px;
}
.checkpoint-scale-anchors {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 0 0.25rem;
    color: var(--ex-caption);
    font-size: .8125rem;
}
.checkpoint-scale-anchors span:last-child {
    text-align: right;
}
@media (max-width: 575.98px) {
    .checkpoint-scale {
        gap: 0.125rem;
        padding: 0.25rem;
    }
    .checkpoint-scale-option {
        height: 2.25rem;
        font-size: .8125rem;
        border-radius: 8px;
    }
}

/* ---------- Kondisi Diri summary ---------- */
.checkpoint-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1.25rem;
}
.checkpoint-header > div:first-child {
    flex: 1 1 22rem;
    max-width: 40rem;
}
.checkpoint-steps {
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.checkpoint-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.checkpoint-step + .checkpoint-step::before {
    content: "";
    width: 1.5rem;
    height: 1px;
    margin-right: 0.125rem;
    background: var(--ex-line);
}
.checkpoint-step-dot {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid var(--ex-line);
    border-radius: 50%;
    background: #fff;
    color: var(--ex-muted);
    font-size: .8125rem;
    font-weight: 600;
}
.checkpoint-step.is-done .checkpoint-step-dot {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}
.checkpoint-step.is-current .checkpoint-step-dot {
    border-color: var(--ex-accent);
    color: var(--ex-accent);
    box-shadow: 0 0 0 3px rgba(var(--ex-accent-rgb), 0.12);
}
.checkpoint-step-title {
    display: block;
    color: var(--ex-ink);
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.3;
}
.checkpoint-step-meta {
    display: block;
    color: var(--ex-caption);
    font-size: .8125rem;
    line-height: 1.3;
    white-space: nowrap;
}

.checkpoint-summary {
    display: grid;
    grid-template-columns: minmax(0, 18.5rem) minmax(0, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.checkpoint-momentum {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.25rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--ex-line);
}
.checkpoint-eyebrow {
    color: var(--ex-caption);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 0;
}
.checkpoint-momentum-value {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    color: var(--ex-ink);
    font-size: 2.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}
.checkpoint-momentum-from {
    color: var(--ex-caption);
    font-size: 1.5rem;
    font-weight: 600;
}
.checkpoint-momentum-arrow {
    align-self: center;
    color: var(--ex-caption);
    font-size: 1rem;
}
.checkpoint-momentum-max {
    color: var(--ex-caption);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}
.checkpoint-level {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
}
.checkpoint-level::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
}
.checkpoint-level-warning { background: #fef3c7; color: #b45309; }
.checkpoint-level-primary { background: #e8ecf3; color: var(--ex-accent); }
.checkpoint-level-success { background: #dcfce7; color: #15803d; }
.checkpoint-momentum-hint {
    margin: 0.25rem 0 0;
    color: #334155;
    font-size: .8125rem;
    line-height: 1.5;
}
.checkpoint-momentum-note {
    margin: auto 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--ex-line);
    width: 100%;
    color: var(--ex-caption);
    font-size: .75rem;
    line-height: 1.5;
}

.checkpoint-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}
.checkpoint-bar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.375rem;
}
.checkpoint-bar-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ex-ink);
    font-size: .875rem;
    font-weight: 500;
}
.checkpoint-bar-score {
    color: var(--ex-ink);
    font-size: .875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.checkpoint-bar-from {
    color: var(--ex-caption);
    font-weight: 500;
}
.checkpoint-bar-max {
    color: var(--ex-caption);
    font-weight: 500;
}
.checkpoint-bar {
    position: relative;
    height: 0.5rem;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}
.checkpoint-bar > span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
}
.checkpoint-bar-fill {
    background: var(--ex-accent);
}
.checkpoint-bar-before {
    background: #cbd5e1;
}
.checkpoint-bar-before + .checkpoint-bar-fill {
    height: 50%;
    top: 25%;
    bottom: auto;
}
.checkpoint-bar-row.is-focus .checkpoint-bar-fill {
    background: var(--ex-gold);
}
.checkpoint-focus-tag {
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 0;
}
.checkpoint-delta {
    margin-left: 0.375rem;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--ex-muted);
    font-size: .75rem;
    font-weight: 600;
}
.checkpoint-momentum .checkpoint-delta {
    margin-left: 0;
    font-size: .8125rem;
}
.checkpoint-delta.is-up { background: #dcfce7; color: #15803d; }
.checkpoint-delta.is-down { background: #fee2e2; color: #b91c1c; }
.checkpoint-legend {
    display: flex;
    gap: 1rem;
    color: var(--ex-caption);
    font-size: .75rem;
}
.checkpoint-legend i {
    display: inline-block;
    width: 0.75rem;
    height: 0.375rem;
    margin-right: 0.25rem;
    border-radius: 999px;
    vertical-align: middle;
}
.checkpoint-legend-before { background: #cbd5e1; }
.checkpoint-legend-after { background: var(--ex-accent); }

.checkpoint-callout {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
}
.checkpoint-callout > .ti {
    color: #d97706;
    font-size: 1.25rem;
    line-height: 1.2;
}
.checkpoint-callout-title {
    color: var(--ex-ink);
    font-size: .875rem;
    font-weight: 600;
}
.checkpoint-callout-text {
    color: #57534e;
    font-size: .8125rem;
    line-height: 1.5;
}

.checkpoint-reflection {
    margin: 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--ex-accent);
    border-radius: 0 12px 12px 0;
    background: #f8fafc;
}
.checkpoint-reflection figcaption {
    margin-bottom: 0.375rem;
    color: var(--ex-caption);
    font-size: .8125rem;
}
.checkpoint-reflection blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--ex-ink);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.55;
    white-space: pre-line;
}

@media (max-width: 767.98px) {
    .checkpoint-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }
    .checkpoint-steps {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }
    .checkpoint-step + .checkpoint-step::before {
        display: none;
    }
    .checkpoint-step-meta {
        white-space: normal;
    }
}
.checkpoint-bands {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
    margin: 0 0 0.5rem;
    padding: 0;
    list-style: none;
}
.checkpoint-band {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.375rem 0.375rem;
    border-top: 3px solid #e2e8f0;
    border-radius: 4px;
    color: var(--ex-caption);
    line-height: 1.25;
    white-space: nowrap;
}
.checkpoint-band-label {
    font-size: .75rem;
    font-weight: 600;
}
.checkpoint-band-range {
    font-size: .6875rem;
    font-variant-numeric: tabular-nums;
}
.checkpoint-band.is-active { background: #fff; }
.checkpoint-band-warning { border-top-color: #d97706; color: #b45309; }
.checkpoint-band-primary { border-top-color: var(--ex-accent); color: var(--ex-accent); }
.checkpoint-band-success { border-top-color: #16a34a; color: #15803d; }

/* ---------- Goal list scoped to one program ---------- */
.goal-scope-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ex-line);
    border-radius: 12px;
    background: #fff;
    color: var(--ex-ink);
    font-size: .875rem;
}
.goal-scope-bar a {
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* ---------- Member table: identity cell and single-row actions ---------- */
.member-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.member-avatar {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--ex-navy-800);
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
}
.member-name {
    font-weight: 600;
    color: var(--ex-ink, #0f172a);
}
.member-email {
    font-size: .8125rem;
    color: var(--ex-caption, #64748b);
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.member-cell-text {
    min-width: 0;
}
.row-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.375rem;
}
.row-actions form {
    margin: 0;
}
.member-role-form {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.card-table .btn {
    white-space: nowrap;
}
/* Row actions: roomy icon buttons on desktop (Map Talent keeps its label); labels return on phones. */
@media (min-width: 768px) {
    :is(.row-actions, .card-table td) .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.375rem;
        min-width: 2.4rem;
        height: 2.4rem;
        padding: 0 0.5rem;
        border-radius: 12px;
        font-weight: 600;
    }
    :is(.row-actions, .card-table td) .btn .ti {
        font-size: 1.35rem;
        line-height: 1;
    }
    .row-actions .btn:not(.row-action-labeled) .row-action-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
    :is(.row-actions, .card-table td) .btn-primary { border-color: transparent; }
    :is(.row-actions, .card-table td) .btn-outline-secondary { background: #f1f5f9; border-color: transparent; color: #334155; }
    :is(.row-actions, .card-table td) .btn-outline-primary { background: #e8ecf3; border-color: transparent; color: var(--ex-accent); }
    :is(.row-actions, .card-table td) .btn-outline-warning { background: #fdf3e0; border-color: transparent; color: #b45309; }
    :is(.row-actions, .card-table td) .btn-outline-success { background: #e6f6ef; border-color: transparent; color: #047857; }
    :is(.row-actions, .card-table td) .btn-outline-danger { background: #fdecec; border-color: transparent; color: #b91c1c; }
    :is(.row-actions, .card-table td) .btn:hover { filter: brightness(0.95); }
    :is(.row-actions, .card-table td) .btn:active { transform: scale(0.97); }
    .member-role-form .form-select { height: 2.4rem; border-radius: 12px; }
}

/* Cockpit: alert row, thicker progress bar, clearer sort headers */
.cockpit-table tbody tr.row-alert {
    background: #fff8f8;
}
.cockpit-table tbody tr.row-alert > td:first-child {
    box-shadow: inset 4px 0 0 #dc2626;
}
.cockpit-progress {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
}
.cockpit-progress .progress-bar {
    border-radius: 999px;
}
.cockpit-table thead th a {
    font-weight: 600;
}
.cockpit-table thead th a:hover {
    color: var(--ex-accent) !important;
}
.cockpit-table thead th a .ti:not(.text-muted) {
    color: var(--ex-accent);
}

/* ---------- Design tokens: one scale for type, radius, shadow and panels ---------- */
:root {
    --ex-fs-xs: 0.6875rem;
    --ex-fs-sm: 0.75rem;
    --ex-fs-base: 0.8125rem;
    --ex-fs-md: 0.875rem;
    --ex-fs-lg: 1rem;
    --ex-radius-ctl: 8px;
    --ex-radius-md: 12px;
    --ex-radius-card: 14px;
    --ex-radius-hero: 16px;
    --ex-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -14px rgba(15, 23, 42, 0.12);
    --ex-panel-pad: 1.25rem 1.5rem;
}

/* The member-facing glass card is the same panel as .card */
.premium-dashboard-scope .premium-glass-card {
    border: 1px solid var(--ex-line);
    border-radius: var(--ex-radius-card);
    box-shadow: var(--ex-shadow-card);
}
.premium-dashboard-scope .premium-glass-card:hover {
    box-shadow: var(--ex-shadow-card);
}
.premium-dashboard-scope .premium-glass-card .card-body {
    padding: var(--ex-panel-pad);
}
.premium-dashboard-scope .premium-glass-card .card-header {
    padding: 1rem 1.5rem;
}

/* One heading scale: hero title, card title, section title */
.page-hero h2,
.premium-hero-banner h2 {
    font-size: 1.75rem;
}
.card-title,
.premium-glass-card .card-title {
    font-size: var(--ex-fs-lg);
}

/* Labels are styled once above (.form-label); templates must not add small/fw-* variants */
.form-control-sm,
.form-select-sm {
    border-radius: var(--ex-radius-ctl);
}

/* Status badges: tone comes from the bg-*-lt class only */
.badge[class*="-lt"] {
    font-size: var(--ex-fs-xs);
}

/* Utilities replacing repeated inline styles */
.icon-xl { font-size: 2rem; }
.icon-xs { font-size: var(--ex-fs-xs); }
.badge-wrap { white-space: normal; text-align: left; }
.divider-warn { border-top: 1px solid rgba(180, 83, 9, 0.15); }
.col-fit { width: 1%; }
.col-badge { width: 110px; }

/* Cockpit: keep all six columns inside the card on laptop widths */
.cockpit-table .member-email {
    max-width: 12rem;
}
.cockpit-table thead th,
.cockpit-table tbody td {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Cockpit on laptop widths: shrink what is least important before the table scrolls */
.cockpit-table td[data-label="Goal"] {
    max-width: 12rem;
}
@media (min-width: 768px) and (max-width: 1439.98px) {
    .cockpit-table .row-action-labeled .row-action-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .cockpit-table .member-email {
        max-width: 9rem;
    }
    .cockpit-table thead th,
    .cockpit-table tbody td {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .cockpit-table td[data-label="Goal"] {
        max-width: 9rem;
    }
}

/* ---------- Signature: the program day in bronze numerals, progress in gold ---------- */
.journey-day {
    color: var(--ex-bronze);
    font-family: "Cinzel", serif;
    font-variant-numeric: tabular-nums;
}
.journey-progress .progress-bar {
    background: var(--ex-gold) !important;
}
