:root {
  --bg0: #060d18;
  --bg1: #0c1624;
  --bg2: #122035;
  --bg3: #192d47;
  --teal: #1ed9b4;
  --teal-soft: rgba(30, 217, 180, .12);
  --amber: #f5a623;
  --amber-soft: rgba(245, 166, 35, .12);
  --purple: #9b7ff4;
  --purple-soft: rgba(155, 127, 244, .12);
  --green: #10c97a;
  --red: #f5425a;
  --text: #eef4ff;
  --muted: #7a9bbe;
  --dim: #435b77;
  --border: #1a3054;
  --radius: 14px;
  --small-radius: 10px;
  --font: Manrope, sans-serif;
}

.public-body {
  min-height: 100%;
  overflow: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(30, 217, 180, .13), transparent 260px),
    radial-gradient(circle at 0% 24%, rgba(245, 166, 35, .08), transparent 240px),
    var(--bg0);
}

.public-site {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 14px 30px;
  background: linear-gradient(180deg, rgba(12, 22, 36, .98), rgba(6, 13, 24, .98));
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(12, 22, 36, .86);
  backdrop-filter: blur(18px);
}

.public-logo img {
  display: block;
  width: 160px;
  max-width: 48vw;
  height: auto;
}

.public-logo,
.public-footer > img {
  padding: 8px 10px;
  border-radius: 14px;
  background: #07111f;
}

.public-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.public-actions a,
.public-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.public-actions .register-link,
.public-cta a:first-child,
.account-card button {
  border-color: transparent;
  background: var(--teal);
  color: #031410;
}

.public-hero {
  display: grid;
  gap: 22px;
  padding: 24px 6px 24px;
}

.top-image-card,
.inline-image-card {
  position: relative;
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid #1c3d60;
  border-radius: 24px;
  background: var(--bg2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
}

.top-image-card img,
.inline-image-card img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: 64% center;
}

.top-image-card::after,
.inline-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 13, 24, .86));
}

.top-image-card figcaption,
.inline-image-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.inline-image-card img {
  height: 170px;
}

.public-pill,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.public-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 10vw, 54px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.05em;
}

.public-hero p,
.public-card p,
.public-footer p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.public-hero p {
  margin-top: 18px;
}

.public-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.public-cta a {
  min-height: 46px;
  padding-inline: 18px;
  font-size: 14px;
}

.public-cta a:last-child {
  background: var(--bg2);
}

.hero-visual {
  position: relative;
  min-height: 270px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px 18px 0;
  border-radius: 38px;
  background:
    radial-gradient(circle at 30% 22%, rgba(30, 217, 180, .26), transparent 90px),
    radial-gradient(circle at 78% 65%, rgba(245, 166, 35, .2), transparent 105px),
    #0e2540;
  filter: blur(.2px);
}

.doctor-card {
  position: relative;
  display: grid;
  min-height: 270px;
  align-items: end;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #1c3d60;
  border-radius: 30px;
  background: var(--bg2);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

.doctor-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
  transform: scale(1.02);
}

.image-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 24, .02) 0%, rgba(6, 13, 24, .18) 45%, rgba(6, 13, 24, .78) 100%),
    linear-gradient(90deg, rgba(6, 13, 24, .74), transparent 48%);
}

.learning-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(30, 217, 180, .32);
  border-radius: 999px;
  background: rgba(6, 13, 24, .62);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.mini-progress {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(30, 217, 180, .24);
  border-radius: 18px;
  background: rgba(6, 13, 24, .72);
  backdrop-filter: blur(12px);
}

.mini-progress span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-progress strong {
  color: var(--teal);
  font-size: 18px;
}

.feature-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 2px;
}

.feature-strip article {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(18, 32, 53, .72);
}

.feature-strip span {
  display: grid;
  grid-row: span 2;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.feature-strip b {
  align-self: end;
  color: var(--text);
  font-size: 14px;
}

.feature-strip small {
  color: var(--muted);
  font-size: 12px;
}

.public-card {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(18, 32, 53, .98), rgba(12, 22, 36, .98));
}

.public-card h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.account-card {
  display: grid;
  gap: 12px;
}

.account-card .section-kicker,
.account-card h2 {
  margin-bottom: 0;
}

.account-card label {
  display: grid;
  gap: 6px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.account-card input {
  min-height: 48px;
  padding: 0 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--small-radius);
  outline: none;
  background: var(--bg1);
  color: var(--text);
  font-size: 14px;
  text-transform: none;
}

.account-card input:focus {
  border-color: var(--teal);
}

.account-card button {
  min-height: 48px;
  border: 0;
  border-radius: var(--small-radius);
  font-weight: 800;
}

.legal-card p + p,
.public-card p + p {
  margin-top: 10px;
}

.public-footer {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-top: 18px;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(18, 32, 53, .64);
}

.public-footer img {
  width: 156px;
  height: auto;
}

.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-footer a {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.public-footer section {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.public-footer h2 {
  color: var(--text);
  font-size: 15px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app {
  position: relative;
  display: flex;
  width: min(430px, 100%);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(30, 217, 180, .08), transparent 180px),
    radial-gradient(circle at 0% 30%, rgba(155, 127, 244, .08), transparent 170px),
    var(--bg1);
}

.admin-app {
  display: block;
}

.admin-page {
  height: 100dvh;
  padding-bottom: 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.screen {
  display: none;
  flex: 1;
  width: 100%;
  min-height: 0;
  padding-bottom: 86px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.screen.active {
  display: block;
}

.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}

.home-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.site-logo {
  display: block;
  width: 178px;
  max-width: 62vw;
  height: auto;
}

.icon-btn,
.top-icon,
.back-btn {
  display: grid;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.avatar-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #031410;
  font-weight: 800;
}

.hero-course {
  position: relative;
  margin: 20px 20px 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #1c3d60;
  border-radius: 20px;
  background: linear-gradient(140deg, #0e2540, #0a1c34);
}

.pulse-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 54px;
  opacity: .12;
  pointer-events: none;
}

.pulse-line polyline {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
}

.live-pill,
.course-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: .25;
  }
}

.hero-course h2,
.course-card h2,
.detail-hero h2,
.lesson h2,
.quiz-wrap h2,
.certificate-wrap h2,
.admin-card h2 {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.hero-course p,
.course-card p,
.detail-hero p,
.panel p,
.lesson p,
.certificate-wrap p,
.login-wrap p,
.admin-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.hero-course > p {
  margin-top: 8px;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.progress-row strong {
  color: var(--teal);
  font-size: 12px;
}

.progress-track {
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.hero-actions {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.hero-actions button,
.primary,
.secondary {
  min-height: 45px;
  border-radius: var(--small-radius);
  border: 0;
  color: #031410;
  background: var(--teal);
  font-weight: 800;
}

.hero-actions button:last-child,
.secondary {
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px 20px 0;
}

.stats-row article,
.panel,
.course-card,
.search-card,
.quiz-wrap,
.lesson,
.profile-card,
.dash-grid article,
.certificate,
.quick-list button {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
}

.stats-row article {
  padding: 14px 12px;
}

.stats-row strong {
  display: block;
  font-size: 22px;
}

.stats-row span,
.section-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.section-label {
  padding: 22px 20px 12px;
  color: var(--dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quick-list {
  display: grid;
  gap: 10px;
  padding: 0 20px 24px;
}

.quick-list button {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 14px;
  padding: 14px;
  color: var(--text);
  text-align: left;
}

.quick-list b {
  font-size: 14px;
}

.quick-list small {
  display: block;
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.qicon {
  display: grid;
  grid-row: span 2;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
}

.qicon.teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.qicon.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.qicon.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 22, 36, .94);
  backdrop-filter: blur(16px);
}

.topbar strong {
  font-size: 15px;
}

.back-btn {
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.search-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 20px 0;
  padding: 12px 14px;
}

.search-card span {
  color: var(--dim);
}

.search-card input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-card input::placeholder {
  color: var(--dim);
}

.chips {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 0 20px 2px;
  overflow-x: auto;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips button {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chips .active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.course-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 14px 20px 0;
  padding: 18px;
}

.course-card p {
  margin-top: 10px;
}

.course-arrow {
  color: var(--dim);
  font-size: 28px;
}

.dimmed {
  opacity: .72;
}

.amber-text {
  background: var(--amber-soft);
  color: var(--amber);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.meta-row span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
}

.detail-hero {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(155deg, #0e2540, #0a1c34);
}

.detail-hero h2 {
  margin-top: 4px;
  font-size: 21px;
}

.detail-hero p {
  margin-top: 10px;
}

.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 18px 20px 0;
}

.journey div {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.journey span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--dim);
  background: var(--bg2);
  font-size: 12px;
  font-weight: 800;
}

.journey .done {
  border-color: var(--teal);
  background: var(--teal);
  color: #031410;
}

.journey .now {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

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

.panel {
  margin: 14px 20px 0;
  padding: 18px;
}

.panel h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.panel p + p {
  margin-top: 10px;
}

.tick-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.kv:last-child {
  border-bottom: 0;
}

.kv span {
  color: var(--muted);
  font-size: 13px;
}

.kv b {
  font-size: 13px;
  text-align: right;
}

.button-stack,
.button-row {
  display: grid;
  gap: 10px;
  padding: 18px 20px 26px;
}

.button-row {
  grid-template-columns: 1fr 1fr;
}

.primary.disabled {
  opacity: .35;
  pointer-events: none;
}

.quiz-progress {
  padding: 16px 20px 0;
}

.quiz-progress div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.quiz-progress b {
  color: var(--teal);
}

.quiz-wrap {
  display: grid;
  gap: 16px;
  margin: 20px;
  padding: 18px;
}

.quiz-wrap h2 {
  font-size: 18px;
  line-height: 1.5;
}

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

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--small-radius);
  background: var(--bg2);
  color: var(--text);
  text-align: left;
}

.option.selected {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.option.correct {
  border-color: var(--green);
  background: rgba(16, 201, 122, .1);
}

.option.wrong {
  border-color: var(--red);
  background: rgba(245, 66, 90, .08);
}

.option-letter {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--bg3);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.module-dots {
  display: flex;
  gap: 5px;
  padding: 0 20px 16px;
}

.module-dots span {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--border);
}

.module-dots .done {
  background: var(--teal);
}

.module-dots .now {
  background: rgba(30, 217, 180, .5);
}

.lesson {
  margin: 0 20px;
  padding: 18px;
}

.lesson-label {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lesson h2 {
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: 20px;
}

.lesson p + p {
  margin-top: 12px;
}

.lesson strong {
  color: var(--text);
}

.key-point {
  margin: 14px 0;
  padding: 14px;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--small-radius) var(--small-radius) 0;
  background: var(--bg3);
}

.key-point small {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.certificate-wrap {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 22px 20px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 36px;
  font-weight: 800;
}

.certificate-wrap h2 {
  color: var(--teal);
  font-size: 48px;
}

.certificate {
  width: 100%;
  padding: 26px 22px;
  background: linear-gradient(145deg, #0d2840, #0a1f35);
}

.medal {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), #e8851a);
  color: white;
  font-size: 24px;
}

.certificate small {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.certificate h3 {
  margin-top: 10px;
  font-size: 16px;
}

.cert-line {
  height: 1px;
  margin: 16px 0;
  background: var(--border);
}

.cert-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  text-align: left;
}

.cert-row span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cert-row b {
  font-size: 13px;
  text-align: right;
}

.certificate code {
  display: block;
  margin-top: 14px;
  color: var(--dim);
  font-size: 11px;
}

.profile-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 18px 20px 0;
  padding: 16px;
}

.big-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #031410;
  font-size: 21px;
  font-weight: 800;
}

.profile-card h2 {
  font-size: 18px;
}

.profile-card p {
  color: var(--muted);
  font-size: 12px;
}

.credit-box {
  padding: 8px 12px;
  border: 1px solid rgba(245, 166, 35, .2);
  border-radius: var(--small-radius);
  background: var(--amber-soft);
  text-align: center;
}

.credit-box strong {
  display: block;
  color: var(--amber);
  font-size: 22px;
}

.credit-box span {
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 18px 20px 0;
}

.dash-grid article {
  padding: 16px;
}

.dash-grid strong {
  display: block;
  font-size: 26px;
}

.dash-grid span {
  color: var(--muted);
  font-size: 12px;
}

.admin-card h2 {
  margin-bottom: 10px;
}

.admin-hero {
  margin: 18px 20px 0;
  padding: 20px;
  border: 1px solid #1c3d60;
  border-radius: 20px;
  background:
    radial-gradient(circle at 96% 12%, rgba(30, 217, 180, .16), transparent 120px),
    linear-gradient(140deg, #0e2540, #0a1c34);
}

.admin-hero img {
  display: block;
  width: 176px;
  max-width: 68vw;
  height: auto;
  margin-bottom: 18px;
}

.admin-hero h1,
.admin-hero h2 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.admin-hero p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 20px 0;
}

.admin-metrics article,
.source-card,
.form-shell,
.lms-plan article,
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
}

.admin-metrics article {
  padding: 14px 10px;
}

.admin-metrics strong {
  display: block;
  font-size: 22px;
}

.admin-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.source-grid {
  display: grid;
  gap: 10px;
  padding: 0 20px;
}

.source-card {
  display: grid;
  gap: 5px;
  padding: 16px;
  color: var(--text);
  text-align: left;
}

.source-card.active {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.source-card b {
  font-size: 14px;
}

.source-card small,
.lms-plan small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.form-shell {
  display: grid;
  gap: 14px;
  margin: 14px 20px 0;
  padding: 18px;
}

.form-shell label {
  display: grid;
  gap: 7px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.form-shell input,
.form-shell textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--small-radius);
  outline: none;
  background: var(--bg1);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.form-shell input {
  min-height: 46px;
  padding: 0 13px;
}

.form-shell textarea {
  resize: vertical;
  padding: 13px;
  line-height: 1.55;
}

.form-shell input:focus,
.form-shell textarea:focus {
  border-color: var(--teal);
}

.in-form {
  padding: 0;
}

.lms-plan {
  display: grid;
  gap: 10px;
  padding: 0 20px;
}

.lms-plan article {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  padding: 15px;
}

.lms-plan span {
  display: grid;
  grid-row: span 2;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.lms-plan b {
  align-self: end;
  font-size: 14px;
}

.review-card {
  display: grid;
  gap: 10px;
  margin: 0 20px;
  padding: 16px;
}

.review-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.review-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.review-card b {
  font-size: 13px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.status-pill.ok {
  background: rgba(16, 201, 122, .12);
  color: var(--green);
}

.status-pill.wait {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.stop {
  background: rgba(245, 66, 90, .1);
  color: var(--red);
}

.login-wrap {
  display: grid;
  gap: 22px;
  min-height: calc(100dvh - 86px);
  align-content: center;
  padding: 32px 24px;
}

.login-brand {
  display: grid;
  gap: 8px;
}

.login-brand img {
  width: 196px;
  max-width: 72vw;
  height: auto;
}

.login-brand small {
  display: block;
}

.login-brand small {
  color: var(--muted);
  font-size: 12px;
}

.login-wrap h2 {
  font-size: 26px;
}

.login-wrap label {
  display: grid;
  gap: 6px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.login-wrap input {
  min-height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--small-radius);
  outline: none;
  background: var(--bg2);
  color: var(--text);
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
}

.login-wrap input:focus {
  border-color: var(--teal);
}

.register-line {
  text-align: center;
}

.register-line a {
  color: var(--teal);
  font-weight: 800;
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.bottom-nav button {
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 13px;
  font-weight: 800;
}

.bottom-nav b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 8px;
  background: rgba(67, 91, 119, .16);
}

.bottom-nav span {
  font-size: 10px;
  font-weight: 700;
}

.bottom-nav .active {
  color: var(--teal);
}

.admin-home-link,
.admin-preview-link {
  text-decoration: none;
}

.admin-preview-link {
  display: grid;
  place-items: center;
}

.admin-actions {
  padding-bottom: 32px;
}

/* Public white theme override */
.public-body {
  min-height: 100%;
  overflow: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(30, 217, 180, .16), transparent 260px),
    radial-gradient(circle at 0% 24%, rgba(245, 166, 35, .12), transparent 240px),
    #f6f9fc;
}

.public-site {
  background: linear-gradient(180deg, #ffffff, #f6f9fc);
}

.public-header,
.public-card,
.feature-strip article,
.public-footer,
.top-image-card,
.inline-image-card {
  border-color: #dbe7f4;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(16, 42, 86, .08);
}

.public-header {
  background: rgba(255, 255, 255, .9);
}

.public-actions a,
.public-cta a:last-child {
  border-color: #dbe7f4;
  color: #142033;
  background: #ffffff;
}

.public-actions .register-link,
.public-cta a:first-child,
.account-card button {
  background: var(--teal);
  color: #031410;
}

.public-hero h1,
.public-card h2,
.feature-strip b,
.public-footer h2 {
  color: #142033;
}

.public-hero p,
.public-card p,
.public-footer p,
.feature-strip small {
  color: #5f7087;
}

.account-card label {
  color: #7a8aa0;
}

.account-card input {
  border-color: #dbe7f4;
  background: #ffffff;
  color: #142033;
}

.public-footer section {
  border-top-color: #dbe7f4;
}

@media (min-width: 431px) {
  body {
    display: grid;
    place-items: center;
  }

  .app {
    height: min(100dvh, 900px);
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  }
}

/* ScholaMed doctor LMS v2 */
:root {
  --navy: #12345b;
  --blue: #0b5c8e;
  --teal-v2: #0a8f8f;
  --teal-dark: #087575;
  --sky: #eaf6fa;
  --paper: #ffffff;
  --canvas: #f5f8fb;
  --ink: #1f2937;
  --subtle: #64748b;
  --line: #dbe5ec;
  --success-v2: #16803a;
  --warning-v2: #b66a08;
  --danger-v2: #b42318;
  --shadow-v2: 0 14px 40px rgba(18, 52, 91, .1);
  --radius-v2: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body.lms-body {
  min-height: 100%;
  overflow: auto;
  background: var(--canvas);
  color: var(--ink);
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(11, 92, 142, .28);
  outline-offset: 3px;
}
button:disabled { cursor: not-allowed; opacity: .48; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-140%);
  border-radius: 10px;
  background: var(--navy);
  color: white;
}
.skip-link:focus { transform: none; }
.doctor-app {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: visible;
  background: var(--canvas);
}
.doctor-app main { min-height: 100dvh; }
.doctor-app .screen {
  min-height: 100dvh;
  padding-bottom: 92px;
  overflow: visible;
}
.doctor-app.public-mode .screen { padding-bottom: 0; }
.doctor-app h1, .doctor-app h2, .doctor-app h3, .doctor-app p { margin-block-start: 0; }
.doctor-app h1 { color: var(--navy); font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1.13; }
.doctor-app h2 { color: var(--navy); }
.doctor-app p, .doctor-app li { color: var(--subtle); line-height: 1.7; }
.doctor-app .primary, .doctor-app .secondary {
  display: inline-grid;
  min-height: 48px;
  padding: 12px 18px;
  place-items: center;
  border-radius: 12px;
  cursor: pointer;
}
.doctor-app .primary { background: var(--teal-v2); color: white; }
.doctor-app .primary:hover { background: var(--teal-dark); }
.doctor-app .secondary { border-color: var(--line); background: white; color: var(--navy); }
.text-button, .link-button, .toc-button {
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}
.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-v2);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.landing-header, .app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin: auto;
  padding: 18px 20px;
}
.landing-header .site-logo,
.auth-shell .login-brand img,
.landing-footer img,
.doctor-app .certificate > img {
  width: auto;
  height: 48px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--navy);
  object-fit: contain;
}
.landing-header .site-logo { max-width: 178px; }
.welcome-screen { background: linear-gradient(180deg, #fff 0, #f6fbfc 55%, #f5f8fb 100%); }
.landing-shell { display: grid; gap: 30px; padding: 48px 20px 32px; }
.landing-copy h1 { margin-bottom: 18px; font-size: clamp(2.55rem, 12vw, 5.4rem); letter-spacing: -.055em; }
.landing-copy h1 span { color: var(--teal-v2); }
.landing-copy > p { max-width: 650px; font-size: 1.05rem; }
.landing-actions { display: grid; gap: 10px; margin-top: 24px; }
.landing-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-v2);
}
.landing-visual img { display: block; width: 100%; min-height: 300px; object-fit: cover; }
.landing-visual figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 3px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
}
.landing-visual figcaption strong { color: var(--navy); }
.landing-visual figcaption span { color: var(--subtle); font-size: .78rem; }
.benefits, .featured-public { display: grid; gap: 14px; margin: 0 20px 34px; }
.benefits article, .featured-public, .education-note, .plain-card, .notice-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-v2);
  background: var(--paper);
}
.benefits b { color: var(--teal-v2); font-size: .75rem; }
.benefits h2 { margin: 12px 0 6px; font-size: 1rem; }
.benefits p { margin-bottom: 0; font-size: .85rem; }
.featured-public { padding: 26px; background: var(--navy); }
.featured-public h2, .featured-public p { color: white; }
.featured-public p { opacity: .72; }
.education-note { margin: 0 20px 32px; border-left: 4px solid var(--warning-v2); font-size: .82rem; line-height: 1.65; }
.landing-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 28px 20px; border-top: 1px solid var(--line); }
.landing-footer img { max-width: 150px; }
.landing-footer span { margin-right: auto; color: var(--subtle); font-size: .75rem; }
.landing-footer a { color: var(--blue); font-size: .8rem; font-weight: 800; }

.auth-screen { background: linear-gradient(145deg, var(--sky), #fff 55%); }
.auth-shell { max-width: 520px; margin: auto; padding: 24px 20px 48px; }
.auth-shell > .back-btn, .doctor-app .topbar .back-btn {
  display: grid;
  width: 44px;
  height: 44px;
  border-color: var(--line);
  background: white;
  color: var(--navy);
}
.auth-shell .login-brand { margin: 38px 0 28px; }
.auth-form { display: grid; gap: 17px; }
.auth-form h1 { margin-bottom: -10px; }
.form-intro { margin-bottom: 6px; font-size: .86rem; }
.auth-form label, .feedback-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: .8rem;
  font-weight: 800;
}
.auth-form input, .auth-form select, .feedback-form select, .feedback-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: white;
  color: var(--ink);
}
.auth-form [aria-invalid=true] { border-color: var(--danger-v2); }
.field-error, .form-error { min-height: 1em; color: var(--danger-v2); font-size: .72rem; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 70px; }
.password-field button { position: absolute; top: 3px; right: 4px; min-height: 44px; border: 0; background: transparent; color: var(--blue); font-weight: 800; }
.check-row { grid-template-columns: 24px 1fr; align-items: start; font-weight: 500 !important; line-height: 1.5; }
.check-row input { width: 22px; min-height: 22px; margin: 0; accent-color: var(--teal-v2); }

.app-header { position: relative; padding-top: 24px; padding-bottom: 24px; background: white; }
.app-header h1 { margin: 0; font-size: 1.65rem; }
.avatar-button {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 800;
}
.dashboard-layout { display: grid; gap: 18px; padding: 20px; }
.continue-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-v2);
}
.course-art { display: grid; min-height: 165px; padding: 24px; align-content: end; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.2), transparent 32%), linear-gradient(145deg, var(--teal-v2), var(--navy)); color: white; }
.course-art span { font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.course-art strong { font-size: 2.4rem; }
.continue-copy { padding: 22px; }
.continue-copy h2 { margin-bottom: 8px; font-size: 1.25rem; }
.continue-copy > p { font-size: .85rem; }
.continue-copy .primary { width: 100%; margin-top: 18px; }
.doctor-app .progress-track { background: #e3ebf0; }
.doctor-app .progress-track span { background: var(--teal-v2); }
.doctor-app .progress-row strong { color: var(--teal-dark); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-heading h2 { margin: 0; font-size: 1.2rem; }
.dashboard-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dashboard-mini-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.dashboard-mini-grid span, .dashboard-mini-grid small { display: block; color: var(--subtle); font-size: .7rem; }
.dashboard-mini-grid strong { display: block; margin: 6px 0 2px; color: var(--navy); font-size: 1.55rem; }
.dashboard-aside { display: grid; gap: 12px; align-content: start; }
.notice-card { background: var(--sky); }
.notice-card h2, .plain-card h2 { font-size: 1.05rem; }
.notice-card p, .plain-card p { margin-bottom: 0; font-size: .83rem; }

.catalogue-tools { padding: 4px 20px 12px; }
.doctor-app .search-card { margin: 0; border-color: var(--line); background: white; }
.doctor-app .search-card input { min-height: 24px; color: var(--ink); }
.doctor-app .chips { margin: 10px 0 0; padding: 0; }
.doctor-app .chips button { min-height: 44px; border-color: var(--line); background: white; color: var(--subtle); }
.doctor-app .chips .active { border-color: var(--teal-v2); background: #e8f6f5; color: var(--teal-dark); }
.course-grid { display: grid; gap: 16px; padding: 8px 20px 30px; }
.catalogue-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; }
.course-cover { display: grid; min-height: 170px; padding: 22px; align-content: end; background: linear-gradient(145deg, var(--navy), var(--teal-v2)); color: white; }
.course-cover.alternate { background: linear-gradient(145deg, #475569, #94a3b8); }
.course-cover span { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.course-cover strong { font-size: 2.2rem; }
.course-cover small { opacity: .8; }
.catalogue-card-copy { padding: 20px; }
.catalogue-card-copy h2 { margin: 12px 0 8px; font-size: 1.17rem; }
.catalogue-card-copy p { font-size: .83rem; }
.catalogue-card-copy .primary, .catalogue-card-copy .secondary { width: 100%; margin-top: 16px; }
.muted-course { opacity: .82; }
.status-tag { display: inline-flex; width: fit-content; padding: 6px 9px; border-radius: 99px; background: #e8f6ed; color: var(--success-v2); font-size: .68rem; font-weight: 800; }
.status-tag.neutral { background: #eef2f6; color: #536477; }
.status-tag.danger { background: #feeceb; color: var(--danger-v2); }
.course-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.course-meta span { padding: 6px 8px; border-radius: 8px; background: #f1f5f8; color: var(--subtle); font-size: .65rem; font-weight: 700; }
.course-meta.light span { background: rgba(255,255,255,.12); color: white; }
.empty-state { padding: 50px 20px; text-align: center; }

.doctor-app .topbar {
  min-height: 64px;
  border-color: var(--line);
  background: rgba(255,255,255,.94);
}
.doctor-app .topbar strong { color: var(--navy); }
.course-detail-layout .detail-hero { padding: 38px 20px; background: linear-gradient(150deg, var(--navy), #0d7183); }
.course-detail-layout .detail-hero h1 { color: white; }
.course-detail-layout .detail-hero p { max-width: 680px; color: rgba(255,255,255,.74); }
.detail-content { padding-bottom: 20px; }
.doctor-app .panel { border-color: var(--line); background: white; }
.doctor-app .panel h2 { font-size: 1.08rem; }
.doctor-app .panel p, .doctor-app .tick-list { color: var(--subtle); }
.doctor-app .kv { border-color: var(--line); }
.doctor-app .kv span { color: var(--subtle); }
.course-steps { display: grid; gap: 13px; padding: 0; list-style: none; }
.course-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; }
.course-steps li > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--sky); color: var(--blue); font-size: .75rem; font-weight: 800; }
.course-steps strong, .course-steps small { display: block; }
.course-steps small { margin-top: 3px; color: var(--subtle); font-size: .72rem; }
.source-note { border-left: 4px solid var(--warning-v2) !important; }
.sticky-actions { position: sticky; bottom: 78px; padding: 14px 20px; background: linear-gradient(transparent, var(--canvas) 25%); }
.sticky-actions .primary { width: 100%; }

.reader-layout, .assessment-layout { display: grid; max-width: 1120px; margin: auto; }
.reader-toc, .assessment-intro { padding: 24px 20px 0; }
.reader-toc ol { display: grid; gap: 10px; padding-left: 20px; color: var(--subtle); font-size: .78rem; }
.reader-toc li.current { color: var(--teal-dark); font-weight: 800; }
.module-toc { display: none; }
.module-toc.open { display: grid; gap: 6px; }
.module-toc button { min-height: 44px; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--subtle); text-align: left; }
.module-toc button.current { background: var(--sky); color: var(--blue); font-weight: 800; }
.reader-content { max-width: 760px; padding: 24px 20px 40px; }
.reader-content > h1 { margin: 5px 0 28px; }
.reader-content section { margin-bottom: 28px; }
.reader-content h2 { margin-bottom: 10px; font-size: 1.15rem; }
.reader-content ul { padding-left: 20px; }
.doctor-app .lesson { margin: 0; border: 0; background: transparent; }
.doctor-app .lesson p { color: var(--subtle); }
.doctor-app .key-point { border-color: var(--teal-v2); background: var(--sky); }
.doctor-app .key-point small { color: var(--teal-dark); }
.key-point.warning { border-color: var(--warning-v2); background: #fff8e8; }
.key-point.warning small { color: var(--warning-v2); }
.evidence-card { margin: 14px 0; padding: 16px; border: 1px solid #cde4ea; border-radius: 14px; background: #f3fafb; }
.evidence-card > span { color: var(--teal-dark); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.evidence-card p:last-child { margin-bottom: 0; }
.trial-grid { display: grid; gap: 12px; margin-bottom: 28px; }
.reference-block { padding: 16px; border-radius: 12px; background: #f0f3f6; }
.reference-block h2 { font-size: .82rem; text-transform: uppercase; }
.reference-block p { margin: 0; font-size: .75rem; }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fact-grid article { padding: 15px; border-radius: 12px; background: #f0f5f8; }
.fact-grid span, .fact-grid strong { display: block; }
.fact-grid span { color: var(--subtle); font-size: .7rem; }
.fact-grid strong { margin-top: 5px; color: var(--navy); font-size: .9rem; }
.reader-next { width: 100%; margin-top: 25px; }
.reader-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 30px; }
.doctor-app .module-dots { padding: 16px 20px 0; }
.doctor-app .module-dots span { background: var(--line); }
.doctor-app .module-dots .done { background: var(--teal-v2); }
.doctor-app .module-dots .now { background: #8ccccc; }
video { width: 100%; border-radius: 16px; background: #0b1724; box-shadow: var(--shadow-v2); }
.video-status { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; color: var(--subtle); font-size: .75rem; }
.transcript { margin: 16px 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.transcript summary { min-height: 28px; color: var(--navy); font-weight: 800; cursor: pointer; }

.assessment-intro h1 { font-size: 1.7rem; }
.assessment-intro p { font-size: .82rem; }
.assessment-main { max-width: 720px; }
.doctor-app .quiz-progress { padding-top: 20px; }
.doctor-app .quiz-progress div:first-child { color: var(--subtle); }
.doctor-app .quiz-progress b { color: var(--teal-dark); }
.doctor-app .quiz-wrap { border-color: var(--line); background: white; }
.doctor-app .quiz-wrap h2 { color: var(--navy); }
.doctor-app .option { min-height: 56px; border-color: var(--line); background: white; color: var(--ink); cursor: pointer; }
.doctor-app .option.selected { border-color: var(--teal-v2); background: #e9f7f6; }
.doctor-app .option-letter { background: #edf3f6; color: var(--subtle); }
.assessment-actions { padding-top: 0; }
.answer-note { min-height: 1em; margin: 0; font-size: .75rem; }

.result-shell { display: grid; justify-items: center; max-width: 600px; margin: auto; padding: 70px 20px; text-align: center; }
.score-ring { display: grid; width: 150px; height: 150px; margin-bottom: 22px; place-content: center; border: 12px solid #d8eeee; border-radius: 50%; background: white; }
.score-ring strong { color: var(--teal-dark); font-size: 2.2rem; }
.score-ring span { color: var(--subtle); font-size: .7rem; }
.result-shell h1 { margin: 18px 0 8px; }
.result-actions { display: grid; width: 100%; gap: 10px; margin-top: 20px; }
.feedback-form { display: grid; gap: 20px; max-width: 680px; margin: auto; padding: 36px 20px; }
.feedback-form fieldset { margin: 0; padding: 0; border: 0; }
.feedback-form legend { margin-bottom: 10px; color: var(--navy); font-size: .8rem; font-weight: 800; }
.rating-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rating-row button { min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--subtle); font-weight: 800; }
.rating-row button.selected { border-color: var(--teal-v2); background: var(--teal-v2); color: white; }

.doctor-app .certificate-wrap { color: var(--ink); }
.doctor-app .certificate-wrap > h1 { margin-bottom: 0; }
.doctor-app .success-icon { background: #e8f6ed; color: var(--success-v2); }
.doctor-app .certificate {
  position: relative;
  max-width: 760px;
  padding: 36px 24px;
  border: 8px solid var(--navy);
  border-radius: 4px;
  background: white;
  color: var(--ink);
}
.doctor-app .certificate > img { max-width: 180px; margin-bottom: 24px; }
.doctor-app .certificate small { display: block; color: var(--teal-dark); }
.doctor-app .certificate p { color: var(--subtle); }
.doctor-app .certificate h2 { color: var(--navy); font-size: 1.8rem; }
.doctor-app .certificate h3 { color: var(--navy); }
.doctor-app .cert-line, .doctor-app .cert-row { border-color: var(--line); }
.doctor-app .cert-row span, .doctor-app .certificate code { color: var(--subtle); }
.qr-placeholder { display: grid; width: 64px; height: 64px; margin: 20px auto 8px; place-items: center; border: 2px dashed #94a3b8; color: #64748b; font-size: .7rem; font-weight: 800; }
.prototype-label { margin: 20px 0 0 !important; padding: 8px; border-radius: 6px; background: #fff2d6; color: #854d0e !important; font-size: .68rem; font-weight: 800; }
.certificate-actions { display: grid; width: 100%; max-width: 520px; gap: 10px; }
.page-content { display: grid; gap: 14px; max-width: 900px; margin: auto; padding: 24px 20px; }
.page-content .plain-card .primary, .page-content .plain-card .secondary { width: 100%; margin-top: 14px; }
.doctor-app .profile-card { margin: 0; border-color: var(--line); background: white; }
.doctor-app .profile-card h2 { color: var(--navy); }

.doctor-app .bottom-nav {
  position: fixed;
  z-index: 20;
  grid-template-columns: repeat(5, 1fr);
  border-color: var(--line);
  background: rgba(255,255,255,.97);
  box-shadow: 0 -8px 24px rgba(18,52,91,.07);
}
.doctor-app .bottom-nav button { min-height: 54px; color: #708092; }
.doctor-app .bottom-nav b { background: transparent; }
.doctor-app .bottom-nav .active { color: var(--teal-dark); }
.toast {
  position: fixed;
  right: 20px;
  bottom: 96px;
  left: 20px;
  z-index: 40;
  padding: 13px 16px;
  transform: translateY(30px);
  border-radius: 12px;
  background: var(--navy);
  color: white;
  font-size: .78rem;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { transform: none; opacity: 1; }

@media (min-width: 600px) {
  .landing-actions, .result-actions, .certificate-actions { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .featured-public { grid-template-columns: 1fr auto; align-items: center; }
  .catalogue-card { display: grid; grid-template-columns: minmax(210px, 35%) 1fr; }
  .course-cover { min-height: 100%; }
  .trial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .landing-shell { grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr); align-items: center; max-width: 1240px; margin: auto; padding: 70px 32px; }
  .benefits, .featured-public, .education-note { max-width: 1176px; margin-right: auto; margin-left: auto; }
  .benefits { padding-inline: 0; }
  .landing-footer { padding-inline: max(32px, calc((100% - 1176px)/2)); }
  .dashboard-layout { grid-template-columns: minmax(0, 1.6fr) minmax(250px, .7fr); max-width: 1100px; margin: auto; padding: 32px; }
  .continue-card { grid-template-columns: minmax(240px, .65fr) 1fr; }
  .course-grid { max-width: 1060px; margin: auto; padding: 18px 32px 40px; }
  .catalogue-tools { max-width: 1060px; margin: auto; padding-inline: 32px; }
  .course-detail-layout { display: grid; grid-template-columns: minmax(300px, .7fr) minmax(440px, 1fr); max-width: 1180px; margin: 28px auto; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow-v2); }
  .course-detail-layout .detail-hero { min-height: 100%; padding: 48px 38px; }
  .detail-content { max-height: calc(100dvh - 120px); overflow-y: auto; padding: 10px 12px 30px; }
  .sticky-actions { bottom: 0; background: linear-gradient(transparent, white 25%); }
  .reader-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 30px; padding: 40px 32px; }
  .reader-toc { position: sticky; top: 96px; height: fit-content; padding: 0; }
  .reader-content { padding: 0; }
  .module-toc { display: grid; gap: 6px; }
  .toc-button { display: none; }
  .assessment-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 30px; padding: 40px 32px; }
  .assessment-intro { position: sticky; top: 96px; height: fit-content; padding: 0; }
  .assessment-main .quiz-progress { padding-top: 0; }
}
@media (min-width: 1024px) {
  .doctor-app .screen { padding-bottom: 0; }
  .doctor-app .bottom-nav { top: 50%; right: 22px; bottom: auto; left: auto; width: 92px; grid-template-columns: 1fr; padding: 10px; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-v2); }
  .doctor-app .bottom-nav button { padding: 7px 3px; border-radius: 10px; }
  .doctor-app .bottom-nav .active { background: var(--sky); }
  .dashboard-mini-grid { grid-template-columns: repeat(4, 1fr); }
  .toast { right: 32px; bottom: 32px; left: auto; width: 360px; }
}
@media (max-width: 359px) {
  .landing-copy h1 { font-size: 2.2rem; }
  .landing-header, .app-header, .dashboard-layout, .catalogue-tools, .course-grid { padding-right: 14px; padding-left: 14px; }
  .doctor-app .bottom-nav span { font-size: 8px; }
  .doctor-app .bottom-nav b { font-size: 12px; }
  .button-row { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
}
@media print {
  body * { visibility: hidden !important; }
  #certificate, #certificate * { visibility: visible !important; }
  #certificate { position: absolute; inset: 0; max-width: none; border: 8px solid #12345b; }
}
