:root {
  --ink: #17202a;
  --muted: #5f6b7a;
  --line: #d9dee7;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --accent: #0894b2;
  --accent-dark: #06758d;
  --navy: #05080c;
  --teal-soft: #e6f7fb;
  --gold: #b7791f;
  --blue: #2563eb;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.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;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.app-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}

.app-top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 28px;
  background: rgba(5, 8, 12, 0.97);
  border-bottom: 1px solid rgba(8, 148, 178, 0.36);
  box-shadow: 0 14px 34px rgba(5, 8, 12, 0.2);
}

.app-top-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.app-top-brand img {
  width: auto;
  height: 64px;
  display: block;
}

.app-top-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.app-top-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #f2f7fa;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-group {
  position: relative;
}

.nav-group summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #f2f7fa;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "v";
  font-size: 10px;
  line-height: 1;
  opacity: 0.78;
}

.nav-group[open] summary::after {
  transform: rotate(180deg);
}

.nav-group.active summary,
.nav-group[open] summary,
.nav-group summary:hover {
  border-color: rgba(8, 148, 178, 0.9);
  background: rgba(8, 148, 178, 0.24);
  color: #ffffff;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  min-width: 236px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(8, 148, 178, 0.28);
  border-radius: 8px;
  background: rgba(5, 8, 12, 0.98);
  box-shadow: 0 20px 44px rgba(5, 8, 12, 0.28);
}

.nav-group:not([open]) .nav-menu {
  display: none;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  display: grid;
}

.app-top-links .nav-menu a {
  min-height: 40px;
  justify-content: flex-start;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f7fbfd;
  text-align: left;
  white-space: normal;
}

.app-top-links .nav-menu a:hover,
.app-top-links .nav-menu a.active {
  border-color: rgba(8, 148, 178, 0.9);
  background: rgba(8, 148, 178, 0.28);
  color: #ffffff;
}

.app-top-links a:hover,
.app-top-links a.active {
  border-color: rgba(8, 148, 178, 0.9);
  background: rgba(8, 148, 178, 0.24);
  color: #ffffff;
}

.portal-user {
  position: relative;
  flex: 0 0 auto;
}

.portal-login-link,
.portal-user-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(242, 184, 75, 0.7);
  border-radius: 6px;
  background: rgba(242, 184, 75, 0.14);
  color: #fff7df;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.landing-nav .portal-login-link,
.landing-nav .portal-user-button {
  color: #fff7df;
}

.portal-user-button span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f2b84b;
  color: #071014;
  font-size: 11px;
}

.portal-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  width: 260px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.portal-user-menu p {
  margin: 0 0 10px;
  display: grid;
  gap: 3px;
}

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

.portal-user-menu button {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.access-denied-shell {
  display: block;
  min-height: calc(100vh - 76px);
}

.access-denied-panel {
  width: min(760px, calc(100% - 48px));
  margin: 72px auto;
  padding: 28px;
  border: 1px solid rgba(180, 35, 24, 0.24);
  border-left: 5px solid var(--danger);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.access-denied-panel h2 {
  margin: 4px 0 10px;
  font-size: 28px;
  line-height: 1.15;
}

.access-denied-panel p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.sidebar {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  padding: 24px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #05080c, #0894b2);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 8px;
}

.brand h1,
.topbar h2,
.payload-panel h3,
.map-panel h3,
.intake-panel h3 {
  margin: 0;
}

.brand h1 {
  font-size: 18px;
  line-height: 1.15;
}

.brand p,
.payload-panel p,
.map-panel p,
.intake-panel p,
.source-box span,
.eyebrow,
.status-label {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.select,
input {
  min-height: 42px;
  padding: 0 12px;
}

.status-panel,
.source-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}

.setup-step-nav {
  display: grid;
  gap: 8px;
}

.setup-step-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.setup-step-nav a:hover {
  border-color: rgba(8, 148, 178, 0.42);
  background: var(--teal-soft);
}

.utility-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.utility-hero {
  margin-bottom: 24px;
}

.utility-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
}

.utility-hero p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.portal-login-body {
  min-height: 100vh;
  background: #030507;
}

.portal-login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 0.72fr);
}

.portal-login-brand {
  position: relative;
  display: grid;
  align-content: center;
  padding: 56px;
  overflow: hidden;
  color: #fff;
}

.portal-login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(8, 148, 178, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(3, 5, 7, 0.92), rgba(3, 5, 7, 0.7));
  pointer-events: none;
}

.portal-login-brand > * {
  position: relative;
  z-index: 1;
}

.portal-login-brand img {
  width: 420px;
  max-width: 100%;
  height: auto;
  display: block;
}

.portal-login-brand .portal-brand-logo {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 42px;
}

.portal-login-brand .eyebrow {
  color: #f2b84b;
  font-weight: 900;
}

.portal-login-brand h1 {
  max-width: 680px;
  margin: 10px 0 16px;
  color: #fff;
  font-size: 54px;
  line-height: 1.04;
}

.portal-login-brand p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgba(241, 247, 250, 0.84);
  font-size: 18px;
  line-height: 1.55;
}

.portal-login-card {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 56px;
  background: #f5f7fa;
}

.portal-login-card h2 {
  margin: 6px 0 0;
  font-size: 32px;
  line-height: 1.14;
}

.portal-login-form {
  display: grid;
  gap: 12px;
}

.portal-login-form[hidden] {
  display: none;
}

.auth-panel-heading h3,
.auth-panel-heading p {
  margin: 0;
}

.auth-panel-heading h3 {
  font-size: 22px;
}

.auth-panel-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.forgot-password-link,
.auth-secondary-action {
  width: max-content;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.forgot-password-link {
  justify-self: end;
  margin-top: -6px;
  font-size: 13px;
}

.auth-secondary-action {
  justify-self: center;
}

.auth-mode-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.auth-mode-toggle legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-mode-toggle label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  color: var(--ink);
}

.auth-mode-toggle input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.verification-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(8, 148, 178, 0.32);
  border-radius: 8px;
  background: #e6f7fb;
  box-shadow: 0 10px 24px rgba(7, 76, 97, 0.1);
}

.verification-notice[hidden] {
  display: none;
}

.verification-notice strong,
.verification-notice p {
  display: block;
  margin: 0;
}

.verification-notice strong {
  color: var(--ink);
}

.verification-notice p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.verification-notice button {
  flex: 0 0 auto;
  border: 1px solid rgba(8, 148, 178, 0.3);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 900;
  cursor: pointer;
}

.portal-login-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.portal-login-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.portal-login-form .button {
  margin-top: 4px;
}

.login-status {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(8, 148, 178, 0.22);
  border-radius: 8px;
  background: #e6f7fb;
}

.login-status span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.refresh-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.refresh-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.refresh-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 62px 120px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.refresh-row span {
  font-weight: 800;
}

.refresh-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.refresh-row a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.refresh-row em.ok {
  color: #067647;
}

.refresh-row em.warn {
  color: var(--gold);
}

.refresh-row em.error {
  color: var(--danger);
}

.refresh-status {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.refresh-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.refresh-summary-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.refresh-summary-grid strong,
.refresh-summary-grid span,
.refresh-summary-grid em {
  display: block;
}

.refresh-summary-grid span,
.refresh-summary-grid em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.refresh-summary-grid progress {
  width: 100%;
  margin-top: 10px;
}

.manual-refresh-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.manual-refresh-grid textarea {
  min-height: 220px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.status-panel div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

progress {
  width: 100%;
  height: 10px;
  accent-color: var(--accent);
}

.quarter-nav {
  display: grid;
  gap: 8px;
}

.quarter-nav button,
.quarter-nav a {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  text-align: left;
  padding: 0 12px;
  color: var(--ink);
  cursor: pointer;
}

.quarter-nav a {
  display: flex;
  align-items: center;
}

.quarter-nav button.locked {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.08);
}

.source-box {
  margin-top: auto;
  display: grid;
  gap: 6px;
}

a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.main {
  min-width: 0;
  padding: 30px;
}

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

.topbar h2 {
  font-size: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

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

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.selector-source {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.selector-source div {
  display: grid;
  gap: 2px;
}

.selector-source span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.selector-source strong {
  font-size: 14px;
}

.selector-source p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.active-class-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(240px, 0.8fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.06);
}

.active-class-panel > * {
  min-width: 0;
}

.active-class-panel span,
.active-class-panel label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.active-class-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.25;
}

.active-class-panel label {
  display: grid;
  gap: 6px;
}

.active-class-panel select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.active-class-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.step {
  min-height: 64px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf2f7;
  font-weight: 800;
}

.step.active span {
  background: var(--accent);
  color: #fff;
}

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

.unit-card,
.map-panel,
.intake-panel,
.map-upload-panel,
.map-review-panel,
.map-refresh-panel,
.class-assignment-panel,
.admin-controls-panel,
.admin-preview-panel,
.materials-controls-panel,
.materials-preview-panel,
.payload-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.unit-card {
  display: flex;
  flex-direction: column;
  min-height: 620px;
}

.unit-card.locked {
  border-color: rgba(15, 118, 110, 0.55);
}

.map-panel {
  margin-bottom: 18px;
  padding: 18px;
}

.intake-panel {
  margin-bottom: 18px;
  padding: 18px;
}

.map-upload-panel,
.map-review-panel,
.admin-controls-panel,
.admin-preview-panel,
.materials-controls-panel,
.materials-preview-panel,
.daily-builder-panel,
.support-controls-panel,
.support-notes-panel,
.support-profile-panel,
.support-report-panel,
.support-bank-panel {
  margin-bottom: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-refresh-panel {
  border-color: rgba(183, 121, 31, 0.32);
  background: #fff8e7;
}

.map-refresh-panel .panel-header {
  margin-bottom: 14px;
}

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

.refresh-workflow div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 10px;
  padding: 12px;
  border: 1px solid rgba(183, 121, 31, 0.24);
  border-radius: 8px;
  background: #fff;
}

.refresh-workflow span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  grid-row: span 2;
  border-radius: 999px;
  background: #f2b84b;
  color: #071014;
  font-weight: 900;
}

.refresh-workflow strong {
  align-self: end;
  font-size: 14px;
  line-height: 1.25;
}

.refresh-workflow p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.admin-refresh-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(183, 121, 31, 0.32);
  border-radius: 8px;
  background: #fff8e7;
}

.admin-refresh-note h3 {
  margin: 5px 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.admin-refresh-note p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.class-assignment-panel {
  border-color: rgba(8, 148, 178, 0.26);
  background: #f0fbfd;
}

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

.setup-checklist label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(8, 148, 178, 0.22);
  border-radius: 8px;
  background: #fff;
}

.setup-checklist input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.setup-checklist strong,
.setup-checklist em {
  display: block;
}

.setup-checklist strong {
  font-size: 14px;
}

.setup-checklist em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

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

.class-assignment-grid div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.class-assignment-grid strong {
  display: block;
  margin-bottom: 5px;
}

.class-assignment-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.batch-print-center {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(8, 148, 178, 0.28);
  border-radius: 8px;
  background: #f0fbfd;
}

.batch-print-center .panel-header {
  margin-bottom: 12px;
}

.batch-print-center h3 {
  margin: 5px 0 6px;
  font-size: 20px;
  line-height: 1.2;
}

.batch-print-center p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.batch-print-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 0.8fr;
  gap: 10px;
}

.batch-print-grid section {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(8, 148, 178, 0.2);
  border-radius: 8px;
  background: #fff;
}

.batch-print-grid h4 {
  margin: 0 0 3px;
  font-size: 14px;
}

.batch-print-grid label {
  display: flex;
  gap: 8px;
  align-items: start;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.batch-print-grid input {
  width: 16px;
  min-height: 16px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.batch-print-grid p {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
  font-size: 13px;
  font-weight: 800;
}

.batch-document-center {
  margin-bottom: 12px;
}

.batch-status-grid,
.batch-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.batch-status-grid article,
.batch-preview-grid article {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.batch-status-grid span,
.batch-preview-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.batch-status-grid strong,
.batch-preview-grid strong {
  font-size: 18px;
  line-height: 1.2;
}

.batch-status-grid p,
.batch-preview-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.regen-queue-panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.recent-batch-panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.recent-batch-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fbfcfe;
}

.recent-batch-item.draft {
  border-left-color: var(--gold);
}

.recent-batch-item strong,
.recent-batch-item span,
.recent-batch-item em {
  display: block;
}

.recent-batch-item span,
.recent-batch-item em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.recent-batch-item > div:last-child {
  text-align: right;
}

.regen-item em {
  justify-self: end;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.regen-item.blocked em {
  border-color: rgba(183, 121, 31, 0.32);
  color: #8a5a16;
}

.regen-item.ready em {
  border-color: rgba(6, 118, 71, 0.28);
  color: #067647;
}

.batch-preview-summary {
  border-left: 5px solid var(--accent);
}

.batch-history-row {
  border-left: 5px solid var(--accent);
}

.unit-head {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.unit-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.badge {
  align-self: flex-start;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  background: #edf2f7;
  color: var(--muted);
  white-space: nowrap;
}

.badge.locked {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-dark);
}

.unit-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.choice-block {
  border-left: 3px solid var(--line);
  padding-left: 12px;
}

.choice-block h4 {
  margin: 0 0 7px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
}

.choice-block p {
  margin: 0;
  line-height: 1.45;
}

.helper-text {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px !important;
}

.standards-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.standard-option {
  min-height: 34px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.standard-option.recommended {
  border-color: rgba(15, 118, 110, 0.4);
  background: rgba(15, 118, 110, 0.06);
}

.standard-option input {
  width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--accent);
}

.standard-option span {
  min-width: 0;
}

.standard-option em {
  color: var(--accent-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.paired-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.select-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.select-field select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
}

.muted-block {
  color: var(--muted);
}

.formative-choice-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.06);
}

.formative-choice-summary strong {
  font-size: 14px;
}

.formative-choice-summary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.formative-choice-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.formative-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.formative-choice.recommended {
  border-color: rgba(15, 118, 110, 0.32);
  background: rgba(15, 118, 110, 0.05);
}

.formative-choice input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.formative-choice span,
.formative-choice strong,
.formative-choice em {
  display: block;
}

.formative-choice strong {
  font-size: 13px;
  line-height: 1.25;
}

.formative-choice em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.formative-choice small {
  min-width: 54px;
  text-align: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.formative-choice.recommended small {
  background: rgba(15, 118, 110, 0.14);
  color: var(--accent-dark);
}

.formative-summary {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.formative-summary strong {
  font-size: 14px;
}

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

.formative-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.formative-list li {
  line-height: 1.35;
}

.formative-list strong,
.formative-list span {
  display: block;
}

.formative-list strong {
  font-size: 13px;
}

.formative-list span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.standards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  background: #fbfcfe;
}

.unit-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.payload-panel {
  margin-top: 18px;
  padding: 18px;
}

.url-status {
  display: block;
  margin-top: 6px;
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

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

.unit-recommender {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.recommender-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.recommender-head h3 {
  margin: 2px 0 4px;
  font-size: 18px;
}

.recommender-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.recommendation-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.recommendation-topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.recommendation-topline strong {
  color: var(--teal-700);
}

.recommendation-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.25;
}

.recommendation-card p {
  min-height: 36px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.recommendation-card dl {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
}

.recommendation-card dt {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.recommendation-card dd {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.recommendation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recommendation-tags span {
  padding: 4px 7px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.07);
  color: var(--teal-800);
  font-size: 11px;
  line-height: 1.2;
}

.map-student {
  min-height: 62px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.map-student.priority {
  border-color: rgba(180, 35, 24, 0.35);
  background: rgba(180, 35, 24, 0.04);
}

.map-student.strategic {
  border-color: rgba(183, 121, 31, 0.35);
  background: rgba(183, 121, 31, 0.05);
}

.map-student.extension {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.05);
}

.map-student input {
  width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--accent);
}

.map-student span,
.map-student strong,
.map-student em {
  min-width: 0;
}

.map-student span {
  display: grid;
  gap: 2px;
}

.map-student strong {
  font-size: 13px;
}

.map-student em,
.map-student small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.map-student small {
  white-space: nowrap;
}

.teacher-intake-form {
  display: grid;
  gap: 14px;
}

.intake-form-grid,
.intake-columns {
  display: grid;
  gap: 12px;
}

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

.wide-form-field {
  grid-column: span 2;
}

.custom-unit-fields {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
}

.custom-unit-fields[hidden] {
  display: none;
}

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

.teacher-intake-form label,
.intake-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.teacher-intake-form textarea {
  min-height: 92px;
}

.intake-repeaters {
  display: grid;
  gap: 12px;
}

.intake-repeaters section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.repeater-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.repeater-head h4 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.repeater-head .button,
.intake-actions .button {
  min-height: 36px;
  padding: 0 12px;
}

.repeater-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.repeater-rows {
  display: grid;
  gap: 10px;
}

.repeater-row {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(160px, 1fr) minmax(130px, 0.8fr) minmax(170px, 1fr) 34px;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.repeater-row.pacing-row {
  grid-template-columns: 84px minmax(170px, 0.8fr) repeat(3, minmax(180px, 1fr)) 34px;
}

.repeater-row label.wide {
  grid-column: span 2;
}

.repeater-row.pacing-row label.wide {
  grid-column: span 1;
}

.repeater-row textarea {
  min-height: 74px;
}

.icon-button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.intake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intake-import {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.intake-import summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.intake-tools {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(220px, 0.4fr);
  gap: 14px;
  align-items: start;
  margin-top: 10px;
}

#intakeInput {
  min-height: 150px;
}

.intake-review {
  margin-top: 14px;
}

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

.intake-summary div,
.intake-review-grid section,
.route-list div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
}

.intake-summary div {
  min-height: 72px;
  padding: 10px;
  display: grid;
  gap: 4px;
  align-content: start;
}

.intake-summary span,
.route-list span,
.muted-line {
  color: var(--muted);
  font-size: 12px;
}

.compact-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
}

.compact-list li {
  line-height: 1.3;
}

.intake-summary strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
}

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

.intake-review-grid section {
  padding: 12px;
}

.intake-review-grid h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
}

.intake-review-grid p {
  margin: 0;
  line-height: 1.45;
}

.intake-issues {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.intake-issues li {
  line-height: 1.35;
  font-size: 13px;
}

.intake-issues li.error {
  color: var(--danger);
  font-weight: 800;
}

.intake-issues li.warn {
  color: var(--gold);
  font-weight: 800;
}

.route-list {
  display: grid;
  gap: 7px;
}

.route-list div {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
}

.route-list strong {
  font-size: 13px;
}

.quality-gate {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.quality-gate.blocked {
  border-color: rgba(183, 103, 60, 0.32);
  background: rgba(183, 103, 60, 0.06);
}

.quality-gate.watch {
  border-color: rgba(176, 124, 49, 0.32);
  background: rgba(176, 124, 49, 0.06);
}

.quality-gate.clear {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.05);
}

.quality-gate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.quality-gate-head h4 {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--ink);
}

.quality-gate-head strong {
  font-size: 28px;
  color: var(--ink);
}

.quality-flag-list {
  display: grid;
  gap: 10px;
}

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

.quality-flag.error {
  border-color: rgba(183, 103, 60, 0.34);
}

.quality-flag.warn {
  border-color: rgba(176, 124, 49, 0.34);
}

.quality-flag span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.quality-flag strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.quality-flag p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.sync-queue-list {
  gap: 10px;
}

.sync-queue-list .sync-queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px 12px;
}

.sync-queue-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.sync-receipt-list {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.sync-queue-item a,
.sync-queue-item button {
  justify-self: start;
}

.sync-queue-item.synced {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.06);
}

.sync-queue-item.failed,
.sync-queue-item.needs-url {
  border-color: rgba(183, 103, 60, 0.28);
  background: rgba(183, 103, 60, 0.08);
}

.map-upload-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(240px, 0.45fr);
  gap: 14px;
  align-items: stretch;
}

.file-drop {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 22px;
  border: 2px dashed rgba(15, 118, 110, 0.35);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.04);
  text-align: center;
  color: var(--muted);
  cursor: pointer;
}

.file-drop strong {
  color: var(--ink);
  font-size: 18px;
}

.file-drop input {
  max-width: 320px;
}

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

.map-options label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.map-options select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
}

.map-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.map-summary-grid div {
  min-height: 76px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
}

.map-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.map-summary-grid strong {
  font-size: 18px;
  line-height: 1.2;
}

.map-warnings {
  margin-top: 12px;
}

.map-student-table {
  max-height: 640px;
  overflow: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.map-student-table:empty {
  display: none;
}

.map-student-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.map-student-table th,
.map-student-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.map-student-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.map-student-table small {
  color: var(--muted);
}

.map-student-name-review {
  display: grid;
  gap: 4px;
  min-width: 190px;
}

.map-student-name-review input {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-weight: 700;
}

.map-student-name-review input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(0, 146, 174, 0.18);
}

.band {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  background: #edf2f7;
  color: var(--muted);
}

.band.priority {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.band.strategic {
  background: rgba(183, 121, 31, 0.14);
  color: var(--gold);
}

.band.extension {
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue);
}

.band.on-track {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-dark);
}

.admin-doc-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-doc-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  cursor: pointer;
}

.admin-doc-option input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.admin-doc-option span,
.admin-doc-option strong,
.admin-doc-option em {
  display: block;
}

.admin-doc-option strong {
  font-size: 14px;
}

.admin-doc-option em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.admin-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 12px;
  margin-top: 14px;
}

.admin-settings label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-settings select,
.admin-settings input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
}

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

.admin-doc {
  display: grid;
  gap: 14px;
}

.admin-doc h3 {
  margin: 0;
  font-size: 22px;
}

.admin-doc article {
  display: grid;
  gap: 10px;
  page-break-inside: avoid;
}

.admin-doc h4 {
  margin: 0;
  font-size: 16px;
}

.admin-doc table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 12px;
}

.admin-doc th,
.admin-doc td {
  padding: 9px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-doc th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.admin-doc small {
  color: var(--muted);
}

.admin-doc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

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

.daily-builder-grid,
.materials-control-grid label {
  display: grid;
}

.daily-builder-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.daily-builder-grid label,
.materials-control-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.daily-builder-grid select,
.materials-control-grid select,
.materials-control-grid input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
}

.daily-lesson-doc {
  display: grid;
  gap: 14px;
  color: var(--ink);
}

.daily-lesson-cover {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.daily-lesson-cover h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.daily-lesson-cover p {
  margin: 6px 0 0;
  color: var(--muted);
}

.daily-lesson-cover div:last-child {
  min-width: 150px;
  display: grid;
  gap: 4px;
  align-content: start;
  text-align: right;
}

.daily-lesson-cover strong {
  font-size: 16px;
}

.daily-lesson-cover span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.daily-lesson-overview,
.daily-lesson-grid,
.daily-differentiation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.daily-lesson-section,
.daily-lesson-overview section,
.daily-lesson-grid > div,
.daily-differentiation-grid > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.daily-lesson-section h4,
.daily-lesson-overview h4,
.daily-lesson-grid h4,
.daily-differentiation-grid strong {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-lesson-doc p,
.daily-lesson-doc li,
.daily-lesson-doc span {
  line-height: 1.45;
}

.daily-lesson-doc [contenteditable="true"] {
  outline: 0;
  border-radius: 6px;
}

.daily-lesson-doc [contenteditable="true"]:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
  background: #f8fbff;
}

.daily-agenda {
  display: grid;
  gap: 8px;
}

.daily-text-targets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.daily-pacing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.daily-pacing-grid div {
  min-height: 104px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
}

.daily-pacing-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-pacing-grid p {
  margin: 0;
}

.daily-text-targets div {
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
  line-height: 1.4;
}

.daily-guiding-question {
  margin: 0;
  padding: 10px;
  border-left: 4px solid var(--teal);
  background: #f7f9fb;
  font-weight: 700;
}

.daily-agenda div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
}

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

.daily-notes-box {
  min-height: 76px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #fbfcfe;
}

.materials-control-grid .wide-control {
  grid-column: 1 / -1;
}

.support-control-grid,
.support-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.support-control-grid label,
.support-notes-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.support-control-grid select,
.support-notes-grid textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.support-control-grid select {
  padding: 0 10px;
}

.support-notes-grid textarea {
  min-height: 110px;
  padding: 10px;
}

.support-summary-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.support-summary-cards div {
  min-height: 92px;
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.support-summary-cards span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.support-summary-cards strong {
  font-size: 22px;
}

.support-summary-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.support-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.support-profile-head h3 {
  margin: 0;
  font-size: 24px;
}

.support-profile-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.support-profile-grid section {
  min-height: 118px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.support-profile-grid h4,
.support-move-card h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
}

.support-profile-grid p {
  margin: 0 0 8px;
  line-height: 1.45;
}

.support-student-report {
  display: grid;
  gap: 12px;
}

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

.student-report-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.student-report-card h4 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.student-report-list {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
}

.student-report-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.student-report-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.student-action-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.support-table-wrap {
  overflow-x: auto;
}

.support-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.4;
}

.support-report-table th,
.support-report-table td {
  vertical-align: top;
  padding: 8px;
  border: 1px solid var(--line);
  text-align: left;
}

.support-report-table th {
  color: var(--muted);
  background: #f7f9fb;
  font-size: 11px;
  text-transform: uppercase;
}

.support-moves-bank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.support-move-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.support-move-card h4 {
  margin-top: 8px;
  color: var(--ink);
  text-transform: none;
  font-size: 16px;
}

.support-move-card dl {
  margin: 0;
  display: grid;
  gap: 6px;
}

.support-move-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-move-card dd {
  margin: 0 0 4px;
  line-height: 1.4;
}

.landing-body {
  background: #f4f6f8;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.landing-brand span:last-child {
  display: grid;
  gap: 2px;
}

.landing-brand strong {
  font-size: 17px;
}

.landing-brand em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.landing-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-nav nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.landing-nav .nav-group summary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.landing-nav .nav-group.active summary,
.landing-nav .nav-group[open] summary,
.landing-nav .nav-group summary:hover {
  border-color: rgba(8, 148, 178, 0.7);
  background: rgba(8, 148, 178, 0.1);
  color: #042f3a;
}

.landing-nav .nav-menu {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.landing-nav .nav-menu a {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.landing-nav .nav-menu a:hover,
.landing-nav .nav-menu a.active {
  border-color: rgba(8, 148, 178, 0.7);
  background: rgba(8, 148, 178, 0.1);
  color: #042f3a;
}

.landing-hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: flex-end;
  padding: 44px 28px;
  background-image: url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.landing-hero-overlay {
  width: min(980px, 100%);
  padding: 36px 0 24px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.landing-hero-overlay .eyebrow {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.landing-hero h1 {
  max-width: 900px;
  margin: 10px 0 16px;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}

.landing-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  text-shadow: none;
}

.landing-hero-actions .button {
  display: inline-flex;
  align-items: center;
}

.landing-hero-actions .button.secondary {
  background: rgba(255, 255, 255, 0.94);
}

.landing-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.landing-strip div {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 20px 28px;
  background: #fff;
}

.landing-strip strong {
  font-size: 28px;
}

.landing-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.landing-section {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 56px 0;
}

.landing-two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.landing-two-column > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.landing-section-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.landing-section h2 {
  margin: 6px 0 10px;
  font-size: 34px;
  line-height: 1.12;
}

.landing-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.landing-entry-grid,
.landing-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-entry,
.landing-benefit-grid article {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.landing-entry.primary-entry {
  background: #102a43;
  color: #fff;
}

.landing-entry span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.landing-entry.primary-entry span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.landing-entry h3,
.landing-benefit-grid h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.landing-entry p,
.landing-benefit-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.landing-entry.primary-entry p {
  color: rgba(255, 255, 255, 0.82);
}

.landing-benefits {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.landing-differentiation {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(260px, 0.55fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.privacy-note {
  margin-top: 14px !important;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: #fff;
  color: var(--ink) !important;
  font-size: 14px !important;
}

.landing-check-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.landing-check-list li {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  line-height: 1.35;
}

.landing-workflow {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.landing-workflow ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.landing-workflow li {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
  line-height: 1.45;
}

.landing-footer {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto 42px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  line-height: 1.5;
}

.landing-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.landing-footer p {
  margin: 0;
}

.aligned-home {
  background: #f5f7fa;
}

.aligned-nav {
  background: rgba(5, 8, 12, 0.96);
  border-bottom-color: rgba(14, 165, 190, 0.28);
}

.aligned-brand img {
  width: auto;
  height: 96px;
  display: block;
}

.aligned-nav nav a {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #eef7fb;
}

.aligned-nav nav a:hover {
  border-color: rgba(11, 166, 190, 0.72);
  background: rgba(11, 166, 190, 0.14);
}

.aligned-nav nav a.start-here-link {
  border-color: rgba(242, 184, 75, 0.72);
  background: rgba(242, 184, 75, 0.16);
  color: #fff7df;
}

.aligned-hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 72px 28px;
  background: #030507;
  color: #fff;
}

.aligned-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 7, 0.58);
  pointer-events: none;
  z-index: 1;
}

.aligned-hero-copy {
  position: relative;
  z-index: 3;
  width: min(760px, 100%);
}

.aligned-hero-copy .eyebrow {
  color: #f2b84b;
  font-weight: 900;
}

.aligned-hero h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  color: #fff;
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: 0;
}

.aligned-hero p {
  max-width: 690px;
  margin: 0;
  color: rgba(241, 247, 250, 0.88);
  font-size: 19px;
  line-height: 1.55;
}

.aligned-hero .button.primary {
  background: #0797b5;
  color: #fff;
}

.aligned-hero .button.primary:hover {
  background: #087f98;
}

.aligned-hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.94);
  color: #071014;
}

.aligned-hero-mark {
  position: absolute;
  right: 2vw;
  top: 50%;
  z-index: 0;
  width: min(58vw, 900px);
  max-height: calc(100% - 48px);
  transform: translateY(-50%);
  opacity: 0.94;
}

.aligned-hero-mark img {
  width: 100%;
  max-height: calc(100vh - 190px);
  height: auto;
  display: block;
  object-fit: contain;
}

.aligned-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(14, 165, 190, 0.22);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.aligned-proof-strip div {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 20px 28px;
  border-right: 1px solid var(--line);
}

.aligned-proof-strip div:last-child {
  border-right: 0;
}

.aligned-proof-strip strong {
  color: #061014;
  font-size: 23px;
}

.aligned-proof-strip span {
  color: var(--muted);
  line-height: 1.35;
}

.start-here-section {
  scroll-margin-top: 96px;
}

.start-here-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 20px;
}

.start-here-head h2 {
  margin-bottom: 0;
}

.start-here-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

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

.start-step {
  min-height: 178px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.start-step.primary-step {
  border-color: rgba(8, 148, 178, 0.5);
  background: #071014;
  color: #fff;
}

.start-step span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(8, 148, 178, 0.12);
  color: var(--accent-dark);
  font-weight: 900;
}

.start-step.primary-step span {
  background: #f2b84b;
  color: #071014;
}

.start-step strong {
  display: block;
  margin: 2px 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.start-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.teacher-navigation {
  align-items: center;
}

.teacher-home {
  min-height: calc(100vh - 76px);
  background: #f6f8f8;
}

.teacher-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 36px;
  align-items: center;
  padding: 68px max(28px, calc((100vw - 1180px) / 2));
  background: #071014;
  color: #fff;
}

.teacher-home-hero h1 {
  margin: 8px 0 16px;
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
}

.teacher-home-hero > div > p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(241, 247, 250, 0.86);
  font-size: 18px;
  line-height: 1.55;
}

.teacher-home-class {
  padding: 24px;
  border: 1px solid rgba(242, 184, 75, 0.42);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.teacher-home-class span {
  display: block;
  color: #f2b84b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.teacher-home-class strong {
  display: block;
  margin: 7px 0 14px;
  font-size: 23px;
}

.teacher-home-class p {
  margin: 0;
  color: rgba(241, 247, 250, 0.8);
  line-height: 1.5;
}

.teacher-start-section {
  scroll-margin-top: 96px;
}

.teacher-start-grid .start-step {
  min-height: 194px;
}

.teacher-help-section {
  padding-top: 10px;
}

.teacher-routine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.teacher-routine-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.teacher-routine-grid strong {
  font-size: 18px;
}

.teacher-routine-grid p,
.teacher-help-note {
  color: var(--muted);
  line-height: 1.5;
}

.teacher-help-note {
  margin: 16px 0 0;
  padding: 18px 20px;
  border-left: 4px solid #0797b5;
  background: #fff;
}

.start-step.primary-step p {
  color: rgba(241, 247, 250, 0.84);
}

.readiness-cycle {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(183, 121, 31, 0.32);
  border-radius: 8px;
  background: #fff8e7;
  box-shadow: var(--shadow);
}

.readiness-cycle h3 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.18;
}

.readiness-cycle p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.readiness-cycle ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.readiness-cycle li {
  padding: 10px 12px;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: #fff;
}

.readiness-cycle strong,
.readiness-cycle span {
  display: block;
}

.readiness-cycle strong {
  font-size: 14px;
}

.readiness-cycle span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.readiness-cycle .button {
  white-space: nowrap;
}

.start-here-secondary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.start-here-secondary a {
  min-height: 94px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(8, 148, 178, 0.22);
  border-radius: 8px;
  background: rgba(230, 247, 251, 0.62);
  color: var(--ink);
}

.start-here-secondary strong {
  font-size: 14px;
  line-height: 1.25;
}

.start-here-secondary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.aligned-band {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(260px, 0.55fr);
  gap: 28px;
  align-items: start;
  border: 1px solid rgba(14, 165, 190, 0.28);
  border-radius: 8px;
  background: #071014;
  color: #fff;
  box-shadow: var(--shadow);
}

.aligned-band .eyebrow {
  color: #f2b84b;
}

.aligned-band h2 {
  margin: 6px 0 12px;
  font-size: 34px;
  line-height: 1.12;
}

.aligned-band p {
  margin: 0;
  color: rgba(240, 248, 250, 0.82);
  line-height: 1.55;
}

.aligned-band .privacy-note {
  border-left-color: #0797b5;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.aligned-band .landing-check-list li {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  box-shadow: none;
}

.aligned-footer {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.aligned-footer img {
  width: 190px;
  max-width: 100%;
  display: block;
  border-radius: 6px;
  background: #000;
}

.student-packet-control {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.student-packet-control[hidden] {
  display: none;
}

.student-packet-control strong {
  color: var(--ink);
  font-size: 13px;
}

.student-packet-control div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.class-set-planner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(180px, 0.55fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.05);
}

.class-set-planner[hidden] { display: none; }

.class-set-planner p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.class-set-planner textarea {
  width: 100%;
  resize: vertical;
}

.class-set-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.locked-lesson-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.locked-lesson-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.locked-lesson-list button {
  border: 0;
  background: transparent;
  color: #a33a2b;
  cursor: pointer;
  font-weight: 800;
}

.student-group-banner {
  padding: 8px 10px;
  border-left: 4px solid var(--teal);
  background: rgba(15, 118, 110, 0.08);
}

.group-level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.group-level-grid > div {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-left: 4px solid #7b8794;
  border-radius: 6px;
  background: #fff;
}

.group-level-grid > div.priority { border-left-color: #b74132; }
.group-level-grid > div.strategic { border-left-color: #d59020; }
.group-level-grid > div.on-track { border-left-color: #16866f; }
.group-level-grid > div.extension { border-left-color: #4d67b1; }

.group-level-grid span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.group-level-grid small {
  color: var(--muted);
  line-height: 1.3;
}

.materials-control-grid select[multiple] {
  min-height: 178px;
  padding: 8px;
}

.materials-preview {
  display: grid;
  gap: 16px;
}

.lesson-material {
  display: grid;
  gap: 16px;
  color: #111827;
}

.lesson-material header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #111827;
}

.lesson-material header p,
.lesson-material header h3 {
  margin: 0;
}

.lesson-material header p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lesson-material header h3 {
  margin-top: 4px;
  font-size: 24px;
}

.lesson-material header div:last-child {
  min-width: 220px;
  text-align: right;
}

.lesson-material header strong,
.lesson-material header span {
  display: block;
}

.lesson-material header span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.lesson-material-meta {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
}

.lesson-material-meta p {
  margin: 0;
  line-height: 1.35;
}

.worksheet-page,
.thinking-map-page,
.artifact-page {
  display: grid;
  gap: 14px;
  page-break-inside: avoid;
}

.worksheet-page h4,
.thinking-map-page h4,
.artifact-page h4 {
  margin: 0;
  font-size: 18px;
}

.artifact-page {
  padding: 14px;
  border: 2px solid #111827;
  border-radius: 8px;
  background: #fff;
}

.workbook-material > .lesson-material {
  padding-top: 18px;
  border-top: 1px dashed #9ca3af;
}

.material-section {
  display: grid;
  gap: 8px;
}

.material-section h5 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.material-section p {
  margin: 0;
  line-height: 1.45;
}

.directions-section {
  padding: 12px;
  border: 1px solid #9ca3af;
  border-left: 5px solid #111827;
  border-radius: 6px;
  background: #f9fafb;
}

.teacher-guide-section {
  padding: 12px;
  border: 1px solid #94a3b8;
  border-left: 5px solid #2563eb;
  border-radius: 6px;
  background: #eff6ff;
}

.answer-key-section {
  padding: 12px;
  border: 1px solid #64748b;
  border-left: 5px solid #0f766e;
  border-radius: 6px;
  background: #f0fdfa;
}

.source-focus-section {
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #4f46e5;
  border-radius: 6px;
  background: #f8fafc;
}

.source-focus-section ul {
  margin: 0;
  padding-left: 20px;
}

.teacher-strong-work {
  display: grid;
  gap: 8px;
}

.teacher-strong-work ul {
  margin: 0;
  padding-left: 20px;
}

.model-answer {
  padding: 10px;
  border: 1px solid #99f6e4;
  border-radius: 6px;
  background: #ffffff;
}

.model-answer em {
  display: block;
  margin-bottom: 5px;
  color: #0f766e;
  font-style: normal;
  font-weight: 800;
}

.model-answer p {
  margin: 0;
}

.teacher-filled-answer {
  margin: 8px 0 0;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.45;
}

.teacher-filled-answer.lined {
  padding: 10px;
  border: 1px solid #99f6e4;
  border-radius: 6px;
  background: #ffffff;
}

.directions-section ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

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

.sentence-starter-grid div {
  min-height: 62px;
  padding: 10px;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
}

.vocab-support-table td:first-child {
  font-weight: 800;
}

.support-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid var(--accent);
  background: rgba(15, 118, 110, 0.07);
  font-weight: 700;
}

.write-lines {
  min-height: calc(var(--line-count, 8) * 28px);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, #cbd5e1 28px);
}

.write-lines.small {
  min-height: 70px;
}

.worksheet-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.worksheet-table th,
.worksheet-table td {
  border: 1px solid #9ca3af;
  padding: 8px;
  vertical-align: top;
}

.worksheet-table th {
  background: #f3f4f6;
  font-size: 12px;
  text-align: left;
}

.worksheet-table td {
  height: 72px;
}

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

.worksheet-box-grid div {
  min-height: 94px;
  padding: 10px;
  border: 1px solid #9ca3af;
  border-radius: 6px;
}

.worksheet-box-grid strong {
  color: var(--muted);
  font-size: 12px;
}

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

.worksheet-checklist label {
  min-height: 44px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  font-weight: 700;
}

.worksheet-checklist span {
  width: 18px;
  height: 18px;
  border: 2px solid #111827;
}

.split-page-grid,
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.split-page-grid div,
.before-after-grid div {
  min-height: 210px;
  padding: 10px;
  border: 1px solid #9ca3af;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, #d1d5db 28px);
}

.annotation-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
}

.annotation-text {
  min-height: 230px;
  border: 1px solid #9ca3af;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 64px), rgba(250, 204, 21, 0.22) calc(100% - 64px)),
    repeating-linear-gradient(to bottom, transparent 0, transparent 27px, #d1d5db 28px);
}

.annotation-strip ol {
  margin: 0;
  padding: 14px 14px 14px 28px;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  background: #f9fafb;
  line-height: 1.45;
  font-weight: 700;
}

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

.sort-card-grid div {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 2px dashed #6b7280;
  border-radius: 6px;
  text-align: center;
  font-weight: 800;
}

.continuum-line {
  min-height: 150px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding: 18px;
  border: 1px solid #9ca3af;
}

.continuum-line div {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.continuum-line div::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 3px;
  background: #111827;
}

.continuum-line span {
  z-index: 1;
  width: 24px;
  height: 24px;
  border: 3px solid #111827;
  border-radius: 50%;
  background: #fff;
}

.continuum-line strong {
  max-width: 150px;
}

.ladder-steps {
  display: grid;
  gap: 8px;
}

.ladder-steps div {
  min-height: 50px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #9ca3af;
  border-left-width: 6px;
}

.ladder-steps em {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-style: normal;
  font-weight: 800;
}

.frayer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid #111827;
}

.frayer-grid div {
  min-height: 132px;
  padding: 12px;
  border: 1px solid #111827;
}

.progression-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.progression-path div {
  min-height: 86px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid #9ca3af;
  border-radius: 6px;
}

.progression-path span {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #111827;
}

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

.station-grid div {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid #9ca3af;
  border-radius: 8px;
}

.station-grid em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.short-response-grid {
  display: grid;
  gap: 10px;
}

.short-response-grid div {
  min-height: 82px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid #9ca3af;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, #d1d5db 28px);
}

.short-response-grid strong {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111827;
  color: #fff;
}

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

.card-deck-grid div {
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
  border: 2px solid #111827;
  border-radius: 8px;
}

.card-deck-grid span {
  min-height: 58px;
  border-top: 1px solid #9ca3af;
}

.quiz-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.quiz-list li {
  font-weight: 700;
}

.quiz-list div {
  min-height: 58px;
  margin-top: 6px;
  border: 1px solid #9ca3af;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, #d1d5db 28px);
}

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

.differentiation-paths div {
  min-height: 118px;
  padding: 12px;
  border: 1px solid #9ca3af;
  border-radius: 8px;
  background: #f9fafb;
}

.differentiation-paths p {
  margin-top: 6px;
  color: #374151;
}

.thinking-map-canvas {
  min-height: 420px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 24px;
  border: 2px solid #111827;
  border-radius: 8px;
  background: #fff;
}

.thinking-map-canvas div {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 2px solid #6b7280;
  border-radius: 50%;
  text-align: center;
}

.thinking-map-canvas span {
  max-width: 180px;
  font-weight: 800;
}

.thinking-map-canvas.web {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.thinking-map-canvas.web div:first-child {
  grid-column: 2;
  border-color: #111827;
}

.thinking-map-canvas.ladder {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.thinking-map-canvas.ladder div {
  min-height: 74px;
  border-radius: 8px;
}

.thinking-map-canvas.flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.thinking-map-canvas.flow div {
  min-height: 120px;
  border-radius: 8px;
}

.thinking-map-canvas.double-bubble {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.thinking-map-canvas.double-bubble div {
  min-height: 128px;
}

.thinking-map-canvas.diamond {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thinking-map-canvas.diamond div {
  border-radius: 12px;
  transform: rotate(45deg) scale(0.78);
}

.thinking-map-canvas.diamond span {
  transform: rotate(-45deg);
}

.thinking-map-canvas.cycle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thinking-map-canvas.cycle div {
  border-style: dashed;
}

.map-reflection {
  min-height: 110px;
  padding: 12px;
  border: 1px solid #9ca3af;
  border-radius: 6px;
}

.map-reflection p {
  margin: 6px 0 0;
  color: var(--muted);
}

.output-controls {
  display: grid;
  gap: 12px;
}

.output-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

textarea {
  min-height: 190px;
  padding: 12px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 13px 15px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 700;
}

@media (max-width: 980px) {
  .app-top-nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
  }

  .app-top-brand img {
    width: auto;
    height: 56px;
  }

  .app-top-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

	  .app-top-links a {
	    min-height: 42px;
	    white-space: normal;
	    text-align: center;
	  }

	  .nav-group {
	    width: 100%;
	  }

	  .nav-group summary {
	    width: 100%;
	    min-height: 42px;
	  }

	  .nav-menu {
	    position: static;
	    min-width: 0;
	    width: 100%;
	    margin-top: 8px;
	  }

	  .portal-user {
	    width: 100%;
	  }

  .portal-login-link,
  .portal-user-button {
    width: 100%;
  }

  .portal-user-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .app-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .unit-grid,
  .map-roster,
  .recommendation-grid,
  .refresh-workflow,
  .admin-refresh-note,
  .setup-checklist,
  .class-assignment-grid,
  .batch-print-grid,
  .batch-status-grid,
  .batch-preview-grid,
  .recent-batch-item,
  .intake-form-grid,
  .intake-columns,
  .intake-tools,
  .intake-summary,
  .intake-review-grid,
  .map-upload-grid,
  .map-summary-grid,
  .admin-doc-options,
  .admin-settings,
  .daily-builder-grid,
  .daily-lesson-overview,
  .daily-lesson-grid,
  .daily-differentiation-grid,
  .daily-text-targets,
  .daily-pacing-grid,
  .materials-control-grid,
  .support-control-grid,
  .support-notes-grid,
  .support-summary-cards,
  .support-profile-grid,
  .student-report-grid,
  .support-moves-bank,
  .user-admin-overview,
  .user-admin-form-grid,
  .user-table-row,
  .section-summary,
  .section-roster,
  .packet-overview-grid,
  .packet-readiness-grid,
  .packet-vocab-grid,
  .packet-material-grid,
  .packet-dls-grid,
  .alignment-overview,
  .alignment-unit-grid,
  .alignment-check-grid,
  .alignment-week-detail,
  .standards-overview,
  .standards-strand-grid,
  .standards-detail-grid,
  .landing-strip,
  .landing-entry-grid,
  .landing-benefit-grid,
  .landing-workflow,
  .landing-two-column,
  .landing-differentiation,
  .workflow,
  .selector-source,
  .active-class-panel {
    grid-template-columns: 1fr;
  }

  .daily-lesson-cover {
    display: grid;
  }

  .setup-overview,
  .onboarding-hero-panel,
  .onboarding-snapshot,
  .onboarding-check-grid,
  .onboarding-phase-grid,
  .split-panel,
  .onboarding-refresh-grid,
  .history-overview,
  .growth-report-grid,
  .impact-grid,
  .growth-report-cover,
  .growth-highlight-list,
  .growth-evidence-grid,
  .platform-growth-grid,
  .history-form-grid,
  .history-table-row,
  .regen-item,
  .setup-card-head {
    grid-template-columns: 1fr;
  }

  .setup-card-actions {
    padding-left: 0;
  }

  .daily-lesson-cover div:last-child {
    text-align: left;
  }

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

  .teacher-packet-cover,
  .packet-section-head {
    flex-direction: column;
  }

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

  .packet-week-row > span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .packet-week-row > span:first-child {
    border-top: 0;
  }

  .landing-nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .aligned-brand img {
    width: auto;
    height: 80px;
  }

  .aligned-hero {
    min-height: 720px;
    padding: 42px 22px;
    align-items: flex-end;
  }

  .aligned-hero h1 {
    font-size: 40px;
  }

  .aligned-hero p {
    font-size: 17px;
  }

  .aligned-hero-mark {
    top: 30%;
    right: 5vw;
    width: 90vw;
    max-height: 52%;
    opacity: 0.72;
  }

  .aligned-proof-strip,
  .aligned-band,
  .aligned-footer,
  .start-here-head,
  .start-here-grid,
  .start-here-secondary,
  .readiness-cycle,
  .teacher-home-hero,
  .teacher-routine-grid {
    grid-template-columns: 1fr;
  }

  .aligned-band {
    width: min(100% - 36px, 1180px);
    padding: 22px;
  }

  .landing-hero {
    min-height: 680px;
    padding: 34px 22px;
  }

  .landing-hero h1 {
    font-size: 40px;
  }

  .landing-section {
    width: min(100% - 36px, 1180px);
    padding: 42px 0;
  }

  .portal-login-page {
    grid-template-columns: 1fr;
  }

  .portal-login-brand,
  .portal-login-card {
    padding: 34px 22px;
  }

  .portal-login-brand h1 {
    font-size: 38px;
  }

  .repeater-row,
  .repeater-row.pacing-row {
    grid-template-columns: 1fr;
  }

  .repeater-row label.wide,
  .repeater-row.pacing-row label.wide,
  .wide-form-field {
    grid-column: auto;
  }
}

.packet-toggles {
  display: grid;
  gap: 10px;
}

.packet-toggles label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 800;
}

.teacher-packet-preview {
  display: grid;
  gap: 18px;
}

.teacher-packet-doc {
  display: grid;
  gap: 18px;
}

.teacher-packet-cover,
.teacher-packet-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.teacher-packet-cover {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  background: linear-gradient(135deg, #05080c, #0c5263);
  color: #fff;
}

.teacher-packet-cover h2 {
  margin: 4px 0 8px;
  font-size: 34px;
  line-height: 1.1;
}

.teacher-packet-cover p,
.teacher-packet-cover span {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.teacher-packet-cover > div:last-child {
  min-width: 210px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.teacher-packet-section {
  padding: 20px;
}

.packet-section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 14px;
}

.packet-section-head h3 {
  margin: 0;
  font-size: 22px;
}

.packet-section-head span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.packet-overview-grid,
.packet-readiness-grid,
.packet-vocab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.packet-overview-grid div,
.packet-readiness-grid div,
.packet-vocab-grid div,
.packet-assessment-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.packet-overview-grid strong,
.packet-readiness-grid strong,
.packet-vocab-grid strong,
.packet-assessment-list strong {
  display: block;
  margin-bottom: 6px;
}

.packet-overview-grid p,
.packet-readiness-grid p,
.packet-vocab-grid p,
.packet-assessment-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.packet-student-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.packet-student-list span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.packet-week-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.packet-week-row {
  display: grid;
  grid-template-columns: 0.42fr 1.4fr 1.15fr 0.9fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.packet-week-row:first-child {
  border-top: 0;
}

.packet-week-row.header {
  background: #102a43;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.packet-week-row > span {
  min-width: 0;
  padding: 12px;
  border-left: 1px solid var(--line);
  line-height: 1.4;
}

.packet-week-row > span:first-child {
  border-left: 0;
}

.packet-week-row em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.packet-assessment-list {
  display: grid;
  gap: 10px;
}

.packet-assessment-list span {
  display: block;
  margin-top: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

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

.packet-material-grid label {
  display: flex;
  align-items: start;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  line-height: 1.35;
}

.packet-dls-list {
  display: grid;
  gap: 16px;
}

.packet-dls-week {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.packet-dls-week h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.packet-dls-week > p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

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

.packet-dls-grid > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.packet-dls-grid strong {
  display: block;
  margin-bottom: 10px;
  line-height: 1.25;
}

.packet-dls-grid dl {
  margin: 0;
  display: grid;
  gap: 6px;
}

.packet-dls-grid dt {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.packet-dls-grid dd {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

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

.packet-master-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.packet-master-list h4 {
  margin: 0 0 8px;
  font-size: 17px;
}

.packet-master-list p {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.45;
}

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

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

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

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

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

.history-overview article,
.history-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

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

.growth-report-grid article,
.impact-grid article,
.growth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.growth-report-grid article,
.impact-grid article {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
}

.growth-report-grid span,
.impact-grid span,
.platform-growth-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.growth-report-grid strong,
.impact-grid strong,
.platform-growth-grid strong {
  font-size: 24px;
  line-height: 1.12;
}

.growth-report-grid p,
.impact-grid p,
.platform-growth-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.growth-panel {
  margin-bottom: 18px;
  padding: 18px;
}

.growth-report-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: 8px;
  background: #071014;
  color: #fff;
}

.growth-report-cover span {
  color: #f2b84b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.growth-report-cover h3 {
  margin: 6px 0 10px;
  color: #fff;
  font-size: 28px;
  line-height: 1.12;
}

.growth-report-cover p {
  margin: 0;
  color: rgba(241, 247, 250, 0.84);
  line-height: 1.45;
}

.growth-report-cover dl {
  margin: 0;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.growth-report-cover dt {
  color: rgba(241, 247, 250, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.growth-report-cover dd {
  margin: -5px 0 4px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.growth-highlight-list,
.growth-evidence-grid,
.platform-growth-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.growth-highlight-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.growth-evidence-grid,
.platform-growth-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.growth-highlight-list article,
.growth-evidence-grid article,
.platform-growth-grid article,
.platform-highlight-list {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.growth-highlight-list strong,
.growth-highlight-list span,
.growth-evidence-grid strong {
  display: block;
}

.growth-highlight-list p,
.growth-evidence-grid p,
.platform-highlight-list p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.growth-highlight-list span {
  margin-top: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.platform-highlight-list {
  grid-column: 1 / -1;
}

.impact-section {
  border-top: 1px solid var(--line);
}

.impact-actions {
  margin-top: 18px;
}

.history-overview article {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
}

.history-overview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.history-overview strong {
  font-size: 24px;
  line-height: 1.12;
}

.history-overview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.history-panel {
  margin-bottom: 18px;
  padding: 18px;
}

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

.history-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.history-form-grid select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.document-log,
.regen-queue {
  display: grid;
  gap: 8px;
}

.history-table-row {
  display: grid;
  grid-template-columns: 150px minmax(140px, 0.9fr) minmax(150px, 1fr) minmax(190px, 1fr) 100px 34px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.history-table-head {
  background: #102a43;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.history-table-row strong,
.history-table-row em {
  display: block;
}

.history-table-row em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.history-table-head em {
  color: rgba(255, 255, 255, 0.7);
}

.history-table-row a {
  color: var(--accent-dark);
  font-weight: 900;
}

.regen-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(183, 121, 31, 0.32);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fff8e7;
}

.regen-item.complete {
  border-color: rgba(6, 118, 71, 0.28);
  border-left-color: #067647;
  background: #f6fef9;
}

.regen-item strong,
.regen-item span {
  display: block;
}

.regen-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.regen-item > button:not(.icon-button) {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.setup-overview article {
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.setup-overview strong {
  font-size: 20px;
  line-height: 1.2;
}

.setup-overview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.setup-card {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  scroll-margin-top: 94px;
}

.setup-card.complete {
  border-left-color: #067647;
  background: #f6fef9;
}

.setup-card-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.setup-card-head > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 900;
}

.setup-card.complete .setup-card-head > span {
  background: #dcfae6;
  color: #067647;
}

.setup-card-head h3 {
  margin: 2px 0 7px;
  font-size: 22px;
  line-height: 1.2;
}

.setup-card-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.setup-card-head label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfe;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.setup-card-head input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.setup-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-left: 62px;
}

.onboarding-shell .main {
  gap: 18px;
}

.onboarding-hero-panel,
.onboarding-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.onboarding-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  border-left: 5px solid var(--accent);
}

.onboarding-hero-panel h3,
.onboarding-panel h3 {
  margin: 4px 0 8px;
  font-size: 24px;
  line-height: 1.18;
}

.onboarding-hero-panel p,
.onboarding-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.onboarding-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.onboarding-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.onboarding-snapshot div {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.onboarding-snapshot dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.onboarding-snapshot dd {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.onboarding-panel {
  padding: 18px;
  scroll-margin-top: 94px;
}

.onboarding-check-grid,
.onboarding-phase-grid,
.onboarding-refresh-grid {
  display: grid;
  gap: 10px;
}

.onboarding-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.onboarding-check-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.onboarding-check-card.complete {
  border-color: rgba(6, 118, 71, 0.28);
  background: #f6fef9;
}

.onboarding-check-card input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.onboarding-check-card strong,
.onboarding-check-card em {
  display: block;
}

.onboarding-check-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.onboarding-check-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.onboarding-check-card a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(8, 148, 178, 0.28);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.onboarding-phase-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.onboarding-phase-grid article,
.onboarding-refresh-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.onboarding-phase-grid span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--accent-dark);
  font-weight: 900;
}

.onboarding-phase-grid strong,
.onboarding-refresh-grid strong,
.onboarding-action-list strong {
  display: block;
  line-height: 1.25;
}

.onboarding-phase-grid a,
.onboarding-action-list a {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
  align-items: start;
}

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

.onboarding-action-list a {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(8, 148, 178, 0.24);
  border-radius: 8px;
  background: #f0fbfd;
}

.onboarding-action-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.onboarding-refresh-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.user-admin-overview article,
.user-admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.user-admin-overview article {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
}

.user-admin-overview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.user-admin-overview strong {
  font-size: 22px;
  line-height: 1.15;
}

.user-admin-overview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.user-admin-panel {
  margin-bottom: 18px;
  padding: 18px;
}

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

.user-admin-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.user-admin-form-grid .field-help {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.user-admin-form-grid select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.user-admin-form-grid .button {
  min-height: 42px;
}

.user-table {
  display: grid;
  gap: 8px;
}

.user-table-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) 150px 120px minmax(180px, 1fr) 90px 126px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.user-table-head {
  background: #102a43;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.user-table-row strong,
.user-table-row em {
  display: block;
}

.user-table-row em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.user-table-head em {
  color: rgba(255, 255, 255, 0.7);
}

.user-table-row mark {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.user-row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.compact-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

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

.section-summary article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.section-card .icon-button {
  flex: 0 0 auto;
}

.section-summary strong,
.section-summary span {
  display: block;
}

.section-summary span {
  margin-top: 4px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.section-summary p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

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

.section-roster-student {
  min-height: 64px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  cursor: pointer;
}

.section-roster-student.priority {
  border-color: rgba(180, 35, 24, 0.35);
  background: rgba(180, 35, 24, 0.04);
}

.section-roster-student.strategic {
  border-color: rgba(183, 121, 31, 0.35);
  background: rgba(183, 121, 31, 0.05);
}

.section-roster-student.extension {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.05);
}

.section-roster-student strong,
.section-roster-student em {
  display: block;
}

.section-roster-student em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.standards-summary-card,
.standards-strands,
.standards-priority-panel,
.standards-table-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.standards-summary-card {
  min-height: 132px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.standards-summary-card span,
.standards-detail-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.standards-summary-card strong {
  font-size: 32px;
  line-height: 1;
}

.standards-summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.standards-strands,
.standards-priority-panel,
.standards-table-panel {
  padding: 18px;
  margin-bottom: 18px;
}

.standards-strand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.standards-strand-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.standards-strand-grid article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.standards-strand-grid strong {
  font-size: 14px;
}

.standards-strand-grid span {
  color: var(--accent-dark);
  font-weight: 900;
}

.standards-strand-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.standards-priority-list,
.standards-detail-list {
  display: grid;
  gap: 12px;
}

.standards-priority-list article,
.standards-detail-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}

.standards-priority-list article.not-taught,
.standards-detail-row.not-taught {
  border-left-color: var(--danger);
}

.standards-priority-list article.taught-not-assessed,
.standards-detail-row.taught-not-assessed,
.standards-priority-list article.assessed-only,
.standards-detail-row.assessed-only {
  border-left-color: var(--gold);
}

.standards-priority-list article.reteach,
.standards-detail-row.reteach {
  border-left-color: #7c3aed;
}

.standards-priority-list article.overcovered,
.standards-detail-row.overcovered {
  border-left-color: var(--blue);
}

.standards-priority-list article > div,
.standards-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.standards-priority-list strong,
.standards-detail-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.standards-priority-list span,
.standards-detail-head strong {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.standards-priority-list p,
.standards-recommendation {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.45;
}

.standards-priority-list em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.standards-detail-head span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.standards-detail-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.standards-detail-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.alignment-score-card,
.alignment-unit-panel,
.alignment-week-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.alignment-score-card {
  min-height: 138px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.alignment-score-card div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.alignment-score-card strong {
  font-size: 32px;
  line-height: 1;
}

.alignment-score-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.alignment-score-card.strong {
  border-color: rgba(8, 148, 178, 0.45);
  background: linear-gradient(180deg, #ffffff, #e6f7fb);
}

.alignment-score-card.watch {
  border-color: rgba(183, 121, 31, 0.45);
  background: linear-gradient(180deg, #ffffff, #fff8e7);
}

.alignment-score-card.needs-attention {
  border-color: rgba(180, 35, 24, 0.35);
  background: linear-gradient(180deg, #ffffff, #fff1f0);
}

.alignment-kicker,
.alignment-unit-grid span,
.alignment-week-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alignment-unit-panel {
  padding: 18px;
  margin-bottom: 18px;
}

.alignment-unit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.55fr 0.65fr;
  gap: 14px;
  margin-top: 14px;
}

.alignment-unit-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.alignment-unit-grid p {
  margin: 6px 0 0;
  line-height: 1.45;
}

.alignment-week-list {
  display: grid;
  gap: 16px;
}

.alignment-week-card {
  padding: 18px;
  border-left: 5px solid var(--accent);
}

.alignment-week-card.has-flags {
  border-left-color: var(--gold);
}

.alignment-week-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.alignment-week-head h3 {
  margin: 4px 0 6px;
  font-size: 21px;
  line-height: 1.2;
}

.alignment-week-head p {
  margin: 0;
  color: var(--muted);
}

.alignment-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.alignment-badge.has-flags {
  background: #fff8e7;
  color: var(--gold);
}

.alignment-check-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.alignment-check {
  min-height: 116px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.alignment-check strong {
  display: block;
  margin-bottom: 6px;
}

.alignment-check p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.alignment-check.pass {
  border-color: rgba(8, 148, 178, 0.35);
  background: #f0fbfd;
}

.alignment-check.warn {
  border-color: rgba(183, 121, 31, 0.35);
  background: #fff8e7;
}

.alignment-check.fail {
  border-color: rgba(180, 35, 24, 0.28);
  background: #fff1f0;
}

.alignment-week-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.alignment-week-detail div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.alignment-week-detail h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.alignment-week-detail ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.alignment-recommendations {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(183, 121, 31, 0.35);
  border-radius: 8px;
  background: #fff8e7;
  line-height: 1.45;
}

@media print {
  body {
    background: #fff;
  }

  .app-top-nav,
  .sidebar,
  .topbar .actions,
  .admin-controls-panel {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .main {
    padding: 0;
  }

  .topbar {
    margin-bottom: 12px;
  }

  .admin-preview-panel {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .admin-doc {
    page-break-after: always;
  }

  .materials-controls-panel {
    display: none !important;
  }

  .support-controls-panel,
  .support-notes-panel,
  .support-bank-panel {
    display: none !important;
  }

  .materials-preview-panel {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .support-profile-panel {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .lesson-material {
    page-break-after: always;
  }

  .workbook-material {
    page-break-after: auto;
  }

  .workbook-material > .lesson-material {
    page-break-before: always;
    page-break-after: always;
    border-top: 0;
  }

  .artifact-page,
  .worksheet-page,
  .thinking-map-page {
    page-break-inside: avoid;
  }
}
.material-feedback-panel {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(36, 89, 77, 0.22);
  border-radius: 16px;
  background: #f7fbf9;
  box-shadow: 0 10px 30px rgba(25, 56, 49, 0.07);
}

.material-feedback-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.material-feedback-heading h3,
.material-feedback-heading p {
  margin-top: 0;
}

.material-feedback-heading > p {
  max-width: 34rem;
  color: var(--muted, #60706b);
}

.material-feedback-actions,
.material-feedback-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.material-feedback-details,
.material-feedback-reject {
  margin-top: 1rem;
}

.material-feedback-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-weight: 700;
}

.material-feedback-rationale {
  margin-top: 1rem;
  padding: 0.85rem;
  border-left: 4px solid #2f7664;
  background: #fff;
}

.material-implementation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.material-implementation-grid label,
.material-implementation-record > label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.material-feedback-details summary {
  cursor: pointer;
  font-weight: 700;
}

.material-feedback-choices {
  margin: 0.75rem 0;
}

.material-feedback-choices label {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(36, 89, 77, 0.18);
  border-radius: 9px;
  background: #fff;
}

.material-feedback-reject textarea {
  display: block;
  width: 100%;
  margin: 0.4rem 0 0.75rem;
}

@media (max-width: 760px) {
  .material-feedback-heading {
    display: block;
  }

  .material-implementation-grid {
    grid-template-columns: 1fr;
  }
}
.pilot-test-step,
.pilot-validation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(36, 89, 77, 0.15);
  border-radius: 12px;
  background: #fff;
}

.pilot-test-step p,
.pilot-validation-row em {
  margin: 0.25rem 0 0;
  color: var(--muted, #60706b);
}

.pilot-test-step.complete {
  border-color: rgba(35, 125, 88, 0.45);
  background: #f3fbf6;
}

.pilot-validation-row {
  grid-template-columns: 5rem minmax(0, 1fr) minmax(8rem, auto);
  margin-bottom: 0.55rem;
}

.pilot-validation-row.pass strong {
  color: #197347;
}

.pilot-validation-row.fail strong {
  color: #9a6500;
}

@media (max-width: 760px) {
  .pilot-test-step,
  .pilot-validation-row {
    grid-template-columns: 1fr;
  }
}
.instructional-calendar-panel {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid #d7ddd9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(25, 42, 48, 0.06);
}

.instructional-calendar-panel .panel-header {
  align-items: flex-start;
  margin-bottom: 20px;
}

.instructional-calendar-panel .panel-header h3,
.instructional-calendar-panel .panel-header p {
  margin: 0 0 6px;
}

.school-term-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.school-term-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line, #d8dee8);
  border-radius: 12px;
  background: #fff;
}

.school-term-card label,
.school-calendar-row,
.calendar-approval,
.admin-date-summary {
  display: flex;
  gap: 8px;
  align-items: center;
}

.school-term-card label {
  align-items: stretch;
  flex-direction: column;
  font-size: .86rem;
  color: var(--muted, #647184);
}

.school-calendar-rows {
  display: grid;
  gap: 10px;
}

.school-calendar-row {
  display: grid;
  grid-template-columns: 130px 170px minmax(240px, 1fr) 42px;
  padding: 10px;
  border: 1px solid var(--line, #d8dee8);
  border-radius: 10px;
  background: #fff;
}

.school-calendar-row.school-event-range-row {
  grid-template-columns: 150px 150px 160px minmax(240px, 1fr) 42px;
}

.calendar-date-field {
  display: grid;
  gap: 4px;
  color: var(--muted, #647184);
  font-size: .75rem;
  font-weight: 800;
}

.school-calendar-row.approved {
  border-color: #58a792;
  background: #f1faf7;
}

.calendar-approval { font-weight: 700; }
.teacher-calendar-grid { grid-template-columns: minmax(180px, .5fr) minmax(280px, 1.5fr); }
.admin-date-summary { flex-direction: column; align-items: flex-start; justify-content: center; padding: 10px 14px; border: 1px solid var(--line, #d8dee8); border-radius: 10px; }
.admin-date-summary span { color: var(--muted, #647184); font-size: .82rem; }

@media (max-width: 900px) {
  .school-term-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .school-calendar-row { grid-template-columns: 1fr; }
  .school-calendar-row.school-event-range-row { grid-template-columns: 1fr; }
  .teacher-calendar-grid { grid-template-columns: 1fr; }
}

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

.calendar-form-grid label {
  display: grid;
  gap: 7px;
  color: #5f6b7b;
  font-weight: 700;
}

.calendar-form-grid input,
.calendar-form-grid select,
.calendar-exception-row input,
.calendar-exception-row select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ccd6e0;
  border-radius: 8px;
  background: #fff;
  padding: 9px 11px;
  color: #18212b;
  font: inherit;
}

.meeting-days {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #d7ddd9;
  border-radius: 10px;
}

.meeting-days legend {
  padding: 0 6px;
  color: #5f6b7b;
  font-weight: 800;
}

.meeting-days label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.calendar-exceptions-header,
.calendar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendar-exceptions-header p {
  margin: 4px 0 0;
  color: #657286;
}

.calendar-exceptions {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.calendar-exception-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(150px, 0.7fr) minmax(240px, 1.5fr) auto;
  gap: 10px;
  align-items: center;
}

.calendar-actions {
  justify-content: flex-start;
}

.calendar-adjustment-preview {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e1e6e3;
}

.calendar-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
}

.calendar-metrics article {
  padding: 13px;
  border: 1px solid #dbe3e8;
  border-radius: 10px;
  background: #f7faf9;
}

.calendar-metrics span,
.calendar-metrics strong {
  display: block;
}

.calendar-metrics span {
  color: #657286;
  font-size: 0.82rem;
}

.calendar-metrics strong {
  margin-top: 4px;
  font-size: 1.35rem;
}

.calendar-change-summary {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 4px solid #168fa8;
  border-radius: 6px;
  background: #eef8fa;
}

.calendar-change-summary p,
.calendar-change-summary ul {
  margin: 6px 0 0;
}

.error-text {
  color: #a33a2b !important;
}

@media (max-width: 800px) {
  .calendar-form-grid,
  .calendar-metrics,
  .calendar-exception-row {
    grid-template-columns: 1fr;
  }
}
