
        :root {
            color-scheme: light;
            --font-sans: "Segoe UI Variable", "Segoe UI", Inter, system-ui, sans-serif;
            --font-display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
            --page-bg: radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 24%), radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 20%), linear-gradient(180deg, #f7fafc 0%, #eef2f7 46%, #f8f5ef 100%);
            --surface: rgba(255,255,255,0.88);
            --surface-strong: #ffffff;
            --surface-soft: rgba(247,248,250,0.92);
            --surface-muted: #f6f8fb;
            --line: rgba(148, 163, 184, 0.22);
            --line-strong: rgba(100, 116, 139, 0.34);
            --text: #0f172a;
            --heading: #020617;
            --muted: #64748b;
            --brand: #0f766e;
            --brand-strong: #115e59;
            --brand-soft: rgba(15, 118, 110, 0.12);
            --accent: #ea580c;
            --accent-soft: rgba(234, 88, 12, 0.10);
            --success: #15803d;
            --success-soft: rgba(21, 128, 61, 0.12);
            --danger: #b91c1c;
            --danger-soft: rgba(185, 28, 28, 0.12);
            --warning: #b45309;
            --warning-soft: rgba(180, 83, 9, 0.12);
            --shadow-sm: 0 16px 34px rgba(15, 23, 42, 0.08);
            --shadow-md: 0 28px 70px rgba(15, 23, 42, 0.12);
            --radius-xl: 30px;
            --radius-lg: 24px;
            --radius-md: 18px;
            --radius-sm: 14px;
        }

        html[data-theme="dark"] {
            color-scheme: dark;
            --page-bg: radial-gradient(circle at top left, rgba(45, 212, 191, 0.10), transparent 24%), radial-gradient(circle at top right, rgba(251, 146, 60, 0.08), transparent 18%), linear-gradient(180deg, #07111d 0%, #0c1728 46%, #101827 100%);
            --surface: rgba(11, 19, 32, 0.82);
            --surface-strong: #111c2d;
            --surface-soft: rgba(15, 23, 42, 0.78);
            --surface-muted: #152033;
            --line: rgba(148, 163, 184, 0.16);
            --line-strong: rgba(148, 163, 184, 0.28);
            --text: #e2e8f0;
            --heading: #f8fafc;
            --muted: #94a3b8;
            --brand: #2dd4bf;
            --brand-strong: #14b8a6;
            --brand-soft: rgba(45, 212, 191, 0.14);
            --accent: #fb923c;
            --accent-soft: rgba(251, 146, 60, 0.14);
            --success: #4ade80;
            --success-soft: rgba(74, 222, 128, 0.14);
            --danger: #f87171;
            --danger-soft: rgba(248, 113, 113, 0.14);
            --warning: #fbbf24;
            --warning-soft: rgba(251, 191, 36, 0.14);
            --shadow-sm: 0 18px 40px rgba(2, 6, 23, 0.28);
            --shadow-md: 0 28px 84px rgba(2, 6, 23, 0.42);
        }

        * { box-sizing: border-box; }
        html { background: #0f172a; }
        body {
            margin: 0;
            min-height: 100vh;
            color: var(--text);
            font-family: var(--font-sans);
            background: var(--page-bg);
        }

        a { color: inherit; text-decoration: none; }
        button, input, select, textarea { font: inherit; }

        .shell { max-width: 1240px; margin: 0 auto; padding: 20px; }
        .topbar, .card, .hero, .panel-surface {
            border: 1px solid var(--line);
            background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)), var(--surface);
            box-shadow: var(--shadow-sm);
            backdrop-filter: blur(16px);
            border-radius: var(--radius-xl);
        }

        .topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 20px; }
        .brand { display: flex; align-items: center; gap: 12px; }
        .brand-mark {
            width: 44px;
            height: 44px;
            display: inline-grid;
            place-items: center;
            flex: 0 0 44px;
            border-radius: 14px;
            background: #fff;
            box-shadow: 0 10px 24px rgba(15, 118, 110, 0.14);
            overflow: hidden;
        }
        .brand-mark img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.18); }
        .brand-copy { display: grid; gap: 6px; }
        .brand strong { color: var(--heading); font-size: 1.15rem; }
        .brand span { color: var(--muted); font-size: 0.92rem; }

        .docente-app {
            display: grid;
            grid-template-columns: 290px minmax(0, 1fr);
            gap: 22px;
            min-height: 100vh;
            padding: 20px;
            position: relative;
            isolation: isolate;
            overflow: visible;
        }

        .docente-sidebar-shell {
            position: sticky;
            top: 20px;
            align-self: start;
            min-height: calc(100vh - 40px);
            z-index: 3000;
        }

        .docente-main-shell {
            display: grid;
            gap: 18px;
            min-width: 0;
            align-content: start;
            position: relative;
            z-index: 1;
            overflow: visible;
        }

        .docente-content {
            display: grid;
            gap: 18px;
            min-width: 0;
            position: relative;
            z-index: 1;
            overflow: visible;
        }

        .docente-sidebar-backdrop {
            display: none;
        }

        .docente-sidebar-card,
        .docente-header {
            border: 1px solid var(--line);
            background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)), var(--surface);
            box-shadow: var(--shadow-md);
            backdrop-filter: blur(18px);
            border-radius: 30px;
        }

        .docente-sidebar-card {
            display: grid;
            gap: 18px;
            padding: 20px;
            max-height: calc(100vh - 40px);
            overflow: auto;
            position: relative;
            z-index: 3001;
        }

        .docente-sidebar-brand,
        .docente-sidebar-focus,
        .docente-sidebar-link,
        .docente-sidebar-secondary,
        .docente-sidebar-logout,
        .docente-shortcut,
        .docente-shortcut-accent,
        .docente-header-notice,
        .docente-header-user-button,
        .theme-button,
        .button,
        .button-secondary {
            transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
        }

        .docente-sidebar-brand,
        .docente-sidebar-focus {
            display: flex;
            gap: 12px;
            align-items: center;
            padding: 14px;
            border-radius: 22px;
            border: 1px solid var(--line);
            background: var(--surface-soft);
        }

        .docente-sidebar-brand-mark,
        .docente-header-user-avatar {
            width: 46px;
            height: 46px;
            display: inline-grid;
            place-items: center;
            border-radius: 16px;
            background: linear-gradient(135deg, var(--brand), var(--brand-strong));
            color: #fff;
            font-weight: 800;
            box-shadow: 0 12px 24px rgba(15, 118, 110, 0.24);
            flex: 0 0 46px;
        }

        .docente-sidebar-brand-mark {
            overflow: hidden;
            background: #fff;
            box-shadow: 0 12px 28px rgba(15, 118, 110, 0.18);
        }

        .docente-sidebar-brand-mark img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            transform: scale(1.22);
        }

        .docente-sidebar-brand-copy,
        .docente-header-user-copy {
            display: grid;
            gap: 3px;
            min-width: 0;
        }

        .docente-sidebar-brand-copy strong,
        .docente-header-user-copy strong { color: var(--heading); }
        .docente-sidebar-brand-copy span,
        .docente-header-user-copy span { color: var(--muted); font-size: .84rem; }

        .docente-sidebar-focus {
            display: grid;
            gap: 6px;
            align-items: start;
            background: linear-gradient(135deg, var(--brand-soft), transparent), var(--surface-soft);
        }

        .docente-sidebar-focus-badge {
            display: inline-flex;
            width: fit-content;
            align-items: center;
            min-height: 30px;
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(255,255,255,.7);
            color: var(--brand-strong);
            font-size: .78rem;
            font-weight: 800;
        }

        .docente-sidebar-nav,
        .docente-sidebar-group,
        .docente-sidebar-links { display: grid; gap: 10px; }

        .docente-sidebar-group-title {
            margin: 0;
            color: var(--muted);
            font-size: .72rem;
            font-weight: 800;
            letter-spacing: .12em;
            text-transform: uppercase;
            padding: 0 6px;
        }

        .docente-sidebar-link,
        .docente-sidebar-secondary,
        .docente-sidebar-logout {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            min-height: 46px;
            padding: 0 14px;
            border-radius: 16px;
            border: 1px solid transparent;
            background: transparent;
            color: var(--muted);
            font-weight: 700;
            text-align: left;
            cursor: pointer;
        }

        .docente-sidebar-link:hover,
        .docente-sidebar-secondary:hover,
        .docente-sidebar-logout:hover,
        .docente-header-notice:hover,
        .docente-shortcut:hover,
        .theme-button:hover,
        .button:hover,
        .button-secondary:hover,
        .docente-header-user-button:hover {
            transform: translateY(-1px);
        }

        .docente-sidebar-link:hover,
        .docente-sidebar-secondary:hover,
        .docente-sidebar-logout:hover {
            background: rgba(255,255,255,.06);
            border-color: var(--line);
            color: var(--heading);
        }

        .docente-sidebar-link.is-active {
            background: linear-gradient(135deg, var(--brand-soft), transparent), var(--surface-soft);
            border-color: rgba(15, 118, 110, 0.22);
            color: var(--heading);
            box-shadow: inset 3px 0 0 var(--brand);
        }

        .docente-sidebar-icon {
            width: 20px;
            height: 20px;
            display: inline-grid;
            place-items: center;
            flex: 0 0 20px;
        }

        .docente-sidebar-icon svg,
        .theme-icon,
        .docente-header-notice svg,
        .docente-header-mobile-toggle svg { width: 18px; height: 18px; }

        .docente-sidebar-footer { display: grid; gap: 10px; margin-top: auto; }

        .docente-header {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 18px;
            padding: 20px 22px;
            position: relative;
            z-index: 2600;
            overflow: visible;
        }

        .docente-header-main,
        .docente-header-actions,
        .docente-header-shortcuts,
        .docente-header-meta,
        .docente-header-user {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px;
            overflow: visible;
        }

        .docente-header-main { min-width: 0; }
        .docente-header-copy { display: grid; gap: 8px; min-width: 0; }
        .docente-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .85rem; }
        .docente-breadcrumb a:hover { color: var(--heading); }
        .docente-breadcrumb-separator { opacity: .5; }

        h1, h2, h3 { margin: 0; color: var(--heading); letter-spacing: -0.03em; }
        h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: .96; }
        h2 { font-size: 1.45rem; }
        h3 { font-size: 1.02rem; }
        p { margin: 0; line-height: 1.68; }
        .lead, .helper, .muted { color: var(--muted); }
        .lead { max-width: 760px; font-size: 1rem; }

        .docente-shortcut,
        .docente-shortcut-accent,
        .docente-header-notice,
        .docente-header-user-button,
        .button,
        .button-secondary,
        .theme-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            min-height: 44px;
            padding: 0 16px;
            border-radius: 14px;
            border: 1px solid var(--line);
            background: var(--surface-soft);
            color: var(--text);
            font-weight: 700;
        }

        .docente-shortcut-accent,
        .button {
            border-color: transparent;
            background: linear-gradient(135deg, var(--brand), var(--brand-strong));
            color: #fff;
            box-shadow: 0 14px 28px rgba(15, 118, 110, 0.22);
        }

        .docente-header-notice { width: 44px; padding: 0; }

        .docente-header-user { position: relative; }
        .docente-header-user-button { justify-content: space-between; min-width: 230px; }
        .docente-header-user-copy strong,
        .docente-header-user-copy span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 150px;
        }

        .docente-header-user-button[aria-expanded="true"] {
            border-color: rgba(15, 118, 110, 0.24);
            background: linear-gradient(135deg, var(--brand-soft), transparent), var(--surface-soft);
            box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
        }

        .docente-header-user-menu {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            min-width: 230px;
            display: none;
            gap: 6px;
            padding: 12px;
            border: 1px solid var(--line-strong);
            border-radius: 20px;
            background: var(--surface-strong);
            box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
            backdrop-filter: blur(0);
            z-index: 3600;
            transform: translateY(6px);
            opacity: 0;
            pointer-events: none;
        }

        .docente-header-user-menu.is-open {
            display: grid;
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }

        html[data-theme="dark"] .docente-header-user-menu {
            background: #162235;
            box-shadow: 0 26px 60px rgba(2, 6, 23, 0.55);
        }

        .docente-header-user-menu a,
        .docente-header-user-menu button {
            display: flex;
            align-items: center;
            width: 100%;
            min-height: 42px;
            padding: 0 14px;
            border: 0;
            border-radius: 12px;
            background: transparent;
            color: var(--text);
            text-align: left;
            cursor: pointer;
            font-weight: 700;
        }

        .docente-header-user-menu a:hover,
        .docente-header-user-menu button:hover {
            background: linear-gradient(135deg, var(--brand-soft), transparent), var(--surface-soft);
            color: var(--heading);
        }
        .docente-header-mobile-toggle { display: none; }

        .actions, .hero-actions, .chip-row, .panel-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
        .panel-head { justify-content: space-between; margin-bottom: 18px; }
        .hero { padding: 30px; margin-bottom: 20px; box-shadow: var(--shadow-md); }
        .eyebrow, .chip, .status-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 34px;
            padding: 8px 14px;
            border-radius: 999px;
            border: 1px solid transparent;
            font-size: .8rem;
            font-weight: 700;
        }
        .eyebrow { background: linear-gradient(135deg, var(--brand-soft), transparent), var(--surface-soft); color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
        .chip { background: var(--surface-soft); color: var(--muted); border-color: var(--line); }
        .status-pill.success, .status-pill.is-success { background: linear-gradient(135deg, var(--success-soft), transparent), var(--surface-soft); color: var(--success); border-color: rgba(21, 128, 61, 0.18); }
        .status-pill.warning, .status-pill.is-warning { background: linear-gradient(135deg, var(--warning-soft), transparent), var(--surface-soft); color: var(--warning); border-color: rgba(180, 83, 9, 0.18); }
        .status-pill.info, .status-pill.is-info { background: linear-gradient(135deg, rgba(59,130,246,.12), transparent), var(--surface-soft); color: #2563eb; border-color: rgba(37,99,235,.16); }
        .status-pill.danger, .status-pill.is-danger { background: linear-gradient(135deg, var(--danger-soft), transparent), var(--surface-soft); color: var(--danger); border-color: rgba(185, 28, 28, 0.18); }

        .grid { display: grid; gap: 18px; }
        .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .card { padding: 24px; }
        .form-grid { display: grid; gap: 14px; }
        .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        label { display: block; margin-bottom: 8px; color: var(--heading); font-size: .88rem; font-weight: 700; }
        .required-mark { margin-left: 4px; color: var(--danger); font-weight: 800; }
        .form-note { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
        input, select, textarea {
            width: 100%;
            min-height: 48px;
            padding: 12px 14px;
            border-radius: 14px;
            border: 1px solid var(--line);
            background: var(--surface-strong);
            color: var(--text);
        }
        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: rgba(15, 118, 110, .56);
            box-shadow: 0 0 0 4px rgba(15, 118, 110, .14);
        }
        textarea { min-height: 120px; resize: vertical; }
        table { width: 100%; border-collapse: collapse; }
        th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(148,163,184,.18); vertical-align: top; }
        thead th { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.25); }
        html[data-theme="dark"] thead th { background: rgba(17,28,45,.9); }
        code { padding: 4px 8px; border-radius: 10px; background: rgba(148,163,184,.14); color: var(--heading); }
        .text-justify, .prose-block p, .prose-block li { text-align: justify; text-justify: inter-word; overflow-wrap: anywhere; hyphens: auto; }
        .alert { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; border-radius: 18px; border: 1px solid transparent; }
        .alert.success { background: rgba(21, 128, 61, 0.1); color: var(--success); border-color: rgba(21, 128, 61, 0.18); }
        .alert.error { background: rgba(185, 28, 28, 0.1); color: var(--danger); border-color: rgba(185, 28, 28, 0.18); }
        .alert.warning { background: rgba(180, 83, 9, 0.1); color: var(--warning); border-color: rgba(180, 83, 9, 0.18); }

        .feedback-cta {
            margin-top: 10px;
            border: 1px solid var(--line);
            border-radius: 28px;
            background: linear-gradient(135deg, rgba(15,118,110,.16), rgba(249,115,22,.1)), var(--surface);
            box-shadow: var(--shadow-md);
            padding: 22px 24px;
            display: flex;
            gap: 16px;
            justify-content: space-between;
            align-items: center;
        }
        .feedback-copy { display: grid; gap: 8px; max-width: 760px; }
        .feedback-actions { display: flex; flex-wrap: wrap; gap: 10px; }

        @media (max-width: 1200px) {
            .docente-app { grid-template-columns: 1fr; }
            .docente-sidebar-shell {
                position: fixed;
                inset: 0 auto 0 0;
                width: min(320px, calc(100vw - 36px));
                z-index: 5200;
                padding: 16px;
                transform: translateX(-110%);
                transition: transform .22s ease;
            }
            .docente-sidebar-card {
                z-index: 5201;
            }
            .docente-sidebar-shell.is-open { transform: translateX(0); }
            .docente-sidebar-backdrop {
                position: fixed;
                inset: 0;
                z-index: 5100;
                background: rgba(2, 6, 23, 0.56);
                backdrop-filter: blur(2px);
                display: none;
                pointer-events: none;
            }
            .docente-sidebar-backdrop.is-open {
                display: block;
                pointer-events: auto;
            }
            body.docente-sidebar-open {
                overflow: hidden;
                touch-action: none;
            }
            .docente-header-mobile-toggle {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 44px;
                height: 44px;
                padding: 0;
                border: 1px solid var(--line);
                border-radius: 14px;
                background: var(--surface-soft);
                color: var(--text);
            }
        }

        @media (max-width: 980px) {
            .grid.cols-2, .form-grid.cols-2, .docente-header { grid-template-columns: 1fr; }
            .docente-header { padding: 18px; }
            .docente-header-actions { justify-content: space-between; }
        }

        @media (max-width: 720px) {
            .shell, .docente-app { padding: 14px; }
            .topbar, .hero, .card, .panel-surface, .feedback-cta { padding: 18px; border-radius: 22px; }
            .docente-header-shortcuts, .docente-header-meta, .actions, .feedback-actions { width: 100%; justify-content: flex-start; }
            .button, .button-secondary, .theme-button, .docente-shortcut, .docente-shortcut-accent { width: 100%; }
            .docente-header-user-button { min-width: 0; width: 100%; }
            .feedback-cta { display: grid; }
        }