/* DS-AREA: base/legado — reset, layouts e receitas consumidos por login,
   Administração e Área do aluno. Não é uma folha exclusiva do aluno.
   Ordem publicada: initial-visibility.css -> app.css -> design-system.css.
   As variantes e sobrescritas finais permanecem no DS, sem extração nesta etapa.
   Mapa de consumidores e riscos: docs/design-system/OWNERSHIP.md. */
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/google-sans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/google-sans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/google-sans-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/google-sans-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./fonts/google-sans-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./fonts/google-sans-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/google-sans-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/google-sans-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--background); color: var(--text); font: var(--text-body)/1.5 var(--font-family); }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, .secondary { cursor: pointer; border: 1px solid transparent; border-radius: 7px; min-height: 44px; padding: var(--button-padding, 12px 20px); color: var(--text); background: var(--surface-raised); font-weight: 600; }
button:hover, .secondary:hover { background: #35414e; }
button:disabled { opacity: .4; cursor: default; }
.primary { background: var(--primary); color: var(--on-primary); }
.primary:hover { background: #dfe6ed; }
.secondary { display: inline-flex; align-items: center; justify-content: center; background: #ffffff0b; border-color: #ffffff28; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(36px, 4.5vw, 64px); font-weight: 650; }
h2 { font-size: 25px; font-weight: 600; }
h3 { font-size: 22px; }
p { color: var(--muted); line-height: 1.7; }
small { color: var(--muted); }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 800; font-size: 27px; letter-spacing: -.05em; flex-shrink: 0; }
.brand > span:last-child { font-size: var(--text-small); letter-spacing: .2em; font-weight: 500; }
.brand-mark { font-size: 31px; color: var(--primary); }
.brand-mark span { font-size: 24px; }
nav { display: flex; gap: 8px; flex: 1; }
nav button { background: none; color: var(--muted); font-weight: 450; font-size: 14px; padding: 12px 14px; border-radius: 0; }
nav button[aria-pressed=true] { color: var(--text); box-shadow: inset 0 -2px var(--primary); }
.profile-trigger { border-radius: 50%; width: 42px; height: 42px; min-height: 42px; padding: 0; border-color: #667684; background: #27313d; color: var(--primary); font-size: var(--text-small); }
.hero { min-height: 580px; padding: 85px var(--page-gutter) 65px; position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 90% 30%, #334453 0%, #17212c 30%, #0f171e 59%, #00050d 80%); }
.hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#00050d 8%,#00050dd9 30%,transparent 72%),linear-gradient(0deg,var(--background),transparent 25%); z-index: -1; }
.hero-copy { max-width: 650px; }
.pill { display: inline-flex; gap: 13px; align-items: center; font-size: var(--text-small); letter-spacing: .2em; font-weight: 700; margin-bottom: 28px; }
.pill span { color: var(--primary); }
.hero h1 { margin-bottom: 22px; }
.hero em { color: var(--primary); font-style: normal; }
.hero-copy p { max-width: 435px; font-size: 15px; color: #b7c0ca; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 24px; color: #a5b0bc; font-size: var(--text-small); letter-spacing: .13em; }
.hero-meta span + span:before { content: "•"; margin-right: 20px; }
.hero-art { position: absolute; z-index: -2; width: 57%; height: 100%; right: -3%; top: 0; transform: rotate(-9deg); }
.art-word { display: block; position: absolute; font-weight: 900; font-size: clamp(140px, 19vw, 290px); line-height: .8; letter-spacing: -.075em; right: 13%; top: 17%; color: #d9e0e7; text-shadow: 12px 17px 0 #35414e; }
.orbit { position: absolute; width: 560px; height: 560px; border: 1px solid #ffffff30; border-radius: 50%; right: -50px; top: -60px; transform: rotate(-25deg) scaleX(.7); }
.orbit-two { right: 60px; top: 80px; width: 470px; height: 470px; }
.art-note { position: absolute; right: 10%; bottom: 16%; color: #c4cbd3; font-size: var(--text-small); letter-spacing: .28em; }
.hero-bottom { position: absolute; bottom: 30px; left: var(--page-gutter); right: var(--page-gutter); display: flex; gap: 18px; align-items: center; color: #a5b0bc; font-size: var(--text-small); letter-spacing: .12em; }
.hero-bottom > span:last-child { margin-left: auto; font-size: var(--text-small); }
.slide-lines { display: flex; gap: 5px; }
.slide-lines i { width: 24px; height: 2px; background: #ffffff22; }
.slide-lines i:first-child { background: var(--primary); }
.catalog-body { padding: 28px var(--page-gutter) 64px; }
.welcome { display: flex; align-items: center; justify-content: space-between; margin-bottom: 38px; }
.welcome h2 { margin: 8px 0 0; font-size: 30px; }
.eyebrow { font-size: var(--text-small); font-weight: 650; letter-spacing: .2em; color: var(--primary); }
.preview-badge { color: #a5b0bc; border: 1px solid var(--border); border-radius: 30px; padding: 5px 12px; font-size: var(--text-small); white-space: nowrap; }
.shelf { margin-bottom: 38px; scroll-margin-top: 100px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 22px; }
.section-heading > span { font-size: var(--text-small); color: var(--muted); }
.rail { display: flex; gap: 18px; overflow-x: auto; padding: 4px 3px 14px; margin: -4px -3px 0; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #667684 transparent; }
.lesson, .module-card { text-align: left; flex: 0 0 calc((100% - 36px)/3); min-width: 260px; padding: 0; background: none; border-radius: var(--radius); scroll-snap-align: start; font-weight: 500; }
.lesson:hover, .module-card:hover { background: none; }
.card-art { aspect-ratio: 21/9; border-radius: var(--radius); position: relative; overflow: hidden; background: linear-gradient(125deg,#334452,#00050d); border: 1px solid #ffffff12; transition: border-color .2s, transform .2s; }
.module-card:hover .card-art, .lesson:hover .card-art { transform: translateY(-3px); border-color: var(--primary); }
.card-art:before { content: ""; position: absolute; width: 65%; aspect-ratio: 1; border: 1px solid #ffffff25; border-radius: 50%; right: -8%; top: -40%; box-shadow: 0 0 0 18px #ffffff05,0 0 0 45px #ffffff05; }
.tone-1 { background: linear-gradient(125deg,#334452,#00050d); }
.tone-2 { background: linear-gradient(125deg,#39465b,#00050d); }
.tone-3 { background: linear-gradient(125deg,#3c4653,#00050d); }
.card-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; inset: 0; }
.card-art:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#0009,transparent 85%); }
.card-number { position: absolute; right: 20px; top: 0; font-size: 90px; line-height: 1.35; font-weight: 800; letter-spacing: -.1em; color: #ffffff0e; }
.card-kicker { position: absolute; left: 20px; top: 18px; z-index: 1; font-size: var(--text-small); letter-spacing: .18em; color: #ffffff; }
.card-title { position: absolute; bottom: 18px; left: 20px; right: 38px; font-size: clamp(18px,1.8vw,27px); letter-spacing: -.04em; font-weight: 650; line-height: 1.1; z-index: 1; }
.card-arrow { position: absolute; right: 17px; bottom: 17px; z-index: 1; color: #ffffff; font-size: 23px; }
.card-info { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--text-small); padding-top: 12px; gap: 10px; }
.card-info strong { color: #ffffff; font-weight: 500; }
progress { display: block; width: 100%; height: 3px; border: 0; margin-top: 8px; accent-color: var(--primary); }
.empty-state { border: 1px dashed var(--border); border-radius: var(--radius); padding: 22px; font-size: var(--text-small); }
.text-button { background: transparent; color: var(--primary); padding: 8px; font-size: var(--text-small); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.journey-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #ffffff30; background: linear-gradient(100deg,#17212c,#0f171e); border-radius: var(--radius); padding: 35px 40px; margin-top: 45px; }
.journey-banner h2 { font-size: 30px; margin: 12px 0 0; }
#watch, #profile-panel { margin-top: 35px; scroll-margin-top: 105px; }
#watch h2 { margin-top: 16px; }
.player { aspect-ratio: 16/9; border: 1px solid var(--border); border-radius: var(--radius); display: grid; place-items: center; padding: 30px; text-align: center; background: #080a0c; color: var(--muted); }
video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); }
#watch h3 { margin-top: 30px; }
label { display: block; font-size: var(--text-small); color: #d9e0e7; }
input, textarea, select { width: 100%; border: 1px solid #3b4246; border-radius: 7px; padding: 12px 14px; margin: 8px 0 20px; background: #0e1114; color: var(--text); min-height: 46px; }
textarea { min-height: 105px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a5b0bc; }
output { display: block; color: var(--primary); font-size: var(--text-small); margin-top: 14px; }
.avatar { width: 76px; height: 76px; object-fit: cover; border-radius: 50%; margin-bottom: 20px; }
.admin-wrap { padding: 60px var(--page-gutter); }
.admin-wrap h1 { margin: 18px 0; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 35px; align-items: start; }
.admin-grid h2 { font-size: 23px; margin-bottom: 25px; }
#admin-modules { padding-left: 18px; color: var(--muted); font-size: var(--text-small); }
#admin-modules li { padding: 5px 0; }
#upload-form small { display: block; margin-top: 16px; }
.system-panel h2 { margin-top: 20px; font-size: 32px; }
.swatches { display: flex; gap: 10px; margin: 30px 0; }
.swatches i { display: block; width: 50px; height: 50px; border-radius: 50%; background: var(--primary); border: 1px solid #ffffff25; }
.swatches i:nth-child(2) { background: #f3f3ed; }
.swatches i:nth-child(3) { background: #20242a; }
.swatches i:nth-child(4) { background: #0c0e10; }
.login { max-width: 470px; margin: 65px auto; }
.login h1 { margin-top: 25px; font-size: 45px; }
.login form { margin: 30px 0; }
.login .primary { width: 100%; }
footer { border-top: 1px solid #ffffff10; margin: 0 var(--page-gutter); padding: 30px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: var(--text-small); }
footer .brand { color: var(--text); font-size: 22px; }
.muted { color: var(--muted); }
[hidden], dialog:not([open]) { display: none !important; }
@media (min-width: 1600px) { .hero { min-height: 660px; } }
@media (max-width: 800px) {
  .brand { gap: 7px; }
  .brand > span:last-child { font-size: var(--text-small); }
  nav { gap: 0; }
  nav button { padding: 10px; font-size: var(--text-small); }
  .hero { padding-top: 65px; min-height: 550px; }
  .hero-art { right: -22%; width: 90%; opacity: .65; }
  .hero:after { background: linear-gradient(90deg,#00050df0,#00050d75),linear-gradient(0deg,var(--background),transparent); }
  .hero-copy { max-width: 500px; }
  .hero-copy h1 { font-size: 45px; }
  .lesson, .module-card { flex-basis: 72%; max-width: 400px; }
  .admin-grid { grid-template-columns: 1fr; }
  .journey-banner { padding: 25px; }
}
@media (max-width: 480px) {
  nav { order: 3; flex-basis: 100%; }
  nav button { flex: 1; }
  .profile-trigger { min-height: 38px; width: 38px; height: 38px; }
  .hero { padding-top: 44px; min-height: 535px; }
  .hero-copy h1 { font-size: 37px; }
  .hero-copy p { font-size: var(--text-small); }
  .hero-art { width: 120%; right: -60%; }
  .art-word { font-size: 190px; }
  .hero-meta { gap: 10px; font-size: var(--text-small); }
  .hero-meta span + span:before { margin-right: 10px; }
  .hero-bottom > span:last-child { display: none; }
  .hero-actions { gap: 8px; }
  .hero-actions button, .hero-actions a { font-size: var(--text-small); padding: 12px 14px; }
  .welcome h2 { font-size: 25px; }
  .preview-badge { font-size: var(--text-small); }
  .section-heading h2 { font-size: 20px; }
  .section-heading > span { display: none; }
  .lesson, .module-card { flex-basis: 88%; min-width: 0; }
  .card-title { font-size: 22px; }
  .journey-banner { align-items: start; flex-direction: column; }
  .journey-banner h2 { font-size: 27px; }
  .panel { padding: 22px; }
  .login { margin: 30px 20px; }
  footer { flex-wrap: wrap; }
  footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* Page layouts consume the shared tokens in design-system.css. */
.student-row, .comment-item { padding: 20px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.student-row > button { margin: 0 8px 10px 0; font-size: var(--text-small); }
.enrollment-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--text-small); padding: 8px 0; }
.enrollment-row > span { flex: 1 1 180px; }
.enrollment-row button { font-size: var(--text-small); padding: 8px 12px; }
.comment-item strong, .comment-item small { display: block; }
.admin-reply { border-left: 2px solid var(--primary); padding-left: 15px; }
#comments { padding: 0; list-style: none; }
.check-label { display: flex; align-items: center; gap: 10px; }
.check-label input { width: 18px; min-height: 18px; margin: 8px 0; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; }
#invite-confirm { margin-top: 15px; }
body[data-page="login"] main { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login { width: min(100%, 420px); margin: 0 auto; padding: 36px; background: var(--surface); }
.login .login-brand { margin-bottom: 32px; }
.login h1 { margin: 0 0 10px; font-size: 30px; }
.login p { margin: 0; font-size: 14px; }
.login form { margin: 30px 0 0; }
.login output { margin-top: 16px; color: #ffb4ab; }
body[data-page="login"] .login { border: 1px solid var(--border); }
.catalog-body { max-width: var(--content-width); margin: 0 auto; padding-top: 26px; }
#courses-section { margin: 0; }
#courses-section h2 { margin-bottom: 24px; font-size: 28px; }
.hero { min-height: 300px; margin: 18px var(--page-gutter) 0; padding: 45px; border: 1px solid var(--border); border-radius: var(--radius); }
.hero-copy h1 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 16px; }
.hero-copy p { margin-bottom: 24px; }
.hero-art { opacity: .45; }
.hero-actions .secondary { display: none; }
.welcome { margin-bottom: 30px; }
.welcome h2 { font-size: 26px; }
.admin-wrap { padding: 20px var(--page-gutter) 60px; max-width: 1240px; margin: 0 auto; }
.admin-heading h1 { font-size: 30px; margin: 8px 0; }
.admin-heading p { font-size: var(--text-small); margin-bottom: 0; }
.admin-tabs, .content-tabs { flex: none; display: flex; gap: 6px; }
.admin-tabs { margin: 28px 0; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.admin-tabs button, .content-tabs button { border-radius: var(--radius-control); box-shadow: none; background: transparent; color: var(--muted); }
.admin-tabs button[aria-pressed=true] { background: var(--surface-raised); color: var(--text); }
.content-tabs { margin-top: 20px; padding: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; width: fit-content; }
.content-tabs button[aria-pressed=true] { background: var(--surface-raised); color: var(--text); }
.admin-grid { display: block; margin-top: 20px; max-width: 760px; }
.admin-grid form { margin: 0; }
.panel { padding: 28px; }
#profile-panel { max-width: 620px; margin: 0 auto; }
#watch { margin-top: 0; }
#module-detail .section-heading h2 { font-size: 28px; }
#admin-students > .panel { margin-top: 20px; }
#admin-students #invite-form { max-width: 760px; }
@media(max-width:480px) {
  .hero { margin-top: 12px; padding: 26px; min-height: 240px; }
  .hero-copy h1 { font-size: 30px; }
  .admin-wrap { padding-top: 18px; }
  .admin-heading h1 { font-size: 26px; }
  .panel, .login { padding: 24px; }
  .login { margin: 0; }
  #admin-course-select { max-width: 100%; }
}

.topbar .admin-tabs { margin: 0; padding: 0; border: 0; flex: 1; }
.admin-tabs button[aria-pressed], .content-tabs button[aria-pressed] { box-shadow: none; }
.topbar .admin-tabs button { padding: 10px 14px; font-size: var(--text-small); }
.management-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.management-row h3 { font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.management-row p { margin: 6px 0 0; font-size: var(--text-small); }
.management-row button { flex-shrink: 0; }
#course-list-view { margin-top: 28px; }
#course-list-view h1 { margin: 0; font-size: var(--text-title); }
#editing-course-title { margin: 0; font-size: 28px; }
@media (max-width: 480px) {
  .management-row { padding: 18px; gap: 12px; }
  .management-row h3 { font-size: 16px; }
}
@media(max-width:480px) {
  .topbar .admin-tabs { gap: 0; }
  .topbar .admin-tabs button { padding: 8px 10px; font-size: var(--text-small); min-height: 40px; }
}



