:root {
  --cream: #f6f2eb;
  --forest: #2a3c2f;
  --olive: #5a6a52;
  --sage: #6b7f5e;
  --terra: #c56a4d;
  --terra-dark: #a9513b;
  --tan: #d7c9b1;
  --sand: #ede5d8;
  --line: #e2dad0;
  --white: #fffdf9;
  --danger: #9b3e2f;
  --shadow: 0 20px 60px rgba(42, 60, 47, 0.08);
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--forest);
  font-family: "Jost", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
}
.login-story {
  padding: clamp(44px, 7vw, 96px);
  background: var(--forest);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}
.wordmark, .app-wordmark {
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}
.login-copy { max-width: 720px; margin-top: clamp(58px, 9vh, 100px); }
.eyebrow {
  margin: 0 0 18px;
  color: var(--terra);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.login-story .eyebrow { color: var(--tan); }
h1, h2, h3 {
  margin-top: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  line-height: 1.07;
}
.login-story h1 {
  margin-bottom: 26px;
  font-size: clamp(48px, 7vw, 90px);
}
.login-story h1 em { color: var(--tan); font-weight: 400; }
.login-story p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(246, 242, 235, .72);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
}
.login-story > p:last-child { margin: 30px 0 0; }
.login-form-wrap {
  padding: clamp(34px, 7vw, 88px);
  display: grid;
  place-items: center;
}
.login-card { width: min(100%, 520px); }
.login-card h2 { margin-bottom: 14px; font-size: clamp(40px, 5vw, 58px); }
.supporting { color: var(--olive); line-height: 1.7; }
.form-grid { display: grid; gap: 17px; margin-top: 28px; }
.access-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
}
.access-tab {
  min-height: 48px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--olive);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.access-tab.active {
  border-bottom-color: var(--terra);
  color: var(--forest);
}
label { display: grid; gap: 8px; color: var(--olive); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(42, 60, 47, .18);
  border-radius: 2px;
  background: rgba(255, 253, 249, .75);
  color: var(--forest);
  padding: 14px 15px;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus {
  outline: 3px solid rgba(197, 106, 77, .16);
  border-color: var(--terra);
}
.button {
  min-height: 48px;
  border: 0;
  border-radius: 2px;
  padding: 13px 22px;
  background: var(--terra);
  color: white;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.button:hover { background: var(--terra-dark); }
.button.secondary { border: 1px solid rgba(42, 60, 47, .2); background: transparent; color: var(--forest); }
.button.dark { background: var(--forest); }
.button.small { min-height: 38px; padding: 9px 14px; }
.button:disabled { cursor: wait; opacity: .6; }
.status { margin: 15px 0 0; color: var(--danger); font-size: 14px; line-height: 1.5; }
.privacy-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--olive);
  font-size: 12px;
  line-height: 1.65;
}

.app-shell { width: 100%; max-width: 100%; min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); overflow-x: clip; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px 24px;
  background: var(--forest);
  color: var(--cream);
  display: flex;
  flex-direction: column;
}
.app-wordmark {
  white-space: nowrap;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1.15;
  text-transform: none;
}
.sidebar-sub { margin: 8px 0 34px; color: var(--tan); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; }
.nav-link {
  width: 100%;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: rgba(246,242,235,.68);
  min-height: 46px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: .025em;
}
.nav-link:hover, .nav-link.active { border-left-color: var(--terra); background: rgba(255,255,255,.05); color: white; }
.sidebar-bottom { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.user-name { margin: 0 0 4px; font-family: "Cormorant Garamond", serif; font-size: 21px; }
.user-email { margin: 0 0 14px; color: rgba(246,242,235,.45); font-size: 11px; word-break: break-word; }
.text-button { border: 0; background: none; color: var(--tan); cursor: pointer; padding: 0; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.main { min-width: 0; padding: 36px clamp(22px, 5vw, 68px) 72px; }
.topbar { display: flex; justify-content: flex-end; gap: 24px; align-items: center; margin-bottom: 48px; }
.topbar-note { margin: 0; color: var(--olive); font-size: 13px; }
.admin-link { color: var(--terra); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.view { display: none; min-width: 0; max-width: 100%; overflow-x: hidden; }
.view.active { display: block; }
.page-heading { margin-bottom: 32px; }
.page-heading h1 { margin-bottom: 12px; font-size: clamp(44px, 5vw, 68px); }
.page-heading p { max-width: 720px; margin: 0; color: var(--olive); font-size: 16px; line-height: 1.7; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 24px; }
.card {
  border: 1px solid rgba(42,60,47,.12);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 38px);
}
.card.sand { background: var(--sand); }
.current-card { position: relative; overflow: hidden; background: var(--forest); color: var(--cream); }
.current-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -120px; top: -110px; border: 1px solid rgba(215,201,177,.22); border-radius: 50%; }
.current-card .eyebrow { color: var(--tan); }
.current-card h2 { max-width: 680px; margin-bottom: 16px; font-size: clamp(34px, 4vw, 53px); }
.current-card .week-description { max-width: 650px; color: rgba(246,242,235,.66); line-height: 1.7; }
.card-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.progress-card h3, .card h3 { font-size: 28px; margin-bottom: 18px; }
.progress-ring {
  --value: 0;
  width: 142px; height: 142px;
  margin: 12px auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--terra) calc(var(--value) * 1%), var(--line) 0);
  position: relative;
}
.progress-ring::before { content: ""; position: absolute; inset: 12px; border-radius: inherit; background: var(--white); }
.progress-ring strong { position: relative; font-family: "Cormorant Garamond", serif; font-size: 40px; font-weight: 500; }
.progress-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.progress-stat { background: var(--white); padding: 14px; text-align: center; }
.progress-stat strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 28px; }
.progress-stat span { color: var(--olive); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.next-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.next-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.next-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--terra); font-weight: 700; }
.next-item p { margin: 2px 0 0; line-height: 1.5; }
.boundary-card { margin-top: 24px; border-left: 4px solid var(--terra); }
.boundary-card p { margin-bottom: 0; color: var(--olive); line-height: 1.7; }

.week-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.week-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid rgba(42,60,47,.13);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.week-card:not(.locked):hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.week-card.locked { opacity: .55; }
.week-number { color: var(--terra); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.week-card h3 { margin: 14px 0 12px; font-size: 27px; }
.week-card p { margin: 0; color: var(--olive); font-size: 14px; line-height: 1.6; }
.curriculum-lesson-list {
  margin: 22px 0 0;
  padding: 18px 0 0 20px;
  border-top: 1px solid rgba(42,60,47,.13);
  color: var(--olive);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}
.curriculum-lesson-list li + li { margin-top: 7px; }
.week-meta { margin-top: auto; padding-top: 20px; color: var(--forest); font-size: 11px; font-weight: 600; }
.week-state { margin-top: 14px; display: flex; align-items: center; gap: 7px; color: var(--sage); font-size: 11px; }
.week-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.module-layout { display: block; }
.module-main { display: grid; gap: 18px; }
.lesson-placeholder {
  min-height: 330px;
  background: var(--forest);
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
}
.lesson-placeholder span { display: block; color: var(--tan); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.lesson-placeholder strong { display: block; margin-top: 12px; font-family: "Cormorant Garamond", serif; font-size: clamp(30px, 4vw, 48px); font-weight: 500; }
.lesson-placeholder [data-lesson-media] { margin-top: 24px; }
.lesson-placeholder [data-lesson-media] span { max-width: 460px; color: rgba(246,242,235,.62); letter-spacing: 0; line-height: 1.6; text-transform: none; }
.lesson-video {
  width: min(860px, 76vw);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #17241b;
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
}
.lesson-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.lesson-list { display: grid; gap: 24px; }
.lesson-card {
  overflow: hidden;
  border: 1px solid rgba(42,60,47,.12);
  background: var(--white);
  box-shadow: var(--shadow);
}
.lesson-heading { padding: clamp(24px,4vw,38px); }
.lesson-heading h2 { margin-bottom: 12px; font-size: clamp(34px,4vw,48px); }
.lesson-heading > p:last-child { max-width: 720px; margin: 0; color: var(--olive); line-height: 1.7; }
.lesson-card .lesson-video { width: 100%; box-shadow: none; }
.video-complete {
  display: flex;
  grid-template-columns: none;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 18px clamp(20px,4vw,38px);
  border-top: 1px solid rgba(42,60,47,.1);
  background: var(--sand);
  cursor: pointer;
}
.video-complete input { width: 22px; height: 22px; min-height: 0; flex: 0 0 auto; accent-color: var(--terra); }
.video-complete strong, .video-complete small { display: block; }
.video-complete small { margin-top: 3px; color: var(--olive); font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.workbook-form { padding: clamp(26px,5vw,48px); border-top: 5px solid var(--terra); background: #fbf7f0; }
.workbook-heading { max-width: 760px; margin-bottom: 22px; }
.workbook-heading h3 { margin-bottom: 12px; font-size: clamp(30px,4vw,42px); }
.workbook-heading > p:last-child { color: var(--olive); font-size: 13px; line-height: 1.65; }
.workbook-progress-copy { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 16px 18px; background: var(--sand); color: var(--forest); font-size: 12px; }
.workbook-progress-copy span { color: var(--olive); white-space: nowrap; }
.workbook-sections { display: grid; gap: 10px; }
.workbook-section { border: 1px solid rgba(42,60,47,.14); background: var(--white); }
.workbook-section summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; min-height: 72px; padding: 16px 18px; color: var(--forest); font-family: "Cormorant Garamond",serif; font-size: 22px; font-weight: 600; line-height: 1.15; cursor: pointer; list-style: none; }
.workbook-section summary::-webkit-details-marker { display: none; }
.workbook-section summary > span:first-child { display: grid; gap: 4px; }
.workbook-section summary small { color: var(--sage); font-family: "Montserrat",sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.workbook-section-count { flex: 0 0 auto; padding: 7px 9px; border-radius: 99px; background: var(--sand); color: var(--olive); font-family: "Montserrat",sans-serif; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.workbook-section[open] { border-color: rgba(197,106,77,.45); box-shadow: 0 12px 30px rgba(42,60,47,.06); }
.workbook-section[open] summary { border-bottom: 1px solid rgba(42,60,47,.1); }
.workbook-prompts { display: grid; gap: 22px; padding: 24px 20px 28px; }
.workbook-prompts-simple { padding: 8px 0 12px; }
.workbook-prompts label { color: var(--forest); font-size: 13px; letter-spacing: 0; line-height: 1.5; text-transform: none; }
.prompt-example { display: block; margin: 7px 0 10px; color: var(--olive); font-size: 11px; font-style: italic; font-weight: 400; line-height: 1.55; }
.prompt-example strong { color: var(--terra); font-style: normal; }
.workbook-prompts textarea { min-height: 105px; background: #fbf7f0; }
.workbook-form blockquote { margin: 28px 0 0; padding: 18px 20px; border-left: 4px solid var(--terra); color: var(--forest); font-family: "Cormorant Garamond",serif; font-size: 22px; line-height: 1.35; }
.workbook-status { color: var(--sage); font-size: 12px; }
.workbook-save { position: sticky; bottom: 12px; z-index: 3; margin-top: 22px; padding: 10px; background: rgba(251,247,240,.94); box-shadow: 0 8px 28px rgba(42,60,47,.12); backdrop-filter: blur(8px); }
.week-form-list { display: grid; gap: 18px; }
.orientation-card { border-top-color: var(--sage); background: linear-gradient(150deg,#fff 0%,#f1eadf 100%); }
.week-focus { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 20px; align-items: center; margin-bottom: 20px; padding: 19px 22px; border-left: 5px solid var(--terra); background: var(--sand); }
.week-focus span { color: var(--terra); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.week-focus p { margin: 0; color: var(--forest); font-size: 16px; line-height: 1.55; }
.lesson-sequence-status { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 0 0 10px; color: var(--olive); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lesson-sequence-status strong { color: var(--terra); }
.lesson-step { overflow: hidden; padding: 0; border: 1px solid rgba(42,60,47,.13); border-top-width: 1px; box-shadow: none; }
.lesson-step-active { border-color: rgba(197,106,77,.42); box-shadow: 0 14px 32px rgba(42,60,47,.08); }
.lesson-step + .lesson-step { margin-top: 12px; }
.lesson-step-summary { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 16px; align-items: center; min-height: 82px; padding: 14px 20px; border-bottom: 1px solid rgba(42,60,47,.1); background: var(--sand); list-style: none; }
.lesson-step-summary::-webkit-details-marker { display: none; }
.lesson-step-number { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--sand); color: var(--terra); font-weight: 800; }
.lesson-step-copy { display: grid; gap: 4px; }
.lesson-step-copy small { color: var(--sage); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.lesson-step-copy strong { color: var(--forest); font-family: "Cormorant Garamond",serif; font-size: clamp(22px,3vw,29px); line-height: 1.05; }
.lesson-step-state { padding: 7px 10px; border-radius: 99px; background: var(--sand); color: var(--olive); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lesson-step-state.complete { background: var(--sage); color: var(--white); }
.lesson-step-state.in-progress { background: #f1d8cf; color: var(--danger); }
.lesson-step[open] { border-color: rgba(197,106,77,.42); box-shadow: 0 14px 32px rgba(42,60,47,.08); }
.lesson-step[open] .lesson-step-summary { border-bottom: 1px solid rgba(42,60,47,.1); background: var(--sand); }
.lesson-step-body { background: var(--white); }
.lesson-sequence-nav { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 12px; margin-top: 18px; }
.lesson-sequence-nav .button { width: 100%; }
.lesson-sequence-nav .button:disabled { cursor: not-allowed; opacity: .7; }
.lesson-sequence-help { margin: 10px 0 0; color: var(--terra); font-size: 12px; font-weight: 700; text-align: right; }
.week-checkpoint-preview { display: grid; gap: 5px; margin-top: 22px; padding: 18px 20px; border: 1px dashed rgba(42,60,47,.24); background: rgba(255,253,249,.55); color: var(--olive); }
.week-checkpoint-preview span { color: var(--terra); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.week-checkpoint-preview strong { color: var(--forest); font-family: "Cormorant Garamond",serif; font-size: 24px; }
.week-checkpoint-preview small { font-size: 11px; }
.mini-video-slot { display: grid; min-height: 220px; place-content: center; gap: 8px; padding: 30px; background: var(--forest); color: var(--white); text-align: center; }
.mini-video-slot span { color: var(--clay); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.mini-video-slot strong { font-family: "Cormorant Garamond",serif; font-size: 32px; }
.mini-video-slot small { color: rgba(255,255,255,.7); }
.week-forms-card { border-left: 5px solid var(--terra); box-shadow: none; }
.week-form-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.welcome-assessment { appearance: none; width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid rgba(38,63,48,.18); background: #fffdfa; color: var(--forest); text-align: left; cursor: pointer; }
.welcome-assessment-check { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 2px solid rgba(38,63,48,.35); border-radius: 50%; color: white; font-weight: 800; }
.welcome-assessment.complete .welcome-assessment-check { border-color: var(--sage); background: var(--sage); }
.welcome-assessment strong, .welcome-assessment small { display: block; }
.welcome-assessment strong { font-size: 14px; }
.welcome-assessment small { margin-top: 3px; color: var(--olive); }
.welcome-sequence-nav { margin-top: 0; }
.course-form { display: grid; min-width: 0; max-width: 100%; gap: 16px; overflow-x: hidden; }
.assessment-category { min-width: 0; border: 1px solid rgba(42,60,47,.15); background: var(--white); }
.assessment-category summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; color: var(--forest); cursor: pointer; list-style: none; font-family: "Cormorant Garamond", serif; font-size: 27px; font-weight: 600; }
.assessment-category summary::-webkit-details-marker { display: none; }
.assessment-category summary small { color: var(--terra); font-family: "Montserrat", sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.assessment-category[open] summary small { font-size: 0; }
.assessment-category[open] summary small::after { content: "Close"; font-size: 10px; }
.assessment-category-description { margin: -7px 24px 20px; color: var(--olive); font-size: 13px; line-height: 1.6; }
.assessment-category-fields { display: grid; min-width: 0; gap: 16px; padding: 0 24px 24px; }
.assessment-section-title { padding: 28px 4px 10px; border-bottom: 2px solid var(--terra); }
.assessment-section-title h3 { margin: 0; color: var(--forest); font-family: "Cormorant Garamond", serif; font-size: 34px; }
.assessment-section-title p { max-width: 760px; margin: 8px 0 0; color: var(--olive); font-size: 13px; line-height: 1.6; }
.field-help { color: var(--olive); font-size: 12px; font-style: italic; font-weight: 400; letter-spacing: 0; line-height: 1.55; text-transform: none; }
.course-form-intro { border-top: 5px solid var(--terra); }
.course-rating { margin: 0; padding: 0; border: 0; }
.course-rating legend { color: var(--forest); font-size: 14px; font-weight: 600; line-height: 1.55; }
.course-rating > p { margin: 8px 0 0; color: var(--olive); font-size: 11px; }
.course-rating-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.course-rating-options label { display: block; }
.course-rating-options input { position: absolute; opacity: 0; pointer-events: none; }
.course-rating-options span { display: grid; min-width: 42px; min-height: 42px; place-items: center; padding: 8px; border: 1px solid rgba(42,60,47,.2); background: var(--white); color: var(--forest); cursor: pointer; }
.course-rating-options input:checked + span { border-color: var(--terra); background: var(--terra); color: white; }
.choice-options { display: grid; grid-template-columns: 1fr; }
.choice-options label, .choice-options span { width: 100%; }
.choice-options span { justify-content: start; min-height: 48px; padding: 12px 14px; text-align: left; line-height: 1.4; }
.course-slider { display: grid; gap: 14px; }
.slider-value { display: flex; justify-content: space-between; align-items: center; color: var(--olive); font-size: 11px; }
.slider-value output { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--terra); color: var(--white); font-size: 12px; font-weight: 800; }
.course-slider input[type="range"] { width: 100%; min-height: 32px; padding: 0; accent-color: var(--terra); }
.slider-labels { display: flex; justify-content: space-between; gap: 20px; color: var(--olive); font-size: 10px; }
.form-ack { display: flex; grid-template-columns: none; gap: 12px; align-items: flex-start; color: var(--forest); font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.6; text-transform: none; }
.form-ack input { width: 22px; height: 22px; min-height: 0; flex: 0 0 auto; accent-color: var(--terra); }
.resource-list { display: grid; gap: 9px; margin-top: 18px; }
.resource-link { display: block; border-bottom: 1px solid rgba(42,60,47,.14); padding: 10px 0; color: var(--terra-dark); font-size: 13px; font-weight: 600; }
.activity-list { display: grid; gap: 12px; }
.activity {
  border: 1px solid rgba(42,60,47,.13);
  background: var(--white);
  padding: 20px;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
}
.activity-check { width: 24px; height: 24px; accent-color: var(--terra); }
.activity > span:nth-child(2) { min-width: 0; }
.activity strong { display: block; color: var(--forest); font-size: 14px; line-height: 1.35; }
.activity > span:nth-child(2) > span { display: block; margin-top: 5px; color: var(--olive); font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.55; text-transform: none; }
.activity > .pill { margin: 0; }
.module-side { position: sticky; top: 24px; display: grid; gap: 16px; }
.module-side .card { box-shadow: none; }
.module-side ul { margin: 0; padding-left: 18px; color: var(--olive); line-height: 1.8; font-size: 13px; }
.submission-card { margin-top: 18px; }
.submission-card h3 { margin-bottom: 8px; }
.warning {
  border-left: 4px solid var(--terra);
  background: var(--sand);
  padding: 16px 18px;
  color: var(--forest);
  font-size: 13px;
  line-height: 1.65;
}
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.inline-success { color: var(--sage); font-size: 13px; }

.assessment-grid { display: grid; gap: 18px; }
.assessment-back-row { display: flex; justify-content: flex-start; }
.assessment-back-row .button { min-width: 150px; }
.assessment-domain { min-width: 0; max-width: 100%; padding: 28px; border: 1px solid rgba(42,60,47,.12); background: var(--white); overflow-wrap: anywhere; }
.assessment-domain h3 { margin-bottom: 20px; }
.rating-row { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 20px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.rating-row p { margin: 0; font-size: 14px; line-height: 1.5; }
.rating-options { display: flex; justify-content: space-between; }
.rating-options label { display: inline-grid; place-items: center; gap: 3px; font-size: 10px; }

.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.metric { padding: 22px; background: var(--forest); color: white; }
.metric strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 40px; font-weight: 500; }
.metric span { color: rgba(255,255,255,.55); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; border: 1px solid rgba(42,60,47,.12); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
th { color: var(--olive); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.pill { display: inline-block; border-radius: 999px; padding: 6px 10px; background: var(--sand); font-size: 10px; font-weight: 700; }
.pill.attention { background: #f3ded7; color: var(--danger); }
.admin-section { margin-top: 38px; }
.admin-section h2 { font-size: 38px; }
.queue-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.queue-card { border-left: 4px solid var(--terra); }
.queue-card p { color: var(--olive); line-height: 1.6; white-space: pre-wrap; }
.content-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
.content-form .span-all { grid-column: 1 / -1; }
.check-row { display: flex; align-items: center; gap: 10px; }
.check-row input { width: 20px; height: 20px; accent-color: var(--terra); }

@media (max-width: 1050px) {
  .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .module-layout { grid-template-columns: 1fr; }
  .module-side { position: static; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .content-form { grid-template-columns: 1fr; }
  .content-form .span-all { grid-column: auto; }
}
@media (max-width: 760px) {
  .login-page { grid-template-columns: 1fr; }
  .login-story {
    min-height: auto;
    padding: 22px 20px;
    gap: 0;
  }
  .login-story .wordmark { font-size: 15px; }
  .login-copy, .login-story > p:last-child { display: none; }
  .login-form-wrap { padding: 26px 20px 42px; place-items: start center; }
  .login-card > .eyebrow { margin-bottom: 10px; }
  .login-card h2 { margin-bottom: 8px; font-size: 40px; }
  .login-card > .supporting { margin: 0; font-size: 14px; line-height: 1.55; }
  .access-tabs { margin-top: 20px; }
  .form-grid { margin-top: 22px; }
  .privacy-note { margin-top: 20px; padding-top: 18px; }
  .app-shell { display: block; }
  .sidebar {
    position: relative;
    height: auto;
    min-height: 86px;
    padding: 18px 92px 18px 18px;
  }
  .app-wordmark { font-size: 19px; }
  .sidebar-sub { margin: 5px 0 0; }
  .nav-list {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    bottom: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 7px max(6px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-right));
    border-top: 1px solid rgba(255,255,255,.12);
    background: var(--forest);
    box-shadow: 0 -12px 34px rgba(42,60,47,.15);
  }
  .nav-link {
    min-height: 48px;
    border-left: 0;
    border-top: 2px solid transparent;
    white-space: normal;
    padding: 8px 3px;
    text-align: center;
    font-size: 10px;
    line-height: 1.2;
  }
  .nav-link:hover, .nav-link.active { border-left-color: transparent; border-top-color: var(--terra); }
  .sidebar-bottom { position: absolute; top: 20px; right: 18px; margin-top: 0; padding-top: 0; border-top: 0; }
  .sidebar-bottom .user-name, .sidebar-bottom .user-email { display: none; }
  .main { padding: 26px 16px calc(92px + env(safe-area-inset-bottom)); }
  .topbar { margin-bottom: 32px; }
  .topbar-note { font-size: 12px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading h1 { font-size: clamp(40px, 12vw, 54px); }
  .page-heading p { font-size: 15px; line-height: 1.6; }
  .card { padding: 23px 20px; }
  .current-card h2 { font-size: 35px; }
  .card-actions, .form-actions { display: grid; grid-template-columns: 1fr; }
  .card-actions .button, .form-actions .button { width: 100%; }
  .lesson-placeholder { min-height: 230px; padding: 24px 18px; }
  .lesson-video { width: 100%; }
  .workbook-form { padding: 26px 18px; }
  .workbook-progress-copy { display: grid; gap: 5px; }
  .workbook-progress-copy span { white-space: normal; }
  .workbook-section summary { min-height: 68px; padding: 14px; font-size: 20px; }
  .workbook-prompts { padding: 20px 14px 24px; }
  .workbook-prompts textarea { min-height: 115px; }
  .workbook-save { position: static; margin-top: 18px; }
  .workbook-form blockquote { margin-bottom: 12px; font-size: 20px; }
  body:has(input:focus,textarea:focus,select:focus) .nav-list { display: none; }
  .week-focus { grid-template-columns: 1fr; gap: 7px; padding: 15px 16px; }
  .lesson-step-summary { grid-template-columns: 40px minmax(0,1fr); gap: 12px; min-height: 74px; padding: 12px 14px; }
  .lesson-step-number { width: 38px; height: 38px; }
  .lesson-step-state { grid-column: 2; width: max-content; margin-top: -5px; }
  .lesson-sequence-nav { grid-template-columns: 1fr; }
  .lesson-sequence-help { text-align: left; }
  .assessment-grid, .course-form { gap: 12px; }
  .assessment-domain { padding: 20px 16px; }
  .assessment-domain h3 { margin-bottom: 14px; font-size: 27px; }
  .course-form-intro .warning { margin-top: 16px; padding: 13px 14px; font-size: 12px; }
  .course-rating legend { font-size: 15px; line-height: 1.45; }
  .scale-options { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; }
  .scale-options label, .scale-options span { width: 100%; min-width: 0; }
  .scale-options span { min-height: 46px; padding: 6px; }
  .choice-options { display: grid; grid-template-columns: 1fr; }
  .choice-options span { min-height: 50px; padding: 12px; font-size: 13px; }
  .course-form textarea { min-height: 125px; }
  .form-ack { gap: 10px; font-size: 13px; }
  .progress-stats { grid-template-columns: 1fr 1fr; }
  .week-grid, .queue-grid { grid-template-columns: 1fr; }
  .week-card { min-height: 230px; width: 100%; text-align: left; }
  .rating-row { grid-template-columns: 1fr; }
  .rating-options { gap: 6px; }
  .rating-options label { width: 44px; min-height: 44px; }
  input, textarea, select { min-height: 48px; font-size: 16px; }
  textarea { min-height: 150px; }
  .button { min-height: 50px; }
  .table-wrap { margin: 0 -16px; border-right: 0; border-left: 0; }
}
@media (max-width: 480px) {
  .week-grid, .admin-metrics { grid-template-columns: 1fr; }
  .activity { grid-template-columns: 28px minmax(0,1fr); align-items: start; padding: 18px 16px; }
  .activity-check { margin-top: 2px; }
  .activity > .pill { grid-column: 2; width: max-content; max-width: 100%; margin-top: 10px; }
  .activity .button { grid-column: 2; }
  .dashboard-grid { gap: 16px; }
  .progress-ring { width: 128px; height: 128px; }
  .access-tabs { margin-top: 22px; }
  .access-tab { padding: 6px; font-size: 10px; letter-spacing: .06em; }
}
