@font-face {
    font-family: Metropolis;
    src: local("Metropolis"), local("Metropolis Regular");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --violet: #5c1392;
    --violet-deep: #42106b;
    --violet-soft: #f0e9f7;
    --blue: #66a7ff;
    --ink: #211b29;
    --muted: #817a89;
    --line: #e9e5ed;
    --paper: #ffffff;
    --canvas: #f8f7fa;
    --green: #29816b;
    --font-body: Metropolis, "DM Sans", sans-serif;
    --font-display: Metropolis, "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); font-family: var(--font-body); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.app-shell { min-height: 100vh; background: var(--canvas); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: 248px; flex-direction: column; padding: 29px 18px 17px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 36px; }
.brand-name { color: var(--violet); font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.brand-logo { display: block; width: 112px; max-height: 46px; object-fit: contain; object-position: left center; }
.sidebar-label { padding: 5px 11px 11px; color: #aaa3af; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.main-nav { display: grid; gap: 4px; }
.nav-link { display: flex; min-height: 43px; align-items: center; gap: 12px; padding: 0 12px; border-radius: 5px; color: #6f6876; font-size: 12px; font-weight: 600; transition: background .18s ease, color .18s ease; }
.nav-link:hover { background: #f8f5fb; color: var(--violet); }
.nav-link.active { background: #f1eafa; color: var(--violet); }
.nav-icon { display: grid; width: 20px; place-items: center; color: #81788b; font-size: 17px; line-height: 1; }
.nav-link.active .nav-icon { color: var(--violet); }
.admin-label { margin-top: 30px; }
.sidebar-bottom { margin-top: auto; }
.profile-row { display: flex; align-items: center; gap: 9px; padding: 14px 5px 2px; border-top: 1px solid var(--line); }
.avatar, .topbar-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--violet-soft); color: var(--violet); font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.profile-copy { min-width: 0; flex: 1; }
.profile-copy strong, .profile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy strong { font-size: 10px; }
.profile-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #77707d; cursor: pointer; }
.icon-button:hover { background: #f2eef6; color: var(--violet); }
.logout-button { font-size: 17px; transform: rotate(45deg); }
.main-area { min-height: 100vh; margin-left: 248px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; height: 61px; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.breadcrumb { color: #837b89; font-size: 11px; font-weight: 500; }
.breadcrumb span, .breadcrumb a { color: #b6b0bd; padding: 0 7px; }
.breadcrumb span:last-child { padding-right: 4px; }
.topbar-right { display: flex; align-items: center; gap: 15px; }
.topbar-avatar { width: 29px; height: 29px; font-size: 11px; }
.menu-button, .sidebar-scrim { display: none; }
.page-content { width: min(1120px, 100%); margin: 0 auto; padding: 36px 42px 62px; animation: arrive .4s ease both; }
@keyframes arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #8a8290; font-size: 9px; font-weight: 700; letter-spacing: .11em; }
.eyebrow > span { width: 6px; height: 6px; border-radius: 1px; background: var(--blue); transform: rotate(45deg); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0; }
.welcome-strip { position: relative; display: flex; min-height: 213px; overflow: hidden; align-items: center; justify-content: space-between; padding: 35px 43px; border-radius: 5px; background: #f0eaf6; }
.welcome-copy { position: relative; z-index: 1; }
.welcome-copy h1 { margin: 16px 0 8px; color: #2a2033; font-size: 32px; font-weight: 700; }
.welcome-copy h1 span { color: var(--violet); }
.welcome-copy p { margin: 0; color: #736b7a; font-size: 12px; }
.welcome-art { position: absolute; top: -98px; right: 6%; display: grid; width: 350px; height: 350px; place-items: center; border: 1px solid rgba(92,19,146,.12); border-radius: 50%; }
.welcome-art img { position: relative; z-index: 1; width: 140px; max-height: 86px; opacity: .22; object-fit: contain; }
.welcome-art:before, .welcome-art:after { position: absolute; width: 76%; height: 76%; border: 1px solid rgba(92,19,146,.11); border-radius: 50%; content: ""; }
.welcome-art:after { width: 53%; height: 53%; }
.art-ring { position: absolute; right: 51px; bottom: 32px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 9px rgba(102,167,255,.14); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.section-heading h2 { margin: 6px 0 0; font-size: 19px; font-weight: 700; }
.dashboard-heading { margin: 39px 0 17px; }
.courses-heading { margin: 35px 0 17px; }
.text-link { color: var(--violet); font-size: 11px; font-weight: 700; }
.text-link span { padding-left: 5px; font-size: 15px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.stat-card { min-height: 124px; padding: 17px 18px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; color: #77707c; font-size: 10px; }
.stat-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #e6f3ef; color: var(--green); font-size: 12px; }
.blue-icon { background: #eaf2fe; color: #3f83d4; }
.violet-icon { background: var(--violet-soft); color: var(--violet); }
.stat-card > strong { display: block; margin-top: 9px; font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.stat-card > strong small { padding-left: 3px; color: #9e97a4; font-family: var(--font-body); font-size: 12px; font-weight: 500; }
.stat-card .profile-stat { margin-top: 13px; font-size: 15px; }
.stat-foot { margin-top: 7px; color: #9a939f; font-size: 9px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.course-card { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: white; transition: transform .2s ease, box-shadow .2s ease; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(39,23,52,.08); }
.course-card-link { display: block; }
.course-manage-row { display: flex; gap: 7px; padding: 0 16px 13px; }
.course-manage-row > a, .course-manage-row form { flex: 1; }
.course-manage-row .button { width: 100%; justify-content: space-between; }
.delete-course-button { border-color: #efcfd5; color: #a33e50; }
.delete-course-button:hover { background: #fff4f5; }
.course-delete-form { display: inline-flex; margin: 0 0 20px 12px; vertical-align: top; }
.detail-edit-button { margin: 0 0 20px 12px; vertical-align: top; }
.course-cover { position: relative; display: flex; height: 148px; overflow: hidden; align-items: flex-end; justify-content: space-between; padding: 14px 16px; background: #e8def1; color: var(--violet); }
.cover-1 { background: #e1eefb; color: #2867a7; }
.cover-2 { background: #e5f1eb; color: #33735e; }
.cover-3 { background: #f6e8ed; color: #a64e6c; }
.course-cover.has-cover { background-image: linear-gradient(90deg, rgba(24,16,31,.38), rgba(24,16,31,.04)), var(--cover-image); background-position: center; background-size: cover; color: #fff; }
.cover-index, .cover-label { position: relative; z-index: 1; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.cover-index { align-self: flex-start; }
.cover-monogram { position: absolute; top: 15px; right: 26px; color: currentColor; font-family: var(--font-display); font-size: 108px; font-weight: 800; line-height: 1; opacity: .13; }
.cover-orbit { position: absolute; top: -73px; left: 31%; width: 230px; height: 230px; border: 1px solid currentColor; border-radius: 50%; opacity: .25; }
.cover-orbit:after { position: absolute; top: 18px; left: 18px; width: 191px; height: 191px; border: 1px solid currentColor; border-radius: 50%; content: ""; }
.course-card-body { padding: 15px 16px 13px; }
.course-category { color: var(--violet); font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.course-card h3 { overflow: hidden; margin: 8px 0 6px; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.course-card p { min-height: 34px; margin-bottom: 13px; color: #817a87; font-size: 10px; line-height: 1.6; }
.course-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #f0edf2; color: #7d7583; font-size: 9px; }
.course-arrow { color: var(--violet); font-size: 17px; }
.empty-state { display: flex; min-height: 275px; flex-direction: column; align-items: center; justify-content: center; padding: 36px; border: 1px dashed #d9d1e0; border-radius: 5px; background: rgba(255,255,255,.65); text-align: center; }
.empty-symbol { display: grid; width: 47px; height: 47px; margin-bottom: 15px; place-items: center; border-radius: 50%; background: var(--violet-soft); color: var(--violet); font-size: 22px; }
.empty-state h3 { margin-bottom: 8px; font-size: 18px; }
.empty-state p { max-width: 360px; margin-bottom: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.page-intro-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 1px 0 28px; }
.page-intro-row h1 { margin: 11px 0 7px; font-size: 28px; font-weight: 700; }
.page-intro-row p, .form-page-intro { margin: 0; color: #807986; font-size: 11px; }
.button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 10px; padding: 0 15px; border: 1px solid transparent; border-radius: 3px; cursor: pointer; font-size: 10px; font-weight: 700; transition: background .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--violet); color: #fff; }
.button-primary:hover { background: var(--violet-deep); }
.button-primary > span { font-size: 16px; line-height: 1; }
.button-outline { border-color: #d7c6e5; background: white; color: var(--violet); }
.button-outline:hover { background: #f8f3fb; }
.search-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.search-field { display: flex; width: min(360px, 100%); height: 39px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: #8d8494; }
.search-field span { font-size: 19px; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 11px; }
.result-count { color: #918a97; font-size: 10px; }
.library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pagination-wrap, .table-pagination { display: flex; justify-content: center; margin-top: 25px; }
.pagination { display: flex; align-items: center; gap: 5px; padding: 0; list-style: none; }
.pagination a, .pagination span { display: grid; min-width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: white; color: #6f6876; font-size: 10px; }
.pagination .active span { border-color: var(--violet); background: var(--violet); color: white; }
.pagination .disabled span { color: #b4aeb9; }
.back-link { display: inline-block; margin-bottom: 23px; color: #77707d; font-size: 10px; font-weight: 600; }
.back-link:hover { color: var(--violet); }
.course-detail-hero { position: relative; display: flex; min-height: 228px; overflow: hidden; align-items: center; justify-content: space-between; padding: 34px 40px; border-radius: 4px; background: #eee7f5; }
.detail-hero-copy { position: relative; z-index: 2; max-width: 620px; }
.detail-hero-copy h1 { max-width: 590px; margin: 10px 0; font-size: 30px; line-height: 1.2; }
.detail-hero-copy p { max-width: 590px; margin: 0 0 16px; color: #746b7c; font-size: 11px; line-height: 1.7; }
.detail-meta { display: flex; gap: 18px; color: #71687a; font-size: 10px; }
.detail-hero-art { position: absolute; top: -62px; right: 63px; display: grid; width: 295px; height: 295px; place-items: center; border: 1px solid rgba(92,19,146,.17); border-radius: 50%; color: rgba(92,19,146,.22); font-family: var(--font-display); font-size: 100px; font-weight: 800; }
.detail-orbit { position: absolute; width: 72%; height: 72%; border: 1px solid rgba(92,19,146,.18); border-radius: 50%; }
.detail-orbit:before, .detail-orbit:after { position: absolute; inset: 15px; border: 1px solid rgba(92,19,146,.15); border-radius: 50%; content: ""; }
.detail-orbit:after { inset: 31px; border-color: rgba(102,167,255,.5); }
.lesson-list-heading { margin: 30px 0 15px; }
.lesson-list { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: white; }
.lesson-row { display: flex; min-height: 66px; align-items: center; gap: 14px; padding: 10px 17px; border-bottom: 1px solid #f0edf2; transition: background .15s ease; }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: #fbf9fc; }
.lesson-number, .playlist-number { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid #e8e2eb; border-radius: 50%; color: #857c8b; font-size: 9px; font-weight: 700; }
.lesson-done, .playlist-done { border-color: #d6ede5; background: #edf7f3; color: var(--green); }
.lesson-row-copy { min-width: 0; flex: 1; }
.lesson-row-copy strong, .lesson-row-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-row-copy strong { margin-bottom: 4px; font-size: 11px; }
.lesson-row-copy small { color: #958d9a; font-size: 9px; }
.lesson-duration { color: #8b8490; font-size: 9px; }
.lesson-open { color: var(--violet); font-size: 17px; }
.empty-inline { padding: 24px; color: #8a8290; font-size: 11px; text-align: center; }
.edit-course-link { display: inline-block; margin-top: 18px; }
.watch-page { width: min(1280px, 100%); }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 23px; }
.video-frame { position: relative; display: grid; min-height: 280px; overflow: hidden; place-items: center; border-radius: 4px; background: #17141b; aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; max-height: 65vh; background: #17141b; object-fit: contain; }
.video-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 25px; color: white; text-align: center; }
.video-placeholder strong { font-size: 13px; }
.video-placeholder span { max-width: 300px; color: #b9b3be; font-size: 10px; line-height: 1.6; }
.processing-indicator { width: 27px; height: 27px; margin-bottom: 4px; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.watch-title-block { padding: 21px 0 17px; border-bottom: 1px solid var(--line); }
.watch-title-block h1 { margin: 9px 0 6px; font-size: 22px; }
.watch-title-block p { margin: 0; color: #807986; font-size: 10px; line-height: 1.6; }
.watch-actions { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 14px; }
.watch-course-name { color: #77707d; font-size: 10px; font-weight: 600; }
.completed-pill { color: var(--green); font-size: 10px; font-weight: 700; }
.watch-playlist { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: white; }
.playlist-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 15px; border-bottom: 1px solid var(--line); }
.playlist-head h2 { margin: 6px 0 0; font-size: 13px; }
.playlist-count { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #f1edf4; color: #736a79; font-size: 9px; }
.playlist-items { max-height: 370px; overflow-y: auto; }
.playlist-item { display: flex; min-height: 61px; align-items: center; gap: 10px; padding: 9px 13px; border-bottom: 1px solid #f2eff4; }
.playlist-active { background: #f7f2fa; box-shadow: inset 2px 0 var(--violet); }
.playlist-number { width: 27px; height: 27px; font-size: 8px; }
.playlist-copy { min-width: 0; flex: 1; }
.playlist-copy strong, .playlist-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-copy strong { font-size: 9px; line-height: 1.45; }
.playlist-copy small { margin-top: 4px; color: #938b99; font-size: 8px; }
.playing-mark { color: var(--violet); font-size: 9px; }
.playlist-progress { padding: 14px 14px 16px; }
.progress-caption { display: flex; justify-content: space-between; margin-bottom: 9px; color: #817987; font-size: 9px; }
.progress-caption strong { color: var(--violet); }
.progress-track { height: 4px; overflow: hidden; border-radius: 4px; background: #eeeaf1; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.narrow-page { max-width: 850px; }
.narrow-page > .eyebrow { margin-top: 3px; }
.form-page-title { margin: 9px 0 7px; font-size: 27px; }
.form-page-intro { margin-bottom: 23px; line-height: 1.6; }
.form-panel, .lesson-admin-panel { padding: 23px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.form-section-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.form-section-title > span { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--violet-soft); color: var(--violet); font-size: 9px; font-weight: 700; }
.form-section-title strong, .form-section-title small { display: block; }
.form-section-title strong { margin: 3px 0 5px; font-size: 11px; }
.form-section-title small { color: #8e8793; font-size: 9px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #5b5362; font-size: 10px; font-weight: 600; }
.full-field { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 39px; padding: 10px 11px; border: 1px solid #e4dfe8; border-radius: 3px; outline: 0; background: #fff; color: #322c39; font-size: 10px; font-weight: 400; }
.form-field textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #a87ac7; box-shadow: 0 0 0 3px rgba(92,19,146,.08); }
.field-note { color: #99919e; font-size: 9px; font-weight: 400; }
.publish-toggle { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 13px; border: 1px solid #eee9f1; border-radius: 3px; cursor: pointer; }
.publish-toggle input { position: absolute; opacity: 0; }
.toggle-visual { position: relative; width: 30px; height: 17px; flex: 0 0 auto; border-radius: 12px; background: #d8d2dc; transition: background .2s ease; }
.toggle-visual:after { position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: white; content: ""; transition: transform .2s ease; }
.publish-toggle input:checked + .toggle-visual { background: var(--violet); }
.publish-toggle input:checked + .toggle-visual:after { transform: translateX(13px); }
.publish-toggle strong, .publish-toggle small { display: block; }
.publish-toggle strong { margin-bottom: 4px; font-size: 10px; }
.publish-toggle small { color: #8d8592; font-size: 9px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 21px; padding-top: 16px; border-top: 1px solid #f0edf2; }
.form-footer > span { color: #918a97; font-size: 9px; line-height: 1.5; }
.table-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 18px; }
.table-toolbar > strong { font-size: 11px; }
.table-count { display: inline-grid; min-width: 20px; height: 20px; margin-left: 5px; place-items: center; border-radius: 10px; background: #f1edf4; color: var(--violet); font-size: 9px; }
.table-hint { color: #938b99; font-size: 9px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 18px; border-top: 1px solid #f0edf2; border-bottom: 1px solid #f0edf2; background: #fbfafc; color: #928a98; font-size: 8px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
td { padding: 12px 18px; border-bottom: 1px solid #f3f0f4; color: #716a77; font-size: 9px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.person-cell { display: flex; align-items: center; gap: 10px; }
.table-avatar { width: 30px; height: 30px; font-size: 10px; }
.person-cell strong, .person-cell small { display: block; }
.person-cell strong { margin-bottom: 4px; color: #332d39; font-size: 10px; }
.person-cell small { color: #918a97; font-size: 9px; }
.role-badge { display: inline-block; padding: 5px 8px; border-radius: 2px; background: #f2edf7; color: var(--violet); font-size: 8px; font-weight: 600; }
.role-total { background: #f0e6f8; color: #5c1392; }
.role-parcial { background: #eaf2fb; color: #3472b7; }
.role-usuario { background: #edf4ef; color: #39745e; }
.table-pagination { margin: 0; padding: 10px; border-top: 1px solid #f2eff4; }
.table-empty { padding: 28px; color: #938b99; text-align: center; }
.lesson-admin-panel { margin-top: 22px; }
.lesson-admin-panel .section-heading { margin-bottom: 15px; }
.lesson-admin-panel .section-heading h2 { font-size: 17px; }
.admin-lesson-list { margin-bottom: 19px; border: 1px solid #eeeaf1; border-radius: 3px; }
.admin-lesson-item { padding-bottom: 9px; border-bottom: 1px solid #f0edf2; }
.admin-lesson-item:last-child { border-bottom: 0; }
.admin-lesson-row { display: flex; min-height: 51px; align-items: center; gap: 11px; padding: 8px 11px; }
.lesson-edit-details { padding: 0 11px 0 54px; }
.lesson-edit-details summary { width: fit-content; color: var(--violet); font-size: 9px; font-weight: 600; cursor: pointer; }
.lesson-edit-details[open] summary { margin-bottom: 12px; }
.lesson-edit-form { padding: 14px; border-radius: 3px; background: #faf8fc; }
.delete-button { font-size: 19px; }
.upload-form { padding-top: 17px; border-top: 1px solid #eeeaf1; }
.upload-form .form-grid { margin-top: 16px; }
.upload-drop { position: relative; min-height: 120px; align-items: center; justify-content: center; padding: 14px; border: 1px dashed #cfc3d8; border-radius: 3px; background: #fcfafe; text-align: center; cursor: pointer; }
.upload-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-drop strong { color: var(--violet); font-size: 10px; }
.upload-drop small, .selected-file { color: #918a97; font-size: 8px; font-weight: 400; }
.upload-symbol { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--violet-soft); color: var(--violet); font-size: 15px; }
.selected-file { color: #665e6e; }
.upload-advice strong { flex: 0 0 auto; color: #3d5d83; }
.upload-progress { margin-top: 14px; padding: 13px; border: 1px solid #e6deed; border-radius: 3px; background: #faf8fc; }
.upload-progress[hidden] { display: none; }
.upload-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; color: #514957; font-size: 10px; }
.upload-progress > div:first-child span { color: var(--violet); font-weight: 700; }
.upload-progress p { margin: 8px 0 0; color: #817987; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.upload-progress-track { height: 6px; margin-top: 10px; overflow: hidden; border-radius: 4px; background: #e9e3ed; }
.upload-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--violet); transition: width .15s ease; }
.upload-progress-error { border-color: #efcfd5; background: #fff7f8; }
.upload-progress-error > div:first-child strong, .upload-progress-error p { color: #9d394b; }
.upload-progress-error .upload-progress-track i { background: #b73e52; }
.updated-label { color: #8a8290; font-size: 9px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.metric-card { position: relative; min-height: 130px; overflow: hidden; padding: 17px; border: 1px solid var(--line); border-radius: 4px; background: white; }
.metric-card > span, .metric-card > small { position: relative; z-index: 1; display: block; color: #817a87; font-size: 9px; }
.metric-card > strong { position: relative; z-index: 1; display: block; margin: 12px 0 5px; font-family: var(--font-display); font-size: 28px; }
.metric-card > small { color: #a099a5; font-size: 8px; }
.metric-mark { position: absolute; right: 10px; bottom: -7px; color: #f2ebf7; font-size: 64px; font-style: normal; }
.mark-blue { color: #e9f3ff; }
.mark-green { color: #eaf3ef; }
.mark-pink { color: #faedf1; }
.metrics-table { margin-top: 20px; }
.report-panel { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.report-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.report-heading h2 { margin: 6px 0 0; font-size: 15px; }
.completion-chart { display: grid; min-height: 184px; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; padding: 8px 8px 0; border-bottom: 1px solid var(--line); }
.chart-column { display: flex; min-width: 0; height: 170px; flex-direction: column; align-items: center; justify-content: end; gap: 7px; color: #77707d; }
.chart-column strong { color: #5e5665; font-size: 9px; }
.chart-column small { padding-bottom: 8px; color: #8e8793; font-size: 9px; }
.chart-track { display: flex; width: min(44px, 70%); height: 116px; align-items: end; overflow: hidden; border-radius: 3px 3px 0 0; background: #f3eff6; }
.chart-track span { display: block; width: 100%; min-height: 0; border-radius: 3px 3px 0 0; background: var(--violet); transition: height .25s ease; }
.report-count { font-size: 9px; }
.report-progress { width: min(180px, 100%); height: 4px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: #eeeaf1; }
.report-progress span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.company-create-form { margin-bottom: 20px; }
.company-create-row { display: flex; align-items: end; gap: 12px; }
.company-create-row .form-field { flex: 1; }
.company-table { margin-top: 16px; }
.company-assign-form { display: flex; align-items: center; gap: 6px; }
.user-actions { display: flex; align-items: center; gap: 4px; }
.company-assign-form select { min-width: 135px; height: 30px; padding: 0 7px; border: 1px solid #e4dfe8; border-radius: 3px; background: white; font-size: 9px; }
.company-assign-form .button { min-height: 30px; padding: 0 8px; font-size: 9px; }
.flash-success, .flash-error { width: min(1036px, calc(100% - 84px)); margin: 16px auto -16px; padding: 11px 14px; border-radius: 3px; font-size: 10px; }
.flash-success { border: 1px solid #d4eade; background: #f0f8f3; color: #337256; }
.flash-error { border: 1px solid #f0d8dd; background: #fff4f5; color: #9d394b; }

.login-page { min-height: 100vh; background: #fff; }
.login-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .92fr) 1.08fr; }
.login-brand-panel { position: relative; display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; justify-content: space-between; padding: 40px 8.4%; background: #4b1177; color: white; }
.login-brand-panel:before { position: absolute; right: -210px; bottom: -270px; width: 610px; height: 610px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; content: ""; }
.login-brand-panel:after { position: absolute; right: -120px; bottom: -180px; width: 440px; height: 440px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; content: ""; }
.login-logo { position: relative; z-index: 2; display: inline-flex; width: fit-content; flex-direction: column; }
.login-logo > span { color: #fff; font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.login-brand-image { display: block; width: 140px; max-height: 68px; object-fit: contain; object-position: left center; }
.login-editorial { position: relative; z-index: 2; max-width: 450px; margin: auto 0; padding: 60px 0; }
.light-eyebrow { color: rgba(255,255,255,.72); }
.light-eyebrow > span { background: var(--blue); }
.login-editorial h1 { margin: 24px 0 17px; font-size: clamp(36px, 4vw, 58px); font-weight: 700; line-height: 1.08; }
.login-editorial p { max-width: 370px; margin: 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.8; }
.login-form-panel { display: flex; min-height: 100vh; flex-direction: column; justify-content: center; padding: 42px 10%; }
.login-form-wrap { width: min(390px, 100%); margin: auto; }
.mobile-login-brand { display: none; }
.login-form-wrap > .eyebrow { margin-bottom: 17px; }
.login-form-wrap h2 { margin: 0 0 8px; font-size: 26px; font-weight: 700; }
.login-intro { margin-bottom: 27px; color: #827a88; font-size: 11px; line-height: 1.6; }
.login-form { display: flex; flex-direction: column; }
.login-form > label:not(.remember-check), .password-label label { margin-bottom: 7px; color: #514957; font-size: 10px; font-weight: 600; }
.login-form input:not([type=checkbox]) { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #e4dfe8; border-radius: 3px; outline: 0; background: #fff; color: var(--ink); font-size: 10px; }
.login-form input:focus { border-color: #a87ac7; box-shadow: 0 0 0 3px rgba(92,19,146,.08); }
.login-form input::placeholder { color: #aaa3af; }
.password-label { display: flex; justify-content: space-between; margin-top: 16px; }
.password-input { position: relative; }
.password-input input { padding-right: 43px !important; }
.password-input button { position: absolute; top: 4px; right: 5px; width: 34px; height: 34px; border: 0; background: transparent; color: #817887; cursor: pointer; }
.remember-check { display: flex; align-items: center; gap: 8px; margin: 15px 0 19px; color: #716a77; font-size: 9px; cursor: pointer; }
.remember-check input { width: 14px; height: 14px; margin: 0; accent-color: var(--violet); }
.login-submit { width: 100%; height: 44px; justify-content: space-between; padding: 0 14px; font-size: 11px; }
.login-submit > span { font-size: 17px; }
.field-error { margin-top: 6px; color: #a33e50; font-size: 9px; }
@media (max-width: 1080px) {
    .page-content { padding-right: 28px; padding-left: 28px; }
    .topbar { padding-right: 28px; padding-left: 28px; }
    .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .watch-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 15px; }
}
@media (max-width: 760px) {
    .sidebar { z-index: 40; width: min(290px, 84vw); transform: translateX(-105%); transition: transform .24s ease; box-shadow: 14px 0 35px rgba(25,14,34,.08); }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-scrim.is-open { position: fixed; z-index: 30; inset: 0; display: block; background: rgba(27,18,34,.36); }
    .main-area { margin-left: 0; }
    .topbar { height: 55px; padding: 0 17px; }
    .menu-button { display: grid; margin-left: -7px; }
    .breadcrumb { margin-right: auto; padding-left: 7px; font-size: 10px; }
    .topbar-status { display: none; }
    .page-content { padding: 25px 19px 45px; }
    .welcome-strip { min-height: 185px; padding: 27px 23px; }
    .welcome-copy h1 { font-size: 27px; }
    .welcome-art { right: -160px; opacity: .8; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-card:last-child { grid-column: 1 / -1; }
    .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .course-cover { height: 118px; }
    .course-card-body { padding: 12px; }
    .course-card h3 { font-size: 13px; }
    .section-heading h2 { font-size: 17px; }
    .dashboard-heading, .courses-heading { margin-top: 29px; }
    .watch-layout { grid-template-columns: 1fr; }
    .watch-playlist { order: 2; }
    .video-frame { min-height: 0; }
    .playlist-items { max-height: 270px; }
    .course-detail-hero { min-height: 215px; padding: 26px 23px; }
    .detail-hero-art { right: -135px; opacity: .7; }
    .detail-hero-copy h1 { font-size: 25px; }
    .login-layout { grid-template-columns: 1fr; }
    .login-brand-panel { display: none; }
    .login-form-panel { min-height: 100vh; padding: 28px 25px; text-align: left; }
    .login-form-wrap { width: min(410px, 100%); }
    .mobile-login-brand { display: block; margin-bottom: 34px; color: var(--violet); font-family: var(--font-display); font-size: 18px; font-weight: 700; }
    .mobile-login-brand .login-brand-image { width: 120px; max-height: 58px; }
}
@media (max-width: 520px) {
    .page-content { padding-right: 15px; padding-left: 15px; }
    .topbar { padding-right: 12px; padding-left: 12px; }
    .topbar-avatar { width: 27px; height: 27px; }
    .welcome-strip { min-height: 174px; padding: 22px 18px; }
    .welcome-copy h1 { font-size: 25px; }
    .welcome-copy p { max-width: 220px; font-size: 10px; line-height: 1.6; }
    .welcome-art { right: -220px; }
    .stat-grid { gap: 8px; }
    .stat-card { min-height: 111px; padding: 13px 12px; }
    .stat-card-top { font-size: 9px; }
    .stat-card > strong { font-size: 21px; }
    .stat-card .profile-stat { font-size: 13px; }
    .stat-foot { font-size: 8px; line-height: 1.4; }
    .section-heading { align-items: start; }
    .section-heading h2 { font-size: 15px; }
    .section-heading > .text-link { font-size: 9px; white-space: nowrap; }
    .course-grid, .library-grid { grid-template-columns: 1fr; }
    .course-cover { height: 145px; }
    .course-card p { min-height: 0; }
    .page-intro-row { align-items: flex-start; flex-direction: column; }
    .page-intro-row h1 { font-size: 25px; }
    .page-intro-row .button { align-self: flex-start; }
    .search-row { align-items: flex-start; flex-direction: column; gap: 10px; }
    .search-field { width: 100%; }
    .course-detail-hero { min-height: 235px; padding: 22px 17px; }
    .detail-hero-copy { max-width: 88%; }
    .detail-hero-copy h1 { font-size: 22px; }
    .detail-hero-copy p { font-size: 10px; }
    .detail-hero-art { right: -202px; }
    .lesson-row { gap: 9px; padding: 10px; }
    .lesson-number { width: 28px; height: 28px; }
    .lesson-duration { display: none; }
    .watch-title-block h1 { font-size: 19px; }
    .watch-actions { align-items: flex-start; flex-direction: column; padding: 13px 0; }
    .form-grid { grid-template-columns: 1fr; }
    .full-field { grid-column: auto; }
    .form-panel, .lesson-admin-panel { padding: 16px; }
    .form-footer { align-items: flex-start; flex-direction: column; }
    .form-footer .button { width: 100%; }
    .publish-toggle { align-items: flex-start; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .metric-card { min-height: 116px; padding: 13px; }
    .metric-card > strong { font-size: 24px; }
    .table-toolbar { align-items: flex-start; flex-direction: column; gap: 7px; }
    .completion-chart { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3px; }
    .company-create-row { align-items: stretch; flex-direction: column; }
    .flash-success, .flash-error { width: calc(100% - 30px); }
}
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}