:root {
  --bg: #0b0b0d;
  --bg-2: #141417;
  --bg-3: #1c1c21;
  --bg-4: #25252b;
  --line: #2a2a31;
  --text: #f2f2f4;
  --muted: #9b9ba6;
  --accent: #f5b83d;
  --accent-2: #ffcb5c;
  --accent-ink: #1a1305;
  --ok: #3fcf8e;
  --danger: #ff6464;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .55);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
.boot, .loading { padding: 80px; text-align: center; color: var(--muted); }
.error { margin: 40px auto; max-width: 640px; padding: 16px 20px; border-radius: 12px; background: #3a1a1d; color: #ffb4b4; }
.empty { color: var(--muted); padding: 24px 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
[hidden] { display: none !important; }

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); cursor: pointer; font-weight: 700; font-size: 15px; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--bg-4); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); }
.btn.light { background: #f4f4f6; border-color: #f4f4f6; color: #111; }
.btn.light:hover { background: #fff; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--bg-3); }
.btn.small { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn.big { padding: 14px 26px; font-size: 16px; }
.btn.danger { color: var(--danger); }
.btn.ok { background: rgba(63, 207, 142, .14); border-color: rgba(63, 207, 142, .45); color: var(--ok); }
.btn[disabled] { opacity: .5; pointer-events: none; }
input[type=text], input[type=password], input[type=search], select, textarea {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
label.field { display: block; margin-bottom: 14px; }
label.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-msg { min-height: 20px; font-size: 14px; color: var(--danger); margin: 8px 0 0; }
.form-msg.ok { color: var(--ok); }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 500px at 15% -10%, rgba(245, 184, 61, .16), transparent 60%), radial-gradient(700px 500px at 110% 110%, rgba(245, 184, 61, .07), transparent 60%), var(--bg); }
.auth-box { width: 100%; max-width: 400px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.auth-box h1 { margin: 0 0 6px; font-size: 26px; }
.auth-box p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.auth-box .btn { width: 100%; margin-top: 8px; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 900; font-size: 22px; letter-spacing: 1.5px; text-transform: uppercase; }
.logo b { color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: 1px; }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 14px 32px; background: rgba(11, 11, 13, .9); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(42, 42, 49, .7); }
.top nav { display: flex; gap: 6px; }
.top nav a { padding: 9px 16px; border-radius: 999px; color: #d6d6dc; font-weight: 600; font-size: 15px; }
.top nav a:hover { background: var(--bg-3); }
.top nav a.on { background: var(--bg-3); color: var(--text); }
.top nav a.pill { border: 1px solid rgba(245, 184, 61, .45); color: var(--accent); background: rgba(245, 184, 61, .08); }
.top .search { flex: 1; max-width: 380px; margin-left: auto; }
.top .search input { border-radius: 999px; padding: 9px 16px; background: var(--bg-2); }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; background: none; border: 0; cursor: pointer; padding: 0; border-radius: 50%; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #3a3a42, #17171b); border: 2px solid var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--accent); }
.menu { position: absolute; right: 0; top: calc(100% + 10px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; min-width: 200px; padding: 6px; box-shadow: var(--shadow); }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; font-size: 14px; }
.menu a:hover, .menu button:hover { background: var(--bg-3); }
.menu .who { padding: 8px 12px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }

main { padding: 26px 32px 90px; max-width: 1680px; margin: 0 auto; }
.section { margin-bottom: 44px; }
.section-title { font-size: 30px; font-weight: 600; margin: 0 0 20px; letter-spacing: -.3px; }
.section-title.sm { font-size: 22px; }

/* ---------- barras de progresso ---------- */
.bar { height: 5px; background: rgba(255, 255, 255, .1); border-radius: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.bar.done i { background: var(--ok); }

/* ---------- fileira de pôsteres ---------- */
.shelf { position: relative; }
.posters { display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 22px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x proximity; scrollbar-width: none; }
.posters::-webkit-scrollbar { display: none; }
.shelf-nav { position: absolute; top: 50%; transform: translateY(-60%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20, 20, 23, .92); color: var(--text); font-size: 20px; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.shelf-nav:hover { border-color: var(--accent); color: var(--accent); }
.shelf-nav.prev { left: -14px; }
.shelf-nav.next { right: -14px; }
.poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: var(--bg-3); cursor: pointer; scroll-snap-align: start; border: 2px solid transparent; transition: transform .2s ease, border-color .2s, box-shadow .2s; padding: 0; text-align: left; }
.poster:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.poster.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 50px rgba(245, 184, 61, .18); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .35) 38%, transparent 60%); }
.poster .p-info { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.poster .p-title { font-weight: 800; font-size: 17px; line-height: 1.25; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.poster .p-meta { font-size: 12px; color: #c9c9d1; margin-top: 6px; }
.poster .p-info .bar { margin-top: 10px; height: 4px; }
.poster .p-check { position: absolute; top: 12px; right: 12px; background: var(--ok); color: #062; font-weight: 900; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
/* pôster gerado quando não há imagem */
.poster .gen { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; padding: 22px 18px; overflow: hidden; }
.poster .gen::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: 30%; background: radial-gradient(circle, var(--g1) 0%, transparent 65%); opacity: .8; }
.poster .gen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px); }
.poster .gen-title { position: relative; z-index: 1; font-size: 30px; font-weight: 900; line-height: 1.02; text-transform: uppercase; letter-spacing: -.5px; color: var(--g2); text-shadow: 0 0 24px var(--g1); word-break: break-word; }
.poster .gen-sub { position: relative; z-index: 1; margin-top: 10px; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* ---------- painel expansível ---------- */
.drawer { position: relative; margin-top: 6px; background: var(--bg-2); border: 1px solid rgba(245, 184, 61, .35); border-radius: 22px; box-shadow: var(--shadow); animation: drop .22s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.drawer .tip { position: absolute; top: -9px; width: 16px; height: 16px; background: var(--bg-2); border-left: 1px solid rgba(245, 184, 61, .35); border-top: 1px solid rgba(245, 184, 61, .35); transform: rotate(45deg); }
.drawer-head { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; padding: 30px 38px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.drawer-head h2 { margin: 6px 0 8px; font-size: 28px; letter-spacing: -.3px; }
.drawer-head .meta { color: var(--muted); font-size: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.drawer-head .meta .bar { width: 160px; }
.drawer-head .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.drawer-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-3); cursor: pointer; font-size: 18px; color: var(--muted); }
.drawer-close:hover { color: var(--text); }
.chips { display: flex; gap: 8px; padding: 18px 38px 0; overflow-x: auto; scrollbar-width: thin; }
.chip { flex: none; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-3); cursor: pointer; font-size: 13px; font-weight: 600; color: #cfcfd6; }
.chip:hover { border-color: #3a3a44; }
.chip.on { background: rgba(245, 184, 61, .12); border-color: var(--accent); color: var(--accent); }
.drawer-list { padding: 14px 24px 22px; max-height: 620px; overflow-y: auto; }

.lrow { display: grid; grid-template-columns: 188px 1fr auto; gap: 26px; align-items: center; padding: 12px 14px; border-radius: 14px; }
.lrow:hover { background: var(--bg-3); }
.lrow .th { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg-4); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.lrow .th img { width: 100%; height: 100%; object-fit: cover; }
.lrow .th .bar { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0; height: 4px; }
.lrow .th .dur { position: absolute; right: 6px; bottom: 8px; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, .75); padding: 2px 6px; border-radius: 5px; }
.lrow .t { font-size: 18px; font-weight: 600; line-height: 1.35; }
.lrow .s { margin-top: 6px; font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lrow .go { color: var(--muted); font-size: 22px; padding-right: 10px; }
.lrow .ck { color: var(--ok); font-weight: 800; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--bg-4); color: #c9c9d1; border: 1px solid var(--line); }
.badge.warn { color: #ffcf70; border-color: rgba(255, 207, 112, .35); }
.badge.ok { color: var(--ok); border-color: rgba(63, 207, 142, .4); background: rgba(63, 207, 142, .08); }

/* ---------- "continuar assistindo" ---------- */
.wide-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 340px); gap: 18px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.wcard { display: block; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.wcard:hover { transform: translateY(-3px); border-color: rgba(245, 184, 61, .5); }
.wcard .th { position: relative; aspect-ratio: 16 / 9; background: var(--bg-3); }
.wcard .th img { width: 100%; height: 100%; object-fit: cover; }
.wcard .th .bar { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0; }
.wcard .th .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; background: rgba(0, 0, 0, .35); }
.wcard:hover .play { opacity: 1; }
.playbtn { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.playbtn::after { content: ""; border-left: 17px solid var(--accent-ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.wcard .b { padding: 14px 16px 16px; }
.wcard .b small { color: var(--muted); font-size: 12px; display: block; margin-bottom: 5px; }
.wcard .b div { font-weight: 700; line-height: 1.3; }

/* ---------- página do curso ---------- */
.course-top { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: end; margin-bottom: 36px; }
.course-top .poster { cursor: default; }
.course-top .poster:hover { transform: none; box-shadow: none; }
.course-top h1 { font-size: 44px; margin: 10px 0 12px; letter-spacing: -.8px; line-height: 1.05; }
.course-top .desc { color: #c9c9d1; max-width: 760px; line-height: 1.6; margin: 0 0 16px; }
.course-top .meta { color: var(--muted); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.course-top .meta .bar { width: 200px; }
.course-top .acts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mod { margin-bottom: 26px; }
.mod-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 14px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mod-head h3 { margin: 0; font-size: 19px; }
.mod-head span { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- página da aula ---------- */
.crumbs { font-size: 15px; color: #cfcfd6; margin-bottom: 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--muted); }
.crumbs .cur { color: var(--muted); }
.lesson-page { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 44px; align-items: start; }
.player { position: relative; background: #000; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow); border: 1px solid var(--line); }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; background: rgba(0, 0, 0, .82); color: #ddd; line-height: 1.6; }
.next-overlay { position: absolute; right: 22px; bottom: 74px; background: rgba(20, 20, 23, .96); border: 1px solid rgba(245, 184, 61, .45); border-radius: 16px; padding: 16px 18px; max-width: 360px; box-shadow: var(--shadow); }
.next-overlay small { color: var(--accent); display: block; margin-bottom: 4px; font-weight: 700; }
.next-overlay b { display: block; margin-bottom: 12px; line-height: 1.35; }
.next-overlay .btns { display: flex; gap: 8px; }
.lesson-title { margin: 30px 0 22px; }
.lesson-title h1 { margin: 8px 0 0; font-size: 42px; line-height: 1.12; letter-spacing: -.8px; font-weight: 600; }
.lesson-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.lesson-actions .grow { flex: 1; }
.lesson-actions select { width: auto; padding: 10px 12px; font-size: 14px; border-radius: 12px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 30px 0 22px; }
.tab { padding: 13px 20px; background: none; border: 2px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; cursor: pointer; font-size: 18px; font-weight: 600; color: var(--muted); margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-color: var(--accent); background: var(--bg); }
.tab .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
.mats h3 { font-size: 12px; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 1.8px; margin: 22px 0 10px; }
.mats h3:first-child { margin-top: 0; }
.mat { display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: center; padding: 13px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.mat:hover { border-color: #3a3a44; }
.mat-ic { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-size: 11px; font-weight: 900; letter-spacing: .4px; background: var(--bg-4); color: var(--muted); text-transform: uppercase; }
.mat-ic.pdf { background: rgba(255, 100, 100, .14); color: #ff8f8f; }
.mat-ic.texto, .mat-ic.link { background: rgba(245, 184, 61, .14); color: var(--accent); }
.mat-ic.imagem { background: rgba(63, 207, 142, .14); color: #74e2ae; }
.mat-ic.doc { background: rgba(90, 140, 255, .16); color: #8db0ff; }
.mat-ic.planilha { background: rgba(63, 207, 142, .16); color: #5fd796; }
.mat-ic.slides { background: rgba(255, 150, 70, .15); color: #ffb06d; }
.mat-ic.compactado { background: rgba(190, 150, 255, .15); color: #c9a6ff; }
.mat-ic.codigo { background: rgba(120, 200, 255, .12); color: #8fd3ff; }
.mat-name { font-weight: 600; word-break: break-word; }
.mat-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mat-act { display: flex; gap: 6px; flex-wrap: wrap; }
.mat-view { grid-column: 1 / -1; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.65; max-height: 440px; overflow: auto; }
.mat-view a, .linkline a { color: var(--accent); text-decoration: underline; }
.mat-view img { max-width: 100%; border-radius: 8px; }
.tipbox { font-size: 14px; color: var(--muted); background: var(--bg-2); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; line-height: 1.55; }
.tipbox code { background: var(--bg-4); padding: 1px 6px; border-radius: 5px; color: #ddd; }
.notes textarea { min-height: 220px; resize: vertical; line-height: 1.6; font-size: 15px; padding: 16px; border-radius: 14px; }
.notes .st { font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 18px; }

.side { background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; position: sticky; top: 92px; max-height: calc(100vh - 112px); display: flex; flex-direction: column; }
.side-head { padding: 26px 26px 20px; border-bottom: 1px solid var(--line); }
.side-head h2 { margin: 8px 0 16px; font-size: 22px; line-height: 1.25; }
.side-head h2 a:hover { color: var(--accent); }
.side-prog { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.side-prog .bar { flex: 1; }
.side-list { overflow-y: auto; padding: 12px 12px 16px; scrollbar-width: thin; }
.side-mod { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); padding: 14px 12px 8px; }
.sitem { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 10px 12px; border-radius: 16px; border: 2px solid transparent; margin-bottom: 4px; }
.sitem:hover { background: var(--bg-3); }
.sitem.on { border-color: var(--accent); background: rgba(245, 184, 61, .07); }
.sitem .th { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--bg-4); }
.sitem .th img { width: 100%; height: 100%; object-fit: cover; }
.sitem .th .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0; }
.sitem .th .ck { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #052; font-weight: 900; font-size: 12px; display: grid; place-items: center; }
.sitem .now { font-size: 11px; font-weight: 900; letter-spacing: 1.6px; color: var(--accent); margin-bottom: 4px; }
.sitem .t { font-weight: 700; font-size: 15px; line-height: 1.35; }
.sitem .d { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ---------- admin ---------- */
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; margin-bottom: 22px; }
.panel h2 { margin: 0 0 16px; font-size: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
td .btn { margin-left: 4px; }
.inline-form { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 10px; align-items: center; }
.inline-form label { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); white-space: nowrap; }
.stats { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 16px; }
.stats div b { display: block; font-size: 24px; }
.stats div span { font-size: 13px; color: var(--muted); }
.narrow { max-width: 480px; }

/* ---------- responsivo ---------- */
@media (max-width: 1250px) {
  .lesson-page { grid-template-columns: 1fr; }
  .side { position: static; max-height: 560px; }
}
@media (max-width: 760px) {
  .top { padding: 10px 14px; gap: 12px; flex-wrap: wrap; }
  .top .search { order: 3; max-width: none; flex-basis: 100%; }
  .top nav { display: none; }
  .logo { font-size: 18px; }
  main { padding: 18px 14px 70px; }
  .section-title { font-size: 24px; }
  .posters { grid-auto-columns: 168px; gap: 14px; }
  .shelf-nav { display: none; }
  .drawer-head { padding: 24px 20px 18px; }
  .chips { padding: 14px 20px 0; }
  .drawer-list { padding: 10px 8px 16px; }
  .lrow { grid-template-columns: 120px 1fr; gap: 14px; padding: 10px; }
  .lrow .t { font-size: 15px; }
  .lrow .go { display: none; }
  .course-top { grid-template-columns: 1fr; }
  .course-top .poster { max-width: 200px; }
  .course-top h1 { font-size: 32px; }
  .lesson-title h1 { font-size: 28px; }
  .sitem { grid-template-columns: 120px 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .mat { grid-template-columns: 40px 1fr; }
  .mat-act { grid-column: 1 / -1; }
}
