/* BakeSmart PH — admin console. "Studio" design system (2026-08-19 full
   redesign): modern minimalist SaaS — white cards floating on a soft neutral
   background, Inter everywhere, a real radius/shadow scale instead of flat
   zero-radius edges, and genuine semantic status colors (green success /
   amber warning / red danger / gray neutral) instead of a mono palette.
   Brand color stays TESDA's official deep blue (institutional identity, see
   thesis framing) but everything around it — neutrals, elevation, type,
   corners — is rebuilt. "--gold" naming kept from earlier themes so every
   existing reference cascades automatically; it now holds the brand blue.
   "--sage" now holds real green (success), not a neutral gray, and a new
   "--warning" token exists for pending/in-review states so those stop
   borrowing the brand-blue tint. Reuses the site's design tokens (see
   landing.css / auth.css) but is scoped independently under .admin-shell. */
.admin-shell {
    --cream: #F7F8FA;
    --panel: #FFFFFF;
    --ink: #12151A;
    --ink-soft: #5B6472;
    --ink-faint: #94A0AF;
    --gold: #0B3D91;
    --gold-dark: #082C6E;
    --gold-soft: #EAF1FC;
    --flag-gold: #FCD116;
    --sage: #16A34A;
    --sage-soft: #E7F7ED;
    --red: #DC2626;
    --red-soft: #FDECEC;
    --red-dark: #B91C1C;
    --warning: #D97706;
    --warning-soft: #FEF3E0;
    --purple: #7C3AED;
    --purple-soft: #F3E8FF;
    --teal: #0D9488;
    --teal-soft: #CCFBF1;
    --gray: #6B7280;
    --gray-soft: #EEF0F3;
    /* Same hex as --warning — kept as a separate, clearly-named alias for
       brand/identity use (sidebar logo, active nav, dashboard hero) so it
       reads distinctly from --warning's "pending/in-review" status meaning
       even though both currently resolve to the same orange. */
    --brand-orange: #D97706;
    --brand-orange-dark: #B45F04;
    --brand-orange-darker: #8A4703;
    /* Same hex as --warning-soft — separate alias for the same reason as
       --brand-orange above (single-tone icon/avatar/badge backgrounds, not
       the gold/sage/warning/purple/teal/ink/gray multi-tone bucket). */
    --brand-orange-soft: #FEF3E0;
    --wheat: #EEF0F3;
    --line: #E4E7EC;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 999px;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.07), 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.07);
    --shadow-lg: 0 12px 28px rgba(16, 24, 40, 0.12);
    --shadow-gold: 0 2px 6px rgba(11, 61, 145, 0.18);

    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    transition: grid-template-columns .25s ease;
}

.admin-shell.is-collapsed {
    grid-template-columns: 78px minmax(0, 1fr);
}

.admin-shell * {
    box-sizing: border-box;
}

.admin-shell a {
    color: inherit;
    text-decoration: none;
}

.admin-shell button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.admin-shell h1, .admin-shell h2, .admin-shell h3, .admin-shell p, .admin-shell ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-shell .eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 600;
}

/* ===== SIDEBAR ===== */
.admin-shell .sidebar {
    background: var(--panel);
    color: var(--ink);
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: padding .25s ease;
    overflow: hidden;
    border-right: 1px solid var(--line);
}

.admin-shell .sidebar::-webkit-scrollbar {
    width: 0;
}

.admin-shell.is-collapsed .sidebar {
    padding: 26px 14px;
}

.admin-shell.is-collapsed .brand .brand-name,
.admin-shell.is-collapsed .brand .sub,
.admin-shell.is-collapsed .nav-label,
.admin-shell.is-collapsed .nav-item span:not(.count),
.admin-shell.is-collapsed .nav-item .count,
.admin-shell.is-collapsed .sidebar-footer .who {
    display: none;
}

.admin-shell.is-collapsed .nav-item {
    justify-content: center;
    padding: 10px;
}

.admin-shell.is-collapsed .brand {
    justify-content: center;
    padding: 6px 0 26px;
}

.admin-shell.is-collapsed .sidebar-footer {
    justify-content: center;
}

.admin-shell .collapse-btn {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-md);
    background: var(--wheat);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    margin-left: auto;
    flex-shrink: 0;
    transition: background .15s ease;
}

.admin-shell .collapse-btn:hover {
    background: var(--line);
    color: var(--ink);
}

.admin-shell .collapse-btn svg {
    width: 14px;
    height: 14px;
    transition: transform .25s ease;
}

.admin-shell.is-collapsed .collapse-btn svg {
    transform: rotate(180deg);
}

.admin-shell.is-collapsed .collapse-btn {
    margin: 0 auto;
}

.admin-shell .sidebar-overlay {
    display: none;
}

.admin-shell .menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--panel);
    border: 1px solid var(--line);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .15s ease;
}

.admin-shell .menu-btn:hover {
    border-color: var(--brand-orange);
}

.admin-shell .menu-btn:active {
    background: var(--wheat);
}

.admin-shell .menu-btn svg {
    width: 18px;
    height: 18px;
    color: var(--ink-soft);
}

.admin-shell .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 26px;
}

.admin-shell .brand .mark-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-shell .brand .mark-icon svg {
    width: 18px;
    height: 18px;
}

/* Plain line-art mark (no background box) — matches the public site's own
   chef-hat nav logo exactly, per the reference. */
.admin-shell .brand .mark-icon.mark-icon-outline {
    width: 30px;
    height: 30px;
    background: none;
    color: var(--brand-orange);
}

.admin-shell .brand .mark-icon.mark-icon-outline svg {
    width: 26px;
    height: 26px;
}

.admin-shell .brand .brand-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16.5px;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--ink);
}

.admin-shell .brand .brand-name .accent {
    color: var(--brand-orange);
}

.admin-shell .brand .sub {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--ink-faint);
    text-transform: uppercase;
}

.admin-shell .nav-group {
    margin-bottom: 22px;
}

.admin-shell .nav-label {
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding: 0 10px;
    margin-bottom: 8px;
    display: block;
}

.admin-shell .nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 2px;
    transition: background .15s ease, color .15s ease;
}

.admin-shell .nav-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity .15s ease;
}

.admin-shell .nav-item:hover {
    background: var(--wheat);
    color: var(--ink);
}

.admin-shell .nav-item.active {
    background: rgba(217, 119, 6, 0.12);
    color: var(--brand-orange-dark);
}

.admin-shell .nav-item.active::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--brand-orange);
}

.admin-shell .nav-item.active svg {
    opacity: 1;
}

.admin-shell .nav-item .count {
    margin-left: auto;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    background: var(--wheat);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    color: var(--ink-soft);
}

/* Collapsible "History" nav item — a plain clickable div (not a NavLink <a>,
   since it doesn't navigate anywhere itself), so cursor needs setting
   explicitly, and its own "active" state is driven by IsHistoryRoute rather
   than NavLink's automatic href-matching. */
.admin-shell .nav-item-parent {
    cursor: pointer;
}

.admin-shell .nav-chevron {
    margin-left: auto;
    width: 13px !important;
    height: 13px !important;
    opacity: 0.6;
    transition: transform .2s ease;
}

.admin-shell .nav-chevron.expanded {
    transform: rotate(90deg);
}

.admin-shell .nav-subitem {
    display: flex;
    align-items: center;
    padding: 8px 10px 8px 38px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 2px;
    transition: background .15s ease, color .15s ease;
}

.admin-shell .nav-subitem:hover {
    background: var(--wheat);
    color: var(--ink);
}

.admin-shell .nav-subitem.active {
    background: rgba(217, 119, 6, 0.12);
    color: var(--brand-orange-dark);
}

.admin-shell.is-collapsed .nav-subitem,
.admin-shell.is-collapsed .nav-chevron {
    display: none;
}

/* Avatar chip — now used in the global topbar (AdminLayout's account
   dropdown toggle) rather than the sidebar footer, which is decorative-only
   below (see .sidebar-decorative). */
.admin-shell .avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: var(--brand-orange-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--brand-orange-dark);
    font-size: 13px;
    flex-shrink: 0;
    overflow: hidden;
}

.admin-shell .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Decorative sidebar filler — replaces the old avatar/name/logout footer,
   which moved to the global topbar (AdminLayout) so it's reachable from
   every admin page. Same cursive-tagline-over-a-bakery-photo convention as
   the learner site's dashboard hero and profile header. */
.admin-shell .sidebar-decorative {
    margin-top: auto;
    flex: 1 1 auto;
    min-height: 190px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background-image: linear-gradient(0deg, rgba(20, 12, 4, 0.15) 0%, rgba(20, 12, 4, 0.75) 85%), url('/images/hero-banner.png');
    background-size: cover;
    background-position: center 20%;
}

.admin-shell .sidebar-decorative-tagline {
    position: absolute;
    left: 16px;
    bottom: 16px;
    font-family: 'Caveat', cursive;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
    color: #fff;
}

.admin-shell .sidebar-decorative-tagline .heart {
    color: var(--brand-orange);
}

.admin-shell.is-collapsed .sidebar-decorative {
    display: none;
}

/* ===== GLOBAL TOPBAR (AdminLayout) ===== */
.admin-shell .admin-main-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-shell .admin-topbar {
    position: sticky;
    top: 0;
    /* Above ordinary page content (which topped out around 300) — the topbar's
       sticky positioning + z-index makes it its own stacking context, so its
       dropdown children (notif/search/account-menu below) can never out-rank a
       higher z-index on a sibling elsewhere on the page no matter what z-index
       they're given themselves; raising the topbar itself is what actually fixes
       "the notification dropdown renders under other page content". Deliberately
       BELOW .dialog-overlay/.admin-toast (see those rules) — a modal must still
       cover and dim the topbar, not sit under it.  */
    z-index: 400;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 36px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.admin-shell .admin-search-wrap {
    position: relative;
    flex: 1;
    max-width: 460px;
}

.admin-shell .admin-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--ink-faint);
    pointer-events: none;
}

.admin-shell .admin-search-input {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    padding: 10px 14px 10px 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--line);
    background: var(--cream);
    color: var(--ink);
}

.admin-shell .admin-search-input:focus {
    outline: none;
    border-color: var(--brand-orange);
    background: var(--panel);
}

.admin-shell .admin-search-backdrop {
    position: fixed;
    inset: 0;
    z-index: 449;
}

.admin-shell .admin-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 450;
    max-height: 60vh;
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 10px;
}

.admin-shell .admin-search-empty {
    padding: 14px 10px;
    font-size: 13px;
    color: var(--ink-faint);
}

.admin-shell .admin-search-group {
    padding: 6px 0;
}

.admin-shell .admin-search-group + .admin-search-group {
    border-top: 1px solid var(--line);
}

.admin-shell .admin-search-group-label {
    display: block;
    padding: 4px 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.admin-shell .admin-search-result {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--ink);
}

.admin-shell .admin-search-result:hover {
    background: var(--cream);
}

.admin-shell .admin-search-viewall {
    display: block;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-orange);
}

.admin-shell .admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.admin-shell .admin-account-menu-wrap {
    position: relative;
}

.admin-shell .admin-account-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 6px 4px 4px;
    border-radius: var(--radius-full);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
    font: inherit;
}

.admin-shell .admin-account-toggle:hover {
    background: var(--cream);
}

.admin-shell .admin-account-name {
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-shell .admin-account-chevron {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    flex-shrink: 0;
    transition: transform .15s ease;
}

.admin-shell .admin-account-toggle.open .admin-account-chevron {
    transform: rotate(180deg);
}

.admin-shell .admin-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 180px;
    z-index: 450;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.admin-shell .admin-account-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.admin-shell .admin-account-menu-item:hover {
    background: var(--cream);
}

.admin-shell .admin-account-menu-item.danger {
    color: var(--red);
}

.admin-shell .admin-account-menu-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.admin-shell .admin-body {
    min-width: 0;
}

@media (max-width: 900px) {
    .admin-shell .admin-topbar {
        padding: 12px 16px;
    }

    .admin-shell .admin-account-name {
        display: none;
    }
}

/* ===== MAIN ===== */
.admin-shell main {
    /* min-width:0 overrides the grid item default of min-width:auto, which
       otherwise floors this track at its content's min-content width — a wide
       table (e.g. Recipes' 7 columns) would force the whole grid, and the
       page, wider than the viewport on mobile, pushing .topbar's menu button
       off-screen entirely instead of just scrolling inside .table-wrap. */
    min-width: 0;
    padding: 28px 36px 60px;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

.admin-shell .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -36px 30px;
    padding: 26px 36px 18px;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.admin-shell .topbar h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    letter-spacing: -0.015em;
    line-height: 1.12;
}

.admin-shell .topbar .date {
    font-size: 12.5px;
    color: var(--ink-faint);
    margin-top: 3px;
}

.admin-shell .active-batch-pill {
    display: inline-block;
    margin-left: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    padding: 2px 9px;
    border-radius: var(--radius-full);
}

.admin-shell .active-batch-pill.none {
    color: var(--ink-faint);
    background: var(--wheat);
}

.admin-shell .top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-shell .icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--panel);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: border-color .15s ease;
}

.admin-shell .icon-btn:hover {
    border-color: var(--brand-orange);
}

.admin-shell .icon-btn svg {
    width: 17px;
    height: 17px;
    color: var(--ink-soft);
}

.admin-shell .icon-btn .dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

.admin-shell .btn-primary {
    background: var(--brand-orange);
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    transition: background .15s ease;
    white-space: nowrap;
}

.admin-shell .btn-primary:hover {
    background: var(--brand-orange-dark);
}

.admin-shell .btn-primary:active {
    background: var(--brand-orange-darker);
}

.admin-shell .btn-primary:disabled {
    opacity: 0.5;
    cursor: default;
}

.admin-shell .btn-primary svg {
    width: 15px;
    height: 15px;
}

/* STAT CARDS */
.admin-shell .stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.admin-shell .stat-card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    box-shadow: var(--shadow-xs);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.admin-shell .stat-card:hover {
    border-color: var(--brand-orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.admin-shell .stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.admin-shell .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-shell .stat-icon svg {
    width: 20px;
    height: 20px;
}

.admin-shell .stat-icon.gold {
    background: var(--gold-soft);
}

.admin-shell .stat-icon.gold svg {
    color: var(--gold-dark);
}

.admin-shell .stat-icon.sage {
    background: var(--sage-soft);
}

.admin-shell .stat-icon.sage svg {
    color: var(--sage);
}

.admin-shell .stat-icon.red {
    background: var(--red-soft);
}

.admin-shell .stat-icon.red svg {
    color: var(--red);
}

.admin-shell .stat-icon.ink {
    background: var(--wheat);
}

.admin-shell .stat-icon.ink svg {
    color: var(--ink);
}

.admin-shell .stat-icon.warning {
    background: var(--warning-soft);
}

.admin-shell .stat-icon.warning svg {
    color: var(--warning);
}

.admin-shell .stat-sparkline {
    width: 56px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.65;
}

.admin-shell .trend.flat {
    background: var(--wheat);
    color: var(--ink-soft);
}

.admin-shell .trend svg {
    width: 11px;
    height: 11px;
}

.admin-shell .trend {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.admin-shell .trend.up {
    background: var(--sage-soft);
    color: var(--sage);
}

.admin-shell .trend.down {
    background: var(--red-soft);
    color: var(--red);
}

.admin-shell .stat-value {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 36px;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.admin-shell .stat-label {
    font-size: 13.5px;
    color: var(--ink-soft);
}

.admin-shell .stat-card.accent-gold { border-left: 3px solid var(--gold); }
.admin-shell .stat-card.accent-ink { border-left: 3px solid var(--ink); }
.admin-shell .stat-card.accent-red { border-left: 3px solid var(--red); }
.admin-shell .stat-card.accent-sage { border-left: 3px solid var(--sage); }
.admin-shell .stat-card.accent-warning { border-left: 3px solid var(--warning); }

.admin-shell .stat-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.admin-shell .stat-foot-bar {
    flex: 1;
    height: 4px;
    background: var(--wheat);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.admin-shell .stat-foot-fill {
    height: 100%;
    width: 100%;
}

.admin-shell .stat-foot-fill.gold { background: var(--gold); }
.admin-shell .stat-foot-fill.ink { background: var(--ink); }
.admin-shell .stat-foot-fill.red { background: var(--red); }
.admin-shell .stat-foot-fill.sage { background: var(--sage); }

.admin-shell .stat-foot-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-soft);
    white-space: nowrap;
    flex-shrink: 0;
}

/* MAIN GRID */
.admin-shell .grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}

.admin-shell .panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-xs);
}

/* Lets a panel's main content grow to fill leftover height once .grid-2's
   align-items:stretch has matched it to its taller row-sibling (e.g.
   Submission Statistics matching Quick Actions) — opt-in via this modifier
   rather than on .panel itself, since .panel is reused by plain
   block-layout pages (tables, forms) elsewhere that shouldn't become flex
   columns. */
.admin-shell .panel-stretch {
    display: flex;
    flex-direction: column;
}

.admin-shell .panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-shell .panel-head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.015em;
}

.admin-shell .panel-head-inline-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--brand-orange);
}

.admin-shell .panel-head .link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-orange);
    border-bottom: 1.5px solid var(--brand-orange);
    padding-bottom: 1px;
}

.admin-shell .panel-head .panel-sub {
    font-size: 12px;
    color: var(--ink-faint);
}

.admin-shell .panel-head-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* DASHBOARD HERO */
.admin-shell .dash-hero {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-shell .dash-hero-left {
    flex: 1;
    min-width: 260px;
}

.admin-shell .dash-hero-left h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-shell .dash-wave {
    display: inline-block;
}

.admin-shell .dash-hero-sub {
    margin-top: 4px;
    font-size: 13.5px;
    color: var(--ink-soft);
}

.admin-shell .dash-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.admin-shell .dash-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: var(--panel);
    border: 1px solid var(--line);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
}

.admin-shell .dash-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.admin-shell .dash-pill-online {
    background: var(--sage-soft);
    border-color: transparent;
    color: var(--sage);
}

.admin-shell .dash-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sage);
}

.admin-shell .dash-hero-banner {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 280px;
    max-width: 420px;
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    background-image: linear-gradient(100deg, rgba(30, 17, 5, 0.7) 0%, rgba(30, 17, 5, 0.35) 55%, rgba(30, 17, 5, 0.05) 100%), url('/images/hero-banner.png');
    background-size: cover;
    background-position: center 25%;
    color: #fff;
}

.admin-shell .dash-hero-banner-msg {
    max-width: 220px;
    font-style: italic;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    margin: 0;
}

.admin-shell .dash-hero-banner-underline {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--brand-orange);
    margin-top: 10px;
    border-radius: 2px;
}

.admin-shell .dash-hero-banner-tagline {
    position: absolute;
    top: 20px;
    right: 22px;
    font-family: 'Caveat', cursive;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 600;
    text-align: right;
}

.admin-shell .dash-hero-banner-tagline .heart {
    color: var(--brand-orange);
}

@media (max-width: 760px) {
    .admin-shell .dash-hero-banner-tagline {
        display: none;
    }
}

/* SUBMISSION STATISTICS — donut chart */
.admin-shell .donut-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    flex: 1;
}

.admin-shell .donut {
    width: 152px;
    height: 152px;
    flex-shrink: 0;
}

.admin-shell .donut-total-num {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 8px;
    fill: var(--ink);
}

.admin-shell .donut-total-label {
    font-family: 'Inter', sans-serif;
    font-size: 3px;
    fill: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-shell .donut-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 160px;
}

.admin-shell .donut-legend-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--ink-soft);
}

.admin-shell .donut-legend-row .sw {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.admin-shell .donut-legend-row .sw.sage { background: var(--sage); }
.admin-shell .donut-legend-row .sw.gold { background: var(--gold); }
.admin-shell .donut-legend-row .sw.red { background: var(--red); }
.admin-shell .donut-legend-row .sw.purple { background: var(--purple); }

.admin-shell .donut-legend-row strong {
    margin-left: auto;
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
}

/* Period/grouping selector pill. The Submission Statistics one (panel-dropdown-wrap)
   is a real working filter — see Dashboard.razor's StatsFilterRange/LoadStatusCountsAsync.
   Recipe Distribution's "By Competency" pill stays plain text/decorative. */
.admin-shell .panel-dropdown-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--line);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--panel);
    cursor: pointer;
}

.admin-shell .panel-dropdown-pill svg {
    width: 12px;
    height: 12px;
}

.admin-shell .panel-dropdown-wrap {
    position: relative;
}

.admin-shell .panel-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
}

.admin-shell .panel-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 50;
    min-width: 150px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-shell .panel-dropdown-item {
    text-align: left;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
}

.admin-shell .panel-dropdown-item:hover {
    background: var(--wheat);
    color: var(--ink);
}

.admin-shell .panel-dropdown-item.active {
    background: rgba(217, 119, 6, 0.12);
    color: var(--brand-orange-dark);
}

/* RECENT ACTIVITY — unified feed */
.admin-shell .activity-list {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.admin-shell .activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.admin-shell .activity-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.admin-shell .activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
}

.admin-shell .activity-icon svg {
    width: 17px;
    height: 17px;
}

.admin-shell .activity-icon.sage { background: var(--sage-soft); color: var(--sage); }
.admin-shell .activity-icon.gold { background: var(--gold-soft); color: var(--gold-dark); }
.admin-shell .activity-icon.warning { background: var(--warning-soft); color: var(--warning); }
.admin-shell .activity-icon.purple { background: var(--purple-soft); color: var(--purple); }

.admin-shell .activity-text {
    min-width: 0;
    flex: 1;
}

.admin-shell .activity-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
}

.admin-shell .activity-sub {
    font-size: 12.5px;
    color: var(--ink-faint);
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-shell .activity-time {
    font-size: 11.5px;
    color: var(--ink-faint);
    white-space: nowrap;
    flex-shrink: 0;
}

/* RECIPE DISTRIBUTION — bar chart, drawn against a real numeric axis (0..N)
   rather than normalizing every bar to the tallest one — with few, equal-
   valued competencies that old approach made every bar the same full
   height and told the viewer nothing. Columns are capped to a fixed width
   and the row is centered instead of flex:1-stretched edge-to-edge, so a
   3-competency dataset doesn't spread into a sparse, oversized row. */
.admin-shell .bar-chart-frame {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex: 1;
}

.admin-shell .bar-chart-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    height: 160px;
    margin-top: 26px;
    flex-shrink: 0;
}

.admin-shell .bar-chart-axis span {
    font-size: 11px;
    color: var(--ink-faint);
    line-height: 1;
    transform: translateY(50%);
}

.admin-shell .bar-chart-axis span:first-child {
    transform: none;
}

.admin-shell .bar-chart-axis span:last-child {
    transform: translateY(100%);
}

/* The gridlines are drawn as the grid CONTAINER's own background (sized and
   offset to land exactly on the 160px track row) rather than as a grid
   child — a child spanning every column would "occupy" a row-2 cell in the
   auto-placement algorithm before the real value/track/label items are
   placed, pushing each data column's items into the wrong row and
   scrambling the whole chart by one cell per column. */
.admin-shell .bar-chart {
    flex: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 90px);
    grid-template-rows: 20px 160px auto;
    justify-content: center;
    column-gap: 28px;
    row-gap: 8px;
    min-width: 0;
    background-image: repeating-linear-gradient(to bottom, var(--line) 0, var(--line) 1px, transparent 1px, transparent calc(160px / var(--steps, 4)));
    background-position: 0 28px;
    background-size: 100% 160px;
    background-repeat: no-repeat;
}

.admin-shell .bar-chart-value {
    align-self: end;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
}

.admin-shell .bar-chart-track {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    width: 100%;
    min-width: 40px;
    max-width: 64px;
    justify-self: center;
}

.admin-shell .bar-chart-bar {
    width: 34px;
    max-width: 100%;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--brand-orange) 0%, #F3B562 100%);
}

.admin-shell .bar-chart-label {
    font-size: 10.5px;
    color: var(--ink-faint);
    text-align: center;
    line-height: 1.25;
    max-width: 80px;
    justify-self: center;
}

/* REPORTS PAGE — header banner + tagline */
.admin-shell .reports-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-shell .reports-header-left {
    flex: 1;
    min-width: 220px;
}

.admin-shell .reports-header-left h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.admin-shell .reports-header-left p {
    margin-top: 4px;
    font-size: 13.5px;
    color: var(--ink-soft);
}

.admin-shell .reports-banner {
    position: relative;
    overflow: hidden;
    flex: 2;
    min-width: 320px;
    max-width: 640px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: var(--radius-lg);
    padding: 18px 26px;
    background: linear-gradient(135deg, var(--warning-soft) 0%, #FCE3C0 100%);
}

.admin-shell .reports-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
    flex-shrink: 0;
    z-index: 1;
}

.admin-shell .reports-banner-icon svg {
    width: 22px;
    height: 22px;
}

.admin-shell .reports-banner-text {
    z-index: 1;
}

.admin-shell .reports-banner-text strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
}

.admin-shell .reports-banner-text span {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--ink-soft);
    max-width: 380px;
}

.admin-shell .reports-banner-watermark {
    position: absolute;
    right: -8px;
    bottom: -14px;
    width: 96px;
    height: 96px;
    color: rgba(217, 119, 6, 0.16);
}

.admin-shell .reports-banner-watermark svg {
    width: 100%;
    height: 100%;
}

.admin-shell .reports-tagline {
    font-family: 'Caveat', cursive;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
    flex-shrink: 0;
}

.admin-shell .reports-tagline .heart {
    color: var(--brand-orange);
}

@media (max-width: 900px) {
    .admin-shell .reports-tagline {
        display: none;
    }
}

/* REPORTS PAGE — Quick Filters */
.admin-shell .report-filters-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-shell .report-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 170px;
}

.admin-shell .report-filter-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
}

.admin-shell .report-filter-field .filter-select {
    width: 100%;
}

.admin-shell .report-filters-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* REPORTS PAGE — Available Reports card grid */
.admin-shell .report-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 900px) {
    .admin-shell .report-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.admin-shell .report-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.admin-shell .report-card:hover {
    border-color: var(--ink);
}

.admin-shell .report-card.selected {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.admin-shell .report-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.admin-shell .report-card-icon svg {
    width: 20px;
    height: 20px;
}

.admin-shell .report-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 4px;
}

.admin-shell .report-card-desc {
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.4;
    min-height: 34px;
}

.admin-shell .report-card-stat {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
}

.admin-shell .report-card-stat-num {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--ink);
}

.admin-shell .report-card-stat-label {
    font-size: 11px;
    color: var(--ink-soft);
    margin-top: 2px;
}

.admin-shell .report-card-foot {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-shell .report-card-link {
    font-size: 12.5px;
    font-weight: 700;
}

.admin-shell .report-card-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    flex-shrink: 0;
    color: #fff;
    transition: filter .15s ease;
}

.admin-shell .report-card-arrow:hover {
    filter: brightness(0.92);
}

.admin-shell .report-card-arrow svg {
    width: 14px;
    height: 14px;
}

/* Tone assignments shared by .report-card-icon / .report-card-stat /
   .report-card-link / .report-card-arrow — one tone per Available Reports
   card, keyed off ReportCard.Tone in Reports.razor. Single compound class
   tokens (report-card-icon-gold, not report-card-icon + a bare "gold"
   class) — MudBlazor.min.css ships its OWN bare .purple/.red/.teal/.gray
   utility classes with !important backgrounds, which silently clobbered
   these when they were two separate classes on the same element (found by
   inspecting getComputedStyle: background-color came back as MudBlazor's
   Material purple, not this file's --purple, on every tone whose name is
   also a real MudBlazor color). Bare "gold"/"sage"/"warning"/"ink" happened
   not to collide, but compound tokens are collision-proof for all eight. */
.admin-shell .report-card-icon-gold, .admin-shell .report-card-stat-gold { background: var(--gold-soft); }
.admin-shell .report-card-icon-gold, .admin-shell .report-card-link-gold { color: var(--gold); }
.admin-shell .report-card-arrow-gold { background: var(--gold); }

.admin-shell .report-card-icon-sage, .admin-shell .report-card-stat-sage { background: var(--sage-soft); }
.admin-shell .report-card-icon-sage, .admin-shell .report-card-link-sage { color: var(--sage); }
.admin-shell .report-card-arrow-sage { background: var(--sage); }

.admin-shell .report-card-icon-warning, .admin-shell .report-card-stat-warning { background: var(--warning-soft); }
.admin-shell .report-card-icon-warning, .admin-shell .report-card-link-warning { color: var(--warning); }
.admin-shell .report-card-arrow-warning { background: var(--warning); }

.admin-shell .report-card-icon-purple, .admin-shell .report-card-stat-purple { background: var(--purple-soft); }
.admin-shell .report-card-icon-purple, .admin-shell .report-card-link-purple { color: var(--purple); }
.admin-shell .report-card-arrow-purple { background: var(--purple); }

.admin-shell .report-card-icon-red, .admin-shell .report-card-stat-red { background: var(--red-soft); }
.admin-shell .report-card-icon-red, .admin-shell .report-card-link-red { color: var(--red); }
.admin-shell .report-card-arrow-red { background: var(--red); }

.admin-shell .report-card-icon-teal, .admin-shell .report-card-stat-teal { background: var(--teal-soft); }
.admin-shell .report-card-icon-teal, .admin-shell .report-card-link-teal { color: var(--teal); }
.admin-shell .report-card-arrow-teal { background: var(--teal); }

.admin-shell .report-card-icon-ink, .admin-shell .report-card-stat-ink { background: var(--wheat); }
.admin-shell .report-card-icon-ink, .admin-shell .report-card-link-ink { color: var(--ink); }
.admin-shell .report-card-arrow-ink { background: var(--ink); }

.admin-shell .report-card-icon-gray, .admin-shell .report-card-stat-gray { background: var(--gray-soft); }
.admin-shell .report-card-icon-gray, .admin-shell .report-card-link-gray { color: var(--gray); }
.admin-shell .report-card-arrow-gray { background: var(--gray); }

/* REPORTS PAGE — Recent Generated Reports table actions */
.admin-shell .report-history-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--line);
    background: var(--panel);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    transition: border-color .15s ease;
}

.admin-shell .report-history-download:hover {
    border-color: var(--ink);
}

.admin-shell .report-history-download svg {
    width: 13px;
    height: 13px;
}

/* QUICK ACTIONS */
.admin-shell .quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.admin-shell .quick-actions-4 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1200px) {
    .admin-shell .quick-actions-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.admin-shell .quick-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color .15s ease, background .15s ease;
}

.admin-shell .quick-action.gold { background: var(--gold-soft); }
.admin-shell .quick-action.sage { background: var(--sage-soft); }
.admin-shell .quick-action.ink { background: var(--wheat); }
.admin-shell .quick-action.warning { background: var(--warning-soft); }
.admin-shell .quick-action.purple { background: var(--purple-soft); }
.admin-shell .quick-action.red { background: var(--red-soft); }

.admin-shell .quick-action:hover {
    border-color: var(--ink);
}

.admin-shell .quick-action-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.admin-shell .quick-action-icon svg {
    width: 16px;
    height: 16px;
    color: var(--ink);
}

.admin-shell .quick-action-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.admin-shell .quick-action-desc {
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.45;
}

.admin-shell .quick-action-link {
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink);
}

/* Dashboard's own 4-tile row only (not the Reports page's 8-card grid, which
   keeps its smaller icons and "Generate →" text link) — bigger, roomier cards
   with a circular arrow button instead of plain arrow text. */
.admin-shell .quick-actions-4 .quick-action {
    padding: 22px;
    gap: 10px;
}

.admin-shell .quick-actions-4 .quick-action-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
}

.admin-shell .quick-actions-4 .quick-action-icon svg {
    width: 21px;
    height: 21px;
}

.admin-shell .quick-actions-4 .quick-action-title {
    font-size: 16px;
}

.admin-shell .quick-actions-4 .quick-action-desc {
    font-size: 13px;
}

.admin-shell .quick-actions-4 .quick-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

/* SUBMISSION STATISTICS */
.admin-shell .stat-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-shell .stat-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--ink-soft);
}

.admin-shell .stat-breakdown-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ink);
}

.admin-shell .stat-breakdown-label .sw {
    width: 9px;
    height: 9px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.admin-shell .stat-breakdown-label .sw.gold { background: var(--gold); }
.admin-shell .stat-breakdown-label .sw.sage { background: var(--sage); }
.admin-shell .stat-breakdown-label .sw.red { background: var(--red); }

.admin-shell .stat-breakdown-track {
    height: 6px;
    background: var(--wheat);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 4px;
}

.admin-shell .stat-breakdown-fill {
    height: 100%;
    transition: width .3s ease;
}

.admin-shell .stat-breakdown-fill.gold { background: var(--gold); }
.admin-shell .stat-breakdown-fill.sage { background: var(--sage); }
.admin-shell .stat-breakdown-fill.red { background: var(--red); }

/* NOTIFICATION BELL DROPDOWN */
.admin-shell .notif-wrap {
    position: relative;
}

.admin-shell .notif-backdrop {
    position: fixed;
    inset: 0;
    z-index: 449;
}

.admin-shell .notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 450;
    width: 300px;
    max-width: 90vw;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 14px;
    animation: admin-dialog-in .15s ease;
}

.admin-shell .notif-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.admin-shell .notif-count {
    font-size: 11px;
    font-weight: 700;
    background: var(--red-soft);
    color: var(--red);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.admin-shell .notif-dropdown-item {
    padding: 9px 4px;
    border-bottom: 1px solid var(--line);
}

.admin-shell .notif-dropdown-item.clickable {
    cursor: pointer;
    transition: background .12s ease;
    margin: 0 -4px;
    padding: 9px 4px;
}

.admin-shell .notif-dropdown-item.clickable:hover {
    background: var(--cream);
}

.admin-shell .notif-dropdown-item:last-of-type {
    border-bottom: none;
}

.admin-shell .notif-dropdown-item .name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
}

.admin-shell .notif-dropdown-item .sub {
    font-size: 11.5px;
    color: var(--ink-faint);
    margin-top: 1px;
}

.admin-shell .notif-dropdown-link {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-orange);
    text-align: center;
}

/* Recent Activity mini avatar + Recipe Distribution count badge */
.admin-shell .mini-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: var(--brand-orange-soft);
    color: var(--brand-orange-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-shell .dist-count {
    font-weight: 700;
    color: var(--brand-orange);
}

.admin-shell .tabs {
    display: flex;
    gap: 0;
    background: var(--cream);
    border: 1px solid var(--line);
    padding: 0;
    border-radius: var(--radius-md);
}

.admin-shell .tab {
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.admin-shell .tab.active {
    background: var(--brand-orange);
    color: #fff;
}

/* Bar chart */
.admin-shell .chart {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 170px;
    padding: 0 4px;
}

.admin-shell .chart .col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.admin-shell .chart .bars {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 130px;
}

.admin-shell .chart .bar {
    width: 9px;
    border-radius: var(--radius-md);
    background: var(--wheat);
}

.admin-shell .chart .bar.a {
    background: var(--gold);
}

.admin-shell .chart .bar.b {
    background: var(--ink);
    opacity: 0.4;
}

.admin-shell .chart .col-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-faint);
}

.admin-shell .chart-legend {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.admin-shell .legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--ink-soft);
}

.admin-shell .legend-item .sw {
    width: 9px;
    height: 9px;
    border-radius: var(--radius-full);
    display: inline-block;
}

/* Activity list */
.admin-shell .activity-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-shell .activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 8px;
    margin: 0 -8px;
    border-radius: var(--radius-md);
    border-bottom: 1px solid var(--line);
    transition: background .15s ease;
}

.admin-shell .activity-item:hover {
    background: var(--cream);
}

.admin-shell .activity-item:last-child {
    border-bottom: none;
}

.admin-shell .activity-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--wheat);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-shell .activity-icon svg {
    width: 15px;
    height: 15px;
    color: var(--ink-soft);
}

.admin-shell .activity-text {
    flex: 1;
    min-width: 0;
}

.admin-shell .activity-text .main {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

.admin-shell .activity-text .main b {
    font-weight: 700;
}

.admin-shell .activity-text .time {
    font-size: 11.5px;
    color: var(--ink-faint);
    margin-top: 1px;
}

/* TABLE */
.admin-shell .table-wrap {
    overflow-x: auto;
}

.admin-shell table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

/* A table row that expands an inline detail panel on click (e.g. Admin/Exams.razor's
   exam-history examinee rows) — same affordance as any other clickable row. */
.admin-shell table tbody tr.clickable {
    cursor: pointer;
}

.admin-shell table tbody tr.clickable:hover {
    background: var(--wheat);
}

/* Wider tables need a bigger floor than the 720px default so their columns
   (thumbnails, multiple badges, longer free-text) don't get squeezed before
   the horizontal scroll on .table-wrap kicks in. */
.admin-shell table.table-wide {
    min-width: 960px;
}

.admin-shell table.table-xwide {
    min-width: 1080px;
}

/* Narrow dashboard tables (Recent Activity / Recipe Distribution) live in a
   half-width grid panel — the 720px default forces needless scroll on them
   even on desktop, since they have far fewer/shorter columns. */
.admin-shell table.table-compact {
    min-width: 420px;
}

/* Short fixed-format content (dates, counts) should never wrap — let the
   table grow into .table-wrap's horizontal scroll instead. */
.admin-shell td.nowrap {
    white-space: nowrap;
}

.admin-shell thead th {
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 0 12px 12px;
    border-bottom: 2px solid var(--line);
    white-space: nowrap;
}

.admin-shell tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    vertical-align: middle;
}

.admin-shell tbody tr:last-child td {
    border-bottom: none;
}

.admin-shell tbody tr {
    transition: background .12s ease;
}

.admin-shell tbody tr:hover {
    background: rgba(32, 30, 29, 0.04);
}

.admin-shell .row-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-shell .thumb {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--wheat);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.admin-shell .thumb svg {
    width: 18px;
    height: 18px;
    color: var(--brand-orange-dark);
}

.admin-shell .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.admin-shell .row-item .name {
    font-weight: 600;
    color: var(--ink);
}

.admin-shell .row-item .sub {
    font-size: 11.5px;
    color: var(--ink-faint);
    margin-top: 1px;
}

.admin-shell .status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.admin-shell .status::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.admin-shell .status.published {
    background: var(--sage-soft);
    color: var(--sage);
}

.admin-shell .status.published::before {
    background: var(--sage);
}

.admin-shell .status.draft {
    background: var(--wheat);
    color: var(--ink-soft);
}

.admin-shell .status.draft::before {
    background: var(--ink-faint);
}

.admin-shell .status.review {
    background: var(--warning-soft);
    color: var(--warning);
}

.admin-shell .status.review::before {
    background: var(--warning);
}

/* Report-type tone pills (Reports page's "Recent Generated Reports" table) —
   named after the same tone keys the report cards use (gold/sage/warning/
   purple/red/teal/ink/gray), not a review-workflow status, so they get their
   own class names instead of reusing published/draft/review above. */
/* Compound tokens (status-purple, not status + a bare "purple" class) —
   MudBlazor.min.css ships its own bare .purple/.red/.teal/.gray utility
   classes with !important backgrounds that clobber a same-named second
   class on the same element; see the identical note above
   .report-card-icon-purple for how this was found. */
.admin-shell .status-gold { background: var(--gold-soft); color: var(--gold); }
.admin-shell .status-gold::before { background: var(--gold); }
.admin-shell .status-sage { background: var(--sage-soft); color: var(--sage); }
.admin-shell .status-sage::before { background: var(--sage); }
.admin-shell .status-warning { background: var(--warning-soft); color: var(--warning); }
.admin-shell .status-warning::before { background: var(--warning); }
.admin-shell .status-purple { background: var(--purple-soft); color: var(--purple); }
.admin-shell .status-purple::before { background: var(--purple); }
.admin-shell .status-red { background: var(--red-soft); color: var(--red); }
.admin-shell .status-red::before { background: var(--red); }
.admin-shell .status-teal { background: var(--teal-soft); color: var(--teal); }
.admin-shell .status-teal::before { background: var(--teal); }
.admin-shell .status-ink { background: var(--wheat); color: var(--ink); }
.admin-shell .status-ink::before { background: var(--ink); }
.admin-shell .status-gray { background: var(--gray-soft); color: var(--gray); }
.admin-shell .status-gray::before { background: var(--gray); }

.admin-shell .row-menu {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
}

.admin-shell .row-menu {
    transition: background .15s ease, color .15s ease;
}

.admin-shell .row-menu:hover {
    background: var(--wheat);
    color: var(--ink);
}

.admin-shell .row-menu.danger:hover {
    background: var(--red-soft);
    color: var(--red);
}

.admin-shell .row-menu svg {
    width: 16px;
    height: 16px;
}

.admin-shell .row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* SUBMISSIONS — learner-grouped list + detail modal */
.admin-shell .learner-row {
    cursor: pointer;
}

.admin-shell .dialog.dialog-wide {
    max-width: 70vw;
}

.admin-shell table.nested-table {
    background: var(--cream);
}

.admin-shell table.nested-table thead th {
    font-size: 10px;
    padding: 10px 10px 8px;
    border-bottom: 2px solid var(--line);
    background: var(--cream);
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-shell table.nested-table tbody td {
    padding: 10px;
    font-size: 12.5px;
}

.admin-shell table.nested-table .remarks-cell {
    max-width: 200px;
    white-space: normal;
}

.admin-shell .learner-modal-table-wrap {
    max-height: 55vh;
    overflow-y: auto;
}

/* SUBMISSIONS — review history (audit log) inside the review modal */
.admin-shell .review-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
}

.admin-shell .review-history-list li {
    border: 1px solid var(--line);
    padding: 8px 10px;
    background: var(--cream);
}

.admin-shell .review-history-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-shell .review-history-meta {
    font-size: 11.5px;
    color: var(--ink-faint);
}

.admin-shell .review-history-note {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: var(--ink-soft);
    font-style: italic;
}

.admin-shell .status.enabled {
    background: var(--sage-soft);
    color: var(--sage);
}

.admin-shell .status.enabled::before {
    background: var(--sage);
}

.admin-shell .status.inactive {
    background: var(--wheat);
    color: var(--ink-soft);
}

.admin-shell .status.inactive::before {
    background: var(--ink-faint);
}

.admin-shell .status.beginner {
    background: var(--sage-soft);
    color: var(--sage);
}

.admin-shell .status.beginner::before {
    background: var(--sage);
}

.admin-shell .status.intermediate {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.admin-shell .status.intermediate::before {
    background: var(--gold-dark);
}

.admin-shell .status.pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.admin-shell .status.pending::before {
    background: var(--warning);
}

.admin-shell .status.approved {
    background: var(--sage-soft);
    color: var(--sage);
}

.admin-shell .status.approved::before {
    background: var(--sage);
}

.admin-shell .status.retake, .admin-shell .status.returned {
    background: var(--red-soft);
    color: var(--red);
}

.admin-shell .status.retake::before, .admin-shell .status.returned::before {
    background: var(--red);
}

.admin-shell .status.expert {
    background: var(--red-soft);
    color: var(--red);
}

.admin-shell .status.expert::before {
    background: var(--red);
}

.admin-shell .status.bread {
    background: var(--wheat);
    color: var(--ink-soft);
}

.admin-shell .status.bread::before {
    background: var(--ink-faint);
}

.admin-shell .status.pastries {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.admin-shell .status.pastries::before {
    background: var(--gold-dark);
}

.admin-shell .status.cakes {
    background: var(--red-soft);
    color: var(--red);
}

.admin-shell .status.cakes::before {
    background: var(--red);
}

/* FILTER BAR */
.admin-shell .filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.admin-shell .filter-input {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 9px 14px;
    transition: border-color .15s ease;
}

.admin-shell .filter-input:focus-within {
    border-color: var(--brand-orange);
}

.admin-shell .filter-input svg {
    width: 15px;
    height: 15px;
    color: var(--ink-faint);
    flex-shrink: 0;
}

.admin-shell .filter-input input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    width: 100%;
    font-family: inherit;
    color: var(--ink);
}

.admin-shell .filter-input input::placeholder {
    color: var(--ink-faint);
}

.admin-shell .filter-select {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 9px 14px;
    font-size: 13px;
    font-family: inherit;
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s ease;
}

.admin-shell .filter-select:focus {
    border-color: var(--brand-orange);
    outline: none;
}

/* EMPTY STATE */
.admin-shell .empty-state {
    padding: 48px 20px;
    text-align: center;
    color: var(--ink-faint);
    font-size: 13.5px;
}

/* DIALOG / MODAL */
.admin-shell .dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(32, 30, 29, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Above .admin-topbar (400) — a modal must dim and disable the topbar too
       (search/notif bell/account menu), not leave it bright and clickable
       above the overlay. */
    z-index: 1000;
    animation: admin-overlay-in .15s ease;
}

.admin-shell .dialog {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: admin-dialog-in .18s ease;
}

@keyframes admin-overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes admin-dialog-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-shell .dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px 0;
}

.admin-shell .dialog-head h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.015em;
    margin-bottom: 4px;
}

.admin-shell .dialog-head p {
    font-size: 12.5px;
    color: var(--ink-soft);
}

.admin-shell .dialog-close {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    flex-shrink: 0;
}

.admin-shell .dialog-close:hover {
    background: var(--wheat);
    color: var(--ink);
}

.admin-shell .dialog-close svg {
    width: 16px;
    height: 16px;
}

.admin-shell .dialog-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-shell .field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-shell .field-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
}

/* Live count next to a checklist-builder label (Ingredients/Equipment) so
   the admin can see at a glance how many items they've filled in without
   having to scroll/count the rows themselves. */
.admin-shell .field-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: var(--radius-full);
    background: var(--wheat);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
}

.admin-shell .field-group input:not([type="checkbox"]),
.admin-shell .field-group textarea {
    font-family: inherit;
    font-size: 13.5px;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 10px 13px;
    outline: none;
    transition: border-color .15s ease;
    width: 100%;
}

.admin-shell .field-group input:not([type="checkbox"]):focus,
.admin-shell .field-group textarea:focus {
    border-color: var(--brand-orange);
}

.admin-shell .field-group textarea {
    resize: vertical;
    min-height: 80px;
}

.admin-shell .field-group .validation-message {
    font-size: 11.5px;
    color: var(--red);
}

.admin-shell .field-switch-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* SEARCHABLE LOOKUP (Reports page's Submissions-by-learner filter) */
.admin-shell .lookup-wrap {
    position: relative;
}

.admin-shell .lookup-wrap input {
    padding-right: 34px;
}

.admin-shell .lookup-clear {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
}

.admin-shell .lookup-clear:hover {
    color: var(--ink);
}

.admin-shell .lookup-clear svg {
    width: 14px;
    height: 14px;
}

.admin-shell .lookup-menu {
    position: relative;
    margin-top: 4px;
    background: var(--cream);
    border: 1px solid var(--line);
    max-height: 220px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}

.admin-shell .lookup-item {
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background .12s ease;
}

.admin-shell .lookup-item:last-child {
    border-bottom: none;
}

.admin-shell .lookup-item:hover {
    background: var(--panel);
}

.admin-shell .lookup-item .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.admin-shell .lookup-item .sub {
    font-size: 11px;
    color: var(--ink-faint);
    margin-top: 1px;
}

.admin-shell .lookup-empty {
    padding: 10px 12px;
    font-size: 12.5px;
    color: var(--ink-faint);
    text-align: center;
}

/* RICH TEXT EDITOR */
.admin-shell .rte {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--cream);
}

.admin-shell .rte-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    flex-wrap: wrap;
}

.admin-shell .rte-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-shell .rte-btn:hover {
    background: var(--wheat);
    color: var(--ink);
}

.admin-shell .rte-sep {
    width: 1px;
    height: 18px;
    background: var(--line);
    margin: 0 4px;
}

.admin-shell .rte-surface {
    min-height: 110px;
    max-height: 260px;
    overflow-y: auto;
    padding: 10px 13px;
    font-size: 13.5px;
    color: var(--ink);
    outline: none;
    line-height: 1.55;
}

.admin-shell .rte-surface:empty::before {
    content: attr(data-placeholder);
    color: var(--ink-faint);
}

.admin-shell .rte-surface ul {
    list-style: disc;
    padding-left: 20px;
}

.admin-shell .rte-surface ol {
    list-style: decimal;
    padding-left: 20px;
}

.admin-shell .rte-surface li {
    display: list-item;
}

.admin-shell .rte-surface p {
    margin: 0 0 6px;
}

/* IMAGE UPLOAD */
.admin-shell .image-upload {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-shell .image-preview {
    width: 84px;
    height: 84px;
    border-radius: var(--radius-md);
    background: var(--wheat);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.admin-shell .image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.admin-shell .image-preview svg {
    width: 26px;
    height: 26px;
    color: var(--ink-faint);
}

.admin-shell .image-upload-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.admin-shell .image-upload-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-shell .image-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.admin-shell .image-upload-hint {
    font-size: 11px;
    color: var(--ink-faint);
}

.admin-shell .module-current-file {
    font-size: 12.5px;
    color: var(--ink-soft);
    background: var(--wheat);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.admin-shell .module-file-hint {
    font-size: 11px;
    color: var(--ink-faint);
    width: 100%;
}

/* EXAM QUESTION BUILDER */
.admin-shell .question-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 12px;
}

.admin-shell .question-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-shell .question-card-head .choice-remove {
    margin-left: auto;
}

.admin-shell .question-number {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-soft);
}

.admin-shell .step-number {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--brand-orange-soft);
    color: var(--brand-orange-dark);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-shell .step-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 34px;
}

.admin-shell .step-time-row label {
    font-size: 11.5px;
    color: var(--ink-faint);
    white-space: nowrap;
}

.admin-shell .step-time-row input {
    width: 90px;
    font-size: 12.5px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
}

.admin-shell .step-time-suffix {
    font-size: 11.5px;
    color: var(--ink-faint);
}

.admin-shell .step-time-unit {
    font-size: 12.5px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    color: var(--ink);
}

.admin-shell .level-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.admin-shell .level-sub {
    font-weight: 400;
    color: var(--ink-faint);
}

.admin-shell .level-photo-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 34px;
    font-size: 12.5px;
    color: var(--ink-soft);
    cursor: pointer;
}

.admin-shell .level-photo-toggle input {
    accent-color: var(--brand-orange-dark);
    cursor: pointer;
}

/* RECIPE PREVIEW */
.admin-shell .preview-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-shell .preview-meta {
    font-size: 12.5px;
    color: var(--ink-soft);
}

.admin-shell .preview-progress {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-faint);
    white-space: nowrap;
}

.admin-shell .checklist {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-shell .checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background .15s ease;
}

.admin-shell .checklist-item:hover {
    background: var(--cream);
}

.admin-shell .checklist-item.locked {
    cursor: not-allowed;
}

.admin-shell .checklist-item.locked:hover {
    background: transparent;
}

.admin-shell .checklist-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-shell .checklist-check {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--line);
    background: var(--panel);
    flex-shrink: 0;
    margin-top: 1px;
    transition: background .15s ease, border-color .15s ease;
}

.admin-shell .checklist-item.locked .checklist-check {
    background: var(--cream);
    opacity: 0.6;
}

.admin-shell .checklist-item.checked .checklist-check {
    background: var(--ink);
    border-color: var(--ink);
}

.admin-shell .checklist-item.checked .checklist-check::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.admin-shell .checklist-text {
    flex: 1;
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.6;
}

.admin-shell .checklist-item.locked .checklist-text {
    color: var(--ink-faint);
}

.admin-shell .checklist-item.checked .checklist-text {
    color: var(--ink-faint);
    text-decoration: line-through;
}

.admin-shell .checklist-index {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--brand-orange);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 8px;
}

.admin-shell .checklist-item.locked .checklist-index {
    color: var(--ink-faint);
}

.admin-shell .checklist-timer {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.admin-shell .checklist-locked-hint {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-style: italic;
    color: var(--ink-faint);
}

/* recipe preview — frames RecipeLearnerView.razor (shared with the public
   recipe page) inside the admin shell, in the public site's own off-white
   background so it reads as "this is literally the learner's page," not an
   admin-styled reinterpretation of it */
.admin-shell .admin-recipe-preview-frame {
    /* #F3F2F2 mirrors landing.css's --color-bg — that variable isn't in scope
       out here, only inside RecipeLearnerView's own .bl-embedded root */
    background: #F3F2F2;
    border: 1px solid var(--line);
    padding: 24px 28px;
}

.admin-shell .question-points {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-shell .question-points label {
    font-size: 11.5px;
    color: var(--ink-faint);
}

.admin-shell .question-points input {
    width: 64px;
    font-size: 12.5px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
}

.admin-shell .points-total {
    float: right;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-soft);
}

.admin-shell .choice-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-shell .choice-row input[type="text"] {
    flex: 1;
}

.admin-shell .choice-row input[type="radio"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--brand-orange);
}

.admin-shell .choice-remove {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--ink-faint);
}

.admin-shell .choice-remove svg {
    width: 13px;
    height: 13px;
}

.admin-shell .choice-remove:hover {
    background: var(--wheat);
    color: var(--red);
}

.admin-shell .question-add-choice {
    align-self: flex-start;
    padding: 6px 12px;
    font-size: 12px;
}

/* Procedures builder — shows one procedure card at a time with Prev/Next +
   dots instead of stacking every card in the modal, mirroring the same
   carousel the learner sees so the admin form doesn't grow unbounded with
   the recipe's procedure count. */
.admin-shell .procedure-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-shell .procedure-carousel-nav .btn-ghost {
    padding: 6px 12px;
    font-size: 12.5px;
}

.admin-shell .procedure-carousel-nav .btn-ghost:disabled {
    opacity: 0.4;
    cursor: default;
    text-decoration: none;
}

.admin-shell .procedure-carousel-count {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
}

.admin-shell .procedure-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.admin-shell .procedure-carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: var(--line);
    cursor: pointer;
    transition: background 0.15s ease, width 0.15s ease;
}

.admin-shell .procedure-carousel-dot.active {
    width: 20px;
    background: var(--brand-orange);
}

/* Ingredients/Equipment checklist builders — capped to roughly 4 rows so a
   recipe with a long ingredient list doesn't keep growing the New/Edit
   Recipe modal's height; scrolls internally past that instead. */
.admin-shell .choice-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 192px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Marketing sample images — side-by-side row instead of one full-width
   upload block stacked per image, so 3 images don't triple the modal's
   height. Each cell keeps its own preview-above-actions layout to fit the
   narrower column. */
.admin-shell .marketing-images-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.admin-shell .marketing-image-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.admin-shell .marketing-image-cell .image-upload {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.admin-shell .marketing-image-cell .image-preview {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
}

.admin-shell .marketing-image-cell .image-upload-btn {
    width: 100%;
}

.admin-shell .switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.admin-shell .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-shell .switch-track {
    position: absolute;
    inset: 0;
    background: var(--line);
    border-radius: var(--radius-full);
    transition: background .18s ease;
    cursor: pointer;
}

.admin-shell .switch-track::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--panel);
    transition: transform .18s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.admin-shell .switch input:checked + .switch-track {
    background: var(--brand-orange);
}

.admin-shell .switch input:checked + .switch-track::before {
    transform: translateX(18px);
}

.admin-shell .dialog-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 24px 24px;
}

.admin-shell .btn-ghost {
    background: transparent;
    border: none;
    color: var(--brand-orange);
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
}

.admin-shell .btn-ghost:hover {
    color: var(--brand-orange-dark);
    text-decoration: underline;
}

.admin-shell .btn-ghost:disabled {
    color: var(--ink-faint);
    cursor: default;
    text-decoration: none;
}

.admin-shell .btn-delete {
    background: var(--red);
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
}

.admin-shell .btn-delete:hover {
    /* Was var(--gold-dark) — a red button hovering to blue. Genuine bug,
       unrelated to the orange-theme migration; darkening its own red is
       what was clearly intended. */
    background: var(--red-dark);
}

/* Bordered secondary action — for a topbar button that needs to read as a real
   button (unlike .btn-ghost, a plain-text link meant for dialog Cancel actions)
   without competing with .btn-primary's solid fill. */
.admin-shell .btn-outline {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 7px;
    transition: border-color .15s ease, color .15s ease;
}

.admin-shell .btn-outline:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.admin-shell .btn-outline svg {
    width: 15px;
    height: 15px;
}

/* PAGINATION */
.admin-shell .pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.admin-shell .pagination-info {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--ink-faint);
}

.admin-shell .pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-shell .page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-shell .page-btn svg {
    width: 15px;
    height: 15px;
}

.admin-shell .page-btn:hover:not(:disabled) {
    background: var(--wheat);
    color: var(--ink);
}

.admin-shell .page-btn.active {
    background: var(--brand-orange);
    color: #fff;
}

.admin-shell .page-btn:disabled {
    color: var(--line);
    cursor: default;
}

.admin-shell .page-ellipsis {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    font-size: 12.5px;
}

/* TOAST */
.admin-shell .admin-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    /* Above .dialog-overlay (1000) too — a save confirmation should stay visible
       even if it fires right as a modal is closing. */
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: var(--cream);
    padding: 13px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 13.5px;
    font-weight: 500;
    max-width: 360px;
    animation: admin-toast-in .2s ease;
}

.admin-shell .admin-toast.error {
    background: var(--red);
}

.admin-shell .admin-toast-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #fff;
}

.admin-shell .admin-toast.error .admin-toast-icon {
    color: var(--cream);
}

.admin-shell .admin-toast-close {
    margin-left: 4px;
    flex-shrink: 0;
    color: inherit;
    opacity: .7;
    display: flex;
}

.admin-shell .admin-toast-close:hover {
    opacity: 1;
}

.admin-shell .admin-toast-close svg {
    width: 14px;
    height: 14px;
}

@keyframes admin-toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 620px) {
    .admin-shell .admin-toast {
        left: 16px;
        right: 16px;
        top: 16px;
        max-width: none;
    }
}

.admin-shell ::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.admin-shell ::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: var(--radius-full);
}

@media (max-width: 1000px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-shell.is-collapsed {
        grid-template-columns: 1fr;
    }

    .admin-shell .menu-btn {
        display: flex;
    }

    .admin-shell .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 248px;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform .28s ease;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
    }

    .admin-shell.mobile-open .sidebar {
        transform: translateX(0);
    }

    .admin-shell.is-collapsed .sidebar {
        padding: 26px 18px;
    }

    .admin-shell.is-collapsed .brand .brand-name,
    .admin-shell.is-collapsed .brand .sub,
    .admin-shell.is-collapsed .nav-label,
    .admin-shell.is-collapsed .nav-item span:not(.count),
    .admin-shell.is-collapsed .nav-item .count,
    .admin-shell.is-collapsed .sidebar-footer .who {
        display: revert;
    }

    .admin-shell.is-collapsed .nav-item {
        justify-content: flex-start;
        padding: 9px 10px;
    }

    .admin-shell.is-collapsed .brand {
        justify-content: flex-start;
        padding: 6px 8px 26px;
    }

    .admin-shell.is-collapsed .sidebar-footer {
        justify-content: flex-start;
    }

    .admin-shell .collapse-btn {
        display: none;
    }

    .admin-shell .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(32, 30, 29, 0.5);
        z-index: 90;
        opacity: 0;
        transition: opacity .22s ease;
    }

    .admin-shell.mobile-open .sidebar-overlay {
        display: block;
        opacity: 1;
    }

    .admin-shell .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-shell .grid-2 {
        grid-template-columns: 1fr;
    }

    .admin-shell .quick-actions {
        grid-template-columns: 1fr;
    }

    .admin-shell main {
        padding: 20px;
    }

    .admin-shell .topbar {
        margin: 0 -20px 24px;
        padding: 18px 20px 14px;
    }
}

@media (max-width: 620px) {
    .admin-shell .stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell .topbar {
        gap: 12px;
    }

    .admin-shell .top-actions {
        gap: 8px;
    }

    .admin-shell .btn-primary span {
        display: none;
    }

    .admin-shell .panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-shell .tabs {
        max-width: 100%;
        overflow-x: auto;
    }

    .admin-shell .dialog-foot {
        flex-direction: column-reverse;
    }

    .admin-shell .dialog-foot button {
        width: 100%;
        justify-content: center;
    }
}

/* PROFILE / SETTINGS — header card + read/edit toggle grid, shared look with
   the learner-side profile page (Settings.razor, .bl-* equivalents there).
   Reuses .panel/.panel-head/.field-group/.image-upload for everything that
   already has a styled counterpart elsewhere in this file. */
.admin-shell .profile-page {
    max-width: 1100px;
    margin-inline: auto;
}

/* Security + Signature panels side by side, mirroring the learner-side
   .bl-settings-two-col in landing.css. */
.admin-shell .settings-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 760px) {
    .admin-shell .settings-two-col {
        grid-template-columns: 1fr;
    }
}

/* Circular icon badge on a panel-head, next to its title+subtitle — same
   convention as the learner side's .bl-settings-card-icon. */
.admin-shell .panel-head-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--brand-orange-soft);
    color: var(--brand-orange);
}

.admin-shell .panel-head-icon svg {
    width: 18px;
    height: 18px;
}

.admin-shell .panel-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-shell .panel-head-sub {
    font-size: 12.5px;
    color: var(--ink-faint);
    margin: 2px 0 0;
}

/* Bigger avatar with a ring + camera badge (replaces the old text Edit/Close
   toggle), same convention as the learner side's .bl-profile-hero-avatar. */
.admin-shell .profile-hero-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.admin-shell .profile-hero-camera-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-orange);
    color: #fff;
    border: 2px solid var(--panel);
    cursor: pointer;
}

.admin-shell .profile-hero-camera-btn svg {
    width: 13px;
    height: 13px;
}

/* Boxed, decorative-only masked password (there is no real plaintext
   password on the client to unmask) shown in Security's non-editing view —
   same convention as the learner side's .profile-password-display. */
.admin-shell .profile-password-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--wheat);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--ink-soft);
}

.admin-shell .profile-password-display svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.admin-shell .profile-password-dots {
    flex: 1;
    font-size: 15px;
    letter-spacing: 2px;
    color: var(--ink);
}

.admin-shell .settings-panel-desc {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0;
}

.admin-shell .settings-submit {
    margin-top: 8px;
}

/* Compact, pill-shaped action buttons inside profile cards — matches
   .profile-edit-btn's fully-rounded corners instead of the squarer
   var(--radius-md) the base .btn-primary/.btn-ghost use everywhere else in
   the admin console. */
.admin-shell .profile-page .btn-primary,
.admin-shell .profile-page .btn-ghost {
    border-radius: var(--radius-full);
    padding: 9px 20px;
    font-size: 13.5px;
}

.admin-shell .profile-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-shell .profile-edit-btn:hover {
    background: var(--wheat);
    border-color: var(--ink-faint);
}

.admin-shell .profile-edit-btn svg {
    width: 13px;
    height: 13px;
}

.admin-shell .profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-shell .profile-header-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--brand-orange);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    overflow: hidden;
}

.admin-shell .profile-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-shell .profile-header-info {
    flex: 1;
    min-width: 0;
}

.admin-shell .profile-header-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
}

.admin-shell .profile-header-role {
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 600;
}

.admin-shell .profile-header-edit {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.admin-shell .profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
}

.admin-shell .profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.admin-shell .profile-info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

/* Styled like a disabled input rather than plain text — matches the
   learner-side .profile-info-value's boxed look. */
.admin-shell .profile-info-value {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    overflow-wrap: break-word;
    padding: 10px 14px;
    background: var(--wheat);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

/* Signature pad — same box/border/width in both the live-drawing and
   saved-preview states, and matching the learner-side .bl-signature-* rules
   in landing.css exactly. width:100% here (not inline-block shrink-to-fit)
   so it deterministically fills the panel's full width — shrink-to-fit
   against a percentage-width canvas child is an ambiguous corner of CSS that
   resolved to a narrower width here than on the learner's card despite
   otherwise-identical rules. */
.admin-shell .bl-signature-pad-wrap,
.admin-shell .bl-signature-preview {
    width: 100%;
    margin-top: 4px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
    background: #fff;
}

.admin-shell .bl-signature-pad {
    display: block;
    width: 100%;
    height: 200px;
    touch-action: none;
    cursor: crosshair;
    border-radius: var(--radius-md);
}

.admin-shell .bl-signature-preview img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.admin-shell .bl-signature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

@media (max-width: 620px) {
    .admin-shell .profile-header {
        flex-wrap: wrap;
    }

    .admin-shell .profile-header-info {
        min-width: 140px;
    }

    .admin-shell .profile-edit-btn span {
        display: none;
    }

    .admin-shell .profile-edit-btn {
        padding: 8px;
    }

    .admin-shell .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-shell .bl-signature-pad,
    .admin-shell .bl-signature-preview img {
        height: 140px;
    }

    /* .panel-head normally drops to a stacked column at this width (below,
       @media 620px) to fit a heavier title+action row on wide admin panels —
       inside the profile page that stacks the (now icon-only) Edit button
       under a still full-size h3 instead of keeping both on one line.
       Shrinking the heading and forcing the row back keeps them together. */
    .admin-shell .profile-page .panel-head {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }

    .admin-shell .profile-page .panel-head h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .admin-shell main {
        padding: 14px;
    }

    .admin-shell .topbar {
        margin: 0 -14px 20px;
        padding: 14px 14px 12px;
    }

    .admin-shell .panel {
        padding: 16px;
        border-radius: var(--radius-lg);
    }

    .admin-shell .stat-card {
        padding: 16px;
    }

    .admin-shell .dialog-body {
        padding: 16px;
    }

    .admin-shell .dialog-head {
        padding: 18px 16px 0;
    }

    .admin-shell .dialog-foot {
        padding: 14px 16px 18px;
    }

    .admin-shell .image-upload {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-shell .marketing-images-row {
        grid-template-columns: 1fr;
    }

    .admin-shell .choice-row {
        flex-wrap: wrap;
    }

    .admin-shell .question-card-head {
        flex-wrap: wrap;
    }
}
