@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

:root {
    --nh-sidebar-closed: 72px;
    --nh-sidebar-open: 236px;
    --nh-top-nav-height: 72px;
    --nh-top-nav-gap: 14px;
    --nh-page-max: 1460px;
    --nh-page-gutter: 22px;
    --nh-brand: #2f1c4e;
    --nh-brand-soft: #432f64;
    --nh-accent: #41276a;
    --nh-accent-light: #e8ddff;
    --nh-border: #e3d9ee;
    --nh-subnav-bg: #fbf8ff;
    --nh-subnav-border: #e7d8f2;
    --nh-top-nav-bg: linear-gradient(180deg, #ffffff 0%, #faf6ff 100%);
    --nh-top-nav-tab-bg: #f6f1ff;
    --nh-top-nav-tab-border: #dfcffa;
    --nh-top-nav-tab-active-bg: #efe4ff;
    --nh-top-nav-tab-active-border: #ccb0f5;
    --nh-top-nav-border: #e3d7f3;
    --nh-subnav-chip-bg: #fff;
    --nh-subnav-chip-border: #e6d9ef;
    --nh-subnav-chip-active-bg: #e8ddff;
    --nh-subnav-chip-active-border: #d3bbec;
    --nh-surface: #ffffff;
    --nh-frame: #fbf7ff;
    --nh-text: #302a3a;
    --nh-muted: #746986;
    --nh-frame-gutter: 8px;
    --nh-shadow-1: 0 10px 32px rgba(54, 35, 92, 0.08);
    --nh-shadow-2: 0 4px 18px rgba(54, 35, 92, 0.06);
}

body.nh-admin-shell {
    margin: 0;
    background: #f5f2fb;
    color: var(--nh-text);
    font-family: Inter, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

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

body.nh-admin-shell a {
    color: inherit;
}

body.nh-admin-shell .nh-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    width: var(--nh-sidebar-closed);
    background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
    border-right: 1px solid var(--nh-border);
    box-shadow: 2px 0 24px rgba(52, 35, 95, 0.09);
    padding: 8px 0;
    overflow: hidden;
    transition: width 0.2s ease;
    display: flex;
    flex-direction: column;
}

body.nh-admin-shell .nh-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0, var(--nh-border) 18%, var(--nh-border) 82%, transparent 100%);
    pointer-events: none;
}

body.nh-admin-shell .nh-sidebar:hover,
body.nh-admin-shell .nh-sidebar:focus-within {
    width: var(--nh-sidebar-open);
}

body.nh-admin-shell .nh-sidebar-logo,
body.nh-admin-shell .nh-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: var(--nh-text);
    text-decoration: none;
    white-space: nowrap;
    border-left: 3px solid transparent;
    border-radius: 9px 0 0 9px;
}

body.nh-admin-shell .nh-sidebar-logo {
    margin: 0 10px 8px;
    padding: 0 12px;
    border-bottom: 1px solid var(--nh-border);
    font-weight: 800;
    letter-spacing: 0.01em;
}

body.nh-admin-shell .nh-sidebar-logo-mark {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex: 0 0 38px;
}

body.nh-admin-shell .nh-sidebar-logo-text,
body.nh-admin-shell .nh-sidebar-link .nh-sidebar-label {
    font-size: 0.95rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.17s ease, transform 0.17s ease;
}

body.nh-admin-shell .nh-sidebar:hover .nh-sidebar-logo-text,
body.nh-admin-shell .nh-sidebar:focus-within .nh-sidebar-logo-text,
body.nh-admin-shell .nh-sidebar:hover .nh-sidebar-link .nh-sidebar-label,
body.nh-admin-shell .nh-sidebar:focus-within .nh-sidebar-link .nh-sidebar-label {
    opacity: 1;
    transform: translateX(0);
}

body.nh-admin-shell .nh-sidebar-link {
    margin: 6px 8px;
    padding: 0 12px;
    border-radius: 9px;
    font-weight: 700;
}

body.nh-admin-shell .nh-sidebar-link i,
body.nh-admin-shell .nh-sidebar-icon {
    width: 24px;
    flex: 0 0 24px;
    text-align: center;
    color: #68408f;
}

body.nh-admin-shell .nh-sidebar-link:hover,
body.nh-admin-shell .nh-sidebar-link:focus-visible {
    background: var(--nh-accent-light);
    border-color: var(--nh-brand);
    border-left-color: #b28de4;
}

body.nh-admin-shell .nh-sidebar-link.active {
    background: var(--nh-accent-light);
    color: var(--nh-brand);
    border-left-color: var(--nh-accent);
}

body.nh-admin-shell .nh-sidebar-bottom-divider {
    flex: 1 1 auto;
    min-height: 14px;
    margin: 10px 14px 8px;
    border-bottom: 2px solid #d8c1f3;
}

body.nh-admin-shell .nh-sidebar-bottom-link:last-child {
    margin-bottom: 12px;
}

body.nh-admin-shell .nh-top-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--nh-sidebar-closed);
    z-index: 900;
    min-height: var(--nh-top-nav-height);
    padding: 10px 16px;
    background: var(--nh-top-nav-bg);
    border-bottom: 1px solid var(--nh-top-nav-border);
    box-shadow: 0 10px 28px rgba(35, 24, 66, 0.08);
    box-sizing: border-box;
    display: block;
    gap: 12px;
    transition: left 0.2s ease;
}

body.nh-admin-shell .nh-sidebar:hover ~ .nh-top-nav,
body.nh-admin-shell .nh-sidebar:focus-within ~ .nh-top-nav {
    left: var(--nh-sidebar-open);
}

body.nh-admin-shell .nh-top-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nh-top-nav-gap);
    min-height: 54px;
}

body.nh-admin-shell .nh-top-nav-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

body.nh-admin-shell .nh-top-title-wrap {
    display: grid;
    min-width: 176px;
    line-height: 1.12;
    align-content: center;
}

body.nh-admin-shell .nh-top-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--nh-brand);
    margin: 0 0 2px;
    letter-spacing: 0.01em;
}

body.nh-admin-shell .nh-top-subtitle {
    margin: 2px 0 0;
    color: #6e5e82;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.nh-admin-shell .nh-top-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    margin-top: 3px;
    padding: 4px;
    border: 1px solid var(--nh-top-nav-tab-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 14px rgba(42, 26, 80, 0.07);
}

body.nh-admin-shell .nh-top-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 9px;
    color: #43325f;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    border: 1px solid #e7ddf5;
    background: var(--nh-top-nav-tab-bg);
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

body.nh-admin-shell .nh-top-tab i,
body.nh-admin-shell .nh-top-tab-icon {
    color: #704aa2;
    font-size: 0.88rem;
}

body.nh-admin-shell .nh-top-tab:hover,
body.nh-admin-shell .nh-top-tab:focus-visible {
    transform: translateY(-1px);
    background: #f8f2ff;
    border-color: #c7aef0;
}

body.nh-admin-shell .nh-top-tab.active {
    background: var(--nh-top-nav-tab-active-bg);
    color: var(--nh-brand);
    border-color: var(--nh-top-nav-tab-active-border);
    box-shadow: 0 6px 16px rgba(52, 35, 95, 0.16);
}

body.nh-admin-shell .nh-top-tab.active i,
body.nh-admin-shell .nh-top-tab.active .nh-top-tab-icon {
    color: var(--nh-brand);
}

body.nh-admin-shell .nh-profile-menu {
    position: relative;
    flex: 0 0 auto;
}

body.nh-admin-shell .nh-profile-trigger {
    position: relative;
    height: 40px;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--nh-subnav-border);
    border-radius: 9px;
    color: var(--nh-text) !important;
    background: #fff !important;
    cursor: pointer !important;
    font-weight: 700;
    box-shadow: 0 1px 6px rgba(36, 24, 55, 0.06);
}

body.nh-admin-shell .nh-profile-trigger i,
body.nh-admin-shell .nh-profile-icon {
    color: var(--nh-accent);
    font-size: 1.08rem;
}

body.nh-admin-shell .nh-profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    border: 1px solid var(--nh-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(32, 21, 57, 0.2);
    padding: 8px;
    display: none;
}

body.nh-admin-shell .nh-profile-menu:hover .nh-profile-dropdown,
body.nh-admin-shell .nh-profile-menu:focus-within .nh-profile-dropdown {
    display: grid;
    gap: 4px;
}

body.nh-admin-shell .nh-page-subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

body.nh-admin-shell .nh-page-subnav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 8px;
    border: 1px solid #e6ddf0;
    background: #fff;
    color: #43325f;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

body.nh-admin-shell .nh-page-subnav a:hover,
body.nh-admin-shell .nh-page-subnav a:focus-visible {
    background: #f3eaff;
    border-color: #d4bbec;
}

body.nh-admin-shell .nh-profile-dropdown strong,
body.nh-admin-shell .nh-profile-dropdown small {
    display: block;
    padding: 2px 9px;
}

body.nh-admin-shell .nh-profile-dropdown small {
    color: var(--nh-muted);
}

body.nh-admin-shell .nh-profile-dropdown a {
    display: block;
    padding: 8px 10px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--nh-text);
    font-weight: 600;
}

body.nh-admin-shell .nh-profile-dropdown a:hover,
body.nh-admin-shell .nh-profile-dropdown a:focus-visible {
    background: #f5f0ff;
}

body.nh-admin-shell .app-container,
body.nh-admin-shell .content-area,
body.nh-admin-shell > .container {
    position: relative;
    width: calc(100% - var(--nh-sidebar-closed));
    max-width: var(--nh-page-max);
    margin: 0 auto;
    padding: calc(var(--nh-top-nav-height) + 16px) var(--nh-page-gutter) 28px calc(var(--nh-sidebar-closed) + var(--nh-page-gutter));
    box-sizing: border-box;
    transition: width 0.2s ease, padding-left 0.2s ease;
}

body.nh-admin-shell .nh-sidebar:hover ~ .app-container,
body.nh-admin-shell .nh-sidebar:focus-within ~ .app-container,
body.nh-admin-shell .nh-sidebar:hover ~ .content-area,
body.nh-admin-shell .nh-sidebar:focus-within ~ .content-area,
body.nh-admin-shell .nh-sidebar:hover ~ .container,
body.nh-admin-shell .nh-sidebar:focus-within ~ .container {
    width: calc(100% - var(--nh-sidebar-open));
    padding-left: calc(var(--nh-sidebar-open) + var(--nh-page-gutter));
}

body.nh-admin-shell .welcome-bar,
body.nh-admin-shell .menu-bar {
    display: none !important;
}

body.nh-admin-shell .content-container,
body.nh-admin-shell #student-details-view,
body.nh-admin-shell .search-container,
body.nh-admin-shell .results-container,
body.nh-admin-shell .profile-section,
body.nh-admin-shell .form-card,
body.nh-admin-shell .course-grid,
body.nh-admin-shell .edit-form-container,
body.nh-admin-shell .content-body,
body.nh-admin-shell .list-controls,
body.nh-admin-shell .curriculum-section,
body.nh-admin-shell .content-card,
body.nh-admin-shell .student-tab-content,
body.nh-admin-shell .tab-content,
body.nh-admin-shell .course-list-container {
    position: relative;
    background: var(--nh-surface);
    border: 1px solid var(--nh-border);
    border-radius: 12px;
    box-shadow: var(--nh-shadow-2);
}

body.nh-admin-shell .form-card {
    background: #fff;
}

body.nh-admin-shell .content-container,
body.nh-admin-shell .course-list-container,
body.nh-admin-shell .edit-form-container {
    padding: 18px;
}

body.nh-admin-shell .search-container,
body.nh-admin-shell .results-container,
body.nh-admin-shell .profile-section,
body.nh-admin-shell .form-card {
    margin-bottom: 18px;
    padding: 16px;
}

body.nh-admin-shell .app-container > * + *:not(script):not(style),
body.nh-admin-shell > .container > * + *:not(script):not(style) {
    margin-top: 18px;
}

body.nh-admin-shell .header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body.nh-admin-shell .header h1,
body.nh-admin-shell .header h2,
body.nh-admin-shell .header h3 {
    margin: 0;
}

body.nh-admin-shell h1,
body.nh-admin-shell h2,
body.nh-admin-shell h3,
body.nh-admin-shell h4 {
    color: var(--nh-brand);
    margin-top: 0;
    letter-spacing: 0;
}

body.nh-admin-shell .search-row,
body.nh-admin-shell .student-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

body.nh-admin-shell .search-row {
    margin: 0;
}

body.nh-admin-shell .search-row .form-group {
    margin-bottom: 0;
}

body.nh-admin-shell #search-input,
body.nh-admin-shell #student-search-input {
    flex: 1 1 260px;
    min-height: 34px;
}

body.nh-admin-shell .nh-shell-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

body.nh-admin-shell .nh-shell-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 980px) {
    body.nh-admin-shell .nh-shell-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.nh-admin-shell input,
body.nh-admin-shell select,
body.nh-admin-shell textarea,
body.nh-admin-shell button,
body.nh-admin-shell .button,
body.nh-admin-shell .btn-primary,
body.nh-admin-shell .btn-secondary,
body.nh-admin-shell .btn-danger {
    font: inherit;
}

body.nh-admin-shell input,
body.nh-admin-shell select,
body.nh-admin-shell textarea {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px 10px;
    min-height: 34px;
    background: #fff;
    color: var(--nh-text);
}

body.nh-admin-shell .button,
body.nh-admin-shell .btn-primary,
body.nh-admin-shell .btn-secondary,
body.nh-admin-shell .btn-danger {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 9px 14px;
    min-height: 34px;
    color: #fff !important;
    background: var(--nh-accent);
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.12s ease, background-color 0.12s ease;
}

body.nh-admin-shell button {
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

body.nh-admin-shell button,
body.nh-admin-shell input,
body.nh-admin-shell select,
body.nh-admin-shell textarea {
    font: inherit;
    font-size: 0.95rem;
}

body.nh-admin-shell .button,
body.nh-admin-shell .btn-primary,
body.nh-admin-shell .btn-secondary,
body.nh-admin-shell .btn-danger,
body.nh-admin-shell .add-button,
body.nh-admin-shell .account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.nh-admin-shell .button:hover,
body.nh-admin-shell .btn-primary:hover,
body.nh-admin-shell .btn-secondary:hover,
body.nh-admin-shell .btn-danger:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

body.nh-admin-shell .btn-secondary,
body.nh-admin-shell .button.button-secondary {
    background: #6c757d;
    color: #fff;
}

body.nh-admin-shell .btn-danger,
body.nh-admin-shell .button.delete {
    background: #d93a4d;
}

body.nh-admin-shell .button-secondary:hover,
body.nh-admin-shell .btn-secondary:hover {
    background: #5a6268;
}

body.nh-admin-shell .btn-danger:hover {
    background: #c82333;
}

body.nh-admin-shell table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

body.nh-admin-shell th,
body.nh-admin-shell td {
    padding: 12px;
    border-bottom: 1px solid #eee6f2;
    text-align: left;
    vertical-align: top;
}

body.nh-admin-shell th {
    background: #f6f2fb;
    color: #45345d;
    font-weight: 700;
}

body.nh-admin-shell tr:hover td {
    background: #faf8ff;
}

body.nh-admin-shell .course-controls,
body.nh-admin-shell .list-controls,
body.nh-admin-shell .form-row,
body.nh-admin-shell .info-row,
body.nh-admin-shell .student-controls,
body.nh-admin-shell .details-header-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

body.nh-admin-shell .course-controls,
body.nh-admin-shell .student-controls,
body.nh-admin-shell .details-header-controls {
    margin-bottom: 14px;
}

body.nh-admin-shell .form-card .form-row {
    gap: 14px;
}

body.nh-admin-shell .form-group {
    margin-bottom: 12px;
}

body.nh-admin-shell .form-section {
    border-top: 1px solid #ede3f4;
    padding-top: 12px;
    margin-top: 12px;
}

body.nh-admin-shell .form-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

body.nh-admin-shell .section-title {
    margin-top: 0;
    margin-bottom: 12px;
}

body.nh-admin-shell label,
body.nh-admin-shell .form-label {
    color: #44325e;
    font-weight: 700;
}

body.nh-admin-shell .alert,
body.nh-admin-shell .message-container {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 9px;
    border: 1px solid #eadff2;
    background: #f8f3ff;
    color: #49315b;
}

body.nh-admin-shell .alert.success,
body.nh-admin-shell .message.success,
body.nh-admin-shell .alert-success {
    background: #ebfbf1;
    border-color: #a7e4c1;
    color: #195c34;
}

body.nh-admin-shell .alert-danger,
body.nh-admin-shell .message.error,
body.nh-admin-shell .message-container .message.error {
    background: #fde8ea;
    border-color: #ffd0d7;
    color: #8a2030;
}

body.nh-admin-shell .message.success,
body.nh-admin-shell .alert-success,
body.nh-admin-shell .message-container .message.success {
    background: #ebfbf1;
    border-color: #a7e4c1;
    color: #195c34;
}

body.nh-admin-shell .results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body.nh-admin-shell .results-header h2 {
    margin: 0;
}

body.nh-admin-shell .data-table th,
body.nh-admin-shell .data-table thead th {
    background: #f6f2fb;
    color: #45345d;
    font-weight: 700;
}

body.nh-admin-shell .data-table td,
body.nh-admin-shell .data-table th {
    line-height: 1.35;
}

body.nh-admin-shell .hidden {
    display: none !important;
}

body.nh-admin-shell .curriculum-section,
body.nh-admin-shell .course-list-container {
    background: linear-gradient(180deg, #ffffff 0%, #fbf7ff 100%);
}

body.nh-admin-shell .lecture-content-area,
body.nh-admin-shell .course-content-area {
    background: #fff;
    border: 1px solid var(--nh-border);
    border-radius: 12px;
    box-shadow: var(--nh-shadow-2);
    padding: 16px;
}

body.nh-admin-shell .nh-top-tab[disabled],
body.nh-admin-shell .nh-top-tab.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* OmOffice-aligned admin shell pass. Keep this late in the file so older
   page-level styles inherit the same sidebar, top bar, and content geometry. */
body.nh-admin-shell {
    --nh-sidebar-closed: 70px;
    --nh-sidebar-open: 240px;
    --nh-top-nav-height: 50px;
    --nh-viewport-height: 100vh;
    --nh-page-max: 1440px;
    --nh-page-gutter: 20px;
    --nh-brand: #4B0082;
    --nh-brand-soft: #6a0dad;
    --nh-border: #cccccc;
    margin: 0;
    padding: 0;
    background: #f4f6f9;
    color: #302a3a;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

body.nh-admin-shell .nh-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    width: var(--nh-sidebar-closed);
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 0;
    background: #f0f0f0;
    border-right: 0;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: hidden;
    transition: width 0.3s ease;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
}

@supports (height: 100dvh) {
    body.nh-admin-shell .nh-sidebar {
        height: auto;
        max-height: none;
    }
}

body.nh-admin-shell .nh-sidebar::after {
    content: '';
    position: absolute;
    top: calc(var(--nh-top-nav-height) - 3px);
    right: 0;
    width: 3px;
    height: calc(100% - var(--nh-top-nav-height) + 3px);
    background: #d8c9e8;
    pointer-events: none;
}

body.nh-admin-shell .nh-sidebar:hover,
body.nh-admin-shell .nh-sidebar:focus-within {
    width: var(--nh-sidebar-open);
}

body.nh-admin-shell .nh-sidebar-logo {
    position: relative;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 6px;
    min-height: 70px;
    margin: 0 0 10px;
    padding: 10px 8px;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

body.nh-admin-shell .nh-sidebar-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: calc(var(--nh-sidebar-bottom-height, 0px) + 16px);
    scrollbar-width: none;
}

body.nh-admin-shell .nh-sidebar-main::-webkit-scrollbar {
    display: none;
}

body.nh-admin-shell .nh-sidebar-bottom {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 11;
    width: var(--nh-sidebar-closed);
    flex: 0 0 auto;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: #f0f0f0;
    transition: width 0.3s ease;
}

body.nh-admin-shell .nh-sidebar-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    background: #d8c9e8;
    pointer-events: none;
}

body.nh-admin-shell .nh-sidebar:hover .nh-sidebar-bottom,
body.nh-admin-shell .nh-sidebar:focus-within .nh-sidebar-bottom {
    width: var(--nh-sidebar-open);
}

body.nh-admin-shell .nh-sidebar-logo-mark {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    object-fit: contain;
}

body.nh-admin-shell .nh-sidebar-logo-text {
    margin-left: 0;
    color: #4B0082;
    font-size: 1.32rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.18;
    overflow: hidden;
    padding-bottom: 2px;
    max-width: 0;
    white-space: nowrap;
}

body.nh-admin-shell .nh-sidebar-logo-text strong {
    font-weight: 800;
}

body.nh-admin-shell .nh-sidebar-logo-text,
body.nh-admin-shell .nh-mobile-drawer-wordmark {
    color: #15110d;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: 0;
}

body.nh-admin-shell .nh-sidebar-logo-text strong,
body.nh-admin-shell .nh-mobile-drawer-wordmark strong {
    color: #15110d;
    font-style: normal;
    font-weight: 700;
}

body.nh-admin-shell .nh-sidebar-logo-text .nh-wordmark-healing,
body.nh-admin-shell .nh-mobile-drawer-wordmark .nh-wordmark-healing {
    color: #a9761a;
    font-style: italic;
    font-weight: 400;
}

body.nh-admin-shell .nh-sidebar-icon,
body.nh-admin-shell .nh-top-tab-icon,
body.nh-admin-shell .nh-profile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

body.nh-admin-shell .nh-sidebar-icon svg,
body.nh-admin-shell .nh-top-tab-icon svg,
body.nh-admin-shell .nh-profile-icon svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.nh-admin-shell .nh-sidebar-link {
    flex: 0 0 auto;
    min-height: 56px;
    margin: 7px 8px;
    padding: 0 18px;
    gap: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #333;
    font-weight: 700;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

body.nh-admin-shell .nh-sidebar-link i,
body.nh-admin-shell .nh-sidebar-icon {
    width: 30px;
    flex: 0 0 30px;
    margin-right: 15px;
    color: #4B0082;
    font-size: 1.2em;
    transition: transform 0.18s ease;
}

body.nh-admin-shell .nh-sidebar:not(:hover):not(:focus-within) .nh-sidebar-icon {
    transform: translateX(-3px);
}

body.nh-admin-shell .nh-sidebar:not(:hover):not(:focus-within) .nh-sidebar-link.active {
    background: transparent;
    box-shadow: none;
}

body.nh-admin-shell .nh-sidebar:not(:hover):not(:focus-within) .nh-sidebar-link.active .nh-sidebar-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    margin-left: -4px;
    margin-right: 7px;
    border-radius: 8px;
    background: #e6dcff;
    color: #4B0082;
    box-shadow: inset 0 0 0 2px #d5c2ff;
}

body.nh-admin-shell .nh-sidebar-logo-text,
body.nh-admin-shell .nh-sidebar-link .nh-sidebar-label {
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, max-width 0.25s ease;
    transition-delay: 0.1s;
}

body.nh-admin-shell .nh-sidebar:hover .nh-sidebar-logo-text,
body.nh-admin-shell .nh-sidebar:focus-within .nh-sidebar-logo-text,
body.nh-admin-shell .nh-sidebar:hover .nh-sidebar-link .nh-sidebar-label,
body.nh-admin-shell .nh-sidebar:focus-within .nh-sidebar-link .nh-sidebar-label {
    opacity: 1;
    visibility: visible;
    transform: none;
}

body.nh-admin-shell .nh-sidebar:hover .nh-sidebar-logo-text,
body.nh-admin-shell .nh-sidebar:focus-within .nh-sidebar-logo-text {
    max-width: 174px;
}

body.nh-admin-shell .nh-sidebar-link:hover,
body.nh-admin-shell .nh-sidebar-link:focus-visible,
body.nh-admin-shell .nh-sidebar:hover .nh-sidebar-link.active,
body.nh-admin-shell .nh-sidebar:focus-within .nh-sidebar-link.active {
    background: #e6dcff;
    color: #4B0082;
    box-shadow: inset 0 0 0 2px #d5c2ff;
}

body.nh-admin-shell .nh-sidebar-link.active {
    color: #4B0082;
}

body.nh-admin-shell .nh-sidebar-bottom-divider {
    flex: 0 0 auto;
    min-height: 0;
    margin: 10px 14px 8px;
}

body.nh-admin-shell .nh-top-nav {
    left: var(--nh-sidebar-closed);
    z-index: 5;
    height: var(--nh-top-nav-height);
    min-height: 0;
    padding: 0;
    background: #f0f0f0;
    border-bottom: 3px solid #d8c9e8;
    border-image: none;
    box-shadow: none;
    overflow: visible;
    transition: left 0.3s ease;
}

body.nh-admin-shell .nh-sidebar:hover ~ .nh-top-nav,
body.nh-admin-shell .nh-sidebar:focus-within ~ .nh-top-nav {
    left: var(--nh-sidebar-open);
}

body.nh-admin-shell .nh-top-nav-inner,
body.nh-admin-shell .nh-top-nav-main,
body.nh-admin-shell .nh-top-tabs {
    height: 100%;
    min-height: 0;
}

body.nh-admin-shell .nh-top-nav-inner,
body.nh-admin-shell .nh-top-nav-main {
    gap: 0;
}

body.nh-admin-shell .nh-top-title-wrap {
    display: none;
}

body.nh-admin-shell .nh-top-tabs {
    position: relative;
    gap: 0;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    align-items: center;
    --nh-pill-x: 10px;
    --nh-pill-w: 0px;
}

body.nh-admin-shell .nh-top-pill {
    position: absolute;
    z-index: 0;
    left: 0;
    top: 50%;
    width: var(--nh-pill-w);
    height: 36px;
    border: 1px solid #d5c2ff;
    border-radius: 9px;
    background: #e6dcff;
    box-shadow: 0 2px 8px rgba(75, 0, 130, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(var(--nh-pill-x), -50%, 0);
    transition: transform 0.28s ease, width 0.28s ease, opacity 0.16s ease;
}

body.nh-admin-shell .nh-top-tabs.is-pill-ready .nh-top-pill {
    opacity: 1;
}

body.nh-admin-shell .nh-top-tab {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1;
    --nh-tab-collapsed-w: 46px;
    --nh-tab-expanded-w: 46px;
    flex: 0 0 var(--nh-tab-collapsed-w);
    width: var(--nh-tab-collapsed-w);
    height: 36px;
    min-height: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #333;
    font-size: 0.9em;
    font-weight: 700;
    min-width: 0;
    gap: 0;
    overflow: hidden;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    transition: flex-basis 0.24s ease, width 0.24s ease, color 0.2s ease, padding 0.24s ease, gap 0.2s ease;
}

body.nh-admin-shell .nh-top-tab-label {
    display: block;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 0.24s ease, opacity 0.18s ease;
}

body.nh-admin-shell .nh-top-tab i,
body.nh-admin-shell .nh-top-tab-icon {
    color: #4B0082;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    font-size: 1.4em;
    line-height: 1;
    transform: translateX(-2px);
    transition: transform 0.2s ease;
}

body.nh-admin-shell .nh-top-tab-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

body.nh-admin-shell .nh-top-tab:hover,
body.nh-admin-shell .nh-top-tab:focus-visible,
body.nh-admin-shell .nh-top-tab.is-previewed,
body.nh-admin-shell .nh-top-tab.active {
    flex-basis: var(--nh-tab-expanded-w);
    width: var(--nh-tab-expanded-w);
    background: transparent;
    border-color: transparent;
    border-radius: 9px;
    box-shadow: none;
    color: #4B0082;
    transform: none;
    gap: 8px;
    padding: 0 14px;
}

body.nh-admin-shell .nh-top-tab:hover .nh-top-tab-label,
body.nh-admin-shell .nh-top-tab:focus-visible .nh-top-tab-label,
body.nh-admin-shell .nh-top-tab.is-previewed .nh-top-tab-label,
body.nh-admin-shell .nh-top-tab.active .nh-top-tab-label {
    max-width: 180px;
    opacity: 1;
}

body.nh-admin-shell .nh-top-tabs.nh-top-tabs-always-expanded .nh-top-tab {
    flex-basis: var(--nh-tab-expanded-w);
    width: var(--nh-tab-expanded-w);
    gap: 8px;
    padding: 0 14px;
}

body.nh-admin-shell .nh-top-tabs.nh-top-tabs-always-expanded .nh-top-tab-label {
    max-width: 180px;
    opacity: 1;
}

body.nh-admin-shell .nh-top-tabs.nh-top-tabs-always-expanded .nh-top-tab-icon {
    transform: translateX(0);
}

body.nh-admin-shell .nh-top-tab.active {
    color: #4B0082;
}

body.nh-admin-shell .nh-top-tab.active.is-previewed,
body.nh-admin-shell .nh-top-tab.active:hover,
body.nh-admin-shell .nh-top-tab.active:focus-visible {
    padding: 0 14px;
}

body.nh-admin-shell .nh-top-tab:hover .nh-top-tab-icon,
body.nh-admin-shell .nh-top-tab:focus-visible .nh-top-tab-icon,
body.nh-admin-shell .nh-top-tab.is-previewed .nh-top-tab-icon,
body.nh-admin-shell .nh-top-tab.active .nh-top-tab-icon {
    transform: translateX(0);
}

body.nh-admin-shell .nh-profile-menu {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

body.nh-admin-shell .nh-profile-trigger {
    height: 34px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #ddd;
    border-radius: 17px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

body.nh-admin-shell .nh-profile-icon {
    color: #4B0082;
    font-size: 1.08rem;
}

.nh-floating-action,
body.nh-admin-shell .nh-floating-action,
body.nh-admin-shell .student-floating-action {
    position: fixed !important;
    right: 28px;
    bottom: 28px;
    z-index: 850;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #4B0082 !important;
    color: #fff !important;
    font-size: 2rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(75, 0, 130, 0.28);
    cursor: pointer !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.nh-floating-action:hover,
.nh-floating-action:focus-visible,
body.nh-admin-shell .nh-floating-action:hover,
body.nh-admin-shell .nh-floating-action:focus-visible,
body.nh-admin-shell .student-floating-action:hover,
body.nh-admin-shell .student-floating-action:focus-visible {
    transform: translateY(-2px);
    background: #5f10a0 !important;
    box-shadow: 0 16px 34px rgba(75, 0, 130, 0.34);
    outline: none !important;
}

body.nh-admin-shell .modal-overlay,
body.nh-admin-shell .student-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-width: 100vw !important;
    min-height: 100dvh !important;
    z-index: 2147483000 !important;
    box-sizing: border-box !important;
    transform: none !important;
}

#nh-modal-root {
    position: relative;
    z-index: 2147483000;
}

.toast-notification,
.student-toast-region,
.amb-toast {
    z-index: 2147483647 !important;
}

body.nh-admin-shell .modal-overlay.active,
body.nh-admin-shell .student-modal-overlay.active {
    display: flex !important;
}

body.nh-admin-shell.nh-modal-open {
    overflow: hidden !important;
}

body.nh-admin-shell .app-container,
body.nh-admin-shell .content-area,
body.nh-admin-shell > .container {
    width: auto;
    max-width: var(--nh-page-max);
    margin: 0 auto;
    padding: calc(var(--nh-top-nav-height) + 20px) var(--nh-page-gutter) 28px calc(var(--nh-sidebar-closed) + var(--nh-page-gutter));
    transition: padding-left 0.3s ease;
}

body.nh-admin-shell .nh-sidebar:hover ~ .app-container,
body.nh-admin-shell .nh-sidebar:focus-within ~ .app-container,
body.nh-admin-shell .nh-sidebar:hover ~ .content-area,
body.nh-admin-shell .nh-sidebar:focus-within ~ .content-area,
body.nh-admin-shell .nh-sidebar:hover ~ .container,
body.nh-admin-shell .nh-sidebar:focus-within ~ .container {
    width: auto;
    padding-left: calc(var(--nh-sidebar-open) + var(--nh-page-gutter));
}

body.nh-admin-shell .content-container,
body.nh-admin-shell #student-details-view,
body.nh-admin-shell .search-container,
body.nh-admin-shell .results-container,
body.nh-admin-shell .profile-section,
body.nh-admin-shell .form-card,
body.nh-admin-shell .course-grid,
body.nh-admin-shell .edit-form-container,
body.nh-admin-shell .content-body,
body.nh-admin-shell .list-controls,
body.nh-admin-shell .curriculum-section,
body.nh-admin-shell .content-card,
body.nh-admin-shell .student-tab-content,
body.nh-admin-shell .tab-content,
body.nh-admin-shell .course-list-container {
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 920px) {
    body.nh-admin-shell .nh-sidebar {
        width: 62px;
    }

    body.nh-admin-shell .nh-top-nav {
        left: 62px;
        padding: 10px 10px;
    }

    body.nh-admin-shell .nh-top-title-wrap {
        display: none;
    }

    body.nh-admin-shell .nh-top-tabs {
        gap: 6px;
    }

    body.nh-admin-shell .nh-top-tab .nh-top-tab-label,
    body.nh-admin-shell .nh-profile-trigger .nh-profile-label {
        display: none;
    }

    body.nh-admin-shell .app-container,
    body.nh-admin-shell .content-area,
    body.nh-admin-shell > .container,
    body.nh-admin-shell .nh-sidebar:hover ~ .app-container,
    body.nh-admin-shell .nh-sidebar:focus-within ~ .app-container,
    body.nh-admin-shell .nh-sidebar:hover ~ .content-area,
    body.nh-admin-shell .nh-sidebar:focus-within ~ .content-area,
    body.nh-admin-shell .nh-sidebar:hover ~ .container,
    body.nh-admin-shell .nh-sidebar:focus-within ~ .container {
        width: calc(100% - 62px);
        padding-left: 76px;
        padding-right: 10px;
    }
}

body.nh-admin-shell .nh-top-tabs.nh-top-tabs-single {
    min-width: 136px;
}

body.nh-admin-shell .nh-top-tabs.nh-top-tabs-single .nh-top-tab {
    --nh-tab-collapsed-w: 126px;
    --nh-tab-expanded-w: 126px;
    flex: 0 0 auto;
    width: auto;
    min-width: 126px;
    gap: 8px;
    padding: 0 12px;
    justify-content: flex-start;
}

body.nh-admin-shell .nh-top-tabs.nh-top-tabs-single .nh-top-tab-label {
    display: block;
    max-width: 220px;
    opacity: 1;
}

body.nh-admin-shell .nh-top-tabs.nh-top-tabs-single .nh-top-tab-icon {
    transform: translateX(0);
}

body.nh-admin-shell .nh-mobile-shell {
    display: none;
}

body.nh-admin-shell.nh-phone-shell {
    --nh-mobile-safe-top: env(safe-area-inset-top, 0px);
    --nh-mobile-header-content-height: 62px;
    --nh-mobile-header-height: calc(var(--nh-mobile-header-content-height) + var(--nh-mobile-safe-top));
    overflow-x: hidden;
}

body.nh-admin-shell.nh-phone-shell.nh-ios-app-shell {
    --nh-mobile-safe-top: max(env(safe-area-inset-top, 0px), 44px);
}

body.nh-admin-shell.nh-phone-shell button,
body.nh-admin-shell.nh-phone-shell input,
body.nh-admin-shell.nh-phone-shell select,
body.nh-admin-shell.nh-phone-shell textarea,
body.nh-admin-shell.nh-phone-shell a {
    touch-action: manipulation;
}

body.nh-admin-shell.nh-phone-shell input,
body.nh-admin-shell.nh-phone-shell select,
body.nh-admin-shell.nh-phone-shell textarea {
    font-size: 16px !important;
}

body.nh-admin-shell.nh-phone-shell.nh-mobile-nav-open {
    overflow: hidden !important;
}

body.nh-admin-shell.nh-phone-shell .nh-sidebar,
body.nh-admin-shell.nh-phone-shell .nh-top-nav {
    display: none !important;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-shell {
    display: block;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1300;
    height: var(--nh-mobile-header-height);
    padding: calc(var(--nh-mobile-safe-top) + 8px) 14px 8px;
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    align-items: center;
    background: #f0f0f0;
    border-bottom: 3px solid #d8c9e8;
    box-shadow: 0 8px 22px rgba(35, 24, 66, 0.08);
    box-sizing: border-box;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-menu-button,
body.nh-admin-shell.nh-phone-shell .nh-mobile-close-button {
    appearance: none;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #4B0082;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-menu-button {
    color: #111111;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-menu-button {
    width: 42px;
    height: 42px;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-menu-button:active,
body.nh-admin-shell.nh-phone-shell .nh-mobile-menu-button:focus-visible,
body.nh-admin-shell.nh-phone-shell .nh-mobile-close-button:active,
body.nh-admin-shell.nh-phone-shell .nh-mobile-close-button:focus-visible {
    background: #e6dcff;
    outline: none;
    box-shadow: inset 0 0 0 2px #d5c2ff;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-menu-button svg,
body.nh-admin-shell.nh-phone-shell .nh-mobile-close-button svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-logo {
    justify-self: center;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1390;
    background: rgba(26, 18, 43, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1400;
    width: min(86vw, 340px);
    max-width: 340px;
    padding: max(12px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
    background: #f0f0f0;
    box-shadow: 18px 0 42px rgba(30, 18, 54, 0.22);
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    box-sizing: border-box;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-shell.is-open .nh-mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-shell.is-open .nh-mobile-drawer {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding-bottom: 12px;
    border-bottom: 2px solid #d8c9e8;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-drawer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #4B0082;
    text-decoration: none;
    line-height: 1;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-drawer-logo img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-drawer-logo > span {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
    font-size: 1.22rem;
    white-space: nowrap;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-drawer-logo > span span {
    display: inline;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-drawer-logo strong {
    font-weight: 800;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-close-button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-nav-list {
    display: grid;
    gap: 6px;
    padding: 14px 0 0;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-nav-link {
    min-height: 48px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    color: #333;
    font-weight: 800;
    text-decoration: none;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-nav-link:hover,
body.nh-admin-shell.nh-phone-shell .nh-mobile-nav-link:focus-visible,
body.nh-admin-shell.nh-phone-shell .nh-mobile-nav-link.active {
    background: #e6dcff;
    color: #4B0082;
    outline: none;
    box-shadow: inset 0 0 0 2px #d5c2ff;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-nav-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4B0082;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-nav-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-shell ~ .app-container,
body.nh-admin-shell.nh-phone-shell .nh-mobile-shell ~ .content-area,
body.nh-admin-shell.nh-phone-shell .nh-mobile-shell ~ .container,
body.nh-admin-shell.nh-phone-shell .nh-mobile-shell ~ .app-container.content-area,
body.nh-admin-shell.nh-phone-shell .nh-mobile-shell ~ .container.app-container,
body.nh-admin-shell.nh-phone-shell .nh-mobile-shell ~ .nh-sidebar:hover ~ .app-container,
body.nh-admin-shell.nh-phone-shell .nh-mobile-shell ~ .nh-sidebar:focus-within ~ .app-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: calc(var(--nh-mobile-header-height) + 12px) 12px 24px !important;
    box-sizing: border-box !important;
}

body.nh-admin-shell.nh-phone-shell .nh-mobile-shell ~ .app-container .content-area {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 640px), (max-device-width: 640px), (hover: none) and (pointer: coarse) and (max-device-width: 760px) {
    body.nh-admin-shell {
        --nh-mobile-safe-top: env(safe-area-inset-top, 0px);
        --nh-mobile-header-content-height: 62px;
        --nh-mobile-header-height: calc(var(--nh-mobile-header-content-height) + var(--nh-mobile-safe-top));
        overflow-x: hidden;
    }

    body.nh-admin-shell.nh-ios-app-shell {
        --nh-mobile-safe-top: max(env(safe-area-inset-top, 0px), 44px);
    }

    body.nh-admin-shell button,
    body.nh-admin-shell input,
    body.nh-admin-shell select,
    body.nh-admin-shell textarea,
    body.nh-admin-shell a {
        touch-action: manipulation;
    }

    body.nh-admin-shell input,
    body.nh-admin-shell select,
    body.nh-admin-shell textarea {
        font-size: 16px !important;
    }

    body.nh-admin-shell.nh-mobile-nav-open {
        overflow: hidden !important;
    }

    body.nh-admin-shell .nh-sidebar,
    body.nh-admin-shell .nh-top-nav {
        display: none !important;
    }

    body.nh-admin-shell .nh-mobile-shell {
        display: block;
    }

    body.nh-admin-shell .nh-mobile-header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1300;
        height: var(--nh-mobile-header-height);
        padding: calc(var(--nh-mobile-safe-top) + 8px) 14px 8px;
        display: grid;
        grid-template-columns: 46px 1fr 46px;
        align-items: center;
        background: #f0f0f0;
        border-bottom: 3px solid #d8c9e8;
        box-shadow: 0 8px 22px rgba(35, 24, 66, 0.08);
        box-sizing: border-box;
    }

    body.nh-admin-shell .nh-mobile-menu-button,
    body.nh-admin-shell .nh-mobile-close-button {
        appearance: none;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #4B0082;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    body.nh-admin-shell .nh-mobile-menu-button {
        color: #111111;
    }

    body.nh-admin-shell .nh-mobile-menu-button {
        width: 42px;
        height: 42px;
    }

    body.nh-admin-shell .nh-mobile-menu-button:active,
    body.nh-admin-shell .nh-mobile-menu-button:focus-visible,
    body.nh-admin-shell .nh-mobile-close-button:active,
    body.nh-admin-shell .nh-mobile-close-button:focus-visible {
        background: #e6dcff;
        outline: none;
        box-shadow: inset 0 0 0 2px #d5c2ff;
    }

    body.nh-admin-shell .nh-mobile-menu-button svg,
    body.nh-admin-shell .nh-mobile-close-button svg {
        width: 25px;
        height: 25px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.25;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.nh-admin-shell .nh-mobile-logo {
        justify-self: center;
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    body.nh-admin-shell .nh-mobile-logo img {
        width: 44px;
        height: 44px;
        object-fit: contain;
        display: block;
    }

    body.nh-admin-shell .nh-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1390;
        background: rgba(26, 18, 43, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    body.nh-admin-shell .nh-mobile-drawer {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1400;
        width: min(86vw, 340px);
        max-width: 340px;
        padding: max(12px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
        background: #f0f0f0;
        box-shadow: 18px 0 42px rgba(30, 18, 54, 0.22);
        transform: translateX(-105%);
        transition: transform 0.24s ease;
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        box-sizing: border-box;
    }

    body.nh-admin-shell .nh-mobile-shell.is-open .nh-mobile-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.nh-admin-shell .nh-mobile-shell.is-open .nh-mobile-drawer {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    body.nh-admin-shell .nh-mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 58px;
        padding-bottom: 12px;
        border-bottom: 2px solid #d8c9e8;
    }

    body.nh-admin-shell .nh-mobile-drawer-logo {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        color: #4B0082;
        text-decoration: none;
        line-height: 1;
    }

    body.nh-admin-shell .nh-mobile-drawer-logo img {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        object-fit: contain;
    }

    body.nh-admin-shell .nh-mobile-drawer-logo > span {
        display: inline-flex;
        align-items: baseline;
        min-width: 0;
        font-size: 1.22rem;
        white-space: nowrap;
    }

    body.nh-admin-shell .nh-mobile-drawer-logo > span span {
        display: inline;
    }

    body.nh-admin-shell .nh-mobile-drawer-logo strong {
        font-weight: 800;
    }

    body.nh-admin-shell .nh-mobile-close-button {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    body.nh-admin-shell .nh-mobile-nav-list {
        display: grid;
        gap: 6px;
        padding: 14px 0 0;
    }

    body.nh-admin-shell .nh-mobile-nav-link {
        min-height: 48px;
        padding: 0 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        border-radius: 10px;
        color: #333;
        font-weight: 800;
        text-decoration: none;
    }

    body.nh-admin-shell .nh-mobile-nav-link:hover,
    body.nh-admin-shell .nh-mobile-nav-link:focus-visible,
    body.nh-admin-shell .nh-mobile-nav-link.active {
        background: #e6dcff;
        color: #4B0082;
        outline: none;
        box-shadow: inset 0 0 0 2px #d5c2ff;
    }

    body.nh-admin-shell .nh-mobile-nav-icon {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #4B0082;
    }

    body.nh-admin-shell .nh-mobile-nav-icon svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.nh-admin-shell .nh-mobile-shell ~ .app-container,
    body.nh-admin-shell .nh-mobile-shell ~ .content-area,
    body.nh-admin-shell .nh-mobile-shell ~ .container,
    body.nh-admin-shell .nh-mobile-shell ~ .app-container.content-area,
    body.nh-admin-shell .nh-mobile-shell ~ .container.app-container,
    body.nh-admin-shell .nh-mobile-shell ~ .nh-sidebar:hover ~ .app-container,
    body.nh-admin-shell .nh-mobile-shell ~ .nh-sidebar:focus-within ~ .app-container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: calc(var(--nh-mobile-header-height) + 12px) 12px 24px !important;
        box-sizing: border-box !important;
    }

    body.nh-admin-shell .nh-mobile-shell ~ .app-container .content-area {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

body.nh-admin-shell .nh-mobile-menu-button,
body.nh-admin-shell.nh-phone-shell .nh-mobile-menu-button {
    color: #111111 !important;
    opacity: 1 !important;
}

body.nh-admin-shell .nh-mobile-menu-button svg,
body.nh-admin-shell .nh-mobile-menu-button svg path,
body.nh-admin-shell.nh-phone-shell .nh-mobile-menu-button svg,
body.nh-admin-shell.nh-phone-shell .nh-mobile-menu-button svg path {
    color: #111111 !important;
    stroke: #111111 !important;
    opacity: 1 !important;
}

body.nh-admin-shell .nh-mobile-close-button,
body.nh-admin-shell.nh-phone-shell .nh-mobile-close-button {
    color: #111111 !important;
    opacity: 1 !important;
}

body.nh-admin-shell .nh-mobile-close-button svg,
body.nh-admin-shell .nh-mobile-close-button svg path,
body.nh-admin-shell.nh-phone-shell .nh-mobile-close-button svg,
body.nh-admin-shell.nh-phone-shell .nh-mobile-close-button svg path {
    color: #111111 !important;
    stroke: #111111 !important;
    opacity: 1 !important;
}

/* Keep every app modal close control visibly circular at every viewport size. */
body.nh-admin-shell [role="dialog"] button[aria-label^="Close"],
body.nh-admin-shell [aria-modal="true"] button[aria-label^="Close"],
body.nh-admin-shell .portal-booking-close,
body.nh-admin-shell .account-payment-close,
body.nh-admin-shell .staff-session-close,
body.nh-admin-shell .modal-close-button,
body.nh-admin-shell .amb-session-close,
body.nh-admin-shell .amb-modal-close,
body.nh-admin-shell .course-modal-close,
body.nh-admin-shell .student-modal-close,
body.nh-admin-shell .modal-close {
    appearance: none !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    flex: 0 0 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin-left: auto !important;
    border: 2px solid #b894dc !important;
    border-radius: 50% !important;
    background: #f7f1fc !important;
    color: #4B0082 !important;
    box-shadow: 0 2px 8px rgba(75, 0, 130, 0.14) !important;
    font-size: 1.45rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-shadow: none !important;
    opacity: 1 !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
}

body.nh-admin-shell [role="dialog"] button[aria-label^="Close"]:hover,
body.nh-admin-shell [role="dialog"] button[aria-label^="Close"]:focus-visible,
body.nh-admin-shell [aria-modal="true"] button[aria-label^="Close"]:hover,
body.nh-admin-shell [aria-modal="true"] button[aria-label^="Close"]:focus-visible,
body.nh-admin-shell .portal-booking-close:hover,
body.nh-admin-shell .portal-booking-close:focus-visible,
body.nh-admin-shell .account-payment-close:hover,
body.nh-admin-shell .account-payment-close:focus-visible,
body.nh-admin-shell .staff-session-close:hover,
body.nh-admin-shell .staff-session-close:focus-visible,
body.nh-admin-shell .modal-close-button:hover,
body.nh-admin-shell .modal-close-button:focus-visible,
body.nh-admin-shell .amb-session-close:hover,
body.nh-admin-shell .amb-session-close:focus-visible,
body.nh-admin-shell .amb-modal-close:hover,
body.nh-admin-shell .amb-modal-close:focus-visible,
body.nh-admin-shell .course-modal-close:hover,
body.nh-admin-shell .course-modal-close:focus-visible,
body.nh-admin-shell .student-modal-close:hover,
body.nh-admin-shell .student-modal-close:focus-visible,
body.nh-admin-shell .modal-close:hover,
body.nh-admin-shell .modal-close:focus-visible {
    border-color: #4B0082 !important;
    background: #4B0082 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(75, 0, 130, 0.18), 0 4px 12px rgba(75, 0, 130, 0.2) !important;
}
/* Mobile section navigation: keep multi-destination subnavigation visible and tappable. */
@media (max-width: 640px),
       (max-device-width: 640px),
       (hover: none) and (pointer: coarse) and (max-device-width: 760px) {
    body.nh-admin-shell.nh-mobile-subnav-present {
        --nh-mobile-subnav-height: 58px;
        --nh-mobile-content-top: calc(var(--nh-mobile-header-height, 62px) + var(--nh-mobile-subnav-height));
        --nh-mobile-top-nav-height: var(--nh-mobile-content-top);
        --nh-top-nav-height: var(--nh-mobile-content-top);
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav.nh-top-nav-has-sections {
        position: fixed !important;
        top: var(--nh-mobile-header-height, 62px) !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 1290 !important;
        width: 100% !important;
        height: var(--nh-mobile-subnav-height) !important;
        min-height: var(--nh-mobile-subnav-height) !important;
        display: block !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: #f7f4fa !important;
        border: 0 !important;
        border-bottom: 1px solid #d8c9e8 !important;
        box-shadow: 0 5px 14px rgba(35, 24, 66, 0.08) !important;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-nav-inner,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-nav-main,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-tabs {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-nav-inner,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-nav-main {
        display: block !important;
        overflow: visible !important;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-title-wrap,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-nav-actions,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-pill {
        display: none !important;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-tabs {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 7px max(10px, env(safe-area-inset-left)) 7px max(10px, env(safe-area-inset-right)) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        scroll-padding-inline: 10px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-tabs::-webkit-scrollbar {
        display: none;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-tab,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-tabs.nh-top-tabs-always-expanded .nh-top-tab,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-tabs.nh-top-tabs-single .nh-top-tab {
        --nh-tab-collapsed-w: auto;
        --nh-tab-expanded-w: auto;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 0 14px !important;
        overflow: visible !important;
        color: #3f3150 !important;
        background: #ffffff !important;
        border: 1px solid #d8c9e8 !important;
        border-radius: 999px !important;
        box-shadow: 0 2px 7px rgba(44, 24, 64, 0.06) !important;
        line-height: 1 !important;
        scroll-snap-align: center;
        transform: none !important;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-tab-label,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-tab .nh-top-tab-label,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-tabs.nh-top-tabs-always-expanded .nh-top-tab-label {
        display: block !important;
        max-width: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        white-space: nowrap !important;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-tab-icon,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-tab i {
        width: 20px !important;
        height: 20px !important;
        flex: 0 0 20px !important;
        color: #4B0082 !important;
        font-size: 1rem !important;
        transform: none !important;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-tab.active,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-tab:hover,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections .nh-top-tab:focus-visible {
        color: #4B0082 !important;
        background: #e6dcff !important;
        border-color: #b99be3 !important;
        box-shadow: inset 0 0 0 1px #d5c2ff, 0 2px 8px rgba(75, 0, 130, 0.12) !important;
        outline: none !important;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-mobile-shell ~ .app-container,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-mobile-shell ~ .content-area,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-mobile-shell ~ .container,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections ~ .app-container,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections ~ .content-area,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-top-nav-has-sections ~ .container,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-forms-page,
    body.nh-admin-shell.nh-mobile-subnav-present .lpa-page,
    body.nh-admin-shell.nh-mobile-subnav-present .library-access-main {
        padding-top: calc(var(--nh-mobile-content-top) + 12px) !important;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-builder-page {
        padding-top: var(--nh-mobile-content-top) !important;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-builder-chrome {
        top: var(--nh-mobile-content-top) !important;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-builder-modes {
        top: calc(var(--nh-mobile-content-top) + 73px) !important;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-builder-mobile-modes {
        top: calc(var(--nh-mobile-content-top) + 122px) !important;
    }

    body.nh-admin-shell.nh-mobile-subnav-present .nh-field-palette,
    body.nh-admin-shell.nh-mobile-subnav-present .nh-field-inspector {
        top: calc(var(--nh-mobile-content-top) + 162px) !important;
    }
}
