:root {
  --ink: #102c34;
  --muted: #596d72;
  --teal: #075e62;
  --teal-bright: #0c807e;
  --teal-soft: #e5f3f0;
  --gold: #bf933c;
  --gold-soft: #f5ebd4;
  --ivory: #fbfaf5;
  --paper: #ffffff;
  --line: #d9e1de;
  --danger: #a83a2a;
  --success: #166746;
  --shadow: 0 20px 50px rgba(16, 44, 52, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Manrope, Arial, sans-serif;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; }
h1 { letter-spacing: -.045em; line-height: 1.06; }
h2 { letter-spacing: -.03em; line-height: 1.17; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.notice {
  padding: 12px 20px;
  background: var(--teal);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
}
.site-header {
  min-height: 78px;
  padding: 13px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header.minimal { justify-content: space-between; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.brand strong { font-size: 20px; letter-spacing: -.04em; }
.desktop-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.desktop-nav a { color: var(--muted); padding: 10px 0; }
.desktop-nav a:hover, .desktop-nav .active, .text-link:hover { color: var(--teal); }
.search-bar {
  margin-left: auto;
  width: min(370px, 32vw);
  height: 48px;
  display: flex;
  border: 1px solid #b8c8c4;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 16px;
  background: transparent;
}
.search-bar button {
  border: 0;
  padding: 0 17px;
  background: transparent;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.header-spacer { flex: 1; }
.text-link { color: var(--muted); font-size: 14px; font-weight: 650; }
.text-link.strong { color: var(--teal); }
.primary-link, .outline-link, button {
  border: 1px solid var(--teal);
  border-radius: 7px;
  padding: 13px 22px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--teal);
  color: #fff;
  font-weight: 720;
}
.primary-link:hover, button:hover { background: var(--teal-bright); border-color: var(--teal-bright); }
.primary-link.compact, .outline-link { padding: 11px 17px; font-size: 14px; }
.outline-link, .outline-button {
  background: #fff;
  border: 1px solid var(--teal);
  color: var(--teal);
}
.outline-link:hover, .outline-button:hover { background: var(--teal-soft); color: var(--teal); border-color: var(--teal); }
.primary-link.full { width: 100%; margin: 23px 0 26px; }
.eyebrow {
  color: var(--teal-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 17px;
}
.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.lead.narrow { max-width: 700px; }
.label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .15em;
  font-weight: 800;
  text-transform: uppercase;
}
.subtle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.error { color: var(--danger); font-size: 14px; line-height: 1.45; min-height: 20px; }
.empty-state {
  padding: 23px;
  border: 1px dashed #b9c9c6;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.home-hero {
  padding: clamp(54px, 7vw, 88px) clamp(20px, 7vw, 92px);
  display: grid;
  grid-template-columns: minmax(410px, 1.15fr) minmax(340px, .75fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: center;
  background: radial-gradient(circle at 88% 10%, rgba(191, 147, 60, .19), transparent 30%), linear-gradient(135deg, #fffdf7, var(--ivory));
}
.hero-copy h1 {
  max-width: 730px;
  font-size: clamp(44px, 5.2vw, 68px);
}
.hero-copy .lead { max-width: 670px; margin: 24px 0 32px; }
.hero-search {
  width: min(620px, 100%);
  padding: 7px;
  display: flex;
  background: var(--paper);
  border: 1px solid #b8c8c4;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(16, 44, 52, .06);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 16px;
  background: transparent;
}
.hero-board {
  padding: 29px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.evidence-line {
  margin: 24px 0 9px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 14px;
}
.badge {
  padding: 5px 10px;
  border-radius: 18px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
  text-transform: capitalize;
}
.badge.verified { background: var(--gold-soft); color: #76530c; }
.progress {
  height: 7px;
  border-radius: 10px;
  background: #e7eded;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal-bright);
}
.assessment-ticket {
  display: grid;
  gap: 7px;
  margin-top: 29px;
  padding: 18px;
  border-radius: 9px;
  background: #f5f8f6;
}
.assessment-ticket small, .assessment-ticket span { color: var(--muted); font-size: 12px; }
.category-band {
  padding: 18px clamp(20px, 7vw, 92px);
  background: var(--paper);
  border-block: 1px solid var(--line);
  display: flex;
  gap: clamp(17px, 4vw, 42px);
  overflow-x: auto;
  font-size: 14px;
  font-weight: 700;
}
.category-band a { white-space: nowrap; color: var(--muted); }
.category-band a:hover { color: var(--teal); }
.section { padding: clamp(52px, 6vw, 76px) clamp(20px, 7vw, 92px); }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); }
.section-head.split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
}
.section-head.centered { max-width: 690px; margin-inline: auto; text-align: center; }
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.course-tile {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.tile-cover {
  height: 126px;
  margin-bottom: 3px;
  padding: 18px;
  display: flex;
  align-items: end;
  background: linear-gradient(125deg, var(--teal), #123941);
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.course-tile h3 { font-size: 19px; line-height: 1.3; }
.tile-description { color: var(--muted); font-size: 13px; line-height: 1.5; min-height: 58px; }
.tile-trainer { color: var(--muted); font-size: 13px; }
.tile-facts { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.tile-facts strong { font-size: 17px; }
.tile-link { color: var(--teal); font-weight: 750; font-size: 14px; margin-top: 5px; }
.outcome-strip {
  padding: 45px clamp(20px, 7vw, 92px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  color: #fff;
  background: var(--ink);
}
.outcome-strip strong { display: block; margin-bottom: 9px; font-size: 18px; }
.outcome-strip p { color: #bdcecf; line-height: 1.55; font-size: 14px; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.audience-card {
  padding: clamp(30px, 4vw, 46px);
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.audience-card.dark { background: #edf6f4; }
.audience-card h2 { font-size: clamp(28px, 3vw, 37px); margin-bottom: 17px; }
.audience-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; margin-bottom: 29px; }

.teacher-hero {
  padding: clamp(58px, 8vw, 94px) clamp(20px, 7vw, 92px);
  display: grid;
  grid-template-columns: minmax(410px, 1fr) minmax(330px, .72fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  background: linear-gradient(135deg, #f4faf8, #fffdf7);
}
.teacher-hero h1 { font-size: clamp(43px, 5vw, 64px); }
.teacher-hero .lead { margin: 23px 0 34px; }
.studio-preview {
  padding: 30px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.studio-row {
  margin-top: 20px;
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.studio-row strong { color: var(--ink); }
.studio-row.highlight { margin-top: 25px; padding: 17px; border: 0; background: var(--gold-soft); border-radius: 8px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-grid article {
  min-height: 148px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.feature-grid h3 { margin-bottom: 11px; font-size: 19px; }
.feature-grid p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.core-section {
  padding: 0 clamp(20px, 7vw, 92px) clamp(56px, 7vw, 78px);
}
.core-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.core-flow article {
  padding: 24px;
  min-height: 220px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}
.core-flow span {
  color: #83d1c8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}
.core-flow h3 { margin: 24px 0 10px; font-size: 19px; }
.core-flow p { color: #bbcdce; font-size: 14px; line-height: 1.58; }
.security-boundary {
  margin-top: 17px;
  padding: 22px 25px;
  display: flex;
  align-items: start;
  gap: clamp(20px, 4vw, 42px);
  border: 1px solid #dfd2b2;
  border-radius: 10px;
  background: var(--gold-soft);
}
.security-boundary strong { color: #76530c; white-space: nowrap; }
.security-boundary p { color: #5e5744; font-size: 14px; line-height: 1.57; }
.callout {
  margin: 0 clamp(20px, 7vw, 92px) 72px;
  padding: clamp(30px, 5vw, 54px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
}
.callout .eyebrow { color: #8ad5cc; }
.callout h2 { max-width: 650px; font-size: clamp(28px, 3vw, 39px); }

.catalog-page { padding: 50px clamp(20px, 5vw, 66px) 72px; }
.page-heading { max-width: 920px; margin-bottom: 43px; }
.page-heading h1 { font-size: clamp(40px, 5vw, 58px); margin-bottom: 18px; }
.catalog-layout {
  display: grid;
  grid-template-columns: 210px minmax(370px, 1fr) minmax(295px, 360px);
  gap: 22px;
  align-items: start;
}
.filters, .detail-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.filters h2 { font: 750 17px/1.3 Manrope, sans-serif; margin-bottom: 19px; }
.filters label {
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.filters input { width: auto; accent-color: var(--teal); }
.filters p { margin-top: 21px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.course-list { display: grid; gap: 13px; }
.catalog-card {
  padding: 21px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.catalog-card h2 { font: 750 21px/1.3 Manrope, sans-serif; margin: 8px 0; }
.card-price { display: grid; justify-items: end; align-content: start; gap: 19px; }
.card-price strong { font-size: 20px; }
.outline-button { padding: 9px 13px; font-size: 13px; }
.detail-panel { position: sticky; top: 18px; }
.detail-panel h2 { font: 750 25px/1.27 Manrope, sans-serif; }
.detail-price { margin: 17px 0 9px; font-size: 26px; font-weight: 780; }
.detail-description { margin-top: 17px; color: var(--muted); font-size: 14px; line-height: 1.58; }
.syllabus { border-top: 1px solid var(--line); padding-top: 21px; }
.syllabus h3 { margin-bottom: 12px; font-size: 17px; }
.syllabus-row { padding: 12px 0; display: grid; gap: 5px; border-bottom: 1px solid var(--line); font-size: 13px; }
.syllabus-row span, .syllabus-row small { color: var(--muted); }

.auth-body { background: #f4f7f5; }
.auth-layout {
  min-height: calc(100vh - 78px);
  padding: clamp(42px, 7vw, 80px) clamp(20px, 10vw, 126px);
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: clamp(40px, 9vw, 120px);
  align-items: center;
}
.auth-promise h1 { max-width: 620px; font-size: clamp(39px, 4.4vw, 57px); }
.auth-promise .lead { margin: 25px 0 36px; max-width: 600px; }
.auth-list { display: grid; gap: 14px; }
.auth-list span { padding-left: 29px; position: relative; color: var(--muted); font-weight: 600; }
.auth-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 5px solid var(--teal);
  background: #fff;
}
.login-card {
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow);
}
.login-card h2 { margin-bottom: 7px; font-size: 34px; }
.form-stack { margin-top: 27px; display: grid; gap: 18px; }
.form-stack label, .form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
input, textarea, select {
  width: 100%;
  border: 1px solid #c2d0cc;
  border-radius: 7px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 83px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(12, 128, 126, .26); border-color: var(--teal-bright); }
.security-note {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.dashboard-body { background: #f5f7f5; }
.dashboard-header {
  height: 72px;
  padding: 10px clamp(18px, 3vw, 34px);
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.dashboard-header .brand img { width: 45px; height: 45px; }
.portal-label {
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
}
.portal-label.teacher { background: var(--gold-soft); color: #79580e; }
.session-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; font-weight: 650; }
.ghost {
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
}
.ghost:hover { background: #edf3f1; color: var(--ink); border-color: var(--line); }
.dashboard-shell { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 215px 1fr; }
.dashboard-nav {
  padding: 29px 16px;
  display: grid;
  align-content: start;
  gap: 6px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.dashboard-nav a {
  padding: 12px 13px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.dashboard-nav a:hover, .dashboard-nav a.selected { color: var(--teal); background: var(--teal-soft); }
.dashboard-main { padding: 37px clamp(20px, 4vw, 45px) 50px; min-width: 0; }
.dashboard-main.standalone { max-width: 1080px; margin: auto; display: grid; gap: 22px; }
.dashboard-title {
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.dashboard-title h1, .dashboard-main.standalone h1 { font-size: clamp(31px, 4vw, 41px); }
.dashboard-message {
  min-height: 0;
  margin-bottom: 17px;
  padding: 0;
  font-size: 14px;
}
.dashboard-message.success, .dashboard-message.failed {
  padding: 12px 15px;
  border-radius: 7px;
}
.dashboard-message.success { color: var(--success); background: #e7f5ed; }
.dashboard-message.failed { color: var(--danger); background: #fff0ec; }
.stat-grid {
  margin-bottom: 23px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}
.stat-card {
  padding: 18px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.stat-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-card strong { font-size: 26px; }
.dashboard-columns {
  display: grid;
  grid-template-columns: 1.15fr .86fr;
  gap: 16px;
  align-items: start;
}
.panel {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.panel.wide { grid-column: 1; grid-row: span 2; }
.panel-head { margin-bottom: 18px; }
.panel-head h2, .panel > h2 { font: 750 20px/1.3 Manrope, sans-serif; }
.dashboard-record {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.dashboard-record:last-child { border-bottom: 0; padding-bottom: 0; }
.dashboard-record h3 { font-size: 15px; margin-bottom: 5px; }
.record-row, .record-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.record-actions { justify-content: start; margin-top: 12px; }
.text-button {
  padding: 9px 11px;
  background: transparent;
  border-color: transparent;
  color: var(--teal);
  font-size: 13px;
}
.text-button:hover { background: var(--teal-soft); border-color: transparent; color: var(--teal); }
.compact-record button { margin-top: 12px; }
.timeline-item {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-item span { color: var(--muted); font-size: 13px; }
.learning-detail, .attempt-form {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.action-record, .lab-record {
  padding: 13px;
  display: grid;
  gap: 9px;
  border-radius: 7px;
  background: #f5f8f6;
  font-size: 13px;
}
.action-record span, .lab-record span { color: var(--muted); }
.action-record button, .lab-record button { width: max-content; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; margin-top: 9px; }
.question-block {
  margin: 0;
  padding: 13px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.question-block legend { font-size: 14px; font-weight: 650; padding: 0 7px; }
.answer-option { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.answer-option input { width: auto; }
.teacher-columns { grid-template-columns: 1fr 1fr; }
.workflow-list { display: grid; gap: 12px; }
.workflow-list span {
  padding: 12px 12px 12px 36px;
  position: relative;
  border-radius: 6px;
  background: #f5f8f6;
  font-size: 14px;
  font-weight: 650;
}
.workflow-list span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.form-panel .form-stack { margin-top: 0; }
.compact-form button { margin-top: 3px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid button { align-self: end; }
.studio-picker {
  margin-bottom: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.studio-summary {
  margin-bottom: 22px;
  display: grid;
  gap: 7px;
}
.media-library {
  margin-bottom: 22px;
  display: grid;
  gap: 9px;
}
.media-library h3 { margin-bottom: 4px; font-size: 17px; }
.media-line {
  padding: 12px 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.media-line strong { display: block; margin-bottom: 5px; font-size: 13px; }
.media-line span { color: var(--muted); font-size: 12px; }
.media-controls { display: flex; align-items: center; gap: 10px; }
.media-controls .badge { color: var(--teal); }
.upload-progress {
  width: 100%;
  height: 10px;
  accent-color: var(--teal);
}
.topic-line {
  padding: 11px 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: #f5f8f6;
  border-radius: 7px;
  font-size: 13px;
}
.topic-line span { color: var(--muted); }
.content-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.content-forms .form-stack {
  margin-top: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.content-forms h3 { font-size: 17px; }

.site-footer {
  padding: 28px clamp(20px, 7vw, 92px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
}
.site-footer nav { display: flex; gap: 23px; font-weight: 650; }
.footer-brand img { width: 38px; height: 38px; }
.site-footer.simple a { color: var(--teal); font-weight: 700; }

@media (max-width: 1150px) {
  .header-actions .text-link { display: none; }
  .home-hero, .teacher-hero { grid-template-columns: 1fr; }
  .hero-board, .studio-preview { max-width: 560px; }
  .catalog-layout { grid-template-columns: minmax(350px, 1fr) minmax(290px, 350px); }
  .filters { display: none; }
}
@media (max-width: 880px) {
  .site-header { flex-wrap: wrap; }
  .desktop-nav { display: none; }
  .search-bar { order: 4; width: 100%; margin-left: 0; }
  .outcome-strip, .feature-grid, .audience-grid, .core-flow { grid-template-columns: 1fr 1fr; }
  .catalog-layout, .auth-layout, .dashboard-shell, .dashboard-columns, .teacher-columns, .content-forms { display: block; }
  .detail-panel { position: static; margin-top: 18px; }
  .dashboard-nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 18px; }
  .panel { margin-bottom: 16px; }
  .content-forms .form-stack { margin-bottom: 16px; }
}
@media (max-width: 580px) {
  .notice { font-size: 12px; }
  .brand strong { font-size: 18px; }
  .brand img { width: 42px; height: 42px; }
  .header-actions .outline-link { display: none; }
  .hero-copy h1, .teacher-hero h1 { font-size: 39px; }
  .hero-search { display: grid; gap: 8px; }
  .hero-search input { height: 46px; }
  .outcome-strip, .feature-grid, .audience-grid, .core-flow { grid-template-columns: 1fr; }
  .section-head.split, .callout, .dashboard-title, .record-row { display: block; }
  .callout .primary-link, .dashboard-title .outline-link { margin-top: 22px; }
  .catalog-card { grid-template-columns: 1fr; }
  .card-price { justify-items: start; }
  .form-grid { grid-template-columns: 1fr; }
  .security-boundary { display: block; }
  .security-boundary p { margin-top: 10px; }
  .site-footer { display: grid; }
}
