:root {
    --navy-950: #071b2a;
    --navy-900: #0d293d;
    --navy-800: #153b53;
    --teal-600: #087f83;
    --teal-500: #12a1a3;
    --teal-100: #dff7f4;
    --orange-500: #ff7b54;
    --gold-500: #f6bd4b;
    --ink: #163247;
    --muted: #687f90;
    --line: #dce6eb;
    --canvas: #f4f8f9;
    --surface: #fff;
    --green: #16855c;
    --red: #b73c45;
    --shadow: 0 24px 65px rgba(7, 27, 42, .14);
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body, button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy-950); line-height: 1.08; letter-spacing: -.04em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 9px 14px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(220,230,235,.85); backdrop-filter: blur(18px); }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-symbol { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: linear-gradient(140deg, var(--navy-900), var(--teal-500)); border-radius: 14px 14px 14px 5px; font-weight: 900; box-shadow: 0 9px 22px rgba(18,161,163,.22); }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { color: var(--navy-950); font-size: 1.18rem; letter-spacing: -.04em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: .67rem; }
.navigation { display: flex; gap: 5px; }
.navigation a { padding: 10px 13px; color: var(--muted); border-radius: 10px; font-size: .88rem; font-weight: 700; }
.navigation a:hover, .navigation a.active { color: var(--teal-600); background: #edf8f7; }
.header-login, .user-menu button { min-height: 40px; padding: 0 17px; color: white; background: var(--navy-900); border: 0; border-radius: 11px; font-weight: 750; cursor: pointer; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-menu > span { color: var(--muted); font-size: .8rem; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 9px; background: transparent; border: 0; }
.nav-toggle > span { display: block; height: 2px; margin: 5px 0; background: var(--navy-900); }
.flash { position: relative; z-index: 20; }
.notice { margin: 12px 0; padding: 13px 16px; border: 1px solid; border-radius: 10px; }
.notice.success { color: #155e43; background: #e6f7ef; border-color: #addcc7; }
.notice.error { color: #8d3037; background: #fff0f1; border-color: #efbfc3; }

.hero { position: relative; overflow: hidden; min-height: 700px; color: white; background: var(--navy-950); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 73% 35%, rgba(18,161,163,.24), transparent 28%), linear-gradient(115deg, rgba(255,255,255,.026) 1px, transparent 1px); background-size: auto, 38px 38px; mask-image: linear-gradient(to right, transparent, #000 40%); }
.hero::after { content: ""; position: absolute; width: 500px; height: 500px; right: -290px; bottom: -330px; border: 90px solid rgba(255,123,84,.08); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; min-height: 700px; display: grid; grid-template-columns: 1.1fr 430px; align-items: center; gap: 90px; padding-block: 78px; }
.hero-copy { max-width: 670px; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--teal-600); font-size: .7rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow, .auth-copy .eyebrow { color: #6ed7d1; }
.hero h1 { margin-bottom: 24px; color: white; }
.hero-copy > p { max-width: 610px; margin-bottom: 30px; color: #b7cbd7; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: linear-gradient(135deg, var(--teal-500), #08767a); box-shadow: 0 13px 30px rgba(18,161,163,.23); }
.button.secondary { color: white; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.button.full { width: 100%; }
.connection { display: flex; align-items: center; gap: 9px; margin-top: 32px; color: #9fb4c2; font-size: .78rem; }
.connection span { width: 8px; height: 8px; background: var(--gold-500); border-radius: 50%; box-shadow: 0 0 0 5px rgba(246,189,75,.1); }
.connection.online span { background: #55d89a; box-shadow: 0 0 0 5px rgba(85,216,154,.1); }

.login-card, .overview-card { color: var(--ink); background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.75); border-radius: 25px; box-shadow: var(--shadow); }
.login-card { padding: 32px; }
.login-card h2 { margin-bottom: 7px; font-size: 2rem; }
.login-card > p { color: var(--muted); font-size: .88rem; }
.login-card > small, .register-card > small { display: block; margin-top: 18px; color: var(--muted); text-align: center; }
.login-card > small a, .register-card > small a { color: var(--teal-600); font-weight: 800; }
.legacy-account-note { margin: 14px 0 0; padding-top: 13px; color: var(--muted); border-top: 1px solid var(--line); font-size: .68rem !important; line-height: 1.45; }
.form-stack { display: grid; gap: 14px; }
.form-stack label { display: grid; gap: 6px; color: var(--navy-900); font-size: .77rem; font-weight: 750; }
.form-stack input { width: 100%; min-height: 46px; padding: 10px 13px; background: white; border: 1px solid #cbd9e0; border-radius: 10px; outline: 0; }
.form-stack input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(18,161,163,.12); }
.overview-card { padding: 38px; transform: rotate(-1deg); }
.overview-head { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.overview-head b { padding: 5px 9px; color: var(--green); background: #e7f6ef; border-radius: 99px; }
.overview-card > strong { display: block; margin-top: 48px; color: var(--navy-950); font-size: 5.7rem; line-height: .9; letter-spacing: -.09em; }
.overview-card > p { color: var(--muted); }
.mini-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 35px; }
.mini-metrics span { padding: 13px; background: var(--canvas); border-radius: 11px; color: var(--muted); font-size: .75rem; }
.mini-metrics b { display: block; color: var(--navy-900); font-size: 1.1rem; }

.metrics { position: relative; z-index: 2; margin-top: -45px; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: white; border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 18px 48px rgba(7,27,42,.1); overflow: hidden; }
.metrics article { display: flex; align-items: center; gap: 18px; min-height: 112px; padding: 22px 28px; border-right: 1px solid var(--line); }
.metrics article:last-child { border: 0; }
.metrics article > span { display: grid; place-items: center; width: 35px; height: 35px; color: var(--teal-600); background: var(--teal-100); border-radius: 10px; font-size: .68rem; font-weight: 900; }
.metrics strong, .metrics small { display: block; }
.metrics strong { color: var(--navy-950); font-size: 1.65rem; line-height: 1; }
.metrics small { margin-top: 7px; color: var(--muted); }

.modules-section { padding: 115px 0 95px; }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 55px; margin-bottom: 45px; }
.section-heading h2 { margin: 0; }
.section-heading > p { color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module-card { min-height: 310px; display: flex; flex-direction: column; padding: 27px; background: white; border: 1px solid var(--line); border-radius: 19px; transition: transform .2s ease, box-shadow .2s ease; }
.module-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(7,27,42,.08); }
.module-card.active { background: linear-gradient(145deg, var(--navy-900), var(--navy-800)); border-color: transparent; }
.module-card.active h3 { color: white; }
.module-card.active p { color: #afc3d0; }
.module-head { display: flex; justify-content: space-between; align-items: center; }
.module-icon { display: grid; place-items: center; width: 46px; height: 46px; color: white; background: var(--teal-500); border-radius: 14px; font-weight: 900; }
.module-head small { padding: 5px 9px; color: var(--muted); background: var(--canvas); border-radius: 99px; font-size: .62rem; font-weight: 800; }
.module-card.active .module-head small { color: #7fe0da; background: rgba(18,161,163,.13); }
.module-card h3 { margin: 28px 0 10px; font-size: 1.45rem; }
.module-card p { color: var(--muted); font-size: .88rem; }
.module-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: .72rem; }
.module-foot span { color: var(--teal-600); font-weight: 800; }
.module-card.active .module-foot { color: white; border-color: rgba(255,255,255,.12); }
.module-card.active .module-foot span { color: #7fe0da; }

.questions-hero { padding: 72px 0 115px; color: #b3c7d3; background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); }
.questions-hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 50px; }
.questions-hero .eyebrow { color: #6ed7d1; }
.questions-hero h1 { margin: 0 0 12px; color: white; font-size: clamp(2.8rem, 5vw, 4.8rem); }
.questions-hero p { margin: 0; }
.practice-summary { display: grid; grid-template-columns: repeat(3, auto); gap: 7px; }
.practice-summary span { min-width: 105px; padding: 13px 16px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: #a9bfcc; font-size: .68rem; }
.practice-summary strong { display: block; color: white; font-size: 1.2rem; }
.questions-content { min-height: 700px; padding: 0 0 90px; }
.filter-panel { position: relative; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 12px; margin-top: -55px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 45px rgba(7,27,42,.12); }
.filter-panel label, .search-field { display: grid; gap: 6px; color: var(--navy-900); font-size: .69rem; font-weight: 800; }
.filter-panel input, .filter-panel select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; background: #fbfdfd; border: 1px solid #cad9e0; border-radius: 9px; outline: 0; }
.filter-panel input:focus, .filter-panel select:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(18,161,163,.1); }
.filter-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 5px; }
.filter-actions a { color: var(--muted); font-size: .75rem; font-weight: 800; }
.question-notice { margin: 25px 0; padding: 18px 20px; color: #745817; background: #fff7dd; border: 1px solid #efd99a; border-radius: 12px; }
.question-notice p { margin: 3px 0 0; }
.result-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 60px 0 25px; }
.result-heading h2 { margin: 0; font-size: 2rem; }
.result-heading > small { color: var(--muted); }
.question-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.question-card { min-height: 330px; display: flex; flex-direction: column; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 17px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.question-card:hover { transform: translateY(-4px); border-color: #b8d3d6; box-shadow: 0 18px 42px rgba(7,27,42,.09); }
.question-card-head, .question-card-foot { display: flex; justify-content: space-between; gap: 12px; }
.question-card-head { color: var(--muted); font-size: .68rem; font-weight: 800; }
.question-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 17px; }
.question-tags span { padding: 4px 7px; color: var(--teal-600); background: var(--teal-100); border-radius: 6px; font-size: .6rem; font-weight: 800; }
.question-card h3 { margin: 19px 0 9px; font-size: 1.18rem; }
.question-card > p { color: var(--muted); font-size: .82rem; }
.question-card-foot { align-items: end; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); font-size: .68rem; }
.question-card-foot span { max-width: 65%; color: var(--muted); }
.question-card-foot strong { color: var(--teal-600); }
.empty-questions { padding: 75px 25px; text-align: center; background: white; border: 1px dashed #bdced7; border-radius: 17px; }
.empty-questions > span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; color: white; background: var(--teal-500); border-radius: 18px; font-size: 1.5rem; font-weight: 900; }
.empty-questions p { color: var(--muted); }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.pagination a { padding: 10px 13px; color: var(--teal-600); background: white; border: 1px solid var(--line); border-radius: 9px; font-size: .78rem; font-weight: 800; }
.pagination b { color: var(--muted); font-size: .73rem; }

.question-workspace { min-height: 750px; padding: 48px 0 90px; background: #edf3f5; }
.question-layout { display: grid; grid-template-columns: 255px 1fr; gap: 22px; align-items: start; }
.question-sidebar { position: sticky; top: 98px; }
.back-link { display: block; margin-bottom: 20px; color: var(--teal-600); font-size: .76rem; font-weight: 800; }
.question-progress { padding: 21px; color: #b5c8d3; background: var(--navy-900); border-radius: 15px; }
.question-progress span, .question-progress small, .question-progress strong { display: block; }
.question-progress span { font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; }
.question-progress strong { margin: 10px 0 4px; color: white; font-size: 2.4rem; line-height: 1; }
.question-progress small { font-size: .68rem; }
.question-sidebar dl { margin: 12px 0 0; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.question-sidebar dl > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.question-sidebar dl > div:last-child { border: 0; }
.question-sidebar dt { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; }
.question-sidebar dd { margin: 2px 0 0; color: var(--navy-900); font-size: .78rem; font-weight: 750; }
.question-sheet { padding: 38px; background: white; border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 14px 42px rgba(7,27,42,.06); }
.question-sheet > header { display: flex; justify-content: space-between; gap: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.question-sheet > header h1 { margin: 0; font-size: 1.8rem; }
.question-sheet > header > small { align-self: start; padding: 6px 9px; color: var(--teal-600); background: var(--teal-100); border-radius: 99px; font-size: .63rem; font-weight: 800; }
.statement { padding: 32px 4px; color: #203d51; font-family: Georgia, serif; font-size: 1.06rem; line-height: 1.85; }
.answer-form fieldset { display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.alternative { position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; min-height: 62px; padding: 11px 14px; background: #fbfdfd; border: 1px solid var(--line); border-radius: 12px; font-size: .86rem; cursor: pointer; }
.alternative:hover { border-color: #9fc7ca; }
.alternative input { position: absolute; opacity: 0; pointer-events: none; }
.alternative:has(input:checked), .alternative:focus-within { background: #f0fbfa; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(18,161,163,.1); }
.letter { display: grid; place-items: center; width: 34px; height: 34px; color: var(--navy-900); background: white; border: 1px solid var(--line); border-radius: 9px; font-weight: 900; }
.answer-button { margin-top: 20px; }
.answered-alternatives { display: grid; gap: 9px; }
.answered-alternatives .alternative { cursor: default; }
.answered-alternatives .alternative.correct { background: #e9f8f0; border-color: #8dcdb0; }
.answered-alternatives .alternative.wrong { background: #fff2ef; border-color: #ebb1a6; }
.answered-alternatives .alternative b { color: var(--muted); font-size: .65rem; }
.alternative.correct b { color: var(--green); }
.alternative.wrong b { color: var(--red); }
.feedback { display: grid; grid-template-columns: 50px 1fr; gap: 15px; margin-top: 26px; padding: 23px; border: 1px solid; border-radius: 14px; }
.feedback > span { display: grid; place-items: center; width: 45px; height: 45px; color: white; border-radius: 13px; font-size: 1.2rem; font-weight: 900; }
.feedback small { text-transform: uppercase; letter-spacing: .08em; font-size: .62rem; font-weight: 900; }
.feedback h2 { margin: 3px 0; font-size: 1.35rem; }
.feedback p { margin: 0; }
.feedback.success { color: #276649; background: #ecf9f2; border-color: #a8d9c0; }
.feedback.success > span { background: var(--green); }
.feedback.attention { color: #79531c; background: #fff8e5; border-color: #ead397; }
.feedback.attention > span { background: #cf8c24; }
.explanation { margin-top: 20px; padding: 24px; background: #f3f7f8; border-radius: 14px; }
.explanation p { margin: 0; }
.question-navigation { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.button.secondary-dark { color: var(--navy-900); background: white; border-color: var(--line); }

.practice-header { padding: 42px 0 76px; color: #b5c8d3; background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); }
.practice-header-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.practice-header .eyebrow { color: #6ed7d1; }
.practice-header h1 { margin: 0; color: white; font-size: clamp(2rem, 4vw, 3.5rem); }
.practice-page { min-height: 760px; padding-bottom: 90px; }
.protected-learning-content,
.protected-learning-content .question-sheet,
.protected-learning-content .practice-meta,
.protected-learning-content .question-resources { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protected-learning-content input,
.protected-learning-content textarea,
.protected-learning-content select { -webkit-user-select: text; user-select: text; }
.cascade-filters { position: relative; display: grid; grid-template-columns: 1.2fr repeat(4, 1fr) auto auto; align-items: end; gap: 10px; margin-top: -38px; padding: 17px; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 16px 42px rgba(7,27,42,.12); }
.cascade-filters label, .cascade-search { display: grid; gap: 5px; color: var(--navy-900); font-size: .65rem; font-weight: 850; }
.cascade-filters input, .cascade-filters select { width: 100%; min-width: 0; min-height: 43px; padding: 8px 10px; background: #fbfdfd; border: 1px solid #cbd9e0; border-radius: 9px; outline: 0; }
.cascade-filters input:focus, .cascade-filters select:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(18,161,163,.1); }
.cascade-filters .button { min-height: 43px; padding-inline: 15px; }
.clear-filters { min-height: 43px; display: inline-flex; align-items: center; padding: 0 8px; color: var(--muted); font-size: .68rem; font-weight: 800; }
.practice-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin: 34px 0 15px; }
.practice-toolbar strong, .practice-toolbar small { display: block; }
.practice-toolbar small { color: var(--muted); font-size: .69rem; }
.practice-nav { display: flex; align-items: center; gap: 8px; }
.practice-nav.compact a, .practice-nav.compact span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: .69rem; font-weight: 800; }
.practice-nav.compact a { color: var(--teal-600); background: white; }
.practice-nav.compact span { color: #aab9c2; background: #edf2f4; }
.practice-question-layout { display: grid; grid-template-columns: 205px 1fr; gap: 15px; align-items: start; }
.practice-meta { position: sticky; top: 94px; padding: 20px; color: #b4c7d2; background: var(--navy-900); border-radius: 15px; }
.question-number { display: block; padding-bottom: 14px; color: #70d7d1; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .72rem; font-weight: 900; }
.practice-meta dl { margin: 10px 0 0; }
.practice-meta dl > div { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.practice-meta dl > div:last-child { border: 0; }
.practice-meta dt { color: #809dab; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.practice-meta dd { margin: 2px 0 0; color: white; font-size: .75rem; font-weight: 750; }
.practice-sheet { min-height: 520px; }
.practice-sheet > header h2 { margin: 0; font-size: 1.65rem; }
.answer-actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.answer-actions a { color: var(--teal-600); font-size: .75rem; font-weight: 800; }
.practice-nav.bottom { justify-content: space-between; margin: 18px 0 0 220px; }

.cascade-filters.complete { display: block; padding: 20px; }
.mobile-filter-drawer > summary { display: none; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; }
.filter-grid .filter-wide { grid-column: span 2; }
.filter-grid .filter-search { grid-column: 1 / -1; }
.result-filters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.result-filters label { display: block; }
.result-filters input { position: absolute; width: 1px; min-height: 1px; opacity: 0; pointer-events: none; }
.result-filters span { display: grid; min-height: 43px; place-items: center; padding: 7px 10px; color: #a66a08; background: white; border: 1px solid #eba92f; border-radius: 10px; font-size: .75rem; font-weight: 850; cursor: pointer; }
.result-filters label.active span { color: #402a05; background: var(--gold-500); border-color: var(--gold-500); box-shadow: 0 8px 22px rgba(246,189,75,.22); }
.result-filters input:focus-visible + span { outline: 3px solid rgba(18,161,163,.22); outline-offset: 2px; }
.filter-footer { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.filter-footer .button { min-height: 39px; }
.filter-footer .clear-filters { min-height: 39px; color: var(--teal-600); background: var(--teal-100); border-radius: 9px; padding-inline: 14px; text-transform: uppercase; }
.practice-main { min-width: 0; }
.question-title-row { align-items: flex-start; }
.practice-main .practice-nav.bottom { margin-left: 0; }
.alternative-help { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; margin-bottom: 9px; color: var(--navy-900); font-size: .72rem; font-weight: 850; }
.alternative-help small { color: var(--muted); font-size: .63rem; font-weight: 700; }
.alternative-row { display: grid; grid-template-columns: 1fr 82px; align-items: stretch; gap: 7px; }
.alternative-row .alternative { height: 100%; }
.alternative-text { min-width: 0; overflow-wrap: anywhere; }
.cut-alternative { display: grid; place-items: center; align-content: center; gap: 1px; min-height: 62px; padding: 6px; color: #8a4e25; background: #fff7ef; border: 1px solid #efd0b7; border-radius: 12px; cursor: pointer; }
.cut-alternative span { font-size: 1.05rem; line-height: 1; }
.cut-alternative b { font-size: .57rem; }
.cut-alternative:hover { color: white; background: var(--orange-500); border-color: var(--orange-500); }
.alternative-row.eliminated .alternative { color: #94a4ad; background: #f0f3f4; border-style: dashed; opacity: .75; }
.alternative-row.eliminated .alternative-text { text-decoration: line-through 2px #b76a6f; }
.alternative-row.eliminated .letter { color: #889ba6; background: #e2e8eb; }
.alternative-row.eliminated .cut-alternative { color: var(--teal-600); background: var(--teal-100); border-color: #a7d9d6; }
.question-resources { margin-top: 18px; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.resource-tabs { display: grid; grid-template-columns: 1.35fr 1.35fr 1fr .7fr 1fr; background: #f3f7f8; border-bottom: 1px solid var(--line); overflow-x: auto; }
.resource-tabs button { min-width: 120px; min-height: 58px; padding: 10px 12px; color: var(--muted); background: transparent; border: 0; border-right: 1px solid var(--line); font-size: .7rem; font-weight: 800; cursor: pointer; }
.resource-tabs button:last-child { border-right: 0; }
.resource-tabs button[aria-selected="true"] { color: var(--teal-600); background: white; box-shadow: inset 0 -3px var(--teal-500); }
.resource-tabs button span { margin-right: 5px; }
.resource-tabs button b { display: inline-grid; min-width: 19px; height: 19px; place-items: center; margin-left: 4px; color: white; background: var(--teal-500); border-radius: 99px; font-size: .56rem; }
.resource-panel { padding: 28px; }
.resource-panel[hidden] { display: none; }
.resource-panel h3 { margin-bottom: 13px; font-size: 1.25rem; }
.resource-panel > p { color: var(--muted); }
.locked-resource { padding: 15px; color: #745817 !important; background: #fff8e5; border: 1px solid #ead397; border-radius: 10px; }
.locked-resource a { color: var(--teal-600); font-weight: 850; }
.resource-form { display: grid; gap: 9px; margin-bottom: 24px; padding: 18px; background: #f5f9fa; border: 1px solid var(--line); border-radius: 12px; }
.resource-form label { color: var(--navy-900); font-size: .7rem; font-weight: 850; }
.resource-form textarea { width: 100%; resize: vertical; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid #cbd9e0; border-radius: 9px; outline: 0; }
.resource-form textarea:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(18,161,163,.1); }
.resource-form .button { justify-self: start; min-height: 40px; }
.student-comments { display: grid; gap: 10px; }
.student-comments article { padding: 16px; background: white; border: 1px solid var(--line); border-radius: 11px; }
.student-comments article > div { display: flex; justify-content: space-between; gap: 15px; }
.student-comments strong { color: var(--navy-900); font-size: .78rem; }
.student-comments small { color: var(--muted); font-size: .62rem; }
.student-comments p { margin: 8px 0 0; color: #365266; font-size: .8rem; }
.stats-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats-overview span { padding: 16px; color: var(--muted); background: #f4f8f9; border-radius: 11px; font-size: .68rem; }
.stats-overview strong { display: block; color: var(--navy-900); font-size: 1.45rem; }
.stats-overview .success strong { color: var(--green); }
.stats-overview .wrong strong { color: var(--red); }
.alternative-stats { display: grid; gap: 8px; margin-top: 18px; }
.alternative-stats > div { display: grid; grid-template-columns: 25px 1fr 42px; align-items: center; gap: 10px; font-size: .72rem; }
.alternative-stats progress { width: 100%; height: 10px; accent-color: var(--teal-500); }

.clean-foundation { padding: 90px 0; color: white; background: var(--navy-950); }
.foundation-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.foundation-grid h2 { color: white; }
.foundation-list { display: grid; gap: 5px; }
.foundation-list p { display: grid; grid-template-columns: 45px 1fr; margin: 0; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.foundation-list p > span { grid-row: 1 / 3; color: #5ed1ca; font-size: .72rem; font-weight: 900; }
.foundation-list strong { color: white; }
.foundation-list small { color: #9eb4c2; }

.auth-page { min-height: 780px; padding: 80px 0; background: linear-gradient(120deg, var(--navy-950) 0 50%, var(--canvas) 50%); }
.auth-grid { display: grid; grid-template-columns: 1fr 500px; gap: 110px; align-items: center; }
.auth-copy { color: #afc2ce; }
.auth-copy h1 { color: white; }
.auth-copy ul { padding-left: 18px; }
.auth-copy li { margin: 9px 0; }
.register-card { padding: 36px; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.register-card > p { color: var(--muted); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-stack label.check { display: flex; align-items: start; gap: 8px; }
.check input { flex: 0 0 auto; width: 17px; min-height: 17px; margin-top: 2px; }
.error-page { min-height: 65vh; display: grid; place-items: center; padding: 70px 20px; text-align: center; }
.error-page > div { max-width: 650px; }
.error-page > div > strong { color: var(--teal-500); font-size: 6rem; line-height: 1; }
.error-page p { color: var(--muted); }
.error-page pre { max-width: 650px; overflow: auto; padding: 15px; text-align: left; background: white; border: 1px solid var(--line); }

/* Cadastro e validação de identidade */
.registration-page { padding-block: 58px; }
.registration-grid { grid-template-columns: minmax(0, 1fr) 560px; gap: 85px; }
.registration-copy { position: sticky; top: 130px; }
.registration-copy h1 { margin-bottom: 22px; font-size: clamp(3rem, 5.3vw, 5rem); }
.registration-copy > p { max-width: 520px; color: #b7cbd7; }
.registration-card { padding: 32px 36px; }
.registration-card h2 { margin: 14px 0 7px; font-size: 2rem; }
.registration-card > p { margin-bottom: 22px; font-size: .82rem; }
.card-kicker { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .66rem; }
.card-kicker span { padding: 5px 9px; color: var(--teal-600); background: var(--teal-100); border-radius: 99px; font-weight: 850; }
.card-kicker strong { font-weight: 700; }
.form-stack label > small { color: var(--muted); font-size: .64rem; font-weight: 550; }
.registration-steps { display: grid; gap: 11px; max-width: 430px; margin: 36px 0 0; padding: 0; list-style: none; }
.registration-steps li { display: flex; align-items: center; gap: 13px; padding: 14px; color: #9ab0bd; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; }
.registration-steps li > span { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; font-size: .73rem; font-weight: 900; }
.registration-steps li div { display: grid; }
.registration-steps li strong { color: inherit; font-size: .8rem; }
.registration-steps li small { font-size: .65rem; }
.registration-steps li.active { color: white; background: rgba(18,161,163,.13); border-color: rgba(94,209,202,.35); }
.registration-steps li.active > span { color: var(--navy-950); background: #6ed7d1; border-color: #6ed7d1; }

.identity-page { min-height: 760px; padding-bottom: 90px; }
.identity-hero { padding: 52px 0 115px; color: #b7cbd7; background: radial-gradient(circle at 75% 25%, rgba(18,161,163,.22), transparent 28%), var(--navy-950); }
.identity-hero-grid { display: grid; grid-template-columns: 1fr 390px; align-items: center; gap: 70px; }
.identity-hero h1 { margin: 0 0 10px; color: white; font-size: clamp(2.7rem, 5vw, 4.5rem); }
.identity-hero p { margin: 0; }
.registration-steps.compact { width: 100%; margin: 0; }
.registration-steps.compact li { padding: 11px 13px; }
.registration-steps li.done { color: #9fe0cf; border-color: rgba(85,216,154,.28); }
.registration-steps li.done > span { color: var(--navy-950); background: #7bd4b3; border-color: #7bd4b3; }
.identity-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr); gap: 20px; margin-top: -70px; }
.identity-card, .identity-guide { padding: 34px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 50px rgba(7,27,42,.09); }
.identity-card h2, .identity-guide h2 { margin: 12px 0 9px; font-size: 1.85rem; }
.identity-card > p { color: var(--muted); }
.identity-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; color: var(--muted); background: var(--canvas); border-radius: 99px; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.identity-status .status-pulse { width: 8px; height: 8px; background: var(--gold-500); border-radius: 50%; box-shadow: 0 0 0 4px rgba(246,189,75,.15); }
.identity-status.approved { color: var(--green); background: #e7f6ef; }
.identity-status.approved .status-pulse { background: var(--green); box-shadow: 0 0 0 4px rgba(22,133,92,.12); }
.identity-status.rejected { color: var(--red); background: #fff0f1; }
.identity-status.rejected .status-pulse { background: var(--red); box-shadow: 0 0 0 4px rgba(183,60,69,.12); }
.submitted-document { display: grid; grid-template-columns: 1fr auto; gap: 3px 15px; margin: 24px 0; padding: 18px; background: var(--canvas); border: 1px solid var(--line); border-radius: 14px; }
.submitted-document span { color: var(--muted); font-size: .7rem; }
.submitted-document strong { color: var(--navy-950); font-size: 1.05rem; }
.submitted-document small { grid-column: 1 / -1; color: var(--muted); font-size: .65rem; }
.identity-upload-form { margin-top: 25px; }
.upload-zone { min-height: 205px; display: flex !important; align-items: center; justify-content: center; padding: 28px; border: 2px dashed #b9cbd4; border-radius: 17px; text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.upload-zone:hover, .upload-zone:focus-within { background: #f3fbfa; border-color: var(--teal-500); }
.upload-zone input { position: absolute; width: 1px; min-height: 1px; padding: 0; opacity: 0; }
.upload-zone .upload-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 4px; color: white; background: var(--teal-500); border-radius: 14px; font-size: 1.35rem; }
.upload-zone strong { font-size: .88rem; }
.upload-zone small { color: var(--muted); }
.upload-zone small.file-error { color: var(--red); }
.consent-check { padding: 13px; background: var(--canvas); border-radius: 11px; }
.consent-check span { color: var(--muted); font-size: .7rem; font-weight: 600; }
.identity-guide { box-shadow: none; }
.identity-guide > ul { display: grid; gap: 4px; margin: 23px 0; padding: 0; list-style: none; }
.identity-guide li { display: grid; grid-template-columns: 35px 1fr; gap: 11px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.identity-guide li > span { display: grid; place-items: center; width: 30px; height: 30px; color: var(--teal-600); background: var(--teal-100); border-radius: 9px; font-size: .68rem; font-weight: 900; }
.identity-guide li div { display: grid; }
.identity-guide li strong { color: var(--navy-900); font-size: .78rem; }
.identity-guide li small { color: var(--muted); font-size: .67rem; }
.privacy-note { padding: 17px; color: #b9ccd6; background: var(--navy-900); border-radius: 14px; }
.privacy-note strong { color: white; font-size: .76rem; }
.privacy-note p { margin: 7px 0 0; font-size: .66rem; }
.button:disabled { opacity: .65; cursor: wait; transform: none; }

/* Planos, checkout e pedidos */
.payment-hero { padding: 78px 0 105px; color: #b9ccd6; background: radial-gradient(circle at 80% 25%, rgba(18,161,163,.22), transparent 27%), linear-gradient(130deg, var(--navy-950), var(--navy-800)); }
.payment-hero-grid { display: grid; grid-template-columns: 1fr 390px; align-items: end; gap: 80px; }
.payment-hero h1 { max-width: 720px; margin: 0 0 17px; color: white; font-size: clamp(3rem, 6vw, 5.3rem); }
.payment-hero p { max-width: 600px; margin: 0; }
.payment-trust { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; padding: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; }
.payment-trust span { padding: 7px 9px; color: var(--navy-950); background: white; border-radius: 7px; font-size: .62rem; font-weight: 900; }
.payment-trust strong { font-size: .68rem; line-height: 1.35; }
.payment-plans { padding: 74px 0 100px; }
.payment-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.payment-heading h2 { margin: 0; }
.payment-heading > div:last-child { display: grid; justify-items: end; }
.payment-heading a { color: var(--teal-600); font-size: .76rem; font-weight: 850; }
.payment-heading small { color: var(--muted); font-size: .67rem; }
.payment-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; align-items: stretch; }
.payment-plan-card { min-height: 510px; display: flex; flex-direction: column; padding: 29px; background: white; border: 1px solid var(--line); border-radius: 21px; box-shadow: 0 12px 38px rgba(7,27,42,.05); }
.payment-plan-card.featured { color: #bfd1dc; background: linear-gradient(150deg, var(--navy-950), var(--navy-800)); border-color: transparent; box-shadow: 0 25px 60px rgba(7,27,42,.18); transform: translateY(-8px); }
.payment-plan-card.selected { outline: 3px solid var(--teal-500); outline-offset: 3px; }
.plan-select { display: flex; align-items: center; gap: 8px; width: max-content; padding: 8px 11px; color: var(--navy-900); background: var(--teal-100); border-radius: 99px; font-size: .65rem; font-weight: 850; cursor: pointer; }
.plan-select input { width: 17px; height: 17px; accent-color: var(--teal-600); }
.featured .plan-select { color: white; background: rgba(18,161,163,.23); }
.plan-details-link { color: var(--teal-600); font-size: .7rem; font-weight: 850; text-align: center; }
.featured .plan-details-link { color: #7ee3dd; }
.cart-selection-bar { position: sticky; z-index: 8; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 25px auto 0; padding: 15px 18px; color: white; background: rgba(7,27,42,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: 0 18px 45px rgba(7,27,42,.25); backdrop-filter: blur(12px); }
.cart-selection-bar > div { display: grid; }
.cart-selection-bar small { color: #acc2ce; font-size: .64rem; }
.payment-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--teal-600); font-size: .62rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.payment-plan-top b { padding: 5px 8px; color: var(--muted); background: var(--canvas); border-radius: 99px; font-size: .58rem; }
.featured .payment-plan-top { color: #6ed7d1; }
.featured .payment-plan-top b { color: #8fe0db; background: rgba(18,161,163,.15); }
.payment-plan-card h2 { margin: 29px 0 11px; font-size: 1.75rem; }
.payment-plan-card.featured h2 { color: white; }
.payment-plan-card > p { min-height: 65px; color: var(--muted); font-size: .82rem; }
.payment-plan-card.featured > p { color: #adc2ce; }
.payment-plan-card ul { display: grid; gap: 8px; margin: 16px 0 28px; padding: 0; color: var(--muted); font-size: .72rem; list-style: none; }
.payment-plan-card.featured ul { color: #b7cbd7; }
.payment-plan-card li::before { content: "✓"; margin-right: 8px; color: var(--teal-500); font-weight: 900; }
.payment-plan-price { margin-top: auto; padding: 22px 0 17px; border-top: 1px solid var(--line); }
.payment-plan-card.featured .payment-plan-price { border-color: rgba(255,255,255,.12); }
.payment-plan-price small { display: block; color: var(--muted); font-size: .64rem; }
.payment-plan-price strong { color: var(--navy-950); font-size: 2.15rem; letter-spacing: -.06em; }
.payment-plan-price sup, .checkout-total sup { font-size: .75rem; letter-spacing: 0; }
.payment-plan-card.featured .payment-plan-price strong { color: white; }
.payment-setup-note { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; padding: 13px; color: #7a5a12; background: #fff8e7; border: 1px solid #f1d99d; border-radius: 12px; font-size: .72rem; }
.payment-empty { padding: 55px 25px; background: white; border: 1px dashed #b9cbd4; border-radius: 18px; text-align: center; }
.payment-empty > span { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; color: var(--teal-600); background: var(--teal-100); border-radius: 15px; font-weight: 900; }
.payment-empty h2 { margin-bottom: 8px; }
.payment-empty p { color: var(--muted); }

.checkout-page { min-height: 760px; padding: 55px 0 95px; background: linear-gradient(110deg, var(--canvas) 0 65%, #eaf1f3 65%); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 70px; align-items: start; }
.checkout-main { padding-top: 12px; }
.back-link { display: block; margin-bottom: 38px; color: var(--teal-600); font-size: .72rem; font-weight: 850; }
.checkout-main h1 { max-width: 700px; margin-bottom: 18px; font-size: clamp(2.8rem, 5vw, 4.6rem); }
.checkout-main > p { max-width: 700px; color: var(--muted); }
.checkout-course-list { margin-top: 35px; padding: 25px; background: white; border: 1px solid var(--line); border-radius: 17px; }
.checkout-course-list > div { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line); font-size: .76rem; }
.checkout-course-list > div span { color: var(--muted); }
.checkout-course-list p { display: flex; gap: 10px; margin: 14px 0 0; color: var(--muted); font-size: .76rem; }
.checkout-course-list p span { color: var(--teal-500); font-weight: 900; }
.checkout-info { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 16px; color: var(--muted); background: #e9f7f6; border-radius: 13px; }
.checkout-info > span { font-size: 1.2rem; }
.checkout-info div { display: grid; }
.checkout-info strong { color: var(--navy-900); font-size: .76rem; }
.checkout-info small { font-size: .68rem; }
.checkout-summary { position: sticky; top: 105px; padding: 29px; background: white; border: 1px solid var(--line); border-radius: 21px; box-shadow: var(--shadow); }
.checkout-summary > div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checkout-summary > div small { color: var(--muted); font-size: .65rem; }
.checkout-summary > div strong { font-size: .82rem; }
.checkout-summary .checkout-total { margin-bottom: 20px; border: 0; }
.checkout-total strong { color: var(--navy-950); font-size: 2.2rem !important; letter-spacing: -.06em; }
.checkout-account-note { display: block; margin-top: 12px; color: var(--muted); text-align: center; font-size: .67rem; }
.checkout-account-note a { color: var(--teal-600); font-weight: 850; }
.checkout-security { display: grid; gap: 7px; margin: 20px 0 0; padding: 17px 0 0; color: var(--muted); border-top: 1px solid var(--line); font-size: .64rem; list-style: none; }
.cart-items { display: grid; gap: 10px; margin-top: 28px; }
.cart-items article { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.cart-items article > div { display: grid; gap: 3px; }
.cart-items small { color: var(--muted); font-size: .65rem; }
.cart-items b { font-size: .78rem; }
.cart-items button { padding: 6px 8px; color: var(--red); background: #fbeaec; border: 0; border-radius: 7px; font-size: .6rem; font-weight: 850; cursor: pointer; }

.payment-return { min-height: 720px; display: grid; place-items: center; padding: 65px 0; background: radial-gradient(circle at 50% 20%, rgba(18,161,163,.14), transparent 30%), var(--canvas); }
.payment-result { max-width: 650px; margin: auto; padding: 45px; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); text-align: center; }
.result-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 23px; color: #7a5a12; background: #fff3d3; border-radius: 50%; font-size: 1.8rem; font-weight: 900; }
.payment-result.paid .result-icon { color: white; background: var(--green); box-shadow: 0 0 0 9px rgba(22,133,92,.1); }
.payment-result.cancelled .result-icon { color: white; background: var(--red); }
.payment-result h1 { margin: 8px 0 12px; font-size: 2.65rem; }
.payment-result > p { color: var(--muted); }
.result-order { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0; padding: 18px; background: var(--canvas); border-radius: 13px; text-align: left; }
.result-order span { color: var(--muted); font-size: .72rem; }
.result-order strong { white-space: nowrap; }
.result-actions { display: flex; justify-content: center; gap: 10px; }

.orders-page { min-height: 720px; padding: 65px 0 100px; }
.orders-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.orders-heading h1 { margin: 0 0 9px; font-size: clamp(2.8rem, 5vw, 4.5rem); }
.orders-heading p { margin: 0; color: var(--muted); }
.orders-list { display: grid; gap: 10px; }
.orders-list article { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; padding: 22px 25px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.orders-list h2 { margin: 7px 0 4px; font-size: 1.05rem; }
.orders-list small { color: var(--muted); font-size: .63rem; }
.orders-list article > strong { color: var(--navy-950); font-size: 1.1rem; }
.orders-list article > a { color: var(--teal-600); font-size: .7rem; font-weight: 850; }
.order-status { display: inline-block; padding: 4px 7px; color: #7a5a12; background: #fff3d3; border-radius: 99px; font-size: .56rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.order-status.paid { color: var(--green); background: #e7f6ef; }
.order-status.cancelled, .order-status.expired, .order-status.failed, .order-status.refunded { color: var(--red); background: #fff0f1; }

/* Catálogo público */
.course-catalog { padding: 110px 0 105px; background: white; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.catalog-card { position: relative; min-height: 420px; display: flex; flex-direction: column; padding: 29px; background: var(--canvas); border: 1px solid var(--line); border-radius: 21px; overflow: hidden; }
.catalog-card.featured { color: #c1d3dc; background: linear-gradient(150deg, var(--navy-950), var(--navy-800)); border-color: transparent; box-shadow: 0 24px 54px rgba(7,27,42,.16); }
.catalog-card.featured::before { content: ""; position: absolute; width: 220px; height: 220px; top: -140px; right: -105px; border: 45px solid rgba(18,161,163,.16); border-radius: 50%; }
.catalog-card-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--teal-600); font-size: .65rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.catalog-card-head b { padding: 5px 8px; color: #5e4814; background: var(--gold-500); border-radius: 99px; font-size: .57rem; }
.catalog-card h3 { position: relative; margin: 28px 0 13px; font-size: 1.55rem; }
.catalog-card.featured h3 { color: white; }
.catalog-card > p { color: var(--muted); font-size: .85rem; }
.catalog-card.featured > p, .catalog-card.featured li { color: #b8cbd5; }
.catalog-card ul { display: grid; gap: 8px; margin: 10px 0 25px; padding: 0; color: var(--muted); font-size: .76rem; list-style: none; }
.catalog-card li::before { content: "✓"; margin-right: 8px; color: var(--teal-500); font-weight: 900; }
.catalog-price { margin-top: auto; padding: 22px 0 16px; border-top: 1px solid var(--line); }
.catalog-card.featured .catalog-price { border-color: rgba(255,255,255,.12); }
.catalog-price small { display: block; color: var(--muted); font-size: .65rem; }
.catalog-price strong { color: var(--navy-950); font-size: 2rem; letter-spacing: -.05em; }
.catalog-card.featured .catalog-price strong { color: white; }

/* Painel do aluno */
.student-hero { padding: 58px 0 62px; color: #b9ccd6; background: radial-gradient(circle at 80% 20%, rgba(18,161,163,.2), transparent 25%), linear-gradient(120deg, var(--navy-950), var(--navy-800)); }
.student-hero-grid { display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.student-hero .eyebrow { color: #6ed7d1; }
.student-hero h1 { margin: 0 0 9px; color: white; font-size: clamp(2.5rem, 5vw, 4.25rem); }
.student-hero p { margin: 0; }
.panel-shortcuts { position: sticky; z-index: 35; top: 74px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.panel-shortcuts .container { display: flex; gap: 5px; overflow-x: auto; padding-block: 9px; scrollbar-width: none; }
.panel-shortcuts a { flex: 0 0 auto; padding: 8px 12px; color: var(--muted); border-radius: 9px; font-size: .73rem; font-weight: 800; }
.panel-shortcuts a:hover { color: var(--teal-600); background: var(--teal-100); }
.student-panel { padding: 34px 0 95px; }
.panel-section { scroll-margin-top: 140px; margin-bottom: 22px; padding: 30px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 34px rgba(7,27,42,.04); }
.panel-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.panel-section-heading .eyebrow { margin-bottom: 7px; }
.panel-section-heading h2 { margin: 0; font-size: 1.8rem; }
.panel-section-heading > a { color: var(--teal-600); font-size: .74rem; font-weight: 850; }
.panel-section-heading > small { color: var(--muted); }
.panel-empty { padding: 30px; color: var(--muted); background: var(--canvas); border: 1px dashed #bdced7; border-radius: 14px; text-align: center; }
.panel-empty h3 { margin-bottom: 8px; }
.panel-empty p { margin-bottom: 18px; }
.notice-grid { display: grid; gap: 10px; }
.notice-grid article { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px; background: #f2faf9; border: 1px solid #d6edeb; border-radius: 13px; }
.notice-grid article > span { display: grid; place-items: center; width: 38px; height: 38px; color: white; background: var(--teal-500); border-radius: 12px; font-family: Georgia, serif; font-weight: 900; }
.notice-grid small { color: var(--muted); font-size: .62rem; }
.notice-grid h3 { margin: 2px 0 5px; font-size: 1rem; }
.notice-grid p { margin: 0; color: var(--muted); font-size: .8rem; }
.student-course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.student-course-card { display: flex; flex-direction: column; padding: 23px; background: var(--canvas); border: 1px solid var(--line); border-radius: 16px; }
.student-course-card.expired { opacity: .78; }
.student-course-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .64rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.student-course-head b { padding: 5px 9px; color: var(--green); background: #e4f5ed; border-radius: 99px; }
.student-course-card.expired .student-course-head b { color: var(--red); background: #fae8ea; }
.student-course-card h3 { margin: 20px 0; font-size: 1.25rem; }
.course-progress > div { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.course-progress progress, .performance-row progress { width: 100%; height: 7px; appearance: none; border: 0; overflow: hidden; background: #dce7eb; border-radius: 99px; }
.course-progress progress::-webkit-progress-bar, .performance-row progress::-webkit-progress-bar { background: #dce7eb; }
.course-progress progress::-webkit-progress-value, .performance-row progress::-webkit-progress-value { background: linear-gradient(90deg, var(--teal-500), #5bd2bd); border-radius: 99px; }
.course-progress progress::-moz-progress-bar, .performance-row progress::-moz-progress-bar { background: var(--teal-500); }
.course-progress small { display: block; margin-top: 5px; color: var(--muted); font-size: .61rem; }
.student-course-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.student-course-card dl > div { padding: 11px; background: white; border-radius: 10px; }
.student-course-card dt { color: var(--muted); font-size: .57rem; text-transform: uppercase; }
.student-course-card dd { margin: 2px 0 0; color: var(--navy-900); font-size: .76rem; font-weight: 800; }
.course-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.course-card-actions .button { min-height: 41px; padding-inline: 14px; font-size: .7rem; }
.auto-renew { display: inline-flex; align-items: center; gap: 7px; padding: 0; color: var(--muted); background: transparent; border: 0; font-size: .66rem; font-weight: 750; cursor: pointer; }
.auto-renew span { position: relative; width: 34px; height: 20px; background: #cbd8de; border-radius: 99px; transition: background .2s ease; }
.auto-renew span::after { content: ""; position: absolute; width: 14px; height: 14px; top: 3px; left: 3px; background: white; border-radius: 50%; transition: transform .2s ease; }
.auto-renew.active { color: var(--green); }
.auto-renew.active span { background: var(--teal-500); }
.auto-renew.active span::after { transform: translateX(14px); }
.renewal-note { margin: 15px 0 0; color: var(--muted); font-size: .65rem; }
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.score-grid article { padding: 18px; background: var(--canvas); border: 1px solid var(--line); border-radius: 13px; }
.score-grid span { display: block; color: var(--muted); font-size: .65rem; }
.score-grid strong { display: block; margin-top: 7px; color: var(--navy-950); font-size: 1.8rem; line-height: 1; }
.score-grid .positive strong { color: var(--green); }
.score-grid .negative strong { color: var(--red); }
.performance-layout { display: grid; grid-template-columns: 1fr 260px; gap: 22px; align-items: start; }
.performance-list { padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
.performance-list h3 { margin-bottom: 18px; font-size: 1.05rem; }
.performance-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(130px, 1fr) 45px; align-items: center; gap: 15px; padding: 12px 0; border-top: 1px solid var(--line); }
.performance-row strong, .performance-row small { display: block; }
.performance-row strong { font-size: .76rem; }
.performance-row small { color: var(--muted); font-size: .59rem; }
.performance-row > b { color: var(--teal-600); font-size: .76rem; text-align: right; }
.performance-highlights { display: grid; gap: 10px; }
.performance-highlights article { padding: 20px; border-radius: 14px; }
.performance-highlights span, .performance-highlights strong, .performance-highlights b { display: block; }
.performance-highlights span { font-size: .61rem; text-transform: uppercase; letter-spacing: .06em; }
.performance-highlights strong { margin: 7px 0 16px; font-size: .9rem; }
.performance-highlights b { font-size: 2rem; line-height: 1; }
.performance-highlights .best { color: #145f48; background: #e5f6ef; }
.performance-highlights .best strong { color: #124f3e; }
.performance-highlights .focus { color: #8d4046; background: #fff0f1; }
.performance-highlights .focus strong { color: #7d353b; }
.reset-score { margin-top: 20px; padding: 16px 18px; background: #fff8f8; border: 1px solid #efd4d6; border-radius: 12px; }
.reset-score summary { color: var(--red); font-size: .74rem; font-weight: 850; cursor: pointer; }
.reset-score p { margin: 13px 0; color: var(--muted); font-size: .7rem; }
.reset-score form { display: flex; align-items: end; gap: 10px; }
.reset-score label { display: grid; gap: 5px; color: var(--muted); font-size: .66rem; }
.reset-score input { min-height: 40px; padding: 8px 11px; background: white; border: 1px solid #ddb9bd; border-radius: 9px; }
.reset-score button { min-height: 40px; padding: 0 15px; color: white; background: var(--red); border: 0; border-radius: 9px; font-size: .7rem; font-weight: 850; cursor: pointer; }
.profile-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.profile-form label { display: grid; gap: 6px; color: var(--navy-900); font-size: .7rem; font-weight: 800; }
.profile-form .field-wide, .profile-actions { grid-column: 1 / -1; }
.profile-form input { width: 100%; min-height: 45px; padding: 10px 12px; background: #fbfdfd; border: 1px solid #cbd9e0; border-radius: 9px; outline: 0; }
.profile-form input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(18,161,163,.1); }
.profile-form input[readonly] { color: var(--muted); background: #eef3f5; cursor: not-allowed; }
.profile-form label > small, .password-form label > small { color: var(--muted); font-size: .61rem; font-weight: 550; }

/* Perfil do aluno */
.profile-page { min-height: 760px; padding-bottom: 90px; }
.profile-hero { padding: 52px 0 60px; color: #b7cbd7; background: radial-gradient(circle at 78% 25%, rgba(18,161,163,.23), transparent 26%), linear-gradient(120deg, var(--navy-950), var(--navy-800)); }
.profile-hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.profile-hero h1 { margin: 0 0 10px; color: white; font-size: clamp(2.7rem, 5vw, 4.5rem); }
.profile-hero p { max-width: 680px; margin: 0; }
.profile-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 86px; height: 86px; color: var(--navy-950); background: #7be0d9; border: 6px solid rgba(255,255,255,.12); border-radius: 28px; font-size: 2.1rem; font-weight: 900; }
.profile-shortcuts { position: sticky; z-index: 35; top: 74px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.profile-shortcuts .container { display: flex; gap: 5px; overflow-x: auto; padding-block: 9px; scrollbar-width: none; }
.profile-shortcuts a { flex: 0 0 auto; padding: 8px 12px; color: var(--muted); border-radius: 9px; font-size: .73rem; font-weight: 800; }
.profile-shortcuts a:hover { color: var(--teal-600); background: var(--teal-100); }
.profile-layout { display: grid; gap: 18px; padding-top: 28px; }
.profile-section { scroll-margin-top: 140px; padding: 30px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 34px rgba(7,27,42,.04); }
.profile-section > header { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 25px; }
.profile-section > header .eyebrow { margin-bottom: 7px; }
.profile-section > header h2 { margin: 0; font-size: 1.8rem; }
.profile-section > header > small { color: var(--muted); }
.security-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.password-form { display: grid; gap: 14px; }
.password-form label { display: grid; gap: 6px; color: var(--navy-900); font-size: .7rem; font-weight: 800; }
.password-form input { width: 100%; min-height: 45px; padding: 10px 12px; background: #fbfdfd; border: 1px solid #cbd9e0; border-radius: 9px; outline: 0; }
.password-form input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(18,161,163,.1); }
.password-form .button { justify-self: start; margin-top: 4px; }
.security-layout aside { padding: 22px; color: #b8ccd7; background: var(--navy-900); border-radius: 15px; }
.security-layout aside strong { color: white; }
.security-layout aside p, .security-layout aside li { font-size: .7rem; }
.security-layout aside ul { margin-bottom: 0; padding-left: 18px; }
.identity-profile-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr); gap: 16px; }
.identity-card.compact, .identity-guide.compact { padding: 24px; border-radius: 16px; box-shadow: none; }
.identity-card.compact h3, .identity-guide.compact h3 { margin: 12px 0 8px; font-size: 1.35rem; }
.identity-card.compact > p { color: var(--muted); }
.identity-guide.compact > ul { margin-block: 15px; }

/* Pacotes adquiridos */
.panel-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: .72rem; }
.purchased-package-list { display: grid; gap: 11px; }
.purchased-package { background: var(--canvas); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.purchased-package summary { display: grid; grid-template-columns: 48px minmax(220px, 1fr) minmax(120px, 190px) auto 24px; align-items: center; gap: 16px; min-height: 98px; padding: 16px 19px; cursor: pointer; list-style: none; }
.purchased-package summary::-webkit-details-marker { display: none; }
.purchased-package[open] summary { background: #f0faf8; border-bottom: 1px solid var(--line); }
.package-mark { display: grid; place-items: center; width: 45px; height: 45px; color: white; background: linear-gradient(140deg, var(--navy-900), var(--teal-500)); border-radius: 13px 13px 13px 5px; font-weight: 900; }
.package-title { min-width: 0; }
.package-title small, .package-title strong, .package-title span { display: block; }
.package-title small { color: var(--teal-600); font-size: .56rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.package-title strong { margin: 2px 0; overflow: hidden; color: var(--navy-950); font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.package-title span { color: var(--muted); font-size: .62rem; }
.package-progress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; }
.package-progress b { color: var(--teal-600); font-size: .72rem; }
.package-progress progress, .package-course-row > progress { width: 100%; height: 6px; appearance: none; overflow: hidden; border: 0; background: #dce7eb; border-radius: 99px; }
.package-progress progress::-webkit-progress-bar, .package-course-row > progress::-webkit-progress-bar { background: #dce7eb; }
.package-progress progress::-webkit-progress-value, .package-course-row > progress::-webkit-progress-value { background: var(--teal-500); }
.package-progress progress::-moz-progress-bar, .package-course-row > progress::-moz-progress-bar { background: var(--teal-500); }
.package-status { padding: 5px 9px; color: var(--green); background: #e4f5ed; border-radius: 99px; font-size: .6rem; font-weight: 850; }
.purchased-package.expired .package-status { color: var(--red); background: #fae8ea; }
.package-chevron { color: var(--teal-600); font-size: 1.2rem; transition: transform .2s ease; }
.purchased-package[open] .package-chevron { transform: rotate(180deg); }
.package-details { padding: 18px; background: white; }
.package-purchase-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 14px; }
.package-purchase-meta > div { padding: 10px 12px; background: var(--canvas); border-radius: 9px; }
.package-purchase-meta span, .package-purchase-meta strong { display: block; }
.package-purchase-meta span { color: var(--muted); font-size: .56rem; text-transform: uppercase; }
.package-purchase-meta strong { font-size: .72rem; }
.package-course-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.package-course-row { display: grid; grid-template-columns: 35px minmax(180px, 1fr) minmax(100px, 170px) auto auto; align-items: center; gap: 12px; min-height: 78px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.package-course-row:last-child { border-bottom: 0; }
.course-kind { display: grid; place-items: center; width: 32px; height: 32px; color: var(--teal-600); background: var(--teal-100); border-radius: 9px; font-size: .67rem; font-weight: 900; }
.course-compact-title small, .course-compact-title strong, .course-compact-title span { display: block; }
.course-compact-title small { color: var(--muted); font-size: .55rem; }
.course-compact-title strong { font-size: .74rem; }
.course-compact-title span { color: var(--muted); font-size: .56rem; }
.package-course-row .button { min-height: 37px; padding-inline: 12px; font-size: .63rem; }
.package-course-row form { display: flex; }
.package-plan-link { display: inline-block; margin-top: 13px; color: var(--teal-600); font-size: .68rem; font-weight: 850; }
.profile-actions { padding-top: 5px; }

/* Videoaulas */
.video-hero { padding: 62px 0 72px; color: #b9ccd6; background: radial-gradient(circle at 78% 25%, rgba(18,161,163,.22), transparent 27%), linear-gradient(120deg, var(--navy-950), var(--navy-800)); }
.video-hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 55px; }
.video-hero .eyebrow, .course-hero .eyebrow { color: #6ed7d1; }
.video-hero h1 { margin: 0 0 13px; color: white; font-size: clamp(3rem, 6vw, 5rem); }
.video-hero p { max-width: 650px; margin: 0; }
.video-summary { display: grid; grid-template-columns: repeat(3, 105px); gap: 8px; }
.video-summary article { padding: 15px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); border-radius: 13px; }
.video-summary strong, .video-summary span { display: block; }
.video-summary strong { color: white; font-size: 1.35rem; line-height: 1; }
.video-summary span { margin-top: 7px; color: #a8becb; font-size: .62rem; }
.video-library, .course-curriculum { min-height: 600px; padding: 65px 0 95px; }
.video-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 28px; }
.video-section-heading .eyebrow { margin-bottom: 7px; }
.video-section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.video-section-heading > a { color: var(--teal-600); font-size: .74rem; font-weight: 850; }
.video-section-heading > small { color: var(--muted); }
.video-course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.video-course-card { display: flex; min-height: 430px; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 19px; overflow: hidden; box-shadow: 0 12px 35px rgba(7,27,42,.05); transition: transform .2s ease, box-shadow .2s ease; }
.video-course-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(7,27,42,.1); }
.video-course-cover { position: relative; min-height: 145px; display: flex; align-items: end; justify-content: space-between; padding: 20px; color: white; background: radial-gradient(circle at 80% 20%, rgba(110,215,209,.3), transparent 28%), linear-gradient(145deg, var(--navy-950), var(--navy-800)); overflow: hidden; }
.video-course-cover::after { content: ""; position: absolute; width: 150px; height: 150px; right: -75px; top: -85px; border: 30px solid rgba(255,255,255,.05); border-radius: 50%; }
.video-course-cover > span { display: grid; place-items: center; width: 47px; height: 47px; color: var(--navy-950); background: white; border-radius: 50%; font-size: .9rem; box-shadow: 0 9px 25px rgba(0,0,0,.22); }
.video-course-cover small { position: relative; z-index: 1; padding: 5px 8px; background: rgba(0,0,0,.18); border-radius: 99px; font-size: .58rem; font-weight: 850; }
.video-course-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.video-course-body h3 { margin-bottom: 11px; font-size: 1.25rem; }
.video-course-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .63rem; }
.video-course-meta span { padding: 5px 8px; background: var(--canvas); border-radius: 7px; }
.video-course-body .course-progress { margin: auto 0 20px; padding-top: 25px; }
.video-empty { padding: 70px 25px; text-align: center; background: white; border: 1px dashed #bdced7; border-radius: 18px; }
.video-empty > span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; color: white; background: var(--teal-500); border-radius: 50%; }
.video-empty p { color: var(--muted); }

.course-hero { padding: 48px 0 58px; color: #b9ccd6; background: linear-gradient(125deg, var(--navy-950), var(--navy-800)); }
.course-hero-grid { display: grid; grid-template-columns: 1fr 330px; align-items: end; gap: 65px; }
.video-back { display: block; margin-bottom: 28px; color: #7bdad5; font-size: .7rem; font-weight: 800; }
.course-hero h1 { max-width: 780px; margin: 0 0 12px; color: white; font-size: clamp(2.25rem, 5vw, 4rem); }
.course-hero p { margin: 0; }
.course-progress-card { padding: 22px; color: var(--muted); background: white; border-radius: 16px; box-shadow: var(--shadow); }
.course-progress-card > div { display: flex; align-items: end; justify-content: space-between; }
.course-progress-card > div span { font-size: .68rem; }
.course-progress-card > div strong { color: var(--navy-950); font-size: 2rem; line-height: 1; }
.course-progress-card progress { width: 100%; height: 8px; margin: 14px 0 2px; appearance: none; overflow: hidden; border: 0; background: var(--line); border-radius: 99px; }
.course-progress-card progress::-webkit-progress-bar { background: var(--line); }
.course-progress-card progress::-webkit-progress-value { background: var(--teal-500); }
.course-progress-card progress::-moz-progress-bar { background: var(--teal-500); }
.course-progress-card small { display: block; margin-bottom: 16px; }
.curriculum-list { display: grid; gap: 12px; }
.curriculum-list details { background: white; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.curriculum-list summary { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 21px; cursor: pointer; list-style: none; }
.curriculum-list summary::-webkit-details-marker { display: none; }
.curriculum-list summary > span small, .curriculum-list summary > span strong { display: block; }
.curriculum-list summary small { color: var(--teal-600); font-size: .58rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.curriculum-list summary strong { margin-top: 3px; color: var(--navy-950); }
.curriculum-list summary > b { color: var(--muted); font-size: .65rem; }
.curriculum-list summary > b::after { content: "⌄"; margin-left: 12px; color: var(--teal-600); font-size: 1rem; }
.curriculum-list details[open] summary { background: #f3faf9; border-bottom: 1px solid var(--line); }
.curriculum-lessons { padding: 5px 20px 10px; }
.curriculum-lessons a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 13px; min-height: 65px; padding: 10px 3px; border-bottom: 1px solid var(--line); }
.curriculum-lessons a:last-child { border-bottom: 0; }
.lesson-status { display: grid; place-items: center; width: 31px; height: 31px; color: var(--teal-600); background: var(--teal-100); border-radius: 50%; font-size: .68rem; font-weight: 900; }
.curriculum-lessons a.completed .lesson-status { color: white; background: var(--green); }
.curriculum-lessons small, .curriculum-lessons strong { display: block; }
.curriculum-lessons small { color: var(--muted); font-size: .56rem; }
.curriculum-lessons strong { color: var(--navy-900); font-size: .82rem; }
.curriculum-lessons a > b { color: var(--teal-600); font-size: .65rem; }

.watch-page { min-height: 760px; padding: 34px 0 75px; background: #eaf0f2; }
.watch-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 22px; }
.watch-heading a { display: inline-block; margin-bottom: 13px; color: var(--teal-600); font-size: .68rem; font-weight: 850; }
.watch-heading span { display: block; color: var(--muted); font-size: .65rem; }
.watch-heading h1 { margin: 5px 0 0; font-size: clamp(1.55rem, 3vw, 2.4rem); }
.watch-progress { min-width: 120px; text-align: right; }
.watch-progress strong { display: block; color: var(--teal-600); font-size: 1.8rem; line-height: 1; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.watch-content { min-width: 0; }
.video-player { position: relative; width: 100%; padding-top: 56.25%; background: #02080d; border-radius: 17px; overflow: hidden; box-shadow: 0 18px 50px rgba(7,27,42,.16); }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-unavailable { min-height: 430px; display: grid; place-content: center; padding: 30px; color: #a9bdc9; background: var(--navy-950); border-radius: 17px; text-align: center; }
.video-unavailable > span { display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 18px; color: white; background: var(--teal-600); border-radius: 17px; font-size: .68rem; font-weight: 900; }
.video-unavailable h2 { margin-bottom: 8px; color: white; font-size: 1.5rem; }
.video-unavailable p { max-width: 500px; margin: 0; }
.watch-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 13px; padding: 13px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.watch-nav { display: flex; gap: 8px; }
.watch-nav a { padding: 8px 10px; color: var(--teal-600); background: var(--teal-100); border-radius: 8px; font-size: .66rem; font-weight: 850; }
.lesson-complete { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 15px; color: white; background: var(--teal-600); border: 0; border-radius: 9px; font-size: .68rem; font-weight: 850; cursor: pointer; }
.lesson-complete > span { font-size: 1rem; }
.lesson-complete.completed { color: var(--green); background: #e5f6ef; }
.lesson-description { margin-top: 14px; padding: 25px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.lesson-description p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.75; }
.watch-playlist { position: sticky; top: 92px; max-height: calc(100vh - 115px); background: white; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.watch-playlist > header { padding: 17px; border-bottom: 1px solid var(--line); }
.watch-playlist > header > div { display: flex; justify-content: space-between; gap: 10px; font-size: .65rem; }
.watch-playlist > header span { color: var(--muted); }
.watch-playlist > header progress { width: 100%; height: 5px; margin-top: 10px; appearance: none; overflow: hidden; border: 0; background: var(--line); border-radius: 99px; }
.watch-playlist > header progress::-webkit-progress-bar { background: var(--line); }
.watch-playlist > header progress::-webkit-progress-value { background: var(--teal-500); }
.watch-playlist > header progress::-moz-progress-bar { background: var(--teal-500); }
.playlist-scroll { max-height: calc(100vh - 195px); overflow-y: auto; padding: 7px; }
.playlist-scroll section { padding: 9px 4px; }
.playlist-scroll h2 { margin: 0 7px 7px; color: var(--muted); font-size: .63rem; letter-spacing: 0; }
.playlist-scroll a { display: grid; grid-template-columns: 25px 1fr; align-items: start; gap: 7px; padding: 9px 8px; border-radius: 8px; }
.playlist-scroll a:hover, .playlist-scroll a.current { background: #eaf7f6; }
.playlist-scroll a > span { display: grid; place-items: center; width: 22px; height: 22px; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; font-size: .56rem; }
.playlist-scroll a.completed > span { color: white; background: var(--green); border-color: var(--green); }
.playlist-scroll a.current > span { color: white; background: var(--teal-600); border-color: var(--teal-600); }
.playlist-scroll a strong { padding-top: 2px; color: var(--ink); font-size: .67rem; line-height: 1.35; letter-spacing: 0; }

/* Audioaulas */
.audio-hero { padding: 62px 0 72px; color: #c1d0da; background: radial-gradient(circle at 78% 30%, rgba(255,123,84,.17), transparent 26%), linear-gradient(120deg, #091924, #15394b); }
.audio-hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 55px; }
.audio-hero .eyebrow, .audio-inner-hero .eyebrow, .playlist-hero .eyebrow { color: #75ddd8; }
.audio-hero h1 { margin: 0 0 13px; color: white; font-size: clamp(3rem, 6vw, 5rem); }
.audio-hero p { max-width: 650px; margin: 0; }
.audio-summary { display: grid; grid-template-columns: repeat(3, 105px); gap: 8px; }
.audio-summary article { padding: 15px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 13px; }
.audio-summary strong, .audio-summary span { display: block; }
.audio-summary strong { color: white; font-size: 1.35rem; line-height: 1; }
.audio-summary span { margin-top: 7px; color: #a8bdc8; font-size: .62rem; }
.audio-library, .audio-category-page, .playlist-page { min-height: 600px; padding: 62px 0 95px; }
.audio-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.audio-section-heading .eyebrow { margin-bottom: 6px; }
.audio-section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.audio-section-heading > small { color: var(--muted); }
.audio-category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.audio-category-card { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; background: white; border: 1px solid var(--line); border-radius: 19px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.audio-category-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(7,27,42,.1); }
.audio-cover { position: relative; display: flex; align-items: end; justify-content: space-between; padding: 20px 17px; color: white; background: linear-gradient(160deg, var(--navy-950), var(--teal-600)); overflow: hidden; }
.audio-cover::before, .audio-cover::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.audio-cover::before { width: 190px; height: 190px; top: 18px; left: -83px; }
.audio-cover::after { width: 105px; height: 105px; top: 61px; left: -40px; }
.audio-cover span { z-index: 1; color: #8ce2dc; font-size: .65rem; font-weight: 900; }
.audio-cover b { z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; color: var(--navy-950); background: white; border-radius: 50%; font-size: 1.15rem; }
.audio-category-body { display: flex; flex-direction: column; padding: 25px; }
.audio-category-body > small { color: var(--teal-600); font-size: .59rem; font-weight: 850; text-transform: uppercase; }
.audio-category-body h3 { margin: 9px 0; font-size: 1.4rem; }
.audio-category-body > p { color: var(--muted); font-size: .76rem; }
.audio-card-meta { display: flex; gap: 7px; color: var(--muted); font-size: .61rem; }
.audio-card-meta span { padding: 5px 8px; background: var(--canvas); border-radius: 7px; }
.audio-progress { margin-top: auto; padding-top: 18px; }
.audio-progress > div { display: flex; justify-content: space-between; color: var(--muted); font-size: .62rem; }
.audio-progress progress { width: 100%; height: 6px; appearance: none; overflow: hidden; border: 0; background: var(--line); border-radius: 99px; }
.audio-progress progress::-webkit-progress-bar { background: var(--line); }
.audio-progress progress::-webkit-progress-value { background: var(--teal-500); }
.audio-progress progress::-moz-progress-bar { background: var(--teal-500); }
.audio-card-link { margin-top: 15px; color: var(--teal-600); font-size: .68rem; }
.audio-empty { padding: 70px 25px; text-align: center; background: white; border: 1px dashed #bdced7; border-radius: 18px; }
.audio-empty > span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; color: white; background: var(--teal-500); border-radius: 50%; font-size: 1.2rem; }
.audio-empty p { color: var(--muted); }

.audio-inner-hero { padding: 48px 0 57px; color: #b8ccd6; background: linear-gradient(125deg, var(--navy-950), #174154); }
.audio-inner-grid { display: grid; grid-template-columns: 1fr 250px; align-items: end; gap: 60px; }
.audio-inner-grid > div:first-child > a, .playlist-hero-grid > div > a { display: block; margin-bottom: 24px; color: #79ddd8; font-size: .68rem; font-weight: 850; }
.audio-inner-hero h1 { margin: 0 0 11px; color: white; font-size: clamp(2.4rem, 5vw, 4rem); }
.audio-inner-hero p { max-width: 680px; margin: 0; }
.audio-collection-progress { padding: 20px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; }
.audio-collection-progress strong, .audio-collection-progress span, .audio-collection-progress small { display: block; }
.audio-collection-progress strong { color: white; font-size: 2.3rem; line-height: 1; }
.audio-collection-progress span, .audio-collection-progress small { color: #abc1cd; font-size: .65rem; }
.audio-collection-progress progress { width: 100%; height: 6px; margin: 14px 0 4px; appearance: none; overflow: hidden; border: 0; background: rgba(255,255,255,.13); border-radius: 99px; }
.audio-collection-progress progress::-webkit-progress-bar { background: rgba(255,255,255,.13); }
.audio-collection-progress progress::-webkit-progress-value { background: #70dcd5; }
.audio-collection-progress progress::-moz-progress-bar { background: #70dcd5; }
.audio-subcategory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.audio-subcategory-grid > a { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 15px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.audio-subcategory-grid > a > span { display: grid; place-items: center; width: 43px; height: 43px; color: white; background: var(--teal-600); border-radius: 13px; }
.audio-subcategory-grid small { color: var(--muted); font-size: .59rem; }
.audio-subcategory-grid h3 { margin: 3px 0; font-size: 1rem; }
.audio-subcategory-grid p { margin: 0; color: var(--muted); font-size: .68rem; }
.audio-subcategory-grid > a > b { color: var(--teal-600); }
.audio-playlists-section { margin-top: 55px; }
.audio-playlist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.audio-playlist-grid article { display: flex; min-height: 330px; flex-direction: column; padding: 23px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.playlist-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 20px; color: white; background: var(--navy-900); border-radius: 50%; font-size: .7rem; }
.audio-playlist-grid article > small { color: var(--teal-600); font-size: .59rem; font-weight: 850; }
.audio-playlist-grid h3 { margin: 6px 0 10px; font-size: 1.15rem; }
.audio-playlist-grid article > p { color: var(--muted); font-size: .72rem; }
.audio-playlist-grid .button { margin-top: 16px; }

.playlist-hero { padding: 45px 0 55px; color: #b9ccd6; background: linear-gradient(125deg, #081923, #173f52); }
.playlist-hero-grid { display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: 45px; }
.playlist-art { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle, var(--teal-600) 0 24%, transparent 25%), repeating-radial-gradient(circle, rgba(255,255,255,.11) 0 2px, transparent 3px 13px), var(--navy-950); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; box-shadow: 0 25px 55px rgba(0,0,0,.25); }
.playlist-art span { display: grid; place-items: center; width: 58px; height: 58px; color: var(--navy-950); background: white; border-radius: 50%; font-size: 1.4rem; }
.playlist-hero h1 { margin: 0 0 12px; color: white; font-size: clamp(2.2rem, 5vw, 4rem); }
.playlist-hero p { max-width: 700px; }
.playlist-meta { display: flex; gap: 8px; margin: 20px 0; font-size: .64rem; }
.playlist-meta span { padding: 6px 9px; background: rgba(255,255,255,.07); border-radius: 7px; }
.track-list-heading { display: grid; grid-template-columns: 1fr 130px; padding: 0 60px 10px 66px; color: var(--muted); font-size: .59rem; text-transform: uppercase; }
.audio-track-list { background: white; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.audio-track-list a { display: grid; grid-template-columns: 38px 1fr 130px 30px; align-items: center; gap: 14px; min-height: 72px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.audio-track-list a:last-child { border-bottom: 0; }
.audio-track-list a:hover { background: #f2faf9; }
.track-number { display: grid; place-items: center; width: 33px; height: 33px; color: var(--muted); background: var(--canvas); border-radius: 50%; font-size: .63rem; font-weight: 850; }
.audio-track-list a.completed .track-number { color: white; background: var(--green); }
.audio-track-list strong, .audio-track-list small { display: block; }
.audio-track-list strong { font-size: .79rem; }
.audio-track-list small { margin-top: 3px; color: var(--muted); font-size: .6rem; }
.track-progress { color: var(--muted); font-size: .61rem; }
.audio-track-list a.completed .track-progress { color: var(--green); }
.audio-track-list a > b { color: var(--teal-600); }

.audio-listen-page { min-height: 780px; padding: 30px 0 75px; background: #eaf0f2; }
.audio-listen-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.audio-listen-heading a { display: block; margin-bottom: 6px; color: var(--teal-600); font-size: .68rem; font-weight: 850; }
.audio-listen-heading span { color: var(--muted); font-size: .64rem; }
.audio-listen-heading > div:last-child { text-align: right; }
.audio-listen-heading > div:last-child strong, .audio-listen-heading > div:last-child small { display: block; }
.audio-listen-heading > div:last-child strong { color: var(--teal-600); font-size: 1.7rem; line-height: 1; }
.audio-listen-heading > div:last-child small { color: var(--muted); }
.audio-listen-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.audio-player-card { min-width: 0; }
.audio-artwork { min-height: 350px; display: grid; place-content: center; padding: 35px; color: #adc2cd; background: radial-gradient(circle at center, rgba(18,161,163,.12), transparent 38%), linear-gradient(145deg, var(--navy-950), #153b4f); border-radius: 18px; text-align: center; }
.audio-artwork > div { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin: 0 auto 24px; background: repeating-radial-gradient(circle, #091c28 0 8px, #16394a 9px 11px); border: 1px solid rgba(255,255,255,.12); border-radius: 50%; animation: audio-spin 12s linear infinite paused; }
.audio-artwork > div::after { content: ""; position: absolute; width: 28px; height: 28px; background: #d8ecec; border-radius: 50%; }
.audio-artwork > div > span { z-index: 1; display: none; }
.audio-artwork > small { color: #70dcd5; font-size: .58rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.audio-artwork h1 { max-width: 680px; margin: 9px auto; color: white; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.audio-artwork p { margin: 0; }
@keyframes audio-spin { to { transform: rotate(360deg); } }
.native-audio-player { padding: 18px; background: white; border: 1px solid var(--line); border-radius: 0 0 15px 15px; }
.native-audio-player audio { width: 100%; }
.audio-player-card.playing .audio-artwork > div { animation-play-state: running; }
.audio-tools { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.audio-tools button, .audio-tools select { min-height: 38px; padding: 6px 11px; color: var(--navy-900); background: var(--canvas); border: 1px solid var(--line); border-radius: 9px; font-size: .68rem; font-weight: 800; cursor: pointer; }
.audio-tools label { color: var(--muted); font-size: .59rem; }
.audio-tools select { margin-left: 5px; }
.native-audio-player > p { margin: 9px 0 0; color: var(--muted); font-size: .59rem; text-align: center; }
.audio-unavailable { min-height: 170px; display: grid; place-content: center; padding: 25px; color: var(--muted); background: white; text-align: center; }
.audio-unavailable > span { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 10px; color: white; background: var(--red); border-radius: 12px; }
.audio-unavailable h2 { margin-bottom: 7px; font-size: 1.2rem; }
.audio-unavailable p { margin: 0; }
.audio-listen-actions { display: flex; justify-content: space-between; margin-top: 12px; }
.audio-listen-actions a { padding: 9px 12px; color: var(--teal-600); background: white; border: 1px solid var(--line); border-radius: 9px; font-size: .66rem; font-weight: 850; }
.audio-description { margin-top: 12px; padding: 23px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.audio-description p { margin: 0; color: var(--muted); font-size: .8rem; }
.audio-queue { position: sticky; top: 92px; max-height: calc(100vh - 115px); background: white; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.audio-queue > header { padding: 16px; border-bottom: 1px solid var(--line); }
.audio-queue > header > div { display: flex; justify-content: space-between; color: var(--muted); font-size: .63rem; }
.audio-queue progress { width: 100%; height: 5px; appearance: none; overflow: hidden; border: 0; background: var(--line); border-radius: 99px; }
.audio-queue progress::-webkit-progress-bar { background: var(--line); }
.audio-queue progress::-webkit-progress-value { background: var(--teal-500); }
.audio-queue progress::-moz-progress-bar { background: var(--teal-500); }
.audio-queue > div { max-height: calc(100vh - 190px); overflow-y: auto; padding: 7px; }
.audio-queue a { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 7px; padding: 9px 8px; border-radius: 8px; }
.audio-queue a:hover, .audio-queue a.current { background: #eaf7f6; }
.audio-queue a > span { display: grid; place-items: center; width: 24px; height: 24px; color: var(--muted); background: var(--canvas); border-radius: 50%; font-size: .55rem; }
.audio-queue a.completed > span { color: white; background: var(--green); }
.audio-queue a.current > span { color: white; background: var(--teal-600); }
.audio-queue a strong { padding-top: 3px; font-size: .66rem; line-height: 1.35; letter-spacing: 0; }

.site-footer { padding: 45px 0; color: #98afbd; background: #051521; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.footer-inner p { margin: 0; font-size: .8rem; }
.footer-inner strong { color: white; }

/* Central administrativa */
.admin-body { min-height: 100vh; background: #edf3f5; }
.admin-sidebar { position: fixed; z-index: 80; inset: 0 auto 0 0; width: 248px; display: flex; flex-direction: column; padding: 22px 15px; color: #a9bdc9; background: linear-gradient(180deg, #071b2a, #0b2638); overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: 11px; margin: 0 7px 28px; }
.admin-brand > span:last-child { display: grid; line-height: 1.15; }
.admin-brand strong { color: white; font-size: .93rem; }
.admin-brand small { margin-top: 4px; color: #7995a6; font-size: .59rem; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar nav a { display: grid; grid-template-columns: 29px 1fr; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: 10px; font-size: .73rem; font-weight: 750; }
.admin-sidebar nav a > span { display: grid; place-items: center; width: 28px; height: 28px; color: #6fd8d2; background: rgba(18,161,163,.11); border-radius: 8px; font-size: .61rem; font-weight: 900; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: white; background: rgba(255,255,255,.08); }
.admin-sidebar nav a.active > span { color: var(--navy-950); background: #6fd8d2; }
.admin-sidebar-foot { display: grid; gap: 9px; margin-top: auto; padding: 22px 8px 0; }
.admin-sidebar-foot a, .admin-sidebar-foot button { color: #9db3c0; background: transparent; border: 0; font-size: .67rem; cursor: pointer; }
.admin-sidebar-foot button { padding: 0; }
.admin-shell { min-height: 100vh; margin-left: 248px; }
.admin-topbar { position: sticky; z-index: 45; top: 0; min-height: 68px; display: flex; align-items: center; gap: 14px; padding: 10px 28px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.admin-topbar > button { display: none; width: 41px; height: 41px; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.admin-topbar > div { display: grid; line-height: 1.2; }
.admin-topbar small { color: var(--muted); font-size: .56rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-topbar strong { color: var(--navy-950); font-size: .82rem; }
.admin-topbar > span { margin-left: auto; color: var(--muted); font-size: .7rem; }
.admin-flash { max-width: 1440px; margin: 10px auto 0; padding: 0 28px; }
.admin-content { width: min(100%, 1440px); margin: 0 auto; padding: 32px 28px 80px; }
.admin-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.admin-page-heading .eyebrow { margin-bottom: 5px; }
.admin-page-heading h1 { margin: 0 0 8px; font-size: clamp(2.1rem, 4vw, 3.25rem); }
.admin-page-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: .8rem; }
.admin-heading-actions { display: flex; gap: 8px; }
.admin-back { display: block; margin-bottom: 15px; color: var(--teal-600); font-size: .68rem; font-weight: 850; }
.admin-card { margin-bottom: 16px; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 10px 30px rgba(7,27,42,.035); }
.admin-card > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-card > header .eyebrow { margin-bottom: 5px; }
.admin-card > header h2 { margin: 0; font-size: 1.35rem; }
.admin-card > header > a { color: var(--teal-600); font-size: .68rem; font-weight: 850; }
.admin-card > header > small, .admin-card > header > span { color: var(--muted); font-size: .64rem; }
.admin-empty { padding: 34px 20px; color: var(--muted); background: var(--canvas); border: 1px dashed #bccdd5; border-radius: 12px; text-align: center; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; margin-bottom: 16px; }
.admin-metric-grid article { min-height: 130px; padding: 19px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.admin-metric-grid article.revenue { grid-column: span 2; color: #b8ccd6; background: linear-gradient(135deg,var(--navy-950),var(--navy-800)); border: 0; }
.admin-metric-grid span, .admin-metric-grid strong, .admin-metric-grid small { display: block; }
.admin-metric-grid span { color: var(--muted); font-size: .62rem; font-weight: 750; }
.admin-metric-grid strong { margin: 13px 0 6px; color: var(--navy-950); font-size: 2rem; line-height: 1; }
.admin-metric-grid small { color: var(--muted); font-size: .59rem; }
.admin-metric-grid .attention strong { color: var(--orange-500); }
.admin-metric-grid .revenue span, .admin-metric-grid .revenue small { color: #abc0cd; }
.admin-metric-grid .revenue strong { color: white; }
.admin-operations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-operations-grid > article { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 17px; }
.admin-operations-grid h2 { margin-bottom: 18px; font-size: 1.35rem; }
.admin-quick-links, .admin-queue-links { display: grid; gap: 8px; }
.admin-quick-links a { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; padding: 12px; background: var(--canvas); border-radius: 11px; }
.admin-quick-links b { display: grid; place-items: center; width: 36px; height: 36px; color: white; background: var(--teal-600); border-radius: 10px; font-size: .65rem; }
.admin-quick-links span { display: grid; }
.admin-quick-links strong { font-size: .72rem; }
.admin-quick-links small { color: var(--muted); font-size: .59rem; }
.admin-queue-links a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 12px 5px; border-bottom: 1px solid var(--line); }
.admin-queue-links a > strong { color: var(--teal-600); font-size: 1.2rem; }
.admin-queue-links a > span { font-size: .69rem; }
.admin-queue-links a > b { color: var(--muted); }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .68rem; }
.admin-table th { padding: 9px 11px; color: var(--muted); background: var(--canvas); font-size: .55rem; text-align: left; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.admin-table td { min-width: 90px; padding: 13px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { max-width: 310px; color: var(--muted); font-size: .56rem; }
.admin-table td em { display: inline-block; margin-top: 5px; padding: 2px 6px; color: #945834; background: #fff0e7; border-radius: 99px; font-size: .54rem; font-style: normal; }
.admin-status { display: inline-flex; width: max-content; padding: 4px 7px; color: #805f14; background: #fff4d9; border-radius: 99px; font-size: .54rem; font-weight: 850; text-transform: capitalize; white-space: nowrap; }
.admin-status.paid, .admin-status.completed, .admin-status.active { color: var(--green); background: #e5f6ee; }
.admin-status.failed, .admin-status.cancelled, .admin-status.rejected { color: var(--red); background: #fbeaec; }
.admin-status.archived, .admin-status.expired, .admin-status.cancelled { color: var(--muted); background: #e8eef1; }
.admin-row-actions { display: flex; align-items: center; gap: 6px; }
.admin-row-actions a, .admin-row-actions button, .table-action { padding: 5px 8px; color: var(--teal-600); background: var(--teal-100); border: 0; border-radius: 6px; font-size: .59rem; font-weight: 800; cursor: pointer; }
.admin-filter-card form { display: grid; grid-template-columns: minmax(220px,1fr) 190px auto; align-items: end; gap: 10px; }
.admin-filter-card label, .admin-form-grid label, .admin-form-stack label, .admin-block-field { display: grid; gap: 5px; color: var(--navy-900); font-size: .65rem; font-weight: 800; }
.admin-filter-card input, .admin-filter-card select, .admin-form-grid input, .admin-form-grid select, .admin-form-grid textarea, .admin-form-stack input, .admin-form-stack select, .admin-form-stack textarea, .admin-block-field input, .admin-block-field textarea { width: 100%; min-height: 43px; padding: 9px 11px; background: #fbfdfd; border: 1px solid #cbd9e0; border-radius: 8px; outline: 0; }
.admin-filter-card input:focus, .admin-form-grid input:focus, .admin-form-grid select:focus, .admin-form-grid textarea:focus, .admin-form-stack input:focus, .admin-form-stack textarea:focus, .admin-block-field textarea:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(18,161,163,.09); }
.admin-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.admin-form-grid .wide { grid-column: 1/-1; }
.admin-form-grid label > small, .admin-form-stack label > small { color: var(--muted); font-size: .56rem; font-weight: 550; }
.admin-form-stack { display: grid; gap: 12px; }
.admin-form-stack.compact { min-width: 340px; margin-top: 10px; padding: 13px; background: var(--canvas); border-radius: 10px; }
.admin-check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
.admin-check input { width: 17px !important; min-height: 17px !important; }
.admin-step { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 9px; color: white; background: var(--teal-600); border-radius: 8px; font-size: .65rem; font-weight: 900; vertical-align: middle; }
.admin-card > header > div:has(.admin-step) { display: flex; align-items: center; }
.admin-publish-toggle { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .65rem; cursor: pointer; }
.admin-publish-toggle input { position: absolute; opacity: 0; }
.admin-publish-toggle > span { position: relative; width: 36px; height: 21px; background: #cbd8de; border-radius: 99px; }
.admin-publish-toggle > span::after { content:""; position:absolute; width:15px; height:15px; top:3px; left:3px; background:white; border-radius:50%; transition:.2s; }
.admin-publish-toggle input:checked + span { background: var(--teal-500); }
.admin-publish-toggle input:checked + span::after { transform: translateX(15px); }
.admin-block-field { margin-bottom: 12px; }
.admin-block-field textarea { resize: vertical; }
.rich-editor-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px; background: #edf3f5; border: 1px solid #cbd9e0; border-bottom: 0; border-radius: 9px 9px 0 0; }
.rich-editor-toolbar button { min-width: 34px; padding: 6px 9px; color: var(--navy-900); background: white; border: 1px solid #cbd9e0; border-radius: 6px; font-size: .62rem; cursor: pointer; }
.rich-editor { min-height: 190px; padding: 14px; overflow: auto; color: var(--navy-900); background: #fbfdfd; border: 1px solid #cbd9e0; border-radius: 0 0 9px 9px; outline: 0; font-size: .78rem; font-weight: 500; line-height: 1.65; }
.rich-editor:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(18,161,163,.09); }
.rich-editor.compact { min-height: 72px; border-radius: 8px; }
.rich-alternatives label { grid-template-columns: auto 34px minmax(0,1fr); align-items: start; }
.question-feedback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.question-feedback-grid > div { padding: 15px; background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; }
.question-feedback-grid h3 { margin: 0 0 10px; font-size: .82rem; }
.question-feedback-grid article { margin-top: 8px; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.question-feedback-grid article small { color: var(--muted); font-size: .56rem; }
.question-feedback-grid article p { margin: 7px 0; color: var(--navy-900); font-size: .68rem; }
.question-ai-panel [data-ai-output] { display: grid; gap: 10px; color: var(--navy-900); font-size: .72rem; }
.question-ai-panel [data-ai-output] p, .question-ai-panel [data-ai-output] ul { margin: 0; }
.ai-verdict { width: max-content; padding: 6px 9px; border-radius: 99px; }
.ai-verdict.correct { color: var(--green); background: #e5f6ee; }
.ai-verdict.needs_review { color: #805f14; background: #fff4d9; }
.ai-verdict.incorrect { color: var(--red); background: #fbeaec; }
[data-editor-status] { margin-right: auto; color: var(--muted); font-size: .62rem; }
.admin-alternatives { display: grid; gap: 9px; }
.admin-alternatives label { display: grid; grid-template-columns: 21px 34px 1fr; align-items: center; gap: 8px; }
.admin-alternatives label > span { display: grid; place-items: center; width: 32px; height: 32px; color: var(--teal-600); background: var(--teal-100); border-radius: 9px; font-size: .68rem; font-weight: 900; }
.admin-alternatives textarea { width: 100%; padding: 10px 11px; background: #fbfdfd; border: 1px solid #cbd9e0; border-radius: 9px; resize: vertical; }
.admin-editor-actions { position: sticky; z-index: 20; bottom: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 15px; padding: 13px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 15px 40px rgba(7,27,42,.14); backdrop-filter: blur(12px); }
.admin-editor-actions > a { color: var(--muted); font-size: .68rem; }
.admin-split-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 16px; align-items: start; }
.admin-sticky-card { position: sticky; top: 85px; }
.admin-course-list { display: grid; gap: 8px; }
.admin-course-list > a { display: grid; grid-template-columns: 40px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 13px; background: var(--canvas); border: 1px solid transparent; border-radius: 11px; }
.admin-course-list > a:hover { border-color: #b9d8d7; }
.admin-course-list > a > div { display: grid; }
.admin-course-list small, .admin-course-list span { color: var(--muted); font-size: .56rem; }
.admin-course-list strong { font-size: .75rem; }
.admin-course-list em { color: var(--teal-600); font-style: normal; }
.admin-curriculum { display: grid; gap: 9px; }
.admin-curriculum > details { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin-curriculum > details > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--canvas); cursor: pointer; list-style: none; }
.admin-curriculum > details > summary div { display: grid; }
.admin-curriculum summary small, .admin-curriculum summary span { color: var(--muted); font-size: .55rem; }
.admin-curriculum summary strong { font-size: .77rem; }
.admin-topic-tools { display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-topic-tools form:first-child { display: flex; flex: 1; gap: 7px; }
.admin-topic-tools input { min-width: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; }
.admin-topic-tools input[type=number] { width: 70px; }
.admin-topic-tools button, .danger-link { color: var(--teal-600); background: transparent; border: 0; font-size: .59rem; font-weight: 800; cursor: pointer; }
.danger-link { color: var(--red) !important; }
.admin-lesson-list { padding: 5px 13px 11px; }
.admin-lesson-list > article { display: grid; grid-template-columns: 30px minmax(0,1fr) auto auto; align-items: center; gap: 9px; min-height: 57px; border-bottom: 1px solid var(--line); }
.admin-lesson-list > article > span { display: grid; place-items: center; width: 26px; height: 26px; color: var(--teal-600); background: var(--teal-100); border-radius: 7px; font-size: .58rem; }
.admin-lesson-list article > div { display: grid; }
.admin-lesson-list strong { font-size: .68rem; }
.admin-lesson-list small { color: var(--muted); font-size: .52rem; }
.admin-lesson-list details { position: relative; }
.admin-lesson-list details > summary { color: var(--teal-600); font-size: .58rem; cursor: pointer; }
.admin-lesson-list details[open] { grid-column: 2/-1; width: 100%; }
.admin-inline-create { display: grid; grid-template-columns: 1fr 90px auto; align-items: end; gap: 9px; margin-top: 13px; padding: 14px; background: #eef9f8; border-radius: 11px; }
.admin-inline-create label { display: grid; gap: 4px; font-size: .6rem; font-weight: 800; }
.admin-inline-create input { min-height: 41px; padding: 8px 9px; border: 1px solid #bdd8d8; border-radius: 8px; }
.admin-section-tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; }
.admin-section-tabs a { flex: 0 0 auto; padding: 9px 12px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 9px; font-size: .66rem; font-weight: 800; }
.admin-section-tabs b { margin-left: 5px; color: white; background: var(--teal-600); border-radius: 99px; padding: 2px 6px; }
.admin-review-list { display: grid; gap: 9px; }
.admin-review-list article { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; padding: 15px; background: var(--canvas); border-radius: 11px; }
.review-main small, .review-main span { color: var(--muted); font-size: .55rem; }
.review-main h3 { margin: 4px 0 7px; font-size: .88rem; }
.review-main p { margin: 0 0 5px; font-size: .7rem; }
.review-actions { display: grid; align-content: center; justify-items: end; gap: 7px; }
.review-actions > a { color: var(--teal-600); font-size: .59rem; font-weight: 800; }
.review-actions form, .identity-review-form { display: flex; gap: 6px; }
.review-actions select, .review-actions button, .identity-review-form select, .identity-review-form input, .identity-review-form button { min-height: 35px; padding: 6px 8px; background: white; border: 1px solid var(--line); border-radius: 7px; font-size: .58rem; }
.review-actions button, .identity-review-form button { color: white; background: var(--teal-600); border-color: var(--teal-600); font-weight: 800; cursor: pointer; }
.finance-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin-bottom: 16px; }
.finance-summary article { padding: 21px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.finance-summary span, .finance-summary strong, .finance-summary small { display: block; }
.finance-summary span { color: var(--muted); font-size: .61rem; }
.finance-summary strong { margin: 10px 0 6px; font-size: 1.7rem; }
.finance-summary small { color: var(--muted); font-size: .56rem; }
.finance-summary .confirmed { color: #b8ccd6; background: var(--navy-900); border: 0; }
.finance-summary .confirmed span, .finance-summary .confirmed small { color: #aec3cf; }
.finance-summary .confirmed strong { color: white; }
.admin-security-badge { padding: 8px 11px; color: #17634d; background: #e4f5ed; border-radius: 99px; font-size: .62rem; font-weight: 800; }
.admin-ai-note { display: flex; gap: 7px; margin-bottom: 16px; padding: 13px 16px; color: #765c1d; background: #fff6dc; border: 1px solid #eed99c; border-radius: 11px; font-size: .68rem; }
.ai-provider-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; }
.ai-provider-grid > form { display: grid; align-content: start; gap: 10px; padding: 17px; background: var(--canvas); border: 1px solid var(--line); border-radius: 13px; }
.ai-provider-head { display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 9px; margin-bottom: 4px; }
.ai-provider-head > span { display: grid; place-items: center; width: 35px; height: 35px; color: white; background: var(--navy-900); border-radius: 10px; font-size: .6rem; font-weight: 900; }
.ai-provider-head > div { display: grid; }
.ai-provider-head strong { font-size: .72rem; }
.ai-provider-head small { color: var(--muted); font-size: .52rem; }
.ai-provider-grid form > label { display: grid; gap: 4px; font-size: .6rem; font-weight: 800; }
.ai-provider-grid input { width: 100%; min-height: 40px; padding: 8px 9px; border: 1px solid #cbd9e0; border-radius: 8px; }
.ai-job-result { min-width: 280px; max-width: 560px; color: var(--muted); font-size: .65rem; white-space: normal; }
.ai-job-result summary { color: var(--teal-600); font-weight: 850; cursor: pointer; }
.ai-job-result article { margin-top: 10px; padding: 12px; color: var(--navy-900); background: var(--canvas); border-radius: 9px; }
.ai-job-result article p, .ai-job-result article ol { margin: 7px 0; }
.ai-job-result li.correct { color: var(--green); font-weight: 850; }
.ai-question-actions { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.ai-question-actions form { margin: 0; }
.admin-row-action { display: inline-flex; align-items: center; min-height: 32px; padding: 7px 10px; color: var(--teal-600); background: var(--teal-100); border: 0; border-radius: 7px; font: inherit; font-weight: 850; text-decoration: none; cursor: pointer; }
.ai-save-all { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.ai-save-all small { color: var(--muted); }
.audio-admin-metrics article.success strong { color: var(--green); font-size: 1.35rem; }
.audio-admin-metrics article.warning strong { color: var(--orange-500); font-size: 1.35rem; }
.audio-storage-note code { padding: 2px 5px; color: var(--navy-900); background: white; border-radius: 5px; font-size: .58rem; }
.audio-create-form { margin-bottom: 18px; padding: 17px; background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; }
.audio-admin-list { display: grid; gap: 8px; }
.audio-admin-list > details { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.audio-admin-list > details > summary { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px; cursor: pointer; list-style: none; }
.audio-admin-list > details > summary::-webkit-details-marker { display: none; }
.audio-admin-list > details > summary > div { display: grid; min-width: 0; }
.audio-admin-list > details > summary small, .audio-admin-list > details > summary span { overflow: hidden; color: var(--muted); font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
.audio-admin-list > details > summary strong { overflow: hidden; margin: 2px 0; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.audio-admin-list > details > summary > b { color: var(--teal-600); font-size: .6rem; }
.audio-order-badge { display: grid !important; place-items: center; width: 34px; height: 34px; color: var(--teal-600) !important; background: var(--teal-100); border-radius: 9px; font-weight: 900; }
.audio-admin-edit { padding: 15px; background: var(--canvas); border-top: 1px solid var(--line); }
.audio-admin-edit > form:last-child { margin-top: 11px; text-align: right; }
.audio-admin-edit .admin-form-grid { padding: 0; }
.audio-tracks-admin > details > summary { grid-template-columns: 36px minmax(0,1fr) auto; }
.catalog-create-shell { overflow: hidden; padding: 0; }
.catalog-create-shell > summary { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; cursor: pointer; list-style: none; }
.catalog-create-shell > summary::-webkit-details-marker { display: none; }
.catalog-create-shell > summary > span:first-child { display: grid; grid-template-columns: 38px 1fr; align-items: center; column-gap: 12px; }
.catalog-create-shell > summary b { grid-row: 1 / 3; display: grid; width: 38px; height: 38px; place-items: center; color: white; background: var(--teal-600); border-radius: 11px; font-size: 1.15rem; }
.catalog-create-shell > summary strong { font-size: .82rem; }
.catalog-create-shell > summary small { color: var(--muted); font-size: .59rem; }
.catalog-create-shell[open] > summary { border-bottom: 1px solid var(--line); }
.catalog-create-shell[open] > summary .catalog-chevron { transform: rotate(45deg); }
.catalog-create-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 10px; padding: 16px; background: var(--canvas); }
.catalog-create-grid > details { align-self: start; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 11px; }
.catalog-create-grid > details > summary { padding: 14px; color: var(--navy-900); font-size: .68rem; font-weight: 900; cursor: pointer; list-style: none; }
.catalog-create-grid > details > summary::-webkit-details-marker { display: none; }
.catalog-create-grid > details > summary::after { content: "+"; float: right; color: var(--teal-600); font-size: 1rem; }
.catalog-create-grid > details[open] > summary { border-bottom: 1px solid var(--line); }
.catalog-create-grid > details[open] > summary::after { content: "−"; }
.catalog-create-grid .admin-form-grid { grid-template-columns: 1fr; padding: 14px; }
.catalog-create-grid .admin-form-grid .wide { grid-column: auto; }
.catalog-create-grid .admin-empty { margin: 12px; }
.catalog-tree-card > header { margin-bottom: 14px; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(220px,1fr) auto; align-items: end; gap: 12px; margin-bottom: 12px; padding: 12px; background: var(--canvas); border: 1px solid var(--line); border-radius: 11px; }
.catalog-toolbar label { display: grid; gap: 5px; color: var(--navy-900); font-size: .61rem; font-weight: 850; }
.catalog-toolbar input { width: 100%; min-height: 42px; padding: 9px 12px; background: white; border: 1px solid #cbd9e0; border-radius: 8px; outline: none; }
.catalog-toolbar input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(18,161,163,.09); }
.catalog-toolbar > div { display: flex; gap: 7px; }
.catalog-toolbar button { min-height: 38px; padding: 8px 11px; color: var(--teal-600); background: white; border: 1px solid var(--line); border-radius: 8px; font-size: .58rem; font-weight: 850; cursor: pointer; }
.catalog-path { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 13px 3px; color: var(--muted); font-size: .58rem; font-weight: 750; }
.catalog-path span { padding: 5px 8px; background: var(--teal-100); border-radius: 999px; }
.catalog-path i { color: var(--teal-600); font-style: normal; }
.catalog-tree, .catalog-branch { display: grid; gap: 8px; }
.catalog-node { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 12px; }
.catalog-node > summary { display: grid; grid-template-columns: 39px minmax(0,1fr) 18px; align-items: center; gap: 11px; min-height: 66px; padding: 10px 13px; cursor: pointer; list-style: none; }
.catalog-node > summary::-webkit-details-marker, .catalog-editor > summary::-webkit-details-marker, .catalog-leaf > summary::-webkit-details-marker { display: none; }
.catalog-node[open] > summary { background: #fbfdfd; border-bottom: 1px solid var(--line); }
.catalog-node-icon { display: grid; width: 38px; height: 38px; place-items: center; color: white; background: var(--navy-900); border-radius: 10px; font-size: .66rem; font-weight: 950; }
.catalog-playlist-node > summary .catalog-node-icon, .catalog-topic-node > summary .catalog-node-icon { color: var(--teal-700); background: var(--teal-100); }
.catalog-course-node > summary .catalog-node-icon { background: #635bba; }
.catalog-node-title { display: grid; min-width: 0; }
.catalog-node-title small { color: var(--teal-600); font-size: .52rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.catalog-node-title strong { overflow: hidden; margin: 2px 0; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.catalog-node-title > span { overflow: hidden; color: var(--muted); font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }
.catalog-chevron { display: block; width: 9px; height: 9px; border-right: 2px solid var(--teal-600); border-bottom: 2px solid var(--teal-600); transform: rotate(45deg); transition: transform .18s ease; }
.catalog-node[open] > summary .catalog-chevron { transform: rotate(225deg); }
.catalog-node-content { padding: 12px 12px 13px 24px; background: #fbfdfd; }
.catalog-branch { margin-left: 8px; padding-left: 15px; border-left: 2px solid #dce9ed; }
.catalog-branch-label { margin: 13px 0 7px 23px; color: var(--muted); font-size: .52rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.catalog-editor { margin-bottom: 9px; }
.catalog-editor > summary { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 10px; color: var(--teal-600); background: var(--teal-100); border-radius: 7px; font-size: .57rem; font-weight: 850; cursor: pointer; list-style: none; }
.catalog-editor[open] > summary { margin-bottom: 8px; }
.catalog-editor-body { padding: 13px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.catalog-editor-body > form:last-child { margin-top: 10px; text-align: right; }
.catalog-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.catalog-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 12px; background: #fff5f5; border: 1px solid #f2c6c6; border-radius: 9px; }
.catalog-danger-zone > div { display: grid; gap: 3px; }
.catalog-danger-zone strong { color: var(--red); font-size: .65rem; }
.catalog-danger-zone small { max-width: 580px; color: #7f4a4a; font-size: .54rem; }
.catalog-danger-zone form { flex: 0 0 auto; margin: 0 !important; }
.danger-button { color: white; background: var(--red); border-color: var(--red); }
.danger-button:hover { filter: brightness(.92); }
.catalog-empty-branch { padding: 13px; color: var(--muted); background: white; border: 1px dashed #cbd9e0; border-radius: 9px; font-size: .6rem; text-align: center; }
.catalog-leaf-list { display: grid; gap: 6px; }
.catalog-leaf { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 9px; }
.catalog-leaf > summary { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 55px; padding: 8px 10px; cursor: pointer; list-style: none; }
.catalog-leaf > summary > span:nth-child(2) { display: grid; min-width: 0; }
.catalog-leaf > summary strong, .catalog-leaf > summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-leaf > summary strong { font-size: .67rem; }
.catalog-leaf > summary small { margin-top: 2px; color: var(--muted); font-size: .52rem; }
.catalog-leaf > summary b { color: var(--teal-600); font-size: .55rem; }
.catalog-leaf-position { display: grid; width: 28px; height: 28px; place-items: center; color: var(--teal-700); background: var(--teal-100); border-radius: 8px; font-size: .58rem; font-weight: 900; }
.catalog-leaf[open] > summary { border-bottom: 1px solid var(--line); }
.catalog-leaf > .catalog-editor-body { border: 0; border-radius: 0; background: var(--canvas); }
.ai-job-error { color: var(--red); }
.taxonomy-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.taxonomy-new { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.taxonomy-new input, .taxonomy-list input { min-height: 40px; padding: 8px 10px; border: 1px solid #cbd9e0; border-radius: 8px; }
.taxonomy-list { display: grid; gap: 7px; }
.taxonomy-list article { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; padding: 8px; background: var(--canvas); border-radius: 9px; }
.taxonomy-list article > form:first-child { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.taxonomy-list button { padding: 7px 9px; color: var(--teal-600); background: white; border: 1px solid var(--line); border-radius: 7px; font-size: .6rem; font-weight: 850; cursor: pointer; }
.taxonomy-list span { color: var(--muted); font-size: .55rem; white-space: nowrap; }
.taxonomy-list button.danger { color: var(--red); }
.taxonomy-list button:disabled { opacity: .4; cursor: not-allowed; }
.admin-package-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 18px; align-items: start; }
.admin-package-main { display: grid; gap: 18px; }
.package-course-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.package-course-picker label { display: flex; align-items: flex-start; gap: 11px; padding: 15px; background: #f8fbfc; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.package-course-picker label:has(input:checked) { background: var(--teal-100); border-color: var(--teal-500); box-shadow: inset 0 0 0 1px var(--teal-500); }
.package-course-picker input { margin-top: 3px; accent-color: var(--teal-600); }
.package-course-picker strong,.package-course-picker small { display: block; }
.package-course-picker small { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.package-publish-card { display: grid; gap: 13px; }
.package-security-note { padding: 14px; color: #345062; background: #eef6f7; border-radius: 11px; }
.package-security-note strong { color: var(--navy-900); }
.package-security-note p { margin: 5px 0 0; font-size: .72rem; }
.package-admin-table td:first-child strong,.package-admin-table td:first-child small { display: block; }
.integration-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.integration-summary > div { display: grid; gap: 3px; padding: 14px; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; }
.integration-summary small { color: var(--muted); font-size: .57rem; }
.integration-summary strong { font-size: .72rem; }
.settings-actions { display: flex; align-items: center; gap: 12px; }
.settings-actions small { color: var(--muted); font-size: .58rem; }
.integration-subheading { display: grid; gap: 3px; margin-top: 7px; padding: 13px 14px; background: var(--canvas); border-left: 4px solid var(--teal-500); border-radius: 8px; }
.integration-subheading span { color: var(--teal-600); font-size: .52rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.integration-subheading strong { font-size: .76rem; }
.integration-subheading small { color: var(--muted); font-size: .56rem; }
.bunny-media-picker { overflow: hidden; background: #f4fbfb; border: 1px solid #bcdedf; border-radius: 10px; }
.bunny-media-picker > header { padding: 12px; border-bottom: 1px solid #cde6e7; }
.bunny-media-picker > header > div { display: grid; gap: 3px; }
.bunny-media-picker > header strong { color: var(--navy-900); font-size: .67rem; }
.bunny-media-picker > header small { color: var(--muted); font-size: .54rem; }
.bunny-media-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; padding: 10px; }
.bunny-media-search input { min-height: 40px; background: white; }
.bunny-media-search button, .bunny-media-results article > button { padding: 8px 11px; color: white; background: var(--teal-600); border: 0; border-radius: 8px; font-size: .58rem; font-weight: 850; cursor: pointer; }
.bunny-media-search button:disabled { opacity: .55; cursor: wait; }
.bunny-media-results { display: grid; max-height: 330px; gap: 6px; overflow-y: auto; padding: 0 10px 10px; }
.bunny-media-results > small { padding: 10px; color: var(--muted); font-size: .56rem; text-align: center; }
.bunny-media-results > small.error { color: var(--red); background: #fff5f5; border-radius: 7px; }
.bunny-media-results article { display: grid; grid-template-columns: 45px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 7px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.bunny-media-results article > img, .bunny-media-results article > span { width: 45px; height: 34px; object-fit: cover; border-radius: 6px; }
.bunny-media-results article > span { display: grid; place-items: center; color: var(--teal-600); background: var(--teal-100); font-size: .8rem; }
.bunny-media-results article > div { display: grid; min-width: 0; }
.bunny-media-results article strong, .bunny-media-results article small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bunny-media-results article strong { font-size: .61rem; }
.bunny-media-results article small { color: var(--muted); font-size: .5rem; }
.bunny-picker-disabled { padding: 11px; color: var(--muted); background: var(--canvas); border: 1px dashed #cbd9e0; border-radius: 9px; font-size: .58rem; text-align: center; }
.bunny-picker-disabled a { color: var(--teal-600); font-weight: 850; }
.settings-steps { display: grid; gap: 8px; margin: 0; padding-left: 22px; color: var(--muted); font-size: .7rem; }
.ai-provider-grid fieldset { display: grid; gap: 5px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.ai-provider-grid legend { color: var(--muted); font-size: .55rem; }
.admin-field-alert { display: inline-block; margin-left: 9px; color: var(--red); font-size: .6rem; }
.user-source-legend { display: flex; gap: 11px; color: var(--muted); font-size: .56rem; }
.user-source-legend span { display: flex; align-items: center; gap: 5px; }
.user-source-legend i { width: 8px; height: 8px; background: var(--teal-500); border-radius: 50%; }
.user-source-legend i.legacy { background: var(--gold-500); }
.user-source { display: inline-flex; padding: 4px 7px; color: var(--teal-600); background: var(--teal-100); border-radius: 99px; font-size: .54rem; font-weight: 850; white-space: nowrap; }
.user-source.legacy { color: #805f14; background: #fff2cf; }
.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.admin-pagination a, .admin-pagination span { padding: 7px 10px; color: var(--teal-600); background: var(--teal-100); border-radius: 8px; font-size: .62rem; font-weight: 850; }
.admin-pagination span { color: var(--muted); background: var(--canvas); }

/* Ficha administrativa do aluno */
.student-admin-heading { align-items: center; }
.student-heading-badges { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.student-admin-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; margin-bottom: 16px; }
.student-admin-summary article { padding: 18px 20px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.student-admin-summary span, .student-admin-summary strong, .student-admin-summary small { display: block; }
.student-admin-summary span { color: var(--muted); font-size: .59rem; font-weight: 750; }
.student-admin-summary strong { margin: 7px 0 4px; color: var(--navy-950); font-size: 1.42rem; }
.student-admin-summary small { color: var(--muted); font-size: .55rem; }
.student-admin-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 16px; align-items: start; }
.student-form-actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.student-account-card { position: sticky; top: 85px; }
.student-account-state { display: grid; grid-template-columns: 12px 1fr; align-items: start; gap: 10px; margin-bottom: 16px; padding: 13px; background: var(--canvas); border-radius: 10px; }
.student-account-state > span { width: 10px; height: 10px; margin-top: 4px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 4px rgba(185,56,73,.1); }
.student-account-state.active > span { background: var(--green); box-shadow: 0 0 0 4px rgba(30,131,96,.1); }
.student-account-state div { display: grid; }
.student-account-state strong { font-size: .68rem; }
.student-account-state small, .student-source-note { color: var(--muted); font-size: .56rem; }
.student-source-note { margin: 14px 0 0; padding-top: 13px; border-top: 1px solid var(--line); line-height: 1.55; }
.student-identity-card { scroll-margin-top: 85px; }
.student-identity-overview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 14px; }
.student-identity-overview > div { padding: 13px; background: var(--canvas); border-radius: 10px; }
.student-identity-overview span, .student-identity-overview strong, .student-identity-overview small { display: block; }
.student-identity-overview span, .student-identity-overview small { color: var(--muted); font-size: .56rem; }
.student-identity-overview strong { margin: 4px 0; color: var(--navy-950); font-size: .78rem; }
.student-identity-history { display: grid; gap: 9px; }
.student-identity-history > article { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,auto); align-items: start; gap: 16px; padding: 14px; background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; }
.student-identity-main { display: grid; gap: 5px; min-width: 0; }
.student-identity-main > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.student-identity-main > div small, .student-identity-main p, .identity-analysis-note { color: var(--muted); font-size: .56rem; }
.student-identity-main > strong { overflow: hidden; color: var(--navy-950); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.student-identity-main p { margin: 0; }
.identity-analysis-note, .identity-rejection-note { line-height: 1.5; }
.identity-rejection-note { color: var(--red); font-size: .56rem; }
.student-identity-actions { display: grid; justify-items: stretch; gap: 8px; }
.student-identity-actions > .button { min-height: 36px; padding: 8px 11px; }
.student-identity-actions .identity-review-form { display: grid; grid-template-columns: minmax(145px,1fr) minmax(170px,1fr) auto; }
.identity-document-link { display: inline-flex; margin-top: 9px; }
.admin-check.disabled { opacity: .55; }
.student-package-access-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 17px; }
.student-package-access-list article { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px; background: #f2f9f8; border: 1px solid #d6e9e7; border-radius: 11px; }
.student-package-access-list .package-mark { width: 34px; height: 34px; }
.student-package-access-list article > div { display: grid; }
.student-package-access-list small, .student-package-access-list span { color: var(--muted); font-size: .54rem; }
.student-package-access-list strong { font-size: .7rem; }
.student-enrollment-list { display: grid; gap: 9px; }
.student-enrollment-list > article { padding: 14px; background: var(--canvas); border: 1px solid transparent; border-radius: 12px; }
.student-enrollment-list > article.expired, .student-enrollment-list > article.revoked { background: #f5f7f8; opacity: .82; }
.student-enrollment-main { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; }
.student-enrollment-main .course-kind { display: grid; place-items: center; width: 32px; height: 32px; color: var(--teal-600); background: var(--teal-100); border-radius: 9px; font-size: .58rem; }
.student-enrollment-main > div { display: grid; }
.student-enrollment-main small, .student-enrollment-main span { color: var(--muted); font-size: .55rem; }
.student-enrollment-main strong { margin: 2px 0; font-size: .74rem; }
.student-enrollment-actions { display: flex; align-items: end; justify-content: flex-end; gap: 12px; margin: 11px 0 0 45px; padding-top: 10px; border-top: 1px solid var(--line); }
.student-enrollment-actions form:first-child { display: flex; align-items: end; gap: 8px; }
.student-enrollment-actions label { display: grid; gap: 4px; color: var(--muted); font-size: .55rem; font-weight: 750; }
.student-enrollment-actions input[type=date] { min-height: 34px; padding: 5px 7px; background: white; border: 1px solid var(--line); border-radius: 7px; font-size: .59rem; }
.student-enrollment-actions .admin-check { display: flex !important; min-height: 34px; }
.student-grant-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.student-grant-grid .admin-card { height: calc(100% - 16px); }

@media (max-width: 1000px) {
    .admin-sidebar { transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow); }
    .admin-sidebar.open { transform: none; }
    .admin-shell { margin-left: 0; }
    .admin-topbar > button { display: block; }
    .admin-metric-grid { grid-template-columns: repeat(2,1fr); }
    .ai-provider-grid { grid-template-columns: 1fr; }
    .taxonomy-grid { grid-template-columns: 1fr; }
    .integration-summary { grid-template-columns: 1fr; }
    .settings-actions { align-items: stretch; flex-direction: column; }
    .bunny-media-search { grid-template-columns: 1fr; }
    .bunny-media-search button { min-height: 42px; }
    .bunny-media-results article { grid-template-columns: 38px minmax(0,1fr) auto; }
    .bunny-media-results article > img, .bunny-media-results article > span { width: 38px; height: 32px; }
    .student-admin-layout { grid-template-columns: 1fr; }
    .student-account-card { position: static; }
    .admin-package-layout { grid-template-columns: 1fr; }
    .package-publish-card { position: static; }
    .navigation { display: none; position: absolute; top: 73px; left: 20px; right: 20px; flex-direction: column; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
    .navigation.open { display: flex; }
    .nav-toggle { display: block; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero { min-height: auto; }
    .hero-grid { min-height: auto; }
    .login-card, .overview-card { width: min(100%, 500px); }
    .module-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-grid { grid-template-columns: 1fr 450px; gap: 45px; }
    .filter-panel { grid-template-columns: repeat(2, 1fr); }
    .search-field { grid-column: 1 / -1; }
    .question-grid { grid-template-columns: repeat(2, 1fr); }
    .question-layout { grid-template-columns: 1fr; }
    .question-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .question-sidebar .back-link { grid-column: 1 / -1; margin-bottom: 0; }
    .question-sidebar dl { margin: 0; }
    .cascade-filters { grid-template-columns: repeat(3, 1fr); }
    .cascade-search { grid-column: 1 / -1; }
    .filter-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-grid .filter-wide { grid-column: span 1; }
    .filter-grid .filter-search { grid-column: 1 / -1; }
    .result-filters { grid-template-columns: repeat(3, 1fr); }
    .practice-question-layout { grid-template-columns: 165px 1fr; }
    .practice-nav.bottom { margin-left: 180px; }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .performance-layout { grid-template-columns: 1fr; }
    .performance-highlights { grid-template-columns: 1fr 1fr; }
    .package-course-row { grid-template-columns: 35px minmax(170px, 1fr) minmax(90px, 140px) auto; }
    .package-course-row form { grid-column: 2 / -1; }
    .security-layout { grid-template-columns: 1fr 290px; }
    .video-course-grid { grid-template-columns: repeat(2, 1fr); }
    .course-hero-grid { grid-template-columns: 1fr 300px; gap: 35px; }
    .watch-layout { grid-template-columns: minmax(0, 1fr) 285px; }
    .audio-category-grid { grid-template-columns: 1fr; }
    .audio-playlist-grid { grid-template-columns: repeat(2, 1fr); }
    .audio-listen-layout { grid-template-columns: minmax(0, 1fr) 285px; }
}

@media (max-width: 700px) {
    .admin-topbar { min-height: 62px; padding: 8px 10px; }
    .admin-topbar > span { display: none; }
    .admin-content { padding: 21px 10px 65px; }
    .admin-flash { padding-inline: 10px; }
    .package-course-picker { grid-template-columns: 1fr; }
    .admin-page-heading { align-items: stretch; flex-direction: column; gap: 15px; }
    .admin-page-heading .button, .admin-heading-actions .button { flex: 1; }
    .admin-heading-actions { width: 100%; }
    .admin-card { padding: 17px 12px; border-radius: 13px; }
    .admin-card > header { align-items: flex-start; flex-direction: column; gap: 7px; }
    .catalog-create-shell { padding: 0; }
    .catalog-create-shell > summary { min-height: 68px; padding: 14px 12px; }
    .catalog-create-grid { grid-template-columns: 1fr; padding: 10px; }
    .catalog-toolbar { grid-template-columns: 1fr; }
    .catalog-toolbar > div { display: grid; grid-template-columns: 1fr 1fr; }
    .catalog-toolbar button { min-height: 42px; }
    .catalog-path { gap: 4px; }
    .catalog-path span { padding: 4px 6px; font-size: .52rem; }
    .catalog-node > summary { grid-template-columns: 35px minmax(0,1fr) 14px; gap: 8px; min-height: 62px; padding: 9px 8px; }
    .catalog-node-icon { width: 34px; height: 34px; }
    .catalog-node-content { padding: 9px 7px 10px 10px; }
    .catalog-branch { margin-left: 4px; padding-left: 8px; }
    .catalog-branch-label { margin-left: 13px; }
    .catalog-editor-body { padding: 10px 8px; }
    .catalog-form-actions .button { width: 100%; }
    .catalog-danger-zone { align-items: stretch; flex-direction: column; }
    .catalog-danger-zone .button { width: 100%; }
    .catalog-leaf > summary { grid-template-columns: 28px minmax(0,1fr); }
    .catalog-leaf > summary b { display: none; }
    .admin-metric-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
    .admin-metric-grid article { min-height: 112px; padding: 14px 12px; }
    .admin-metric-grid article.revenue { grid-column: 1/-1; }
    .admin-metric-grid strong { font-size: 1.55rem; }
    .admin-operations-grid, .admin-split-layout, .finance-summary { grid-template-columns: 1fr; }
    .admin-sticky-card { position: static; }
    .admin-filter-card form, .admin-form-grid { grid-template-columns: 1fr; }
    .admin-form-grid .wide { grid-column: auto; }
    .admin-filter-card form .button { width: 100%; }
    .admin-editor-actions { bottom: 7px; }
    .admin-editor-actions .button { flex: 1; }
    .question-feedback-grid { grid-template-columns: 1fr; }
    .rich-alternatives label { grid-template-columns: auto 31px minmax(0,1fr); }
    .admin-alternatives label { grid-template-columns: 18px 31px 1fr; }
    .admin-topic-tools { align-items: stretch; flex-direction: column; }
    .admin-topic-tools form:first-child { display: grid; grid-template-columns: 1fr 70px; }
    .admin-topic-tools form:first-child button { grid-column: 1/-1; }
    .admin-lesson-list > article { grid-template-columns: 28px minmax(0,1fr) auto; padding: 8px 0; }
    .admin-lesson-list > article > form { grid-column: 3; }
    .admin-lesson-list details[open] { grid-column: 1/-1; }
    .admin-form-stack.compact { min-width: 0; }
    .admin-inline-create { grid-template-columns: 1fr 75px; }
    .admin-inline-create .button { grid-column: 1/-1; width: 100%; }
    .admin-review-list article { grid-template-columns: 1fr; }
    .review-actions { justify-items: stretch; }
    .review-actions form, .identity-review-form { align-items: stretch; flex-direction: column; }
    .admin-ai-note { align-items: flex-start; flex-direction: column; }
    .student-heading-badges { align-items: flex-start; justify-content: flex-start; flex-wrap: wrap; }
    .student-admin-summary { grid-template-columns: 1fr 1fr; gap: 7px; }
    .student-admin-summary article { padding: 14px 12px; }
    .student-identity-history > article { grid-template-columns: 1fr; }
    .student-identity-actions .identity-review-form { grid-template-columns: 1fr; }
    .student-form-actions .button { width: 100%; }
    .student-package-access-list, .student-grant-grid { grid-template-columns: 1fr; }
    .student-package-access-list article { grid-template-columns: 34px minmax(0,1fr); }
    .student-package-access-list article form { grid-column: 2; }
    .student-enrollment-main { grid-template-columns: 31px minmax(0,1fr); }
    .student-enrollment-main > b { grid-column: 2; }
    .student-enrollment-actions { align-items: stretch; flex-direction: column; margin-left: 0; }
    .student-enrollment-actions form:first-child { display: grid; grid-template-columns: 1fr auto; }
    .student-enrollment-actions form:first-child > button { grid-column: 1/-1; width: 100%; }
    .student-enrollment-actions form:last-child { text-align: right; }
    .container { width: min(calc(100% - 20px), var(--container)); }
    .header-inner { min-height: 64px; gap: 8px; }
    .brand { gap: 8px; }
    .brand-symbol { width: 38px; height: 38px; border-radius: 12px 12px 12px 4px; }
    .brand strong { font-size: .96rem; }
    .brand small { display: block; max-width: 150px; margin-top: 3px; overflow: hidden; font-size: .53rem; text-overflow: ellipsis; white-space: nowrap; }
    .user-menu > span { display: none; }
    .header-login { padding-inline: 13px; }
    .hero-grid { padding-block: 58px 90px; }
    .hero h1 { font-size: 3.1rem; }
    .hero-actions .button { width: 100%; }
    .login-card, .overview-card, .register-card { padding: 24px; }
    .metrics { margin-top: -35px; }
    .metrics-grid, .module-grid, .section-heading, .foundation-grid, .auth-grid { grid-template-columns: 1fr; }
    .metrics article { border-right: 0; border-bottom: 1px solid var(--line); }
    .module-card { min-height: 275px; }
    .modules-section { padding: 80px 0; }
    .foundation-grid { gap: 35px; }
    .auth-page { padding: 55px 0; background: var(--canvas); }
    .auth-copy { color: var(--muted); }
    .auth-copy h1 { color: var(--navy-950); }
    .auth-copy .eyebrow { color: var(--teal-600); }
    .field-pair { grid-template-columns: 1fr; }
    .registration-page { padding: 22px 0 50px; }
    .registration-copy { position: static; }
    .registration-copy h1 { font-size: 2.45rem; }
    .registration-copy > p { margin-bottom: 22px; }
    .registration-copy .registration-steps { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 8px; }
    .registration-copy .registration-steps li { padding: 10px; }
    .registration-copy .registration-steps li small { display: none; }
    .registration-card { padding: 22px 17px; border-radius: 18px; }
    .card-kicker strong { display: none; }
    .identity-page { padding-bottom: 55px; }
    .identity-hero { padding: 38px 0 88px; }
    .identity-hero-grid, .identity-layout { grid-template-columns: 1fr; }
    .identity-hero-grid { gap: 25px; }
    .identity-hero h1 { font-size: 2.55rem; }
    .registration-steps.compact { grid-template-columns: 1fr 1fr; }
    .registration-steps.compact li { min-width: 0; }
    .registration-steps.compact li small { display: none; }
    .identity-layout { gap: 13px; margin-top: -52px; }
    .identity-card, .identity-guide { padding: 22px 17px; border-radius: 17px; }
    .upload-zone { min-height: 175px; padding: 20px; }
    .profile-page { padding-bottom: 55px; }
    .profile-hero { padding: 38px 0 42px; }
    .profile-hero h1 { font-size: 2.55rem; }
    .profile-avatar { width: 62px; height: 62px; border-radius: 20px; font-size: 1.5rem; }
    .profile-shortcuts { top: 64px; }
    .profile-layout { padding-top: 15px; }
    .profile-section { scroll-margin-top: 125px; padding: 20px 14px; border-radius: 15px; }
    .profile-section > header { align-items: start; flex-direction: column; gap: 7px; margin-bottom: 18px; }
    .profile-section > header h2 { font-size: 1.5rem; }
    .security-layout, .identity-profile-layout { grid-template-columns: 1fr; gap: 13px; }
    .password-form .button { width: 100%; }
    .identity-card.compact, .identity-guide.compact { padding: 19px 14px; }
    .payment-hero { padding: 50px 0 75px; }
    .payment-hero-grid, .checkout-layout { grid-template-columns: 1fr; }
    .payment-hero-grid { gap: 28px; }
    .payment-hero h1 { font-size: 3rem; }
    .payment-trust { grid-template-columns: auto auto 1fr; padding: 13px; }
    .payment-plans { padding: 50px 0 70px; }
    .payment-heading, .orders-heading { align-items: start; flex-direction: column; }
    .payment-heading > div:last-child { justify-items: start; }
    .payment-plan-grid { grid-template-columns: 1fr; }
    .payment-plan-card, .payment-plan-card.featured { min-height: 0; padding: 23px 19px; transform: none; }
    .payment-plan-card > p { min-height: 0; }
    .payment-setup-note { align-items: start; flex-direction: column; }
    .checkout-page { padding: 30px 0 65px; background: var(--canvas); }
    .checkout-layout { gap: 25px; }
    .checkout-main h1 { font-size: 2.6rem; }
    .back-link { margin-bottom: 25px; }
    .checkout-course-list { padding: 19px 16px; }
    .checkout-summary { position: static; padding: 23px 18px; }
    .cart-selection-bar { align-items: stretch; flex-direction: column; bottom: 8px; }
    .cart-selection-bar .button { width: 100%; }
    .cart-items article { grid-template-columns: 1fr auto; gap: 10px; }
    .cart-items article form { grid-column: 1 / -1; }
    .payment-result { padding: 32px 18px; border-radius: 18px; }
    .payment-result h1 { font-size: 2.2rem; }
    .result-actions { flex-direction: column; }
    .result-actions .button { width: 100%; }
    .orders-page { padding: 42px 0 70px; }
    .orders-heading .button { width: 100%; }
    .orders-list article { grid-template-columns: 1fr auto; gap: 12px; padding: 19px 16px; }
    .orders-list article > a { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); }
    .footer-inner { grid-template-columns: auto 1fr; }
    .footer-inner > small { grid-column: 1 / -1; }
    .questions-hero { padding: 55px 0 100px; }
    .questions-hero-grid, .question-grid { grid-template-columns: 1fr; }
    .practice-summary { grid-template-columns: repeat(2, 1fr); }
    .practice-summary span { min-width: 0; padding: 10px; }
    .filter-panel { grid-template-columns: 1fr; margin-top: -55px; padding: 17px; }
    .search-field { grid-column: auto; }
    .filter-actions { justify-content: stretch; }
    .filter-actions .button { flex: 1; }
    .result-heading { align-items: start; flex-direction: column; gap: 8px; }
    .question-sidebar { display: block; }
    .question-sidebar .question-progress { margin-bottom: 10px; }
    .question-sidebar dl { display: none; }
    .question-sheet { padding: 23px 17px; }
    .question-sheet > header { display: block; }
    .question-sheet > header > small { display: inline-block; margin-top: 13px; }
    .statement { padding-block: 25px; font-size: 1rem; }
    .alternative { grid-template-columns: 36px 1fr; padding: 10px; }
    .alternative > b { grid-column: 2; }
    .answer-button { width: 100%; }
    .question-navigation { flex-direction: column-reverse; }
    .question-navigation .button { width: 100%; }
    .practice-header-inner { grid-template-columns: 1fr; gap: 22px; }
    .practice-header { padding: 25px 0 54px; }
    .practice-header-inner { gap: 14px; }
    .practice-header h1 { font-size: 1.65rem; line-height: 1.12; }
    .practice-header .eyebrow { margin-bottom: 8px; font-size: .58rem; }
    .practice-header .practice-summary { width: 100%; }
    .practice-summary { grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .practice-summary span { padding: 8px 7px; text-align: center; }
    .practice-summary strong { font-size: 1rem; }
    .cascade-filters { grid-template-columns: 1fr; margin-top: -27px; }
    .cascade-search { grid-column: auto; }
    .cascade-filters .button { width: 100%; }
    .cascade-filters.complete { padding: 0; overflow: hidden; border-radius: 14px; }
    .mobile-filter-drawer > summary { display: flex; min-height: 55px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; color: var(--navy-900); background: white; font-size: .78rem; font-weight: 850; cursor: pointer; list-style: none; }
    .mobile-filter-drawer > summary::-webkit-details-marker { display: none; }
    .mobile-filter-drawer > summary::after { content: "⌄"; color: var(--teal-600); font-size: 1.1rem; transition: transform .18s ease; }
    .mobile-filter-drawer[open] > summary::after { transform: rotate(180deg); }
    .mobile-filter-drawer > summary small { margin-left: auto; color: var(--muted); font-size: .58rem; font-weight: 650; }
    .mobile-filter-drawer[open] > summary { border-bottom: 1px solid var(--line); }
    .filter-grid { grid-template-columns: 1fr; }
    .filter-grid .filter-search { grid-column: auto; }
    .filter-grid { padding: 14px 14px 0; }
    .filter-grid label { font-size: .69rem; }
    .filter-grid select, .filter-grid input { min-height: 48px; font-size: 16px; }
    .result-filters { display: flex; overflow-x: auto; padding-bottom: 4px; }
    .result-filters { margin: 14px 14px 0; padding-top: 14px; scrollbar-width: thin; scroll-snap-type: x proximity; }
    .result-filters label { flex: 0 0 135px; }
    .result-filters label { scroll-snap-align: start; }
    .result-filters span { min-height: 46px; }
    .filter-footer { align-items: stretch; flex-direction: column; }
    .filter-footer { padding: 0 14px 14px; }
    .filter-footer .clear-filters { justify-content: center; }
    .clear-filters { justify-content: center; }
    .practice-toolbar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; margin: 19px 0 10px; }
    .practice-toolbar small { display: none; }
    .practice-nav.compact { width: 100%; justify-content: space-between; }
    .practice-nav.compact { width: auto; }
    .practice-nav.compact a, .practice-nav.compact span { min-height: 42px; display: grid; place-items: center; padding: 7px 9px; }
    .practice-question-layout { grid-template-columns: 1fr; }
    .practice-question-layout { gap: 8px; }
    .practice-meta { position: static; padding: 10px 12px; border-radius: 12px; overflow-x: auto; }
    .question-number { display: inline-block; padding: 0 10px 0 0; border: 0; vertical-align: middle; }
    .practice-meta dl { display: inline-flex; width: max-content; gap: 6px; margin: 0; vertical-align: middle; }
    .practice-meta dl > div { flex: 0 0 auto; padding: 5px 8px; background: rgba(255,255,255,.07); border: 0; border-radius: 7px; }
    .practice-meta dt { display: none; }
    .practice-meta dd { margin: 0; font-size: .64rem; }
    .practice-sheet { min-height: 0; padding: 18px 13px 14px; border-radius: 14px; }
    .practice-sheet > header { padding-bottom: 14px; }
    .practice-nav.bottom { margin-left: 0; }
    .answer-actions { position: sticky; z-index: 12; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 17px -13px -14px; padding: 10px 13px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
    .answer-actions .button { width: 100%; min-height: 49px; padding: 0 10px; font-size: .72rem; }
    .question-title-row { display: flex !important; align-items: flex-start; }
    .question-title-row h2 { font-size: 1.3rem !important; }
    .statement { padding: 20px 2px; font-size: .97rem; line-height: 1.7; }
    .alternative-help { margin-bottom: 7px; }
    .alternative-help small { font-size: .57rem; }
    .alternative-row { grid-template-columns: 1fr 48px; gap: 6px; }
    .alternative { min-height: 58px; padding: 9px 8px; font-size: .79rem; }
    .cut-alternative { min-height: 58px; border-radius: 10px; }
    .cut-alternative b { display: none; }
    .cut-alternative span { font-size: 1.15rem; }
    .practice-nav.bottom { gap: 7px; margin-top: 10px; }
    .practice-nav.bottom .button { flex: 1; min-height: 45px; padding-inline: 9px; font-size: .68rem; }
    .question-resources { margin-top: 10px; border-radius: 13px; }
    .resource-tabs { display: flex; }
    .resource-tabs button { flex: 0 0 145px; min-height: 54px; }
    .resource-panel { padding: 20px 16px; }
    .stats-overview { grid-template-columns: 1fr; }
    .student-comments article > div { flex-direction: column; gap: 2px; }
    .practice-page { padding-bottom: 50px; }
    .course-catalog { padding: 75px 0; }
    .catalog-grid { grid-template-columns: 1fr; }
    .catalog-card { min-height: 390px; padding: 23px; }
    .student-hero { padding: 42px 0 44px; }
    .student-hero-grid { align-items: stretch; flex-direction: column; gap: 22px; }
    .student-hero-grid .button { width: 100%; }
    .panel-shortcuts { top: 64px; }
    .panel-section { scroll-margin-top: 125px; padding: 19px 14px; border-radius: 15px; }
    .panel-section-heading { align-items: start; flex-direction: column; gap: 7px; margin-bottom: 18px; }
    .panel-section-heading h2 { font-size: 1.5rem; }
    .notice-grid article { grid-template-columns: 34px 1fr; padding: 14px 12px; }
    .notice-grid article > span { width: 32px; height: 32px; border-radius: 9px; }
    .student-course-grid { grid-template-columns: 1fr; }
    .student-course-card { padding: 18px 14px; }
    .purchased-package summary { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; min-height: 88px; padding: 13px 11px; }
    .package-mark { width: 39px; height: 39px; border-radius: 11px 11px 11px 4px; }
    .package-title strong { font-size: .82rem; }
    .package-progress { grid-column: 2; grid-template-columns: auto 1fr; }
    .package-status { grid-column: 3; grid-row: 1; }
    .package-chevron { grid-column: 3; grid-row: 2; justify-self: center; }
    .package-details { padding: 11px; }
    .package-purchase-meta { grid-template-columns: 1fr; }
    .package-course-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; padding: 12px 9px; }
    .package-course-row > progress { grid-column: 2 / -1; }
    .package-course-row .button { grid-column: 2 / -1; width: 100%; }
    .package-course-row form { grid-column: 2 / -1; justify-content: center; padding: 5px 0; }
    .course-card-actions { align-items: stretch; flex-direction: column; }
    .course-card-actions .button { width: 100%; }
    .course-card-actions form { display: flex; justify-content: center; padding: 8px 0; }
    .score-grid { grid-template-columns: repeat(2, 1fr); }
    .performance-list { padding: 16px 12px; }
    .performance-row { grid-template-columns: 1fr 43px; gap: 8px; }
    .performance-row progress { grid-column: 1 / -1; grid-row: 2; }
    .performance-row > b { grid-column: 2; grid-row: 1; }
    .performance-highlights { grid-template-columns: 1fr; }
    .reset-score form { align-items: stretch; flex-direction: column; }
    .reset-score input, .reset-score button { width: 100%; min-height: 46px; }
    .profile-form { grid-template-columns: 1fr; }
    .profile-form .field-wide, .profile-actions { grid-column: auto; }
    .profile-actions .button { width: 100%; }
    .video-hero { padding: 45px 0 50px; }
    .video-hero-grid { grid-template-columns: 1fr; gap: 25px; }
    .video-summary { grid-template-columns: repeat(3, 1fr); }
    .video-summary article { padding: 12px 9px; text-align: center; }
    .video-library, .course-curriculum { padding: 45px 0 70px; }
    .video-section-heading { align-items: start; flex-direction: column; gap: 7px; }
    .video-course-grid { grid-template-columns: 1fr; }
    .video-course-card { min-height: 405px; }
    .course-hero { padding: 34px 0 42px; }
    .course-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .course-progress-card { padding: 18px; }
    .video-back { margin-bottom: 20px; }
    .curriculum-list summary { min-height: 72px; padding: 14px; }
    .curriculum-lessons { padding-inline: 12px; }
    .curriculum-lessons a { grid-template-columns: 31px 1fr; gap: 9px; }
    .curriculum-lessons a > b { grid-column: 2; }
    .watch-page { padding: 22px 0 55px; }
    .watch-heading { align-items: start; flex-direction: column; gap: 12px; }
    .watch-progress { display: flex; align-items: center; gap: 7px; text-align: left; }
    .watch-progress strong { font-size: 1.3rem; }
    .watch-layout { display: flex; flex-direction: column; }
    .watch-content, .watch-playlist { width: 100%; }
    .video-player { margin-inline: -10px; width: calc(100% + 20px); border-radius: 0; }
    .video-unavailable { min-height: 300px; margin-inline: -10px; border-radius: 0; }
    .watch-actions { position: sticky; z-index: 20; bottom: 0; align-items: stretch; flex-direction: column; padding-bottom: calc(13px + env(safe-area-inset-bottom)); }
    .watch-nav { justify-content: space-between; }
    .watch-actions form, .lesson-complete { width: 100%; }
    .lesson-complete { justify-content: center; min-height: 48px; }
    .watch-playlist { position: static; max-height: none; order: 2; }
    .playlist-scroll { max-height: none; }
    .lesson-description { padding: 20px 16px; }
    .audio-hero { padding: 45px 0 50px; }
    .audio-hero-grid { grid-template-columns: 1fr; gap: 25px; }
    .audio-summary { grid-template-columns: repeat(3, 1fr); }
    .audio-summary article { padding: 12px 7px; text-align: center; }
    .audio-library, .audio-category-page, .playlist-page { padding: 45px 0 70px; }
    .audio-section-heading { align-items: start; flex-direction: column; gap: 7px; }
    .audio-category-card { grid-template-columns: 100px 1fr; min-height: 360px; }
    .audio-category-body { padding: 20px 16px; }
    .audio-inner-hero { padding: 35px 0 42px; }
    .audio-inner-grid { grid-template-columns: 1fr; gap: 26px; }
    .audio-subcategory-grid, .audio-playlist-grid { grid-template-columns: 1fr; }
    .audio-subcategory-grid > a { padding: 17px 14px; }
    .playlist-hero { padding: 34px 0 43px; }
    .playlist-hero-grid { grid-template-columns: 95px 1fr; align-items: start; gap: 18px; }
    .playlist-hero-grid > div:nth-child(2) { grid-column: 1 / -1; }
    .playlist-art { grid-row: 1; }
    .playlist-art span { width: 40px; height: 40px; font-size: 1rem; }
    .track-list-heading { display: none; }
    .audio-track-list { border-radius: 13px; }
    .audio-track-list a { grid-template-columns: 34px 1fr 24px; gap: 9px; min-height: 68px; padding: 10px; }
    .track-progress { grid-column: 2; font-size: .57rem; }
    .audio-track-list a > b { grid-column: 3; grid-row: 1 / 3; }
    .audio-listen-page { padding: 22px 0 55px; }
    .audio-listen-heading { align-items: start; }
    .audio-listen-layout { display: flex; flex-direction: column; }
    .audio-player-card, .audio-queue { width: 100%; }
    .audio-artwork { min-height: 320px; margin-inline: -10px; border-radius: 0; }
    .audio-artwork > div { width: 125px; height: 125px; }
    .native-audio-player { position: sticky; z-index: 20; bottom: 0; margin-inline: -10px; padding: 13px 10px calc(13px + env(safe-area-inset-bottom)); border-radius: 0; box-shadow: 0 -12px 35px rgba(7,27,42,.12); }
    .audio-tools { gap: 6px; }
    .audio-tools button { flex: 1; }
    .audio-tools label { flex: 1.3; text-align: center; }
    .audio-tools select { width: 100%; margin: 4px 0 0; }
    .audio-queue { position: static; max-height: none; }
    .audio-queue > div { max-height: none; }
}

@media (max-width: 390px) {
    .brand small { max-width: 120px; }
    .header-login { min-height: 38px; padding-inline: 10px; font-size: .72rem; }
    .practice-nav.compact a, .practice-nav.compact span { font-size: .61rem; }
    .answer-actions { grid-template-columns: 1fr; }
    .alternative-help small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
