:root {
    --font-family: 'Poppins', 'Segoe UI', sans-serif;
    --color-primary: #d6c8f0;
    --color-secondary: #f1eef8;
    --color-accent: #c8a99e;
    --color-primary-rgb: 214, 200, 240;
    --color-secondary-rgb: 241, 238, 248;
    --color-accent-rgb: 200, 169, 158;
    --subtheme-analog-1: #645e71;
    --subtheme-analog-1-rgb: 100, 94, 113;
    --subtheme-analog-2: #65626a;
    --subtheme-analog-2-rgb: 101, 98, 106;
    --analog-icon-color: #292a36;
    --analog-icon-color-rgb: 41, 42, 54;
    --analog-icon-color-strong: #1e1f2c;
    --analog-icon-color-strong-rgb: 30, 31, 44;
    --subtheme-highlight-a: #645e71;
    --subtheme-highlight-a-rgb: 100, 94, 113;
    --subtheme-highlight-b: #65626a;
    --subtheme-highlight-b-rgb: 101, 98, 106;
    --color-warning: #ffb347;
    --color-success: #4ad991;
    --color-danger: #ff6b6b;
    --color-text: #1d1f28;
    --color-muted: #6b6475;
    --color-text-rgb: 29, 31, 40;
    --color-muted-rgb: 107, 100, 117;
    --color-surface: rgba(255, 255, 255, 0.9);
    --color-border: rgba(180, 168, 210, 0.22);
    --shadow-soft: 0 18px 40px rgba(214, 200, 240, 0.24);
    --radius-lg: 28px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --transition: all 0.3s ease;
    --glow-primary: 0 0 24px rgba(214, 200, 240, 0.45);
    --glow-secondary: 0 0 28px rgba(200, 169, 158, 0.35);
    --toast-bg: rgba(255, 255, 255, 0.94);
    --toast-text: #1d1f28;
    --gradient-hero: linear-gradient(135deg, rgba(214,200,240,0.92), rgba(241,238,248,0.65) 45%, rgba(200,169,158,0.45) 100%);
    --gradient-hero-dark: linear-gradient(135deg, rgba(54,48,68,0.92), rgba(110,94,120,0.6) 45%, rgba(200,169,158,0.35) 100%);
    --glow-hero-edge: 0 45px 95px rgba(214,200,240,0.32);
    --glow-hero-edge-dark: 0 55px 120px rgba(26, 20, 32, 0.75);
    --hero-border-light: rgba(214, 200, 240, 0.45);
    --hero-border-dark: rgba(110, 94, 120, 0.35);
    --shell-chrome-background: linear-gradient(135deg, rgba(214, 200, 240, 0.16), rgba(200, 169, 158, 0.1));
    --shell-chrome-border: rgba(200, 169, 158, 0.24);
    --subtheme-primary: var(--color-primary);
    --subtheme-secondary: var(--color-secondary);
    --subtheme-accent: var(--color-accent);
    --subtheme-primary-rgb: var(--color-primary-rgb);
    --subtheme-secondary-rgb: var(--color-secondary-rgb);
    --subtheme-accent-rgb: var(--color-accent-rgb);
    --subtheme-gradient: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --subtheme-gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    --subtheme-border: rgba(214, 200, 240, 0.25);
    --subtheme-border-strong: rgba(200, 169, 158, 0.32);
    --subtheme-shadow-soft: 0 18px 40px rgba(214, 200, 240, 0.24);
    --subtheme-shadow-strong: 0 32px 65px rgba(214, 200, 240, 0.28), 0 38px 85px rgba(26, 26, 46, 0.25);
    --subtheme-focus-ring: 0 0 0 3px rgba(241, 238, 248, 0.45), 0 22px 45px rgba(214, 200, 240, 0.35);
    --subtheme-spotlight-primary: rgba(214, 200, 240, 0.35);
    --subtheme-spotlight-secondary: rgba(241, 238, 248, 0.28);
    --subtheme-spotlight-accent: rgba(200, 169, 158, 0.42);
    --subtheme-surface: rgba(214, 200, 240, 0.12);
    --subtheme-surface-strong: rgba(241, 238, 248, 0.18);
    --subtheme-surface-alt: rgba(200, 169, 158, 0.15);
    --topbar-active-bg: linear-gradient(135deg, rgba(var(--analog-icon-color-strong-rgb), 0.08), rgba(var(--analog-icon-color-strong-rgb), 0.18));
    --topbar-active-border: rgba(var(--analog-icon-color-strong-rgb), 0.4);
    --topbar-active-text: var(--analog-icon-color-strong);
    --topbar-active-shadow: 0 18px 32px rgba(var(--analog-icon-color-strong-rgb), 0.18);
    --page-heading-color: var(--color-text);
    --page-heading-gradient: linear-gradient(120deg, var(--color-primary) 0%, var(--subtheme-highlight-a) 45%, var(--subtheme-highlight-b) 100%);
    --page-heading-gradient-dark: linear-gradient(120deg, rgba(248, 246, 255, 0.98) 0%, rgba(var(--subtheme-secondary-rgb), 0.85) 45%, rgba(var(--subtheme-accent-rgb), 0.75) 100%);
    --syllabus-actions-offset: 223px;
    --cursor-x: 50%;
    --cursor-y: 50%;
    --cursor-active: 0;
    --cursor-strength: 0;
}

[hidden] {
    display: none !important;
}

@keyframes widgetFloat {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 12px 30px rgba(var(--subtheme-primary-rgb), 0.25));
    }
    50% {
        transform: translateY(-12px);
        filter: drop-shadow(0 18px 36px rgba(var(--subtheme-secondary-rgb), 0.35));
    }
}

@keyframes shimmerPulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(var(--subtheme-secondary-rgb), 0.0);
    }
    50% {
        box-shadow: 0 0 45px rgba(var(--subtheme-secondary-rgb), 0.35);
    }
}

@keyframes statReveal {
    0% {
        transform: scale(0.92) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes themeBloom {
    0% {
        opacity: 0.65;
        transform: scale(0.82);
    }
    100% {
        opacity: 0;
        transform: scale(1.18);
    }
}

@keyframes celebratePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--subtheme-secondary-rgb), 0.65);
    }
    70% {
        box-shadow: 0 0 0 22px rgba(var(--subtheme-secondary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--subtheme-secondary-rgb), 0);
    }
}

@keyframes progressGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--subtheme-secondary-rgb), 0);
    }
    45% {
        box-shadow: 0 0 32px rgba(var(--subtheme-secondary-rgb), 0.35);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--subtheme-secondary-rgb), 0);
    }
}

@keyframes auroraDrift {
    0% {
        transform: translate3d(-6%, -8%, 0) scale(0.95) rotate(0deg);
        opacity: 0.55;
    }
    40% {
        transform: translate3d(4%, 6%, 0) scale(1.08) rotate(12deg);
        opacity: 0.85;
    }
    70% {
        transform: translate3d(-2%, 3%, 0) scale(1.02) rotate(-6deg);
        opacity: 0.7;
    }
    100% {
        transform: translate3d(-6%, -8%, 0) scale(0.95) rotate(0deg);
        opacity: 0.55;
    }
}

[data-animate] {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(8px);
    transition: transform 0.7s cubic-bezier(0.21, 0.61, 0.35, 1), opacity 0.7s ease, filter 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    .widget,
    .stat-card,
    .info-card,
    .course-card,
    .btn-primary,
    .btn-ghost,
    .btn-glow,
    .btn-outline,
    .btn-danger {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .btn-primary::after,
    .btn-ghost::after,
    .btn-glow::after,
    .btn-outline::after,
    .btn-danger::after {
        transition: none !important;
    }

    body.theme-transition {
        transition: none !important;
    }

    body.theme-transition::before {
        display: none !important;
    }

    body::after {
        display: none !important;
    }

    .profile-widget,
    .admin-form-card,
    .admin-widget,
    .modal,
    .modal__content,
    .syllabus-block,
    .syllabus-block__list,
    .progress-bar__fill,
    .hero__aurora,
    .hero__particles {
        transition: none !important;
        animation: none !important;
    }

    .hero__particles {
        display: none !important;
    }

    .course-coach,
    .course-coach__item,
    .course-coach__status {
        transition: none !important;
        animation: none !important;
    }

    .course-coach__item:hover,
    .course-coach__item:focus-within {
        transform: none !important;
        box-shadow: 0 22px 48px rgba(26, 26, 46, 0.12) !important;
    }
}

body.theme-dark {
    --color-text: #eef1ff;
    --color-muted: #b2b7d3;
    --color-text-rgb: 238, 241, 255;
    --color-muted-rgb: 178, 183, 211;
    --color-surface: rgba(23, 23, 35, 0.82);
    --color-border: rgba(255, 255, 255, 0.1);
    --toast-bg: rgba(24, 24, 36, 0.92);
    --toast-text: #eef1ff;
    --topbar-active-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.12));
    --topbar-active-border: rgba(255, 255, 255, 0.28);
    --topbar-active-text: rgba(255, 255, 255, 0.96);
    --topbar-active-shadow: 0 22px 40px rgba(5, 6, 20, 0.45);
    --gradient-hero: var(--gradient-hero-dark);
    --glow-hero-edge: var(--glow-hero-edge-dark);
    --page-heading-color: rgba(248, 246, 255, 0.96);
    --page-heading-gradient: var(--page-heading-gradient-dark);
    background: radial-gradient(circle at top, rgba(var(--subtheme-primary-rgb), 0.24), rgba(9, 9, 16, 0.92));
}

body.theme-light {
    background: radial-gradient(circle at top, rgba(var(--subtheme-secondary-rgb), 0.2), #ffffff);
}

body.theme-transition {
    transition: background 0.6s ease, color 0.6s ease;
}

body.theme-transition::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(var(--subtheme-secondary-rgb), 0.32), rgba(255, 255, 255, 0) 65%);
    animation: themeBloom 0.75s ease forwards;
    mix-blend-mode: screen;
    z-index: 999;
}

body.theme-dark.theme-transition::before {
    background: radial-gradient(circle at center, rgba(var(--subtheme-primary-rgb), 0.45), rgba(9, 9, 16, 0) 70%);
    mix-blend-mode: lighten;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    background: radial-gradient(circle at 20% 20%, rgba(var(--subtheme-secondary-rgb), 0.22), transparent 55%),
        radial-gradient(circle at 80% 30%, rgba(var(--subtheme-accent-rgb), 0.18), transparent 60%),
        linear-gradient(135deg, rgba(var(--subtheme-secondary-rgb), 0.12), rgba(var(--subtheme-primary-rgb), 0.2));
    background-repeat: no-repeat;
    background-size: cover;
    mix-blend-mode: screen;
}

body.theme-dark::after {
    mix-blend-mode: lighten;
    background: radial-gradient(circle at 20% 20%, rgba(var(--subtheme-analog-1-rgb), 0.32), transparent 60%),
        radial-gradient(circle at 75% 25%, rgba(var(--subtheme-secondary-rgb), 0.28), transparent 65%),
        linear-gradient(135deg, rgba(9, 9, 16, 0.8), rgba(var(--subtheme-analog-2-rgb), 0.35));
    background-repeat: no-repeat;
    background-size: cover;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.5;
}

h1 {
    color: var(--color-text);
}

body.theme-dark h1 {
    color: rgba(248, 246, 255, 0.96);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.layout-container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    box-sizing: border-box;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    backdrop-filter: blur(14px);
    background: var(--shell-chrome-background, var(--color-surface));
    border-bottom: 1px solid var(--shell-chrome-border, var(--color-border));
}

.topbar__inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 1.25rem;
    row-gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.notifications-panel {
    position: absolute;
    top: 100%;
    right: 2rem;
    margin-top: 1rem;
    width: min(420px, calc(100vw - 3rem));
    background: rgba(10, 12, 32, 0.92);
    border-radius: 24px;
    border: 1px solid rgba(var(--subtheme-secondary-rgb), 0.3);
    box-shadow: 0 25px 65px rgba(6, 8, 20, 0.55);
    padding: 1.6rem;
    color: #f5f7ff;
    backdrop-filter: blur(16px);
    z-index: 120;
}

.notifications-panel__header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.notifications-panel__header p {
    margin: 0.35rem 0 1rem;
    font-size: 0.9rem;
    color: rgba(235, 238, 255, 0.75);
}

.notifications-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.notifications-panel__item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(var(--subtheme-secondary-rgb), 0.35);
    display: grid;
    gap: 0.45rem;
}

.notifications-panel__item a {
    color: #fff;
    text-decoration: underline;
}

.notifications-panel__empty {
    margin: 0.5rem 0 0;
    color: rgba(235, 238, 255, 0.7);
    font-size: 0.9rem;
}

.topbar__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    grid-column: 1 / 2;
    grid-row: 1 / span 2;
}

.brand-logo {
    width: 128px;
    height: 128px;
    border-radius: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.brand-logo__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-logo__emoji {
    font-size: 1.95rem;
    line-height: 1;
}

.brand-title {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
}

.brand-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(var(--color-text), 0.82);
    font-weight: 500;
}

.topbar__nav {
    display: inline-flex;
    gap: 0.85rem;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    justify-self: end;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: rgba(var(--color-text-rgb), 0.92);
    font-weight: 500;
}

.nav-item__icon {
    font-size: 1rem;
    color: currentColor;
}

body.theme-dark .brand-title,
body.theme-dark .brand-subtitle,
body.theme-dark .topbar__nav .nav-item,
body.theme-dark .topbar__actions-item {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

body.theme-light .brand-title,
body.theme-light .brand-subtitle,
body.theme-light .topbar__nav .nav-item,
body.theme-light .topbar__actions-item {
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7);
}

.topbar__menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    transition: var(--transition);
    margin-left: auto;
    cursor: pointer;
}

.topbar__menu-toggle:hover,
.topbar__menu-toggle:focus-visible {
    background: rgba(var(--subtheme-primary-rgb), 0.12);
    border-color: rgba(var(--subtheme-primary-rgb), 0.35);
}

.topbar__menu-toggle:focus-visible {
    outline: 2px solid rgba(var(--subtheme-primary-rgb), 0.45);
    outline-offset: 2px;
}

.nav-item:hover {
    background: rgba(var(--subtheme-primary-rgb), 0.12);
}

.nav-item.is-active {
    background: var(--topbar-active-bg);
    color: var(--topbar-active-text);
    box-shadow: inset 0 0 0 1px var(--topbar-active-border), var(--topbar-active-shadow);
    font-weight: 600;
}

.topbar__actions {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: 0;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end;
    --topbar-actions-border-color: rgba(var(--subtheme-primary-rgb), 0.28);
    --topbar-actions-shadow: 0 16px 32px rgba(12, 16, 40, 0.16);
}

.topbar__actions > * {
    flex-shrink: 0;
}

.topbar__actions-item {
    border-radius: var(--radius-pill) !important;
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--topbar-actions-border-color);
    box-shadow: var(--topbar-actions-shadow);
    background: rgba(var(--shell-chrome-surface-rgb, 255, 255, 255), 0.92);
    backdrop-filter: blur(6px);
}

body.theme-dark .topbar__actions-item {
    background: rgba(22, 24, 46, 0.88);
}

body.theme-dark .topbar__actions {
    --topbar-actions-border-color: rgba(var(--subtheme-secondary-rgb), 0.45);
    --topbar-actions-shadow: 0 20px 38px rgba(2, 6, 20, 0.58);
}

.topbar__actions-item .language-switch__btn,
.theme-picker__toggle.topbar__actions-item,
.topbar__actions-item .session-monitor__metric,
.topbar__actions-item .session-monitor__icon {
    text-shadow: none;
}

.btn-primary.topbar__actions-item {
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--topbar-actions-border-color) !important;
    border-radius: var(--radius-pill);
    box-shadow: var(--topbar-actions-shadow);
}

.btn-primary.topbar__actions-item::after {
    border-radius: var(--radius-pill);
}

.topbar__alerts.topbar__actions-item {
    width: auto;
    min-width: 3rem;
    justify-content: center;
    padding: 0.6rem;
    height: auto;
}

.user-chip__summary.topbar__actions-item {
    width: auto;
}

.topbar__alerts {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--topbar-actions-border-color);
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.18), rgba(var(--subtheme-secondary-rgb), 0.14));
    color: var(--color-text);
    box-shadow: var(--topbar-actions-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.topbar__alerts:hover,
.topbar__alerts:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(var(--subtheme-primary-rgb), 0.28);
    outline: none;
}

.topbar__alerts-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #ff8a65, #ff5370);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 22px rgba(255, 83, 112, 0.35);
}

.session-monitor {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.9rem;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(var(--subtheme-secondary-rgb), 0.18));
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.2);
    box-shadow: 0 18px 36px rgba(26, 26, 46, 0.12);
    position: relative;
    overflow: hidden;
    color: var(--color-text);
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.session-monitor::after {
    content: '';
    position: absolute;
    inset: -40% auto auto -20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(var(--subtheme-primary-rgb), 0.18), rgba(255, 255, 255, 0));
    pointer-events: none;
    filter: blur(12px);
    opacity: 0.8;
}

.session-monitor__metric {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.session-monitor__metric--clock {
    font-weight: 500;
    color: var(--color-muted);
}

.session-monitor__metric--activity {
    color: var(--color-muted);
}

.session-monitor__metric--activity .session-monitor__value,
.session-monitor__metric--clock .session-monitor__value {
    color: inherit;
}

.session-monitor__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(var(--subtheme-primary-rgb), 0.18);
    color: var(--color-primary);
    font-size: 0.9rem;
    box-shadow: 0 6px 18px rgba(var(--subtheme-primary-rgb), 0.28);
}

.session-monitor__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

.session-monitor__value {
    font-variant-numeric: tabular-nums;
}

body.theme-dark .session-monitor {
    background: linear-gradient(135deg, rgba(36, 36, 54, 0.92), rgba(72, 83, 140, 0.42));
    border-color: rgba(var(--subtheme-secondary-rgb), 1);
    border-width: 1px;
    box-shadow: none;
}

body.theme-dark .session-monitor__metric--clock {
    color: rgba(224, 230, 255, 0.75);
}

body.theme-dark .session-monitor__metric--activity {
    color: rgba(224, 230, 255, 0.75);
}

body.theme-dark .session-monitor__icon {
    background: rgba(var(--subtheme-secondary-rgb), 0.18);
    color: rgba(var(--subtheme-secondary-rgb), 0.95);
    box-shadow: 0 6px 18px rgba(12, 24, 60, 0.6);
}

.language-switch {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--topbar-actions-border-color);
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.18), rgba(var(--subtheme-secondary-rgb), 0.12));
    box-shadow: var(--topbar-actions-shadow);
}

.language-switch__btn {
    border: none;
    background: transparent;
    color: rgba(var(--color-text), 0.7);
    padding: 0.5rem 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.language-switch__btn:hover,
.language-switch__btn:focus-visible {
    background: rgba(var(--subtheme-primary-rgb), 0.15);
    color: var(--color-primary);
}

.language-switch__btn.is-active {
    background: rgba(var(--subtheme-primary-rgb), 0.22);
    color: var(--color-primary);
}

button.language-switch__btn.is-active {
    border-radius: 35px;
}

.language-switch__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--subtheme-secondary-rgb), 0.4);
    border-radius: inherit;
}

body.theme-dark .language-switch {
    background: linear-gradient(135deg, rgba(26, 32, 56, 0.92), rgba(var(--subtheme-primary-rgb), 0.28));
    border-color: var(--topbar-actions-border-color);
    box-shadow: var(--topbar-actions-shadow);
}

body.theme-dark .language-switch__btn {
    color: rgba(238, 241, 255, 0.85);
}

body.theme-dark .language-switch__btn.is-active {
    color: rgba(var(--subtheme-secondary-rgb), 0.9);
}

.theme-picker {
    position: relative;
    display: flex;
    align-items: stretch;
}

.theme-picker__toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.2), rgba(var(--subtheme-secondary-rgb), 0.14));
    box-shadow: var(--topbar-actions-shadow);
    border: 1px solid var(--topbar-actions-border-color);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.theme-picker__toggle:hover,
.theme-picker__toggle:focus-visible {
    transform: translateY(-2px);
    border-color: var(--topbar-actions-border-color);
    box-shadow: 0 20px 45px rgba(var(--subtheme-primary-rgb), 0.26);
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.26), rgba(var(--subtheme-secondary-rgb), 0.18));
}

.theme-picker__toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--subtheme-secondary-rgb), 0.4), 0 20px 45px rgba(var(--subtheme-primary-rgb), 0.26);
}

.theme-picker__preview {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.8), rgba(var(--subtheme-secondary-rgb), 0.8));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 18px rgba(26, 26, 46, 0.25);
    flex-shrink: 0;
    position: relative;
}

.theme-picker__preview::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0.85;
    pointer-events: none;
}

.theme-picker__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.theme-picker__label {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.theme-picker__value {
    font-size: 0.9rem;
    font-weight: 600;
}

.theme-picker__chevron {
    font-size: 0.75rem;
    opacity: 0.7;
    transform: translateY(1px);
}

.theme-picker__menu {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(420px, 80vw);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 30px 60px rgba(26, 26, 46, 0.18);
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
    z-index: 120;
    transform-origin: top right;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.32s ease;
}

.theme-picker__menu[hidden] {
    display: none !important;
}

.theme-picker__menu.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.theme-picker__section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.theme-picker__section--performance {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(var(--subtheme-primary-rgb), 0.12);
    margin-top: 0.35rem;
    gap: 0.65rem;
}

.theme-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: rgba(var(--subtheme-primary-rgb), 0.06);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.theme-switch:hover,
.theme-switch:focus-within {
    border-color: rgba(var(--subtheme-primary-rgb), 0.32);
    box-shadow: 0 16px 28px rgba(var(--subtheme-primary-rgb), 0.12);
    background: rgba(var(--subtheme-primary-rgb), 0.08);
}

.theme-switch__control {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(var(--subtheme-primary-rgb), 0.24);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.theme-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 12px rgba(26, 26, 46, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-switch__input:checked + .theme-switch__control {
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.55), rgba(var(--subtheme-secondary-rgb), 0.45));
}

.theme-switch__input:checked + .theme-switch__control .theme-switch__thumb {
    transform: translateX(20px);
    box-shadow: 0 6px 12px rgba(var(--subtheme-primary-rgb), 0.35);
}

.theme-switch__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.theme-switch__title {
    font-size: 0.95rem;
    font-weight: 600;
}

.theme-switch__hint {
    font-size: 0.8rem;
    color: var(--color-muted);
    line-height: 1.4;
}

.theme-picker__section-label {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.theme-picker__options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.6rem;
}

.theme-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.28s ease, background 0.28s ease;
}

.theme-option:hover,
.theme-option:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(var(--subtheme-primary-rgb), 0.45);
    box-shadow: 0 16px 30px rgba(26, 26, 46, 0.16);
    outline: none;
}

.theme-option.is-selected {
    border-color: rgba(var(--subtheme-primary-rgb), 0.6);
    box-shadow: 0 18px 34px rgba(26, 26, 46, 0.18);
    background: rgba(255, 255, 255, 0.95);
}

.theme-option.is-current::after {
    content: 'Activo';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(26, 26, 46, 0.6);
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-pill);
    padding: 0.15rem 0.35rem;
}

.theme-option__swatch {
    width: 2rem;
    height: 2rem;
    border-radius: 0.8rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 20px rgba(26, 26, 46, 0.18);
    flex-shrink: 0;
}

.theme-option__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.theme-option__name {
    font-size: 0.85rem;
    font-weight: 600;
}

.theme-picker.is-open .theme-picker__toggle .theme-picker__chevron {
    transform: rotate(180deg);
}

.theme-picker.is-open .theme-picker__toggle {
    border-color: rgba(var(--subtheme-primary-rgb), 0.6);
    box-shadow: 0 16px 34px rgba(26, 26, 46, 0.16);
    background: rgba(255, 255, 255, 0.2);
}

body.theme-dark .theme-picker__toggle {
    background: rgba(18, 18, 32, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #eef1ff;
}

body.theme-dark .theme-picker__toggle:hover,
body.theme-dark .theme-picker__toggle:focus-visible {
    background: rgba(30, 30, 48, 0.8);
    border-color: rgba(var(--subtheme-secondary-rgb), 0.4);
    box-shadow: 0 12px 30px rgba(4, 12, 32, 0.45);
}

body.theme-dark .theme-picker.is-open .theme-picker__toggle {
    background: rgba(32, 32, 58, 0.9);
    box-shadow: 0 18px 38px rgba(2, 6, 20, 0.65);
    border-color: rgba(var(--subtheme-secondary-rgb), 0.55);
}

body.theme-dark .theme-picker__preview {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 18px rgba(0, 0, 0, 0.45);
}

body.theme-dark .theme-picker__menu {
    background: rgba(14, 14, 26, 0.96);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 32px 68px rgba(0, 0, 0, 0.6);
}

body.theme-dark .theme-picker__section-label {
    color: rgba(222, 228, 255, 0.6);
}

body.theme-dark .theme-option {
    background: rgba(22, 22, 38, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #eef1ff;
}

body.theme-dark .theme-option:hover,
body.theme-dark .theme-option:focus-visible {
    box-shadow: 0 18px 32px rgba(2, 6, 20, 0.65);
}

body.theme-dark .theme-switch {
    background: rgba(24, 24, 40, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .theme-switch:hover,
body.theme-dark .theme-switch:focus-within {
    border-color: rgba(var(--subtheme-secondary-rgb), 0.4);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
    background: rgba(34, 34, 58, 0.85);
}

body.theme-dark .theme-switch__control {
    background: rgba(255, 255, 255, 0.18);
}

body.theme-dark .theme-switch__thumb {
    background: rgba(12, 14, 24, 0.95);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}

body.theme-dark .theme-switch__input:checked + .theme-switch__control .theme-switch__thumb {
    box-shadow: 0 6px 12px rgba(var(--subtheme-secondary-rgb), 0.4);
}

body.theme-dark .theme-switch__hint {
    color: rgba(222, 228, 255, 0.68);
}

body.is-low-profile *,
body.is-low-profile *::before,
body.is-low-profile *::after {
    transition: none !important;
    animation: none !important;
}

body.is-low-profile .theme-picker__toggle,
body.is-low-profile .theme-picker__menu,
body.is-low-profile .theme-switch,
body.is-low-profile .info-card,
body.is-low-profile .course-card,
body.is-low-profile .course-overview__icon,
body.is-low-profile .block-pill,
body.is-low-profile .syllabus-block,
body.is-low-profile .btn-glow,
body.is-low-profile .btn-primary,
body.is-low-profile .btn-outline,
body.is-low-profile .btn-ghost,
body.is-low-profile .course-card__button,
body.is-low-profile .lesson-widget,
body.is-low-profile .notifications-panel,
body.is-low-profile .toast,
body.is-low-profile .aw-dialog,
body.is-low-profile .stat-card,
body.is-low-profile .course-review__icon,
body.is-low-profile .session-monitor__icon,
body.is-low-profile .topbar__actions-item,
body.is-low-profile .course-card__media {
    box-shadow: none !important;
    background-image: none !important;
}

body.is-low-profile .theme-picker__toggle,
body.is-low-profile .theme-picker__menu,
body.is-low-profile .theme-switch,
body.is-low-profile .info-card,
body.is-low-profile .course-card,
body.is-low-profile .syllabus-block,
body.is-low-profile .course-card__button,
body.is-low-profile .notifications-panel,
body.is-low-profile .toast,
body.is-low-profile .aw-dialog,
body.is-low-profile .course-overview__icon {
    background: var(--color-surface) !important;
}

body.is-low-profile .theme-picker__toggle,
body.is-low-profile .theme-picker__menu,
body.is-low-profile .theme-switch,
body.is-low-profile .info-card,
body.is-low-profile .course-card,
body.is-low-profile .syllabus-block,
body.is-low-profile .course-card__button,
body.is-low-profile .notifications-panel,
body.is-low-profile .toast,
body.is-low-profile .aw-dialog,
body.is-low-profile .course-overview__icon,
body.is-low-profile .course-card__button {
    border-color: rgba(var(--color-text-rgb, 26, 26, 46), 0.12) !important;
}

body.theme-dark.is-low-profile .theme-picker__toggle,
body.theme-dark.is-low-profile .theme-picker__menu,
body.theme-dark.is-low-profile .theme-switch,
body.theme-dark.is-low-profile .info-card,
body.theme-dark.is-low-profile .course-card,
body.theme-dark.is-low-profile .syllabus-block,
body.theme-dark.is-low-profile .notifications-panel,
body.theme-dark.is-low-profile .toast,
body.theme-dark.is-low-profile .aw-dialog,
body.theme-dark.is-low-profile .course-overview__icon,
body.theme-dark.is-low-profile .course-card__button {
    border-color: rgba(238, 241, 255, 0.15) !important;
}

body.is-low-profile .theme-switch__control {
    background: rgba(var(--subtheme-primary-rgb), 0.18);
}

body.is-low-profile .theme-switch__thumb {
    box-shadow: none;
}

body.is-low-profile .course-card::before,
body.is-low-profile .course-card::after {
    display: none;
}

body.is-low-profile .course-card:hover,
body.is-low-profile .course-card:focus-within {
    transform: none;
}

body.is-low-profile .course-card__media--placeholder::after {
    mix-blend-mode: normal;
    opacity: 0.35;
}

body.is-low-profile .block-pill,
body.is-low-profile .course-overview__icon {
    border-color: rgba(var(--color-text-rgb, 26, 26, 46), 0.08) !important;
}

body.theme-dark.is-low-profile .block-pill,
body.theme-dark.is-low-profile .course-overview__icon {
    border-color: rgba(238, 241, 255, 0.12) !important;
}

body.theme-dark .theme-option.is-selected {
    background: rgba(28, 28, 46, 0.95);
    border-color: rgba(var(--subtheme-secondary-rgb), 0.55);
    box-shadow: 0 20px 38px rgba(2, 6, 20, 0.68);
}

body.theme-dark .theme-option.is-current::after {
    background: rgba(var(--subtheme-secondary-rgb), 0.2);
    color: rgba(224, 236, 255, 0.85);
}

.btn-primary,
.btn-ghost,
.btn-glow,
.btn-outline,
.btn-danger {
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.35s ease, background-position 0.45s ease, color 0.35s ease, border-color 0.35s ease;
    padding: 0.7rem 1.2rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

.btn-primary::after,
.btn-outline::after,
.btn-glow::after,
.btn-danger::after,
.btn-ghost::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.35), transparent 60%);
    opacity: 0;
    transform: translate3d(0, 12%, 0) scale(0.8);
    transition: opacity 0.4s ease, transform 0.45s ease;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

.btn-primary {
    background: var(--subtheme-gradient);
    color: #fff;
    box-shadow: var(--subtheme-shadow-soft);
    background-size: 140% 140%;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-2px);
    background-position: 100% 0;
}

.btn-primary:focus-visible {
    box-shadow: var(--subtheme-focus-ring);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.btn-ghost {
    background: transparent;
    color: var(--color-muted);
    border: 1px solid transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    color: var(--subtheme-primary);
    border-color: rgba(var(--subtheme-primary-rgb), 0.2);
    transform: translateY(-1px);
}

.btn-ghost:focus-visible {
    box-shadow: var(--subtheme-focus-ring);
}

.btn-ghost.theme-picker__toggle,
.btn-ghost.theme-picker__toggle:hover,
.btn-ghost.theme-picker__toggle:focus-visible {
    border-color: var(--topbar-actions-border-color);
    box-shadow: var(--topbar-actions-shadow);
}

.btn-outline {
    border: 1px solid var(--subtheme-border);
    background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    border-color: rgba(var(--subtheme-primary-rgb), 0.45);
    color: var(--subtheme-primary);
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(var(--subtheme-primary-rgb), 0.18);
}

.btn-outline:focus-visible {
    box-shadow: var(--subtheme-focus-ring);
}

.btn-glow {
    background: var(--subtheme-gradient-accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(var(--subtheme-accent-rgb), 0.35);
    background-size: 150% 150%;
}

.btn-glow:hover,
.btn-glow:focus-visible {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 60px rgba(var(--subtheme-accent-rgb), 0.35);
    background-position: 80% 0;
}

.btn-glow:focus-visible {
    box-shadow: var(--subtheme-focus-ring), 0 24px 60px rgba(var(--subtheme-accent-rgb), 0.35);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-danger), #ff9e9e);
    color: #fff;
    box-shadow: 0 14px 28px rgba(255, 107, 107, 0.35);
}

.btn-danger:hover,
.btn-danger:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(255, 107, 107, 0.35);
}

.btn-danger:active,
.btn-glow:active,
.btn-outline:active,
.btn-primary:active,
.btn-ghost:active {
    transform: translateY(1px) scale(0.99);
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after,
.btn-outline:hover::after,
.btn-outline:focus-visible::after,
.btn-glow:hover::after,
.btn-glow:focus-visible::after,
.btn-danger:hover::after,
.btn-danger:focus-visible::after,
.btn-ghost:hover::after,
.btn-ghost:focus-visible::after {
    opacity: 0.85;
    transform: translate3d(0, 0, 0) scale(1.05);
}

.btn-ghost::after {
    background: radial-gradient(circle at 50% 0%, rgba(var(--subtheme-primary-rgb), 0.25), transparent 65%);
}

.btn-outline::after {
    background: radial-gradient(circle at 50% 0%, rgba(var(--subtheme-primary-rgb), 0.25), transparent 60%);
}

.btn-glow::after {
    background: radial-gradient(circle at 50% 0%, rgba(var(--subtheme-accent-rgb), 0.3), transparent 65%);
}

.btn-danger::after {
    background: radial-gradient(circle at 50% 0%, rgba(255, 150, 150, 0.35), transparent 65%);
}

.btn-outline:focus-visible,
.btn-glow:focus-visible,
.btn-danger:focus-visible,
.btn-ghost:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--subtheme-secondary-rgb), 0.35);
}

.btn-full {
    width: 100%;
}

.user-chip {
    position: relative;
    display: inline-flex;
}

.user-chip[hidden] {
    display: none !important;
}

.user-chip__summary {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--topbar-actions-border-color);
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.22), rgba(var(--subtheme-secondary-rgb), 0.16));
    color: inherit;
    cursor: pointer;
    font: inherit;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    box-shadow: var(--topbar-actions-shadow);
}

.user-chip__summary:hover,
.user-chip__summary:focus-visible,
.user-chip.is-open .user-chip__summary {
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.3), rgba(var(--subtheme-secondary-rgb), 0.2));
    box-shadow: 0 18px 32px rgba(var(--subtheme-primary-rgb), 0.25);
    transform: translateY(-1px);
    border-color: var(--topbar-actions-border-color);
}

.user-chip__summary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--subtheme-secondary-rgb), 0.4), 0 18px 32px rgba(var(--subtheme-primary-rgb), 0.25);
}

.user-chip__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.user-chip__meta {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    text-align: left;
}

.user-chip__chevron {
    font-size: 0.8rem;
    color: var(--color-muted);
    display: flex;
    align-items: center;
}

.user-chip__menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 180px;
    padding: 0.5rem 0;
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, rgba(12, 16, 42, 0.33), rgba(var(--subtheme-secondary-rgb), 0.82));
    color: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--subtheme-analog-1);
    box-shadow: 0 18px 42px rgba(6, 9, 24, 0.45);
    display: none;
    z-index: 40;
    backdrop-filter: blur(18px);
}

.user-chip.is-open .user-chip__menu {
    display: block;
    animation: fadeInUp 0.18s ease forwards;
}

.user-chip__menu-item {
    width: 100%;
    padding: 0.6rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.user-chip__menu-item:hover,
.user-chip__menu-item:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    outline: none;
}

.user-chip__menu-item--logout {
    color: rgba(255, 192, 192, 0.92);
}

.user-chip__menu-item--logout:hover,
.user-chip__menu-item--logout:focus-visible {
    color: #fff;
    background: rgba(255, 94, 94, 0.85);
}

#mainContent {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 2.5rem;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
    position: relative;
}

.hero--landing {
    padding: clamp(2.5rem, 6vw, 4rem);
    border-radius: calc(var(--radius-lg) * 1.25);
    background: var(--gradient-hero);
    border: 1px solid var(--hero-border-light);
    box-shadow: var(--glow-hero-edge);
    overflow: hidden;
    isolation: isolate;
}

body.theme-dark .hero--landing {
    border-color: var(--hero-border-dark);
}

.hero--landing::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(var(--subtheme-secondary-rgb), 0.28), rgba(var(--subtheme-secondary-rgb), 0) 55%);
    opacity: 0.6;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

body.theme-dark .hero--landing::after {
    background: radial-gradient(circle at 18% 18%, rgba(var(--subtheme-primary-rgb), 0.4), rgba(9, 9, 16, 0) 60%);
    opacity: 0.5;
    mix-blend-mode: lighten;
}

.hero__backdrop {
    position: absolute;
    inset: -15%;
    z-index: 0;
    pointer-events: none;
    filter: saturate(120%);
}

body.theme-dark .hero__backdrop {
    filter: saturate(145%) brightness(0.92);
}

.hero__particles {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.5;
}

body.theme-dark .hero__particles {
    opacity: 0.42;
    mix-blend-mode: screen;
}

.hero__aurora {
    position: absolute;
    width: clamp(240px, 38vw, 420px);
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at center, rgba(var(--subtheme-secondary-rgb), 0.55), rgba(var(--subtheme-secondary-rgb), 0) 70%);
    filter: blur(0);
    animation: auroraDrift 22s ease-in-out infinite;
}

.hero__aurora--primary {
    top: 8%;
    left: 10%;
}

.hero__aurora--secondary {
    bottom: 12%;
    right: 18%;
    animation-duration: 26s;
    animation-direction: reverse;
    background: radial-gradient(circle at center, rgba(var(--subtheme-primary-rgb), 0.48), rgba(var(--subtheme-primary-rgb), 0) 70%);
}

.hero__aurora--accent {
    top: 38%;
    right: 48%;
    animation-duration: 18s;
    background: radial-gradient(circle at center, rgba(var(--subtheme-accent-rgb), 0.45), rgba(var(--subtheme-accent-rgb), 0) 75%);
}

body.theme-dark .hero__aurora--primary {
    background: radial-gradient(circle at center, rgba(var(--subtheme-primary-rgb), 0.5), rgba(var(--subtheme-primary-rgb), 0) 75%);
}

body.theme-dark .hero__aurora--accent {
    background: radial-gradient(circle at center, rgba(var(--subtheme-accent-rgb), 0.4), rgba(var(--subtheme-accent-rgb), 0) 75%);
}

.hero__copy,
.hero__widgets {
    position: relative;
    z-index: 1;
}

.hero__copy {
    color: var(--color-text);
}

.hero__copy h1,
.hero__copy h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero__copy p {
    font-size: 1.1rem;
    color: inherit;
    text-shadow: none;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    background: rgba(var(--subtheme-accent-rgb), 0.18);
    border: 1px solid rgba(var(--subtheme-accent-rgb), 0.32);
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero__lead {
    max-width: 58ch;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(var(--subtheme-text-rgb), 0.9);
}

.hero__cta--triple {
    gap: 1rem;
}

.hero__cta--triple .btn-glow,
.hero__cta--triple .btn-primary,
.hero__cta--triple .btn-outline {
    flex: 1 1 200px;
}

@media (max-width: 640px) {
    .hero__cta--triple {
        flex-direction: column;
    }

    .hero__cta--triple .btn-glow,
    .hero__cta--triple .btn-primary,
    .hero__cta--triple .btn-outline {
        width: 100%;
    }
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero__widgets {
    display: grid;
    gap: 1.5rem;
}

.widget {
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    background-size: 160% 160%;
    position: relative;
    overflow: hidden;
}

.widget--gradient {
    background: linear-gradient(140deg, rgba(var(--subtheme-primary-rgb), 0.9), rgba(var(--subtheme-secondary-rgb), 0.85));
    color: #fff;
    animation: widgetFloat 7.5s ease-in-out infinite;
}

.widget--glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    animation: shimmerPulse 9s ease-in-out infinite;
}

body.theme-dark .widget--glass {
    background: rgba(34, 34, 58, 0.6);
}

.widget--dark {
    background: rgba(17, 17, 29, 0.92);
    color: #fff;
    animation: widgetFloat 10s ease-in-out infinite;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.info-card {
    padding: 1.6rem;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.info-card__icon {
    font-size: 86px;
    height: auto;
    width: 100%;
    color: var(--analog-icon-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card__icon i {
    color: inherit;
}

.info-card::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -40%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(var(--subtheme-secondary-rgb), 0.55), transparent 70%);
    transform: none;
    transition: opacity 0.6s ease;
    opacity: 0;
}

.info-card h3 {
    margin-top: 0;
    text-align: center !important;
}

.info-card p {
    text-align: justify;
}

.landing-duo > article.neon-panel.is-visible:first-child {
    margin-bottom: 35px;
}

.info-card:hover::before,
.info-card:focus-within::before {
    opacity: 1;
}

.info-card:hover,
.info-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(26, 26, 46, 0.22);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline__header h2 {
    margin: 0 0 0.5rem;
    font-size: 2.2rem;
}

.timeline__blocks {
    display: grid;
    gap: 1.5rem;
}

.block-widget {
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
}

.block-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.badge {
    background: rgba(var(--subtheme-primary-rgb), 0.15);
    color: var(--subtheme-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.badge--glow {
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.92), rgba(var(--subtheme-secondary-rgb), 0.55));
    color: #f5f9ff;
    box-shadow: 0 18px 42px rgba(var(--subtheme-primary-rgb), 0.35);
}

body.theme-dark .badge--glow {
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.88), rgba(var(--subtheme-secondary-rgb), 0.42));
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 26px 60px rgba(9, 9, 16, 0.65);
}

.lesson-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--color-border);
    margin-bottom: 0.8rem;
}

body.theme-dark .lesson-chip {
    background: rgba(36, 36, 54, 0.6);
}

.lesson-chip--completed {
    border-color: var(--color-success);
    box-shadow: 0 0 0 2px rgba(74, 217, 145, 0.25);
}

.lesson-chip__meta h4 {
    margin: 0 0 0.4rem;
}

.lesson-detail {
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

.lesson-panel header h3 {
    margin-top: 0;
    font-size: 1.8rem;
}

.lesson-panel footer {
    margin-top: 1.5rem;
}

.lesson-detail .placeholder {
    color: var(--color-muted);
    text-align: center;
    padding: 3rem 1rem;
}

.code-demo pre {
    background: rgba(17, 17, 29, 0.92);
    color: #f1f5ff;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 0.9rem;
}

.quizzes {
    display: grid;
    gap: 2rem;
}

.quizzes__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}


.profile-area__widgets {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.profile-widget {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(var(--subtheme-secondary-rgb), 0.12));
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.18);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--subtheme-shadow-soft);
    overflow: hidden;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.55s ease, border-color 0.45s ease, background 0.6s ease;
    isolation: isolate;
}

.profile-widget::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle at center, rgba(var(--subtheme-primary-rgb), 0.45), rgba(255, 255, 255, 0));
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s ease;
    z-index: -1;
    pointer-events: none;
}

.profile-widget::after {
    content: '';
    position: absolute;
    inset: auto -30% -45% 35%;
    height: 60%;
    background: radial-gradient(circle at bottom right, rgba(var(--subtheme-secondary-rgb), 0.3), rgba(255, 255, 255, 0));
    opacity: 0;
    transform: none;
    transition: opacity 0.6s ease;
    z-index: -1;
    pointer-events: none;
}

.profile-widget:hover,
.profile-widget:focus-within {
    transform: translateY(-8px);
    box-shadow: var(--subtheme-shadow-strong);
    border-color: rgba(var(--subtheme-primary-rgb), 0.45);
}

.profile-widget:hover::before,
.profile-widget:focus-within::before {
    opacity: 1;
}

.profile-widget:hover::after,
.profile-widget:focus-within::after {
    opacity: 1;
}

.profile-widget.is-celebrating {
    animation: celebratePulse 1.3s ease;
}

body.theme-dark .profile-widget {
    background: linear-gradient(145deg, rgba(28, 28, 44, 0.92), rgba(var(--subtheme-primary-rgb), 0.22));
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .profile-widget::before {
    background: radial-gradient(circle at center, rgba(var(--subtheme-secondary-rgb), 0.42), rgba(28, 28, 44, 0));
}

body.theme-dark .profile-widget::after {
    background: radial-gradient(circle at bottom right, rgba(var(--subtheme-primary-rgb), 0.4), rgba(28, 28, 44, 0));
}

.profile-widget__avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-widget__avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(var(--subtheme-primary-rgb), 0.35);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.profile-widget:hover .profile-widget__avatar img,
.profile-widget:focus-within .profile-widget__avatar img {
    transform: scale(1.04) rotate(-1deg);
    box-shadow: 0 20px 45px rgba(var(--subtheme-primary-rgb), 0.45);
}

.avatar-actions {
    display: flex;
    gap: 0.8rem;
}

.profile-widget__info {
    margin-top: 1rem;
}

.profile-progress {
    margin-top: 1rem;
    display: grid;
    gap: 0.4rem;
}

.profile-progress__courses {
    margin-top: 0.75rem;
    width: 100%;
    display: grid;
    gap: 0.65rem;
}

.profile-progress__legend {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-muted);
    letter-spacing: 0.015em;
}

.profile-progress__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.profile-progress__course {
    background: rgba(var(--subtheme-primary-rgb), 0.12);
    border: 1px solid rgba(var(--subtheme-analog-2-rgb), 0.24);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.9rem;
    display: grid;
    gap: 0.45rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-progress__course:hover,
.profile-progress__course:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(var(--subtheme-analog-1-rgb), 0.22);
}

.profile-progress__course.is-empty {
    background: rgba(var(--color-muted-rgb, 91, 97, 113), 0.08);
    border-style: dashed;
    border-color: rgba(var(--color-muted-rgb, 91, 97, 113), 0.35);
    color: var(--color-muted);
    box-shadow: none;
}

body.theme-dark .profile-progress__course {
    background: rgba(var(--subtheme-analog-1-rgb), 0.18);
    border-color: rgba(var(--subtheme-analog-2-rgb), 0.35);
}

body.theme-dark .profile-progress__course.is-empty {
    background: rgba(var(--color-muted-rgb, 91, 97, 113), 0.2);
    border-color: rgba(var(--color-muted-rgb, 91, 97, 113), 0.45);
    color: rgba(255, 255, 255, 0.72);
}

.profile-progress__course-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.profile-progress__course-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.profile-progress__course-percent {
    font-size: 0.85rem;
    color: rgba(var(--color-text-rgb, 26, 26, 46), 0.7);
}

body.theme-dark .profile-progress__course-percent {
    color: rgba(255, 255, 255, 0.75);
}

.profile-progress__course-meta {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(var(--color-text-rgb, 26, 26, 46), 0.68);
}

body.theme-dark .profile-progress__course-meta {
    color: rgba(255, 255, 255, 0.7);
}

.progress-bar--inline {
    height: 8px;
    background: rgba(var(--subtheme-analog-1-rgb), 0.18);
}

.progress-bar--inline .progress-bar__fill {
    background: linear-gradient(90deg, var(--subtheme-analog-1), var(--subtheme-analog-2));
}

.progress-bar {
    width: 100%;
    background: rgba(var(--subtheme-primary-rgb), 0.12);
    border-radius: 999px;
    overflow: hidden;
    height: 10px;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--subtheme-primary), var(--subtheme-secondary));
    width: 0;
    transition: width 0.4s ease;
}

.progress-bar__fill.is-boosted {
    animation: progressGlow 1.2s ease;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--color-muted);
    letter-spacing: 0.02em;
}

.profile-disclaimer {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(var(--color-text), 0.78);
    background: rgba(var(--subtheme-primary-rgb), 0.12);
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-md);
}

.profile-alerts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.profile-alerts__item {
    background: rgba(var(--subtheme-primary-rgb), 0.12);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.25);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.3rem;
}

.profile-alerts__item strong {
    font-size: 1rem;
}

.profile-alerts__item a {
    color: var(--subtheme-primary);
    text-decoration: underline;
}

.profile-alerts__empty {
    margin: 0.5rem 0 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.field-group {
    display: flex;
    gap: 1rem;
}

.field-group label {
    flex: 1;
}

label input:not([type="radio"]):not([type="checkbox"]),
label textarea {
    width: 100%;
    padding: 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-family: inherit;
    font-size: 0.95rem;
}

.quiz-option input,
.quiz-option textarea {
    width: auto;
}

.page-header {
    display: grid;
    gap: 0.5rem;
    max-width: 760px;
}

.page-header--course {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: none;
}

.page-header__content {
    display: grid;
    gap: 0.75rem;
}

.page-header h1 {
    margin: 0;
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.015em;
    position: relative;
    color: var(--page-heading-color);
    text-shadow: 0 10px 24px rgba(var(--subtheme-primary-rgb), 0.28), 0 5px 14px rgba(26, 26, 46, 0.18);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .page-header h1 {
        background-image: var(--page-heading-gradient);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }
}

@supports (-webkit-text-fill-color: transparent) {
    .page-header h1 {
        -webkit-text-fill-color: transparent;
    }
}

.page-header h1::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
}

.page-header h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: clamp(80px, 16vw, 140px);
    height: 6px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--subtheme-highlight-a), var(--subtheme-highlight-b));
    box-shadow: 0 12px 24px rgba(var(--subtheme-secondary-rgb), 0.35);
}

body.theme-dark .page-header h1 {
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 8px 22px rgba(var(--subtheme-secondary-rgb), 0.28);
}

body.is-low-profile .page-header h1 {
    text-shadow: none;
}

body.is-low-profile .page-header h1::after {
    box-shadow: none;
}

.page-header p {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.1rem;
}

.page-header__banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(9, 12, 32, 0.28);
    background: linear-gradient(135deg, rgba(var(--subtheme-highlight-a-rgb), 0.45), rgba(var(--subtheme-highlight-b-rgb), 0.32));
}

.page-header__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-header__banner--placeholder {
    position: relative;
}

.page-header__banner--placeholder span {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(var(--subtheme-highlight-a-rgb), 0.28) 0, rgba(var(--subtheme-highlight-a-rgb), 0.28) 12px, rgba(var(--subtheme-highlight-b-rgb), 0.28) 12px, rgba(var(--subtheme-highlight-b-rgb), 0.28) 24px);
    opacity: 0.65;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.landing-about {
    display: grid;
    gap: clamp(2rem, 6vw, 3.5rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
    margin-top: clamp(3rem, 8vw, 4.5rem);
    padding: clamp(2.5rem, 7vw, 3.5rem);
    background: linear-gradient(135deg, rgba(var(--subtheme-secondary-rgb), 0.16), rgba(var(--subtheme-primary-rgb), 0.1));
    border-radius: calc(var(--radius-lg) * 1.1);
    border: 1px solid rgba(var(--subtheme-secondary-rgb), 0.28);
    box-shadow: 0 32px 65px rgba(20, 24, 45, 0.16);
    position: relative;
    overflow: hidden;
}

.landing-about::after {
    content: '';
    position: absolute;
    inset: 12% -35% -18% 45%;
    background: radial-gradient(circle, rgba(var(--subtheme-highlight-a-rgb), 0.22), rgba(var(--subtheme-highlight-a-rgb), 0));
    pointer-events: none;
    opacity: 0.6;
}

.landing-about__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.landing-about__quote {
    margin: 0;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--subtheme-secondary-rgb), 0.28);
    background: rgba(var(--subtheme-secondary-rgb), 0.16);
    color: rgba(var(--subtheme-text-rgb), 0.88);
    font-style: italic;
    box-shadow: 0 18px 42px rgba(12, 16, 32, 0.18);
}

.landing-about__quote p {
    margin: 0;
}

.landing-about__content h2 {
    font-size: clamp(2rem, 5vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.landing-about__highlights {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.landing-about__highlights strong {
    display: block;
    color: rgba(var(--subtheme-text-rgb), 0.82);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.landing-about__highlights span {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(var(--subtheme-primary-rgb), 0.14);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.24);
    color: rgba(var(--subtheme-text-rgb), 0.9);
}

.landing-about__portrait {
    position: relative;
    display: grid;
    place-items: center;
    gap: 0.75rem;
    text-align: center;
    color: var(--color-muted);
}

@media (min-width: 992px) {
    .landing-about {
        grid-template-columns: minmax(0, 66.66%) minmax(0, 33.34%);
    }

    .landing-about__content {
        width: 100%;
        max-width: 100%;
    }

    .landing-about__content.is-visible {
        width: 100%;
    }

    .landing-about__portrait {
        width: 100%;
        justify-self: center;
    }

    .landing-about__portrait.is-visible {
        width: 100%;
        max-width: 100%;
    }
}

.landing-about__portrait-frame {
    width: clamp(220px, 40vw, 320px);
    aspect-ratio: 3 / 4;
    border-radius: clamp(28px, 6vw, 42px);
    background: linear-gradient(160deg, rgba(var(--subtheme-primary-rgb), 0.45), rgba(var(--subtheme-secondary-rgb), 0.35));
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.38);
    box-shadow: 0 28px 65px rgba(20, 24, 45, 0.22);
    position: relative;
    overflow: hidden;
}

.landing-about__portrait-frame::after {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: inherit;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 12px, transparent 12px, transparent 24px);
    opacity: 0.45;
}

.landing-about__portrait-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}

.landing-services {
    margin-top: clamp(3rem, 8vw, 5rem);
    display: grid;
    gap: 2rem;
}

.landing-services header {
    max-width: 780px;
}

.landing-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: linear-gradient(145deg, rgba(var(--subtheme-primary-rgb), 0.12), rgba(var(--subtheme-secondary-rgb), 0.1));
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.22);
    border-radius: calc(var(--radius-lg) * 0.9);
    padding: 2rem;
    box-shadow: 0 24px 55px rgba(17, 19, 37, 0.16);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 32px 75px rgba(16, 18, 36, 0.26);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.service-card li {
    color: rgba(var(--subtheme-text-rgb), 0.88);
}

.service-card li::before {
    content: none;
}

.service-card__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
}

.service-card__icon {
    display: grid;
    place-items: center;
    width: clamp(2.5rem, 6vw, 3rem);
    height: clamp(2.5rem, 6vw, 3rem);
    border-radius: var(--radius-md);
    background: rgba(var(--subtheme-primary-rgb), 0.16);
    color: rgba(var(--subtheme-primary-rgb), 0.95);
    box-shadow: 0 16px 32px rgba(var(--subtheme-primary-rgb), 0.24);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.service-card__label {
    display: inline-block;
    line-height: 1.55;
    color: rgba(var(--subtheme-text-rgb), 0.9);
}

.landing-portfolio {
    margin-top: clamp(3rem, 8vw, 5rem);
    display: grid;
    gap: 2rem;
}

.landing-portfolio__card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: stretch;
    padding: clamp(2rem, 6vw, 3rem);
    background: linear-gradient(150deg, rgba(var(--subtheme-highlight-a-rgb), 0.16), rgba(var(--subtheme-highlight-b-rgb), 0.14));
    border-radius: calc(var(--radius-lg) * 1.1);
    border: 1px solid rgba(var(--subtheme-highlight-a-rgb), 0.28);
    box-shadow: 0 32px 75px rgba(15, 18, 34, 0.18);
    overflow: hidden;
}

.landing-portfolio__visual {
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, rgba(var(--subtheme-primary-rgb), 0.28), rgba(var(--subtheme-secondary-rgb), 0.32));
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.32);
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem;
}

.landing-certifications {
    margin-top: clamp(3rem, 8vw, 5.5rem);
    display: grid;
    gap: 2rem;
}

.landing-certifications__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.35rem;
    border-radius: clamp(18px, 4vw, 28px);
    background: rgba(var(--subtheme-secondary-rgb), 0.18);
    border: 1px solid rgba(var(--subtheme-secondary-rgb), 0.32);
    color: rgba(var(--subtheme-text-rgb), 0.9);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cert-badge__icon {
    display: grid;
    place-items: center;
    width: clamp(2.8rem, 6vw, 3.2rem);
    height: clamp(2.8rem, 6vw, 3.2rem);
    border-radius: 50%;
    background: rgba(var(--subtheme-primary-rgb), 0.22);
    color: rgba(var(--subtheme-primary-rgb), 0.96);
    box-shadow: 0 16px 32px rgba(var(--subtheme-primary-rgb), 0.28);
    font-size: clamp(1.4rem, 3vw, 1.65rem);
}

.cert-badge__icon--text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.12em;
}

.cert-badge--text .cert-badge__icon {
    text-transform: uppercase;
}

.cert-badge__label {
    flex: 1;
}

.landing-certifications__note {
    max-width: 820px;
    color: rgba(var(--subtheme-text-rgb), 0.85);
}

.landing-cta {
    margin-top: clamp(3rem, 8vw, 6rem);
}

.landing-cta__card {
    background: linear-gradient(160deg, rgba(var(--subtheme-primary-rgb), 0.2), rgba(var(--subtheme-secondary-rgb), 0.18));
    border-radius: calc(var(--radius-lg) * 1.2);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.32);
    padding: clamp(2.5rem, 7vw, 3.5rem);
    box-shadow: 0 40px 90px rgba(13, 16, 32, 0.25);
    display: grid;
    gap: 1.5rem;
}

.landing-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.landing-cta__actions .btn-glow,
.landing-cta__actions .btn-primary,
.landing-cta__actions .btn-outline {
    background: var(--subtheme-gradient);
    color: #fff;
    border: none;
    box-shadow: var(--subtheme-shadow-soft);
    background-size: 140% 140%;
}

.landing-cta__actions .btn-glow:hover,
.landing-cta__actions .btn-glow:focus-visible,
.landing-cta__actions .btn-primary:hover,
.landing-cta__actions .btn-primary:focus-visible,
.landing-cta__actions .btn-outline:hover,
.landing-cta__actions .btn-outline:focus-visible {
    transform: translateY(-2px);
    background-position: 100% 0;
}

.landing-cta__actions .btn-glow:focus-visible,
.landing-cta__actions .btn-primary:focus-visible,
.landing-cta__actions .btn-outline:focus-visible {
    box-shadow: var(--subtheme-focus-ring);
}

.landing-cta__actions .btn-glow,
.landing-cta__actions .btn-primary,
.landing-cta__actions .btn-outline {
    flex: 1 1 200px;
}

.landing-cta__note {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(var(--subtheme-text-rgb), 0.8);
}

@media (max-width: 720px) {
    .landing-cta__actions {
        flex-direction: column;
    }

    .landing-cta__actions .btn-glow,
    .landing-cta__actions .btn-primary,
    .landing-cta__actions .btn-outline {
        width: 100%;
    }
}

.landing-showcase {
    display: grid;
    gap: 2rem;
}

.landing-showcase__header {
    max-width: 720px;
}

.landing-showcase__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.45s ease;
}

.stat-card.is-visible {
    animation: statReveal 0.8s ease forwards;
}

.stat-card:hover,
.stat-card:focus-within {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 28px 65px rgba(26, 26, 46, 0.2);
}

.stat-card__value {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
}

.stat-card__label {
    color: var(--color-muted);
}

.course-catalog {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-content: start;
}

@media (min-width: 900px) {
    .course-catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.course-card {
    background: linear-gradient(135deg, rgba(var(--subtheme-secondary-rgb), 0.14), rgba(var(--subtheme-primary-rgb), 0.08)), var(--color-surface);
    border: 1px solid var(--subtheme-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--subtheme-shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease, border-color 0.5s ease, background 0.6s ease;
    background-size: 180% 180%;
    align-items: stretch;
}

.course-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 0% 0%, var(--subtheme-spotlight-primary), transparent 70%);
    opacity: 0;
    transform: none;
    transition: opacity 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.course-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 100% 100%, var(--subtheme-spotlight-secondary), transparent 75%);
    opacity: 0;
    transform: none;
    transition: opacity 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.course-card > * {
    position: relative;
    z-index: 1;
}

.course-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--subtheme-highlight-a-rgb), 0.32), rgba(var(--subtheme-highlight-b-rgb), 0.28));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: inherit;
    text-decoration: none;
}

.course-card__media--placeholder {
    isolation: isolate;
    background: linear-gradient(135deg, rgba(var(--subtheme-highlight-a-rgb), 0.2), rgba(var(--subtheme-highlight-b-rgb), 0.16));
}

.course-card__media--placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg,
            rgba(var(--subtheme-primary-rgb), 0.18) 0,
            rgba(var(--subtheme-primary-rgb), 0.18) 22px,
            rgba(var(--subtheme-secondary-rgb), 0.16) 22px,
            rgba(var(--subtheme-secondary-rgb), 0.16) 44px);
    opacity: 0.9;
    z-index: 0;
}

.course-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-card__media--placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(var(--subtheme-highlight-a-rgb), 0.22), transparent 68%),
        radial-gradient(circle at 82% 28%, rgba(var(--subtheme-highlight-b-rgb), 0.22), transparent 64%);
    mix-blend-mode: screen;
    opacity: 0.55;
    z-index: 1;
}

body.theme-dark .course-card__media--placeholder {
    background: linear-gradient(135deg, rgba(var(--subtheme-highlight-a-rgb), 0.28), rgba(var(--subtheme-highlight-b-rgb), 0.22));
}

body.theme-dark .course-card__media--placeholder::before {
    background: repeating-linear-gradient(-45deg,
            rgba(var(--subtheme-primary-rgb), 0.26) 0,
            rgba(var(--subtheme-primary-rgb), 0.26) 22px,
            rgba(var(--subtheme-secondary-rgb), 0.22) 22px,
            rgba(var(--subtheme-secondary-rgb), 0.22) 44px);
}

body.theme-dark .course-card__media--placeholder::after {
    opacity: 0.6;
}

.course-card:hover,
.course-card:focus-within {
    transform: translateY(-10px);
    border-color: rgba(var(--subtheme-primary-rgb), 0.35);
    box-shadow: var(--subtheme-shadow-strong);
}

.course-card:hover::before,
.course-card:focus-within::before {
    opacity: 1;
}

.course-card:hover::after,
.course-card:focus-within::after {
    opacity: 1;
}

.course-card:focus-within {
    outline: none;
    box-shadow: var(--subtheme-focus-ring), 0 38px 85px rgba(26, 26, 46, 0.25);
}

body.theme-dark .course-card {
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.12), rgba(var(--subtheme-secondary-rgb), 0.08)), rgba(34, 34, 58, 0.82);
    border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .course-card:hover,
body.theme-dark .course-card:focus-within {
    border-color: rgba(var(--subtheme-secondary-rgb), 0.4);
}

body.theme-dark .course-card::before {
    background: radial-gradient(circle at 0% 0%, rgba(var(--subtheme-secondary-rgb), 0.28), transparent 70%);
}

body.theme-dark .course-card::after {
    background: radial-gradient(circle at 100% 100%, rgba(var(--subtheme-primary-rgb), 0.25), transparent 75%);
}

.course-card__stats {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
    font-size: 1.05rem;
}

.course-card__blocks-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-card__blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.course-card__blocks[data-state="collapsed"] .block-pill[data-hidden="1"] {
    display: none;
}

.block-pill {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(var(--subtheme-primary-rgb), 0.1);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.2);
    min-width: 180px;
}

.block-pill--more {
    justify-content: center;
    text-align: center;
    background: rgba(var(--subtheme-primary-rgb), 0.08);
    border-style: dashed;
}

.block-pill--more span:last-child {
    font-size: 0.95rem;
    color: rgba(var(--subtheme-primary-rgb), 0.85);
}

.course-card__blocks-toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.2);
    background: rgba(var(--subtheme-primary-rgb), 0.08);
    color: rgba(var(--subtheme-primary-rgb), 0.95);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.course-card__blocks-toggle:hover,
.course-card__blocks-toggle:focus-visible {
    background: rgba(var(--subtheme-primary-rgb), 0.14);
    color: rgba(var(--subtheme-primary-rgb), 1);
    border-color: rgba(var(--subtheme-primary-rgb), 0.35);
    box-shadow: 0 18px 32px rgba(var(--subtheme-primary-rgb), 0.22);
}

.course-card__blocks-toggle:focus {
    outline: none;
}

.course-card__blocks-toggle .fa-solid {
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.course-card__blocks-toggle.is-expanded .fa-solid {
    transform: rotate(180deg);
}

body.theme-dark .course-card__blocks-toggle {
    background: rgba(var(--subtheme-primary-rgb), 0.12);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

body.theme-dark .course-card__blocks-toggle:hover,
body.theme-dark .course-card__blocks-toggle:focus-visible {
    background: rgba(var(--subtheme-primary-rgb), 0.2);
    border-color: rgba(var(--subtheme-secondary-rgb), 0.45);
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.course-card__actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.course-card__action {
    display: flex;
    align-items: stretch;
    flex: 0 1 auto;
}

.course-card__action:first-child {
    justify-content: flex-start;
}

.course-card__action:last-child {
    margin-left: auto;
    justify-content: flex-end;
}

.course-card__button {
    --course-button-radius: var(--radius-md);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-width: 220px;
    min-height: 3.25rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--course-button-radius);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    background-size: 160% 160%;
    transition: transform 0.25s ease, background-position 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
    color: #fff;
    box-shadow: var(--subtheme-shadow-soft);
    flex: 1 1 auto;
    width: 100%;
}

.course-card__button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.32), transparent 62%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.course-card__button:focus {
    outline: none;
}

.course-card__button:hover,
.course-card__button:focus-visible {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: var(--subtheme-focus-ring);
}

.course-card__button:hover::after,
.course-card__button:focus-visible::after {
    opacity: 1;
}

.course-card__button i {
    font-size: 1.05rem;
}

.course-card__button span {
    display: inline-flex;
    align-items: center;
}

.course-card__button--primary {
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 1), rgba(var(--subtheme-accent-rgb), 1));
}

.course-card__button--analog {
    background: linear-gradient(135deg, rgba(var(--subtheme-analog-1-rgb), 1), rgba(var(--subtheme-analog-2-rgb), 1));
    border-color: rgba(var(--subtheme-analog-2-rgb), 0.65);
}

.course-card__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.course-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.course-overview__stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.3rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
    display: grid;
    gap: 0.45rem;
    justify-items: center;
}

.course-overview__value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.course-overview__icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-pill);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(var(--subtheme-analog-1-rgb), 0.32), rgba(var(--subtheme-analog-2-rgb), 0.28));
    color: var(--analog-icon-color);
    font-size: 1.2rem;
    box-shadow: 0 18px 38px rgba(var(--subtheme-primary-rgb), 0.25);
}

span.course-overview__icon {
    width: 96px;
    height: 96px;
    padding-top: 8px;
}

.course-overview__icon i {
    color: inherit;
}

.course-overview__stat.is-visible .course-overview__icon {
    color: var(--analog-icon-color-strong);
}

.course-overview__stat.is-visible .course-overview__icon i {
    color: inherit;
    font-size: 64px;
}

.course-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 2rem;
    align-items: stretch;
}

.course-syllabus {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: stretch;
    height: 100%;
    min-height: 0;
}

aside.course-syllabus.is-visible {
    display: block;
}

.course-syllabus__monitor {
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-syllabus__monitor.is-visible .session-monitor {
    box-shadow: none;
}

.course-syllabus__monitor .session-monitor {
    width: 100%;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.course-syllabus__monitor .session-monitor__metric {
    font-size: 0.8rem;
    flex: 1 1 200px;
}

.course-syllabus__monitor .session-monitor__label {
    font-size: 0.65rem;
}

.course-syllabus__list {
    flex: 1 1 auto;
    overflow: auto;
    display: grid;
    gap: 1rem;
    padding: 0;
    min-width: 0;
    min-height: 0;
}

.course-syllabus__list > * {
    min-width: 0;
}

.course-syllabus__actions {
    border-top: 1px solid rgba(var(--subtheme-primary-rgb), 0.32);
    padding: 1.25rem 1.1rem 1.8rem;
    display: grid;
    gap: 0.85rem;
    background: linear-gradient(150deg, rgba(var(--subtheme-analog-1-rgb), 0.48), rgba(var(--subtheme-analog-2-rgb), 0.34));
    color: rgba(var(--color-text-rgb, 26, 26, 46), 0.95);
    position: sticky;
    top: var(--syllabus-actions-offset, 15px);
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(9, 12, 32, 0.28);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-top: 16px;
}

body.theme-dark .course-syllabus__actions,
body.theme-dark .course-syllabus__actions * {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

body.theme-light .course-syllabus__actions,
body.theme-light .course-syllabus__actions * {
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7);
}

body.theme-dark .course-syllabus__actions {
    background: linear-gradient(150deg, rgba(var(--subtheme-analog-1-rgb), 0.62), rgba(var(--subtheme-analog-2-rgb), 0.42));
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 22px 46px rgba(6, 8, 22, 0.55);
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: rgba(var(--subtheme-secondary-rgb), 1);
}

body.theme-light .course-syllabus__actions {
    box-shadow: 0 16px 36px rgba(188, 200, 255, 0.35);
}

.course-syllabus__actions.is-floating {
    position: fixed;
    bottom: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 28px 65px rgba(9, 12, 32, 0.5);
    z-index: 70;
}

.course-syllabus__current {
    margin: 0;
    font-size: 1.3rem;
    color: inherit;
}

.course-syllabus__summary {
    margin: 0;
    color: rgba(var(--color-text-rgb, 26, 26, 46), 0.82);
    line-height: 1.5;
}

.course-syllabus__feedback {
    font-size: 0.9rem;
    color: rgba(var(--color-text-rgb, 26, 26, 46), 0.75);
}

.course-syllabus__hint {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(var(--color-text-rgb, 26, 26, 46), 0.7);
}

.badge--muted {
    background: linear-gradient(135deg, rgba(var(--color-muted-rgb, 112, 124, 151), 0.18), rgba(var(--subtheme-analog-2-rgb), 0.18));
    color: rgba(var(--color-text-rgb, 26, 26, 46), 0.82);
    border: 1px solid rgba(var(--color-muted-rgb, 112, 124, 151), 0.32);
    box-shadow: 0 10px 22px rgba(var(--color-muted-rgb, 112, 124, 151), 0.16);
    backdrop-filter: blur(6px);
}

.course-coach {
    position: relative;
    margin-top: 3rem;
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.18);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(var(--subtheme-secondary-rgb), 0.16));
    box-shadow: 0 38px 86px rgba(26, 26, 46, 0.18);
    overflow: hidden;
    isolation: isolate;
}

.course-coach::before {
    content: '';
    position: absolute;
    inset: -40% -20% auto;
    height: 280px;
    background: radial-gradient(circle at top, rgba(var(--subtheme-accent-rgb), 0.36), transparent 65%);
    opacity: 0.75;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
}

body.theme-dark .course-coach {
    border-color: rgba(var(--subtheme-secondary-rgb), 0.16);
    background: linear-gradient(145deg, rgba(18, 20, 38, 0.94), rgba(var(--subtheme-primary-rgb), 0.18));
    box-shadow: 0 48px 110px rgba(9, 9, 16, 0.6);
}

.course-coach__header {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.6rem;
    max-width: 560px;
}

.course-coach__header h2 {
    margin: 0;
    font-size: 2.1rem;
}

.course-coach__header p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

body.theme-dark .course-coach__header p {
    color: rgba(226, 231, 255, 0.78);
}

.course-coach__progress {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.course-coach__list {
    position: relative;
    z-index: 1;
    margin: 2rem 0 0;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.course-coach__item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.3rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.15);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 22px 48px rgba(26, 26, 46, 0.12);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, background 0.35s ease;
}

.course-coach__item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.12), rgba(var(--subtheme-secondary-rgb), 0.08));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.course-coach__item:hover,
.course-coach__item:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 32px 68px rgba(26, 26, 46, 0.18);
    border-color: rgba(var(--subtheme-primary-rgb), 0.28);
}

.course-coach__item:hover::after,
.course-coach__item:focus-within::after {
    opacity: 1;
}

body.theme-dark .course-coach__item {
    background: rgba(24, 26, 46, 0.82);
    border-color: rgba(var(--subtheme-secondary-rgb), 0.18);
    box-shadow: 0 26px 70px rgba(9, 9, 16, 0.42);
}

body.theme-dark .course-coach__item::after {
    background: linear-gradient(135deg, rgba(var(--subtheme-secondary-rgb), 0.16), rgba(var(--subtheme-primary-rgb), 0.08));
}

.course-coach__status {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(var(--subtheme-primary-rgb), 0.08);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.3);
    box-shadow: 0 16px 32px rgba(var(--subtheme-primary-rgb), 0.22);
    transition: var(--transition);
}

.course-coach__status::after {
    content: '✓';
    font-weight: 700;
    color: rgba(var(--subtheme-primary-rgb), 0.68);
    font-size: 1.2rem;
    transform: scale(0.6);
    opacity: 0;
    transition: var(--transition);
}

body.theme-dark .course-coach__status {
    background: rgba(var(--subtheme-primary-rgb), 0.18);
    border-color: rgba(var(--subtheme-primary-rgb), 0.4);
    box-shadow: 0 18px 36px rgba(9, 9, 16, 0.55);
}

.course-coach__content {
    display: grid;
    gap: 0.35rem;
}

.course-coach__title {
    font-weight: 600;
}

.course-coach__hint {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

body.theme-dark .course-coach__hint {
    color: rgba(214, 220, 255, 0.72);
}

.course-coach__item.is-done {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.94), rgba(var(--subtheme-secondary-rgb), 0.55));
    box-shadow: var(--subtheme-shadow-strong);
    color: #f6f7ff;
}

.course-coach__item.is-done::after {
    opacity: 1;
}

.course-coach__item.is-done .course-coach__status {
    background: rgba(var(--subtheme-accent-rgb), 0.18);
    border-color: rgba(var(--subtheme-accent-rgb), 0.4);
    box-shadow: 0 20px 60px rgba(var(--subtheme-accent-rgb), 0.25);
}

.course-review {
    margin-top: 3rem;
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.25);
    background: linear-gradient(145deg, rgba(var(--subtheme-primary-rgb), 0.18), rgba(var(--subtheme-secondary-rgb), 0.16));
    box-shadow: var(--subtheme-shadow-soft);
    display: grid;
    gap: 1.4rem;
}

.course-review__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.course-review__icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 18px 35px rgba(var(--subtheme-primary-rgb), 0.35));
}

.course-review__panel {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.25);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(var(--subtheme-secondary-rgb), 0.16));
    box-shadow: 0 26px 52px rgba(var(--subtheme-primary-rgb), 0.18);
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(12px);
    position: relative;
}

body.theme-dark .course-review__panel {
    background: linear-gradient(160deg, rgba(14, 18, 42, 0.92), rgba(var(--subtheme-secondary-rgb), 0.2));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 68px rgba(4, 5, 16, 0.55);
}

.course-review__summary-trigger {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    cursor: pointer;
    text-decoration: none;
}

.course-review__summary-trigger::-webkit-details-marker {
    display: none;
}

.course-review__summary-text h2 {
    margin: 0;
}

.course-review__summary-text p {
    margin: 0.2rem 0 0;
    color: rgba(26, 32, 64, 0.72);
}

body.theme-dark .course-review__summary-text p {
    color: rgba(226, 230, 255, 0.75);
}

.course-review__summary-indicator {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(var(--subtheme-primary-rgb), 0.16);
    color: rgba(var(--subtheme-primary-rgb), 0.9);
    transition: transform 0.3s ease;
}

.course-review__panel[open] .course-review__summary-indicator {
    transform: rotate(180deg);
}

body.theme-dark .course-review__summary-indicator {
    background: rgba(var(--subtheme-secondary-rgb), 0.26);
    color: rgba(235, 238, 255, 0.92);
}

.course-review__body {
    margin-top: 1.25rem;
    display: grid;
    gap: 1.5rem;
}

.course-review__panel.is-locked > .course-review__summary-trigger {
    cursor: not-allowed;
    opacity: 0.7;
}

.course-review__header h2 {
    margin: 0;
}

.course-review__form {
    display: grid;
    gap: 1rem;
}

.course-review__form textarea {
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.35);
    padding: 1rem 1.1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 140px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.course-review__form textarea:focus-visible {
    outline: none;
    border-color: rgba(var(--subtheme-secondary-rgb), 0.85);
    box-shadow: 0 0 0 3px rgba(var(--subtheme-secondary-rgb), 0.45);
}

.course-review__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.course-review__average,
.course-review__average-static {
    font-weight: 600;
    color: rgba(var(--subtheme-primary-rgb), 0.85);
}

.course-review__summary {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.25);
    box-shadow: 0 22px 45px rgba(var(--subtheme-primary-rgb), 0.18);
}

.course-coach__item.is-done .course-coach__status::after {
    opacity: 1;
    transform: scale(1);
    color: #ffffff;
}

.course-coach__item.is-done .course-coach__hint {
    color: rgba(244, 247, 255, 0.85);
}

body.theme-dark .course-coach__item.is-done {
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.86), rgba(var(--subtheme-secondary-rgb), 0.38));
    box-shadow: 0 46px 110px rgba(9, 9, 16, 0.6);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.syllabus-block {
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.12);
    overflow: hidden;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.78), rgba(var(--subtheme-secondary-rgb), 0.08));
    min-width: 0;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.45s ease, box-shadow 0.55s ease, background 0.45s ease;
}

.syllabus-block::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at -10% 0%, var(--subtheme-spotlight-primary), rgba(255, 255, 255, 0));
    opacity: 0;
    transform: none;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

body.theme-dark .syllabus-block {
    background: linear-gradient(145deg, rgba(28, 32, 60, 0.88), rgba(var(--subtheme-primary-rgb), 0.18));
    border-color: rgba(var(--subtheme-secondary-rgb), 1);
}

body.theme-dark .syllabus-block::before {
    background: radial-gradient(circle at -10% 0%, rgba(var(--subtheme-secondary-rgb), 0.32), rgba(36, 36, 54, 0));
}

body.theme-dark .syllabus-block.is-visible.is-open {
    background: linear-gradient(145deg, #1c213c, rgb(var(--subtheme-primary-rgb)));
    border-width: 1px;
    border-color: rgba(var(--subtheme-secondary-rgb), 1);
}

.syllabus-block:hover,
.syllabus-block:focus-within {
    transform: translateY(-4px);
    border-color: rgba(var(--subtheme-primary-rgb), 0.38);
    box-shadow: var(--subtheme-shadow-soft);
}

.syllabus-block:hover::before,
.syllabus-block:focus-within::before,
.syllabus-block.is-open::before {
    opacity: 1;
}

.syllabus-block.is-open {
    border-color: rgba(var(--subtheme-primary-rgb), 0.45);
    box-shadow: none;
}

.syllabus-block.is-open:hover,
.syllabus-block.is-open:focus-within {
    box-shadow: none;
    transform: translateY(0);
}

.syllabus-block.is-visible.is-open {
    overflow-y: auto !important;
    background: linear-gradient(145deg, #ffffff, rgb(var(--subtheme-secondary-rgb)));
    border-width: 1px;
}

.syllabus-block__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: transparent;
    border: none;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    gap: 0.5rem;
    flex-wrap: wrap;
    transition: color 0.35s ease, background 0.45s ease;
}

.syllabus-block__header > span:first-child {
    flex: 1 1 100%;
    min-width: 0;
    text-align: left;
}

.syllabus-block__header > span:last-child {
    flex: 0 0 auto;
    white-space: nowrap;
}

.syllabus-block__header::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--transition);
}

.syllabus-block.is-open .syllabus-block__header {
    background: rgba(var(--subtheme-primary-rgb), 0.12);
}

.syllabus-block__list {
    list-style: none;
    margin: 0;
    padding: 0 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    height: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: height 0.55s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.35s ease, padding 0.45s ease;
}

.syllabus-block__list.is-animating {
    overflow: hidden !important;
}

.syllabus-block.is-open .syllabus-block__header::after {
    transform: rotate(-135deg);
}

.syllabus-block.is-open .syllabus-block__list {
    pointer-events: auto;
    opacity: 1;
    padding: 0.5rem 0.75rem 1rem;
    max-height: min(28rem, 70vh);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(var(--subtheme-secondary-rgb), 0.22));
    border-radius: calc(var(--radius-md) - 4px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 18px 28px -24px rgba(26, 26, 46, 0.35), inset 0 -18px 28px -24px rgba(26, 26, 46, 0.35);
}

.syllabus-block.is-open .syllabus-block__list::-webkit-scrollbar {
    width: 8px;
}

.syllabus-block.is-open .syllabus-block__list::-webkit-scrollbar-track {
    background: rgba(var(--subtheme-primary-rgb), 0.08);
    border-radius: var(--radius-sm);
}

.syllabus-block.is-open .syllabus-block__list::-webkit-scrollbar-thumb {
    background: rgba(var(--subtheme-primary-rgb), 0.28);
    border-radius: var(--radius-sm);
}

.syllabus-block.is-open .syllabus-block__list::before,
.syllabus-block.is-open .syllabus-block__list::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    height: 1.25rem;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
    border-radius: inherit;
    z-index: 2;
}

.syllabus-block.is-open .syllabus-block__list::before {
    top: 0.5rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
}

.syllabus-block.is-open .syllabus-block__list::after {
    bottom: 0.5rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
}

.syllabus-block.is-open .syllabus-block__list.has-shadow-top::before {
    opacity: 1;
}

.syllabus-block.is-open .syllabus-block__list.has-shadow-bottom::after {
    opacity: 1;
}

body.theme-dark .syllabus-block.is-open .syllabus-block__list {
    background: linear-gradient(145deg, rgba(28, 32, 60, 0.95), rgba(var(--subtheme-primary-rgb), 0.32));
    box-shadow: inset 0 1px 0 rgba(var(--subtheme-secondary-rgb), 0.16), inset 0 18px 28px -24px rgba(4, 6, 18, 0.65), inset 0 -18px 28px -24px rgba(4, 6, 18, 0.65);
}

body.theme-dark .syllabus-block.is-open .syllabus-block__list::before {
    background: linear-gradient(to bottom, rgba(18, 20, 44, 0.92), rgba(18, 20, 44, 0));
}

body.theme-dark .syllabus-block.is-open .syllabus-block__list::after {
    background: linear-gradient(to top, rgba(18, 20, 44, 0.92), rgba(18, 20, 44, 0));
}

body.theme-dark .syllabus-block.is-open .syllabus-block__list::-webkit-scrollbar-track {
    background: rgba(var(--subtheme-primary-rgb), 0.24);
}

body.theme-dark .syllabus-block.is-open .syllabus-block__list::-webkit-scrollbar-thumb {
    background: rgba(var(--subtheme-secondary-rgb), 0.38);
}

.syllabus-lesson {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(240, 244, 255, 0.3));
    transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease, background 0.35s ease;
}

.syllabus-lesson:hover,
.syllabus-lesson.is-active {
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.18), rgba(var(--subtheme-secondary-rgb), 0.18));
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.35);
    box-shadow: var(--glow-primary);
    transform: translateX(6px) scale(1.01);
}

.syllabus-lesson.is-active {
    box-shadow: var(--glow-primary), 0 0 0 2px rgba(var(--subtheme-primary-rgb), 0.25);
}

.syllabus-lesson.is-completed {
    border: 1px solid rgba(74, 217, 145, 0.45);
    box-shadow: 0 0 18px rgba(74, 217, 145, 0.2);
}

.syllabus-lesson.is-private {
    opacity: 0.78;
}

.syllabus-lesson--quiz .lesson-tag {
    background: rgba(var(--subtheme-primary-rgb), 0.15);
    color: var(--subtheme-primary);
}

.syllabus-lesson--quiz-valued .lesson-tag {
    background: linear-gradient(135deg, rgba(255, 205, 120, 0.35), rgba(255, 233, 186, 0.2));
    color: #b86d00;
}

.syllabus-lesson--quiz-voluntary .lesson-tag {
    background: linear-gradient(135deg, rgba(74, 217, 145, 0.28), rgba(120, 241, 210, 0.15));
    color: #0f7c56;
}

.lesson-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 0.6rem;
    background: rgba(var(--subtheme-primary-rgb), 0.35);
    transition: var(--transition);
}

.lesson-status[data-status="completed"] {
    background: var(--color-success);
    box-shadow: 0 0 0 4px rgba(74, 217, 145, 0.25);
}

.course-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
    align-self: stretch;
}

.course-content.is-visible {
    max-width: 960px;
    width: 100%;
    margin-inline: auto;
    justify-self: center;
}

.course-content__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lesson-header {
    background: linear-gradient(135deg, rgba(14, 18, 44, 0.85), rgba(var(--subtheme-primary-rgb), 0.35));
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    color: #f8f9ff;
    text-shadow: 0 2px 12px rgba(3, 4, 12, 0.55);
    box-shadow: 0 25px 55px rgba(9, 12, 32, 0.35);
}

.lesson-header .badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.lesson-header h2 {
    margin: 0.3rem 0 0;
    font-size: 2rem;
}

.lesson-header h2 {
    margin: 0.3rem 0 0;
    font-size: 2rem;
}

.lesson-summary {
    font-size: 1.1rem;
    color: rgba(var(--color-text), 0.86);
    background: linear-gradient(135deg, rgba(var(--subtheme-secondary-rgb), 0.16), rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    box-shadow: 0 22px 45px rgba(var(--subtheme-secondary-rgb), 0.2);
}

.lesson-widget {
    position: relative;
    display: grid;
    gap: 1.4rem;
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.25);
    background: linear-gradient(140deg, rgba(var(--subtheme-primary-rgb), 0.18), rgba(var(--subtheme-secondary-rgb), 0.12) 45%, rgba(var(--subtheme-accent-rgb), 0.16));
    box-shadow: var(--subtheme-shadow-soft);
    overflow: hidden;
    isolation: isolate;
}

.lesson-engagement {
    display: grid;
    gap: 1.6rem;
}

.lesson-widget--rating {
    background: linear-gradient(145deg, rgba(var(--subtheme-accent-rgb), 0.22), rgba(var(--subtheme-secondary-rgb), 0.18));
}

.lesson-widget--questions {
    background: linear-gradient(160deg, rgba(18, 22, 46, 0.88), rgba(var(--subtheme-primary-rgb), 0.25));
    color: #f3f5ff;
}

.lesson-widget--questions .lesson-widget__copy h3 {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.lesson-widget--questions .lesson-widget__status {
    color: rgba(240, 244, 255, 0.78);
}

.rating-scale {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.rating-scale__unit {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    border: 2px solid transparent;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.lesson-widget--rating .rating-scale__unit {
    background: rgba(var(--subtheme-primary-rgb), 0.12);
    color: rgba(var(--subtheme-accent-rgb), 0.95);
    border-color: rgba(var(--subtheme-accent-rgb), 0.35);
}

.rating-scale__unit:hover,
.rating-scale__unit:focus-visible {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 18px 38px rgba(var(--subtheme-accent-rgb), 0.4);
    color: #fff;
}

.rating-scale__unit.is-active {
    transform: translateY(-4px) scale(1.08);
    border-color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(135deg, rgba(var(--subtheme-accent-rgb), 0.88), rgba(var(--subtheme-secondary-rgb), 0.72));
    color: #fff;
}

.lesson-questions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.lesson-questions__item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 35px rgba(3, 6, 18, 0.32);
}

.lesson-questions__question {
    margin: 0;
    font-weight: 600;
}

.lesson-questions__answer {
    margin: 0.8rem 0 0;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
}

.lesson-questions__empty {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.lesson-questions__form {
    display: grid;
    gap: 0.8rem;
}

.lesson-questions__form textarea {
    resize: vertical;
    min-height: 120px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(10, 12, 32, 0.6);
    color: #f6f8ff;
    padding: 0.9rem 1rem;
    font-family: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.lesson-questions__form textarea:focus-visible {
    outline: none;
    border-color: rgba(var(--subtheme-secondary-rgb), 0.85);
    box-shadow: 0 0 0 3px rgba(var(--subtheme-secondary-rgb), 0.4);
}

section.lesson-widget.is-visible {
    margin-bottom: 25px;
}

.lesson-widget::after {
    content: '';
    position: absolute;
    inset: -40% 10% auto auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(var(--subtheme-secondary-rgb), 0.45), rgba(255, 255, 255, 0));
    opacity: 0.8;
    pointer-events: none;
    filter: blur(12px);
    animation: shimmerPulse 7s ease-in-out infinite;
}

.lesson-widget__header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.lesson-widget__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.9), rgba(var(--subtheme-secondary-rgb), 0.7));
    font-size: 1.9rem;
    color: #101024;
    box-shadow: var(--glow-primary);
    animation: widgetFloat 6.5s ease-in-out infinite;
}

.lesson-widget__copy h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
}

.lesson-widget__status {
    margin: 0.35rem 0 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.lesson-widget__controls {
    display: grid;
    gap: 1.1rem;
}

.lesson-widget__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-pill);
    border: none;
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 1), rgba(var(--subtheme-secondary-rgb), 0.85));
    color: #0c0c1f;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 18px 36px rgba(var(--subtheme-primary-rgb), 0.28);
}

.lesson-widget__btn:hover,
.lesson-widget__btn:focus-visible {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 24px 46px rgba(var(--subtheme-primary-rgb), 0.32);
    outline: none;
}

.lesson-widget__btn:focus-visible {
    box-shadow: var(--subtheme-focus-ring);
}

.lesson-widget__btn.is-playing {
    background: linear-gradient(135deg, rgba(var(--subtheme-accent-rgb), 1), rgba(var(--subtheme-primary-rgb), 0.9));
    box-shadow: 0 22px 48px rgba(var(--subtheme-accent-rgb), 0.28);
}

.lesson-widget__btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lesson-widget__btn-icon {
    font-size: 1.4rem;
}

.lesson-widget__control {
    display: grid;
    gap: 0.4rem;
}

.lesson-widget__control-label {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.lesson-widget__control-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
}

.lesson-widget__slider {
    width: 100%;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.lesson-widget__metric {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.8);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    min-width: 3.4rem;
    text-align: center;
}

.lesson-widget__select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    outline: none;
    appearance: none;
    padding-right: 1.8rem;
    cursor: pointer;
}

.lesson-widget.is-disabled {
    opacity: 0.7;
}

.lesson-widget.is-disabled .lesson-widget__btn {
    cursor: not-allowed;
    filter: grayscale(0.2);
    transform: none;
    box-shadow: none;
}

body.theme-dark .lesson-widget {
    border-color: rgba(var(--subtheme-secondary-rgb), 0.25);
    background: linear-gradient(150deg, rgba(22, 28, 56, 0.9), rgba(var(--subtheme-primary-rgb), 0.45) 55%, rgba(var(--subtheme-secondary-rgb), 0.25));
    box-shadow: 0 28px 55px rgba(4, 8, 28, 0.65);
}

body.theme-dark .lesson-widget__control-field {
    background: rgba(15, 20, 44, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.theme-dark .lesson-widget__metric {
    background: rgba(var(--subtheme-primary-rgb), 0.28);
    color: #e6ebff;
}

body.theme-dark .lesson-widget__select {
    color: var(--color-text);
}

@media (min-width: 768px) {
    .lesson-widget__controls {
        grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
        align-items: center;
    }

    .lesson-widget__btn {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }
}

.lesson-meta {
    display: block;
}

.lesson-meta__tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    width: 100%;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.lesson-meta__tags > *:not(.lesson-meta__title) {
    flex: 0 0 auto;
}

.lesson-meta__title {
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    font-size: 0.95rem;
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    text-overflow: ellipsis;
    overflow: hidden;
}

.lesson-meta__note {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.4;
}

.lesson-code {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.lesson-tag {
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(17, 17, 29, 0.08);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lesson-lock {
    font-size: 0.9rem;
}

.lesson-quiz {
    border-top: 1px solid rgba(var(--subtheme-primary-rgb), 0.25);
    padding-top: 1.5rem;
    display: grid;
    gap: 1.25rem;
}

.lesson-quiz--valued {
    border-top-color: rgba(255, 193, 94, 0.45);
    background: linear-gradient(135deg, rgba(255, 218, 163, 0.18), rgba(255, 204, 120, 0.08));
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 34px rgba(255, 193, 94, 0.18);
    padding: 1.8rem;
}

.lesson-quiz--voluntary {
    border-top-color: rgba(74, 217, 145, 0.35);
    background: linear-gradient(135deg, rgba(74, 217, 145, 0.16), rgba(106, 215, 255, 0.06));
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 32px rgba(74, 217, 145, 0.18);
    padding: 1.8rem;
}

.lesson-quiz--valued .lesson-quiz__meta {
    color: #b86d00;
}

.lesson-quiz--voluntary .lesson-quiz__meta {
    color: #0f7c56;
}

.lesson-quiz__header {
    display: grid;
    gap: 0.4rem;
}

.lesson-quiz__meta {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.lesson-quiz__form {
    display: grid;
    gap: 1rem;
}

.quiz-question {
    display: grid;
    gap: 0.6rem;
}

.quiz-question > span {
    font-weight: 600;
    color: var(--color-text);
}

.lesson-quiz__form textarea {
    width: 100%;
    padding: 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    resize: vertical;
    min-height: 120px;
}

body.theme-dark .lesson-quiz__form textarea {
    background: rgba(17, 17, 29, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
}

body.theme-dark .lesson-quiz--valued {
    border-top-color: rgba(255, 199, 120, 0.75);
    background: linear-gradient(140deg, rgba(255, 184, 76, 0.18), rgba(96, 63, 0, 0.35));
    box-shadow: 0 24px 44px rgba(255, 184, 76, 0.28);
    color: var(--color-text);
}

body.theme-dark .lesson-quiz--valued .lesson-quiz__meta {
    color: #ffe5b8;
}

body.theme-dark .lesson-quiz--voluntary {
    border-top-color: rgba(82, 234, 167, 0.72);
    background: linear-gradient(140deg, rgba(74, 217, 145, 0.2), rgba(7, 102, 120, 0.32));
    box-shadow: 0 24px 44px rgba(74, 217, 145, 0.28);
    color: var(--color-text);
}

body.theme-dark .lesson-quiz--voluntary .lesson-quiz__meta {
    color: #a8fbe0;
}

.lesson-quiz__feedback {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.lesson-quiz__lock {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.35rem 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
}

.quiz-option:hover {
    background: transparent;
}

.quiz-option input[type="radio"] {
    accent-color: var(--color-primary);
    margin-top: 0.25rem;
}

.lesson-body p {
    margin: 0;
    line-height: 1.6;
}

.lesson-body p + p {
    margin-top: 0.8rem;
}

.lesson-body pre {
    margin: 1.2rem 0;
    padding: 1.1rem 1.3rem;
    background: rgba(var(--subtheme-primary-rgb), 0.08);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.2);
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: var(--font-mono, 'Fira Code', 'SFMono-Regular', 'Menlo', monospace);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text);
    box-shadow: 0 18px 45px rgba(8, 12, 42, 0.22);
}

.lesson-body pre code {
    display: block;
    white-space: pre;
}

.lesson-body--quiz {
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.25);
    background: rgba(var(--subtheme-primary-rgb), 0.08);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    color: var(--color-text);
}

.lesson-locked {
    display: grid;
    gap: 0.75rem;
    padding: 1.2rem;
    border: 1px dashed rgba(var(--subtheme-primary-rgb), 0.45);
    border-radius: var(--radius-md);
    background: rgba(var(--subtheme-primary-rgb), 0.06);
    color: var(--color-muted);
}

.lesson-locked__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.lesson-snippet pre {
    background: rgba(17, 17, 29, 0.92);
    color: #f1f5ff;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 0.9rem;
}

.course-content__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.course-content__feedback {
    color: var(--color-muted);
    font-style: italic;
}

.quiz-feedback {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

@media (max-width: 1024px) {
    .course-layout {
        grid-template-columns: 1fr;
    }

    .course-syllabus {
        max-height: none;
        order: 1;
    }

    .course-content {
        order: 2;
    }

    .course-coach {
        margin-top: 2.5rem;
    }
}

@media (max-width: 960px) {
    .content {
        padding: 2rem 1.5rem;
    }

    .layout-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .topbar {
        padding: 0.85rem 0;
    }

    .topbar__inner {
        display: flex;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .topbar__menu-toggle {
        display: inline-flex;
    }

    .topbar__actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .topbar__nav {
        margin-top: 0;
        flex-basis: auto;
    }

    .session-monitor {
        width: 100%;
        justify-content: space-between;
    }

    .topbar__nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        padding: 1rem;
        border-radius: var(--radius-md);
        border: 1px solid var(--color-border);
        background: var(--color-surface);
        box-shadow: var(--shadow-soft);
        display: none;
        margin-left: 0;
        z-index: 120;
    }

    .topbar__nav.is-open {
        display: flex;
    }

    .course-coach__list {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-area__widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.admin-questions {
    display: grid;
    gap: 1.8rem;
}

.admin-question {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.25);
    padding: 1.8rem;
    background: linear-gradient(140deg, rgba(var(--subtheme-primary-rgb), 0.16), rgba(var(--subtheme-secondary-rgb), 0.12));
    box-shadow: var(--subtheme-shadow-soft);
    display: grid;
    gap: 1.2rem;
}

.admin-question__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.admin-question__meta {
    margin: 0.35rem 0 0;
    color: var(--color-muted);
}

.admin-question__body {
    display: grid;
    gap: 1.2rem;
}

.admin-question__prompt {
    background: rgba(var(--subtheme-primary-rgb), 0.1);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.2);
}

.admin-question__label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.admin-question__form textarea {
    width: 100%;
    min-height: 140px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.35);
    padding: 0.9rem 1rem;
    font-family: inherit;
    resize: vertical;
}

.admin-question__form textarea:focus-visible {
    outline: none;
    border-color: rgba(var(--subtheme-secondary-rgb), 0.85);
    box-shadow: 0 0 0 3px rgba(var(--subtheme-secondary-rgb), 0.35);
}

.admin-question__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-question__status {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.admin-widget {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1rem;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 0.75, 0.3, 1), box-shadow 0.5s ease, border-color 0.4s ease, background 0.45s ease;
}

.admin-widget::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at center, rgba(var(--subtheme-primary-rgb), 0.35), rgba(255, 255, 255, 0));
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.admin-widget:hover,
.admin-widget:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(26, 26, 46, 0.26);
    border-color: rgba(var(--subtheme-primary-rgb), 0.45);
}

.admin-widget:hover::before,
.admin-widget:focus-within::before {
    opacity: 1;
}

body.theme-dark .admin-widget {
    background: rgba(28, 28, 44, 0.88);
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .admin-widget::before {
    background: radial-gradient(circle at center, rgba(var(--subtheme-secondary-rgb), 0.4), rgba(28, 28, 44, 0));
}

.admin-widget--table {
    grid-column: span 2;
}

.table-responsive {
    overflow-x: auto;
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
    padding: 0.9rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    font-size: 0.95rem;
}

.temp-password {
    font-weight: 600;
    color: var(--color-primary);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 1.6rem;
    box-shadow: var(--shadow-soft);
}

.legal__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.legal-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.footer {
    padding: 1.5rem 0;
    background: var(--shell-chrome-background, rgba(var(--subtheme-primary-rgb), 0.16));
    border-top: 1px solid var(--shell-chrome-border, var(--color-border));
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.footer__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer__links a:hover {
    color: var(--subtheme-primary);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0px);
    transition: opacity 0.45s ease, backdrop-filter 0.45s ease;
}

.modal[hidden] {
    display: none;
}

.modal.is-visible {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(14px);
}

.modal.is-closing {
    pointer-events: none;
}

.modal__content {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    min-width: 320px;
    max-width: 420px;
    position: relative;
    transform: translateY(28px) scale(0.96);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.12), opacity 0.45s ease, box-shadow 0.45s ease;
}

.modal.is-visible .modal__content {
    transform: translateY(0) scale(1);
    opacity: 1;
    box-shadow: 0 32px 90px rgba(26, 26, 46, 0.35);
}

.modal.is-closing .modal__content {
    transform: translateY(24px) scale(0.94);
    opacity: 0;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-muted);
}

.modal form {
    display: grid;
    gap: 1rem;
}

.aw-dialog-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at top, rgba(var(--subtheme-primary-rgb), 0.25), transparent 55%),
        rgba(5, 7, 21, 0.82);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 14000;
}

.aw-dialog-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.aw-dialog {
    width: min(520px, 100%);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.18);
    padding: 2.5rem 2.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.theme-dark .aw-dialog {
    background: rgba(20, 22, 42, 0.92);
    box-shadow: var(--glow-hero-edge-dark), 0 0 0 1px rgba(var(--subtheme-secondary-rgb), 0.16);
}

.aw-dialog::before {
    content: '';
    position: absolute;
    inset: -20% -40% auto;
    height: 60%;
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.6), rgba(var(--subtheme-secondary-rgb), 0.55), rgba(var(--subtheme-accent-rgb), 0.55));
    opacity: 0.14;
    filter: blur(60px);
    pointer-events: none;
}

.aw-dialog__icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 1.5rem;
    border-radius: 28px;
    display: grid;
    place-items: center;
    font-size: 2.35rem;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.1));
    color: var(--color-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 35px rgba(var(--subtheme-primary-rgb), 0.3);
}

body.theme-dark .aw-dialog__icon {
    background: radial-gradient(circle at top, rgba(17, 18, 38, 0.92), rgba(17, 18, 38, 0.5));
    color: rgba(var(--subtheme-secondary-rgb), 0.95);
}

.aw-dialog__icon--danger {
    color: #ff4466;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 18px 35px rgba(255, 107, 148, 0.34);
}

.aw-dialog__title {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

body.theme-dark .aw-dialog__title {
    color: #f1f5ff;
}

.aw-dialog__message {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-muted);
    margin-bottom: 1.85rem;
}

body.theme-dark .aw-dialog__message {
    color: rgba(230, 236, 255, 0.76);
}

.aw-dialog__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.aw-dialog__btn {
    min-width: 160px;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-pill);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
    isolation: isolate;
}

.aw-dialog__btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--subtheme-primary-rgb), 0.25);
}

.aw-dialog__btn:hover {
    transform: translateY(-2px);
}

.aw-dialog__btn--primary {
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.95), rgba(var(--subtheme-secondary-rgb), 0.95));
    color: #0c0f1c;
    box-shadow: var(--glow-primary);
}

.aw-dialog__btn--primary:hover {
    box-shadow: var(--glow-primary), 0 20px 35px rgba(var(--subtheme-primary-rgb), 0.35);
}

.aw-dialog__btn--danger {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.98), rgba(var(--subtheme-accent-rgb), 0.92));
    color: #fff;
    box-shadow: 0 18px 30px rgba(255, 107, 148, 0.35);
}

.aw-dialog__btn--danger:hover {
    box-shadow: 0 24px 38px rgba(255, 107, 148, 0.42);
}

.aw-dialog__btn--ghost {
    background: transparent;
    color: var(--color-muted);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
}

body.theme-dark .aw-dialog__btn--ghost {
    color: rgba(230, 236, 255, 0.88);
    border-color: rgba(var(--subtheme-secondary-rgb), 0.35);
}

.aw-dialog__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.form-feedback {
    min-height: 1.2rem;
    font-size: 0.9rem;
}

.form-feedback.is-error {
    color: var(--color-danger);
}

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: grid;
    gap: 0.8rem;
    z-index: 300;
}

.toast {
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft), var(--glow-secondary);
    background: var(--toast-bg);
    color: var(--toast-text);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast--success {
    border-left: 4px solid var(--color-success);
}

.toast--info {
    border-left: 4px solid var(--color-secondary);
}

.toast--danger {
    border-left: 4px solid var(--color-danger);
}

.toast--warning {
    border-left: 4px solid var(--color-warning);
}

.toast--default {
    border-left: 4px solid var(--color-primary);
}

.neon-panel {
    position: relative;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.25), rgba(var(--subtheme-secondary-rgb), 0.2));
    box-shadow: var(--glow-primary), var(--shadow-soft);
    overflow: hidden;
}

.neon-panel--notice {
    background: linear-gradient(135deg, rgba(var(--subtheme-analog-1-rgb), 0.35), rgba(var(--subtheme-analog-2-rgb), 0.22));
    border: 1px solid rgba(var(--subtheme-analog-2-rgb), 0.4);
    box-shadow: 0 28px 56px rgba(var(--subtheme-analog-1-rgb), 0.28);
    color: rgba(var(--color-text-rgb, 26, 26, 46), 0.95);
}

.neon-panel--notice h2 {
    margin-bottom: 1rem;
}

.neon-panel--notice p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.neon-panel::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35), transparent 60%);
    filter: blur(40px);
    animation: auroraPulse 12s ease-in-out infinite;
    pointer-events: none;
}

hr.neon-panel__divider {
    width: 100%;
    border: 0;
    height: 2px;
    margin: 2.25rem 0 26px;
    background: linear-gradient(90deg,
        rgba(var(--subtheme-analog-1-rgb), 0.6) 0%,
        rgba(var(--subtheme-secondary-rgb), 0.42) 45%,
        rgba(var(--subtheme-analog-2-rgb), 0.52) 100%
    );
    box-shadow: 0 18px 40px rgba(var(--subtheme-analog-1-rgb), 0.32);
    opacity: 0.92;
}

body.theme-dark hr.neon-panel__divider {
    background: linear-gradient(90deg,
        rgba(var(--subtheme-analog-1-rgb), 0.78) 0%,
        rgba(var(--subtheme-secondary-rgb), 0.58) 45%,
        rgba(var(--subtheme-analog-2-rgb), 0.72) 100%
    );
    box-shadow: 0 24px 60px rgba(var(--subtheme-analog-2-rgb), 0.38);
}

article.neon-panel.neon-panel--notice.is-visible {
    margin-top: 40px;
}

body.theme-dark .neon-panel--notice {
    background: linear-gradient(135deg, rgba(var(--subtheme-analog-1-rgb), 0.46), rgba(var(--subtheme-analog-2-rgb), 0.3));
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 30px 60px rgba(var(--subtheme-analog-2-rgb), 0.32);
}

@keyframes auroraPulse {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.6; }
    50% { transform: rotate(8deg) scale(1.1); opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-hero {
    margin-bottom: 2.5rem;
    color: var(--color-text);
}

.legal-hero h1 {
    margin: 0 0 0.8rem;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.legal-content {
    display: grid;
    gap: 2rem;
}

.legal-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-soft);
}

.legal-card h2 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.legal-card ul {
    padding-left: 1.2rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.legal-table th,
.legal-table td {
    border-bottom: 1px solid var(--color-border);
    padding: 0.8rem;
    text-align: left;
}

.legal-steps {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.6rem;
}

.legal-steps li {
    padding: 0.6rem 0.8rem;
    border-left: 3px solid var(--color-primary);
    background: rgba(var(--subtheme-primary-rgb), 0.08);
    border-radius: var(--radius-sm);
}

.admin-content {
    margin-top: 3rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.admin-content__intro {
    margin-top: 0.2rem;
    color: var(--color-muted);
}

.admin-tabs {
    margin-top: 2rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.admin-tab {
    border: 1px solid var(--color-border);
    background: rgba(var(--subtheme-primary-rgb), 0.08);
    color: inherit;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    background: rgba(var(--subtheme-primary-rgb), 0.16);
    box-shadow: var(--shadow-soft);
}

.admin-tab.is-active {
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.28), rgba(var(--subtheme-secondary-rgb), 0.24));
    border-color: rgba(var(--subtheme-primary-rgb), 0.4);
    box-shadow: 0 0 20px rgba(var(--subtheme-primary-rgb), 0.28);
}

.admin-tab-panels {
    margin-top: 2.4rem;
}

.admin-tab-panel[hidden] {
    display: none;
}

.admin-hierarchy {
    display: grid;
    gap: 1rem;
    background: rgba(var(--subtheme-primary-rgb), 0.08);
    border: 1px dashed rgba(var(--subtheme-primary-rgb), 0.4);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
}

.admin-hierarchy__group {
    display: grid;
    gap: 0.4rem;
}

.admin-hierarchy__group label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
}

.admin-hierarchy__group select {
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.9);
}

.admin-hierarchy__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.admin-content__grid--stacked {
    margin-top: 2rem;
}

.admin-form-card {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 0.75, 0.3, 1), box-shadow 0.55s ease, border-color 0.45s ease, background 0.45s ease;
}

.admin-form-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% -20%, rgba(var(--subtheme-primary-rgb), 0.32), rgba(255, 255, 255, 0));
    opacity: 0;
    transform: none;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.admin-form-card:hover,
.admin-form-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 28px 72px rgba(26, 26, 46, 0.24);
    border-color: rgba(var(--subtheme-primary-rgb), 0.4);
}

.admin-form-card:hover::before,
.admin-form-card:focus-within::before {
    opacity: 1;
}

.admin-form-card h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
}

.admin-form-card label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
}

.admin-form-card input,
.admin-form-card select,
.admin-form-card textarea {
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.92);
}

.admin-form-card textarea {
    resize: vertical;
    min-height: 120px;
}

.admin-course-banner {
    display: grid;
    gap: 0.75rem;
}

.admin-course-banner__controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-course-banner__preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(var(--subtheme-highlight-a-rgb), 0.25), rgba(var(--subtheme-highlight-b-rgb), 0.2));
    border: 1px dashed rgba(var(--subtheme-highlight-b-rgb), 0.45);
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.admin-course-banner__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-course-banner__preview::after {
    content: attr(data-placeholder);
    font-size: 0.95rem;
    color: rgba(var(--color-text-rgb, 26, 26, 46), 0.7);
    text-align: center;
    padding: 0 1rem;
    display: block;
}

.site-identity-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px dashed rgba(var(--subtheme-primary-rgb), 0.35);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(var(--subtheme-secondary-rgb), 0.12), rgba(var(--subtheme-primary-rgb), 0.08));
}

.site-identity-preview__icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.site-identity-preview__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-identity-preview__emoji {
    font-size: 2rem;
    line-height: 1;
}

.site-identity-preview__hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.site-identity__file {
    font-weight: 600;
}

.site-identity__file input[type="file"] {
    margin-top: 0.35rem;
    font-weight: 400;
}

.site-identity__file-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.site-identity__file-actions .btn-ghost {
    padding-left: 0;
}

.admin-form-card--lesson {
    grid-column: 1 / -1;
}

.admin-quiz-panel {
    display: grid;
    gap: 1rem;
}

.admin-quiz-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
}

.admin-quiz-toolbar label {
    flex: 1 1 240px;
    display: grid;
    gap: 0.5rem;
    font-weight: 600;
}

.admin-quiz-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-quiz-panel__hint {
    font-size: 0.9rem;
    color: var(--color-muted);
    background: rgba(var(--subtheme-primary-rgb), 0.08);
    border-left: 3px solid rgba(var(--subtheme-primary-rgb), 0.45);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
}

body.theme-dark .admin-quiz-panel__hint {
    background: rgba(40, 48, 80, 0.6);
    color: var(--color-text);
    border-left-color: rgba(var(--subtheme-primary-rgb), 0.6);
}

.admin-content__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.admin-content__grid > * {
    flex: 1 1 280px;
}

.admin-content__column {
    display: grid;
    gap: 1rem;
}

.admin-content__column label {
    display: grid;
    gap: 0.5rem;
    font-weight: 600;
}

.admin-content__column input,
.admin-content__column select {
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.8);
}

body.theme-dark .admin-content__column input,
body.theme-dark .admin-content__column select {
    background: rgba(20, 24, 40, 0.9);
    color: var(--color-text);
}

.rich-field span {
    font-weight: 600;
}

.rich-editor {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.85);
    min-height: 140px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.rich-editor--tall {
    min-height: 220px;
}

.ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid var(--color-border);
    background: rgba(var(--subtheme-primary-rgb), 0.12);
}

.ql-container.ql-snow {
    border: none;
    background: transparent;
    color: inherit;
}

body.theme-dark .ql-toolbar.ql-snow {
    background: rgba(var(--subtheme-primary-rgb), 0.18);
}

body.theme-dark .rich-editor {
    background: rgba(19, 22, 36, 0.95);
}

body.theme-dark .site-identity-preview {
    border-color: rgba(var(--subtheme-secondary-rgb), 0.35);
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.38), rgba(17, 21, 40, 0.7));
}

body.theme-dark .site-identity-preview__icon {
    background: rgba(20, 24, 40, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .site-identity-preview__hint {
    color: rgba(220, 227, 255, 0.75);
}

.quiz-question-list {
    display: grid;
    gap: 1rem;
}

.quiz-question-card {
    border-radius: var(--radius-md);
    border: 1px dashed rgba(var(--subtheme-primary-rgb), 0.4);
    padding: 1rem;
    background: rgba(var(--subtheme-primary-rgb), 0.08);
    display: grid;
    gap: 0.8rem;
}

.quiz-question-card input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.9);
}

body.theme-dark .quiz-question-card input[type="text"] {
    background: rgba(20, 24, 40, 0.9);
    color: var(--color-text);
}

.quiz-options {
    display: grid;
    gap: 0.5rem;
}

.quiz-option-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    align-items: center;
}

.admin-feedback {
    min-height: 1.2rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.admin-feedback.is-error {
    color: var(--color-danger);
}

.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.4rem;
    background: rgba(var(--shell-chrome-surface-rgb, 255, 255, 255), 0.75);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    max-width: 960px;
    width: calc(100% - 2.4rem);
    z-index: 400;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner__icon {
    font-size: 1.8rem;
    filter: drop-shadow(var(--glow-primary));
}

.cookie-banner__copy p {
    margin: 0;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.8rem;
}

body.theme-dark .neon-panel {
    background: linear-gradient(135deg, rgba(33, 38, 68, 0.85), rgba(73, 87, 140, 0.55));
}

body.theme-dark .legal-card,
body.theme-dark .admin-content {
    background: rgba(22, 24, 38, 0.92);
}

body.theme-dark .admin-form-card {
    background: rgba(19, 22, 36, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .admin-form-card::before {
    background: radial-gradient(circle at top center, rgba(var(--subtheme-secondary-rgb), 0.38), rgba(19, 22, 36, 0));
}

.admin-site {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.admin-site__lead {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.admin-site__lead > * {
    flex: 1 1 260px;
}

.admin-site__copy h2 {
    margin-top: 0;
    font-size: 1.6rem;
}

.admin-site__tips {
    display: flex;
    align-items: center;
    background: rgba(var(--subtheme-primary-rgb), 0.12);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.4rem;
    border: 1px dashed rgba(var(--subtheme-primary-rgb), 0.4);
}

.admin-site__grid > * {
    flex: 1 1 320px;
}

.admin-site__list {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-site__reminder {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: var(--color-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

body.theme-dark .admin-site__lead {
    background: linear-gradient(135deg, rgba(28, 28, 44, 0.92), rgba(28, 28, 44, 0.78));
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .admin-site__tips {
    background: rgba(var(--subtheme-secondary-rgb), 0.12);
    border-color: rgba(var(--subtheme-secondary-rgb), 0.35);
}

body.theme-dark .admin-hierarchy {
    background: rgba(var(--subtheme-primary-rgb), 0.12);
    border-color: rgba(var(--subtheme-primary-rgb), 0.4);
}

body.theme-dark .admin-form-card input,
body.theme-dark .admin-form-card select,
body.theme-dark .admin-form-card textarea,
body.theme-dark .admin-hierarchy__group select {
    background: rgba(20, 24, 40, 0.92);
    color: var(--color-text);
}

body.theme-dark .admin-course-banner__preview {
    background: linear-gradient(135deg, rgba(var(--subtheme-highlight-a-rgb), 0.2), rgba(var(--subtheme-highlight-b-rgb), 0.16));
    border-color: rgba(var(--subtheme-highlight-b-rgb), 0.35);
}

body.theme-dark .admin-course-banner__preview::after {
    color: rgba(235, 240, 255, 0.78);
}

body.theme-dark .admin-tab {
    background: rgba(var(--subtheme-primary-rgb), 0.16);
    border-color: rgba(var(--subtheme-primary-rgb), 0.3);
}

body.theme-dark .admin-tab.is-active {
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.4), rgba(var(--subtheme-secondary-rgb), 0.28));
    border-color: rgba(var(--subtheme-secondary-rgb), 0.45);
}

body.theme-dark .legal-steps li {
    background: rgba(var(--subtheme-primary-rgb), 0.16);
}

body.theme-dark .quiz-question-card {
    background: rgba(var(--subtheme-primary-rgb), 0.14);
}

body.theme-dark .cookie-banner {
    background: rgba(14, 16, 28, 0.75);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

body.theme-dark .syllabus-lesson {
    background: linear-gradient(135deg, rgba(22, 26, 40, 0.88), rgba(35, 40, 60, 0.88));
}

body.theme-dark .syllabus-lesson:hover,
body.theme-dark .syllabus-lesson.is-active {
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.22), rgba(var(--subtheme-secondary-rgb), 0.18));
}
@media (max-width: 960px) {
    .topbar__inner {
        gap: 1rem;
    }

    .topbar__nav {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-banner__actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-banner__actions .btn-outline,
    .cookie-banner__actions .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .course-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .course-card__action {
        width: 100%;
        justify-content: center;
    }

    .course-card__action:last-child {
        margin-left: 0;
    }

    .course-card__action .btn-glow,
    .course-card__action .btn-primary,
    .course-card__action .btn-outline {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .content {
        padding: 1.5rem;
        gap: 3rem;
    }

    .layout-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero__copy h2 {
        font-size: 2.2rem;
    }

    .field-group {
        flex-direction: column;
    }

    .profile-area__widgets {
        display: block;
    }

    .profile-widget {
        width: 100%;
    }

    .profile-widget + .profile-widget {
        margin-top: 1.5rem;
    }

    .admin-widget--table {
        grid-column: span 1;
    }

    .legal-hero h1 {
        font-size: 1.9rem;
    }

    .legal-content {
        gap: 1.5rem;
    }

    .admin-content__grid {
        flex-direction: column;
    }
}

/* Highlight styles */
.hl-keyword {
    color: #ffd479;
}

.hl-string {
    color: #bae67e;
}

.hl-comment {
    color: #7f8fa6;
    font-style: italic;
}

.hl-tag {
    color: #5ccfe6;
}

.hl-attr {
    color: #ffae57;
}

.hl-number {
    color: #ff7ab2;
}

pre code {
    font-family: 'Fira Code', 'Source Code Pro', monospace;
    line-height: 17px;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.cv-page {
    --cv-icon-color: rgba(var(--subtheme-primary-rgb), 0.95);
    --cv-icon-bg: rgba(var(--subtheme-primary-rgb), 0.18);
    --cv-icon-shadow: 0 18px 36px rgba(var(--subtheme-primary-rgb), 0.22);
}

.cv-hero {
    display: grid;
    align-items: center;
    gap: clamp(1.35rem, 4.5vw, 2.25rem);
    margin-top: clamp(1.25rem, 4vw, 2.4rem);
}

.cv-hero--unlocked {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
}

.cv-hero--locked {
    grid-template-columns: minmax(0, 1fr);
}

.cv-summary__portrait {
    position: relative;
    width: 100%;
    max-width: none;
    aspect-ratio: 3 / 4;
    border-radius: calc(var(--radius-lg) * 1.15);
    overflow: hidden;
    box-shadow: 0 28px 65px rgba(15, 18, 34, 0.25);
    background: radial-gradient(circle at 30% 30%, rgba(var(--subtheme-highlight-a-rgb), 0.35), rgba(var(--subtheme-secondary-rgb), 0.15));
    display: grid;
    place-items: center;
    justify-self: stretch;
    align-self: center;
}

.cv-summary__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    filter: saturate(1.15);
}

.cv-hero__title {
    margin: 0;
    display: grid;
    width: min(100%, 720px);
    justify-items: start;
    align-content: center;
    gap: clamp(0.35rem, 1.4vw, 0.75rem);
    font-size: clamp(2.15rem, 4.8vw, 3rem);
    line-height: 1.05;
    letter-spacing: 0.045em;
    font-weight: 800;
    color: var(--color-text);
    text-shadow: 0 20px 45px rgba(15, 18, 34, 0.28);
}

.cv-hero__title-line {
    position: relative;
    display: block;
    width: 100%;
    padding-left: clamp(1.15rem, 2.6vw, 1.95rem);
    padding-right: clamp(0.85rem, 2.4vw, 2.1rem);
    color: rgba(var(--subtheme-text-rgb), 0.92);
    letter-spacing: 0.04em;
    line-height: 1.05;
}

.cv-hero__title-line:first-child {
    font-size: clamp(1.45rem, 3.4vw, 2.45rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cv-hero__title-line:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(0.28rem, 0.7vw, 0.45rem);
    height: 70%;
    background-color: rgba(var(--subtheme-accent-rgb), 0.85);
    box-shadow: 0 18px 38px rgba(var(--subtheme-accent-rgb), 0.35);
}

.cv-hero__title-line--name {
    justify-self: end;
    text-align: right;
    padding-left: clamp(0.45rem, 1.2vw, 1.2rem);
    padding-right: clamp(1.35rem, 3vw, 2.6rem);
    font-size: clamp(1.25rem, 2.9vw, 2.1rem);
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(var(--subtheme-highlight-a-rgb), 0.9);
}

.cv-hero__title-line--name::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.45rem;
    width: clamp(3rem, 45%, 6.75rem);
    height: 0.22rem;
    background-color: rgba(var(--subtheme-highlight-a-rgb), 0.85);
    box-shadow: 0 12px 26px rgba(var(--subtheme-highlight-a-rgb), 0.45);
}

.cv-hero__intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(var(--subtheme-text-rgb), 0.85);
    margin-top: 0.25rem;
}

.cv-hero__status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.status-pill--locked {
    background: rgba(235, 87, 87, 0.15);
    color: #e45868;
    border: 1px solid rgba(235, 87, 87, 0.35);
}

.status-pill--granted {
    background: rgba(87, 235, 162, 0.15);
    color: #4cd38f;
    border: 1px solid rgba(87, 235, 162, 0.35);
}

.cv-locked {
    margin-top: clamp(2.5rem, 7vw, 4rem);
    display: flex;
    justify-content: center;
}

.cv-locked__card {
    max-width: 520px;
    width: 100%;
    padding: clamp(2rem, 6vw, 2.75rem);
    background: linear-gradient(150deg, rgba(var(--subtheme-secondary-rgb), 0.18), rgba(var(--subtheme-primary-rgb), 0.12));
    border-radius: calc(var(--radius-lg) * 1.05);
    border: 1px solid rgba(var(--subtheme-secondary-rgb), 0.3);
    box-shadow: 0 32px 75px rgba(12, 15, 32, 0.2);
    display: grid;
    gap: 1.25rem;
    text-align: center;
}

.cv-locked__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cv-locked__form input {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.28);
    background: rgba(var(--subtheme-surface-rgb, 255, 255, 255), 0.9);
    color: inherit;
}

.cv-locked__note {
    font-size: 0.95rem;
    color: rgba(var(--subtheme-text-rgb), 0.8);
}

.cv-summary {
    margin-top: clamp(2.5rem, 7vw, 3.5rem);
    display: grid;
    gap: 1.5rem;
}

.cv-summary__profile {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 900px) {
    .cv-summary__profile {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

@media (min-width: 900px) {
    .cv-summary__portrait {
        justify-self: stretch;
    }
}

.cv-summary__card--profile {
    height: 100%;
}

.cv-summary__card--full {
    grid-column: 1 / -1;
}

.cv-summary__card {
    background: linear-gradient(145deg, rgba(var(--subtheme-primary-rgb), 0.12), rgba(var(--subtheme-secondary-rgb), 0.1));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.22);
    padding: clamp(1.8rem, 5vw, 2.3rem);
    box-shadow: 0 28px 65px rgba(15, 18, 34, 0.18);
}

.cv-block-title {
    position: relative;
    display: inline-block;
    padding-left: 1.6rem;
    font-size: clamp(1.6rem, 3vw, 2.05rem);
    font-weight: 700;
    letter-spacing: 0.015em;
    color: var(--color-text);
}

.cv-block-title::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(var(--subtheme-primary-rgb), 0.95), rgba(var(--subtheme-accent-rgb), 0.75));
    box-shadow: 0 16px 38px rgba(var(--subtheme-primary-rgb), 0.32);
}

.cv-block-title::after {
    content: '';
    position: absolute;
    left: 1.6rem;
    bottom: -0.55rem;
    width: clamp(3.5rem, 18vw, 7rem);
    height: 0.28rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--subtheme-primary-rgb), 0.65), rgba(var(--subtheme-highlight-b-rgb), 0.55));
    opacity: 0.9;
}

.cv-summary__card--feature {
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.cv-summary__card--feature::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(var(--subtheme-highlight-a-rgb), 0.18), transparent 55%);
    pointer-events: none;
    z-index: -1;
}

.cv-summary__card--focus {
    background: linear-gradient(160deg, rgba(var(--subtheme-highlight-a-rgb), 0.2), rgba(var(--subtheme-highlight-b-rgb), 0.18));
    border-color: rgba(var(--subtheme-highlight-a-rgb), 0.32);
}

.cv-summary__heading {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.cv-summary__icon {
    display: grid;
    place-items: center;
    width: clamp(2.8rem, 6vw, 3.2rem);
    height: clamp(2.8rem, 6vw, 3.2rem);
    border-radius: 1.1rem;
    background: var(--cv-icon-bg);
    color: var(--cv-icon-color);
    box-shadow: var(--cv-icon-shadow);
    font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.cv-summary__subtitle {
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
    color: rgba(var(--subtheme-text-rgb), 0.68);
}

.cv-summary__details {
    display: grid;
    gap: 1.05rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cv-summary__detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
}

.cv-summary__detail-icon {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: var(--radius-md);
    background: var(--cv-icon-bg);
    color: var(--cv-icon-color);
    box-shadow: var(--cv-icon-shadow);
    font-size: 1.1rem;
}

.cv-summary__detail-text {
    display: block;
    font-size: 1.05rem;
    color: rgba(var(--subtheme-text-rgb), 0.9);
    line-height: 1.55;
}

.cv-summary__detail-text strong {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(var(--subtheme-text-rgb), 0.72);
    margin-right: 0.35rem;
}

.cv-summary__list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
    color: rgba(var(--subtheme-text-rgb), 0.88);
}

.cv-summary__list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
}

.cv-summary__bullet {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--radius-md);
    background: var(--cv-icon-bg);
    color: var(--cv-icon-color);
    box-shadow: var(--cv-icon-shadow);
    font-size: 1.25rem;
}

.cv-summary__highlights {
    display: grid;
    gap: 1.5rem;
    grid-column: 1 / -1;
}

@media (min-width: 900px) {
    .cv-summary__highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cv-summary__card a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(var(--subtheme-text-rgb), 0.4);
}

.cv-experience {
    margin-top: clamp(2.5rem, 7vw, 4rem);
    display: grid;
    gap: 2rem;
}

.cv-manifesto {
    margin-top: clamp(2.5rem, 7vw, 3.5rem);
    display: grid;
    gap: 1.8rem;
}

.cv-manifesto__intro {
    max-width: 840px;
}

.cv-manifesto__intro h2 {
    margin-bottom: 0.75rem;
}

.cv-manifesto__intro p {
    color: rgba(var(--subtheme-text-rgb), 0.82);
    font-size: 1.05rem;
}

.cv-manifesto__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.cv-manifesto__card,
.cv-manifesto__quote {
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 5vw, 2.2rem);
    box-shadow: 0 28px 65px rgba(14, 17, 32, 0.2);
    background: rgba(var(--subtheme-primary-rgb), 0.12);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.24);
}

.cv-manifesto__heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.cv-manifesto__icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: var(--cv-icon-bg);
    color: var(--cv-icon-color);
    box-shadow: var(--cv-icon-shadow);
    font-size: 1.25rem;
}

.cv-manifesto__card h3 {
    margin: 0;
}

.cv-manifesto__card ul {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.55rem;
    color: rgba(var(--subtheme-text-rgb), 0.85);
}

.cv-manifesto__quote {
    background: rgba(var(--subtheme-secondary-rgb), 0.14);
    border-color: rgba(var(--subtheme-secondary-rgb), 0.28);
    color: rgba(var(--subtheme-text-rgb), 0.88);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cv-manifesto__heading--quote h3 {
    font-size: 1.18rem;
}

.cv-manifesto__quote p {
    margin: 0;
    font-style: italic;
}

.cv-experience header p {
    max-width: 720px;
    color: rgba(var(--subtheme-text-rgb), 0.8);
}

.timeline {
    display: grid;
    gap: 1.5rem;
    position: relative;
    padding-left: 3.75rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.6rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(var(--subtheme-primary-rgb), 0.5), rgba(var(--subtheme-secondary-rgb), 0.5));
}

.timeline__item {
    position: relative;
    background: rgba(var(--subtheme-primary-rgb), 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.2);
    padding: 1.6rem 1.6rem 1.6rem 3.4rem;
    box-shadow: 0 18px 45px rgba(14, 17, 32, 0.16);
    overflow: visible;
}

.timeline__item::before {
    content: none;
}

.timeline__icon {
    position: absolute;
    left: -3.6rem;
    top: 1.55rem;
    width: clamp(3rem, 7vw, 3.4rem);
    height: clamp(3rem, 7vw, 3.4rem);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 1), rgba(var(--subtheme-secondary-rgb), 1));
    border: 2px solid rgba(var(--subtheme-secondary-rgb), 0.45);
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 18px 38px rgba(15, 18, 34, 0.22);
    font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.timeline__content {
    display: grid;
    gap: 0.75rem;
}

.timeline__item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.timeline__item span {
    font-weight: 600;
}

.timeline__period {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(var(--subtheme-text-rgb), 0.6);
    margin-bottom: 0.75rem;
}

.cv-role__list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.5rem;
    color: rgba(var(--subtheme-text-rgb), 0.82);
}

.cv-education {
    margin-top: clamp(2.5rem, 7vw, 4rem);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cv-education__block {
    background: rgba(var(--subtheme-secondary-rgb), 0.12);
    border: 1px solid rgba(var(--subtheme-secondary-rgb), 0.28);
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 5vw, 2.2rem);
    box-shadow: 0 24px 55px rgba(14, 17, 32, 0.18);
}

.cv-education__block--full {
    grid-column: 1 / -1;
}

.cv-education__heading {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.cv-education__icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: var(--cv-icon-bg);
    color: var(--cv-icon-color);
    box-shadow: var(--cv-icon-shadow);
    font-size: 1.2rem;
}

.cv-education__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    color: rgba(var(--subtheme-text-rgb), 0.7);
}

.cv-education__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    color: rgba(var(--subtheme-text-rgb), 0.85);
}

.cv-education__single {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1rem;
    background: rgba(var(--subtheme-secondary-rgb), 0.18);
    border-radius: var(--radius-md);
    color: rgba(var(--subtheme-text-rgb), 0.88);
    box-shadow: 0 12px 26px rgba(var(--subtheme-secondary-rgb), 0.18);
    font-size: 1.02rem;
}

.cv-education__single-icon {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: var(--radius-md);
    background: var(--cv-icon-bg);
    color: var(--cv-icon-color);
    box-shadow: var(--cv-icon-shadow);
    font-size: 1.05rem;
}

.cv-cert-intro {
    margin: 0 0 1rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(var(--subtheme-text-rgb), 0.8);
}

.cv-cert-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.4rem, 2.8vw, 2.25rem);
    align-items: stretch;
}

.cv-cert-provider {
    background: linear-gradient(135deg, rgba(var(--subtheme-secondary-rgb), 0.22), rgba(var(--subtheme-primary-rgb), 0.12));
    border-radius: calc(var(--radius-lg) * 0.85);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.2);
    padding: 10px;
    box-shadow: 0 24px 48px rgba(14, 18, 34, 0.18);
    backdrop-filter: blur(6px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
    break-inside: avoid;
}

.cv-cert-provider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(var(--subtheme-accent-rgb), 0.25), transparent 60%);
    opacity: 0.85;
    pointer-events: none;
}

.cv-cert-provider > * {
    position: relative;
    z-index: 1;
}

.cv-cert-provider:hover,
.cv-cert-provider:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 32px 72px rgba(12, 15, 32, 0.24);
}

.cv-cert-provider h3 {
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    margin: 0;
    color: rgba(var(--subtheme-text-rgb), 0.92);
}

.cv-cert-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 0.35rem;
    padding: 0;
    color: rgba(var(--subtheme-text-rgb), 0.94);
}

.cv-cert-provider h3 + .cv-cert-title {
    margin-top: 1.1rem;
}

.cv-cert-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--cv-icon-color);
}

.cv-cert-title-text {
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: 0.01em;
    flex: 1 1 auto;
}

.cv-cert-title-year {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(var(--subtheme-text-rgb), 0.65);
    margin-left: auto;
}

.cv-cert-description {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    color: rgba(var(--subtheme-text-rgb), 0.78);
}

.cv-cert-tags {
    margin: 0 0 0.9rem;
    padding: 0 0 0 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.cv-cert-tags li {
    list-style: none;
}

.cv-cert-provider .cv-cert-tags:last-of-type {
    margin-bottom: 0;
}

.cv-cert-course-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 0.18), rgba(var(--subtheme-accent-rgb), 0.25));
    color: rgba(var(--subtheme-text-rgb), 0.92);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 28px rgba(15, 18, 34, 0.18);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: default;
}

.cv-cert-course-tag:hover,
.cv-cert-course-tag:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(12, 15, 32, 0.22);
    background: linear-gradient(135deg, rgba(var(--subtheme-accent-rgb), 0.38), rgba(var(--subtheme-primary-rgb), 0.28));
}

.cv-cert-course-tag__icon {
    display: grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: rgba(var(--subtheme-secondary-rgb), 0.35);
    color: rgba(var(--subtheme-text-rgb), 0.96);
    box-shadow: 0 10px 18px rgba(12, 15, 32, 0.25);
    font-size: 0.85rem;
}

.cv-cert-course-tag__text {
    white-space: nowrap;
    font-size: smaller;
}


.cv-additional {
    margin-top: clamp(2.5rem, 7vw, 4rem);
    display: grid;
    gap: 2rem;
}

.cv-additional__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.6rem;
    align-items: stretch;
}

.cv-additional__stack {
    display: grid;
    gap: 1.6rem;
}

.cv-additional__card {
    background: rgba(var(--subtheme-highlight-a-rgb), 0.12);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--subtheme-highlight-a-rgb), 0.22);
    padding: clamp(1.6rem, 5vw, 2.2rem);
    box-shadow: 0 24px 55px rgba(15, 18, 34, 0.18);
    height: 100%;
}

.cv-additional__card--accent {
    background: linear-gradient(150deg, rgba(var(--subtheme-secondary-rgb), 0.2), rgba(var(--subtheme-primary-rgb), 0.18));
    border-color: rgba(var(--subtheme-secondary-rgb), 0.32);
}

.cv-additional__heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cv-additional__icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: var(--cv-icon-bg);
    color: var(--cv-icon-color);
    box-shadow: var(--cv-icon-shadow);
    font-size: 1.15rem;
}

.cv-additional__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
    color: rgba(var(--subtheme-text-rgb), 0.86);
}

.cv-additional__list--courses li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.cv-additional__course-icon {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: var(--radius-md);
    background: var(--cv-icon-bg);
    color: var(--cv-icon-color);
    box-shadow: var(--cv-icon-shadow);
    font-size: 1rem;
}

.cv-course-item {
    display: grid;
    gap: 0.35rem;
}

.cv-course-item__row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cv-course-item__name {
    font-weight: 600;
    color: rgba(var(--subtheme-text-rgb), 0.92);
}

.cv-course-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: rgba(var(--subtheme-text-rgb), 0.7);
}

.cv-course-item__description {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(var(--subtheme-text-rgb), 0.68);
}

.cv-course-item__year {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(var(--subtheme-text-rgb), 0.62);
}

.cv-additional__list--icons li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
}

.cv-additional__bullet {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: var(--radius-md);
    background: var(--cv-icon-bg);
    color: var(--cv-icon-color);
    box-shadow: var(--cv-icon-shadow);
    font-size: 1.1rem;
}

.cv-footer {
    margin-top: clamp(2.5rem, 8vw, 4.5rem);
}

.cv-footer__card {
    background: linear-gradient(160deg, rgba(var(--subtheme-primary-rgb), 0.22), rgba(var(--subtheme-secondary-rgb), 0.2));
    border-radius: calc(var(--radius-lg) * 1.1);
    border: 1px solid rgba(var(--subtheme-primary-rgb), 0.32);
    padding: clamp(2.2rem, 6vw, 3rem);
    box-shadow: 0 36px 85px rgba(12, 15, 32, 0.24);
    display: grid;
    gap: 1.4rem;
}


.cv-footer__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cv-footer__cta {
    flex: 1 1 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.75rem;
    border: 2px solid rgba(var(--subtheme-primary-rgb), 0.45);
    background-color: rgba(var(--subtheme-primary-rgb), 0.12);
    color: rgba(var(--subtheme-text-rgb), 0.92);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 22px 45px rgba(12, 15, 32, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.cv-footer__cta i {
    font-size: 1rem;
}

.cv-footer__cta:hover {
    transform: translateY(-3px);
    background-color: rgba(var(--subtheme-primary-rgb), 0.18);
    border-color: rgba(var(--subtheme-primary-rgb), 0.65);
    box-shadow: 0 26px 55px rgba(12, 15, 32, 0.24);
    color: rgba(var(--subtheme-text-rgb), 0.98);
}

.cv-footer__cta:focus-visible {
    outline: none;
    transform: translateY(-3px);
    background-color: rgba(var(--subtheme-primary-rgb), 0.18);
    border-color: rgba(var(--subtheme-primary-rgb), 0.65);
    color: rgba(var(--subtheme-text-rgb), 0.98);
    box-shadow: 0 26px 55px rgba(12, 15, 32, 0.24), 0 0 0 4px rgba(var(--subtheme-primary-rgb), 0.25);
}

body.theme-dark .cv-footer__cta {
    background-color: rgba(var(--subtheme-primary-rgb), 0.22);
    border-color: rgba(var(--subtheme-primary-rgb), 0.55);
    color: rgba(var(--subtheme-text-rgb), 0.96);
}

body.theme-dark .cv-footer__cta:hover,
body.theme-dark .cv-footer__cta:focus-visible {
    background-color: rgba(var(--subtheme-primary-rgb), 0.3);
    border-color: rgba(var(--subtheme-primary-rgb), 0.72);
}

body.theme-dark .cert-badge__icon,
body.theme-dark .cv-summary__icon,
body.theme-dark .cv-summary__detail-icon,
body.theme-dark .cv-summary__bullet,
body.theme-dark .cv-manifesto__icon,
body.theme-dark .cv-education__icon,
body.theme-dark .cv-education__single-icon,
body.theme-dark .cv-cert-course-tag__icon,
body.theme-dark .cv-additional__icon,
body.theme-dark .cv-additional__course-icon,
body.theme-dark .cv-additional__bullet {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(5, 6, 20, 0.45);
}

body.theme-dark .cv-cert-provider {
    background: linear-gradient(135deg, rgba(var(--subtheme-secondary-rgb), 0.18), rgba(var(--subtheme-primary-rgb), 0.28));
    border-color: rgba(var(--subtheme-primary-rgb), 0.35);
    box-shadow: 0 28px 64px rgba(5, 6, 20, 0.35);
}

body.theme-dark .cv-cert-provider::after {
    background: radial-gradient(circle at top right, rgba(var(--subtheme-accent-rgb), 0.4), transparent 65%);
}

body.theme-dark .cv-cert-course-tag {
    background: linear-gradient(135deg, rgba(var(--subtheme-accent-rgb), 0.42), rgba(var(--subtheme-primary-rgb), 0.3));
    border-color: rgba(var(--subtheme-accent-rgb), 0.55);
    color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 45px rgba(5, 6, 20, 0.38);
}

body.theme-dark .cv-cert-course-tag:hover,
body.theme-dark .cv-cert-course-tag:focus-visible {
    background: linear-gradient(135deg, rgba(var(--subtheme-accent-rgb), 0.55), rgba(var(--subtheme-primary-rgb), 0.42));
}

body.theme-dark .timeline__icon {
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(var(--subtheme-analog-2-rgb), 0.55);
    background: linear-gradient(135deg, rgba(var(--subtheme-primary-rgb), 1), rgba(var(--subtheme-analog-1-rgb), 1));
    box-shadow: 0 22px 48px rgba(6, 7, 18, 0.62);
}

body.theme-dark .course-card__button {
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

body.theme-dark .course-card__button--analog {
    border-color: rgba(var(--subtheme-analog-2-rgb), 0.85);
}

@media (max-width: 1024px) {
    .cv-summary {
        grid-template-columns: 1fr;
    }

    .cv-summary__highlights {
        grid-template-columns: 1fr;
    }

    .cv-cert-columns {
        grid-template-columns: 1fr;
    }

    .cv-additional__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .cv-hero__status {
        width: 100%;
        justify-content: flex-start;
    }

    .cv-hero__title {
        width: 100%;
        gap: 0.5rem;
    }

    .cv-hero__title-line {
        padding-left: 0.85rem;
        padding-right: 1.4rem;
        letter-spacing: 0.06em;
    }

    .cv-hero__title-line--name {
        padding-right: 1.8rem;
        letter-spacing: 0.24em;
    }

    .cv-footer__contact {
        flex-direction: column;
    }

    .cv-footer__cta {
        width: 100%;
    }
}

@media print {
    @page {
        margin: 8mm;
    }

    *,
    *::before,
    *::after {
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
        transition: none !important;
        filter: none !important;
    }

    html,
    body {
        background: #ffffff !important;
        color: #0b0f19 !important;
        font-size: 10pt !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body::before,
    body::after {
        display: none !important;
    }

    .app-shell,
    #mainContent,
    .layout-container,
    .content,
    .cv-education__block,
    .cv-cert-provider,
    .cv-summary,
    .cv-summary__card,
    .cv-additional__card,
    .cv-footer__card {
        background: transparent !important;
        border-color: rgba(11, 31, 75, 0.18) !important;
    }

    #mainContent {
        max-width: none !important;
        margin: 0 !important;
    }

    .layout-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    .content {
        padding: 0 !important;
        gap: 1.6rem !important;
    }

    .cv-cert-provider {
        border: 2px solid #0b1f4b !important;
    }

    article.cv-summary__card,
    article.cv-education__block,
    article.cv-cert-provider,
    article.cv-manifesto__card,
    article.cv-manifesto__quote,
    article.timeline__item,
    article.cv-additional__card {
        padding: 9px !important;
    }

    .cv-cert-provider::after {
        display: none !important;
    }

    .cv-hero {
        margin-top: 0.5rem !important;
    }

    .cv-hero__title {
        font-size: 22pt !important;
        gap: 0.25rem !important;
        width: 100% !important;
    }

    .cv-hero__title-line {
        padding: 0 !important;
        color: #0b1f4b !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase !important;
    }

    .cv-hero__title-line:first-child {
        font-size: 16pt !important;
    }

    .cv-hero__title-line:first-child::before,
    .cv-hero__title-line--name::after {
        display: none !important;
    }

    .cv-hero__title-line--name {
        justify-self: end !important;
        text-align: right !important;
        color: #0b1f4b !important;
        letter-spacing: 0.2em !important;
    }

    .cv-summary__profile {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .cv-summary__portrait {
        justify-self: stretch !important;
    }

    .cv-summary__card,
    .cv-summary__portrait,
    .cv-education__block,
    .cv-cert-provider,
    .cv-cert-title,

    .cv-manifesto__card,
    .cv-manifesto__quote,
    .timeline__item,
    .cv-additional__card {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .cv-course-item__row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 0.45rem !important;
        align-items: baseline !important;
    }

    .cv-course-item__meta {
        display: grid !important;
        justify-items: end !important;
        text-align: right !important;
        gap: 0.2rem !important;
    }

    .cv-course-item__provider {
        font-size: 0.75em !important;
    }

    .cv-course-item__year {
        font-size: 0.6em !important;
        letter-spacing: 0.12em !important;
    }

    .cv-cert-course-tag {
        background: #0b1f4b !important;
        color: #ffffff !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .cv-cert-course-tag__icon {
        background: rgba(255, 255, 255, 0.18) !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    .cv-cert-columns {
        gap: 1.2rem !important;
    }

    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }

    .topbar,
    .topbar__nav,
    .footer,
    .notifications-panel,
    .cv-footer,
    .theme-picker,
    .modal,
    .topbar__menu-toggle,
    .topbar__actions,
    .brand-logo,
    .contact-panel,
    .cv-footer__contact {
        display: none !important;
    }

    a,
    a:visited {
        color: #0b4bb8 !important;
        text-decoration: underline !important;
    }

    .cv-block-title,
    .cv-summary__heading h2,
    .cv-cert-title,
    .cv-cert-title-text,
    .cv-cert-title-year,
    .cv-additional__heading h3 {
        color: #0b1f4b !important;
    }
}

.admin-cv {
    display: grid;
    gap: 2rem;
}

.admin-cv__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.admin-cv__form {
    display: grid;
    gap: 1.1rem;
}

.admin-cv__password-field {
    display: flex;
    gap: 0.75rem;
}

.admin-cv__password-field input {
    flex: 1 1 auto;
}

.admin-cv__hint {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(var(--subtheme-text-rgb), 0.72);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-cv__last-created {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(var(--subtheme-secondary-rgb), 0.4);
    background: rgba(var(--subtheme-secondary-rgb), 0.12);
    display: grid;
    gap: 0.75rem;
}

.admin-cv__table-wrapper {
    overflow-x: auto;
}

.admin-cv__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.admin-cv__table th,
.admin-cv__table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(var(--subtheme-primary-rgb), 0.18);
    text-align: left;
}

.admin-cv__table tbody tr:hover {
    background: rgba(var(--subtheme-primary-rgb), 0.08);
}

.admin-cv__table td:last-child {
    text-align: right;
}

.admin-cv__logs {
    display: grid;
    gap: 0.75rem;
}

.admin-cv__log-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(var(--subtheme-secondary-rgb), 0.12);
    border: 1px solid rgba(var(--subtheme-secondary-rgb), 0.22);
}

.admin-cv__log-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-cv__log-meta strong {
    font-size: 0.95rem;
}

.admin-cv__log-meta span {
    font-size: 0.85rem;
    color: rgba(var(--subtheme-text-rgb), 0.7);
}
