:root {
  --ink: #0f172a;
  --navy: #081733;
  --navy-2: #10264d;
  --lime: #a7f36d;
  --lime-2: #75cf55;
  --mint: #eaffdf;
  --sky: #54d6ff;
  --coral: #ff9f6e;
  --cloud: #f6f9fc;
  --white: #ffffff;
  --muted: #637083;
  --line: rgba(15, 23, 42, 0.12);
  --shadow: 0 18px 45px rgba(8, 23, 51, 0.16);
  --radius: 8px;
  --page-gutter: clamp(18px, 2.2vw, 42px);
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Poppins", var(--font-body);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, rgba(234, 255, 223, 0.38), rgba(246, 249, 252, 0) 280px),
    var(--cloud);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(8, 23, 51, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 23, 51, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(167, 243, 109, 0.14), transparent 34%),
    linear-gradient(245deg, rgba(84, 214, 255, 0.12), transparent 38%),
    linear-gradient(180deg, transparent, rgba(255, 159, 110, 0.08));
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 11px var(--page-gutter);
  border-bottom: 1px solid rgba(167, 243, 109, 0.2);
  background:
    linear-gradient(90deg, rgba(9, 28, 61, 0.98), rgba(6, 16, 34, 0.96)),
    var(--navy);
  color: var(--white);
  box-shadow: 0 12px 34px rgba(8, 23, 51, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(167, 243, 109, 0.24);
  border-radius: 11px;
  object-fit: cover;
  box-shadow:
    0 0 18px rgba(167, 243, 109, 0.24),
    0 8px 20px rgba(0, 0, 0, 0.22);
}

.brand-wordmark {
  display: grid;
  gap: 1px;
  line-height: 0.95;
  white-space: nowrap;
}

.brand-wordmark span:first-child {
  color: var(--white);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.brand-wordmark span:last-child {
  color: var(--lime);
  text-shadow: 0 0 18px rgba(167, 243, 109, 0.34);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a,
.menu-toggle {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  border-color: rgba(167, 243, 109, 0.45);
  color: var(--white);
  background: rgba(167, 243, 109, 0.12);
}

.nav-links a.nav-cta {
  color: #071323;
  background: var(--lime);
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus-visible,
.nav-links a.nav-cta.is-active {
  border-color: rgba(255, 255, 255, 0.38);
  color: #071323;
  background: #ddffb2;
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
}

.app-shell {
  min-height: calc(100vh - 154px);
}

.section-band {
  width: 100%;
  padding: 76px var(--page-gutter);
}

.ad-placement {
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 104px;
  margin: 22px 0;
  padding: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(234, 255, 223, 0.34), rgba(227, 247, 255, 0.3)),
    rgba(255, 255, 255, 0.74);
}

.app-shell > .ad-placement {
  width: calc(100% - (var(--page-gutter) * 2));
  margin-right: var(--page-gutter);
  margin-left: var(--page-gutter);
}

.section-band > .ad-placement {
  margin-top: 0;
  margin-bottom: 28px;
}

.tutorial-reader-body > .ad-placement {
  margin: 26px 0 32px;
}

.ad-placement[hidden] {
  display: none;
}

.ad-placement-label {
  position: absolute;
  top: 5px;
  left: 12px;
  color: #7b8798;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.adsbygoogle {
  display: block;
  width: 100%;
  min-height: 70px;
}

.ad-placement--inline {
  min-height: 132px;
}

.ad-placement--inline .adsbygoogle {
  min-height: 96px;
}

.dark-band {
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(167, 243, 109, 0.16), transparent 28%),
    linear-gradient(315deg, rgba(84, 214, 255, 0.12), transparent 36%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--navy);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: min(640px, calc(100vh - 96px));
  padding-top: 42px;
  padding-bottom: 58px;
  color: var(--white);
  background: var(--navy);
}

.hero-background,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-background {
  object-fit: cover;
  object-position: center;
  animation: hero-drift 14s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 13, 31, 0.98) 0%, rgba(4, 13, 31, 0.9) 35%, rgba(4, 13, 31, 0.38) 68%, rgba(4, 13, 31, 0.12) 100%),
    linear-gradient(180deg, rgba(8, 23, 51, 0.12), rgba(8, 23, 51, 0.48));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 58vw);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--lime), var(--sky), var(--coral));
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(2.45rem, 4.4vw, 4.6rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 4.8vw, 4.8rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
}

h3 {
  font-size: 1.24rem;
}

p {
  line-height: 1.7;
}

.hero-text {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.hero-actions,
.admin-actions,
.chip-row,
.tag-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #071323;
  background: linear-gradient(135deg, var(--lime), #ddffb2);
  box-shadow: 0 14px 34px rgba(167, 243, 109, 0.3);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button.dark {
  color: var(--white);
  background: var(--navy);
}

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.button.danger {
  border-color: rgba(202, 63, 63, 0.24);
  color: #9d2525;
  background: #fff4f1;
}

.hero-scroll-cue {
  position: absolute;
  right: var(--page-gutter);
  bottom: 26px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-scroll-cue span {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), var(--sky));
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading > div {
  max-width: 760px;
}

.section-intro {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.section-link {
  flex: 0 0 auto;
  border-bottom: 2px solid var(--lime-2);
  color: #245c26;
  font-weight: 800;
}

.section-heading .eyebrow {
  color: #3a8c2f;
}

.outcome-band {
  background:
    linear-gradient(90deg, rgba(167, 243, 109, 0.08), transparent 34%),
    var(--white);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.outcome-card {
  min-height: 210px;
  padding: 24px 24px 26px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.outcome-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  color: #071323;
  font-weight: 800;
  background: var(--lime);
}

.outcome-card p {
  margin-bottom: 0;
  color: #526176;
}

.technology-banner {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 510px;
  color: var(--white);
  background: var(--navy);
}

.technology-banner-background,
.technology-banner-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.technology-banner-background {
  object-fit: cover;
  object-position: center;
}

.technology-banner-shade {
  background:
    linear-gradient(90deg, rgba(8, 23, 51, 0.08) 0%, rgba(8, 23, 51, 0.2) 46%, rgba(8, 23, 51, 0.93) 72%, rgba(8, 23, 51, 0.98) 100%),
    linear-gradient(0deg, rgba(8, 23, 51, 0.4), transparent 48%);
}

.technology-banner-copy {
  position: relative;
  z-index: 2;
  width: min(620px, 46vw);
  margin-left: auto;
}

.technology-banner-copy h2 {
  max-width: 600px;
}

.technology-banner-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.78);
}

.technology-track-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.technology-track-list span {
  padding: 8px 10px;
  border: 1px solid rgba(167, 243, 109, 0.3);
  border-radius: var(--radius);
  color: #eaffdf;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(8, 23, 51, 0.5);
  backdrop-filter: blur(10px);
}
.learning-strip {
  background:
    linear-gradient(90deg, rgba(167, 243, 109, 0.18), rgba(84, 214, 255, 0.1)),
    var(--white);
}

.course-launch-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 34px 0;
  border-top: 1px solid rgba(8, 23, 51, 0.14);
  border-bottom: 1px solid rgba(8, 23, 51, 0.14);
}

.course-launch-panel > div:first-child {
  max-width: 720px;
}

.course-launch-panel h3 {
  margin-top: 8px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.course-launch-panel p {
  margin-bottom: 0;
  color: #405065;
}

.course-launch-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.feature-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  padding: 14px 0;
}

.feature-note h3 {
  margin-top: 8px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.feature-note p {
  color: #405065;
}

.kicker {
  color: #3a8c2f;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.program-grid,
.article-grid,
.article-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.article-rail {
  align-items: stretch;
}

.program-card,
.article-card,
.admin-card,
.subject-admin-panel,
.reading-callout,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(8, 23, 51, 0.08);
}

.program-card,
.article-card {
  overflow: hidden;
  transition:
    transform 190ms ease,
    box-shadow 190ms ease,
    border-color 190ms ease;
}

.program-card:hover,
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(117, 207, 85, 0.42);
  box-shadow: var(--shadow);
}

.program-card[hidden],
.article-card[hidden] {
  display: none;
}

.program-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(167, 243, 109, 0.22), rgba(84, 214, 255, 0.18)),
    var(--navy);
}

.program-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--lime), var(--sky), var(--coral));
}

.program-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-visual > img + .program-label,
.program-visual > img ~ .program-title-mark,
.program-visual > img ~ .program-signal {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}

.program-visual.has-cover::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 19, 35, 0.3), rgba(7, 19, 35, 0.72)),
    linear-gradient(135deg, rgba(167, 243, 109, 0.16), rgba(84, 214, 255, 0.12));
}

.program-label,
.program-signal {
  position: relative;
  z-index: 2;
  max-width: 100%;
  font-weight: 800;
}

.program-label {
  align-self: flex-start;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
}

.program-title-mark {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.program-signal {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.card-body {
  padding: 20px;
}

.tag-row {
  margin-bottom: 12px;
}

.tag-row span,
.chip-row span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: var(--radius);
  color: #24501f;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--mint);
}

.tag-row span:nth-child(2),
.meta-row span:nth-child(2),
.chip-row span:nth-child(2n) {
  color: #0f4f68;
  background: #e3f7ff;
}

.card-body p {
  margin: 12px 0 0;
  color: #526176;
}

.outcome-line {
  font-weight: 700;
}

.meta-row {
  margin-top: 16px;
}

.featured-card {
  min-height: 100%;
}

.article-card a {
  display: grid;
  height: 100%;
  color: inherit;
}

.article-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(167, 243, 109, 0.9), rgba(84, 214, 255, 0.68)),
    var(--navy-2);
}

.article-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--lime), var(--sky), var(--coral));
}

.chip-row {
  margin-top: 18px;
}

.reading-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding: 18px 20px;
}

.reading-callout span {
  color: #3a8c2f;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.reading-callout a {
  color: #24501f;
  font-weight: 800;
}

.page-title {
  padding-top: 68px;
  padding-bottom: 52px;
}

.page-title.slim h1 {
  max-width: 780px;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
}

.tutorial-shell {
  background: #f8fbfd;
}

.subject-strip {
  position: sticky;
  top: 76px;
  z-index: 12;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(8, 23, 51, 0.08);
  backdrop-filter: blur(14px);
}

.subject-strip a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #344156;
  font-weight: 800;
  white-space: nowrap;
  background: var(--white);
}

.subject-strip a img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
  background: #eef2f6;
}

.subject-strip a:hover,
.subject-strip a:focus-visible,
.subject-strip a.is-active {
  border-color: rgba(117, 207, 85, 0.58);
  color: #071323;
  background: var(--mint);
}

.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px var(--page-gutter) 76px;
}

.topic-sidebar,
.tutorial-reader-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(8, 23, 51, 0.08);
}

.topic-sidebar {
  position: sticky;
  top: 146px;
  max-height: calc(100vh - 168px);
  overflow: auto;
  padding: 18px;
}

.subject-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border-radius: var(--radius);
  object-fit: cover;
  background: #eef2f6;
}

.topic-sidebar .eyebrow {
  color: #3a8c2f;
}

.topic-sidebar h2 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

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

.topic-list a {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #243247;
  background: #fbfdff;
}

.topic-list a:hover,
.topic-list a:focus-visible,
.topic-list a.is-active {
  border-color: rgba(117, 207, 85, 0.58);
  background: var(--mint);
}

.topic-list a.is-active {
  color: var(--white);
  background: var(--navy);
}

.topic-list span {
  font-weight: 800;
}

.topic-list small {
  color: var(--muted);
  font-weight: 700;
}

.topic-list a.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.tutorial-reader-panel {
  height: calc(100vh - 122px);
  overflow: auto;
}

.tutorial-reader-header {
  padding: 30px 34px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(234, 255, 223, 0.8), rgba(227, 247, 255, 0.78)),
    var(--white);
}

.tutorial-reader-header .eyebrow {
  color: #3a8c2f;
}

.tutorial-reader-header h1 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.tutorial-reader-header p {
  max-width: 780px;
  color: #405065;
}

.tutorial-reader-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.tutorial-reader-actions .meta-row {
  margin-top: 0;
}

.tutorial-full-view-button {
  gap: 8px;
  flex: 0 0 auto;
}

.reader-action-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tutorial-reader-body {
  max-width: 860px;
  padding: 34px;
  color: #1d293b;
  font-size: 1.05rem;
}

.tutorial-reader-body h1,
.tutorial-reader-body h2,
.tutorial-reader-body h3 {
  margin: 32px 0 14px;
  color: var(--ink);
}

.tutorial-reader-body h1 {
  font-size: 2.35rem;
}

.tutorial-reader-body h2 {
  font-size: 1.75rem;
}

.tutorial-reader-body p,
.tutorial-reader-body li,
.tutorial-reader-body blockquote {
  line-height: 1.82;
}

.tutorial-reader-body ul {
  padding-left: 1.2rem;
}

.tutorial-reader-body blockquote {
  margin: 26px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--lime-2);
  color: #405065;
  background: var(--mint);
}

.tutorial-reader-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef2f6;
}

.tutorial-reader-body a {
  color: #276fda;
  font-weight: 700;
  text-decoration: underline;
}

.tutorial-video {
  margin: 0 0 34px;
}

.video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #071323;
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 42px rgba(8, 23, 51, 0.14);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tutorial-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 34px 28px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

body.tutorial-full-view-open {
  overflow: hidden;
}

.tutorial-full-view-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(8px, 1.5vw, 24px);
}

.tutorial-full-view-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(4, 12, 27, 0.82);
  backdrop-filter: blur(10px);
  cursor: default;
}

.tutorial-full-view-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1380px, 100%);
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: #f8fbfd;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.tutorial-full-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px 18px 12px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(167, 243, 109, 0.12), rgba(84, 214, 255, 0.08)),
    var(--navy);
}

.tutorial-full-view-toolbar > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tutorial-full-view-toolbar span {
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tutorial-full-view-toolbar strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutorial-full-view-close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.tutorial-full-view-close:hover,
.tutorial-full-view-close:focus-visible {
  border-color: rgba(167, 243, 109, 0.62);
  color: var(--lime);
  background: rgba(167, 243, 109, 0.12);
}

.tutorial-full-view-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background:
    linear-gradient(180deg, rgba(234, 255, 223, 0.34), transparent 260px),
    #f8fbfd;
}

.tutorial-full-view-body {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 42px 90px;
  font-size: 1.08rem;
}

.tutorial-full-view-heading {
  margin-bottom: 38px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.tutorial-full-view-heading h1 {
  max-width: 860px;
  margin-top: 0;
  font-size: clamp(2.25rem, 4vw, 3.8rem);
}

.tutorial-full-view-heading > p:not(.eyebrow) {
  max-width: 760px;
  color: #405065;
  font-size: 1.08rem;
}

.inquiry-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 26px;
  align-items: start;
  background:
    linear-gradient(90deg, rgba(167, 243, 109, 0.16), rgba(84, 214, 255, 0.09)),
    #f8fbfd;
}

.inquiry-copy {
  padding: 6px 0;
}

.inquiry-copy h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.inquiry-copy p {
  max-width: 560px;
  color: #405065;
}

.inquiry-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.inquiry-points span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: #24501f;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--mint);
}

.inquiry-form {
  display: grid;
  gap: 15px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 14px;
  margin-bottom: 26px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

label span {
  color: #344156;
  font-size: 0.86rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: var(--radius);
  outline: none;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--lime-2);
  box-shadow: 0 0 0 4px rgba(167, 243, 109, 0.22);
}

.rich-editor-field {
  display: grid;
  gap: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rich-editor-source {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.rich-editor-shell {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: var(--white);
}

.rich-editor-shell:focus-within {
  border-color: var(--lime-2);
  box-shadow: 0 0 0 4px rgba(167, 243, 109, 0.22);
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #fbfdff, #f4f8f5);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.format-group {
  padding: 0;
}

.rich-toolbar select {
  width: auto;
  min-width: 150px;
  min-height: 38px;
  padding: 8px 34px 8px 12px;
  border: 0;
  border-radius: 8px;
  color: #1c2a3d;
  font-size: 0.82rem;
  font-weight: 800;
  background-color: transparent;
}

.rich-icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #1d293b;
  background: transparent;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.toolbar-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rich-icon-button:hover,
.rich-icon-button:focus-visible,
.rich-toolbar select:focus {
  color: #102033;
  background: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(117, 207, 85, 0.45);
}

.rich-icon-button:active {
  background: #ddffb2;
}

.rich-icon-button.is-active {
  color: #102033;
  background: #ddffb2;
  box-shadow: inset 0 0 0 1px rgba(117, 207, 85, 0.62);
}

.rich-image-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: #fbfdff;
}

.rich-image-toolbar[hidden] {
  display: none;
}

.image-delete-group {
  margin-left: auto;
  border-color: rgba(220, 38, 38, 0.22);
}

.image-delete-group .rich-icon-button {
  color: #dc2626;
}

.image-delete-group .rich-icon-button:hover,
.image-delete-group .rich-icon-button:focus-visible {
  color: #b91c1c;
  background: #fff1f2;
  box-shadow: inset 0 0 0 1px #fecaca;
}

.rich-insert-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(170px, 0.8fr) minmax(180px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: #fbfdff;
}

.rich-insert-panel[hidden] {
  display: none;
}

.rich-insert-panel input {
  min-height: 40px;
}

.upload-field {
  gap: 6px;
}

.upload-field small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cover-preview {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  background: #fbfdff;
}

.cover-preview.is-visible {
  border-style: solid;
  color: #26364d;
}

.cover-preview.has-error {
  border-color: rgba(191, 72, 72, 0.28);
  color: #8b2c2c;
  background: #fff8f8;
}

.cover-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #eef2f6;
}

.document-upload-group {
  display: grid;
  gap: 10px;
}

.document-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: var(--radius);
  background: #fbfdff;
}

.document-preview > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.document-preview span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.document-preview strong {
  overflow: hidden;
  color: #183153;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-preview.is-visible {
  border-style: solid;
  border-color: rgba(70, 152, 55, 0.25);
  background: #f7fff5;
}

.document-preview-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.tutorial-resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #f8fbff;
}

.tutorial-resource > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tutorial-resource > div span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tutorial-resource > div strong {
  overflow-wrap: anywhere;
}

.tutorial-resource .button {
  flex: 0 0 auto;
}

input[type="file"] {
  padding: 10px;
  background: #fbfdff;
}

.rich-panel-actions {
  display: flex;
  gap: 8px;
}

.rich-panel-actions .button {
  min-height: 40px;
  white-space: nowrap;
}

.rich-editor-area {
  min-height: 380px;
  max-height: 680px;
  overflow: auto;
  padding: 24px 26px;
  outline: none;
  color: #1d293b;
  font-weight: 500;
  line-height: 1.78;
  background: linear-gradient(180deg, #ffffff, #fcfefd);
}

.rich-editor-area:empty::before {
  color: #8390a3;
  content: attr(data-placeholder);
  pointer-events: none;
}

.rich-editor-area h1,
.rich-editor-area h2,
.rich-editor-area h3,
.rich-editor-area h4 {
  margin: 18px 0 10px;
  color: var(--ink);
}

.rich-editor-area h1 {
  font-size: 2rem;
}

.rich-editor-area h2 {
  font-size: 1.55rem;
}

.rich-editor-area h3 {
  font-size: 1.24rem;
}

.rich-editor-area p {
  margin: 0 0 14px;
}

.rich-editor-area ul,
.rich-editor-area ol {
  margin: 0 0 16px;
  padding-left: 1.35rem;
}

.rich-editor-area blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--lime-2);
  color: #405065;
  background: var(--mint);
}

.rich-editor-area figure,
.reader-body figure,
.tutorial-reader-body figure {
  margin: 28px 0;
}

.rich-editor-area figure[data-image-figure],
.reader-body figure[data-image-figure],
.tutorial-reader-body figure[data-image-figure] {
  position: relative;
  text-align: center;
}

.rich-editor-area figure[data-align="left"],
.reader-body figure[data-align="left"],
.tutorial-reader-body figure[data-align="left"] {
  text-align: left;
}

.rich-editor-area figure[data-align="right"],
.reader-body figure[data-align="right"],
.tutorial-reader-body figure[data-align="right"] {
  text-align: right;
}

.rich-editor-area img,
.reader-body img,
.tutorial-reader-body img {
  width: auto;
  max-width: 100%;
  max-height: 620px;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(8, 23, 51, 0.12);
}

.rich-editor-area figure[data-image-figure] [data-image-frame],
.reader-body figure[data-image-figure] [data-image-frame],
.tutorial-reader-body figure[data-image-figure] [data-image-frame] {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(8, 23, 51, 0.12);
  vertical-align: top;
}

.rich-editor-area figure[data-image-figure] [data-image-frame] img,
.reader-body figure[data-image-figure] [data-image-frame] img,
.tutorial-reader-body figure[data-image-figure] [data-image-frame] img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  vertical-align: top;
}

.rich-editor-area figure[data-crop="wide"] [data-image-frame],
.reader-body figure[data-crop="wide"] [data-image-frame],
.tutorial-reader-body figure[data-crop="wide"] [data-image-frame] {
  aspect-ratio: 16 / 9;
}

.rich-editor-area figure[data-crop="square"] [data-image-frame],
.reader-body figure[data-crop="square"] [data-image-frame],
.tutorial-reader-body figure[data-crop="square"] [data-image-frame] {
  aspect-ratio: 1 / 1;
}

.rich-editor-area figure[data-crop="wide"] [data-image-frame] img,
.reader-body figure[data-crop="wide"] [data-image-frame] img,
.tutorial-reader-body figure[data-crop="wide"] [data-image-frame] img,
.rich-editor-area figure[data-crop="square"] [data-image-frame] img,
.reader-body figure[data-crop="square"] [data-image-frame] img,
.tutorial-reader-body figure[data-crop="square"] [data-image-frame] img {
  height: 100%;
  object-fit: cover;
}

.rich-editor-area figure.is-selected {
  outline: 2px solid rgba(117, 207, 85, 0.82);
  outline-offset: 8px;
}

.rich-image-resize-handle {
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: #3a8c2f;
  box-shadow: 0 4px 12px rgba(8, 23, 51, 0.22);
  cursor: nwse-resize;
}

.rich-editor-area figcaption,
.reader-body figcaption,
.tutorial-reader-body figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.filter-empty {
  display: none;
  margin: 26px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.filter-empty.is-visible {
  display: block;
}

.reader-shell {
  background: var(--white);
}

.reader-hero {
  padding: 72px var(--page-gutter) 64px;
}

.reader-hero h1 {
  max-width: 850px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
}

.reader-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--lime);
  font-weight: 800;
}

.reader-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 20px 84px;
  color: #1d293b;
  font-size: 1.08rem;
}

.reader-body h1,
.reader-body h2,
.reader-body h3 {
  margin: 34px 0 14px;
  color: var(--ink);
}

.reader-body h1 {
  font-size: 2.4rem;
}

.reader-body h2 {
  font-size: 1.8rem;
}

.reader-body p,
.reader-body li,
.reader-body blockquote {
  line-height: 1.82;
}

.reader-body ul {
  padding-left: 1.2rem;
}

.reader-body blockquote {
  margin: 26px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--lime-2);
  color: #405065;
  background: var(--mint);
}

.reader-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef2f6;
}

.reader-body a {
  color: #276fda;
  font-weight: 700;
  text-decoration: underline;
}

.admin-shell {
  background:
    linear-gradient(90deg, rgba(167, 243, 109, 0.12), rgba(84, 214, 255, 0.08)),
    #f8fbfd;
}

.admin-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 154px);
  background:
    linear-gradient(135deg, rgba(8, 23, 51, 0.96), rgba(16, 38, 77, 0.94)),
    var(--navy);
}

.admin-login-copy {
  color: var(--white);
}

.admin-login-copy h1 {
  max-width: 620px;
  font-size: clamp(2.2rem, 4.5vw, 4.25rem);
}

.admin-login-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.admin-dashboard-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid rgba(167, 243, 109, 0.36);
  border-radius: 14px;
  color: #071323;
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--lime);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.admin-login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.admin-login-points span {
  display: inline-flex;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.admin-auth-column .login-panel {
  margin-right: 0;
}

.admin-dashboard-shell {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: calc(100vh - 154px);
  padding-top: 24px;
  padding-bottom: 34px;
  background:
    linear-gradient(180deg, rgba(234, 255, 223, 0.72), rgba(246, 249, 252, 0.96) 280px),
    #f6f9fc;
}

.admin-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
  align-self: start;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 253, 255, 0.9)),
    var(--white);
  box-shadow: 0 16px 38px rgba(8, 23, 51, 0.1);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.admin-sidebar-brand span {
  display: grid;
  gap: 2px;
}

.admin-sidebar-brand strong {
  color: var(--navy);
  font-family: var(--font-display);
}

.admin-sidebar-brand small,
.admin-sidebar-card small,
.admin-sidebar-user small {
  color: var(--muted);
  font-weight: 700;
}

.admin-dashboard-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(94px, 1fr));
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-tabs.admin-dashboard-nav button {
  display: grid;
  gap: 3px;
  justify-items: start;
  width: 100%;
  min-height: 78px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #314057;
  background: #fbfdff;
}

.admin-tabs.admin-dashboard-nav button span {
  overflow-wrap: anywhere;
  font-weight: 900;
}

.admin-tabs.admin-dashboard-nav button small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-tabs.admin-dashboard-nav button.is-active {
  border-color: rgba(117, 207, 85, 0.48);
  color: #071323;
  background:
    linear-gradient(135deg, rgba(167, 243, 109, 0.74), rgba(227, 247, 255, 0.74)),
    var(--white);
}

.admin-sidebar-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(117, 207, 85, 0.2), rgba(84, 214, 255, 0.12)),
    var(--navy);
}

.admin-sidebar-card span,
.admin-sidebar-user span {
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-sidebar-card strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.admin-sidebar-card small {
  color: rgba(255, 255, 255, 0.72);
}

.admin-sidebar-user {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.admin-sidebar-user span {
  overflow-wrap: anywhere;
}

.admin-main {
  min-width: 0;
}

.admin-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}

.admin-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(8, 23, 51, 0.08);
}

.admin-topline > div:not(.admin-actions) {
  display: grid;
  gap: 3px;
}

.admin-topline h1 {
  max-width: 700px;
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.admin-topline span,
.muted {
  color: var(--muted);
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 255, 223, 0.58)),
    var(--white);
  box-shadow: 0 12px 34px rgba(8, 23, 51, 0.08);
}

.admin-stat-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(227, 247, 255, 0.72)),
    var(--white);
}

.admin-stat-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 239, 229, 0.7)),
    var(--white);
}

.admin-stat-card:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 246, 0.84)),
    var(--white);
}

.admin-stat-card span {
  display: inline-flex;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: var(--radius);
  color: #24501f;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--mint);
}

.admin-stat-card strong {
  display: block;
  margin-top: 16px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1;
}

.admin-stat-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(8, 23, 51, 0.08);
}

.admin-tabs button {
  min-height: 40px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
  background: transparent;
}

.admin-tabs button.is-active {
  color: #071323;
  background: linear-gradient(135deg, var(--lime), #ddffb2);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.admin-workbench {
  display: grid;
  gap: 18px;
}

.admin-subject-tabs-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(8, 23, 51, 0.08);
}

.admin-subject-tabs-card h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.admin-subject-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.admin-subject-tabs button {
  display: grid;
  gap: 4px;
  min-width: 150px;
  min-height: 64px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #314057;
  text-align: left;
  background: #fbfdff;
}

.admin-subject-tabs button span {
  font-weight: 900;
}

.admin-subject-tabs button small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-subject-tabs button.is-active {
  border-color: rgba(117, 207, 85, 0.62);
  color: #071323;
  background:
    linear-gradient(135deg, rgba(167, 243, 109, 0.72), rgba(227, 247, 255, 0.74)),
    var(--white);
  box-shadow: inset 0 0 0 1px rgba(117, 207, 85, 0.2);
}

.admin-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.security-setup-panel,
.password-panel {
  display: grid;
  gap: 16px;
}

.setup-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.15rem;
  color: #405065;
  line-height: 1.6;
}

.setup-list code {
  padding: 2px 5px;
  border-radius: 5px;
  color: var(--navy);
  background: #eef2f6;
}

.auth-link {
  justify-self: start;
  padding: 0;
  border: 0;
  color: #276fda;
  font-weight: 800;
  text-decoration: underline;
  background: transparent;
}

.password-panel {
  margin-bottom: 18px;
}

.password-panel h2 {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.password-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  min-height: 100%;
  padding-top: 25px;
}

.subject-admin-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.subject-admin-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

.subject-admin-copy .eyebrow {
  color: #3a8c2f;
}

.subject-admin-copy h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.subject-admin-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.subject-admin-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 12px;
  align-items: end;
}

.subject-cover-field,
.subject-cover-upload,
.subject-admin-form .cover-preview,
.subject-form-actions {
  grid-column: 1 / -1;
}

.subject-form-actions,
.subject-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.subject-form-actions {
  align-items: center;
}

.subject-admin-actions {
  justify-content: flex-end;
}

.subject-admin-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.subject-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.subject-admin-item.is-editing {
  border-color: rgba(117, 207, 85, 0.58);
  background: var(--mint);
}

.subject-admin-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.subject-admin-detail > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.subject-admin-item strong {
  overflow-wrap: anywhere;
}

.subject-admin-item span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.login-panel {
  max-width: 520px;
  margin: 0 auto;
}

.editor-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.editor-title .eyebrow {
  color: #3a8c2f;
}

.admin-form {
  display: grid;
  gap: 15px;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.order-controls .icon-only-button {
  width: 32px;
  height: 32px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding-top: 25px;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
}

.checkbox-line span {
  font-size: 0.95rem;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.admin-list-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-list-detail > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-list-thumb {
  width: 62px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: #eef2f6;
}

.admin-list-item strong {
  overflow-wrap: anywhere;
}

.admin-list-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.form-error {
  color: #9d2525;
  font-weight: 700;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  font-weight: 800;
}

body.is-busy {
  cursor: progress;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 13, 31, 0.74);
  opacity: 0;
  transition: opacity 180ms ease;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.app-loader[hidden] {
  display: none;
}

.app-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.app-loader-panel {
  display: grid;
  justify-items: center;
  width: min(360px, 100%);
  padding: 28px;
  border: 1px solid rgba(167, 243, 109, 0.3);
  border-radius: var(--radius);
  color: var(--white);
  text-align: center;
  background: rgba(8, 23, 51, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.app-loader-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
}

.app-loader-mark img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
}

.app-loader-mark span {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--lime);
  border-right-color: var(--sky);
  border-radius: 50%;
  animation: loader-spin 800ms linear infinite;
}

.app-loader-panel strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.app-loader-progress {
  overflow: hidden;
  width: 100%;
  height: 5px;
  margin-top: 18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.app-loader:not(.has-progress) .app-loader-progress {
  display: none;
}

.app-loader-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--sky));
  transition: width 160ms ease;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid rgba(167, 243, 109, 0.44);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(8, 23, 51, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px var(--page-gutter);
  color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(90deg, rgba(167, 243, 109, 0.08), transparent 32%),
    #071323;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer a {
  color: var(--white);
}

.footer-brand {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(167, 243, 109, 0.2);
}

.footer-brand strong {
  display: flex;
  gap: 6px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
}

.footer-brand strong span:last-child {
  color: var(--lime);
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.site-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
}

.site-footer .footer-links a.social-link {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.site-footer .footer-links a.social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
  border-color: rgba(167, 243, 109, 0.4);
  color: var(--white);
  background: rgba(167, 243, 109, 0.12);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 540ms ease,
    transform 540ms ease;
}

@keyframes hero-drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.035);
  }
}
@media (max-width: 1200px) {
  .program-grid,
  .article-grid,
  .article-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .feature-grid,
  .inquiry-shell,
  .admin-login-shell,
  .admin-dashboard-shell,
  .subject-admin-panel,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-shell {
    padding-top: 20px;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1fr) minmax(180px, 0.7fr);
    align-items: stretch;
  }

  .admin-sidebar-brand {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .admin-dashboard-nav {
    align-self: stretch;
  }

  .hero {
    min-height: 610px;
    padding-top: 50px;
    padding-bottom: 68px;
  }

  .hero-copy {
    width: min(660px, 72vw);
  }

  .technology-banner {
    min-height: 470px;
  }

  .technology-banner-copy {
    width: min(560px, 56vw);
  }

  .tutorial-layout {
    grid-template-columns: 1fr;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-sidebar,
  .tutorial-reader-panel {
    position: static;
    height: auto;
    max-height: none;
  }

  .tutorial-reader-panel {
    overflow: visible;
  }

  .topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-grid,
  .outcome-grid,
  .article-grid,
  .article-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .document-preview,
  .tutorial-resource {
    align-items: stretch;
    flex-direction: column;
  }

  .document-preview-actions,
  .tutorial-resource .button {
    width: 100%;
  }

  .document-preview-actions .button,
  .document-preview-actions a,
  .tutorial-resource .button {
    justify-content: center;
  }

  .site-header {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(8, 23, 51, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .section-band {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero {
    min-height: 680px;
    padding-top: 56px;
    padding-bottom: 76px;
  }

  .hero-background {
    object-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 13, 31, 0.96), rgba(4, 13, 31, 0.62)),
      linear-gradient(180deg, rgba(4, 13, 31, 0.28), rgba(4, 13, 31, 0.92));
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }


  .hero-scroll-cue {
    right: auto;
    left: var(--page-gutter);
  }

  .subject-strip {
    top: 68px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .tutorial-layout {
    padding-top: 16px;
    padding-bottom: 54px;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }

  .tutorial-reader-header,
  .tutorial-reader-body,
  .tutorial-pager {
    padding-right: 18px;
    padding-left: 18px;
  }

  .tutorial-reader-actions {
    align-items: stretch;
  }

  .tutorial-full-view-button {
    width: 100%;
  }

  .tutorial-full-view-overlay {
    padding: 0;
  }

  .tutorial-full-view-dialog {
    border: 0;
    border-radius: 0;
  }

  .tutorial-full-view-toolbar {
    min-height: 62px;
    padding: 10px 12px 10px 16px;
  }

  .tutorial-full-view-body {
    padding: 30px 18px 64px;
    font-size: 1rem;
  }

  .tutorial-full-view-heading {
    margin-bottom: 28px;
    padding-bottom: 22px;
  }

  .tutorial-full-view-heading h1 {
    font-size: 2.15rem;
  }

  .tutorial-pager {
    flex-direction: column;
  }

  .tutorial-pager .button {
    width: 100%;
  }

  .toolbar,
  .subject-admin-form,
  .form-grid,
  .form-grid-three {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .toolbar label,
  .admin-actions .button {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-launch-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .technology-banner {
    align-items: flex-end;
    min-height: 720px;
    padding-top: 260px;
  }

  .technology-banner-background {
    object-position: 31% center;
  }

  .technology-banner-shade {
    background:
      linear-gradient(180deg, rgba(8, 23, 51, 0.08) 0%, rgba(8, 23, 51, 0.44) 38%, rgba(8, 23, 51, 0.98) 70%),
      linear-gradient(90deg, rgba(8, 23, 51, 0.14), rgba(8, 23, 51, 0.38));
  }

  .technology-banner-copy {
    width: 100%;
    margin-left: 0;
  }

  .program-grid,
  .outcome-grid,
  .admin-summary-grid,
  .article-grid,
  .article-rail {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .admin-tabs.admin-dashboard-nav {
    grid-template-columns: repeat(3, minmax(94px, 1fr));
  }

  .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-topline,
  .subject-admin-item,
  .admin-list-item,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer .footer-links {
    justify-content: flex-start;
  }

  .admin-actions {
    width: 100%;
  }

  .reader-body {
    font-size: 1rem;
  }

  .format-group {
    width: 100%;
  }

  .rich-toolbar select {
    width: 100%;
  }

  .rich-insert-panel {
    grid-template-columns: 1fr;
  }

  .rich-panel-actions {
    flex-direction: column;
  }

  .password-actions {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0;
  }

  .rich-editor-area {
    min-height: 320px;
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .brand-wordmark {
    max-width: 132px;
  }

  .brand-wordmark span {
    white-space: nowrap;
  }

  h1 {
    font-size: 2.25rem;
  }


  .card-body,
  .subject-admin-panel,
  .admin-card {
    padding: 16px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Admin dashboard redesign */
.admin-dashboard-shell {
  --admin-blue: #2563eb;
  --admin-blue-dark: #1d4ed8;
  --admin-green: #10b981;
  --admin-amber: #f59e0b;
  --admin-red: #ef4444;
  --admin-violet: #7c3aed;
  --admin-bg: #f4f7fb;
  --admin-surface: #ffffff;
  --admin-border: #e2e8f0;
  --admin-text: #172033;
  --admin-muted: #64748b;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 72px);
  padding: 0;
  background: var(--admin-bg);
}

.admin-dashboard-shell .admin-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-dashboard-shell .admin-sidebar {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: calc(100vh - 72px);
  max-height: calc(100vh - 72px);
  padding: 20px 14px;
  overflow-y: auto;
  border: 0;
  border-right: 1px solid var(--admin-border);
  border-radius: 0;
  background: var(--admin-surface);
  box-shadow: none;
}

.admin-dashboard-shell .admin-sidebar-brand {
  gap: 10px;
  padding: 0 8px 18px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-dashboard-shell .admin-sidebar-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.admin-dashboard-shell .admin-sidebar-brand strong {
  color: var(--admin-text);
  font-size: 0.96rem;
}

.admin-dashboard-shell .admin-sidebar-brand small {
  color: var(--admin-muted);
  font-size: 0.72rem;
}

.admin-dashboard-shell .admin-dashboard-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  overflow: visible;
}

.admin-dashboard-shell .admin-tabs.admin-dashboard-nav button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  gap: 10px;
  min-height: 42px;
  padding: 10px 11px;
  border: 0;
  border-radius: 7px;
  color: #526077;
  text-align: left;
  background: transparent;
}

.admin-dashboard-shell .admin-tabs.admin-dashboard-nav button:hover,
.admin-dashboard-shell .admin-tabs.admin-dashboard-nav button:focus-visible {
  color: var(--admin-text);
  background: #f1f5f9;
}

.admin-dashboard-shell .admin-tabs.admin-dashboard-nav button span {
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-dashboard-shell .admin-tabs.admin-dashboard-nav button small {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 21px;
  padding: 0 6px;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.69rem;
  background: #e9eef5;
}

.admin-dashboard-shell .admin-tabs.admin-dashboard-nav button.is-active {
  color: #ffffff;
  background: var(--admin-blue);
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.22);
}

.admin-dashboard-shell .admin-tabs.admin-dashboard-nav button.is-active small {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.admin-dashboard-shell .admin-sidebar-card {
  gap: 9px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  color: var(--admin-text);
  background: #f7faff;
}

.admin-health-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-blue);
}

.admin-dashboard-shell .admin-sidebar-card strong {
  color: var(--admin-text);
  font-size: 1.7rem;
}

.admin-dashboard-shell .admin-sidebar-card small {
  color: var(--admin-muted);
  font-size: 0.72rem;
}

.admin-dashboard-shell .admin-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 0;
  border: 0;
  border-top: 1px solid var(--admin-border);
  border-radius: 0;
  background: transparent;
}

.admin-sidebar-user > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-sidebar-user strong,
.admin-sidebar-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-user strong {
  color: var(--admin-text);
  font-size: 0.82rem;
}

.admin-sidebar-user small {
  color: var(--admin-muted);
  font-size: 0.68rem;
}

.admin-user-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--admin-blue);
}

.admin-dashboard-shell .admin-main {
  width: 100%;
  max-width: 1440px;
  padding: 26px clamp(18px, 2.4vw, 36px) 44px;
}

.admin-dashboard-shell .admin-topline {
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-dashboard-shell .admin-topline > div:not(.admin-actions) {
  gap: 6px;
}

.admin-dashboard-shell .admin-topline h1 {
  color: var(--admin-text);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
}

.admin-dashboard-shell .admin-topline > div > span {
  max-width: 720px;
  color: var(--admin-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.admin-breadcrumb,
.admin-section-kicker {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-breadcrumb span {
  padding: 0 5px;
  color: #a0aec0;
}

.admin-dashboard-shell .button {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 0.82rem;
  box-shadow: none;
}

.admin-dashboard-shell .button:hover,
.admin-dashboard-shell .button:focus-visible {
  transform: none;
}

.admin-dashboard-shell .button.primary {
  color: #ffffff;
  background: var(--admin-blue);
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.2);
}

.admin-dashboard-shell .button.primary:hover,
.admin-dashboard-shell .button.primary:focus-visible {
  background: var(--admin-blue-dark);
}

.admin-dashboard-shell .button.ghost {
  border-color: #d6deea;
  color: #475569;
  background: #ffffff;
}

.admin-dashboard-shell .button.ghost:hover,
.admin-dashboard-shell .button.ghost:focus-visible {
  border-color: #b9c5d5;
  color: var(--admin-text);
  background: #f8fafc;
}

.admin-icon-command,
.admin-dashboard-shell .button.primary {
  gap: 7px;
}

.admin-dashboard-shell .admin-summary-grid {
  gap: 12px;
  margin-bottom: 20px;
}

.admin-dashboard-shell .admin-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 16px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.045);
}

.admin-dashboard-shell .admin-stat-card:nth-child(n) {
  background: var(--admin-surface);
}

.admin-stat-icon,
.admin-quick-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.admin-stat-icon.is-blue,
.admin-quick-icon.is-blue { color: #2563eb; background: #e8f0ff; }
.admin-stat-icon.is-green,
.admin-quick-icon.is-green { color: #059669; background: #e6f8f1; }
.admin-stat-icon.is-amber,
.admin-quick-icon.is-amber { color: #d97706; background: #fff4dc; }
.admin-stat-icon.is-violet { color: #7c3aed; background: #f0eaff; }

.admin-dashboard-shell .admin-stat-card > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-dashboard-shell .admin-stat-card small {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-dashboard-shell .admin-stat-card strong {
  margin: 0;
  color: var(--admin-text);
  font-size: 1.75rem;
  line-height: 1.1;
}

.admin-dashboard-shell .admin-stat-card strong.is-text {
  overflow: hidden;
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard-shell .admin-stat-card > div > span {
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-dashboard-shell .admin-card,
.admin-dashboard-shell .subject-admin-panel,
.admin-dashboard-shell .admin-subject-tabs-card {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
}

.admin-dashboard-shell .admin-card {
  padding: 20px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.admin-overview-side {
  display: grid;
  gap: 18px;
}

.admin-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-card-heading h2,
.admin-quick-actions h2,
.admin-library-health h2,
.admin-dashboard-shell .editor-title h2,
.admin-dashboard-shell .admin-subject-tabs-card h2,
.admin-dashboard-shell .subject-admin-copy h2 {
  color: var(--admin-text);
  font-size: 1.08rem;
}

.admin-card-heading > div,
.admin-quick-actions > div:first-child {
  display: grid;
  gap: 4px;
}

.admin-table {
  overflow-x: auto;
}

.admin-table-head,
.admin-table-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) 90px 90px 105px 38px;
  gap: 12px;
  align-items: center;
  min-width: 620px;
  padding: 11px 12px;
}

.admin-table-head {
  border-top: 1px solid var(--admin-border);
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #f8fafc;
}

.admin-table-row {
  border-bottom: 1px solid #edf1f6;
  color: #526077;
  font-size: 0.78rem;
}

.admin-table-row:hover {
  background: #f8fafc;
}

.admin-table-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-table-row strong {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-row small {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
}

.status-published { background: var(--admin-green); }
.status-draft { background: var(--admin-amber); }
.status-pending { background: var(--admin-blue); }
.status-archived { background: var(--admin-red); }

.icon-only-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid #d6deea;
  border-radius: 7px;
  color: #475569;
  background: #ffffff;
}

.icon-only-button:hover,
.icon-only-button:focus-visible {
  color: var(--admin-blue);
  border-color: #a9c1f5;
  background: #eef4ff;
}

.icon-only-button.is-danger {
  color: #dc2626;
}

.icon-only-button.is-danger:hover,
.icon-only-button.is-danger:focus-visible {
  border-color: #fecaca;
  background: #fff1f2;
}

.icon-only-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.admin-quick-actions {
  display: grid;
  gap: 9px;
}

.admin-quick-actions > button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-muted);
  text-align: left;
  background: #ffffff;
}

.admin-quick-actions > button:hover,
.admin-quick-actions > button:focus-visible {
  border-color: #b7caf5;
  background: #f8fbff;
}

.admin-quick-icon {
  width: 38px;
  height: 38px;
}

.admin-quick-actions > button > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-quick-actions strong {
  color: var(--admin-text);
  font-size: 0.82rem;
}

.admin-quick-actions small {
  color: var(--admin-muted);
  font-size: 0.7rem;
}

.admin-library-health {
  display: grid;
  gap: 12px;
}

.admin-health-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 7px;
  background: #e8edf4;
}

.admin-health-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--admin-green);
}

.admin-health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf1f6;
  color: var(--admin-muted);
  font-size: 0.76rem;
}

.admin-health-row strong {
  max-width: 150px;
  overflow: hidden;
  color: var(--admin-text);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard-shell .admin-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 18px;
}

.admin-dashboard-shell .editor-title {
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-dashboard-shell .admin-form,
.admin-dashboard-shell .subject-admin-form {
  gap: 13px;
}

.admin-dashboard-shell label > span,
.admin-dashboard-shell .rich-editor-field > span {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-dashboard-shell input,
.admin-dashboard-shell select,
.admin-dashboard-shell textarea {
  min-height: 40px;
  border-color: #cfd8e5;
  border-radius: 7px;
  color: var(--admin-text);
  background: #ffffff;
}

.admin-dashboard-shell input:focus,
.admin-dashboard-shell select:focus,
.admin-dashboard-shell textarea:focus,
.admin-dashboard-shell [contenteditable="true"]:focus {
  border-color: #7aa3f5;
  outline: 3px solid rgba(37, 99, 235, 0.12);
}

.admin-search {
  position: relative;
  display: block;
  margin-bottom: 14px;
}

.admin-search .admin-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  color: #94a3b8;
  transform: translateY(-50%);
}

.admin-search input {
  width: 100%;
  padding-left: 40px;
}

.admin-dashboard-shell .admin-list {
  gap: 0;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow: hidden;
}

.admin-dashboard-shell .admin-list-item,
.admin-dashboard-shell .subject-admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  min-height: 70px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  border-radius: 0;
  background: #ffffff;
}

.admin-dashboard-shell .admin-list-item:last-child,
.admin-dashboard-shell .subject-admin-item:last-child {
  border-bottom: 0;
}

.admin-dashboard-shell .admin-list-item:hover,
.admin-dashboard-shell .subject-admin-item:hover {
  background: #f8fafc;
}

.admin-dashboard-shell .admin-list-item[hidden],
.admin-dashboard-shell .subject-admin-item[hidden] {
  display: none;
}

.admin-dashboard-shell .admin-list-detail,
.admin-dashboard-shell .subject-admin-detail {
  gap: 10px;
}

.admin-list-placeholder {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--admin-blue);
  font-size: 0.74rem;
  font-weight: 800;
  background: #e8f0ff;
}

.admin-dashboard-shell .admin-list-thumb {
  width: 52px;
  height: 44px;
}

.admin-dashboard-shell .admin-list-item strong,
.admin-dashboard-shell .subject-admin-item strong {
  color: var(--admin-text);
  font-size: 0.84rem;
}

.admin-dashboard-shell .admin-list-item span,
.admin-dashboard-shell .subject-admin-item span {
  color: var(--admin-muted);
  font-size: 0.72rem;
}

.admin-dashboard-shell .admin-list-item .admin-actions,
.admin-dashboard-shell .subject-admin-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

.admin-dashboard-shell .subject-admin-panel {
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  padding: 20px;
}

.admin-dashboard-shell .subject-admin-list {
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
}

.admin-dashboard-shell .subject-admin-item.is-editing {
  background: #eef4ff;
}

.admin-dashboard-shell .admin-subject-tabs-card {
  padding: 16px;
}

.admin-dashboard-shell .admin-subject-tabs button {
  min-width: 145px;
  min-height: 58px;
  border-color: var(--admin-border);
  color: #475569;
  background: #ffffff;
}

.admin-dashboard-shell .admin-subject-tabs button.is-active {
  border-color: var(--admin-blue);
  color: #ffffff;
  background: var(--admin-blue);
  box-shadow: none;
}

.admin-dashboard-shell .admin-subject-tabs button.is-active small {
  color: rgba(255, 255, 255, 0.78);
}

.admin-dashboard-shell .password-panel {
  margin-bottom: 20px;
}

@media (max-width: 1120px) {
  .admin-overview-grid,
  .admin-dashboard-shell .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-overview-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-shell .admin-sidebar {
    position: static;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: auto;
    max-height: none;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--admin-border);
    overflow: visible;
  }

  .admin-dashboard-shell .admin-sidebar-brand {
    padding: 0;
    border: 0;
  }

  .admin-dashboard-shell .admin-dashboard-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
  }

  .admin-dashboard-shell .admin-tabs.admin-dashboard-nav button {
    grid-template-columns: 18px auto auto;
    width: auto;
    min-width: max-content;
  }

  .admin-dashboard-shell .admin-sidebar-card {
    display: none;
  }

  .admin-dashboard-shell .admin-sidebar-user {
    padding: 0;
    border: 0;
  }

  .admin-sidebar-user > span:last-child {
    display: none;
  }
}

@media (max-width: 760px) {
  .admin-dashboard-shell .admin-sidebar {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .admin-dashboard-shell .admin-sidebar-brand,
  .admin-dashboard-shell .admin-sidebar-user {
    display: none;
  }

  .admin-dashboard-shell .admin-main {
    padding: 20px 14px 36px;
  }

  .admin-dashboard-shell .admin-topline {
    gap: 16px;
  }

  .admin-dashboard-shell .admin-actions {
    display: grid;
    grid-template-columns: 1fr 42px 42px;
  }

  .admin-dashboard-shell .admin-actions .button {
    width: auto;
  }

  .admin-dashboard-shell .admin-icon-command {
    width: 42px;
    padding: 0;
  }

  .admin-dashboard-shell .admin-icon-command span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .admin-dashboard-shell .admin-summary-grid,
  .admin-overview-side {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-shell .admin-stat-card {
    min-height: 92px;
  }

  .admin-dashboard-shell .subject-admin-panel {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-shell .admin-list-item,
  .admin-dashboard-shell .subject-admin-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-dashboard-shell .admin-list-item > .status-badge,
  .admin-dashboard-shell .subject-admin-item > .status-badge {
    grid-column: 1;
    margin-left: 54px;
  }

  .admin-dashboard-shell .admin-list-item > .admin-actions,
  .admin-dashboard-shell .subject-admin-item > .subject-admin-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .order-controls {
    flex-direction: column;
  }

  .admin-card-heading {
    align-items: stretch;
    flex-direction: column;
  }
}
.subject-search { grid-column: 1 / -1; margin-bottom: -6px; }

.admin-dashboard-shell .admin-dashboard-nav { scrollbar-width: none; }
.admin-dashboard-shell .admin-dashboard-nav::-webkit-scrollbar { display: none; }

.admin-overview-grid, .admin-overview-grid > *, .admin-recent-card, .admin-table { min-width: 0; max-width: 100%; }
