:root {
  --ns-ink: #424852;
  --ns-ink-strong: #2f333a;
  --ns-accent: #c79d6a;
  --ns-accent-dark: #aa7e4e;
  --ns-taupe: #9b7455;
  --ns-surface: #ffffff;
  --ns-surface-soft: #f6f4f1;
  --ns-canvas: #fbfaf8;
  --ns-border: #e8e3dc;
  --ns-muted: #6f7176;
  --ns-success: #5f8b67;
  --ns-radius-sm: 10px;
  --ns-radius: 18px;
  --ns-radius-lg: 28px;
  --ns-shadow: 0 18px 60px rgba(47, 51, 58, .08);
  --ns-container: 1180px;
  --ns-reading: 720px;
}

.ns-app-body {
  margin: 0;
  background: var(--ns-canvas);
  color: var(--ns-ink-strong);
  font-family: "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.ns-app-body *, .ns-app-body *::before, .ns-app-body *::after { box-sizing: border-box; }
.ns-app-body img { max-width: 100%; height: auto; }
.ns-app-body a { color: inherit; }
.ns-container { width: min(calc(100% - 40px), var(--ns-container)); margin-inline: auto; }
.ns-main { min-height: calc(100vh - 150px); }
.ns-page { padding-block: 36px 80px; }

.ns-skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; padding: 12px 18px; background: var(--ns-ink); color: #fff; }
.ns-skip-link:focus { top: 16px; }

.ns-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 250, 248, .94); border-bottom: 1px solid rgba(232, 227, 220, .9); backdrop-filter: blur(12px); }
.ns-header__inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ns-brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.ns-brand__name { font-size: 18px; font-weight: 750; letter-spacing: .08em; color: var(--ns-ink); }
.ns-brand__module { margin-top: 5px; font-size: 9px; font-weight: 700; letter-spacing: .38em; color: var(--ns-accent-dark); }
.ns-account { display: flex; gap: 18px; font-size: 14px; }
.ns-account a { text-decoration: none; }
.ns-account a:hover { text-decoration: underline; }

.ns-footer { border-top: 1px solid var(--ns-border); color: var(--ns-muted); font-size: 13px; }
.ns-footer__inner { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }

.ns-eyebrow { margin: 0 0 10px; color: var(--ns-accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.ns-app-body h1, .ns-app-body h2, .ns-app-body h3 { color: var(--ns-ink-strong); line-height: 1.12; letter-spacing: -.025em; }
.ns-app-body h1 { margin: 0 0 18px; font-size: clamp(2.15rem, 7vw, 4rem); }
.ns-app-body h2 { margin: 0 0 24px; font-size: clamp(1.65rem, 4vw, 2.4rem); }
.ns-app-body h3 { margin: 0 0 12px; font-size: clamp(1.25rem, 3vw, 1.55rem); }
.ns-app-body p { margin-top: 0; }
.ns-prose { max-width: var(--ns-reading); }
.ns-prose > *:last-child { margin-bottom: 0; }
.ns-prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.ns-btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--ns-radius-sm); font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .055em; text-decoration: none; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.ns-btn:active { transform: translateY(1px); }
.ns-btn--primary { background: var(--ns-ink); color: #fff !important; }
.ns-btn--primary:hover { background: var(--ns-ink-strong); }
.ns-btn--secondary { background: transparent; color: var(--ns-ink); border-color: var(--ns-ink); }
.ns-btn--secondary:hover { background: var(--ns-surface-soft); }

.ns-card { padding: 24px 20px; background: var(--ns-surface); border: 1px solid var(--ns-border); border-radius: var(--ns-radius); }
.ns-notice { margin-bottom: 24px; padding: 14px 18px; background: #f4eee5; border-left: 4px solid var(--ns-accent); border-radius: 4px; }
.ns-back { display: inline-flex; margin: 0 0 24px; color: var(--ns-muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.ns-back:hover { color: var(--ns-ink); }

.ns-login { min-height: calc(100vh - 230px); display: grid; align-items: center; gap: 40px; padding-block: 56px; }
.ns-login__copy { max-width: 540px; }
.ns-login__copy p:not(.ns-eyebrow) { font-size: 18px; }
.ns-login__card { width: 100%; max-width: 480px; justify-self: end; box-shadow: var(--ns-shadow); }
.ns-login__card h2 { font-size: 28px; }
.ns-login__card label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.ns-login__card input[type="text"], .ns-login__card input[type="password"] { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid var(--ns-border); border-radius: 8px; font: inherit; }
.ns-login__card input[type="submit"] { width: 100%; min-height: 50px; border: 0; border-radius: 8px; background: var(--ns-ink); color: #fff; font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .06em; cursor: pointer; }
.ns-login__reset { display: inline-block; margin-top: 14px; color: var(--ns-muted); font-size: 14px; }

.ns-dashboard-hero { position: relative; min-height: 280px; display: flex; align-items: center; overflow: hidden; margin-bottom: 68px; padding: 36px 26px; background: var(--ns-surface-soft); border-radius: var(--ns-radius-lg); }
.ns-dashboard-hero > div { position: relative; z-index: 2; max-width: 700px; }
.ns-dashboard-hero > p, .ns-dashboard-hero div > p:last-child { max-width: 600px; font-size: 18px; }
.ns-dashboard-hero > img { position: absolute; z-index: 1; right: -32px; bottom: -45px; width: 190px; opacity: .9; }

.ns-courses > h2 { margin-bottom: 28px; }
.ns-course-grid { display: grid; gap: 24px; }
.ns-course-card { overflow: hidden; background: var(--ns-surface); border: 1px solid var(--ns-border); border-radius: var(--ns-radius); }
.ns-course-card__image { display: block; aspect-ratio: 16/9; overflow: hidden; background: #d7c5b6; }
.ns-course-card__image img { width: 100%; height: 100%; object-fit: cover; }
.ns-course-card__body { padding: 24px 20px; }
.ns-course-card h3 a { text-decoration: none; }
.ns-course-card__body > p:not(.ns-eyebrow) { color: var(--ns-muted); }
.ns-course-card .ns-btn { width: 100%; }
.ns-progress-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin: 22px 0; }
.ns-progress { height: 7px; overflow: hidden; background: var(--ns-border); border-radius: 999px; }
.ns-progress span { display: block; width: var(--ns-progress, 0%); height: 100%; background: var(--ns-accent); border-radius: inherit; }
.ns-progress-row strong { min-width: 38px; color: var(--ns-muted); font-size: 13px; text-align: right; }
.ns-empty { display: grid; align-items: center; gap: 24px; padding: 28px; background: var(--ns-surface); border: 1px solid var(--ns-border); border-radius: var(--ns-radius); }
.ns-empty img { width: 130px; justify-self: center; }

.ns-course-hero { display: grid; gap: 30px; margin-bottom: 72px; }
.ns-course-hero__copy { align-self: center; }
.ns-course-logo { display: block; width: auto; max-width: 170px; max-height: 70px; margin-bottom: 24px; object-fit: contain; object-position: left center; }
.ns-course-hero__image { overflow: hidden; border-radius: var(--ns-radius-lg); background: #d7c5b6; aspect-ratio: 4/3; }
.ns-course-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.ns-progress-row--hero { max-width: 500px; }
.ns-section { margin-top: 64px; }
.ns-resources { display: grid; gap: 12px; }
.ns-resource { min-height: 72px; display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--ns-surface); border: 1px solid var(--ns-border); border-radius: var(--ns-radius-sm); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.ns-resource:hover { border-color: var(--ns-accent); transform: translateY(-1px); }
.ns-resource > span:first-child { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; background: #f3e8dc; border-radius: 50%; color: var(--ns-accent-dark); font-size: 20px; }
.ns-resource strong, .ns-resource small { display: block; }
.ns-resource small { margin-top: 3px; color: var(--ns-muted); }

.ns-module-list { display: grid; gap: 14px; }
.ns-module { overflow: hidden; background: var(--ns-surface); border: 1px solid var(--ns-border); border-radius: var(--ns-radius); }
.ns-module summary { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; cursor: pointer; list-style: none; }
.ns-module summary::-webkit-details-marker { display: none; }
.ns-module summary span:first-child { display: grid; gap: 4px; }
.ns-module summary small { color: var(--ns-accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.ns-module summary strong { font-size: 18px; }
.ns-module summary > span:last-child { color: var(--ns-muted); font-size: 13px; white-space: nowrap; }
.ns-module[open] summary { border-bottom: 1px solid var(--ns-border); }
.ns-lesson-list { padding: 4px 18px; }
.ns-lesson-row { min-height: 66px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--ns-border); text-decoration: none; }
.ns-lesson-row:last-child { border-bottom: 0; }
.ns-lesson-row:hover .ns-lesson-title { text-decoration: underline; text-underline-offset: 3px; }
.ns-lesson-status { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--ns-border); border-radius: 50%; color: var(--ns-muted); font-size: 11px; }
.ns-lesson-row.is-completed .ns-lesson-status { background: #eaf2eb; border-color: #d7e6d9; color: var(--ns-success); }
.ns-lesson-title { font-weight: 700; line-height: 1.35; }
.ns-lesson-row time { color: var(--ns-muted); font-size: 12px; }

.ns-lesson-page { padding-block: 28px 100px; }
.ns-lesson-layout { display: grid; gap: 28px; }
.ns-lesson-heading { margin-bottom: 24px; }
.ns-lesson-heading h1 { font-size: clamp(2rem, 5vw, 3.15rem); }
.ns-duration { color: var(--ns-muted); }
.ns-player { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16/9; background: #17191d; border-radius: var(--ns-radius); box-shadow: var(--ns-shadow); }
.ns-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ns-audio { padding: 28px 22px; background: var(--ns-ink); color: #fff; border-radius: var(--ns-radius); }
.ns-audio .ns-eyebrow { color: #e1b47f; }
.ns-audio audio { width: 100%; }
.ns-media-empty { min-height: 260px; display: grid; place-content: center; gap: 6px; padding: 24px; background: var(--ns-surface-soft); border: 1px dashed var(--ns-border); border-radius: var(--ns-radius); text-align: center; }
.ns-media-empty span { color: var(--ns-muted); }
.ns-lesson-nav { display: grid; gap: 10px; margin: 16px 0 26px; }
.ns-lesson-nav form, .ns-lesson-nav form button, .ns-lesson-nav > a { width: 100%; }
.ns-lesson-main > .ns-card { margin-top: 18px; }
.ns-lesson-description h2, .ns-lesson-main > .ns-card h2 { margin-bottom: 16px; font-size: 24px; }
.ns-whatsapp { display: grid; gap: 4px; margin-top: 18px; padding: 20px; background: #f2ebe3; border-radius: var(--ns-radius); text-decoration: none; }
.ns-whatsapp span { color: var(--ns-muted); }
.ns-whatsapp strong { color: var(--ns-ink); font-size: 13px; letter-spacing: .06em; }

.ns-outline details { overflow: hidden; background: var(--ns-surface); border: 1px solid var(--ns-border); border-radius: var(--ns-radius); }
.ns-outline summary { padding: 18px 20px; font-weight: 800; cursor: pointer; }
.ns-outline details > div { max-height: 65vh; overflow: auto; padding: 0 18px 18px; }
.ns-outline section + section { margin-top: 22px; }
.ns-outline h2 { margin: 0 0 8px; color: var(--ns-muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.ns-outline section a { display: grid; grid-template-columns: 22px 1fr; gap: 7px; padding: 8px 7px; border-radius: 7px; font-size: 14px; font-weight: 650; line-height: 1.35; text-decoration: none; }
.ns-outline section a:hover { background: var(--ns-surface-soft); }
.ns-outline section a.is-current { background: #f1e7db; color: var(--ns-ink-strong); }
.ns-outline section a span { color: var(--ns-success); }

.ns-app-body :focus-visible { outline: 3px solid rgba(199, 157, 106, .55); outline-offset: 3px; }

@media (min-width: 700px) {
  .ns-page { padding-block: 52px 100px; }
  .ns-login { grid-template-columns: 1fr 1fr; }
  .ns-dashboard-hero { min-height: 340px; padding: 58px 54px; }
  .ns-dashboard-hero > img { right: 24px; bottom: -80px; width: 290px; }
  .ns-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ns-course-card__body { padding: 28px; }
  .ns-empty { grid-template-columns: 160px 1fr; padding: 40px; }
  .ns-course-hero { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; gap: 54px; }
  .ns-resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ns-module summary { padding: 22px 26px; }
  .ns-lesson-list { padding-inline: 26px; }
  .ns-lesson-nav { grid-template-columns: 1fr 1.4fr; }
}

@media (min-width: 980px) {
  .ns-lesson-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 36px; }
  .ns-outline { position: sticky; top: 92px; }
  .ns-course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .ns-container { width: min(calc(100% - 32px), var(--ns-container)); }
  .ns-account a:first-child { display: none; }
  .ns-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
  .ns-dashboard-hero { padding-right: 80px; }
  .ns-module summary > span:last-child { display: none; }
  .ns-lesson-row { grid-template-columns: 30px 1fr; }
  .ns-lesson-row time { grid-column: 2; }
  .ns-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ns-app-body *, .ns-app-body *::before, .ns-app-body *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

