Files
compor-academy/styles/app.css
Cauê Faleiros fff63f5efa
All checks were successful
CI / Validate frontend and API (push) Successful in 59s
CI / Build and publish Docker images (push) Successful in 23s
feat: add reviews, notifications, notes and account hardening
2026-11-05 17:27:36 -03:00

950 lines
71 KiB
CSS

/*
* Compor Academy — componentes.
* Cores e medidas vêm de styles/tokens.css; não declare cores soltas aqui.
* Referência: design/prototype-reference.html (versão UI Skills).
*/
/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100% }
body {
margin: 0; min-height: 100vh;
background: var(--bg); color: var(--fg);
font-family: var(--font); font-size: 15px; line-height: 1.47; letter-spacing: -.012em;
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
transition: background-color .35s var(--ease), color .35s var(--ease);
}
h1, h2, h3, h4, p, ol, ul, figure, dl, dd { margin: 0; padding: 0 }
ol, ul { list-style: none }
a { color: inherit; text-decoration: none }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit }
button { background: none; border: 0; cursor: pointer; padding: 0 }
button:disabled { cursor: default }
img { display: block; max-width: 100% }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px }
h1, h2, h3 { font-variation-settings: "opsz" 32; text-wrap: balance }
p, small { text-wrap: pretty }
.ph { flex: none; vertical-align: -.125em }
.num { font-variant-numeric: tabular-nums }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 }
.muted { color: var(--fg-2) }
.faint { color: var(--fg-3) }
.bad-text { color: var(--bad) }
.ok-text { color: var(--ok) }
[hidden] { display: none !important }
.wrap {
max-width: 1180px; margin: 0 auto;
padding-left: max(24px, env(safe-area-inset-left, 0px));
padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.page { padding-block: 40px 96px; min-height: 60vh }
.page.has-hero { padding-top: 36px }
/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
@keyframes mfade { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes grow { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes fill { to { transform: scaleX(1) } }
@keyframes spin { to { transform: rotate(360deg) } }
.enter { animation: rise .28s var(--ease) }
.enter .prog i, .enter .inprog i { transform-origin: left; animation: grow .9s var(--ease) .2s both }
.spin { animation: spin 1.2s linear infinite }
/* ---------- buttons ---------- */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 7px;
height: 36px; padding: 0 16px; border-radius: 980px;
background: var(--blue); color: var(--white); font-size: 14px; font-weight: 500; white-space: nowrap;
transition: background-color .2s, transform .15s var(--ease), opacity .2s;
}
@media (hover: hover) { .btn:hover { background: var(--blue-press) } }
.btn:active, .iconbtn:active { transform: scale(.96) }
.btn:disabled { opacity: .5; transform: none }
.btn.lg { height: 44px; padding: 0 22px; font-size: 16px }
.btn.sec { background: var(--bg-2); color: var(--fg) }
@media (hover: hover) { .btn.sec:hover { background: var(--bg-3) } }
.btn.ghost { background: transparent; color: var(--blue-text); padding: 0 4px }
@media (hover: hover) { .btn.ghost:hover { background: transparent; text-decoration: underline } }
.btn.danger { background: var(--bg-2); color: var(--bad) }
@media (hover: hover) { .btn.danger:hover { background: var(--bg-3) } }
.btn.block { width: 100% }
.btn .ph { font-size: 15px }
.iconbtn {
width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
font-size: 18px; color: var(--fg); flex: none;
transition: background-color .2s, transform .15s var(--ease), opacity .2s;
}
@media (hover: hover) { .iconbtn:hover { background: var(--bg-2) } }
.iconbtn:disabled { opacity: .35 }
.iconbtn.danger { color: var(--bad) }
.link { color: var(--blue-text); display: inline-flex; align-items: center; gap: 2px }
@media (hover: hover) { .link:hover { text-decoration: underline } }
.link .ph { font-size: 12px }
/* ---------- page heads ---------- */
.ptitle { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px }
.ptitle h1 { font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -.035em }
.ptitle p { color: var(--fg-2); margin-top: 6px; font-size: 15px }
.ptitle .acts { display: flex; gap: 8px; flex-wrap: wrap }
.crumb { font-size: 13px; color: var(--fg-3); display: flex; gap: 6px; align-items: center; margin-bottom: 16px; flex-wrap: wrap }
@media (hover: hover) { .crumb a:hover { color: var(--fg) } }
.crumb .ph { font-size: 11px }
.shelf { margin-top: 56px }
.shelf:first-child { margin-top: 0 }
.shelf > header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 16px }
.shelf h2 { font-size: 24px; font-weight: 700; letter-spacing: -.025em }
.shelf > header .count { color: var(--fg-2); font-size: 14px }
.note { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r-s); background: var(--bg-2); font-size: 14px }
.note b { font-weight: 600 }
.empty { padding: 48px 0; text-align: center; color: var(--fg-2) }
.loading { padding: 96px 0; display: grid; place-items: center; color: var(--fg-3); font-size: 24px }
/* ---------- segmented, tabs, chips, search ---------- */
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-2); gap: 2px; overflow-x: auto; max-width: 100%; scrollbar-width: none }
.seg button { height: 30px; padding: 0 14px; border-radius: 8px; font-size: 13px; color: var(--fg-2); white-space: nowrap; transition: background-color .2s, box-shadow .2s }
.seg button[aria-pressed="true"] { background: var(--raise); color: var(--fg); font-weight: 500 }
:root.dark .seg button[aria-pressed="true"] { background: var(--bg-3) }
.tabs { display: flex; gap: 8px; margin-top: 28px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none }
.tabs::-webkit-scrollbar { display: none }
.tabs button { padding: 8px 14px; border-radius: 980px; font-size: 14px; color: var(--fg-2); white-space: nowrap; transition: color .2s, background-color .2s }
.tabs button[aria-selected="true"] { background: var(--bg-2); color: var(--fg); font-weight: 500 }
.tabs button span { color: var(--fg-3); margin-left: 4px }
.pane { padding-top: 20px }
.chips2 { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 8px }
.chips2 button { height: 32px; padding: 0 14px; border-radius: 980px; background: var(--bg-2); font-size: 14px; transition: background-color .2s, transform .15s }
@media (hover: hover) { .chips2 button:hover { background: var(--bg-3) } }
.chips2 button:active { transform: scale(.96) }
.chips2 button[aria-pressed="true"] { background: var(--fg); color: var(--bg) }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--bg-2); color: var(--fg-2); min-width: 0; width: 260px; max-width: 100% }
.search input { border: 0; background: none; outline: none; flex: 1; min-width: 0; color: var(--fg); font-size: 14px }
.search input::-webkit-search-cancel-button { -webkit-appearance: none }
.bigsearch { width: 100%; height: 48px; border-radius: 12px; font-size: 17px; padding: 0 16px }
.bigsearch input { font-size: 17px }
.bigsearch .ph { font-size: 18px }
/* ---------- artwork: course covers and trilha posters ---------- */
.tr-midia { --cc: var(--c-midia); --co: var(--c-midia-on) }
.tr-conv { --cc: var(--c-conv); --co: var(--c-conv-on) }
.tr-oper { --cc: var(--c-oper); --co: var(--c-oper-on) }
.has-img { --co: var(--white) }
.art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit }
.cover {
position: relative; aspect-ratio: 16/10; max-width: 100%; border-radius: var(--r); overflow: hidden;
background: var(--cc); color: var(--co);
display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 18px;
box-shadow: inset 0 0 0 1px var(--art-edge);
}
.cover .t { position: relative; font-size: 20px; line-height: 1.12; font-weight: 700; letter-spacing: -.025em; max-width: 90%; text-wrap: balance }
.cover.hp { padding-bottom: 34px }
.cover.big { aspect-ratio: 16/9; padding: 24px 28px }
.cover.big .t { font-size: 30px; max-width: 70% }
.cover.mini { padding: 0; border-radius: 10px }
.cover.mini .t, .cover.mini .inprog { display: none }
.cover .inprog, .poster .inprog {
position: absolute; left: 16px; right: 16px; bottom: 14px; height: 4px; border-radius: 2px;
background: color-mix(in srgb, var(--co) 28%, transparent); overflow: hidden; z-index: 1;
}
.poster .inprog { left: 18px; right: 18px; bottom: 16px }
.cover .inprog i, .poster .inprog i { display: block; height: 100%; background: var(--co); border-radius: 2px; transform-origin: left }
.has-img .inprog { box-shadow: 0 0 0 1px var(--art-progress-edge) }
.prog { height: 4px; border-radius: 2px; background: var(--bg-3); overflow: hidden; margin-top: 10px }
.prog i { display: block; height: 100%; background: var(--blue); border-radius: 2px }
.thumb { display: block; width: 44px; height: 28px; border-radius: 6px; background: var(--cc); flex: none; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px var(--art-edge) }
.card { display: block; min-width: 0 }
.card .cover { transition: transform .18s ease-out }
.card .m { margin-top: 10px; font-size: 13px; color: var(--fg-2) }
.card .m b { display: block; color: var(--fg); font-size: 14px; font-weight: 600; margin-bottom: 1px }
.card .m .one { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px }
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
/* trilha posters: vertical 2:3, two real cards stacked behind */
.poster-card { position: relative; display: block; min-width: 0; isolation: isolate; padding-top: 14px }
.poster {
position: relative; z-index: 2; aspect-ratio: 2/3; max-width: 100%; border-radius: var(--r); overflow: hidden;
background: var(--cc); color: var(--co);
display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 18px 20px;
box-shadow: inset 0 0 0 1px var(--art-edge); transition: transform .18s ease-out;
}
.poster > div { position: relative }
.poster .t { display: block; font-size: 26px; line-height: 1.08; font-weight: 700; letter-spacing: -.03em; text-wrap: balance }
.poster .n { display: block; margin-top: 10px; font-size: 13px; opacity: .72 }
.poster:has(.inprog) { padding-bottom: 34px }
.poster-card::before, .poster-card::after {
content: ""; position: absolute; top: 14px; left: 0; right: 0; aspect-ratio: 2/3; border-radius: var(--r);
pointer-events: none; transform-origin: top center; transition: transform .25s ease-out;
}
.poster-card::before { z-index: 1; background: color-mix(in srgb, var(--cc) 62%, var(--bg)); transform: translateY(-7px) scale(.92) }
.poster-card::after { z-index: 0; background: color-mix(in srgb, var(--cc) 32%, var(--bg)); transform: translateY(-14px) scale(.84) }
.tr-oper.poster-card::before { background: color-mix(in srgb, var(--cc) 94%, var(--fg) 6%) }
.tr-oper.poster-card::after { background: color-mix(in srgb, var(--cc) 97%, var(--fg) 3%) }
:root.dark .tr-midia.poster-card::before { background: color-mix(in srgb, var(--black) 82%, var(--fg) 18%) }
:root.dark .tr-midia.poster-card::after { background: color-mix(in srgb, var(--black) 90%, var(--fg) 10%) }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px }
@media (max-width: 1180px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
@media (hover: hover) {
.card:hover .cover, .poster-card:hover .poster { transform: translateY(-2px) }
.poster-card:hover::before { transform: translateY(-10px) scale(.92) }
.poster-card:hover::after { transform: translateY(-19px) scale(.84) }
.poster-card:hover .poster { transform: translateY(-3px) }
}
/* ---------- rows (shelves) ---------- */
.rowhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px }
.rowhead h2 { font-size: 24px; font-weight: 700; letter-spacing: -.025em }
.rowhead .nav2 { display: flex; align-items: center; gap: 6px; opacity: 0; transition: opacity .25s }
.rowhead .nav2 .iconbtn { width: 30px; height: 30px; font-size: 14px; background: var(--bg-2) }
.rowhead .nav2:focus-within { opacity: 1 }
@media (hover: hover) { .shelf:hover .rowhead .nav2 { opacity: 1 } }
.shead { display: inline-flex; align-items: center; gap: 4px; color: var(--fg) }
.shead .ph { font-size: 16px; color: var(--fg-3); transition: transform .25s var(--ease), color .2s }
@media (hover: hover) { .shead:hover .ph { transform: translateX(3px); color: var(--fg) } }
.rail {
display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
overscroll-behavior-x: contain; padding: 8px 0 14px; margin: -8px 0 -14px;
}
.rail::-webkit-scrollbar { display: none }
.rail > * { scroll-snap-align: start }
.rail.wide { grid-auto-columns: calc((100% - 2 * 20px) / 3) }
.rail.tall { grid-auto-columns: calc((100% - 4 * 20px) / 5); padding-top: 20px; margin-top: -20px }
@media (max-width: 1180px) {
.rail { grid-auto-columns: calc((100% - 2 * 20px) / 3) }
.rail.wide { grid-auto-columns: calc((100% - 20px) / 2) }
.rail.tall { grid-auto-columns: calc((100% - 3 * 20px) / 4) }
}
/* ---------- people ---------- */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px }
.pcard { border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--bg-2); transition: transform .18s ease-out, background-color .2s }
.pcard .av { margin-bottom: 14px; width: 64px; height: 64px; font-size: 22px }
.pcard b { font-size: 16px; font-weight: 600 }
.pcard small { color: var(--fg-2); font-size: 13px }
.pcard > span.num { margin-top: 12px; font-size: 13px; color: var(--fg-3) }
@media (hover: hover) { .pcard:hover { transform: translateY(-2px); background: var(--bg-3) } }
.person { display: flex; align-items: center; gap: 12px; min-width: 0 }
.person small { display: block; color: var(--fg-2); font-size: 13px }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-3); color: var(--fg); display: grid; place-items: center; font-size: 14px; font-weight: 600; flex: none; overflow: hidden; position: relative; letter-spacing: 0 }
.av img { width: 100%; height: 100%; object-fit: cover }
.av.sm { width: 30px; height: 30px; font-size: 12px }
.av.md { width: 72px; height: 72px; font-size: 24px }
.av.xl { width: 96px; height: 96px; font-size: 32px }
/* ---------- lists ---------- */
.list { display: grid; gap: 2px }
.row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 4px; border-radius: 12px; transition: background-color .2s; text-align: left; width: 100% }
.row .i { color: var(--fg-3); font-size: 14px; display: inline-flex; justify-content: center }
.row .t { font-weight: 500; min-width: 0 }
.row .t small { display: block; color: var(--fg-2); font-weight: 400; font-size: 13px }
.row .r { color: var(--fg-2); font-size: 13px; display: flex; gap: 14px; align-items: center; justify-content: flex-end }
@media (hover: hover) { a.row:hover, button.row:hover { background: var(--bg-2) } }
.done { color: var(--ok); display: inline-flex; align-items: center; gap: 6px }
.lessons .row { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 11px 10px; border-radius: 10px }
.lessons .row[aria-current] { background: var(--bg-2) }
.lessons .row[aria-current] .i { color: var(--blue) }
.file { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0 }
.file .ic { width: 24px; height: 24px; display: grid; place-items: center; font-size: 20px; color: var(--fg-2) }
.file small { display: block; color: var(--fg-2); font-size: 13px }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-2); white-space: nowrap }
.state .ph { font-size: 16px }
.state.bad { color: var(--bad) }
.state .link { font-size: 14px; margin-left: 6px }
.ic-cnt { display: inline-flex; align-items: center; gap: 6px }
.ic-prof { display: inline-flex; color: var(--blue); font-size: 16px }
.cmeta { display: grid !important; grid-template-columns: 18px 44px; gap: 12px; align-items: center; justify-items: start }
/* ---------- layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr) } }
.side { display: flex; flex-direction: column; gap: 20px; min-width: 0 }
.box { border-radius: var(--r); padding: 20px; background: var(--bg-2); min-width: 0 }
.box h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px }
.box p.small { font-size: 14px; color: var(--fg-2) }
a.box { display: block; transition: transform .18s ease-out, background-color .2s }
@media (hover: hover) { a.box:hover { transform: translateY(-2px); background: var(--bg-3) } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px }
.kv dt { color: var(--fg-2) }
.kv dd { margin: 0; text-align: right }
.contbox { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto; gap: 24px; align-items: center }
.contbox h2 { font-size: 22px; letter-spacing: -.025em; margin-top: 2px }
.contbox .cover { width: 180px }
.learning-seg { margin-bottom: 24px }
.trail-course { grid-template-columns: 28px 132px minmax(0, 1fr) auto; gap: 16px; min-height: 108px }
.trail-course .cover { width: 132px; aspect-ratio: 16/10 }
.trail-teacher { margin-top: 12px }
.profile-head { display: flex; gap: 24px; align-items: center; margin: 24px 0 }
.profile-head h1 { font-size: 40px; line-height: 1.05; letter-spacing: -.035em }
.profile-head p { color: var(--fg-2); margin-top: 6px; font-size: 16px }
.profile-bio { max-width: 68ch; white-space: pre-line; color: var(--fg-2); font-size: 16px }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px }
.profile-avatar { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 16px 0 32px }
.profile-avatar .av { width: 96px; height: 96px }
.profile-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px }
.profile-fields h2 { font-size: 24px; letter-spacing: -.025em }
.profile-fields .form { max-width: none }
.profile-fields .field label > svg { width: 16px; height: 16px; vertical-align: middle }
.profile-save { margin-top: 28px }
.file-name { display: flex; align-items: center; gap: 12px }
.file-name .ic { font-size: 20px; color: var(--fg-2) }
.file-name small { display: block; color: var(--fg-2); font-size: 13px }
.discussion-row { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 16px 4px }
.discussion-row .t { overflow: hidden; text-overflow: ellipsis }
.settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px }
.subnav { display: flex; flex-direction: column; gap: 2px; font-size: 14px }
.subnav a, .subnav button { padding: 8px 12px; border-radius: 8px; color: var(--fg-2); text-align: left }
.subnav [aria-current] { background: var(--bg-2); color: var(--fg); font-weight: 500 }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px }
.toolbar .sp { flex: 1 }
/* ---------- course head and player ---------- */
.chead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; margin-bottom: 48px }
@media (max-width: 1100px) { .chead { grid-template-columns: minmax(0, 1fr) } }
.chead h1 { font-size: 40px; line-height: 1.06; font-weight: 700; letter-spacing: -.035em }
.chead p.d { margin-top: 14px; color: var(--fg-2); font-size: 16px; max-width: 52ch }
.chead .meta { margin-top: 16px; font-size: 14px; color: var(--fg-2) }
.chead .acts { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap }
.player { position: relative; display: block; aspect-ratio: 16/9; max-width: 100%; border-radius: var(--r); background: var(--black); color: var(--white); overflow: hidden }
.player iframe, .player video, .player > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain }
.player > img { object-fit: cover; opacity: .55 }
.player .pl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--video-muted); font-size: 14px }
.player .pl .playbtn { width: 64px; height: 64px; border-radius: 50%; background: var(--white); color: var(--black); display: grid; place-items: center; font-size: 22px }
.player .pl .playbtn .ph { margin-left: 3px }
.player .ctl { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--video-muted) }
.player .msg { display: grid; gap: 14px; justify-items: center; max-width: 42ch }
.player .msg b { color: var(--white); font-size: 17px; font-weight: 600 }
.ltitle { margin-top: 20px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap }
.ltitle h1 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15 }
.ltitle small { display: block; color: var(--fg-2); font-size: 14px; margin-top: 4px }
.ltitle .acts { display: flex; gap: 8px }
.ldesc { margin-top: 16px; color: var(--fg-2); max-width: 68ch; white-space: pre-line }
.comment { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding-block: 14px }
.comment .h { font-size: 13px; color: var(--fg-2) }
.comment .h b { color: var(--fg); font-weight: 600; margin-right: 6px }
.comment p { margin-top: 4px; white-space: pre-line }
.comment .reply { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2) }
.comment .tools { margin-top: 8px; display: flex; gap: 14px; font-size: 13px }
.tagp { font-size: 11px; font-weight: 600; color: var(--blue-text); margin-left: 6px }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 12px; border-radius: 14px; background: var(--bg-2) }
.composer textarea { flex: 1; min-width: 0; border: 0; background: none; outline: none; resize: none; min-height: 44px; color: var(--fg) }
/* ---------- tables ---------- */
.tablewrap { overflow-x: auto }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px }
th { text-align: left; font-weight: 500; color: var(--fg-2); font-size: 13px; padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap }
td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle }
tr:last-child td { border-bottom: 0 }
tbody tr.click { cursor: pointer }
@media (hover: hover) { tbody tr.click:hover td { background: var(--bg-2) } }
td.right, th.right { text-align: right }
td .acts { display: inline-flex; gap: 4px; justify-content: flex-end }
.st { font-size: 14px; color: var(--fg-2) }
.st.bad { color: var(--bad) }
select.sel { height: 30px; border-radius: 8px; border: 0; background: var(--bg-2); padding: 0 8px; font-size: 13px }
.select-trigger { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; height: 30px; min-width: 96px; padding: 0 8px 0 10px; border-radius: 8px; background: var(--bg-2); color: var(--fg); font-size: 13px; text-align: left; transition: background-color .2s }
@media (hover: hover) { .select-trigger:hover { background: var(--bg-3) } }
.select-trigger:disabled { opacity: .5; cursor: not-allowed }
.select-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px }
.select-trigger .ph { font-size: 12px; color: var(--fg-3); flex: none }
.select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.select-trigger.field { display: flex; width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 15px }
.select-trigger.mobile { display: flex; flex: 1; width: auto; height: auto; min-height: 36px; padding: 8px 0; border-radius: 0; background: transparent; font-size: 16px }
.select-trigger.mobile .ph { font-size: 14px }
.select-menu { position: fixed; z-index: 61; max-height: 260px; overflow-y: auto; background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: var(--menu-shadow); animation: pop .18s var(--ease) both; transform-origin: top left }
.select-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 14px; text-align: left; color: var(--fg) }
@media (hover: hover) { .select-menu button:hover { background: var(--bg-2) } }
.select-menu button[aria-selected="true"] { font-weight: 600 }
.select-menu button .ph { color: var(--blue-text); font-size: 16px; flex: none }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px }
.stats.five { grid-template-columns: repeat(5, minmax(0, 1fr)) }
.stats > div { background: var(--bg-2); border-radius: 14px; padding: 16px 18px }
.stats small { display: block; color: var(--fg-2); font-size: 13px }
.stats b { font-size: 24px; font-weight: 600; letter-spacing: -.02em }
/* ---------- forms ---------- */
.form { display: grid; gap: 16px; max-width: 520px }
.form.wide { max-width: none }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.field label, .field > span.lb { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px }
.field input, .field textarea, .field select, input.input, select.input, textarea.input {
width: 100%; height: 40px; border-radius: 10px; border: 0; background: var(--bg-2);
padding: 0 12px; font-size: 15px; color: var(--fg); outline: none;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible, .input:focus-visible { outline: 2px solid var(--blue); outline-offset: 0 }
.field textarea, textarea.input { height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.45 }
.field small { display: block; color: var(--fg-2); font-size: 12px; margin-top: 6px }
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: var(--fg-3) }
.formmsg { font-size: 14px; color: var(--fg-2) }
.formmsg.bad { color: var(--bad) }
.formmsg.ok { color: var(--ok) }
.drop { border-radius: 14px; padding: 28px; text-align: center; color: var(--fg-2); font-size: 14px; background: var(--bg-2); display: block; width: 100%; transition: background-color .2s }
.drop .ph { font-size: 24px; display: block; margin: 0 auto 8px; color: var(--fg-3) }
.drop.over { background: var(--bg-3) }
@media (hover: hover) { button.drop:hover, label.drop:hover { background: var(--bg-3) } }
.drop small { display: block; color: var(--fg-3); font-size: 12px; margin-top: 4px }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px }
.toggle small { display: block; color: var(--fg-2); font-size: 13px }
.sw { width: 42px; height: 26px; border-radius: 13px; background: var(--bg-3); position: relative; flex: none; transition: background-color .25s }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: var(--switch-shadow); transition: transform .2s }
.sw[aria-checked="true"] { background: var(--blue) }
.sw[aria-checked="true"]::after { transform: translateX(16px) }
.sw:disabled { opacity: .5 }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer }
.check input { width: 16px; height: 16px; accent-color: var(--blue) }
/* ---------- auth ---------- */
.auth { width: 100%; max-width: 380px; margin: 40px auto 0; text-align: center }
.auth h1 { font-size: 32px; font-weight: 700; letter-spacing: -.03em }
.auth > p { color: var(--fg-2); margin-top: 8px }
.auth form { margin-top: 28px; text-align: left; display: grid; gap: 14px }
.auth form .btn { width: 100%; height: 44px; font-size: 15px }
.auth .seg { width: 100%; display: flex }
.auth .seg button { flex: 1 }
.auth .alt { margin-top: 20px; font-size: 14px; color: var(--fg-2) }
/* Desktop: center the auth card in the viewport (auto margins keep it reachable when it overflows). */
@media (min-width: 901px) {
.auth-page { min-height: 100svh; display: flex; flex-direction: column; padding-block: 40px }
.auth-page .auth { margin-block: auto }
}
/* ---------- dialogs and toasts ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 70; animation: fade .2s both; display: grid; place-items: center; padding: 16px; overflow-y: auto }
.dialog { position: relative; width: 100%; max-width: 520px; background: var(--raise); border-radius: var(--r); padding: 24px; box-shadow: var(--menu-shadow); animation: pop .22s var(--ease) both; max-height: calc(100vh - 32px); overflow-y: auto }
.dialog.wide { max-width: 760px }
.dialog > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px }
.dialog > header h2 { font-size: 22px; font-weight: 700; letter-spacing: -.025em }
.dialog > header p { color: var(--fg-2); font-size: 14px; margin-top: 4px }
.dialog > footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px }
.toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: grid; gap: 8px; pointer-events: none }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px; padding: 12px 14px; border-radius: 14px; background: var(--raise); color: var(--fg); box-shadow: var(--menu-shadow); font-size: 14px; animation: pop .22s var(--ease) both }
:root:not(.dark) .toast { box-shadow: 0 0 0 1px var(--line-2), var(--menu-shadow) }
.toast .ph { font-size: 18px; color: var(--fg-2) }
.toast.error .ph { color: var(--bad) }
.toast p { flex: 1; min-width: 0 }
.toast small { display: block; color: var(--fg-2); font-size: 13px }
/* ---------- logo ---------- */
.logo { display: inline-flex; color: var(--fg); line-height: 0; flex: none }
.logo svg { display: block; height: auto }
.logo .sig { fill: var(--blue) }
.mark { display: none; font-size: 22px; font-weight: 700; letter-spacing: -.05em; line-height: 1; position: relative; color: var(--fg) }
.mark::after { content: ""; position: absolute; right: -7px; bottom: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue) }
/* ---------- desktop shell: floating glass sidebar ---------- */
.main { min-width: 0; display: flex; flex-direction: column; padding-left: var(--sw); transition: padding-left .35s var(--ease) }
.main > main, .main > .m-page { width: 100% }
.sidebar {
position: fixed; top: 12px; bottom: 12px; left: 12px; width: 240px; z-index: 25;
display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
border-radius: 26px; border: 1px solid var(--glass-line); background: var(--glass);
backdrop-filter: blur(40px) saturate(200%); -webkit-backdrop-filter: blur(40px) saturate(200%);
box-shadow: none;
padding: 16px 12px 14px; transition: width .35s var(--ease), padding .35s var(--ease), background-color .35s;
}
.side-top { display: flex; justify-content: flex-start; padding: 0 4px 6px }
.side-top .iconbtn { color: var(--fg-2); font-size: 20px }
@media (hover: hover) { .side-top .iconbtn:hover { background: var(--glass-hover) } }
.sidebar > .logo { margin: 6px 12px 28px; align-self: flex-start }
.sgroup { margin-top: 14px }
.sgroup.solo { margin-top: 0; display: grid; gap: 2px }
.ghead { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 32px; padding: 6px 12px; border-radius: 8px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: var(--fg); transition: background-color .2s }
.ghead .ph { font-size: 12px; color: var(--fg-3); transition: transform .3s var(--ease) }
.sgroup.shut .ghead .ph { transform: rotate(-90deg) }
@media (hover: hover) { .ghead:hover { background: var(--glass-hover) } }
.gbody { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s var(--ease) }
.gbody > div { overflow: hidden; display: grid; gap: 2px; padding-top: 4px }
.sgroup.shut .gbody { grid-template-rows: 0fr }
.sitem { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--fg); transition: background-color .2s, color .2s, transform .15s var(--ease) }
.sitem .ph { font-size: 19px; color: var(--fg-2); transition: color .2s }
@media (hover: hover) { .sitem:hover { background: var(--glass-hover) } }
.sitem:active { transform: scale(.96) }
.sitem[aria-current] { background: var(--blue); color: var(--white) }
.sitem[aria-current] .ph, .sitem[aria-current] .cnt { color: var(--white) }
.sitem .cnt { margin-left: auto; font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums }
.lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .2s }
.side-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; align-items: stretch; gap: 10px }
.frow { display: flex; align-items: center; gap: 6px; min-width: 0 }
.frow > .who-row { flex: 1; min-width: 0 }
@media (hover: hover) { .frow > .iconbtn:hover { background: var(--glass-hover) } }
.who-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: left; color: var(--fg); transition: background-color .2s }
@media (hover: hover) { .who-row:hover { background: var(--glass-hover) } }
.guestav { background: var(--bg-3); color: var(--fg-2); font-size: 15px }
.guestbtn { width: 100%; height: 38px }
:root.collapsed { --sw: 88px }
:root.collapsed .sidebar { width: 64px; padding-left: 8px; padding-right: 8px }
:root.collapsed .side-top { justify-content: center; padding: 0 0 6px }
:root.collapsed .sidebar > .logo { margin: 6px auto 28px; align-self: center }
:root.collapsed .sidebar > .logo svg { display: none }
:root.collapsed .mark { display: block }
:root.collapsed .sitem { justify-content: center; padding: 10px 0 }
:root.collapsed .sitem .lbl, :root.collapsed .sitem .cnt { display: none }
:root.collapsed .ghead { width: auto; justify-content: center; padding: 0; min-height: 0; height: 12px; background: transparent; margin: 8px 10px; overflow: hidden; pointer-events: none }
:root.collapsed .ghead .ph, :root.collapsed .ghead .lbl { display: none }
:root.collapsed .sgroup.shut .gbody { grid-template-rows: 1fr }
:root.collapsed .side-foot .frow { flex-direction: column; gap: 8px }
:root.collapsed .who-row { justify-content: center; padding: 4px 0 }
:root.collapsed .who-row .lbl, :root.collapsed .guestbtn { display: none }
.main .wrap { padding-left: 44px; padding-right: 48px; max-width: 1240px }
/* account menu: floats above the page (fixed on body) so the sidebar never clips it */
.menu { position: fixed; z-index: 60; width: 220px; background: var(--raise); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--menu-shadow); animation: pop .22s var(--ease) both; transform-origin: bottom left }
.menu .who { padding: 10px 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; min-width: 0 }
.menu .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.menu .who small { display: block; color: var(--fg-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 14px; text-align: left }
@media (hover: hover) { .menu a:hover, .menu button:hover { background: var(--bg-2) } }
.menu .ph { font-size: 16px; color: var(--fg-2) }
.rowmenu { position: relative; display: inline-flex }
.menu-scrim { position: fixed; inset: 0; z-index: 59; background: transparent; border: 0; padding: 0 }
/* ---------- hero carousel (full-bleed, runs under the glass) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; height: min(64vh, 600px); min-height: 480px; background: var(--c-midia); margin-left: calc(-1 * var(--sw)); transition: margin-left .35s var(--ease) }
.hero .wrap { max-width: 1240px; margin-left: calc(var(--sw) + max(0px, (100% - var(--sw) - 1240px) / 2)); margin-right: 0; padding-left: 44px; padding-right: 48px }
.slide { position: absolute; inset: 0; background: var(--cc); color: var(--co); opacity: 0; visibility: hidden; transition: opacity .5s ease-out, visibility 0s .5s }
.slide.on { opacity: 1; visibility: visible; transition: opacity .5s ease-out, visibility 0s }
.slide > .art-img { border-radius: 0 }
.slide.has-img::before { content: ""; position: absolute; inset: 0; background: var(--image-scrim); z-index: 1 }
.slide .sl { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; padding-block: 120px 84px }
.slide .copy > * { opacity: 0; transform: translateY(18px); transition: opacity .45s ease-out, transform .45s ease-out }
.slide.on .copy > * { opacity: 1; transform: none }
.slide.on .copy > *:nth-child(2) { transition-delay: .08s }
.slide.on .copy > *:nth-child(3) { transition-delay: .16s }
.slide.on .copy > *:nth-child(4) { transition-delay: .24s }
.slide h2 { font-size: clamp(48px, 6.2vw, 92px); line-height: .98; font-weight: 700; letter-spacing: -.045em; max-width: 15ch }
.slide .meta { margin-top: 18px; font-size: 17px; opacity: .85 }
.slide p { margin-top: 10px; font-size: 17px; line-height: 1.42; opacity: .85; max-width: 52ch }
.slide .acts { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap }
.slide .b1 { background: var(--co); color: var(--cc) }
.slide.has-img .b1 { color: var(--black) }
@media (hover: hover) { .slide .b1:hover { background: var(--co); opacity: .9 } }
.slide .b2 { background: transparent; color: var(--co); box-shadow: inset 0 0 0 1px currentColor; opacity: .9 }
@media (hover: hover) { .slide .b2:hover { background: transparent; opacity: 1 } }
.htitle { position: absolute; inset: 0 0 auto; z-index: 2; padding-top: 28px; pointer-events: none }
.htitle h1 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--hc, var(--white)); transition: color .6s }
.hdots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; display: flex; justify-content: center; gap: 8px; color: var(--hc, var(--white)) }
.dot { position: relative; width: 8px; height: 8px; border-radius: 4px; background: currentColor; opacity: .35; overflow: hidden; transition: width .5s var(--ease), opacity .3s }
.dot.on { width: 40px; opacity: 1; background: color-mix(in srgb, currentColor 30%, transparent) }
.dot.on i { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(0); animation: fill var(--dur, 6s) linear forwards }
.hero.paused .dot.on i { animation-play-state: paused }
.harrow { position: absolute; bottom: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: var(--hc, var(--white)); opacity: 0; background: color-mix(in srgb, currentColor 14%, transparent); transition: opacity .25s, background-color .2s, transform .15s }
@media (hover: hover) { .harrow:hover { background: color-mix(in srgb, currentColor 24%, transparent) } }
.harrow:active { transform: scale(.94) }
.harrow.l { right: 96px } .harrow.r { right: 48px }
.harrow:focus-visible { opacity: 1 }
@media (hover: hover) { .hero:hover .harrow { opacity: 1 } }
/* ---------- editor bits (gerenciar) ---------- */
.lessonrow { display: grid; grid-template-columns: 20px 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 4px; border-radius: 12px }
.lessonrow .grip { color: var(--fg-3); display: inline-flex; flex-direction: column; gap: 0 }
.lessonrow .grip button { color: var(--fg-3); font-size: 14px; line-height: 1 }
.lessonrow .grip button:disabled { opacity: .3 }
.lessonrow .i { color: var(--fg-3); font-size: 14px; text-align: center }
.lessonrow .t small { display: block; color: var(--fg-2); font-size: 13px }
.lessonrow .acts { display: flex; gap: 2px }
.coveredit { position: relative; aspect-ratio: 16/9; border-radius: var(--r-s); overflow: hidden; background: var(--bg-3) }
.coveredit .cover { aspect-ratio: auto; position: absolute; inset: 0; border-radius: 0 }
.coveredit .drag { position: absolute; inset: 0; cursor: grab; touch-action: none; display: grid; place-items: center; color: var(--white); font-size: 13px; z-index: 2 }
.coveredit .drag span { background: var(--drag-bg); padding: 6px 12px; border-radius: 980px }
.coveredit .drag:active { cursor: grabbing }
.zoomctl { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--fg-2) }
.zoomctl .iconbtn { width: 30px; height: 30px; font-size: 15px; background: var(--bg-3) }
.zoomctl .iconbtn[aria-pressed="true"] { background: var(--blue); color: var(--white) }
.steps { display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap }
.steps button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 980px; background: var(--bg-2); font-size: 14px; color: var(--fg-2) }
.steps button[aria-current] { background: var(--fg); color: var(--bg); font-weight: 500 }
.steps button .num { font-weight: 600 }
.pick { display: grid; gap: 2px; max-height: 280px; overflow-y: auto; padding: 4px; border-radius: var(--r-s); background: var(--bg-2) }
.pick button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-align: left; font-size: 14px }
@media (hover: hover) { .pick button:hover { background: var(--bg-3) } }
.pick button[aria-pressed="true"] { color: var(--blue-text) }
.pick button small { margin-left: auto; color: var(--fg-2); font-size: 13px }
/* ---------- mobile ≤900px: its own navigation ---------- */
.tabbar { display: none }
@media (max-width: 900px) {
:root { --sw: 0px }
.sidebar { display: none }
.main { padding-left: 0 }
body { overscroll-behavior-y: none }
input, textarea, select { font-size: 16px !important }
button, a, [role=tab] { touch-action: manipulation }
button, .tabbar a, .m-seg, .m-chips, .btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none }
.wrap, .main .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.page { padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) }
.ptitle h1, .chead h1 { font-size: 32px }
.crumb { display: none }
.shelf h2, .rowhead h2 { font-size: 20px }
.shelf { margin-top: 36px }
.split { gap: 28px }
.contbox { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px }
.contbox .cover { width: 72px }
.contbox > .btn { grid-column: 1 / -1; width: 100% }
.contbox h2 { font-size: 18px !important }
.stats, .stats.five { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.settings { grid-template-columns: minmax(0, 1fr); gap: 24px }
.form .two { grid-template-columns: minmax(0, 1fr) }
.grid, .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px }
.pcards { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.pcard { padding: 16px }
.toasts { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); left: max(16px, env(safe-area-inset-left, 0px)) }
.toast { min-width: 0; max-width: none }
/* tables become stacked rows: first cell is the title, the rest sit under it */
.tablewrap { overflow: visible }
table { min-width: 0 }
thead { display: none }
tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2) }
tbody td { display: block; padding: 0; border: 0; font-size: 13px; color: var(--fg-2) }
tbody td:first-child { flex: 1 0 100%; font-size: 15px; color: var(--fg) }
tbody td:last-child:not(:first-child) { margin-left: auto }
tbody td:empty { display: none }
.t-mat td:nth-child(3)::before { content: "Aula " }
.t-ger td:nth-child(3)::after { content: " aulas" }
.t-ger td:nth-child(4)::after { content: " alunos" }
.t-ger td:nth-child(5)::before { content: "Atualizado em " }
.lessonrow { grid-template-columns: 20px 24px minmax(0, 1fr) auto; }
.lessonrow > .state { grid-column: 3 / -1 }
.dialog { padding: 20px }
.tabbar {
display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; min-height: 58px;
padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
box-shadow: 0 -1px 0 var(--line-2);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; min-height: 48px; justify-content: center; color: var(--fg-3); font-size: 10px; font-weight: 500; letter-spacing: 0 }
.tabbar .ph { font-size: 24px }
.tabbar [aria-current] { color: var(--blue) }
.tabbar a:active { opacity: .6 }
.immersive .tabbar { display: none }
.enter { animation: mfade .28s ease-out }
}
/* Management screens retain their existing form behavior while using Academy tones. */
.legacy-skin { min-width: 0; color: var(--fg); background: var(--bg) }
.legacy-skin main { color: var(--fg); background: var(--bg) !important; padding-top: 40px }
.legacy-skin [class*="bg-zinc"], .legacy-skin [class*="bg-black"] { background-color: var(--bg-2) !important }
.legacy-skin [class*="bg-white/"] { background-color: var(--bg-2) !important }
.legacy-skin [class*="text-white"] { color: var(--fg) !important }
.legacy-skin [class*="text-gray"], .legacy-skin [class*="text-zinc"] { color: var(--fg-2) !important }
.legacy-skin [class*="text-orange"] { color: var(--blue-text) !important }
.legacy-skin [class*="bg-orange"] { background-color: var(--blue) !important; color: var(--white) !important }
.legacy-skin [class*="bg-orange"][class*="text-white"] { color: var(--white) !important }
.legacy-skin [class*="border-white"], .legacy-skin [class*="border-zinc"] { border-color: var(--line) !important }
.legacy-skin [class*="bg-gradient"] { background-image: none !important }
.legacy-skin [class*="bg-emerald"], .legacy-skin [class*="bg-amber"] { background-color: transparent !important }
.legacy-skin [class*="text-emerald"], .legacy-skin [class*="text-amber"] { color: var(--fg-2) !important }
.legacy-skin [class*="bg-black/80"] { background-color: var(--scrim) !important }
.legacy-skin [class*="shadow"] { box-shadow: none !important }
.legacy-skin button[class*="bg-orange"], .legacy-skin a[class*="bg-orange"] { border-radius: 980px !important }
.legacy-skin input, .legacy-skin textarea, .legacy-skin select { color: var(--fg); background: var(--bg-2); border-color: var(--line) }
.legacy-skin h1 { font-size: 40px; line-height: 1.05; letter-spacing: -.035em }
.legacy-skin h2 { letter-spacing: -.025em }
.manage-page .seg { margin-bottom: 24px }
.admin-page .seg { margin-bottom: 24px }
.admin-more { margin-top: 24px }
.admin-more summary { cursor: pointer; color: var(--blue-text); font-size: 15px; font-weight: 600; padding: 12px 0; min-height: 44px }
.admin-more > section { margin-top: 18px }
.manage-course-title { display: flex; align-items: center; gap: 12px; text-align: left; min-width: 0 }
.manage-course-title b { display: block; font-weight: 600; color: var(--fg) }
.manage-course-title small { display: block; color: var(--fg-2); font-size: 13px }
.manage-comment { border-radius: var(--r-s); background: var(--bg-2); padding: 20px; margin-bottom: 10px; display: grid; gap: 10px }
.manage-comment small { display: block; color: var(--fg-2); font-size: 13px }
.manage-comment .reply { padding: 12px; border-radius: var(--r-s); background: var(--raise) }
.manage-comment .bad-text { justify-self: start }
@media (max-width: 900px) {
.legacy-skin main { padding-top: 16px; padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) }
.legacy-skin h1 { font-size: 32px }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { transition: none !important }
.enter, .menu, .dialog, .toast, .enter .prog i, .enter .inprog i { animation: none !important }
.dot.on i { animation: none; transform: scaleX(1) }
.rail, .m-rail, .m-feat { scroll-behavior: auto }
.spin { animation: none }
}
/* ---------- mobile building blocks (used only by mobile screens) ---------- */
.m-page { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) }
.m-page.has-cta { padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px)) }
.immersive .m-page { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) }
.m-gut { margin-left: max(16px, env(safe-area-inset-left, 0px)); margin-right: max(16px, env(safe-area-inset-right, 0px)) }
.m-large { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); margin-bottom: 12px }
.m-large h1 { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em }
.m-act { display: flex; gap: 8px; align-items: center; padding-bottom: 3px }
.m-av { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; font-size: 13px; font-weight: 600; overflow: hidden }
.m-av img { width: 100%; height: 100%; object-fit: cover }
.btn.m-sm { height: 34px; padding: 0 14px; font-size: 14px }
.m-lead { color: var(--fg-2); font-size: 15px; margin-top: -4px; margin-bottom: 16px }
.m-nav { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 48px; padding: env(safe-area-inset-top, 0px) max(8px, env(safe-area-inset-right, 0px)) 0 max(4px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px) }
.m-back { display: inline-flex; align-items: center; gap: 2px; color: var(--blue-text); font-size: 17px; min-height: 44px; padding: 0 8px; justify-self: start; max-width: 100%; min-width: 0 }
.m-back span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.m-back .ph { font-size: 20px }
.m-back:active { opacity: .5 }
.m-nt { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw }
.m-nr { justify-self: end; display: flex; gap: 4px }
.m-tb { color: var(--blue-text); font-size: 17px; font-weight: 600; min-height: 44px; padding: 0 8px }
.m-tb:disabled { opacity: .4 }
.m-icb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--blue-text); flex: none }
.m-icb:active { background: var(--bg-2) }
.m-icb.lg { width: 52px; height: 52px; background: var(--bg-2); color: var(--fg) }
.m-feat-wrap { margin-bottom: 8px }
.m-feat { display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% - 2 * max(16px, env(safe-area-inset-left, 0px)) - 8px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(16px, env(safe-area-inset-left, 0px)); padding: 0 max(16px, env(safe-area-inset-left, 0px)); scrollbar-width: none; overscroll-behavior-x: contain }
.m-feat::-webkit-scrollbar { display: none }
.m-fc { position: relative; scroll-snap-align: start; border-radius: 22px; background: var(--cc); color: var(--co); min-height: min(440px, 62svh); display: flex; align-items: flex-end; overflow: hidden; box-shadow: inset 0 0 0 1px var(--art-edge) }
.m-fc.has-img::before { content: ""; position: absolute; inset: 0; background: var(--image-scrim); z-index: 1 }
.m-fc-link { position: absolute; inset: 0; z-index: 2 }
.m-fc-in { position: relative; z-index: 3; padding: 22px; pointer-events: none }
.m-fc-in small { font-size: 13px; font-weight: 500; opacity: .75 }
.m-fc h2 { font-size: 32px; line-height: 1.02; letter-spacing: -.035em; margin: 6px 0 0; text-wrap: balance }
.m-fc p { font-size: 14px; opacity: .8; margin-top: 10px }
.m-fc-btn { pointer-events: auto; margin-top: 18px; height: 46px; padding: 0 20px; font-size: 16px; background: var(--co); color: var(--cc) }
.m-fc.has-img .m-fc-btn { color: var(--black) }
@media (hover: hover) { .m-fc-btn:hover { background: var(--co) } }
.m-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px }
.m-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--fg-3); opacity: .4; transition: width .25s ease-out, opacity .25s }
.m-dots i.on { width: 18px; opacity: 1; background: var(--fg) }
.m-sec { margin-top: 28px }
.m-sh { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px }
.m-sh h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em }
.m-sh a { color: var(--blue-text); font-size: 15px; min-height: 32px; display: inline-flex; align-items: center }
.m-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(16px, env(safe-area-inset-left, 0px)); scroll-padding: 0 max(16px, env(safe-area-inset-left, 0px)); scrollbar-width: none; overscroll-behavior-x: contain }
.m-rail::-webkit-scrollbar { display: none }
.m-rail.wide { grid-auto-columns: 72% }
.m-rail.tall { grid-auto-columns: 38%; padding-top: 14px }
.m-rail > * { scroll-snap-align: start }
.m-card, .m-poster { display: block; min-width: 0 }
.m-card:active .m-art, .m-poster:active .m-part { transform: scale(.97) }
.m-art, .m-part { position: relative; display: flex; align-items: flex-end; border-radius: 14px; overflow: hidden; background: var(--cc); color: var(--co); padding: 12px; transition: transform .12s ease-out; box-shadow: inset 0 0 0 1px var(--art-edge) }
.m-art { aspect-ratio: 4/3 }
.m-card.wide .m-art { aspect-ratio: 16/9 }
.m-art .t, .m-part .t { position: relative; font-size: 15px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; text-wrap: balance }
.m-art .m-bar { position: absolute; left: 12px; right: 12px; bottom: 10px }
.m-art:has(.m-bar) { padding-bottom: 24px }
.m-card b { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.m-card small, .m-poster small { display: block; font-size: 13px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.m-poster small { margin-top: 8px }
.m-part { aspect-ratio: 2/3; overflow: visible }
.m-part > .art-img { border-radius: 14px }
.m-part .t { font-size: 17px }
.m-part.sm { width: 72px; height: auto; flex: none; border-radius: 10px; padding: 0 }
.m-part.xs { width: 28px; aspect-ratio: 2/3; border-radius: 6px; padding: 0; flex: none }
.m-part.sm > .art-img, .m-part.xs > .art-img { border-radius: inherit }
.m-poster .m-part { box-shadow: inset 0 0 0 1px var(--art-edge), 0 -6px 0 -2px color-mix(in srgb, var(--cc) 55%, var(--bg)), 0 -11px 0 -5px color-mix(in srgb, var(--cc) 28%, var(--bg)) }
.m-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; padding-top: 12px }
.m-bar { display: block; height: 4px; border-radius: 2px; background: color-mix(in srgb, currentColor 25%, transparent); overflow: hidden }
.m-bar i { display: block; height: 100%; background: currentColor; border-radius: 2px }
.m-group { margin-top: 22px }
.m-group > h2 { font-size: 13px; font-weight: 500; color: var(--fg-2); margin: 0 0 8px 16px }
.m-list { background: var(--bg-2); border-radius: 14px; overflow: hidden }
.m-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; text-align: left; position: relative; color: var(--fg); touch-action: manipulation }
.m-row + .m-row::before { content: ""; position: absolute; top: 0; right: 0; left: 56px; height: 1px; background: var(--line-2) }
a.m-row:active, button.m-row:active { background: var(--bg-3) }
.m-row[aria-current] { background: color-mix(in srgb, var(--blue) 10%, var(--bg-2)) }
.m-rt { flex: 1; min-width: 0 }
.m-rt b { display: block; font-size: 16px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.m-rt small { display: block; font-size: 13px; color: var(--fg-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.multi .m-rt b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.m-rtr { font-size: 14px; color: var(--fg-2); flex: none }
.m-chev { color: var(--fg-3); font-size: 13px; flex: none; display: inline-flex }
.m-n { width: 22px; text-align: center; color: var(--fg-3); font-size: 14px; flex: none; display: inline-flex; justify-content: center }
.m-done { color: var(--ok); font-size: 18px; display: inline-flex }
.m-now { color: var(--blue); font-size: 15px; display: inline-flex }
.m-th { width: 44px; height: 33px; border-radius: 7px; background: var(--cc); flex: none; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px var(--art-edge) }
.m-ic { width: 30px; display: inline-flex; justify-content: center; font-size: 22px; color: var(--fg-2); flex: none }
.m-ic.xl { font-size: 56px; width: auto }
.m-mini { width: 56px; display: block; color: var(--blue) }
.m-cnt { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2) }
.m-cnt .ph { font-size: 16px }
.m-foot { font-size: 13px; color: var(--fg-2); margin: 8px 16px 0 }
.m-danger b { color: var(--bad); text-align: center }
.m-err { color: var(--bad) }
.m-add .m-ic, .m-add b { color: var(--blue-text) }
.m-grip { color: var(--fg-3); font-size: 18px; display: inline-flex }
.m-sel { border: 0; background: none; color: var(--fg-2); font-size: 16px; text-align: right }
.m-seg { display: flex; padding: 2px; border-radius: 10px; background: var(--bg-2); margin-top: 6px }
.m-seg button { flex: 1; min-height: 36px; border-radius: 8px; font-size: 14px; color: var(--fg); white-space: nowrap; padding: 0 6px }
.m-seg button[aria-selected="true"] { background: var(--raise); font-weight: 600; box-shadow: var(--control-shadow) }
:root.dark .m-seg button[aria-selected="true"] { background: var(--bg-3) }
.m-pane { padding-bottom: 8px }
.m-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--bg-2); color: var(--fg-2); margin-top: 4px }
.m-search .ph { font-size: 17px }
.m-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--fg); font-size: 16px; height: 100% }
.m-pane > .m-search { margin-top: 14px }
.m-chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; scrollbar-width: none }
.m-chips button { flex: none; min-height: 34px; padding: 0 14px; border-radius: 980px; background: var(--bg-2); font-size: 14px }
.m-chips button[aria-pressed="true"] { background: var(--fg); color: var(--bg) }
.m-cover { position: relative; aspect-ratio: 16/10; margin-top: 4px; border-radius: 18px; overflow: hidden; background: var(--cc); color: var(--co); display: flex; align-items: flex-end; padding: 18px; box-shadow: inset 0 0 0 1px var(--art-edge) }
.m-cover .t { position: relative; font-size: 24px; line-height: 1.08; font-weight: 700; letter-spacing: -.03em; max-width: 85% }
.m-cover .m-bar { position: absolute; left: 18px; right: 18px; bottom: 14px }
.m-cover:has(.m-bar) { padding-bottom: 30px }
.m-cover.sm { aspect-ratio: 16/8 }
.m-title { margin-top: 16px; margin-bottom: 14px }
.m-title h1 { font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; text-wrap: balance }
.m-title p { font-size: 14px; color: var(--fg-2); margin-top: 4px }
.m-hero-d { display: flex; gap: 16px; align-items: flex-start; margin-top: 8px }
.m-hero-d small { font-size: 13px; color: var(--fg-2) }
.m-hero-d h1 { font-size: 24px; line-height: 1.1; letter-spacing: -.025em; margin: 2px 0 6px }
.m-hero-d p { font-size: 14px; color: var(--fg-2) }
.m-meta { font-size: 13px; color: var(--fg-3); margin-top: 8px }
.m-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--blue); font-size: 13px }
.m-progress .m-bar { flex: 1 }
.m-progress span { color: var(--fg-2) }
.m-body { font-size: 16px; line-height: 1.5; margin-top: 16px; text-wrap: pretty; white-space: pre-line }
.m-empty { color: var(--fg-2); text-align: center; padding: 48px 0; font-size: 15px }
.m-under { display: flex; justify-content: space-between; margin-top: 10px; font-size: 15px }
.m-under .link { min-height: 36px; font-size: 15px }
.m-player { position: sticky; top: calc(48px + env(safe-area-inset-top, 0px)); z-index: 15; aspect-ratio: 16/9; background: var(--black); color: var(--white); display: grid; place-items: center; overflow: hidden }
.m-player iframe, .m-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.m-player .msg { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 16px; font-size: 14px; color: var(--video-muted) }
.m-thread { margin-top: 8px }
.m-compose { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; padding: 8px; border-radius: 16px; background: var(--bg-2) }
.m-compose textarea { flex: 1; min-width: 0; border: 0; background: none; resize: none; outline: none; padding: 8px 6px; min-height: 40px; color: var(--fg) }
.m-compose input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 8px 6px; min-height: 40px; color: var(--fg) }
.m-person { text-align: center; margin-top: 8px }
.m-person .av { margin: 0 auto 12px }
.m-person h1 { font-size: 26px; letter-spacing: -.025em }
.m-person > p { color: var(--fg-2); margin-top: 4px }
.m-person .m-body { color: var(--fg); text-align: left }
.m-person.sm { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 8px }
.m-person.sm .av { margin: 0 }
.m-me { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--bg-2) }
.m-me .av { width: 52px; height: 52px; font-size: 18px }
.m-me b { display: block; font-size: 18px; font-weight: 600 }
.m-me small { color: var(--fg-2); font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis }
.m-me > span:nth-child(2) { flex: 1; min-width: 0 }
.m-signin { text-align: center; padding: 24px 8px 4px; display: grid; gap: 10px; justify-items: center }
.m-signin h2 { font-size: 22px; margin: 4px 0 0 }
.m-signin p { color: var(--fg-2); font-size: 15px; max-width: 32ch; margin-bottom: 8px }
.m-signin .btn { width: 100% }
.m-form { margin-top: 8px; display: grid; gap: 12px }
.m-field { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 14px; position: relative }
.m-field + .m-field::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--line-2) }
.m-field > span { width: 72px; font-size: 16px; flex: none }
.m-field input, .m-field select, .m-field textarea { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--fg); font-size: 16px; padding: 8px 0 }
.m-field.col { flex-direction: column; align-items: stretch; gap: 2px }
.m-field.col > span { width: auto; font-size: 13px; color: var(--fg-2); padding-top: 8px }
.m-auth { min-height: calc(100svh - 48px - 110px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; justify-content: center; padding-bottom: 24px }
.m-auth .m-large { padding-top: 0 }
.m-alt { text-align: center; color: var(--fg-2); font-size: 15px }
.m-okmsg { color: var(--ok); text-align: center }
.m-errmsg { color: var(--bad); text-align: center; font-size: 15px }
.m-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px }
.m-stats div { background: var(--bg-2); border-radius: 12px; padding: 10px 8px; text-align: center; min-width: 0 }
.m-stats b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.02em }
.m-stats small { font-size: 11px; color: var(--fg-2) }
.m-cta { position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom, 0px)); z-index: 25; display: flex; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px) }
.immersive .m-cta { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) }
.btn.m-big { flex: 1; height: 50px; font-size: 17px; border-radius: 14px }
.btn.m-half { flex: 1; height: 50px; font-size: 16px; border-radius: 14px }
.m-tav { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-3); color: var(--fg-2); display: grid; place-items: center; font-size: 10px; font-weight: 600; overflow: hidden }
.m-tav img { width: 100%; height: 100%; object-fit: cover }
.m-tav.on { background: var(--blue); color: var(--white) }
.m-reply { display: flex; gap: 8px; align-items: center; margin-top: 10px }
.m-reply input { min-width: 0; flex: 1; height: 40px; border: 0; border-radius: 8px; background: var(--raise); padding: 0 10px }
.m-reply .link { flex: none; padding: 8px }
@media (max-width: 900px) {
.page.has-hero { padding-top: 0 }
.main > .m-page.m-gut { width: auto; margin-inline: 0; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)) }
.page.has-hero .shelf:first-child { margin-top: 28px }
.rail, .rail.wide { grid-auto-columns: 72%; gap: 12px }
.rail.tall { grid-auto-columns: 42%; gap: 12px }
.rowhead .nav2 { display: none }
.m-feat-wrap { padding-top: 0 }
.m-feat-wrap .m-large { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.m-feat-wrap .m-fc { min-height: min(440px, 62svh) }
.m-feat-wrap .m-fc .art-img { object-fit: cover }
.m-page .m-cover.cover { aspect-ratio: 16/10; padding: 18px; border-radius: 18px }
.m-page .m-cover.cover .t { font-size: 24px; max-width: 85% }
.m-page .m-cover.cover .inprog { left: 18px; right: 18px }
.m-page .m-progress .prog { flex: 1; margin: 0 }
.m-page .m-seg { margin-top: 18px }
.enter:has(.m-cta) { animation: fade .28s ease-out both }
.m-cta .save-icon { flex: 0 0 50px; padding: 0; }
.m-cta .save-icon .ph { font-size: 21px }
.m-player .pl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px }
.m-player .pl .ph { font-size: 28px }
.m-player .pl.msg { color: var(--video-muted) }
.m-row .m-icb { color: var(--fg-2) }
.has-mobile-cta { padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px)) }
.has-mobile-cta .side .btn { display: none }
.trail-course { grid-template-columns: 22px 72px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0 }
.trail-course .cover { width: 72px; aspect-ratio: 16/10 }
.trail-course .r { font-size: 12px }
.trail-course .r .ph { display: none }
.profile-fields { grid-template-columns: 1fr; gap: 32px }
.profile-head { flex-direction: column; text-align: center; gap: 12px }
.profile-head h1 { font-size: 26px }
.search-page .grid, .search-page .pgrid { grid-template-columns: 1fr }
.community-view { display: flex; width: 100%; margin-bottom: 14px }
.community-view button { flex: 1; min-height: 36px }
.discussion-row { grid-template-columns: 32px minmax(0, 1fr) auto }
.auth { margin-top: 0; min-height: calc(100svh - 170px); display: flex; flex-direction: column; justify-content: center }
.auth form { width: 100% }
}
/* ---------- course reviews ---------- */
.reviews { margin-top: 40px }
.reviews-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px }
.reviews-header h2 { font-size: 24px; font-weight: 700; letter-spacing: -.025em }
.reviews-header .count { color: var(--fg-2); font-size: 14px }
.reviews-layout { display: grid; grid-template-columns: minmax(150px, .32fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px }
.review-summary { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px }
.review-average { font-size: 44px; font-weight: 700; letter-spacing: -.05em; line-height: 1 }
.review-summary small { color: var(--fg-2); font-size: 13px }
.review-stars { display: inline-flex; align-items: center; gap: 2px; color: var(--blue) }
.review-stars svg { width: 16px; height: 16px }
.review-form { display: grid; gap: 12px }
.review-form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px }
.review-rating { display: flex; align-items: center; gap: 2px }
.review-rating button { display: inline-flex; padding: 2px; border-radius: 6px; color: var(--fg-3); transition: color .15s, transform .15s }
.review-rating button svg { width: 24px; height: 24px }
.review-rating button:hover, .review-rating button[aria-pressed="true"] { color: var(--blue) }
.review-rating button:active { transform: scale(.92) }
.review-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.review-signin { display: flex; flex-direction: column; align-items: flex-start; gap: 8px }
.review-list { display: grid; gap: 8px }
.review-item { padding: 14px 16px; border-radius: var(--r-s); background: var(--bg-2) }
.review-item header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px }
.review-item header b { font-size: 14px; font-weight: 600 }
.review-item header small { color: var(--fg-3); font-size: 12px; flex: none }
.review-item p { font-size: 14px; color: var(--fg-2); white-space: pre-line }
.week-goal { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 10px 16px; align-items: center; margin-top: 16px }
.week-goal .prog { grid-column: 1 / -1; display: block; margin: 0 }
/* ---------- notifications ---------- */
.side-top .notif { position: relative; margin-left: auto; color: var(--fg-2) }
:root.collapsed .side-top .notif { margin-left: 0 }
.notif-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--blue); color: var(--white); font-size: 10px; font-weight: 700; line-height: 1; display: grid; place-items: center }
.notification-list { display: grid; gap: 8px; max-width: 860px }
.notification { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--r-s); background: var(--bg-2); transition: background-color .2s, transform .15s }
@media (hover: hover) { .notification:hover { background: var(--bg-3); transform: translateY(-1px) } }
.notification.unread { background: var(--bg-3); box-shadow: inset 3px 0 0 var(--blue) }
.notification .n-ic { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue) }
.notification .n-copy { flex: 1; min-width: 0 }
.notification b { display: block; font-size: 15px; font-weight: 600 }
.notification p { margin-top: 3px; color: var(--fg-2); font-size: 14px }
.notification small { flex: none; color: var(--fg-3); font-size: 12px; white-space: nowrap }
.notification-empty .ph { width: 36px; height: 36px; color: var(--fg-3); margin-bottom: 8px }
.notification-empty h2 { font-size: 20px; margin-bottom: 6px }
@media (max-width: 760px) {
.reviews-layout { grid-template-columns: 1fr }
.review-average { font-size: 36px }
}