:root {
  color-scheme: light;
  --ink: #101820;
  --ink-2: #162332;
  --muted: #64707d;
  --soft: #f9f7f2;
  --paper: #ffffff;
  --line: #dde5df;
  --line-strong: #becdc4;
  --emerald: #1a4d2e;
  --emerald-2: #143d24;
  --mint: #e7f4ee;
  --gold: #d4af37;
  --gold-soft: #f7ecd5;
  --blue: #216a8a;
  --blue-soft: #e6f2f6;
  --coral: #b85b4b;
  --coral-soft: #fae9e5;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.12);
  --shadow-soft: 0 14px 36px rgba(16, 24, 32, 0.08);
  --radius: 8px;
  --sidebar: 284px;
  --right: 332px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(22, 107, 82, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(22, 107, 82, 0.04) 1px, transparent 1px),
    #f9f7f2;
  background-size: 46px 46px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.academy-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--right);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: linear-gradient(180deg, #1a4d2e 0%, #143d24 100%);
  color: #edf5ef;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: block;
  padding: 2px 0 22px;
}

.brand-logo {
  width: 100%;
  max-width: 238px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.brand-subtitle {
  margin: 12px 0 0;
  color: rgba(237, 245, 239, 0.62);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.progress-panel {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  border-radius: var(--radius);
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.progress-copy p {
  margin: 0 0 4px;
  font-size: 12px;
  color: rgba(237, 245, 239, 0.58);
}

.progress-copy strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.ring {
  --p: 0deg;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--gold) var(--p), rgba(255,255,255,.12) 0);
}

.ring::after {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0d171d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.nav-label {
  margin: 10px 0 8px;
  color: rgba(237, 245, 239, 0.52);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.module-nav {
  display: grid;
  gap: 7px;
  overflow: auto;
  padding-right: 2px;
}

.module-link {
  width: 100%;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(237, 245, 239, 0.74);
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.module-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.module-link.active {
  background: #edf5ef;
  color: #101820;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.module-link.done .nav-index {
  background: rgba(51, 171, 121, 0.22);
  color: #bff2d2;
}

.module-link.active.done .nav-index,
.module-link.active .nav-index {
  background: #dfeae3;
  color: var(--emerald-2);
}

.nav-index {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(237, 245, 239, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.nav-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.nav-time {
  display: block;
  margin-top: 3px;
  color: currentColor;
  opacity: .56;
  font-size: 11px;
}

.main {
  min-width: 0;
  padding: 24px clamp(22px, 3vw, 44px) 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.search {
  position: relative;
  flex: 1 1 280px;
  max-width: 520px;
}

.search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #81908a;
}

.search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  color: var(--ink);
  outline: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
}

.search input:focus {
  border-color: rgba(22, 107, 82, .45);
  box-shadow: 0 0 0 4px rgba(22, 107, 82, .1);
}

.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-pill {
  min-width: 210px;
  max-width: 292px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.86);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
}

.profile-pill:hover {
  border-color: rgba(22, 107, 82, .28);
}

.profile-avatar,
.profile-row-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--emerald-2);
}

.profile-pill > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.profile-pill strong,
.profile-pill small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-pill strong {
  font-size: 12px;
  font-weight: 850;
}

.profile-pill small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
}

.language-switch button {
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.language-switch button.active {
  background: var(--emerald);
  color: #fff;
}

.ghost-btn,
.primary-btn,
.quiet-btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.primary-btn {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 28px rgba(16,24,32,.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.quiet-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  color: var(--ink);
}

.quiet-btn {
  height: 36px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(22, 107, 82, .16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(241,247,243,.94)),
    var(--paper);
  box-shadow: var(--shadow-soft);
}

.route-map {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(40px, 5vw, 68px);
  line-height: .94;
  letter-spacing: 0;
  font-weight: 650;
}

.hero p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.84);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 18px;
  margin-top: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-soft);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 0;
}

.panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.panel-kicker {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.panel-body {
  padding: 18px;
}

.learning-card {
  min-height: 360px;
}

.module-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--emerald-2);
}

.module-heading h2 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.02;
  font-weight: 650;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chip.green {
  border-color: rgba(22, 107, 82, .18);
  background: var(--mint);
  color: var(--emerald-2);
}

.lesson-block {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(280px, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.learning-card .lesson-block {
  grid-template-columns: 1fr;
}

.objective {
  padding: 18px;
  border-radius: var(--radius);
  background: #111e27;
  color: #edf5ef;
}

.objective h3,
.micro-list h3,
.scenario-card h3,
.quiz-card h3,
.checklist-card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
  color: inherit;
}

.objective p {
  margin: 0;
  color: rgba(237,245,239,.78);
  line-height: 1.55;
  font-size: 14px;
}

.micro-list {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.micro-list ul,
.steps-list,
.memo-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.micro-list li,
.steps-list li,
.memo-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-top: 1px solid rgba(16,24,32,.07);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.micro-list li:first-child,
.steps-list li:first-child,
.memo-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.bullet {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--emerald-2);
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.visual-card {
  min-height: 118px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, #f0f5f2);
  border: 1px solid var(--line);
}

.visual-card svg {
  color: var(--emerald-2);
}

.visual-card strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 13px;
}

.visual-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.scenario-card {
  background: #101820;
  color: #eef6f0;
}

.scenario-card .panel-kicker {
  color: rgba(238,246,240,.62);
}

.scenario-box {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
}

.scenario-box p {
  margin: 0;
  color: rgba(238,246,240,.86);
  line-height: 1.55;
}

.scenario-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.scenario-option,
.quiz-option {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.scenario-option:hover {
  background: rgba(255,255,255,.1);
}

.scenario-option.selected {
  border-color: rgba(244, 216, 146, .58);
  background: rgba(200, 155, 60, .18);
}

.feedback {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(231, 244, 238, .1);
  border: 1px solid rgba(231, 244, 238, .16);
  color: rgba(238,246,240,.82);
  font-size: 13px;
  line-height: 1.5;
}

.quiz-card {
  background: #fff;
}

.quiz-question {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-option {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.quiz-option:hover {
  background: var(--soft);
}

.quiz-option.correct {
  border-color: rgba(22, 107, 82, .38);
  background: var(--mint);
}

.quiz-option.wrong {
  border-color: rgba(184, 91, 75, .28);
  background: var(--coral-soft);
}

.quiz-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checklist {
  display: grid;
  gap: 8px;
}

.check-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.check-box {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: transparent;
}

.check-item.checked .check-box {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
}

.check-text {
  font-size: 13px;
  line-height: 1.45;
}

.path {
  display: grid;
  gap: 10px;
}

.path-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.path-row:hover {
  border-color: rgba(22, 107, 82, .25);
}

.path-row.active {
  border-color: rgba(22, 107, 82, .36);
  background: var(--mint);
}

.path-row.done .path-index {
  background: var(--emerald);
  color: #fff;
}

.path-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
}

.path-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.path-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.right-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 24px 22px;
  border-left: 1px solid rgba(16,24,32,.08);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
}

.certification-panel {
  margin-top: 18px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 30, 39, .96), rgba(15, 77, 62, .94)),
    #111e27;
  color: #edf5ef;
}

.certification-panel.ready {
  background:
    radial-gradient(circle at 10% 8%, rgba(212, 175, 55, .35), transparent 22%),
    radial-gradient(circle at 88% 24%, rgba(231, 244, 238, .2), transparent 25%),
    linear-gradient(135deg, #10251b 0%, #1a4d2e 58%, #143d24 100%);
}

.certification-panel .panel-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.certification-panel.ready .panel-body {
  display: block;
  padding: clamp(18px, 2.5vw, 28px);
}

.certification-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.certification-copy .module-icon {
  background: rgba(244, 216, 146, .16);
  color: #f3d88d;
}

.certification-copy h2 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.certification-copy p {
  margin: 8px 0 0;
  max-width: 620px;
  color: rgba(237,245,239,.72);
  font-size: 14px;
  line-height: 1.55;
}

.certification-eyebrow {
  margin: 0 0 8px !important;
  color: #f3d88d !important;
  font-size: 11px !important;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.certification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.certification-panel.ready .certification-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.certification-panel .ghost-btn {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #edf5ef;
}

.certification-panel .primary-btn {
  background: #edf5ef;
  color: #111e27;
}

.diploma-stage {
  position: relative;
}

.confetti-field {
  position: absolute;
  inset: -12px;
  overflow: hidden;
  pointer-events: none;
}

.confetti-field span {
  position: absolute;
  width: 8px;
  height: 22px;
  border-radius: 999px;
  background: #d4af37;
  opacity: .9;
}

.confetti-field span:nth-child(1) { left: 6%; top: 12%; transform: rotate(22deg); }
.confetti-field span:nth-child(2) { left: 17%; top: 76%; background: #edf5ef; transform: rotate(-18deg); }
.confetti-field span:nth-child(3) { left: 42%; top: 4%; background: #9fd3bb; transform: rotate(52deg); }
.confetti-field span:nth-child(4) { right: 19%; top: 12%; transform: rotate(-40deg); }
.confetti-field span:nth-child(5) { right: 8%; top: 64%; background: #edf5ef; transform: rotate(28deg); }
.confetti-field span:nth-child(6) { left: 58%; bottom: 5%; background: #d4af37; transform: rotate(-68deg); }

.diploma-paper {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(212, 175, 55, .56);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(249,247,242,.96)),
    #fff;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .25);
}

.diploma-paper::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(212, 175, 55, .42);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

.diploma-paper::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: -72px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 37%, rgba(212, 175, 55, .28) 38%, rgba(212, 175, 55, .28) 39%, transparent 40%),
    repeating-conic-gradient(from 0deg, rgba(212, 175, 55, .16) 0deg 6deg, transparent 6deg 12deg);
  opacity: .72;
  pointer-events: none;
}

.diploma-top,
.diploma-copy,
.recipient-block,
.diploma-achievements,
.diploma-footer {
  position: relative;
  z-index: 1;
}

.diploma-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.diploma-logo {
  width: min(260px, 48%);
}

.diploma-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(26, 77, 46, .12));
}

.diploma-seal {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, .72);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, .94), rgba(247, 236, 213, .92)),
    var(--gold-soft);
  color: var(--emerald-2);
  text-align: center;
  box-shadow: 0 18px 36px rgba(26, 77, 46, .12);
}

.diploma-seal span {
  max-width: 82px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.diploma-copy {
  margin-top: clamp(18px, 3vw, 30px);
  max-width: 760px;
}

.diploma-kicker {
  margin: 0 0 10px;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.diploma-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(38px, 5vw, 68px);
  line-height: .95;
  font-weight: 650;
}

.diploma-copy h2 span {
  display: block;
}

.diploma-subtitle {
  margin: 16px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.recipient-block {
  margin-top: clamp(22px, 3vw, 34px);
  padding: 18px 0 0;
  border-top: 1px solid rgba(212, 175, 55, .36);
}

.recipient-block span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.recipient-block strong {
  display: block;
  margin-top: 4px;
  color: var(--emerald-2);
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.recipient-block p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

.diploma-achievements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.diploma-achievements div {
  padding: 14px;
  border: 1px solid rgba(26, 77, 46, .12);
  border-radius: var(--radius);
  background: rgba(231, 244, 238, .62);
}

.diploma-achievements strong {
  display: block;
  color: var(--emerald-2);
  font-size: 18px;
}

.diploma-achievements span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.diploma-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
  align-items: end;
  margin-top: clamp(26px, 4vw, 42px);
}

.diploma-footer span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.diploma-footer strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
}

.signature-line {
  position: relative;
  min-height: 60px;
  border-bottom: 1px solid rgba(16, 24, 32, .34);
}

.signature-line span {
  margin-bottom: 22px;
}

.trainer-signature {
  position: absolute;
  left: 50%;
  top: 17px;
  width: min(190px, 82%);
  height: 38px;
  display: block;
  object-fit: contain;
  transform: translateX(-50%);
  pointer-events: none;
}

.rail-section + .rail-section {
  margin-top: 18px;
}

.rail-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.memo-card {
  width: 100%;
  display: block;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(16,24,32,.055);
}

.memo-card:hover {
  border-color: rgba(22, 107, 82, .28);
}

.memo-card strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.memo-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.coach-card {
  padding: 16px;
  border-radius: var(--radius);
  background: #111e27;
  color: #edf5ef;
}

.coach-card h3 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.coach-card p {
  margin: 12px 0 0;
  color: rgba(237,245,239,.72);
  font-size: 13px;
  line-height: 1.55;
}

.day-routine {
  display: grid;
  gap: 8px;
}

.routine-row {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.routine-row time {
  color: var(--emerald-2);
  font-size: 12px;
  font-weight: 850;
}

.routine-row strong {
  display: block;
  font-size: 13px;
}

.routine-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 17, 22, .48);
}

.modal {
  width: min(780px, 100%);
  max-height: min(760px, 90vh);
  overflow: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.modal-body {
  padding: 20px;
}

.profile-modal {
  width: min(900px, 100%);
}

.profile-modal-body {
  display: grid;
  gap: 16px;
}

.profile-editor,
.profile-create-card,
.profile-list-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.profile-editor {
  display: grid;
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  background:
    linear-gradient(140deg, rgba(231,244,238,.88), rgba(255,255,255,.96)),
    #fff;
}

.profile-section-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-storage-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--emerald-2);
  font-size: 12px;
  font-weight: 750;
}

.profile-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, .7fr) auto;
  gap: 10px;
  align-items: end;
}

.profile-form label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.profile-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-form input,
.profile-form select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
}

.profile-form input:focus,
.profile-form select:focus {
  border-color: rgba(22, 107, 82, .45);
  box-shadow: 0 0 0 4px rgba(22, 107, 82, .1);
}

.profile-list {
  display: grid;
  gap: 8px;
}

.profile-row {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.profile-row:hover {
  border-color: rgba(22, 107, 82, .28);
}

.profile-row.active {
  border-color: rgba(22, 107, 82, .36);
  background: var(--mint);
}

.profile-row-main,
.profile-row-score {
  display: grid;
  gap: 3px;
}

.profile-row-main {
  min-width: 0;
}

.profile-row-main strong,
.profile-row-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-row-main strong {
  font-size: 14px;
}

.profile-row-main small,
.profile-row-score small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.profile-row-score {
  min-width: 58px;
  text-align: right;
}

.profile-row-score strong {
  color: var(--emerald-2);
  font-size: 15px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.mobile-toggle {
  display: none;
}

@media (max-width: 1500px) {
  .academy-shell {
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
  }

  .right-rail {
    display: none;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .academy-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 40;
    width: min(320px, 86vw);
    transform: translateX(-104%);
    transition: transform .22s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    padding: 16px 14px 34px;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .topbar .search {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    margin-left: 0;
  }

  .top-actions .ghost-btn {
    display: none;
  }

  .profile-pill {
    min-width: 0;
    max-width: none;
  }

  .hero,
  .lesson-block,
  .learning-card .lesson-block {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }

  .visual-strip {
    grid-template-columns: 1fr;
  }

  .certification-panel .panel-body,
  .certification-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .certification-panel.ready .panel-body {
    padding: 14px;
  }

  .diploma-paper {
    padding: 22px;
  }

  .diploma-paper::before {
    inset: 9px;
  }

  .diploma-top,
  .diploma-footer {
    grid-template-columns: 1fr;
  }

  .diploma-top {
    align-items: center;
  }

  .diploma-logo {
    width: 190px;
  }

  .diploma-seal {
    width: 92px;
    height: 92px;
  }

  .diploma-achievements,
  .diploma-footer {
    grid-template-columns: 1fr;
  }

  .signature-line {
    min-height: 42px;
  }

  .profile-editor,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .profile-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }

  html,
  body {
    width: 297mm;
    min-height: 210mm;
    margin: 0;
    background: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .sidebar,
  .topbar,
  .right-rail,
  .scenario-card,
  .quiz-card,
  .modal-backdrop,
  .primary-btn,
  .ghost-btn,
  .quiet-btn {
    display: none !important;
  }

  .academy-shell,
  .section-grid,
  .lesson-block {
    display: block;
  }

  .main {
    padding: 0;
  }

  .panel,
  .hero {
    box-shadow: none;
    break-inside: avoid;
  }

  body.print-certificate .sidebar,
  body.print-certificate .topbar,
  body.print-certificate .right-rail,
  body.print-certificate .hero,
  body.print-certificate .section-grid,
  body.print-certificate .panel:not(.certification-panel),
  body.print-certificate .certification-actions,
  body.print-certificate .confetti-field {
    display: none !important;
  }

  body.print-certificate .academy-shell,
  body.print-certificate .main {
    display: block;
  }

  body.print-certificate,
  body.print-certificate .academy-shell,
  body.print-certificate .main {
    width: 297mm;
    height: 210mm;
    overflow: hidden;
    background: #10251b !important;
  }

  body.print-certificate .main {
    padding: 0;
  }

  body.print-certificate .certification-panel {
    display: block !important;
    width: 297mm;
    height: 210mm;
    margin: 0;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 10% 8%, rgba(212, 175, 55, .35), transparent 22%),
      radial-gradient(circle at 88% 24%, rgba(231, 244, 238, .2), transparent 25%),
      linear-gradient(135deg, #10251b 0%, #1a4d2e 58%, #143d24 100%) !important;
    color: var(--ink);
    box-shadow: none;
    break-after: avoid;
    page-break-after: avoid;
  }

  body.print-certificate .certification-panel .panel-body {
    display: block;
    height: 100%;
    padding: 1.4mm;
    box-sizing: border-box;
  }

  body.print-certificate .diploma-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
  }

  body.print-certificate .diploma-paper {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 10mm 10mm 8mm;
    box-sizing: border-box;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .12);
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.print-certificate .diploma-paper::before {
    inset: 3.5mm;
  }

  body.print-certificate .diploma-paper::after {
    right: -14mm;
    bottom: -17mm;
    width: 62mm;
    height: 62mm;
  }

  body.print-certificate .diploma-logo {
    width: 62mm;
  }

  body.print-certificate .diploma-logo img {
    filter: none;
  }

  body.print-certificate .diploma-seal {
    width: 30mm;
    height: 30mm;
    background: #fffdf8;
    box-shadow: none;
    isolation: isolate;
  }

  body.print-certificate .diploma-seal span {
    max-width: 22mm;
    font-size: 7.5pt;
  }

  body.print-certificate .diploma-copy {
    margin-top: 10mm;
    max-width: 210mm;
  }

  body.print-certificate .diploma-copy h2 {
    max-width: 210mm;
    font-size: 48pt;
    line-height: .94;
  }

  body.print-certificate .diploma-subtitle {
    margin-top: 7mm;
    max-width: 205mm;
    font-size: 12.5pt;
    line-height: 1.45;
  }

  body.print-certificate .recipient-block {
    margin-top: 9mm;
    padding-top: 6mm;
  }

  body.print-certificate .recipient-block strong {
    font-size: 32pt;
  }

  body.print-certificate .recipient-block p {
    max-width: 200mm;
    margin-top: 4mm;
    font-size: 12pt;
    line-height: 1.45;
  }

  body.print-certificate .diploma-achievements {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4mm;
    margin-top: 8mm;
  }

  body.print-certificate .diploma-achievements div {
    padding: 4mm;
  }

  body.print-certificate .diploma-achievements strong {
    font-size: 17pt;
  }

  body.print-certificate .diploma-achievements span {
    font-size: 10pt;
  }

  body.print-certificate .diploma-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4mm;
    margin-top: 5mm;
    padding: 0 0 8mm;
  }

  body.print-certificate .signature-line {
    min-height: 15mm;
    margin: 0;
  }

  body.print-certificate .trainer-signature {
    top: 4mm;
    width: min(48mm, 82%);
    height: 10.5mm;
  }

  body.print-certificate .diploma-footer span {
    font-size: 8.5pt;
  }

  body.print-certificate .diploma-footer strong {
    font-size: 11pt;
  }
}
