@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
            --orange: #f39432;
            --deep: #cc6616;
            --ink: #303338;
            --muted: #82858b;
            --bg: #f7f8fa;
            --line: #e9ebee;
            --soft: #fff3e6;
            --green: #38826b;
            --sidebar: 248px
        }

        * {
            box-sizing: border-box
        }

        body {
            margin: 0;
            background: var(--bg);
            color: var(--ink);
            font: 14px 'DM Sans', Arial, sans-serif
        }

        button,
        input,
        select,
        textarea {
            font: inherit
        }

        button,
        a,
        input,
        select,
        textarea {
            -webkit-tap-highlight-color: transparent
        }

        button {
            cursor: pointer
        }

        a {
            color: inherit;
            text-decoration: none
        }

        button {
            border: 0
        }

        button:focus-visible,
        a:focus-visible {
            outline: 3px solid #d87927;
            outline-offset: 4px
        }

        h1,
        h2,
        h3,
        h4,
        p {
            margin: 0
        }

        h1,
        h2,
        h3,
        h4,
        .brand {
            font-family: Manrope, Arial, sans-serif
        }

        svg {
            vertical-align: middle
        }

        .icon {
            width: 20px;
            height: 20px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.7;
            stroke-linecap: round;
            stroke-linejoin: round;
            flex-shrink: 0
        }

        .sidebar {
            position: fixed;
            inset: 0 auto 0 0;
            width: var(--sidebar);
            background: white;
            border-right: 1px solid var(--line);
            display: flex;
            flex-direction: column;
            padding: 33px 20px 22px;
            z-index: 40
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 29px;
            font-weight: 800;
            letter-spacing: -1.4px
        }

        .brand span span {
            color: var(--orange)
        }

        .brand-symbol {
            width: 31px;
            height: 34px;
            position: relative;
            transform: skew(-18deg)
        }

        .brand-symbol:before,
        .brand-symbol:after {
            content: '';
            position: absolute;
            width: 13px;
            border-radius: 3px;
            height: 25px;
            background: var(--orange)
        }

        .brand-symbol:before {
            left: 0;
            top: 8px
        }

        .brand-symbol:after {
            right: 0;
            top: 0;
            background: #72767a
        }

        .byline {
            font-size: 9px;
            letter-spacing: 2px;
            color: #85888c;
            margin: 7px 0 0 42px;
            text-transform: uppercase;
            font-weight: 700
        }

        .workspace {
            margin: 36px 0 22px;
            padding: 12px;
            border: 1px solid var(--line);
            border-radius: 11px;
            display: flex;
            align-items: center;
            gap: 10px
        }

        .workspace .box {
            background: var(--soft);
            color: var(--deep);
            width: 32px;
            height: 34px;
            border-radius: 7px;
            display: grid;
            place-items: center
        }

        .workspace strong {
            font-size: 12px;
            display: block
        }

        .workspace small {
            font-size: 10px;
            color: var(--muted)
        }

        .nav-label {
            font-size: 9px;
            font-weight: 700;
            color: #9a9da2;
            letter-spacing: 1.8px;
            margin: 9px 14px 12px
        }

        .nav {
            display: flex;
            flex-direction: column;
            gap: 6px
        }

        .nav button {
            background: transparent;
            text-align: left;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 13px 14px;
            border-radius: 8px;
            color: #787b81;
            font-size: 12px;
            font-weight: 600;
            position: relative
        }

        .nav button.active {
            background: var(--soft);
            color: var(--deep)
        }

        .nav button.active:before {
            content: '';
            position: absolute;
            left: -20px;
            height: 24px;
            width: 3px;
            border-radius: 0 3px 3px 0;
            background: var(--orange)
        }

        .nav button:hover {
            background: #f7f7f8
        }

        .nav button.active:hover {
            background: #ffead4
        }

        .nav .count {
            margin-left: auto;
            background: #ffe0b9;
            color: #b46725;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 5px
        }

        .sidebar-bottom {
            margin-top: auto
        }

        .help-card {
            background: #f8f9fa;
            border: 1px solid var(--line);
            border-radius: 12px;
            padding: 18px 15px;
            margin-top: 24px
        }

        .help-card h4 {
            font-size: 12px;
            margin: 10px 0 5px
        }

        .help-card p {
            font-size: 11px;
            line-height: 1.7;
            color: var(--muted)
        }

        .help-card button {
            font-size: 11px;
            color: var(--ink);
            background: white;
            border: 1px solid var(--line);
            width: 100%;
            border-radius: 7px;
            padding: 9px;
            margin-top: 12px
        }

        .mini-brand {
            color: #9b9b9b;
            font-size: 20px;
            font-weight: 800;
            letter-spacing: -1px;
            margin: 23px 0 0;
            text-align: center
        }

        .mini-brand span {
            color: var(--orange)
        }

        .mini-brand small {
            display: block;
            letter-spacing: 1px;
            font-size: 6px;
            font-weight: 600;
            margin-top: 3px;
            color: #97999c
        }

        .main {
            margin-left: var(--sidebar)
        }

        .topbar {
            height: 84px;
            background: white;
            border-bottom: 1px solid var(--line);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 42px;
            gap: 20px
        }

        .breadcrumb {
            color: var(--muted);
            font-size: 11px;
            display: flex;
            align-items: center;
            gap: 10px;
            white-space: nowrap
        }

        .breadcrumb strong {
            color: #51555b;
            font-weight: 500
        }

        .top-right {
            display: flex;
            align-items: center;
            gap: 20px
        }

        .top-search {
            display: flex;
            align-items: center;
            gap: 9px;
            background: #f7f8fa;
            border: 1px solid #eff0f2;
            border-radius: 8px;
            padding: 10px 12px;
            color: #92959b
        }

        .top-search input {
            border: 0;
            background: none;
            outline: none;
            width: 175px;
            font-size: 11px;
            color: var(--ink)
        }

        .profile {
            display: flex;
            align-items: center;
            gap: 10px;
            border-left: 1px solid var(--line);
            padding-left: 20px
        }

        .avatar {
            height: 35px;
            width: 35px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            background: #fae3cd;
            color: #a36124;
            font-weight: 700;
            font-size: 11px
        }

        .profile strong {
            font-size: 11px;
            display: block
        }

        .profile small {
            font-size: 9px;
            display: block;
            color: var(--muted);
            margin-top: 4px
        }

        .icon-btn {
            background: transparent;
            color: #8c9095;
            padding: 5px;
            position: relative
        }

        .notification-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--orange);
            position: absolute;
            right: 7px;
            top: 5px
        }

        .content {
            padding: 31px 42px 20px;
            max-width: 1600px;
            margin: auto
        }

        .intro {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 25px;
            gap: 20px
        }

        .eyebrow {
            font-size: 9px;
            color: var(--deep);
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 10px
        }

        .intro h1 {
            font-size: 27px;
            font-weight: 800;
            letter-spacing: -1px
        }

        .intro p {
            margin-top: 8px;
            color: var(--muted);
            font-size: 12px
        }

        .date-pill {
            border: 1px solid var(--line);
            padding: 9px 12px;
            border-radius: 7px;
            color: #858990;
            background: white;
            font-size: 10px;
            display: flex;
            align-items: center;
            gap: 8px
        }

        .date-pill .icon {
            height: 15px;
            width: 15px
        }

        .hero {
            min-height: 231px;
            border-radius: 15px;
            background: #34383c;
            position: relative;
            overflow: hidden;
            padding: 29px 34px;
            display: flex;
            justify-content: space-between;
            color: white;
            margin-bottom: 23px
        }

        .hero-copy {
            position: relative;
            z-index: 2;
            max-width: 480px;
            width: 65%
        }

        .hero .eyebrow {
            color: #ffc085;
            font-size: 8px;
            display: flex;
            align-items: center;
            gap: 7px
        }

        .hero .eyebrow:before {
            content: '';
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--orange)
        }

        .hero h2 {
            font-size: 29px;
            letter-spacing: -.9px;
            line-height: 1.35;
            font-weight: 700
        }

        .hero h2 span {
            color: #ffb666
        }

        .hero p {
            font-size: 11px;
            color: #b8bdc3;
            line-height: 1.8;
            max-width: 365px;
            margin: 12px 0 20px
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 11px 16px;
            border-radius: 7px;
            font-size: 11px;
            font-weight: 700;
            transition: transform .15s, background .15s
        }

        .btn:hover {
            transform: translateY(-1px)
        }

        .btn-primary {
            background: var(--orange);
            color: #282d31
        }

        .btn-primary:hover {
            background: #ffa54b
        }

        .btn-white {
            background: white;
            color: var(--ink);
            border: 1px solid var(--line)
        }

        .btn-dark {
            background: var(--ink);
            color: white
        }

        .btn .icon {
            width: 15px;
            height: 15px
        }

        .hero .art {
            position: absolute;
            width: 340px;
            height: 290px;
            right: 18px;
            top: -10px
        }

        .art-grid {
            position: absolute;
            inset: 0;
            background-image: linear-gradient(#ffffff05 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px);
            background-size: 30px 30px;
            transform: rotate(-18deg)
        }

        .orbit {
            position: absolute;
            left: 34px;
            top: 14px;
            width: 235px;
            height: 235px;
            border: 1px solid #ffffff13;
            border-radius: 50%
        }

        .orbit:after {
            content: '';
            position: absolute;
            inset: 24px;
            border: 1px solid #ffffff10;
            border-radius: 50%
        }

        .tile-back {
            position: absolute;
            width: 160px;
            height: 130px;
            border: 1px solid #b3b8bb44;
            border-radius: 13px;
            transform: rotate(-12deg);
            left: 80px;
            top: 66px;
            background: #ffffff08
        }

        .tile-front {
            position: absolute;
            width: 160px;
            height: 128px;
            border: 1px solid #ffbc76;
            border-radius: 13px;
            transform: rotate(10deg);
            left: 116px;
            top: 92px;
            background: linear-gradient(145deg, #ffb45e, #ed842b);
            box-shadow: 0 25px 30px #0003;
            display: flex;
            flex-direction: column;
            padding: 17px;
            color: #703c19
        }

        .tile-front .play {
            width: 43px;
            height: 43px;
            border: 1px solid #fff7;
            border-radius: 50%;
            display: grid;
            place-items: center;
            color: #fff8;
            align-self: center;
            margin: 8px
        }

        .tile-front .line {
            height: 3px;
            background: #9c561a44;
            border-radius: 3px;
            width: 80%;
            margin-top: 8px
        }

        .float-cap {
            position: absolute;
            right: 31px;
            top: 42px;
            background: #515458;
            border: 1px solid #ffffff25;
            width: 51px;
            height: 51px;
            display: grid;
            place-items: center;
            border-radius: 12px;
            transform: rotate(9deg);
            color: #f9bd7c
        }

        .float-cap .icon {
            width: 29px;
            height: 29px
        }

        .art-label {
            position: absolute;
            left: 36px;
            bottom: 50px;
            background: #44494c;
            border: 1px solid #ffffff1c;
            border-radius: 8px;
            padding: 11px 14px;
            font-size: 9px;
            box-shadow: 0 6px 20px #0002;
            color: #d0d2d3
        }

        .art-label b {
            color: #ffb463;
            margin-right: 5px
        }

        .stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin-bottom: 28px
        }

        .stat {
            background: white;
            border: 1px solid var(--line);
            padding: 18px;
            border-radius: 11px;
            display: flex;
            gap: 13px;
            align-items: center
        }

        .stat-icon {
            height: 40px;
            width: 40px;
            background: var(--soft);
            border-radius: 10px;
            display: grid;
            place-items: center;
            color: #d78332
        }

        .stat:nth-child(2) .stat-icon {
            background: #eef2f7;
            color: #7586a3
        }

        .stat:nth-child(3) .stat-icon {
            background: #eaf5ef;
            color: #5b997b
        }

        .stat:nth-child(4) .stat-icon {
            background: #f3f0f8;
            color: #9a87b1
        }

        .stat strong {
            font-size: 22px;
            font-family: Manrope, sans-serif;
            line-height: 1.2
        }

        .stat small {
            display: block;
            font-size: 10px;
            margin-top: 5px;
            color: var(--muted)
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 252px;
            gap: 23px
        }

        .section-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 17px;
            gap: 12px
        }

        .section-title h2 {
            font-size: 16px;
            letter-spacing: -.5px
        }

        .section-title small {
            display: block;
            color: var(--muted);
            font-size: 10px;
            margin-top: 5px
        }

        .text-btn {
            background: transparent;
            color: var(--deep);
            font-size: 10px;
            font-weight: 700;
            padding: 4px 0;
            white-space: nowrap
        }

        .text-btn .icon {
            width: 12px;
            height: 12px;
            margin-left: 5px
        }

        .course-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px
        }

        .course-card {
            background: white;
            border: 1px solid var(--line);
            border-radius: 12px;
            overflow: hidden;
            transition: transform .2s, box-shadow .2s
        }

        .course-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px #30333808
        }

        .cover {
            height: 139px;
            position: relative;
            padding: 17px 20px;
            overflow: hidden;
            background: #eaeef0;
            isolation: isolate
        }

        .cover:after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, #0001, transparent);
            z-index: -1
        }

        .cover .pill {
            position: relative;
            z-index: 2;
            display: inline-flex;
            font-size: 8px;
            letter-spacing: .3px;
            padding: 5px 8px;
            border-radius: 4px;
            background: #fffdf5;
            color: #686358
        }

        .cover-title {
            position: absolute;
            left: 20px;
            bottom: 20px;
            font: 800 23px/1 Manrope, sans-serif;
            letter-spacing: -1px;
            color: #53676f
        }

        .cover-sub {
            font-size: 7px;
            letter-spacing: 2px;
            display: block;
            margin-top: 7px;
            font-weight: 600
        }

        .cover-1 {
            background: #e0e8e9
        }

        .cover-2 {
            background: #e8e5de
        }

        .cover-2 .cover-title {
            color: #716d57
        }

        .cover-3 {
            background: #e8e4ed
        }

        .cover-3 .cover-title {
            color: #787083
        }

        .cover-4 {
            background: #f4e5d3
        }

        .drawing {
            position: absolute;
            right: 12px;
            bottom: -15px;
            width: 150px;
            height: 150px;
            transform: rotate(-12deg)
        }

        .drawing svg {
            width: 100%;
            height: 100%;
            stroke: #607a8370;
            fill: #ffffff22;
            stroke-width: 1
        }

        .cover-2 .drawing svg {
            stroke: #7e786477
        }

        .cover-3 .drawing svg {
            stroke: #8b799c88
        }

        .cover-4 .drawing svg {
            stroke: #bf936666
        }

        .cover-count {
            position: absolute;
            right: 11px;
            top: 12px;
            background: #ffffffc4;
            border: 1px solid #ffffff80;
            border-radius: 5px;
            padding: 4px 6px;
            font-size: 8px;
            color: #777
        }

        .card-body {
            padding: 18px
        }

        .category {
            font-size: 8px;
            text-transform: uppercase;
            letter-spacing: 1.3px;
            color: var(--deep);
            font-weight: 700;
            margin-bottom: 8px
        }

        .card-body h3 {
            font-size: 13px;
            line-height: 1.5;
            margin-bottom: 11px;
            letter-spacing: -.2px
        }

        .course-meta {
            display: flex;
            gap: 12px;
            color: #989ba0;
            font-size: 9px;
            align-items: center
        }

        .course-meta .icon {
            width: 12px;
            height: 12px;
            margin-right: 3px
        }

        .progress-head {
            display: flex;
            justify-content: space-between;
            font-size: 9px;
            color: #96999f;
            margin-top: 19px
        }

        .progress-head strong {
            color: #676b72;
            font-weight: 600
        }

        .progress-track {
            height: 4px;
            background: #f0f1f3;
            border-radius: 3px;
            margin-top: 7px;
            overflow: hidden
        }

        .progress-track span {
            display: block;
            height: 100%;
            background: var(--orange);
            border-radius: 3px
        }

        .course-action {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-top: 1px solid #f0f1f3;
            margin-top: 16px;
            padding-top: 13px
        }

        .course-action .teacher {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 8px;
            color: #90949a
        }

        .teacher-dot {
            width: 23px;
            height: 23px;
            border-radius: 50%;
            background: #edf0f0;
            display: grid;
            place-items: center;
            font-size: 7px;
            color: #7e888a
        }

        .course-action button {
            font-size: 9px;
            color: var(--deep);
            font-weight: 700;
            background: transparent;
            padding: 3px 0
        }

        .panel {
            border: 1px solid var(--line);
            border-radius: 11px;
            background: white;
            padding: 20px
        }

        .weekly-head {
            display: flex;
            justify-content: space-between;
            align-items: center
        }

        .weekly-head h3 {
            font-size: 12px
        }

        .weekly-head .icon {
            color: #999fa5;
            width: 16px;
            height: 16px
        }

        .weekly small {
            display: block;
            color: var(--muted);
            font-size: 9px;
            margin-top: 6px
        }

        .week {
            display: flex;
            justify-content: space-between;
            margin: 23px 0 18px
        }

        .day {
            font-size: 8px;
            text-align: center;
            color: #a1a4aa
        }

        .day span {
            display: grid;
            place-items: center;
            width: 23px;
            height: 23px;
            border-radius: 50%;
            background: #f4f5f7;
            color: #c7c9cc;
            margin-top: 8px;
            font-size: 10px
        }

        .day.done span {
            background: #fff0de;
            color: #d28338
        }

        .day.today span {
            background: var(--orange);
            color: white;
            box-shadow: 0 0 0 3px #fff1e1
        }

        .weekly-footer {
            font-size: 9px;
            color: #909399;
            padding-top: 15px;
            border-top: 1px solid var(--line);
            line-height: 1.7
        }

        .weekly-footer strong {
            color: var(--ink)
        }

        .announcement {
            margin-top: 17px
        }

        .announcement h3 {
            font-size: 12px;
            margin-bottom: 17px
        }

        .notice {
            display: flex;
            gap: 10px
        }

        .notice-icon {
            width: 28px;
            height: 28px;
            flex-shrink: 0;
            background: var(--soft);
            border-radius: 7px;
            color: var(--deep);
            display: grid;
            place-items: center
        }

        .notice-icon .icon {
            height: 14px;
            width: 14px
        }

        .notice h4 {
            font-size: 10px;
            margin-bottom: 5px
        }

        .notice p {
            font-size: 9px;
            line-height: 1.8;
            color: var(--muted)
        }

        .notice time {
            display: block;
            font-size: 8px;
            color: #acafb3;
            margin-top: 8px
        }

        .motivation {
            background: #fff5e8;
            border: 1px solid #f8e9d7;
            border-radius: 11px;
            padding: 17px 20px;
            margin-top: 17px;
            position: relative
        }

        .motivation .icon {
            color: #db9444;
            width: 22px;
            height: 22px
        }

        .motivation p {
            font-size: 11px;
            line-height: 1.8;
            font-weight: 600;
            margin-top: 10px;
            color: #94704d
        }

        .motivation small {
            font-size: 8px;
            color: #b59471;
            display: block;
            margin-top: 10px
        }

        .footer {
            border-top: 1px solid var(--line);
            margin-top: 28px;
            padding-top: 15px;
            display: flex;
            justify-content: space-between;
            color: #a5a8ad;
            font-size: 9px;
            gap: 15px
        }

        .footer span:last-child {
            color: #81858b
        }


        .toolbar {
            display: flex;
            justify-content: space-between;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 23px
        }

        .tabs {
            display: flex;
            gap: 7px;
            flex-wrap: wrap
        }

        .tabs button {
            background: white;
            border: 1px solid var(--line);
            color: #898d94;
            padding: 9px 14px;
            border-radius: 7px;
            font-size: 11px
        }

        .tabs button.active {
            background: var(--ink);
            color: white;
            border-color: var(--ink)
        }

        .search-field {
            border: 1px solid var(--line);
            border-radius: 7px;
            padding: 10px 13px;
            font-size: 11px;
            background: white;
            min-width: 210px
        }

        .all-courses {
            grid-template-columns: repeat(3, minmax(0, 1fr))
        }

        .empty {
            padding: 55px 20px;
            text-align: center;
            background: white;
            border: 1px dashed #ddd;
            border-radius: 12px;
            color: var(--muted);
            grid-column: 1/-1;
            line-height: 1.8
        }

        .table-wrap {
            overflow: auto;
            background: white;
            border: 1px solid var(--line);
            border-radius: 12px
        }

        table {
            border-collapse: collapse;
            width: 100%;
            text-align: left;
            white-space: nowrap
        }

        th {
            font-size: 9px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #999da3;
            font-weight: 500;
            padding: 18px 22px;
            border-bottom: 1px solid var(--line);
            background: #fcfcfd
        }

        td {
            padding: 18px 22px;
            font-size: 11px;
            border-bottom: 1px solid var(--line)
        }

        tr:last-child td {
            border-bottom: 0
        }

        .user-cell {
            display: flex;
            align-items: center;
            gap: 11px
        }

        .user-cell small {
            display: block;
            font-size: 10px;
            margin-top: 4px;
            color: var(--muted)
        }

        .password-cell {
            display: flex;
            align-items: center;
            gap: 8px
        }

        .password-toggle {
            display: inline-grid;
            place-items: center;
            padding: 3px;
            background: transparent;
            color: var(--muted)
        }

        .password-toggle .icon {
            width: 15px;
            height: 15px
        }

        .status {
            display: inline-block;
            padding: 5px 8px;
            font-size: 9px;
            border-radius: 5px;
            background: #edf6f1;
            color: #50886d
        }

        .status.gray {
            background: #f1f2f5;
            color: #8a8e95
        }

        .status.orange {
            background: var(--soft);
            color: var(--deep)
        }

        .modal-overlay {
            position: fixed;
            inset: 0;
            background: #22262d77;
            backdrop-filter: blur(5px);
            z-index: 90;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px
        }

        .modal {
            width: 480px;
            max-width: 100%;
            background: white;
            border-radius: 17px;
            padding: 30px;
            max-height: 90vh;
            overflow: auto;
            box-shadow: 0 25px 100px #0002
        }

        .modal.wide {
            width: 670px
        }

        .modal-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px
        }

        .modal h2 {
            font-size: 21px;
            letter-spacing: -.6px
        }

        .modal>p {
            color: var(--muted);
            font-size: 12px;
            line-height: 1.7;
            margin-bottom: 22px
        }

        .form-group {
            margin-top: 17px
        }

        .form-group label {
            display: block;
            font-size: 11px;
            font-weight: 600;
            margin-bottom: 8px
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            background: #fafbfc;
            border: 1px solid #e4e6ea;
            border-radius: 7px;
            padding: 11px;
            font-size: 12px;
            color: var(--ink)
        }

        .form-group textarea {
            resize: vertical;
            min-height: 80px
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px
        }

        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 9px;
            margin-top: 25px
        }

        .form-hint {
            font-size: 10px;
            color: #9a9da3;
            line-height: 1.6;
            margin-top: 8px
        }

        .checks {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 20px
        }

        .checks label {
            display: flex;
            gap: 10px;
            align-items: center;
            border: 1px solid var(--line);
            padding: 13px;
            border-radius: 8px;
            font-size: 12px
        }

        .checks input {
            accent-color: var(--orange);
            width: 16px;
            height: 16px
        }

        .toast {
            position: fixed;
            bottom: 25px;
            left: calc(50% + 100px);
            transform: translateX(-50%);
            background: #30383a;
            color: white;
            padding: 15px 23px;
            border-radius: 9px;
            box-shadow: 0 10px 40px #0002;
            font-size: 12px;
            z-index: 110;
            max-width: 90vw
        }

        .player-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 285px;
            gap: 23px
        }

        .video-placeholder {
            aspect-ratio: 16/9;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            background: #30383c;
            border-radius: 12px;
            color: white;
            position: relative;
            overflow: hidden
        }

        .video-placeholder .art-grid {
            opacity: .5
        }

        .big-play {
            border: 1px solid #ffffff30;
            border-radius: 50%;
            height: 64px;
            width: 64px;
            background: #f39432;
            color: white;
            display: grid;
            place-items: center;
            margin-bottom: 18px
        }

        .big-play .icon {
            height: 25px;
            width: 25px
        }

        .video-placeholder h3 {
            font-size: 16px;
            position: relative;
            text-align: center;
            padding: 0 20px
        }

        .video-placeholder p {
            font-size: 10px;
            color: #a9b1b7;
            margin-top: 12px;
            position: relative;
            text-align: center;
            padding: 0 20px
        }

        .lesson-list {
            padding: 0;
            overflow: hidden
        }

        .lesson-list h3 {
            padding: 21px;
            font-size: 13px;
            border-bottom: 1px solid var(--line)
        }

        .lesson {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 17px 16px;
            text-align: left;
            background: white;
            border-bottom: 1px solid #f1f2f4;
            color: #757a83
        }

        .lesson.active {
            background: var(--soft);
            color: var(--deep)
        }

        .lesson-num {
            width: 24px;
            height: 24px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            border: 1px solid #dbdde0;
            font-size: 9px;
            flex-shrink: 0
        }

        .lesson strong {
            display: block;
            font-size: 10px;
            font-weight: 500
        }

        .lesson small {
            display: block;
            font-size: 9px;
            opacity: .6;
            margin-top: 5px
        }

        .lesson-info {
            margin-top: 23px;
            line-height: 1.8
        }

        .lesson-info h2 {
            font-size: 21px;
            margin-bottom: 10px
        }

        .lesson-info p {
            font-size: 12px;
            color: #92969d
        }

        .lesson-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-top: 20px;
            flex-wrap: wrap
        }

        .login {
            min-height: 100vh;
            display: grid;
            grid-template-columns: 1.08fr 1fr;
            background: white
        }

        .login-visual {
            background: #34383c;
            position: relative;
            overflow: hidden;
            padding: 55px;
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: space-between
        }

        .login-visual .brand {
            font-size: 34px
        }

        .login-visual .brand-symbol:after {
            background: #bbb
        }

        .login-visual h1 {
            font-size: 49px;
            line-height: 1.2;
            letter-spacing: -2px;
            position: relative
        }

        .login-visual h1 span {
            color: #ffac59
        }

        .login-visual p {
            font-size: 14px;
            line-height: 1.8;
            color: #b6bbc0;
            max-width: 370px;
            margin-top: 22px;
            position: relative
        }

        .login-visual small {
            font-size: 10px;
            color: #afb3b8;
            position: relative
        }

        .login-circle {
            position: absolute;
            width: 530px;
            height: 530px;
            border: 1px solid #ffffff0c;
            border-radius: 50%;
            right: -210px;
            top: 24%
        }

        .login-circle:after {
            content: '';
            position: absolute;
            inset: 55px;
            border: 1px solid #ffffff0c;
            border-radius: 50%
        }

        .login-form-area {
            padding: 45px;
            display: flex;
            align-items: center;
            justify-content: center
        }

        .login-form {
            max-width: 345px;
            width: 100%
        }

        .login-form h2 {
            font-size: 27px;
            letter-spacing: -1px
        }

        .login-form>p {
            font-size: 12px;
            color: var(--muted);
            line-height: 1.8;
            margin: 12px 0 26px
        }

        .login-form .btn {
            width: 100%;
            margin-top: 22px
        }

        .login-note {
            font-size: 10px;
            color: #989da3;
            line-height: 1.8;
            padding: 12px;
            background: #fafbfc;
            border: 1px solid var(--line);
            border-radius: 7px;
            margin-top: 22px
        }

        .mobile-menu {
            display: none
        }

        .close-menu {
            display: none
        }

        .admin-stats {
            grid-template-columns: repeat(3, 1fr)
        }

        .admin-course-title {
            display: flex;
            gap: 12px;
            align-items: center
        }

        .admin-course-title .stat-icon {
            width: 33px;
            height: 33px
        }

        .admin-course-title strong {
            font-size: 11px
        }

        .muted {
            color: var(--muted)
        }

        @media(min-width:1500px) {
            .hero {
                min-height: 255px
            }

            .hero-copy {
                max-width: 560px
            }

            .hero h2 {
                font-size: 33px
            }

            .hero .art {
                right: 75px
            }

            .cover {
                height: 175px
            }

            .drawing {
                width: 185px;
                height: 185px
            }
        }

        @media(max-width:1200px) {
            :root {
                --sidebar: 215px
            }

            .sidebar {
                padding-left: 15px;
                padding-right: 15px
            }

            .brand {
                font-size: 26px
            }

            .topbar {
                padding: 0 27px
            }

            .content {
                padding: 28px 27px 20px
            }

            .dashboard-grid {
                grid-template-columns: minmax(0, 1fr) 225px;
                gap: 17px
            }

            .stat {
                padding: 14px;
                gap: 9px
            }

            .stat-icon {
                width: 33px;
                height: 33px
            }

            .stat small {
                font-size: 9px
            }

            .hero .art {
                right: -30px;
                opacity: .8
            }

            .hero-copy {
                width: 68%
            }

            .hero h2 {
                font-size: 27px
            }

            .top-search input {
                width: 135px
            }

            .card-body {
                padding: 15px
            }

            .course-grid {
                gap: 14px
            }

            .all-courses {
                grid-template-columns: repeat(2, minmax(0, 1fr))
            }
        }

        @media(max-width:1000px) {
            .dashboard-grid {
                grid-template-columns: 1fr
            }

            .right-column {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 17px
            }

            .announcement {
                margin: 0
            }

            .motivation {
                display: none
            }

            .top-search {
                display: none
            }

            .hero .art {
                opacity: .45;
                right: -60px
            }

            .hero-copy {
                width: 80%
            }

            .stats {
                gap: 10px
            }

            .stat {
                display: block
            }

            .stat-icon {
                margin-bottom: 10px
            }

            .player-grid {
                grid-template-columns: 1fr
            }

            .lesson-list {
                max-height: 340px;
                overflow: auto
            }

            .login-visual {
                padding: 35px
            }

            .login-visual h1 {
                font-size: 38px
            }
        }

        @media(max-width:760px) {
            :root {
                --sidebar: 0px
            }

            .sidebar {
                width: 248px;
                transform: translateX(-100%);
                transition: transform .2s;
                box-shadow: 12px 0 40px #0001
            }

            .sidebar.open {
                transform: translateX(0)
            }

            .close-menu {
                display: block;
                position: absolute;
                right: 12px;
                top: 9px
            }

            .mobile-menu {
                display: block
            }

            .topbar {
                height: 68px;
                padding: 0 19px;
                gap: 10px
            }

            .breadcrumb {
                margin-right: auto
            }

            .breadcrumb>span,
            .breadcrumb>svg {
                display: none
            }

            .top-right {
                gap: 10px
            }

            .profile {
                padding-left: 10px
            }

            .profile-info {
                display: none
            }

            .content {
                padding: 25px 19px 20px
            }

            .intro h1 {
                font-size: 24px
            }

            .date-pill {
                display: none
            }

            .intro p {
                font-size: 11px;
                line-height: 1.7
            }

            .hero {
                padding: 26px;
                min-height: 247px
            }

            .hero-copy {
                width: 100%
            }

            .hero h2 {
                font-size: 27px;
                max-width: 350px
            }

            .hero p {
                max-width: 270px
            }

            .hero .art {
                right: -140px;
                opacity: .2
            }

            .stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 11px
            }

            .stat {
                display: flex;
                padding: 14px;
                gap: 13px
            }

            .stat-icon {
                margin: 0
            }

            .stat strong {
                font-size: 22px
            }

            .stat small {
                font-size: 9px
            }

            .right-column {
                grid-template-columns: 1fr 1fr
            }

            .footer {
                font-size: 8px;
                line-height: 1.7
            }

            .toast {
                left: 50%;
                width: max-content
            }

            .login {
                grid-template-columns: 1fr
            }

            .login-visual {
                min-height: 240px;
                padding: 27px
            }

            .login-visual h1 {
                font-size: 30px;
                margin-top: 30px
            }

            .login-visual p,
            .login-visual>small {
                display: none
            }

            .login-form-area {
                padding: 35px 25px
            }

            .login-visual .brand {
                font-size: 27px
            }

            .admin-stats {
                grid-template-columns: repeat(3, 1fr)
            }

            .admin-stats .stat {
                display: block
            }

            .admin-stats .stat-icon {
                margin-bottom: 8px
            }

            .intro .btn {
                padding: 10px;
                font-size: 10px;
                white-space: nowrap
            }

            .section-title h2 {
                font-size: 15px
            }
        }

        @media(max-width:470px) {
            .course-grid {
                grid-template-columns: 1fr
            }

            .cover {
                height: 165px
            }

            .drawing {
                width: 185px;
                height: 185px
            }

            .right-column {
                grid-template-columns: 1fr
            }

            .hero h2 {
                font-size: 25px
            }

            .hero p {
                font-size: 10px
            }

            .form-row {
                grid-template-columns: 1fr;
                gap: 0
            }

            .modal {
                padding: 23px
            }

            .top-right {
                gap: 4px
            }

            .breadcrumb {
                font-size: 10px
            }

            .admin-stats .stat {
                padding: 12px
            }

            .search-field {
                width: 100%
            }

            .toolbar .btn {
                width: 100%
            }
        }

        @media(prefers-reduced-motion:reduce) {
            * {
                transition: none !important;
                scroll-behavior: auto !important
            }
        }
        /* Reproductor de video y aula virtual */
        .video-wrapper {
            position: relative;
            aspect-ratio: 16/9;
            background: #14171a;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 16px 36px rgba(0,0,0,0.22);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .video-wrapper video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: #000;
            display: block;
        }

        .quick-login-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
            margin-top: 16px;
        }
        .quick-login-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #fafbfc;
            border: 1px solid var(--line);
            border-radius: 8px;
            padding: 9px 12px;
            cursor: pointer;
            text-align: left;
            transition: all .15s;
            width: 100%;
        }
        .quick-login-card:hover {
            border-color: var(--orange);
            background: #fff8ee;
            transform: translateY(-1px);
        }
        .quick-login-card strong {
            font-size: 11px;
            display: block;
            color: var(--ink);
        }
        .quick-login-card small {
            font-size: 9px;
            color: var(--muted);
            display: block;
            margin-top: 2px;
        }
        .quick-login-badge {
            font-size: 9px;
            padding: 3px 7px;
            border-radius: 5px;
            font-weight: 700;
            white-space: nowrap;
        }
        .quick-login-badge.admin {
            background: #2b3036;
            color: white;
        }
        .quick-login-badge.student {
            background: #eaf3ee;
            color: #38826b;
        }
        .quick-login-badge.inactive {
            background: #fee2e2;
            color: #b91c1c;
        }
        .access-denied-box {
            text-align: center;
            padding: 10px 5px;
        }
        .access-denied-icon {
            width: 58px;
            height: 58px;
            border-radius: 50%;
            background: #fee2e2;
            color: #dc2626;
            display: grid;
            place-items: center;
            margin: 0 auto 16px;
        }
        .access-denied-icon .icon {
            width: 30px;
            height: 30px;
        }
        .btn-status-toggle {
            padding: 5px 9px;
            font-size: 10px;
            font-weight: 600;
            border-radius: 5px;
            background: #f1f2f5;
            color: #555960;
            border: 1px solid var(--line);
            transition: all .15s;
        }
        .btn-status-toggle:hover {
            background: #e5e7eb;
            color: var(--ink);
        }
        .btn-status-toggle.danger {
            color: #c53030;
            background: #fff5f5;
            border-color: #fed7d7;
        }
        .btn-status-toggle.danger:hover {
            background: #fed7d7;
        }
        .btn-status-toggle.success {
            color: #276749;
            background: #f0fff4;
            border-color: #c6f6d5;
        }
        .btn-status-toggle.success:hover {
            background: #c6f6d5;
        }

        /* --- Estilos de Carga de Videos Grandes y Barra de Progreso --- */
        .upload-progress-container {
            margin-top: 18px;
            padding: 16px 18px;
            background: #fafbfc;
            border: 1px solid #e1e4e8;
            border-radius: 12px;
            animation: fadeIn 0.3s ease;
        }
        .upload-progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        .upload-progress-title {
            font-size: 11px;
            font-weight: 700;
            color: var(--ink);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .upload-progress-pct {
            font-family: Manrope, sans-serif;
            font-size: 14px;
            font-weight: 800;
            color: var(--orange);
        }
        .upload-track {
            height: 9px;
            background: #e9ecef;
            border-radius: 6px;
            overflow: hidden;
            position: relative;
            margin-bottom: 10px;
        }
        .upload-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #d97706, var(--orange), #f59e0b);
            border-radius: 6px;
            width: 0%;
            transition: width 0.25s ease-out;
            box-shadow: 0 0 10px rgba(224, 112, 33, 0.4);
            position: relative;
        }
        .upload-bar-fill::after {
            content: '';
            position: absolute;
            top: 0; left: 0; bottom: 0; right: 0;
            background-image: linear-gradient(
                -45deg,
                rgba(255, 255, 255, 0.2) 25%,
                transparent 25%,
                transparent 50%,
                rgba(255, 255, 255, 0.2) 50%,
                rgba(255, 255, 255, 0.2) 75%,
                transparent 75%,
                transparent
            );
            background-size: 20px 20px;
            animation: moveStripes 1s linear infinite;
        }
        @keyframes moveStripes {
            0% { background-position: 0 0; }
            100% { background-position: 20px 0; }
        }
        .upload-details-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px 12px;
            font-size: 10px;
            color: var(--muted);
            line-height: 1.4;
        }
        .upload-stat-item strong {
            color: var(--ink);
            font-weight: 600;
        }
        .upload-stat-eta {
            color: #d97706;
            font-weight: 700;
        }
        .upload-note {
            margin-top: 10px;
            padding: 8px 10px;
            background: #fff8eb;
            border-left: 3px solid #f59e0b;
            border-radius: 4px;
            font-size: 9.5px;
            color: #92400e;
            line-height: 1.5;
        }
        .video-selection-card {
            margin-top: 10px;
            padding: 10px 12px;
            background: #f4f6f8;
            border: 1px dashed #cbd5e1;
            border-radius: 8px;
            font-size: 10px;
            color: #475569;
            line-height: 1.5;
        }
        .video-selection-card b {
            color: var(--ink);
        }
        .video-estimate-badge {
            display: inline-block;
            margin-top: 4px;
            background: #e0f2fe;
            color: #0369a1;
            padding: 3px 7px;
            border-radius: 4px;
            font-size: 9px;
            font-weight: 600;
        }

        /* ========================================================
           PANTALLAS DE CARGA (LOADING STATES & SKELETONS)
           ======================================================== */
        @keyframes shimmerEffect {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        .skeleton {
            background: linear-gradient(90deg, #f1f3f5 25%, #e6e9ed 50%, #f1f3f5 75%);
            background-size: 200% 100%;
            animation: shimmerEffect 1.5s infinite;
            border-radius: 6px;
        }

        .skeleton-text {
            height: 12px;
            margin-bottom: 8px;
            border-radius: 4px;
        }
        .skeleton-title {
            height: 22px;
            width: 50%;
            margin-bottom: 12px;
            border-radius: 6px;
        }
        .skeleton-sub {
            height: 10px;
            width: 30%;
            margin-bottom: 20px;
            border-radius: 4px;
        }

        .skeleton-stat-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin-bottom: 28px;
        }
        @media (max-width: 900px) {
            .skeleton-stat-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        .skeleton-stat-card {
            background: white;
            border: 1px solid var(--line);
            border-radius: 11px;
            padding: 18px;
            display: flex;
            gap: 13px;
            align-items: center;
        }
        .skeleton-stat-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
        }

        .skeleton-grid-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 18px;
        }
        @media (max-width: 768px) {
            .skeleton-grid-2 {
                grid-template-columns: 1fr;
            }
        }
        .skeleton-card {
            background: white;
            border: 1px solid var(--line);
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .skeleton-cover {
            height: 140px;
            width: 100%;
        }
        .skeleton-body {
            padding: 18px;
        }

        /* Pantalla de carga central con spinner y marca HimClass */
        .loading-screen {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            text-align: center;
            animation: fadeIn 0.25s ease;
            min-height: 380px;
        }
        .loading-spinner {
            width: 44px;
            height: 44px;
            border: 3.5px solid #edf0f2;
            border-top-color: var(--orange);
            border-radius: 50%;
            animation: spinSpinner 0.75s linear infinite;
            margin-bottom: 18px;
        }
        @keyframes spinSpinner {
            to { transform: rotate(360deg); }
        }
        .loading-screen h3 {
            font-size: 15px;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 6px;
        }
        .loading-screen p {
            font-size: 11px;
            color: var(--muted);
            max-width: 360px;
            line-height: 1.6;
        }
        .loading-pulse-dots span {
            display: inline-block;
            animation: pulseDot 1.4s infinite both;
        }
        .loading-pulse-dots span:nth-child(2) { animation-delay: 0.2s; }
        .loading-pulse-dots span:nth-child(3) { animation-delay: 0.4s; }
        @keyframes pulseDot {
            0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
            40% { opacity: 1; transform: scale(1.2); }
        }

        /* ========================================================
           PANTALLAS DE ERROR (ERROR SCREENS & BOUNDARIES)
           ======================================================== */
        .error-screen {
            max-width: 520px;
            margin: 40px auto;
            background: white;
            border: 1px solid var(--line);
            border-radius: 16px;
            padding: 38px 28px;
            text-align: center;
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
            animation: fadeIn 0.3s ease;
        }
        .error-icon-circle {
            width: 66px;
            height: 66px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            margin: 0 auto 20px;
        }
        .error-icon-circle.danger {
            background: #fee2e2;
            color: #dc2626;
        }
        .error-icon-circle.warning {
            background: #fef3c7;
            color: #d97706;
        }
        .error-icon-circle.info {
            background: #e0f2fe;
            color: #0284c7;
        }
        .error-icon-circle .icon {
            width: 32px;
            height: 32px;
        }
        .error-code-badge {
            display: inline-block;
            font-size: 9.5px;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 20px;
            margin-bottom: 12px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }
        .error-code-badge.danger {
            background: #fef2f2;
            color: #b91c1c;
            border: 1px solid #fecaca;
        }
        .error-code-badge.warning {
            background: #fffbeb;
            color: #b45309;
            border: 1px solid #fde68a;
        }
        .error-code-badge.info {
            background: #f0f9ff;
            color: #0369a1;
            border: 1px solid #bae6fd;
        }
        .error-screen h2 {
            font-size: 18px;
            letter-spacing: -0.4px;
            color: var(--ink);
            margin-bottom: 10px;
        }
        .error-screen p {
            font-size: 11.5px;
            color: var(--muted);
            line-height: 1.7;
            margin-bottom: 22px;
        }
        .error-screen-actions {
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .error-tech-details {
            margin-top: 22px;
            text-align: left;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 10px 14px;
            font-size: 10px;
        }
        .error-tech-details summary {
            cursor: pointer;
            font-weight: 600;
            color: #64748b;
        }
        .error-tech-details code {
            display: block;
            margin-top: 6px;
            font-family: monospace;
            color: #dc2626;
            word-break: break-all;
            white-space: pre-wrap;
        }

        /* ========================================================
           VIDEO PLAYER LOADER Y ERROR OVERLAY
           ======================================================== */
        .video-wrapper {
            position: relative;
            background: #000;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 280px;
        }
        .video-overlay-loader,
        .video-overlay-error {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: rgba(15, 23, 42, 0.88);
            backdrop-filter: blur(5px);
            color: white;
            z-index: 15;
            padding: 24px;
            text-align: center;
            animation: fadeIn 0.2s ease;
        }
        .video-overlay-loader .loader-spin {
            width: 42px;
            height: 42px;
            border: 3px solid rgba(255, 255, 255, 0.2);
            border-top-color: var(--orange);
            border-radius: 50%;
            animation: spinSpinner 0.8s linear infinite;
            margin-bottom: 14px;
        }
        .video-overlay-loader span {
            font-size: 12px;
            font-weight: 600;
            color: #e2e8f0;
        }
        .video-overlay-error .error-icon-box {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
            display: grid;
            place-items: center;
            margin-bottom: 12px;
        }
        .video-overlay-error h4 {
            font-size: 14px;
            margin-bottom: 6px;
            color: #f8fafc;
        }
        .video-overlay-error p {
            font-size: 11px;
            color: #94a3b8;
            max-width: 380px;
            margin-bottom: 16px;
            line-height: 1.6;
        }
