:root {
    --shell-bg:
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.07), transparent 24%),
        radial-gradient(circle at 100% 0%, rgba(15, 23, 42, 0.05), transparent 20%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    --shell-sidebar: rgba(255, 255, 255, 0.96);
    --shell-header: rgba(248, 250, 252, 0.86);
    --shell-panel: #ffffff;
    --shell-panel-soft: #f8fafc;
    --shell-panel-muted: #f1f5f9;
    --shell-line: #e2e8f0;
    --shell-line-strong: #cbd5e1;
    --shell-text: #0f172a;
    --shell-text-soft: #64748b;
    --shell-text-faint: #94a3b8;
    --shell-primary: #2563eb;
    --shell-primary-strong: #1d4ed8;
    --shell-primary-soft: rgba(37, 99, 235, 0.08);
    --shell-success: #15803d;
    --shell-warning: #d97706;
    --shell-danger: #dc2626;
    --shell-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 14px 36px rgba(15, 23, 42, 0.06);
    --shell-shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.08);
    --shell-radius-xl: 28px;
    --shell-radius-lg: 22px;
    --shell-radius-md: 16px;
    --shell-radius-sm: 12px;
    --shell-sidebar-width: 264px;
    --shell-header-height: 78px;
}

html.shell-enabled,
body.shell-enabled {
    min-height: 100%;
    background: var(--shell-bg);
}

html.shell-booting,
body.shell-booting {
    overflow-x: hidden;
}

body:not(.shell-ready) #app {
    visibility: hidden;
}

body.shell-ready #app {
    visibility: visible;
}

body.shell-enabled {
    padding-left: var(--shell-sidebar-width);
    padding-top: var(--shell-header-height);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--shell-text);
    accent-color: var(--shell-primary);
}

body.shell-enabled.shell-collapsed {
    --shell-sidebar-width: 92px;
}

body.shell-enabled a {
    color: inherit;
}

.admin-shell-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--shell-sidebar-width);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    background: var(--shell-sidebar);
    border-right: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 16px 0 40px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.admin-shell-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(248, 250, 252, 0.3) 100%);
    pointer-events: none;
}

.admin-shell-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: var(--shell-header-height);
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

.admin-shell-brand-mark {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.admin-shell-brand-ring {
    position: absolute;
    inset: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-shell-brand-letter {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.admin-shell-brand-text {
    min-width: 0;
}

.admin-shell-brand-title {
    font-size: 16px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--shell-text);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.admin-shell-brand-subtitle {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.2;
    color: var(--shell-text-faint);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-shell-sidebar-scroll {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    padding: 18px 12px 24px;
}

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

.admin-shell-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
    border-radius: 999px;
}

.admin-shell-menu-group + .admin-shell-menu-group {
    margin-top: 18px;
}

.admin-shell-menu-group {
    display: grid;
    gap: 8px;
}

.admin-shell-menu-group-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 10px;
    border: none;
    border-radius: 16px;
    background: transparent;
    color: var(--shell-text-soft);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-shell-menu-group-trigger:hover {
    background: rgba(248, 250, 252, 0.9);
    color: var(--shell-text);
}

.admin-shell-menu-group.is-expanded .admin-shell-menu-group-trigger {
    background: rgba(239, 246, 255, 0.72);
    color: var(--shell-primary-strong);
}

.admin-shell-menu-label {
    padding: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    color: currentColor;
    letter-spacing: 0.02em;
    text-transform: none;
}

.admin-shell-menu-group-arrow {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    transition: transform 0.2s ease;
}

.admin-shell-menu-group.is-expanded .admin-shell-menu-group-arrow {
    transform: rotate(90deg);
}

.admin-shell-menu {
    display: grid;
    gap: 8px;
    padding-left: 10px;
}

.admin-shell-menu-group:not(.is-expanded) .admin-shell-menu {
    display: none;
}

.admin-shell-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px 10px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--shell-text);
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        color 0.2s ease;
}

.admin-shell-menu-item:hover {
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(226, 232, 240, 0.96);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.admin-shell-menu-item.is-active {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-color: #dbeafe;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.10);
    color: #0f172a;
}

.admin-shell-menu-item.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    bottom: 11px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.admin-shell-menu-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.admin-shell-menu-icon svg,
.admin-shell-link-icon svg,
.admin-shell-toggle svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-shell-menu-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-shell-menu-title {
    font-size: 13px;
    line-height: 1.1;
    font-weight: 700;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-shell-menu-desc {
    font-size: 10px;
    line-height: 1.2;
    color: var(--shell-text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-shell-header {
    position: fixed;
    inset: 0 0 auto var(--shell-sidebar-width);
    height: var(--shell-header-height);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 28px 14px 24px;
    background: var(--shell-header);
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    backdrop-filter: blur(18px);
}

.admin-shell-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.admin-shell-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--shell-line);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--shell-text);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.admin-shell-toggle:hover {
    background: #ffffff;
    border-color: var(--shell-line-strong);
    transform: translateY(-1px);
}

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

.admin-shell-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1;
}

.admin-shell-breadcrumb-group {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--shell-primary-soft);
    color: var(--shell-primary-strong);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.admin-shell-breadcrumb-sep,
.admin-shell-breadcrumb-page {
    color: var(--shell-text-faint);
}

.admin-shell-breadcrumb-page {
    font-weight: 600;
}

.admin-shell-page-title {
    font-size: 24px;
    line-height: 1.08;
    font-weight: 800;
    color: var(--shell-text);
    letter-spacing: 0.01em;
}

.admin-shell-page-subtitle {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--shell-text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-shell-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-shell-link,
.admin-shell-user {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--shell-line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    color: var(--shell-text);
    text-decoration: none;
}

.admin-shell-link:hover {
    border-color: var(--shell-line-strong);
    background: #ffffff;
    transform: translateY(-1px);
}

.admin-shell-link-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-shell-user {
    padding: 0 8px 0 10px;
}

.admin-shell-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.admin-shell-user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.admin-shell-user-name {
    font-size: 13px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--shell-text);
    white-space: nowrap;
}

.admin-shell-user-role {
    font-size: 11px;
    line-height: 1.1;
    color: var(--shell-text-faint);
    white-space: nowrap;
}

.admin-shell-logout {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    cursor: pointer;
}

.admin-shell-content {
    max-width: 1680px;
    margin: 0 auto;
    padding: 24px 28px 34px;
}

.admin-shell-body-card {
    min-height: calc(100vh - var(--shell-header-height) - 40px);
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    color: var(--shell-text);
}

.admin-shell-body-card > #app {
    min-height: 60vh;
    color: var(--shell-text);
}

body.shell-enabled .top-nav,
body.shell-enabled .topbar {
    display: none !important;
}

body.shell-enabled #app > .main-content,
body.shell-enabled #app > .container,
body.shell-enabled #app > .page-shell,
body.shell-enabled #app > .page {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--shell-text);
}

body.shell-enabled #app > .hero:first-child,
body.shell-enabled #app > .page-intro:first-child,
body.shell-enabled #app > .page-head:first-child,
body.shell-enabled #app > .page-header:first-child {
    margin-top: 0;
}

body.shell-enabled .admin-shell-body-card h1,
body.shell-enabled .admin-shell-body-card h2,
body.shell-enabled .admin-shell-body-card h3,
body.shell-enabled .admin-shell-body-card h4,
body.shell-enabled .admin-shell-body-card h5,
body.shell-enabled .admin-shell-body-card h6,
body.shell-enabled .admin-shell-body-card .page-title,
body.shell-enabled .admin-shell-body-card .section-title,
body.shell-enabled .admin-shell-body-card .title,
body.shell-enabled .admin-shell-body-card .nav-title,
body.shell-enabled .admin-shell-body-card .card-title,
body.shell-enabled .admin-shell-body-card .stat-value,
body.shell-enabled .admin-shell-body-card .detail-value,
body.shell-enabled .admin-shell-body-card .welcome-title,
body.shell-enabled .admin-shell-body-card .tree-title,
body.shell-enabled .admin-shell-body-card .course-title,
body.shell-enabled .admin-shell-body-card .course-name,
body.shell-enabled .admin-shell-body-card .modal-title h3,
body.shell-enabled .admin-shell-body-card .modal-header,
body.shell-enabled .admin-shell-body-card .drawer-head h3,
body.shell-enabled .admin-shell-body-card th,
body.shell-enabled .admin-shell-body-card td,
body.shell-enabled .admin-shell-body-card label,
body.shell-enabled .admin-shell-body-card strong,
body.shell-enabled .admin-shell-body-card .form-label {
    color: var(--shell-text) !important;
}

body.shell-enabled .admin-shell-body-card p,
body.shell-enabled .admin-shell-body-card .page-subtitle,
body.shell-enabled .admin-shell-body-card .section-desc,
body.shell-enabled .admin-shell-body-card .subtitle,
body.shell-enabled .admin-shell-body-card .nav-desc,
body.shell-enabled .admin-shell-body-card .welcome-subtitle,
body.shell-enabled .admin-shell-body-card .page-desc,
body.shell-enabled .admin-shell-body-card .stat-label,
body.shell-enabled .admin-shell-body-card .stat-note,
body.shell-enabled .admin-shell-body-card .detail-label,
body.shell-enabled .admin-shell-body-card .detail-name,
body.shell-enabled .admin-shell-body-card .panel-sub,
body.shell-enabled .admin-shell-body-card .hint,
body.shell-enabled .admin-shell-body-card .help-text,
body.shell-enabled .admin-shell-body-card .empty-hint,
body.shell-enabled .admin-shell-body-card .form-tip,
body.shell-enabled .admin-shell-body-card .tree-subtitle,
body.shell-enabled .admin-shell-body-card .course-stats,
body.shell-enabled .admin-shell-body-card .status-sub,
body.shell-enabled .admin-shell-body-card .status-label,
body.shell-enabled .admin-shell-body-card .pagination-info,
body.shell-enabled .admin-shell-body-card .empty-state,
body.shell-enabled .admin-shell-body-card .tree-empty {
    color: var(--shell-text-soft) !important;
}

body.shell-enabled .admin-shell-body-card .hero,
body.shell-enabled .admin-shell-body-card .page-intro,
body.shell-enabled .admin-shell-body-card .page-header,
body.shell-enabled .admin-shell-body-card .welcome-card,
body.shell-enabled .admin-shell-body-card .panel,
body.shell-enabled .admin-shell-body-card .card,
body.shell-enabled .admin-shell-body-card .stats-card,
body.shell-enabled .admin-shell-body-card .stat-card,
body.shell-enabled .admin-shell-body-card .config-section,
body.shell-enabled .admin-shell-body-card .category-tree,
body.shell-enabled .admin-shell-body-card .course-panel,
body.shell-enabled .admin-shell-body-card .tree-panel,
body.shell-enabled .admin-shell-body-card .list-panel,
body.shell-enabled .admin-shell-body-card .tree-card,
body.shell-enabled .admin-shell-body-card .filter-panel,
body.shell-enabled .admin-shell-body-card .table-panel,
body.shell-enabled .admin-shell-body-card .status-detail,
body.shell-enabled .admin-shell-body-card .table-container,
body.shell-enabled .admin-shell-body-card .table-wrap,
body.shell-enabled .admin-shell-body-card .course-card,
body.shell-enabled .admin-shell-body-card .product-card,
body.shell-enabled .admin-shell-body-card .item-card,
body.shell-enabled .admin-shell-body-card .record-card,
body.shell-enabled .admin-shell-body-card .summary-card {
    background: var(--shell-panel) !important;
    border: 1px solid var(--shell-line) !important;
    border-radius: 24px !important;
    box-shadow: var(--shell-shadow) !important;
    color: var(--shell-text);
}

body.shell-enabled .admin-shell-body-card .hero,
body.shell-enabled .admin-shell-body-card .page-intro,
body.shell-enabled .admin-shell-body-card .page-header,
body.shell-enabled .admin-shell-body-card .welcome-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
}

body.shell-enabled .admin-shell-body-card .hero,
body.shell-enabled .admin-shell-body-card .page-intro,
body.shell-enabled .admin-shell-body-card .page-header,
body.shell-enabled .admin-shell-body-card .welcome-card,
body.shell-enabled .admin-shell-body-card .panel,
body.shell-enabled .admin-shell-body-card .card,
body.shell-enabled .admin-shell-body-card .stats-card,
body.shell-enabled .admin-shell-body-card .filter-panel,
body.shell-enabled .admin-shell-body-card .table-panel,
body.shell-enabled .admin-shell-body-card .category-tree,
body.shell-enabled .admin-shell-body-card .course-panel,
body.shell-enabled .admin-shell-body-card .tree-panel,
body.shell-enabled .admin-shell-body-card .list-panel,
body.shell-enabled .admin-shell-body-card .tree-card {
    overflow: hidden;
}

body.shell-enabled .admin-shell-body-card .hero,
body.shell-enabled .admin-shell-body-card .page-intro,
body.shell-enabled .admin-shell-body-card .page-header,
body.shell-enabled .admin-shell-body-card .welcome-card,
body.shell-enabled .admin-shell-body-card .stats-card,
body.shell-enabled .admin-shell-body-card .filter-panel,
body.shell-enabled .admin-shell-body-card .table-panel {
    margin-bottom: 22px;
}

body.shell-enabled .admin-shell-body-card .nav-grid,
body.shell-enabled .admin-shell-body-card .hero-side,
body.shell-enabled .admin-shell-body-card .stats-grid,
body.shell-enabled .admin-shell-body-card .stat-grid,
body.shell-enabled .admin-shell-body-card .course-list,
body.shell-enabled .admin-shell-body-card .catalog-layout,
body.shell-enabled .admin-shell-body-card .tree-container {
    gap: 20px !important;
}

body.shell-enabled .admin-shell-body-card .nav-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    min-height: 176px;
    padding: 24px !important;
    background: var(--shell-panel) !important;
    border: 1px solid var(--shell-line) !important;
    border-radius: 22px !important;
    box-shadow: var(--shell-shadow) !important;
    text-align: left !important;
}

body.shell-enabled .admin-shell-body-card .nav-card:hover {
    transform: translateY(-2px) !important;
    border-color: #dbeafe !important;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.10) !important;
}

body.shell-enabled .admin-shell-body-card .nav-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px !important;
    border-radius: 16px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--shell-primary-soft);
    font-size: 28px !important;
    line-height: 1;
}

body.shell-enabled .admin-shell-body-card .nav-title {
    margin-bottom: 8px !important;
    font-size: 18px !important;
    line-height: 1.2;
    font-weight: 800 !important;
}

body.shell-enabled .admin-shell-body-card .nav-desc {
    font-size: 14px !important;
    line-height: 1.65 !important;
}

body.shell-enabled .admin-shell-body-card .stat-card,
body.shell-enabled .admin-shell-body-card .stats-card {
    border-radius: 20px !important;
}

body.shell-enabled .admin-shell-body-card .status-box.live {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%) !important;
    border: none !important;
    box-shadow: 0 16px 34px rgba(239, 68, 68, 0.20) !important;
}

body.shell-enabled .admin-shell-body-card .status-box.offline {
    background: linear-gradient(135deg, #64748b 0%, #334155 100%) !important;
    border: none !important;
    box-shadow: 0 16px 34px rgba(51, 65, 85, 0.16) !important;
}

body.shell-enabled .admin-shell-body-card .status-value {
    color: #ffffff !important;
}

body.shell-enabled .admin-shell-body-card .hero-tag,
body.shell-enabled .admin-shell-body-card .badge,
body.shell-enabled .admin-shell-body-card .tag,
body.shell-enabled .admin-shell-body-card .status-tag {
    border-radius: 999px !important;
}

body.shell-enabled .admin-shell-body-card .catalog-layout {
    align-items: start;
}

body.shell-enabled .admin-shell-body-card .tree-panel,
body.shell-enabled .admin-shell-body-card .category-tree,
body.shell-enabled .admin-shell-body-card .tree-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
}

body.shell-enabled .admin-shell-body-card .tree-label {
    min-height: 44px;
    padding: 9px 12px !important;
    border: 1px solid transparent;
    border-radius: 12px !important;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.shell-enabled .admin-shell-body-card .tree-label:hover {
    background: rgba(248, 250, 252, 0.96) !important;
    border-color: rgba(226, 232, 240, 0.96) !important;
}

body.shell-enabled .admin-shell-body-card .tree-label.selected {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
    border-color: #dbeafe !important;
    color: #1d4ed8 !important;
}

body.shell-enabled .admin-shell-body-card .tree-toggle,
body.shell-enabled .admin-shell-body-card .tree-count {
    color: var(--shell-text-faint) !important;
}

body.shell-enabled .admin-shell-body-card .tree-children {
    border-left: 1px dashed #dbe2ea;
    padding-left: 10px;
}

body.shell-enabled .admin-shell-body-card .tree-empty,
body.shell-enabled .admin-shell-body-card .empty-state {
    border: 1px dashed var(--shell-line-strong) !important;
    border-radius: 18px !important;
    background: rgba(248, 250, 252, 0.92) !important;
}

body.shell-enabled .admin-shell-body-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
body.shell-enabled .admin-shell-body-card select,
body.shell-enabled .admin-shell-body-card textarea,
body.shell-enabled .admin-shell-body-card .input,
body.shell-enabled .admin-shell-body-card .select,
body.shell-enabled .admin-shell-body-card .textarea,
body.shell-enabled .admin-shell-body-card .form-input,
body.shell-enabled .admin-shell-body-card [contenteditable="true"] {
    background: #ffffff !important;
    border: 1px solid var(--shell-line) !important;
    border-radius: 12px !important;
    color: var(--shell-text) !important;
    box-shadow: none !important;
}

body.shell-enabled .admin-shell-body-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
body.shell-enabled .admin-shell-body-card select,
body.shell-enabled .admin-shell-body-card .input,
body.shell-enabled .admin-shell-body-card .select,
body.shell-enabled .admin-shell-body-card .form-input {
    min-height: 42px;
    padding: 10px 14px !important;
}

body.shell-enabled .admin-shell-body-card textarea,
body.shell-enabled .admin-shell-body-card .textarea,
body.shell-enabled .admin-shell-body-card [contenteditable="true"] {
    padding: 12px 14px !important;
}

body.shell-enabled .admin-shell-body-card input:focus,
body.shell-enabled .admin-shell-body-card select:focus,
body.shell-enabled .admin-shell-body-card textarea:focus,
body.shell-enabled .admin-shell-body-card .input:focus,
body.shell-enabled .admin-shell-body-card .select:focus,
body.shell-enabled .admin-shell-body-card .textarea:focus,
body.shell-enabled .admin-shell-body-card .form-input:focus,
body.shell-enabled .admin-shell-body-card [contenteditable="true"]:focus {
    outline: none !important;
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

body.shell-enabled .admin-shell-body-card input::placeholder,
body.shell-enabled .admin-shell-body-card textarea::placeholder {
    color: var(--shell-text-faint);
}

body.shell-enabled .admin-shell-body-card .btn,
body.shell-enabled .admin-shell-body-card .tab-btn,
body.shell-enabled .admin-shell-body-card .nav-home-btn,
body.shell-enabled .admin-shell-body-card .nav-back-btn,
body.shell-enabled .admin-shell-body-card .logout-btn-inline {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 16px !important;
    border-radius: 12px !important;
    border: 1px solid var(--shell-line) !important;
    background: #ffffff !important;
    color: var(--shell-text) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

body.shell-enabled .admin-shell-body-card .btn:hover,
body.shell-enabled .admin-shell-body-card .tab-btn:hover,
body.shell-enabled .admin-shell-body-card .nav-home-btn:hover,
body.shell-enabled .admin-shell-body-card .nav-back-btn:hover,
body.shell-enabled .admin-shell-body-card .logout-btn-inline:hover {
    border-color: var(--shell-line-strong) !important;
    background: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06) !important;
}

body.shell-enabled .admin-shell-body-card .btn-primary,
body.shell-enabled .admin-shell-body-card .btn-edit,
body.shell-enabled .admin-shell-body-card .tab-btn.active {
    border-color: #0f172a !important;
    background: #0f172a !important;
    color: #ffffff !important;
}

body.shell-enabled .admin-shell-body-card .btn-primary:hover,
body.shell-enabled .admin-shell-body-card .btn-edit:hover,
body.shell-enabled .admin-shell-body-card .tab-btn.active:hover {
    border-color: #0f172a !important;
    background: #0f172a !important;
    color: #ffffff !important;
}

body.shell-enabled .admin-shell-body-card .btn-secondary,
body.shell-enabled .admin-shell-body-card .btn-light,
body.shell-enabled .admin-shell-body-card .btn-default {
    background: #ffffff !important;
    color: var(--shell-text) !important;
    border-color: var(--shell-line) !important;
}

body.shell-enabled .admin-shell-body-card .btn-success,
body.shell-enabled .admin-shell-body-card .btn-show {
    border-color: #15803d !important;
    background: #15803d !important;
    color: #ffffff !important;
}

body.shell-enabled .admin-shell-body-card .btn-success:hover,
body.shell-enabled .admin-shell-body-card .btn-show:hover {
    border-color: #15803d !important;
    background: #15803d !important;
    color: #ffffff !important;
}

body.shell-enabled .admin-shell-body-card .btn-danger,
body.shell-enabled .admin-shell-body-card .btn-delete {
    border-color: #dc2626 !important;
    background: #dc2626 !important;
    color: #ffffff !important;
}

body.shell-enabled .admin-shell-body-card .btn-danger:hover,
body.shell-enabled .admin-shell-body-card .btn-delete:hover {
    border-color: #dc2626 !important;
    background: #dc2626 !important;
    color: #ffffff !important;
}

body.shell-enabled .admin-shell-body-card .btn-warning,
body.shell-enabled .admin-shell-body-card .btn-hide {
    border-color: #d97706 !important;
    background: #d97706 !important;
    color: #ffffff !important;
}

body.shell-enabled .admin-shell-body-card .btn-warning:hover,
body.shell-enabled .admin-shell-body-card .btn-hide:hover {
    border-color: #d97706 !important;
    background: #d97706 !important;
    color: #ffffff !important;
}

body.shell-enabled .admin-shell-body-card .btn-info:hover,
body.shell-enabled .admin-shell-body-card .btn-warn:hover {
    color: #ffffff !important;
}

body.shell-enabled .admin-shell-body-card .btn[disabled],
body.shell-enabled .admin-shell-body-card .tab-btn[disabled],
body.shell-enabled .admin-shell-body-card button[disabled] {
    opacity: 0.55;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

body.shell-enabled .admin-shell-body-card .table-wrap,
body.shell-enabled .admin-shell-body-card .table-container {
    overflow: auto;
}

body.shell-enabled .admin-shell-body-card table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

body.shell-enabled .admin-shell-body-card thead th {
    padding: 14px 16px;
    background: var(--shell-panel-soft) !important;
    color: var(--shell-text-soft) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: left;
    border-bottom: 1px solid var(--shell-line) !important;
}

body.shell-enabled .admin-shell-body-card tbody td {
    padding: 14px 16px;
    color: var(--shell-text) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.88) !important;
    vertical-align: middle;
}

body.shell-enabled .admin-shell-body-card tbody tr:hover td {
    background: rgba(248, 250, 252, 0.92) !important;
}

body.shell-enabled .admin-shell-body-card .pagination,
body.shell-enabled .admin-shell-body-card .pagination-actions,
body.shell-enabled .admin-shell-body-card .filter-bar,
body.shell-enabled .admin-shell-body-card .toolbar,
body.shell-enabled .admin-shell-body-card .course-actions,
body.shell-enabled .admin-shell-body-card .form-actions,
body.shell-enabled .admin-shell-body-card .modal-foot-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.shell-enabled .admin-shell-body-card .pagination {
    justify-content: space-between;
}

body.shell-enabled .admin-shell-body-card .panel-head,
body.shell-enabled .admin-shell-body-card .modal-head,
body.shell-enabled .admin-shell-body-card .modal-header,
body.shell-enabled .admin-shell-body-card .drawer-head,
body.shell-enabled .admin-shell-body-card .modal-foot,
body.shell-enabled .admin-shell-body-card .modal-footer {
    border-color: var(--shell-line) !important;
}

body.shell-enabled .admin-shell-body-card .modal-overlay,
body.shell-enabled .admin-shell-body-card .modal-mask,
body.shell-enabled .admin-shell-body-card .drawer-mask {
    background: rgba(15, 23, 42, 0.32) !important;
    backdrop-filter: blur(4px);
}

body.shell-enabled .admin-shell-body-card .modal,
body.shell-enabled .admin-shell-body-card .modal-card,
body.shell-enabled .admin-shell-body-card .drawer {
    background: #ffffff !important;
    border: 1px solid var(--shell-line) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14) !important;
    color: var(--shell-text);
}

body.shell-enabled .admin-shell-body-card .drawer {
    border-radius: 24px 0 0 24px !important;
}

body.shell-enabled .admin-shell-body-card .modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--shell-line) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: var(--shell-text-soft) !important;
}

body.shell-enabled .admin-shell-body-card .modal-close:hover {
    border-color: var(--shell-line-strong) !important;
    color: var(--shell-text) !important;
}

body.shell-enabled.shell-collapsed .admin-shell-brand-text,
body.shell-enabled.shell-collapsed .admin-shell-menu-label,
body.shell-enabled.shell-collapsed .admin-shell-menu-group-arrow,
body.shell-enabled.shell-collapsed .admin-shell-menu-copy {
    display: none;
}

body.shell-enabled.shell-collapsed .admin-shell-brand {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

body.shell-enabled.shell-collapsed .admin-shell-menu-item {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body.shell-enabled.shell-collapsed .admin-shell-menu-group-trigger {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
}

body.shell-enabled.shell-collapsed .admin-shell-menu {
    display: grid !important;
    padding-left: 0;
}

body.shell-enabled.shell-collapsed .admin-shell-header {
    left: var(--shell-sidebar-width);
}

@media (max-width: 1280px) {
    .admin-shell-page-subtitle {
        display: none;
    }
}

@media (max-width: 980px) {
    body.shell-enabled {
        padding-left: 0;
    }

    .admin-shell-sidebar {
        transform: translateX(-100%);
        transition: transform 0.28s ease;
    }

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

    .admin-shell-header {
        left: 0;
        padding-right: 16px;
    }

    .admin-shell-content {
        padding: 16px 14px 24px;
    }

    body.shell-enabled .admin-shell-body-card .nav-card {
        min-height: 148px;
    }
}
