:root {
  --yellow: #ffcb05;
  --yellow-deep: #e8b900;
  --ink: #151512;
  --ink-2: #24231f;
  --muted: #686862;
  --soft: #f1f1ed;
  --paper: #f7f7f4;
  --white: #ffffff;
  --line: #d9d9d2;
  --line-dark: #393934;
  --success: #16733c;
  --danger: #b42318;
  --radius-card: 18px;
  --radius-control: 10px;
  --font-display: "Arial Black", "Arial Nova", Arial, sans-serif;
  --shadow: 0 18px 50px rgba(21, 21, 18, 0.08);
  --shadow-small: 0 8px 24px rgba(21, 21, 18, 0.06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, textarea, input { font: inherit; }
h1, .resume-copy h2, .page-head h1, .admin-head h1, .auth-card h2, .auth-story h1 {
  font-family: var(--font-display);
  font-weight: 900;
}
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
button:active, .button:active { transform: translateY(1px); }
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--radius-control);
  font-weight: 800;
}
.skip-link:focus { top: 16px; }

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 14px; font-weight: 850; }
.brand img { width: 176px; height: 42px; object-fit: contain; object-position: left center; }
.brand span { padding-left: 14px; border-left: 1px solid #55554f; font-size: 16px; }
.topbar nav { display: flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 24px; height: 100%; }
.topbar nav a {
  min-height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-radius: 9px;
  color: #d7d7d1;
  font-size: 14px;
  font-weight: 750;
  transition: background .18s ease, color .18s ease;
}
.topbar nav a:hover { background: #2a2a26; color: var(--white); }
.topbar nav a.active { background: var(--yellow); color: var(--ink); }
.profile-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; color: #d7d7d1; }
.topbar nav[hidden] + .profile-name { margin-left: auto; }
.profile-button {
  width: 40px;
  height: 40px;
  margin-left: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.account-popover {
  position: absolute;
  right: max(24px, calc((100vw - 1240px) / 2));
  top: 62px;
  width: 264px;
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 56px rgba(0,0,0,.24);
  border: 1px solid var(--line);
}
.account-popover strong { font-size: 15px; }
.account-popover span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.account-popover button {
  margin-top: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}
.shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button.primary { background: var(--ink); color: var(--white); }
.button.primary:hover { background: #30302b; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.secondary:hover { background: var(--white); }
.button.light { background: var(--white); color: var(--ink); border-color: rgba(21,21,18,.14); }
.button.light:hover { background: var(--soft); }
.button.full { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 850; text-decoration: underline; text-underline-offset: 4px; }
.progress-line { height: 5px; overflow: hidden; border-radius: 99px; background: #deded8; }
.progress-line > span { display: block; height: 100%; border-radius: inherit; background: var(--yellow); }

.dashboard { padding-top: 44px; }
.workspace-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.workspace-head p { margin: 0 0 7px; color: var(--muted); font-size: 14px; font-weight: 720; }
.workspace-head h1 { margin: 0; max-width: 740px; font-size: clamp(34px, 4.2vw, 56px); line-height: .98; letter-spacing: -.05em; }
.learning-grid { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(320px, .72fr); gap: 18px; }
.resume-card {
  min-height: 360px;
  padding: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 36px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--yellow);
  box-shadow: var(--shadow-small);
}
.resume-card::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -150px;
  bottom: -180px;
  border: 52px solid rgba(21,21,18,.1);
  border-radius: 50%;
  pointer-events: none;
}
.course-kicker { display: block; margin-bottom: 28px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.resume-copy small { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 850; }
.resume-copy h2 { margin: 0; max-width: 620px; font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -.045em; }
.resume-copy p { max-width: 620px; margin: 17px 0 28px; color: #35342e; line-height: 1.5; }
.resume-state { align-self: start; min-width: 0; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.74); backdrop-filter: blur(10px); }
.resume-state > span { font-size: 12px; font-weight: 800; color: var(--muted); }
.resume-state > strong { display: block; margin-top: 26px; font-size: 42px; line-height: 1; letter-spacing: -.04em; }
.resume-state > small { display: block; margin: 5px 0 18px; color: var(--muted); }
.pathway-panel { min-height: 360px; padding: 30px; display: flex; flex-direction: column; border-radius: var(--radius-card); background: var(--ink); color: var(--white); box-shadow: var(--shadow-small); }
.pathway-summary > div:first-child { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.pathway-summary span { color: #bdbdb7; font-size: 13px; }
.pathway-summary strong { font-size: 44px; line-height: .9; color: var(--yellow); letter-spacing: -.04em; }
.pathway-panel .progress-line { background: #3b3b36; }
.pathway-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 34px 0; }
.pathway-facts div { padding-top: 16px; border-top: 1px solid var(--line-dark); }
.pathway-facts strong { display: block; margin-bottom: 7px; font-size: 23px; font-variant-numeric: tabular-nums; }
.pathway-facts span { display: block; color: #a9a9a3; font-size: 11px; line-height: 1.3; }
.pathway-panel > a { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 13px; color: var(--yellow); }

.section-block { padding-block: 64px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -.045em; }
.section-heading p { max-width: 620px; margin: 9px 0 0; color: var(--muted); line-height: 1.5; }
.section-heading > a { flex: 0 0 auto; font-size: 14px; font-weight: 850; text-decoration: underline; text-underline-offset: 4px; }
.eyebrow { display: block; margin-bottom: 12px; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.course-card {
  min-height: 258px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.course-card:hover { transform: translateY(-3px); border-color: #b8b8af; box-shadow: var(--shadow-small); }
.course-card:has(.progress-line > span[style*="100%"]), .course-card:nth-child(11) { background: #f0f0eb; }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.card-top span { font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.card-top strong { color: #aaa9a1; font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
.card-body { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 20px; margin: 34px 0 auto; align-items: start; }
.card-body h3 { margin: 0; font-size: 24px; line-height: 1.02; letter-spacing: -.035em; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0 10px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.course-card > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; font-size: 13px; font-weight: 850; }
.course-card > a .icon { width: 17px; }
.dashboard-courses .course-card:nth-child(1) { grid-column: span 2; background: var(--white); }
.dashboard-courses .course-card:nth-child(1) .card-body { grid-template-columns: .45fr 1fr; }

.growth-band { margin-top: 20px; background: var(--yellow); }
.growth-inner { min-height: 260px; display: grid; grid-template-columns: 150px 1fr auto; gap: 42px; align-items: center; }
.growth-number { font-size: 58px; line-height: .9; font-weight: 900; letter-spacing: -.055em; }
.growth-inner h2 { max-width: 700px; margin: 0; font-size: clamp(32px, 4.2vw, 54px); line-height: .98; letter-spacing: -.05em; }
.growth-inner p { margin: 16px 0 0; max-width: 620px; line-height: 1.5; }

.page-head { padding-block: 58px 0; }
.page-head h1 { margin: 0; max-width: 800px; font-size: clamp(44px, 6vw, 72px); line-height: .96; letter-spacing: -.06em; }
.page-head > p { max-width: 680px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.catalog-summary { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(200px, 1.35fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); }
.catalog-summary > div { padding: 22px; border-right: 1px solid var(--line); }
.catalog-summary strong { display: block; margin-bottom: 5px; font-size: 25px; font-variant-numeric: tabular-nums; }
.catalog-summary span { color: var(--muted); font-size: 12px; }
.catalog-summary > a { padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--yellow); font-size: 14px; font-weight: 900; }
.filter-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.filter-row strong { color: var(--ink); }
.catalogue { padding-top: 42px; }
.catalogue .course-card:nth-child(1), .catalogue .course-card:nth-child(6) {
  grid-column: span 2;
  min-height: 220px;
  border-left: 5px solid var(--yellow);
}
.catalogue .course-card:nth-child(1) .card-body, .catalogue .course-card:nth-child(6) .card-body {
  grid-template-columns: .45fr 1fr;
  align-items: end;
}
.catalogue .course-card:nth-child(6) { background: var(--soft); }
.catalogue .course-card:nth-child(9), .catalogue .course-card:nth-child(10) { background: #fff9d8; border-color: #ead271; }
.catalogue .course-card:nth-child(11) { grid-column: span 2; background: var(--ink); color: var(--white); border-color: var(--ink); }
.catalogue .course-card:nth-child(11) .card-body p, .catalogue .course-card:nth-child(11) .card-meta { color: #bdbdb7; }
.catalogue .course-card:nth-child(11) .progress-line { background: #3b3b36; }
.catalogue .course-card:nth-child(11) .card-top strong { color: var(--yellow); }

.progress-layout { padding-block: 42px 80px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.progress-list { display: grid; gap: 10px; }
.progress-row { padding: 18px 20px; display: grid; grid-template-columns: 44px 1fr 56px; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.progress-row > span { color: #a7a69e; font-size: 18px; font-weight: 900; }
.progress-row > div { min-width: 0; }
.progress-row strong { display: block; margin-bottom: 9px; }
.progress-row small { display: block; margin-top: 8px; color: var(--muted); }
.progress-row > b { text-align: right; font-variant-numeric: tabular-nums; }
.certificate-card { position: sticky; top: 94px; padding: 28px; border-radius: var(--radius-card); background: var(--ink); color: var(--white); }
.certificate-card > .icon { width: 34px; height: 34px; margin-bottom: 30px; color: var(--yellow); }
.certificate-card .eyebrow { color: #abab9f; }
.certificate-card h2 { margin: 0; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.certificate-card p { color: #bdbdb7; line-height: 1.5; }
.certificate-card .button { margin-top: 14px; background: var(--yellow); color: var(--ink); }

.player { min-height: calc(100dvh - 72px); display: grid; grid-template-columns: 340px minmax(0, 1fr); background: var(--white); }
.lesson-rail { padding: 28px 22px 50px; background: #efefea; border-right: 1px solid var(--line); }
.back-link { min-height: 40px; display: inline-flex; align-items: center; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; cursor: pointer; }
.rail-title { padding: 28px 8px 24px; border-bottom: 1px solid var(--line); }
.rail-title > span { font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.rail-title h2 { margin: 10px 0 18px; font-size: 25px; line-height: 1.03; letter-spacing: -.035em; }
.rail-title small { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }
.lesson-rail nav { display: grid; gap: 5px; margin-top: 18px; }
.lesson-link { min-height: 64px; padding: 10px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; border-radius: 10px; }
.lesson-link:hover { background: rgba(255,255,255,.65); }
.lesson-link.current { background: var(--white); box-shadow: var(--shadow-small); }
.lesson-status { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #b9b9b1; border-radius: 50%; font-size: 11px; font-weight: 900; }
.lesson-status.done { background: var(--success); border-color: var(--success); color: var(--white); }
.lesson-status .icon { width: 15px; height: 15px; }
.lesson-link strong { display: block; font-size: 13px; line-height: 1.25; }
.lesson-link small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.lesson-stage { min-width: 0; }
.lesson-toolbar { height: 58px; padding: 0 34px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.lesson-toolbar a { color: var(--ink); font-weight: 850; }
.lesson-toolbar span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-toolbar span:last-child { margin-left: auto; flex: 0 0 auto; }
.lesson-content { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 90px; }
.lesson-content h1 { max-width: 720px; margin: 0; font-size: clamp(42px, 5.8vw, 68px); line-height: .96; letter-spacing: -.055em; }
.lesson-lede { margin: 22px 0 36px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.notice { margin-bottom: 24px; padding: 18px 20px; border-radius: 12px; background: #fff7c7; border: 1px solid #e6cf6a; }
.notice strong { font-size: 13px; }
.notice p { margin: 7px 0 0; color: #514b2b; line-height: 1.5; }
.lesson-panel { padding: 28px; border-radius: var(--radius-card); background: var(--ink); color: var(--white); }
.lesson-panel > span, .activity-label { font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.lesson-panel ul { margin: 22px 0 0; padding: 0; display: grid; gap: 17px; list-style: none; }
.lesson-panel li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; line-height: 1.5; }
.lesson-panel li .icon { color: var(--yellow); }
.activity { margin-top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); }
.activity h2 { margin: 10px 0 12px; font-size: 28px; letter-spacing: -.035em; }
.activity p { color: var(--muted); line-height: 1.55; }
.activity textarea { width: 100%; min-height: 150px; margin-top: 10px; padding: 16px; resize: vertical; border: 1px solid #bdbdb6; border-radius: 10px; background: var(--white); line-height: 1.5; }
.activity textarea:focus { border-color: var(--ink); }
.save-status { display: block; margin-top: 8px; color: var(--muted); }
.lesson-actions { margin-top: 24px; display: flex; justify-content: space-between; gap: 12px; }
.quiz-content form fieldset { margin: 32px 0 0; padding: 0; border: 0; }
.quiz-content legend { margin-bottom: 22px; font-size: 24px; font-weight: 850; line-height: 1.3; }
.quiz-option { min-height: 64px; margin-bottom: 10px; padding: 12px 16px; display: grid; grid-template-columns: 20px 32px 1fr; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.quiz-option:hover, .quiz-option:has(input:checked) { border-color: var(--ink); background: #fff9d6; }
.quiz-option > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); font-size: 12px; }
.quiz-option b { font-size: 14px; line-height: 1.4; }
.feedback { min-height: 22px; color: var(--danger); font-weight: 750; }
.quiz-success { margin-top: 36px; padding: 24px; display: flex; gap: 18px; border-radius: var(--radius-card); background: #e8f5ec; color: #0d5d30; }
.quiz-success h2, .quiz-success p { margin: 0; }
.quiz-success p { margin-top: 6px; }

.auth-header { position: absolute; width: 50%; background: transparent; border: 0; }
.auth-header nav, .auth-header .profile-button, .auth-header .profile-name { display: none !important; }
.auth-layout { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; background: var(--white); }
.auth-story { min-height: 100dvh; padding: 150px max(54px, calc((100vw - 1240px)/2)) 60px; position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.auth-story::after { content: ""; position: absolute; width: 440px; height: 440px; right: -190px; bottom: -250px; border: 72px solid var(--yellow); border-radius: 50%; }
.auth-story-inner { max-width: 600px; position: relative; z-index: 1; }
.auth-story h1 { margin: 0; max-width: 560px; font-size: clamp(54px, 6vw, 86px); line-height: .92; letter-spacing: -.065em; }
.auth-story p { max-width: 570px; margin: 28px 0 48px; color: #c6c6c0; font-size: 18px; line-height: 1.55; }
.auth-path { display: grid; grid-template-columns: 34px auto 1fr 34px auto 1fr 34px auto; gap: 10px; align-items: center; max-width: 520px; }
.auth-path span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 900; }
.auth-path b { font-size: 12px; }
.auth-path i { height: 1px; background: #54544e; }
.auth-form-wrap { display: grid; place-items: center; padding: 96px 64px 48px; }
.auth-card { width: min(100%, 460px); }
.auth-card > img { width: 258px; max-width: 76%; height: 74px; object-fit: contain; object-position: left center; margin-bottom: 24px; }
.auth-card h2 { margin: 0; font-size: clamp(34px, 3.2vw, 46px); line-height: .98; letter-spacing: -.05em; }
.auth-intro { margin: 17px 0 30px; color: var(--muted); line-height: 1.5; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tabs button { min-height: 54px; border: 0; border-bottom: 3px solid transparent; background: transparent; font-weight: 850; cursor: pointer; }
.auth-tabs button.active { border-bottom-color: var(--yellow); }
.auth-form { display: grid; gap: 18px; margin-top: 24px; }
.auth-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 800; }
.auth-form input { width: 100%; min-height: 50px; padding: 0 13px; border: 1px solid #bcbcb5; border-radius: 9px; background: var(--white); }
.auth-form input:focus { border-color: var(--ink); }
.auth-form small { color: var(--muted); font-weight: 500; }
.form-message { padding: 12px 14px; border-radius: 9px; background: #fdecea; color: var(--danger); font-weight: 750; }
.privacy-note { margin-top: 18px; color: var(--muted); font-size: 11px; text-align: center; }

.admin-head { padding-block: 54px; background: var(--ink); color: var(--white); }
.admin-head h1 { margin: 0; font-size: clamp(44px, 6vw, 70px); letter-spacing: -.055em; }
.admin-head p { color: #bdbdb7; }
.admin-body { padding-block: 36px 80px; }
.admin-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.admin-metrics article { padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.admin-metrics article .icon { grid-row: span 2; color: var(--muted); }
.admin-metrics span { color: var(--muted); font-size: 12px; }
.admin-metrics strong { font-size: 28px; }
.admin-table-wrap { margin-top: 34px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.admin-table th { padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: left; }
.admin-table td { padding: 16px 12px; border-bottom: 1px solid #ecece7; vertical-align: top; font-size: 13px; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { margin-top: 5px; color: var(--muted); }
.table-progress { width: 220px; }

.certificate-view { padding-block: 36px 80px; }
.certificate { max-width: 960px; margin: 24px auto; padding: 68px; border: 12px solid var(--yellow); background: var(--white); text-align: center; box-shadow: var(--shadow); }
.certificate img { width: 240px; max-width: 70%; }
.certificate > span { display: block; margin-top: 28px; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.certificate h1 { margin: 16px 0 34px; font-size: 56px; letter-spacing: -.05em; }
.certificate h2 { font-size: 38px; }
.certificate p { color: var(--muted); }
.certificate-rule { width: 120px; height: 4px; margin: 36px auto; background: var(--yellow); }
.certificate small { color: var(--muted); }
.fatal { min-height: 60dvh; display: grid; place-content: center; text-align: center; padding: 24px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 360px; padding: 14px 18px; border-radius: 10px; background: var(--ink); color: var(--white); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .shell { width: min(100% - 36px, 920px); }
  .profile-name { display: none; }
  .learning-grid { grid-template-columns: 1fr; }
  .resume-card, .pathway-panel { min-height: 320px; }
  .growth-inner { grid-template-columns: 110px 1fr; padding-block: 42px; }
  .growth-inner .button { grid-column: 2; justify-self: start; }
  .player { grid-template-columns: 280px minmax(0, 1fr); }
  .progress-layout { grid-template-columns: 1fr; }
  .certificate-card { position: static; }
  .auth-story { padding-inline: 42px; }
  .auth-form-wrap { padding-inline: 36px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 68px; }
  .shell { width: min(100% - 28px, 640px); }
  .topbar { height: 64px; padding: 0 14px; position: sticky; }
  .brand { gap: 0; }
  .brand img { width: 122px; height: 36px; }
  .brand span { display: none; }
  .topbar nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    height: calc(62px + env(safe-area-inset-bottom));
    margin: 0;
    padding: 6px 10px env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: var(--ink);
    border-top: 1px solid #3a3a35;
  }
  .topbar nav a { min-height: 48px; padding: 0 8px; justify-content: center; border-radius: 8px; font-size: 12px; }
  .profile-button { width: 38px; height: 38px; margin-left: auto; }
  .account-popover { position: fixed; top: 58px; right: 12px; width: min(280px, calc(100% - 24px)); }
  .dashboard { padding-top: 28px; }
  .workspace-head { align-items: start; margin-bottom: 18px; }
  .workspace-head .text-link { display: none; }
  .workspace-head h1 { font-size: 38px; }
  .learning-grid { gap: 12px; }
  .resume-card { min-height: 0; padding: 22px; grid-template-columns: 1fr; gap: 16px; }
  .course-kicker { margin-bottom: 14px; }
  .resume-copy h2 { font-size: 36px; }
  .resume-copy p {
    margin: 12px 0 18px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
  }
  .resume-state { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3px 12px; }
  .resume-state > span { grid-column: 1; }
  .resume-state > strong { grid-row: 1 / span 2; grid-column: 2; margin: 0; }
  .resume-state > small { margin: 0; }
  .resume-state .progress-line { grid-column: 1 / -1; margin-top: 12px; }
  .pathway-panel { min-height: 0; padding: 18px 24px; }
  .pathway-summary > div:first-child { margin-bottom: 8px; }
  .pathway-summary strong { font-size: 36px; }
  .pathway-facts { margin: 14px 0 0; }
  .pathway-facts div { padding-top: 7px; }
  .pathway-facts strong { margin-bottom: 4px; font-size: 19px; }
  .pathway-panel > a { display: none; }
  .section-block { padding-block: 46px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 32px; }
  .section-heading p { font-size: 14px; }
  .section-heading > a { display: none; }
  .course-grid { grid-template-columns: 1fr; }
  .dashboard-courses .course-card:nth-child(1), .catalogue .course-card:nth-child(1), .catalogue .course-card:nth-child(6), .catalogue .course-card:nth-child(11) { grid-column: auto; }
  .dashboard-courses .course-card:nth-child(n+4) { display: none; }
  .course-card { min-height: 246px; padding: 22px; }
  .card-body, .dashboard-courses .course-card:nth-child(1) .card-body { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
  .catalogue .course-card:nth-child(1) .card-body, .catalogue .course-card:nth-child(6) .card-body { grid-template-columns: 1fr; align-items: start; }
  .card-body h3 { font-size: 25px; }
  .growth-inner { min-height: 0; padding-block: 38px; grid-template-columns: 1fr; gap: 18px; }
  .growth-number { font-size: 38px; }
  .growth-inner h2 { font-size: 38px; }
  .growth-inner .button { grid-column: auto; }
  .page-head { padding-top: 34px; }
  .page-head h1 { font-size: 45px; }
  .page-head > p { font-size: 16px; }
  .catalog-summary { grid-template-columns: repeat(3, 1fr); }
  .catalog-summary > div { padding: 16px 10px; }
  .catalog-summary strong { font-size: 21px; }
  .catalog-summary span { font-size: 10px; }
  .catalog-summary > a { grid-column: 1 / -1; min-height: 58px; padding: 16px; }
  .filter-row { align-items: start; flex-direction: column; gap: 5px; }
  .progress-layout { padding-bottom: 50px; }
  .progress-row { grid-template-columns: 34px 1fr 44px; padding: 15px 12px; }
  .progress-row strong { font-size: 14px; }
  .progress-row small { font-size: 10px; }
  .player { min-height: auto; grid-template-columns: 1fr; }
  .lesson-rail { min-width: 0; overflow: hidden; padding: 16px 14px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-title { padding: 12px 6px 14px; border: 0; }
  .rail-title h2 { font-size: 22px; margin-bottom: 12px; }
  .lesson-rail nav { width: 100%; max-width: 100%; display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
  .lesson-link { min-width: 210px; background: rgba(255,255,255,.6); }
  .lesson-link.current { box-shadow: none; border: 1px solid #bdbdb5; }
  .lesson-toolbar { height: 50px; padding: 0 14px; }
  .lesson-content { width: min(100% - 28px, 620px); padding: 42px 0 54px; }
  .lesson-content h1 { font-size: 42px; }
  .lesson-lede { font-size: 17px; }
  .lesson-panel, .activity { padding: 22px; }
  .lesson-actions { flex-direction: column; }
  .lesson-actions .button { width: 100%; }
  .quiz-option { grid-template-columns: 18px 30px 1fr; padding: 10px; }
  .auth-header { width: 100%; position: absolute; }
  .auth-header .brand span { display: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-form-wrap { min-height: 100dvh; padding: 104px 22px 46px; align-items: start; }
  .auth-card > img { width: 220px; height: 62px; margin-bottom: 20px; }
  .auth-card h2 { font-size: 38px; }
  .admin-head { padding-block: 36px; }
  .admin-head h1 { font-size: 44px; }
  .admin-metrics { grid-template-columns: 1fr; }
  .admin-table-wrap { padding: 16px 12px; border-radius: 14px; }
  .certificate { padding: 42px 24px; border-width: 8px; }
  .certificate h1 { font-size: 40px; }
  .certificate h2 { font-size: 30px; }
  .toast { right: 14px; bottom: 82px; left: 14px; max-width: none; }
}

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