:root {
  --color-national-blue: #004c97;
  --color-national-blue-700: #003b75;
  --color-deep-navy: #00274d;
  --color-corn-gold: #ffcd00;
  --color-harvest-gold: #eaaa00;
  --color-field-green: #2f6b3c;
  --color-sky-100: #e5f2fa;
  --color-cream-50: #fff9e8;
  --color-sand-200: #e8dfc4;
  --color-ink-900: #102a43;
  --color-ink-650: #486581;
  --color-white: #ffffff;
  --color-forest-950: var(--color-deep-navy);
  --color-forest-800: var(--color-national-blue);
  --color-forest-650: var(--color-national-blue-700);
  --color-leaf-500: var(--color-field-green);
  --shadow-card: 0 1.5rem 4rem rgb(0 39 77 / 12%);
  --radius-lg: 1.5rem;
  --radius-md: 0.9rem;
  --space-page: clamp(1rem, 4vw, 3rem);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--color-ink-900);
  background: var(--color-cream-50);
}

.visual-review-page {
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.visual-review-header,
.visual-review-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.visual-review-header { margin-bottom: 1rem; }
.visual-review-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}
.visual-review-header h1,
.visual-review-toolbar h2 { margin: 0; }

.visual-review-notice {
  padding: .8rem 1rem;
  border: 1px solid #a9c9e7;
  border-radius: .75rem;
  background: #eef7ff;
  color: #002f5f;
}

.visual-review-notice.is-error {
  border-color: #cf4b34;
  background: #fff1ee;
  color: #8d2415;
}

.visual-review-section {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #d4e1ec;
  border-radius: 1rem;
  background: #fff;
}

.visual-review-toolbar label { font-weight: 700; }
.visual-review-toolbar select { display: block; margin-top: .25rem; }

.visual-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.visual-review-card {
  overflow: hidden;
  border: 1px solid #bfd2e3;
  border-radius: .85rem;
  background: #f9fcff;
}

.visual-review-card.is-retired { opacity: .76; }
.visual-review-card.is-processing { border-color: #eaaa00; box-shadow: 0 0 0 3px rgb(234 170 0 / 18%); }
.visual-review-card.is-approved { border-color: #2f6b3c; }
.visual-review-card.has-error { border-color: #c65343; }

.visual-review-selection {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .8rem;
  background: #e5f2fa;
  color: #00274d;
  font-weight: 800;
  cursor: pointer;
}

.visual-review-selection input,
.visual-review-select-all input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #004c97;
}

.visual-review-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e7eef5;
}

.visual-review-quick-actions {
  display: grid;
  gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid #bfd2e3;
  border-bottom: 1px solid #bfd2e3;
  background: #eef7ff;
}

.visual-review-quick-actions > .button-link {
  width: 100%;
  justify-content: center;
}

.visual-review-card-body { padding: 1rem; }
.visual-review-card-body h3 { margin: .25rem 0 .5rem; }

.visual-review-badge {
  display: inline-block;
  margin: 0;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: #dceeff;
  color: #003c76;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-review-meta,
.visual-review-tags,
.visual-review-decision { font-size: .88rem; color: #355a78; }
.visual-source-link { display: inline-block; margin-bottom: .75rem; }
.visual-review-details summary { cursor: pointer; font-weight: 800; }
.visual-review-form { display: grid; gap: .75rem; margin-top: .75rem; }
.visual-review-form-status {
  margin: 0;
  padding: .65rem .75rem;
  border: 1px solid #9fc7e8;
  border-radius: .6rem;
  background: #eef7ff;
  color: #123e63;
  font-weight: 700;
}
.visual-review-form-status.is-error {
  border-color: #c65343;
  background: #fff1ef;
  color: #7b2117;
}
.visual-review-inline-reauth { margin-top: .5rem; }
.visual-review-field { display: grid; gap: .25rem; }
.visual-review-label { font-size: .84rem; font-weight: 800; }
.visual-review-field textarea { min-height: 5rem; resize: vertical; }
.visual-review-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.button-danger { background: #9d2d1d; border-color: #9d2d1d; color: #fff; }
.visual-review-empty { grid-column: 1 / -1; padding: 1rem; color: #476782; }

.visual-review-bulk {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto auto;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 2px solid #004c97;
  border-radius: .85rem;
  background: #eef7ff;
}

.visual-review-select-all {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  cursor: pointer;
}

.visual-review-bulk > p { margin: 0; }
.visual-review-bulk > .visual-review-form-status { grid-column: 1 / -1; }

.visual-review-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1rem;
}

.visual-review-mode-switch [aria-pressed="true"] {
  box-shadow: 0 0 0 .2rem rgb(255 205 0 / 55%);
}

.rapid-review {
  margin-top: 1.25rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 2px solid #004c97;
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.review-board {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #bfd2e3;
  border-radius: 1rem;
  background: #f7fbff;
}

.review-board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.review-board-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(9rem, 18vh) auto;
  padding: 0;
  overflow: hidden;
  border: 3px solid #2f6b3c;
  border-radius: .75rem;
  background: #fff;
  color: #17324d;
  text-align: left;
  cursor: pointer;
}

.review-board-card img { width: 100%; height: 100%; object-fit: contain; background: #eef4f8; }
.review-board-card-title { padding: .5rem .65rem; font-weight: 750; line-height: 1.2; }
.review-board-card-decision {
  position: absolute;
  top: .45rem;
  right: .45rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: #2f6b3c;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.review-board-card.is-rejected { border-color: #9d2d1d; opacity: .62; }
.review-board-card.is-rejected .review-board-card-decision { background: #9d2d1d; }
.review-board-footer {
  position: sticky;
  top: .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: .75rem;
  border: 1px solid #bfd2e3;
  border-radius: .75rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 .35rem 1rem rgba(23, 50, 77, .14);
}
.review-board-footer p { margin: 0; font-weight: 750; }

@media (max-width: 900px) { .review-board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .review-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-board-footer { align-items: stretch; flex-direction: column; }
}

.rapid-review-heading,
.rapid-review-history {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rapid-review-heading h2,
.rapid-review-heading p,
.rapid-review-history p { margin: 0; }

.rapid-review-progress {
  padding: .45rem .75rem;
  border-radius: 999px;
  background: #e5f2fa;
  color: #003b75;
  font-weight: 900;
}

.rapid-review-stage {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
  min-height: min(64vh, 650px);
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid #bfd2e3;
  border-radius: .9rem;
  background: #f4f8fb;
}

.rapid-review-image-button {
  display: grid;
  width: 100%;
  min-height: 24rem;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-right: 1px solid #bfd2e3;
  background: #e7eef5;
  cursor: zoom-in;
}

.rapid-review-image-button img {
  display: block;
  width: 100%;
  height: min(64vh, 650px);
  object-fit: contain;
}

.rapid-review-image-button.is-zoomed {
  position: fixed;
  z-index: 30;
  inset: 1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  border: 3px solid #fff;
  border-radius: .8rem;
  background: rgb(0 22 43 / 94%);
  box-shadow: 0 1rem 5rem rgb(0 0 0 / 45%);
  cursor: zoom-out;
}

.rapid-review-image-button.is-zoomed img { height: calc(100vh - 2rem); }

.rapid-review-information {
  align-self: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.rapid-review-information h3 {
  margin: .65rem 0;
  font-size: clamp(1.35rem, 2.3vw, 2.1rem);
  line-height: 1.12;
}

.rapid-review-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.rapid-review-actions .button-link {
  min-height: 3.25rem;
  justify-content: center;
  font-size: 1rem;
}

.rapid-review-actions kbd,
.rapid-reject-reasons kbd {
  display: inline-grid;
  min-width: 1.65rem;
  min-height: 1.65rem;
  margin-right: .25rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: .35rem;
  background: rgb(255 255 255 / 22%);
  font: inherit;
  font-weight: 900;
}

.rapid-review-actions .rapid-approve {
  background: #2f6b3c;
  border-color: #2f6b3c;
  color: #fff;
}

.rapid-review-actions .button-danger {
  background: #9d2d1d;
  border-color: #9d2d1d;
  color: #fff;
}

.rapid-reject-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .75rem;
}

.rapid-reject-reasons button {
  padding: .48rem .65rem;
  border: 1px solid #9ab5cc;
  border-radius: .55rem;
  background: #f2f7fb;
  color: #183b56;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.rapid-review-footer {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid #d4e1ec;
  color: #355a78;
  font-size: .9rem;
}

.rapid-review-footer > p { margin: 0; }
.rapid-review-history p { font-weight: 750; }

@media (max-width: 700px) {
  .visual-review-header,
  .visual-review-toolbar { flex-direction: column; }
  .visual-review-bulk { grid-template-columns: 1fr; }
  .visual-review-bulk > .button-link { width: 100%; justify-content: center; }
  .rapid-review-stage { grid-template-columns: 1fr; min-height: 0; }
  .rapid-review-image-button { min-height: 16rem; border-right: 0; border-bottom: 1px solid #bfd2e3; }
  .rapid-review-image-button img { height: min(48vh, 420px); }
  .rapid-review-actions { grid-template-columns: 1fr 1fr; }
  .rapid-review-history { align-items: flex-start; flex-direction: column; }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 8%, rgb(255 205 0 / 18%), transparent 25rem),
    radial-gradient(circle at 92% 12%, rgb(0 76 151 / 13%), transparent 30rem),
    linear-gradient(145deg, var(--color-cream-50), var(--color-sky-100));
}

a {
  color: inherit;
}

code {
  padding: 0.12em 0.35em;
  border-radius: 0.35rem;
  background: rgb(0 76 151 / 10%);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-200%);
  border-radius: 0.5rem;
  color: var(--color-white);
  background: var(--color-forest-950);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 0.2rem solid var(--color-corn-gold);
  outline-offset: 0.2rem;
}

.site-frame {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer {
  display: flex;
  width: min(76rem, 100%);
  margin-inline: auto;
  padding: 1.25rem var(--space-page);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  border-bottom: 1px solid rgb(0 76 151 / 14%);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(10.5rem, 17vw, 14rem);
  height: auto;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem 0.75rem 0.75rem 0.2rem;
  place-items: center;
  color: var(--color-white);
  background: var(--color-national-blue);
}

.foundation-badge,
.status-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgb(0 76 151 / 18%);
  border-radius: 999px;
  color: var(--color-forest-800);
  background: rgb(255 255 255 / 58%);
  font-size: 0.84rem;
  font-weight: 700;
}

.foundation-badge {
  padding: 0.45rem 0.75rem;
}

.shell-main {
  width: min(70rem, 100%);
  margin: auto;
  padding: clamp(2rem, 7vw, 6rem) var(--space-page);
}

.welcome-card,
.message-card {
  border: 1px solid rgb(0 76 151 / 14%);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 78%);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(0.75rem);
}

.welcome-card {
  padding: clamp(1.6rem, 5vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--color-forest-650);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--color-forest-950);
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 {
  margin-top: 0;
  color: var(--color-forest-950);
  font-size: 1.1rem;
}

.lede {
  max-width: 43rem;
  margin: 1.5rem 0 0;
  color: var(--color-ink-650);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.status-row {
  width: fit-content;
  margin-top: 2rem;
  padding: 0.6rem 0.85rem;
}

.status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--color-leaf-500);
  box-shadow: 0 0 0 0.3rem rgb(47 107 60 / 16%);
}

.foundation-grid {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.foundation-grid article {
  padding: 1.35rem;
  border: 1px solid rgb(0 76 151 / 12%);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 54%);
}

.foundation-grid p {
  margin-bottom: 0;
  color: var(--color-ink-650);
  line-height: 1.55;
}

.site-footer {
  border-top: 1px solid rgb(0 76 151 / 12%);
  color: var(--color-ink-650);
  font-size: 0.8rem;
}

.request-reference {
  color: var(--color-ink-650);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.centered-page {
  display: grid;
  min-height: 100vh;
  padding: var(--space-page);
  place-items: center;
}

.message-card {
  width: min(38rem, 100%);
  padding: clamp(1.6rem, 6vw, 3.5rem);
}

.message-card h1 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 7vw, 4rem);
}

.button-link {
  display: inline-flex;
  margin-top: 1.75rem;
  padding: 0.8rem 1.1rem;
  border-radius: 0.65rem;
  border: 2px solid var(--color-corn-gold);
  color: var(--color-deep-navy);
  background: var(--color-corn-gold);
  box-shadow: 0 0.65rem 1.5rem rgb(0 39 77 / 14%);
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.workspace-header .button-link {
  min-height: 3rem;
  margin-top: 0;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-align: center;
}

.button-link:hover {
  border-color: var(--color-harvest-gold);
  background: var(--color-harvest-gold);
  box-shadow: 0 0.85rem 1.75rem rgb(0 39 77 / 20%);
  transform: translateY(-1px);
}

.message-card .request-reference {
  margin-top: 2rem;
}

@media (max-width: 48rem) {
  .foundation-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 30rem) {
  .foundation-badge {
    display: none;
  }
}

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

.admin-tool-grid,
.crm-pipeline {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.admin-tool-card,
.crm-lead {
  border: 1px solid var(--border-color, #d7ddd9);
  border-radius: 0.9rem;
  padding: 1rem;
  background: #fff;
}

.crm-shell { max-width: 78rem; }
.crm-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.crm-toolbar label, [data-lead-form] label { display: grid; gap: 0.35rem; }
.crm-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(15rem, 1fr); gap: 1.5rem; }
.crm-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.crm-status-grid article { display: grid; gap: 0.35rem; padding: 0.9rem; border: 1px solid var(--border, #cbd8e5); border-radius: 0.75rem; background: #f7fafc; }
.crm-status-grid strong { font-size: 1.1rem; overflow-wrap: anywhere; }
[data-lead-dialog] { width: min(36rem, calc(100% - 2rem)); border: 0; border-radius: 1rem; }
[data-lead-form] { display: grid; gap: 0.8rem; }
@media (max-width: 760px) { .crm-layout, .crm-status-grid { grid-template-columns: 1fr; } }

/* Owner administration console */
.admin-console { width: min(96rem, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0; }
.admin-console__header, .admin-panel__heading, .admin-console__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-console__header { border-bottom: .25rem solid var(--color-primary, #004c97); padding-bottom: 1.25rem; }
.admin-notice { min-height: 1.5rem; padding: .75rem 1rem; border-left: .25rem solid #0f766e; background: #f0fdfa; }
.admin-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.admin-summary-card, .admin-panel, .admin-report-grid > article { border: 1px solid #cbd5e1; border-radius: .8rem; background: #fff; box-shadow: 0 .2rem .7rem rgb(15 23 42 / 8%); }
.admin-summary-card { padding: 1.1rem; display: grid; gap: .4rem; }
.admin-summary-card span { color: #475569; font-size: .9rem; }
.admin-summary-card strong { color: #164e63; font-size: 2rem; }
.admin-summary-card--action { appearance: none; width: 100%; font: inherit; text-align: left; cursor: pointer; }
.admin-summary-card--action small { color: #075985; font-weight: 700; }
.admin-summary-card--action:hover, .admin-summary-card--action:focus-visible { border-color: #0369a1; box-shadow: 0 0 0 .2rem rgb(3 105 161 / 18%); }
.admin-summary-card--action.is-selected { border-color: #0369a1; background: #f0f9ff; }
.admin-health-details { margin-top: 1rem; padding: 1rem; border: 1px solid #7dd3fc; border-radius: .8rem; background: #f8fcff; }
.admin-health-details h3 { margin: 0; }
.admin-health-details p { margin: .35rem 0 .8rem; color: #475569; }
.admin-table--health { min-width: 64rem; }
.admin-table--health td:first-child { min-width: 15rem; }
.admin-tabs { display: flex; gap: .25rem; margin: 1.5rem 0 0; border-bottom: 1px solid #cbd5e1; overflow-x: auto; }
.admin-tab { appearance: none; border: 0; border-bottom: .2rem solid transparent; background: transparent; padding: .8rem 1rem; font: inherit; font-weight: 700; cursor: pointer; }
.admin-tab.is-active { color: #004c97; border-bottom-color: #004c97; }
.admin-panel { padding: 1.25rem; border-radius: 0 0 .8rem .8rem; }
.admin-filters, .admin-form { display: grid; grid-template-columns: repeat(4, minmax(10rem, 1fr)); gap: 1rem; align-items: end; margin: 1rem 0; }
.admin-form label, .admin-filters label { display: grid; gap: .35rem; font-weight: 700; }
.admin-form input, .admin-form select, .admin-form textarea, .admin-filters input, .admin-filters select { width: 100%; padding: .65rem; border: 1px solid #94a3b8; border-radius: .4rem; font: inherit; background: #fff; }
.admin-form__wide { grid-column: 1 / -1; }.admin-check { grid-column: 1 / -1; display: flex !important; grid-template-columns: auto 1fr; align-items: center; }.admin-check input { width: auto; }
.admin-form__actions { grid-column: 1 / -1; }.admin-form--stack { grid-template-columns: 1fr; }.admin-form--stack > * { grid-column: 1; }
.admin-table-wrap { overflow: auto; max-height: 38rem; border: 1px solid #cbd5e1; border-radius: .5rem; }
.admin-table { width: 100%; min-width: 78rem; border-collapse: collapse; font-size: .88rem; }
.admin-table--groups { min-width: 68rem; }
.admin-table th { position: sticky; top: 0; z-index: 1; background: #e2e8f0; text-align: left; }.admin-table th, .admin-table td { padding: .7rem; border-bottom: 1px solid #e2e8f0; vertical-align: top; white-space: pre-line; }
.admin-actions { min-width: 7.5rem; }
.admin-action-menu { position: relative; }
.admin-action-menu > summary { cursor: pointer; list-style: none; border: 1px solid #94a3b8; border-radius: .4rem; padding: .45rem .7rem; background: #fff; font-weight: 700; text-align: center; }
.admin-action-menu > summary::-webkit-details-marker { display: none; }
.admin-action-menu > summary::after { content: " ▾"; }
.admin-action-menu[open] > summary::after { content: " ▴"; }
.admin-action-menu__items { display: grid; gap: .35rem; min-width: 13rem; padding: .55rem; margin-top: .25rem; border: 1px solid #cbd5e1; border-radius: .5rem; background: #fff; box-shadow: 0 .6rem 1.5rem rgb(15 23 42 / 18%); }
.admin-action-menu__items .quiet-button { width: 100%; text-align: left; }
.admin-danger-action { color: #b42318; border-color: #f1a7a1; }
.admin-danger-button { background: #b42318; border-color: #b42318; }
.admin-report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }.admin-report-grid > article { padding: 1rem; }
.admin-user-detail { background: #f8fafc; white-space: normal !important; }.admin-user-detail h3, .admin-user-detail h4 { margin: 0 0 .5rem; }.admin-user-detail p { margin: .35rem 0; }.admin-user-detail ul { margin: .5rem 0 1rem; padding-left: 1.25rem; }
.admin-group-detail { display: grid; gap: 1rem; }
.admin-group-detail__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; }
.admin-group-detail__facts article { padding: .75rem; border: 1px solid #cbd5e1; border-radius: .5rem; background: #fff; }
.admin-group-detail__facts strong { display: block; margin-bottom: .25rem; }
.admin-group-roster { width: 100%; border-collapse: collapse; }
.admin-group-roster th, .admin-group-roster td { padding: .55rem; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.admin-panel__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.admin-inline-create { margin: 1rem 0; }
.admin-lifecycle { display: grid; grid-template-columns: repeat(7, minmax(7rem, 1fr)); gap: .35rem; padding: 0; margin: 0; list-style: none; overflow-x: auto; }
.admin-lifecycle li { padding: .6rem; border: 1px solid #cbd5e1; border-radius: .5rem; background: #f8fafc; text-align: center; color: #475569; }
.admin-lifecycle li.is-complete { border-color: #7aae42; background: #f0f9e8; color: #20420f; }
.admin-lifecycle li.is-current { outline: 3px solid rgb(255 196 0 / 45%); font-weight: 700; }
.admin-account-workspace { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.admin-account-workspace > article { padding: 1rem; border: 1px solid #cbd5e1; border-radius: .65rem; background: #fff; }
.admin-help { margin: 0; color: #475569; }
.admin-report-history, .admin-contract-history ul { margin: .75rem 0 0; padding-left: 1.25rem; }
.admin-standalone-cohort { margin-top: 1rem; }
.admin-standalone-cohort > summary, .admin-contract-history > summary { cursor: pointer; font-weight: 700; }
.admin-result { margin-top: 1rem; padding: .8rem; border-radius: .4rem; background: #ecfeff; display: flex; gap: .5rem; flex-wrap: wrap; }
.admin-console__footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #cbd5e1; color: #64748b; font-size: .85rem; }
.admin-dialog { width: min(34rem, calc(100% - 2rem)); padding: 1.25rem; border: 0; border-radius: .8rem; box-shadow: 0 1rem 3rem rgb(15 23 42 / 28%); }
.admin-dialog::backdrop { background: rgb(15 23 42 / 55%); }
.admin-dialog .admin-form { margin: 0; }
.admin-dialog__actions { display: flex; justify-content: flex-end; gap: .75rem; }
@media (max-width: 70rem) { .admin-summary-grid { grid-template-columns: repeat(2, 1fr); }.admin-report-grid { grid-template-columns: 1fr; }.admin-form, .admin-filters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .admin-console__header, .admin-panel__heading, .admin-console__footer { align-items: flex-start; flex-direction: column; }.admin-summary-grid, .admin-form, .admin-filters { grid-template-columns: 1fr; }.admin-form > *, .admin-filters > * { grid-column: 1; } }

.public-site {
  background:
    radial-gradient(circle at 88% 5%, rgb(0 76 151 / 13%), transparent 27rem),
    radial-gradient(circle at 8% 35%, rgb(255 205 0 / 12%), transparent 24rem),
    linear-gradient(165deg, #fffdf7 0%, var(--color-cream-50) 52%, #f4f9fc 100%);
}

.public-header {
  position: sticky;
  z-index: 5;
  top: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0 max(var(--space-page), calc((100vw - 82rem) / 2));
  border: 0;
  background: var(--color-deep-navy);
  box-shadow: 0 0.35rem 1.25rem rgb(0 39 77 / 20%);
  flex-wrap: wrap;
}

.public-header .brand,
.site-header:not(.public-header) .brand {
  align-self: stretch;
  padding: 0.95rem clamp(1rem, 2.5vw, 1.6rem);
  background: var(--color-corn-gold);
}

.primary-nav,
.header-actions,
.public-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.4rem);
}

.primary-nav {
  min-width: 0;
}

.primary-nav a,
.public-footer a,
.text-link {
  color: var(--color-forest-800);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.24em;
}

.primary-nav a {
  position: relative;
  padding-block: 1.75rem;
  color: var(--color-white);
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1.2rem;
  left: 0;
  height: 0.18rem;
  border-radius: 999px;
  background: var(--color-corn-gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.public-header .header-actions .text-link {
  color: var(--color-white);
}

.public-header .header-actions .text-link:hover {
  color: var(--color-corn-gold);
}

.button-link.compact {
  margin: 0;
  padding: 0.65rem 0.9rem;
}

.public-main {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-inline: auto;
  padding:
    clamp(0.75rem, 2vw, 1.75rem)
    var(--space-page)
    clamp(2.5rem, 6vw, 5.5rem);
}

.public-main > section {
  width: min(100%, 82rem);
  margin-inline: auto;
}

.public-hero {
  position: relative;
  min-height: clamp(16rem, 31vw, 22rem);
  padding:
    clamp(1.25rem, 2.5vw, 2.5rem)
    clamp(1rem, 4vw, 3.5rem)
    clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  isolation: isolate;
}

.public-hero.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.85fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.public-hero.pricing-hero {
  min-height: 0;
  padding-block: clamp(1rem, 2vw, 1.5rem);
}

.public-hero.trial-hero {
  min-height: 0;
  padding-block: clamp(0.75rem, 1.5vw, 1.25rem);
}

.trial-hero .lede {
  margin-top: 0.5rem;
}

.pricing-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.pricing-hero .lede {
  margin-top: 0.75rem;
}

.pricing-hero .button-link {
  margin-top: 1rem;
}

.pricing-hero + .section-block {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.pricing-hero + .section-block .section-heading {
  margin-bottom: 1.25rem;
}

.hero-copy {
  min-width: 0;
}

.hero-video {
  position: relative;
  width: min(100%, 26rem);
  margin: 0;
  padding: 0.75rem;
  overflow: hidden;
  border: 0.18rem solid rgb(255 205 0 / 82%);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  justify-self: end;
  background: var(--color-white);
  box-shadow:
    0 0 0 0.3rem rgb(0 76 151 / 10%),
    0 1.5rem 3rem rgb(0 39 77 / 18%);
}

.hero-video h2 {
  margin: 0 0 0.6rem;
  color: var(--color-forest-950);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.public-hero::before,
.public-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.public-hero::before {
  top: -12rem;
  right: -10rem;
  width: 32rem;
  height: 32rem;
  border: 5rem solid rgb(0 76 151 / 8%);
  box-shadow: 0 0 0 2.2rem rgb(255 205 0 / 13%);
}

.public-hero::after {
  right: 7rem;
  bottom: 2rem;
  width: 6rem;
  height: 6rem;
  background: repeating-linear-gradient(
    135deg,
    var(--color-corn-gold) 0 0.6rem,
    transparent 0.6rem 1.2rem
  );
  opacity: 0.8;
}

.public-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 5.5vw, 4.6rem);
}

.public-hero .hero-tagline {
  max-width: 24ch;
  margin: 1rem 0 0;
  color: var(--color-forest-800);
  font-size: clamp(1.25rem, 2.8vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.public-hero .lede {
  max-width: 36rem;
  margin-top: 1.25rem;
}

.public-hero .button-link {
  margin-top: 2rem;
}

.content-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.content-card,
.price-card,
.video-placeholder,
.contact-panel,
.section-block {
  border: 1px solid rgb(0 76 151 / 14%);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 72%);
}

.content-card,
.price-card {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  box-shadow: 0 0.8rem 2rem rgb(0 39 77 / 7%);
}

.content-card::before,
.price-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.35rem;
  background: linear-gradient(
    90deg,
    var(--color-national-blue) 0 70%,
    var(--color-corn-gold) 70% 100%
  );
  content: "";
}

.content-card h2,
.section-heading h2,
.contact-panel h2,
.video-placeholder h2 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.content-card p,
.price-card p,
.section-heading p,
.contact-panel p,
.video-placeholder p,
.legal-state > p {
  color: var(--color-ink-650);
  line-height: 1.65;
}

.privacy-draft-page {
  min-height: 100vh;
  padding: clamp(1.25rem, 3vw, 3rem);
  background:
    radial-gradient(circle at top right, rgb(255 205 0 / 14%), transparent 28rem),
    var(--color-cream);
}

.privacy-draft-hero,
.privacy-draft-content {
  width: min(100%, 72rem);
  margin-inline: auto;
}

.privacy-draft-hero {
  padding: clamp(1.25rem, 4vw, 3rem) 0 1.5rem;
}

.privacy-draft-hero h1 {
  max-width: 16ch;
  margin: 0.35rem 0 0.6rem;
  color: var(--color-deep-navy);
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 0.98;
}

.privacy-draft-notice {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgb(255 205 0 / 70%);
  border-left: 0.38rem solid var(--color-corn-gold);
  border-radius: 0.8rem;
  color: var(--color-deep-navy);
  background: rgb(255 255 255 / 80%);
  line-height: 1.55;
}

.privacy-draft-notice strong {
  display: block;
  margin-bottom: 0.15rem;
}

.policy-effective-date {
  margin: 1rem 0 0;
  color: var(--color-national-blue);
  font-size: 0.9rem;
}

.privacy-draft-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.privacy-draft-nav a {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgb(0 76 151 / 20%);
  border-radius: 999px;
  color: var(--color-national-blue);
  background: var(--color-white);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.privacy-overview,
.privacy-section,
.privacy-draft-footer {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgb(0 76 151 / 12%);
  border-radius: 1rem;
  background: var(--color-white);
  box-shadow: 0 0.8rem 2rem rgb(0 34 68 / 6%);
}

.privacy-overview h2,
.privacy-section h2 {
  margin: 0;
  color: var(--color-deep-navy);
}

.privacy-overview ul {
  margin: 0.85rem 0 0;
  padding-left: 1.25rem;
  color: var(--color-ink-650);
  line-height: 1.65;
}

.privacy-section-heading {
  max-width: 48rem;
}

.privacy-section-heading p:last-child {
  margin: 0.45rem 0 0;
  color: var(--color-ink-650);
  line-height: 1.55;
}

.privacy-topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.1rem;
  gap: 0.75rem;
}

.privacy-topic-list article {
  padding: 1rem;
  border-radius: 0.8rem;
  background: rgb(0 76 151 / 5%);
}

.privacy-topic-list h3 {
  margin: 0;
  color: var(--color-deep-navy);
  font-size: 1rem;
}

.privacy-topic-list p {
  margin: 0.4rem 0 0;
  color: var(--color-ink-650);
  line-height: 1.58;
}

.privacy-draft-footer {
  margin-bottom: 1.5rem;
  color: var(--color-ink-650);
}

.privacy-draft-footer p {
  margin: 0.35rem 0;
}

.privacy-draft-footer .button-link {
  margin-top: 0.75rem;
}

@media (max-width: 42rem) {
  .privacy-topic-list {
    grid-template-columns: 1fr;
  }
}

.section-block,
.contact-panel,
.video-placeholder {
  margin-top: clamp(2rem, 6vw, 5rem);
  padding: clamp(1.4rem, 4vw, 3rem);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.price-card {
  background: var(--color-white);
}

.price-card h3 {
  margin: 0;
  color: var(--color-forest-950);
  font-size: 1.35rem;
}

.price {
  margin-block: 1rem 0;
}

.price span {
  color: var(--color-forest-950);
  font-size: 2.25rem;
  font-weight: 800;
}

.video-placeholder {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-style: dashed;
}

.video-placeholder > span {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  border-radius: 50%;
  place-items: center;
  color: var(--color-deep-navy);
  background: var(--color-corn-gold);
}

.video-placeholder h2,
.video-placeholder p {
  margin-block: 0 0.35rem;
}

.training-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
}

.training-video-grid .video-placeholder {
  min-width: 0;
  margin-top: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.video-placeholder h3 {
  margin-block: 0 0.35rem;
  color: var(--color-forest-950);
  font-size: 1.2rem;
  line-height: 1.25;
}

.training-video-section {
  max-width: 72rem;
  margin-inline: auto;
}

.training-video {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgb(0 76 151 / 14%);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: 0 0.8rem 2rem rgb(0 39 77 / 8%);
}

.training-video-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 3.5rem;
  margin-bottom: 0.9rem;
}

.training-video-heading span {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 50%;
  place-items: center;
  color: var(--color-deep-navy);
  background: var(--color-corn-gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.training-video h3 {
  margin: 0;
  color: var(--color-forest-950);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.video-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-deep-navy);
  box-shadow: 0 0.8rem 2rem rgb(0 39 77 / 14%);
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.faq-section {
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.faq-section .section-heading {
  margin-bottom: 1.25rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  overflow: hidden;
  border: 1px dashed rgb(0 76 151 / 20%);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.faq-item summary {
  position: relative;
  padding: 1rem 3.25rem 1rem 1.25rem;
  color: var(--color-forest-950);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  color: var(--color-national-blue);
  font-size: 1.5rem;
  content: "+";
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  background: rgb(255 205 0 / 12%);
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--color-ink-650);
  line-height: 1.65;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(18rem, 1.3fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  border: 0;
  background:
    linear-gradient(120deg, rgb(255 205 0 / 10%), transparent 42%),
    linear-gradient(135deg, var(--color-deep-navy), var(--color-national-blue));
  color: var(--color-white);
}

.support-contact-panel {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

.contact-panel h2,
.contact-panel .eyebrow {
  color: var(--color-white);
}

.contact-panel p {
  color: rgb(255 255 255 / 75%);
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1.25rem;
  font-style: normal;
}

.contact-details a {
  color: var(--color-white);
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.contact-details a:hover {
  color: var(--color-corn-gold);
}

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

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 750;
}

.contact-form label span {
  color: rgb(255 255 255 / 65%);
  font-size: 0.75rem;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 0.55rem;
  color: var(--color-ink-900);
  background: var(--color-white);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.full-field,
.form-status {
  grid-column: 1 / -1;
}

.form-submit {
  margin: 0;
  border: 0;
  color: var(--color-deep-navy);
  background: var(--color-corn-gold);
  cursor: pointer;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.public-footer {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 2rem max(var(--space-page), calc((100vw - 82rem) / 2));
  border: 0;
  color: rgb(255 255 255 / 75%);
  background: var(--color-deep-navy);
  align-items: flex-start;
}

.public-footer > div {
  display: grid;
  gap: 0.25rem;
}

.footer-logo {
  display: block;
  width: 11rem;
  height: auto;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  background: var(--color-corn-gold);
}

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

.public-footer a:hover {
  color: var(--color-corn-gold);
}

.public-footer .request-reference {
  color: rgb(255 255 255 / 58%);
}

.preview-banner {
  margin-bottom: 1.5rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--color-harvest-gold);
  border-radius: 0.65rem;
  color: var(--color-deep-navy);
  background: #fff4bf;
  font-weight: 800;
}

.legal-state h1 {
  font-size: clamp(2.1rem, 7vw, 4rem);
}

@media (max-width: 64rem) {
  .primary-nav {
    width: 100%;
    order: 3;
    justify-content: center;
    border-top: 1px solid rgb(255 255 255 / 16%);
  }
}

@media (max-width: 48rem) {
  .content-grid,
  .pricing-grid,
  .training-video-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    justify-content: flex-start;
    padding-bottom: 0;
    overflow-x: auto;
  }

  .primary-nav a {
    padding-block: 1rem;
    white-space: nowrap;
  }

  .primary-nav a::after {
    bottom: 0.55rem;
  }

  .public-hero {
    min-height: auto;
    padding-inline: 0;
  }

  .public-hero.home-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-video {
    width: min(100%, 26rem);
    justify-self: center;
  }

  .public-hero::before {
    top: -14rem;
    right: -17rem;
  }

  .public-hero::after {
    display: none;
  }

  .public-footer,
  .public-footer nav {
    flex-direction: column;
  }
}

@media (max-width: 30rem) {
  .brand-logo {
    width: 9.75rem;
  }

  .public-header .brand {
    padding-inline: 0.8rem;
  }

  .public-header .header-actions {
    gap: 0.5rem;
  }

  .button-link.compact {
    padding: 0.55rem 0.7rem;
    font-size: 0.86rem;
  }
}

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

.login-panel {
  display: grid;
  margin-top: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.35rem, 4vw, 2.5rem);
  border: 1px solid rgb(0 76 151 / 18%);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(130deg, rgb(255 205 0 / 13%), transparent 42%),
    rgb(255 255 255 / 88%);
  box-shadow: var(--shadow-card);
  grid-template-columns: minmax(15rem, 0.85fr) minmax(18rem, 1.15fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}

.login-entry {
  max-width: 72rem;
  margin: clamp(1rem, 3vw, 2rem) auto 0;
}

.login-entry-intro {
  max-width: 48rem;
}

.login-entry-intro h2 {
  margin-block: 0.25rem 0;
  color: var(--color-deep-navy);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.login-entry-intro p:last-child {
  color: var(--color-ink-650);
  line-height: 1.6;
}

.login-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
  margin-top: 1.25rem;
}

.login-choice-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgb(0 76 151 / 18%);
  border-top: 0.4rem solid var(--color-national-blue);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 7rem;
}

.student-login-choice {
  border-top-color: var(--color-corn-gold);
}

.login-choice-card:target {
  outline: 0.25rem solid rgb(255 205 0 / 45%);
  outline-offset: 0.2rem;
}

.login-choice-card h3 {
  margin-block: 0.25rem 0;
  color: var(--color-deep-navy);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.login-choice-card .teacher-review-banner {
  margin-block: 1rem;
}

.login-intro h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.login-intro p:last-child {
  color: var(--color-ink-650);
  line-height: 1.65;
}

.login-form {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.login-credential-step,
.login-mfa-step {
  display: grid;
  gap: 0.65rem;
}

.login-mfa-step[hidden],
.login-credential-step[hidden] {
  display: none;
}

.login-mfa-step {
  border-top: 3px solid var(--gold, #ffca05);
  padding-top: 1rem;
}

.login-mfa-step h4,
.login-mfa-step p {
  margin: 0;
}

.login-account-reset {
  justify-self: start;
}

.login-form label {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.login-form input,
.new-chat-panel textarea,
.composer textarea,
.mode-control select {
  width: 100%;
  border: 1px solid rgb(0 76 151 / 25%);
  border-radius: 0.75rem;
  color: var(--color-ink-900);
  background: var(--color-white);
  font: inherit;
}

.login-form input {
  min-height: 3.15rem;
  padding: 0.75rem 0.9rem;
}

.login-submit {
  width: 100%;
  margin-top: 0.75rem;
  border: 0;
  cursor: pointer;
}

.login-submit:disabled,
.send-button:disabled,
.new-chat-panel button:disabled,
.quiet-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.login-status {
  min-height: 1.5rem;
  color: var(--color-ink-650);
}

.login-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  margin-top: 0.85rem;
}

.login-recovery-link {
  padding: 0;
  border: 0;
  color: var(--color-national-blue);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.login-recovery-link:hover,
.login-recovery-link:focus-visible {
  color: var(--color-deep-navy);
}

.login-recovery-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgb(0 76 151 / 22%);
  border-left: 0.35rem solid var(--color-national-blue);
  border-radius: 0.8rem;
  background: rgb(236 246 252 / 82%);
}

.student-recovery-panel {
  border-left-color: var(--color-corn-gold);
}

.login-recovery-panel[hidden],
.login-form[hidden],
.login-recovery-actions[hidden] {
  display: none;
}

.login-recovery-panel h4,
.login-recovery-panel p {
  margin: 0;
}

.login-recovery-panel p {
  color: var(--color-ink-650);
  line-height: 1.55;
}

.login-recovery-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.login-recovery-buttons .button-link {
  min-height: 2.75rem;
  border: 0;
  cursor: pointer;
}

.signup-panel {
  display: grid;
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid rgb(0 76 151 / 18%);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow-card);
  grid-template-columns: minmax(13rem, 0.75fr) minmax(20rem, 1.35fr);
  gap: clamp(1.25rem, 4vw, 3rem);
}

.signup-form {
  display: grid;
  gap: 0.7rem;
}

.signup-form fieldset {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  border: 0;
}

.signup-form legend,
.signup-form > label {
  font-size: 0.92rem;
  font-weight: 800;
}

.signup-form input[type="email"],
.signup-form input[type="password"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgb(0 76 151 / 25%);
  border-radius: 0.75rem;
  color: var(--color-ink-900);
  background: var(--color-white);
  font: inherit;
}

.choice-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 500;
}

.choice-row input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.18rem;
  flex: 0 0 auto;
}

.form-note {
  margin: 0;
  color: var(--color-ink-650);
  font-size: 0.86rem;
  line-height: 1.5;
}

.policy-choice {
  margin-top: 0.45rem;
}

.signup-submit {
  width: 100%;
  margin-top: 0.5rem;
  border: 0;
  cursor: pointer;
}

.state-staff-signup-note {
  margin-bottom: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgb(0 76 151 / 14%);
  border-radius: 0.75rem;
  background: rgb(224 241 250 / 45%);
}

.state-staff-signup-note h3,
.state-staff-signup-note p {
  margin-top: 0;
}

.verification-panel {
  max-width: 42rem;
  margin: 2rem auto 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid rgb(0 76 151 / 18%);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.subscription-gate {
  display: grid;
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(130deg, rgb(255 205 0 / 16%), transparent 38rem),
    #f4f7f9;
  place-items: center;
}

.subscription-gate-card {
  width: min(68rem, 100%);
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid rgb(0 76 151 / 16%);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.subscription-plan-grid {
  display: grid;
  margin: 1.5rem 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.subscription-plan-card {
  padding: 1.2rem;
  border: 1px solid rgb(0 76 151 / 18%);
  border-radius: 1rem;
  background: #f8fbfd;
}

.subscription-plan-actions,
.subscription-recovery-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.subscription-plan-actions button {
  border: 0;
  cursor: pointer;
}

.subscription-recovery-links {
  margin: 1rem 0;
}

.workspace-frame {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(110deg, rgb(255 205 0 / 6%), transparent 32rem),
    #f4f7f9;
}

.workspace-header {
  display: flex;
  min-width: 0;
  padding: 0.8rem clamp(1rem, 3vw, 2rem);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-white);
  background: var(--color-deep-navy);
  box-shadow: 0 0.35rem 1.5rem rgb(0 39 77 / 16%);
}

.workspace-brand {
  padding: 0.45rem 0.75rem;
  border-radius: 0.65rem;
  background: var(--color-corn-gold);
}

.workspace-brand .brand-logo {
  width: clamp(9.5rem, 15vw, 12rem);
}

.workspace-account {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}

.agent-state {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  color: rgb(255 255 255 / 86%);
  font-size: 0.78rem;
  font-weight: 750;
}

.agent-state > span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #6fd18a;
  box-shadow: 0 0 0 0.2rem rgb(111 209 138 / 16%);
}

.account-label {
  max-width: 18rem;
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiet-button,
.icon-button {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.quiet-button {
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
}

.quiet-button:hover {
  background: rgb(0 76 151 / 9%);
}

.workspace-header .quiet-button:hover {
  background: rgb(255 255 255 / 10%);
}

.account-menu {
  position: relative;
  z-index: 8;
  color: var(--color-deep-navy);
}

.account-menu summary {
  display: inline-flex;
  min-height: 2.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 0.65rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  background: rgb(255 255 255 / 8%);
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  transform: rotate(45deg) translateY(-0.12rem);
  border-right: 0.12rem solid currentcolor;
  border-bottom: 0.12rem solid currentcolor;
}

.account-menu[open] summary,
.account-menu summary:hover {
  color: var(--color-deep-navy);
  background: var(--color-corn-gold);
}

.account-menu-icon {
  width: 0.65rem;
  height: 0.65rem;
  border: 0.12rem solid var(--color-corn-gold);
  border-radius: 50%;
  background: var(--color-national-blue);
}

.account-menu-icon.student {
  border-color: var(--color-sky-100);
  background: var(--color-field-green);
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  display: grid;
  width: min(22rem, calc(100vw - 2rem));
  padding: 0.45rem;
  border: 1px solid rgb(0 76 151 / 16%);
  border-radius: 0.9rem;
  gap: 0.15rem;
  background: var(--color-white);
  box-shadow: 0 1.25rem 3rem rgb(0 39 77 / 22%);
}

.account-menu-panel a,
.account-menu-panel button {
  display: flex;
  width: 100%;
  padding: 0.72rem 0.8rem;
  border: 0;
  border-radius: 0.58rem;
  align-items: center;
  color: var(--color-deep-navy);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu-panel a:hover,
.account-menu-panel a:focus-visible,
.account-menu-panel button:hover,
.account-menu-panel button:focus-visible {
  background: var(--color-sky-100);
}

.account-menu-panel button {
  margin-top: 0.2rem;
  border-top: 1px solid rgb(0 76 151 / 11%);
  color: #8f1d1d;
}

.workspace-main {
  display: grid;
  width: min(100%, 96rem);
  min-width: 0;
  margin-inline: auto;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  grid-template-columns: minmax(17rem, 21rem) minmax(0, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.workspace-sidebar,
.conversation-panel {
  min-width: 0;
  border: 1px solid rgb(0 76 151 / 13%);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 1rem 2.5rem rgb(0 39 77 / 7%);
}

.conversation-tabs {
  display: grid;
  gap: 0.3rem;
}

.conversation-tab-item {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.conversation-tab {
  appearance: none;
  min-width: 0;
  padding: 0.3rem 0.2rem;
  flex: 1 1 auto;
  overflow: hidden;
  border: 0;
  border-radius: 0.25rem;
  box-shadow: none;
  color: var(--color-national-blue);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-tab:hover {
  color: var(--color-deep-navy);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.conversation-tab.is-active {
  color: var(--color-deep-navy);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--color-corn-gold);
  text-decoration-thickness: 0.18rem;
  text-underline-offset: 0.2rem;
}

.conversation-menu {
  position: relative;
  flex: 0 0 2rem;
}

.conversation-menu > summary {
  display: grid;
  min-height: 1.8rem;
  border-radius: 0.3rem;
  cursor: pointer;
  place-items: center;
  list-style: none;
}

.conversation-menu > summary:hover,
.conversation-menu > summary:focus-visible,
.conversation-menu[open] > summary { background: var(--color-sky-100); }

.conversation-menu > summary::after {
  content: "•••";
  letter-spacing: 0.08em;
}

.conversation-menu > summary::-webkit-details-marker {
  display: none;
}

.conversation-menu-actions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.25rem);
  right: 0;
  display: grid;
  min-width: 8rem;
  padding: 0.3rem;
  border: 1px solid rgb(0 76 151 / 18%);
  border-radius: 0.6rem;
  background: var(--color-white);
  box-shadow: 0 0.7rem 1.4rem rgb(0 39 77 / 15%);
}

.conversation-menu-actions button {
  appearance: none;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: 0.4rem;
  box-shadow: none;
  background: transparent;
  font-size: 0.78rem;
  text-align: left;
}

.conversation-menu-actions button:hover:not(:disabled) {
  background: var(--color-sky-100);
}

.conversation-create-dialog .program-form > label {
  display: grid;
  gap: 0.4rem;
  font-weight: 800;
}

.workspace-sidebar {
  display: flex;
  min-height: 36rem;
  padding: 1rem;
  flex-direction: column;
}

.sidebar-heading,
.conversation-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sidebar-heading {
  padding: 0.25rem 0.25rem 0.9rem;
  border-bottom: 1px solid rgb(0 76 151 / 11%);
}

.sidebar-heading h1 {
  max-width: none;
  color: var(--color-deep-navy);
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.sidebar-heading .eyebrow,
.conversation-header .eyebrow {
  margin-bottom: 0.35rem;
}

.icon-button {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border-radius: 50%;
  place-items: center;
  color: var(--color-deep-navy);
  background: var(--color-corn-gold);
  font-size: 1.45rem;
  line-height: 1;
}

.icon-button:hover {
  background: #ffda3e;
}

.new-chat-panel {
  margin-top: 0.85rem;
  padding: 1rem;
  border-radius: 0.9rem;
  background: var(--color-sky-100);
}

.new-chat-panel h2 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.new-chat-agent-help {
  margin: -0.35rem 0 0.85rem;
  color: var(--color-ink-650);
  font-size: 0.8rem;
  line-height: 1.5;
}

.new-chat-panel form {
  display: grid;
  gap: 0.6rem;
}

.new-chat-panel label {
  font-size: 0.84rem;
  font-weight: 800;
}

.new-chat-panel textarea,
.composer textarea {
  padding: 0.8rem;
  line-height: 1.5;
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.project-navigation {
  flex: 1 1 auto;
  min-height: 0;
  max-height: clamp(24rem, 68vh, 46rem);
  margin-top: 0.85rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.project-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.35rem;
  list-style: none;
}

.project-button {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0.8rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  color: var(--color-ink-900);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.project-button:hover {
  background: rgb(0 76 151 / 6%);
}

.project-button.is-active {
  border-color: rgb(0 76 151 / 16%);
  background: var(--color-sky-100);
}

.project-button-title,
.project-button-detail {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-button-title {
  font-weight: 800;
}

.project-button-detail,
.sidebar-status {
  color: var(--color-ink-650);
  font-size: 0.76rem;
}

.project-button-detail {
  margin-top: 0.2rem;
}

.sidebar-status {
  min-height: 1.1rem;
  margin: 0 0.25rem;
  padding-top: 0.75rem;
}

.conversation-panel {
  display: flex;
  min-height: 36rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  flex-direction: column;
}

.conversation-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgb(0 76 151 / 11%);
}

.conversation-header > div {
  min-width: 0;
}

.conversation-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: end;
  gap: 0.65rem;
}

.conversation-header h2 {
  max-width: 36rem;
  margin: 0;
  overflow: hidden;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-control {
  display: grid;
  flex: 0 0 auto;
  gap: 0.3rem;
  color: var(--color-ink-650);
  font-size: 0.72rem;
  font-weight: 800;
}

.mode-control select {
  min-width: 8.5rem;
  padding: 0.55rem 0.65rem;
}

.student-preview-banner {
  display: flex;
  margin-top: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgb(255 205 0 / 72%);
  border-left: 0.35rem solid var(--color-corn-gold);
  border-radius: 0.8rem;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--color-deep-navy);
  background: rgb(255 205 0 / 14%);
  font-size: 0.82rem;
  line-height: 1.45;
}

.student-preview-banner[hidden] {
  display: none;
}

.student-preview-banner strong {
  flex: 0 0 auto;
}

.conversation-empty {
  display: grid;
  flex: 1 1 auto;
  width: min(30rem, 100%);
  margin: auto;
  padding: 2rem 1rem;
  place-items: center;
  text-align: center;
}

.conversation-empty h3 {
  margin: 0.8rem 0 0.45rem;
  color: var(--color-deep-navy);
  font-size: 1.4rem;
}

.conversation-empty p {
  max-width: 31rem;
  margin: 0 0 1.25rem;
  color: var(--color-ink-650);
  line-height: 1.6;
}

.breezy-avatar-frame {
  width: 4.75rem;
  height: 4.75rem;
  padding: 0.2rem;
  overflow: hidden;
  border: 0.18rem solid var(--color-corn-gold);
  border-radius: 50%;
  background: var(--color-white);
  box-shadow:
    0 0 0 0.18rem rgb(0 76 151 / 12%),
    0 0.65rem 1.5rem rgb(0 39 77 / 14%);
}

.breezy-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.conversation-transcript {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.conversation-transcript[hidden] {
  display: none;
}

.message-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(58vh, 42rem);
  margin: 0;
  padding: 1.25rem 0.25rem;
  overflow-y: auto;
  list-style: none;
  scroll-behavior: smooth;
}

.prompt-navigation {
  display: flex;
  width: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
}

.prompt-navigation[hidden] {
  display: none;
}

.prompt-navigation-markers {
  display: flex;
  max-height: calc(min(58vh, 42rem) - 2rem);
  padding: 0.6rem 0.15rem;
  overflow-y: auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.48rem;
  scrollbar-width: none;
}

.prompt-navigation-marker {
  width: 0.78rem;
  height: 0.18rem;
  min-height: 0.18rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(0 76 151 / 34%);
  cursor: pointer;
  transition: width 150ms ease, background-color 150ms ease;
}

.prompt-navigation-marker:hover,
.prompt-navigation-marker:focus-visible {
  width: 1.2rem;
  background: var(--color-national-blue);
}

.prompt-navigation-marker.is-active {
  width: 1.35rem;
  background: var(--color-national-blue);
}

.prompt-navigation-select-label {
  display: none;
}

.prompt-navigation-select-label > span {
  font-size: 0.76rem;
  font-weight: 800;
}

.message-list.is-positioning {
  visibility: hidden;
}

.agent-thinking {
  width: fit-content;
  max-width: min(32rem, 88%);
  margin: 0 0.25rem 1rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgb(0 76 151 / 16%);
  border-radius: 1rem 1rem 1rem 0.3rem;
  color: var(--color-deep-navy);
  background: var(--color-sky-100);
  font-size: 0.88rem;
  font-weight: 700;
}

.agent-thinking[hidden] { display: none; }

.agent-thinking-avatar {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--color-white);
  background: var(--color-deep-navy);
  font-size: 0.76rem;
}

.agent-thinking-dots {
  display: inline-flex;
  gap: 0.22rem;
  align-items: center;
}

.agent-thinking-dots span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: currentcolor;
  animation: agent-thinking-pulse 1.1s ease-in-out infinite;
}

.agent-thinking-dots span:nth-child(2) { animation-delay: 0.16s; }
.agent-thinking-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes agent-thinking-pulse {
  0%, 70%, 100% { opacity: 0.3; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-0.18rem); }
}

@media (prefers-reduced-motion: reduce) {
  .agent-thinking-dots span { animation: none; opacity: 0.72; }
}

.message-item {
  display: flex;
  margin-bottom: 1rem;
}

.user-message {
  justify-content: flex-end;
}

.conversation-message {
  width: fit-content;
  max-width: min(46rem, 88%);
  padding: 0.9rem 1rem;
  border: 1px solid rgb(0 76 151 / 12%);
  border-radius: 1rem 1rem 1rem 0.3rem;
  background: var(--color-sky-100);
}

.user-message .conversation-message {
  border-color: transparent;
  border-radius: 1rem 1rem 0.3rem;
  color: var(--color-white);
  background: var(--color-national-blue);
}

.onboarding-message-card {
  width: min(46rem, 94%);
  border: 0.14rem solid var(--color-corn-gold);
  background: linear-gradient(135deg, var(--color-white), var(--color-cream-50));
  box-shadow: 0 0.75rem 1.75rem rgb(0 39 77 / 12%);
}

.onboarding-message-heading {
  margin: 0 0 0.45rem;
  color: var(--color-deep-navy);
  font-size: 1rem;
  font-weight: 850;
}

.onboarding-message-action {
  display: inline-flex;
  margin-top: 0.85rem;
}

.message-role {
  margin: 0 0 0.35rem;
  color: var(--color-national-blue-700);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.message-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.message-header .message-role {
  margin: 0;
}

.message-footer {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.copy-message-button,
.message-download-trigger {
  min-height: 1.75rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid rgb(0 76 151 / 22%);
  border-radius: 999px;
  color: var(--color-national-blue-700);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 750;
  background: rgb(255 255 255 / 72%);
  cursor: pointer;
}

.copy-message-button:hover,
.message-download-trigger:hover {
  border-color: rgb(0 76 151 / 42%);
  background: var(--color-white);
}

.copy-message-button:focus-visible,
.message-download-trigger:focus-visible {
  outline: 3px solid var(--color-ffa-gold);
  outline-offset: 2px;
}

.copy-message-button:disabled {
  cursor: default;
  opacity: 0.75;
}

.message-download-menu {
  position: relative;
}

.message-download-trigger {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  list-style: none;
  user-select: none;
}

.message-download-trigger::-webkit-details-marker {
  display: none;
}

.message-download-trigger::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.5px solid currentcolor;
  border-bottom: 1.5px solid currentcolor;
  transform: translateY(-0.1rem) rotate(45deg);
}

.message-download-menu[open] .message-download-trigger::after {
  transform: translateY(0.1rem) rotate(225deg);
}

.message-download-options {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 0.35rem);
  width: max-content;
  min-width: 12.5rem;
  padding: 0.35rem;
  border: 1px solid rgb(11 58 83 / 20%);
  border-radius: 0.55rem;
  background: var(--color-white);
  box-shadow: 0 0.55rem 1.4rem rgb(11 58 83 / 18%);
}

.message-download-menu.opens-up .message-download-options {
  top: auto;
  bottom: calc(100% + 0.35rem);
}

.message-download-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 0.35rem;
  color: var(--color-deep-navy);
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.message-download-option:hover {
  background: rgb(0 76 151 / 8%);
}

.message-download-option:focus-visible {
  outline: 3px solid var(--color-ffa-gold);
  outline-offset: -1px;
}

.message-download-option:disabled {
  cursor: wait;
  opacity: 0.6;
}

.generated-message-download-status {
  min-height: 2.25rem;
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-left: 4px solid var(--color-national-blue-500);
  border-radius: 0.4rem;
  color: var(--color-deep-navy);
  background: #eef6fa;
  font-size: 0.82rem;
  font-weight: 700;
}

.generate-presentation-button {
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgb(11 58 83 / 28%);
  border-radius: 0.45rem;
  color: var(--color-deep-navy);
  background: #fff8d7;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.generate-presentation-button:hover {
  border-color: var(--color-deep-navy);
  background: #fff1a8;
}

.generate-presentation-button:focus-visible {
  outline: 3px solid var(--color-corn-gold);
  outline-offset: 2px;
}

.generate-presentation-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.generated-presentation-status {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  margin-top: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-left: 4px solid var(--color-corn-gold);
  border-radius: 0.4rem;
  color: var(--color-deep-navy);
  background: #fffbea;
  font-size: 0.86rem;
  font-weight: 700;
}

.generated-presentation-download {
  margin: 0;
}

.prepare-tomorrow-downloads {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid rgb(0 76 151 / 20%);
  border-left: 0.35rem solid var(--color-corn-gold);
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #fffbea, #eef6fa);
}

.prepare-tomorrow-downloads h3,
.prepare-tomorrow-downloads p {
  margin: 0;
}

.prepare-tomorrow-downloads h3 {
  color: var(--color-deep-navy);
  font-size: 0.95rem;
}

.prepare-tomorrow-downloads > p {
  margin-top: 0.25rem;
  color: var(--color-ink-650);
  font-size: 0.82rem;
}

.prepare-tomorrow-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.prepare-tomorrow-download-button {
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--color-national-blue-700);
  border-radius: 0.5rem;
  color: var(--color-white);
  background: var(--color-national-blue-700);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.prepare-tomorrow-download-button.is-docx {
  color: var(--color-deep-navy);
  background: var(--color-white);
}

.prepare-tomorrow-download-button:hover {
  filter: brightness(0.94);
}

.prepare-tomorrow-download-button:focus-visible {
  outline: 3px solid var(--color-corn-gold);
  outline-offset: 2px;
}

.prepare-tomorrow-download-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.prepare-tomorrow-download-status:empty {
  display: none;
}

.prepare-tomorrow-download-status:not(:empty) {
  margin-top: 0.6rem;
  color: var(--color-deep-navy);
  font-weight: 750;
}

.copy-message-fallback {
  position: fixed;
  inset: 0 auto auto -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.user-message .message-role {
  color: rgb(255 255 255 / 72%);
}

.message-content {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.user-message .message-content {
  white-space: pre-wrap;
}

.assistant-message .message-content > :first-child {
  margin-top: 0;
}

.assistant-message .message-content > :last-child {
  margin-bottom: 0;
}

.assistant-message .message-content h1,
.assistant-message .message-content h2,
.assistant-message .message-content h3,
.assistant-message .message-content h4,
.assistant-message .message-content h5,
.assistant-message .message-content h6 {
  margin: 1rem 0 0.35rem;
  color: var(--color-deep-navy);
  line-height: 1.25;
}

.assistant-message .message-content h1 { font-size: 1.35rem; }
.assistant-message .message-content h2 { font-size: 1.2rem; }
.assistant-message .message-content h3 { font-size: 1.05rem; }
.assistant-message .message-content h4,
.assistant-message .message-content h5,
.assistant-message .message-content h6 { font-size: 0.95rem; }

.assistant-message .message-content p,
.assistant-message .message-content ul,
.assistant-message .message-content ol,
.assistant-message .message-content blockquote,
.assistant-message .message-content pre {
  margin: 0.4rem 0 0.75rem;
}

.assistant-message .message-content ul,
.assistant-message .message-content ol {
  padding-left: 1.45rem;
}

.assistant-message .message-content li + li {
  margin-top: 0.25rem;
}

.assistant-message .message-content blockquote {
  padding: 0.55rem 0.75rem;
  border-left: 0.25rem solid var(--color-ffa-gold);
  color: var(--color-ink-muted);
  background: rgb(255 204 0 / 9%);
}

.assistant-message .message-content code {
  padding: 0.08rem 0.25rem;
  border-radius: 0.25rem;
  background: rgb(0 76 151 / 8%);
}

.assistant-message .message-content pre {
  padding: 0.75rem;
  overflow-x: auto;
  border-radius: 0.5rem;
  background: rgb(0 46 93 / 7%);
  white-space: pre-wrap;
}

.markdown-table-wrap {
  max-width: 100%;
  margin: 0.65rem 0 0.9rem;
  overflow-x: auto;
}

.assistant-message .message-content table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
}

.assistant-message .message-content th,
.assistant-message .message-content td {
  min-width: 10rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgb(0 76 151 / 28%);
  text-align: left;
  vertical-align: top;
}

.assistant-message .message-content th {
  color: var(--color-deep-navy);
  background: var(--color-sky-100);
}

.voiceflow-choice-group {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(0 76 151 / 14%);
}

.voiceflow-choice-prompt,
.voiceflow-choice-status {
  margin: 0;
  font-size: 0.78rem;
}

.voiceflow-choice-prompt {
  margin-bottom: 0.5rem;
  color: var(--color-national-blue-700);
  font-weight: 800;
}

.voiceflow-choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.voiceflow-choice-button {
  min-height: 2.5rem;
  padding: 0.48rem 0.8rem;
  border: 2px solid var(--color-national-blue);
  border-radius: 0.7rem;
  color: var(--color-national-blue-700);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  background: var(--color-white);
  cursor: pointer;
}

.voiceflow-choice-button:hover:not(:disabled) {
  color: var(--color-white);
  background: var(--color-national-blue);
}

.voiceflow-choice-button:focus-visible {
  outline: 3px solid var(--color-ffa-gold);
  outline-offset: 2px;
}

.voiceflow-choice-button:disabled {
  cursor: default;
  opacity: 0.58;
}

.voiceflow-choice-status {
  min-height: 1.2em;
  margin-top: 0.45rem;
  color: var(--color-ink-muted);
}

.composer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgb(0 76 151 / 11%);
}

.composer > label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.composer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.65rem;
}

.attachment-button {
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgb(0 76 151 / 22%);
  border-radius: 0.8rem;
  place-items: center;
  color: var(--color-deep-navy);
  background: var(--color-sky-100);
  font: inherit;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.attachment-button:hover {
  border-color: var(--color-national-blue);
  background: #dcecf8;
}

.attachment-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.attachment-list {
  display: flex;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.attachment-list[hidden] {
  display: none;
}

.attachment-chip {
  display: inline-flex;
  min-width: 0;
  max-width: min(100%, 18rem);
  padding: 0.5rem 0.7rem;
  border: 1px solid rgb(0 76 151 / 18%);
  border-radius: 0.7rem;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-deep-navy);
  background: var(--color-sky-100);
  font-size: 0.78rem;
  font-weight: 800;
}

.attachment-chip::before {
  content: "✓";
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  border-radius: 50%;
  place-items: center;
  color: var(--color-white);
  background: var(--color-national-blue);
  font-size: 0.68rem;
}

.attachment-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-button {
  display: inline-flex;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-white);
  background: var(--color-national-blue);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.send-button:hover {
  background: var(--color-national-blue-700);
}

.student-workspace-frame .composer textarea {
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
}

.student-workspace-frame .composer-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
}

.student-workspace-frame .send-button {
  width: auto;
  min-height: 2.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.65rem;
  align-self: end;
  justify-self: end;
  font-size: 0.86rem;
}

.project-list-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: stretch;
  border-radius: 0.75rem;
  transition: opacity 120ms ease, box-shadow 120ms ease;
}

.project-conversations-toggle {
  appearance: none;
  width: 2rem;
  min-height: 3.25rem;
  padding: 0;
  border: 0;
  border-radius: 0.55rem;
  box-shadow: none;
  color: var(--color-deep-navy);
  background: transparent;
  font-size: 0;
}

.project-conversations-toggle::before {
  display: inline-block;
  border: solid currentcolor;
  border-width: 0 0.13rem 0.13rem 0;
  padding: 0.22rem;
  content: "";
  transform: rotate(45deg) translate(-0.08rem, -0.08rem);
  transition: transform 120ms ease;
}

.project-conversations-toggle[aria-expanded="true"]::before {
  transform: rotate(225deg) translate(-0.08rem, -0.08rem);
}

.project-conversations-toggle:hover,
.project-conversations-toggle:focus-visible { background: transparent; }

.project-conversation-panel {
  display: grid;
  padding: 0.35rem 0.25rem 0.65rem 2rem;
  grid-column: 1 / -1;
  gap: 0.4rem;
}

.project-conversation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--color-ink-650);
  font-size: 0.72rem;
}

.project-new-conversation {
  appearance: none;
  padding: 0.28rem 0.45rem;
  border: 0;
  border-radius: 0.4rem;
  box-shadow: none;
  color: var(--color-national-blue);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
}

.project-new-conversation:hover,
.project-new-conversation:focus-visible { background: var(--color-sky-100); }

.project-list-item.is-dragging { opacity: 0.45; }
.project-list-item.is-drag-target {
  box-shadow: inset 0 0 0 2px var(--color-national-blue);
}

.project-drag-handle {
  position: relative;
  width: 1.8rem;
  min-height: 3.25rem;
  padding: 0;
  border: 0;
  border-radius: 0.6rem;
  color: var(--color-ink-650);
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.project-drag-handle::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  background: currentcolor;
  box-shadow:
    0 -0.38rem currentcolor,
    0 0.38rem currentcolor,
    0.38rem -0.38rem currentcolor,
    0.38rem 0 currentcolor,
    0.38rem 0.38rem currentcolor;
  content: "";
  transform: translate(-0.2rem, -50%);
}

.project-drag-handle:hover,
.project-drag-handle:focus-visible { background: var(--color-sky-100); }
.project-drag-handle:active { cursor: grabbing; }
.project-drag-handle:disabled { cursor: wait; opacity: 0.55; }

.project-menu { position: relative; }
.project-menu-toggle {
  display: grid;
  width: 2.25rem;
  height: 100%;
  min-height: 3.25rem;
  border-radius: 0.6rem;
  place-items: center;
  color: var(--color-deep-navy);
  cursor: pointer;
  list-style: none;
  font-size: 1.25rem;
  font-weight: 800;
}
.project-menu-toggle::-webkit-details-marker { display: none; }
.project-menu-toggle::before {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: currentcolor;
  box-shadow: 0 -0.45rem currentcolor, 0 0.45rem currentcolor;
  content: "";
}
.project-menu-toggle:hover,
.project-menu[open] .project-menu-toggle { background: var(--color-sky-100); }
.project-menu-actions {
  position: absolute;
  z-index: 20;
  top: calc(100% - 0.25rem);
  right: 0;
  display: grid;
  width: 11rem;
  padding: 0.35rem;
  border: 1px solid rgb(0 76 151 / 18%);
  border-radius: 0.65rem;
  background: var(--color-white);
  box-shadow: 0 0.75rem 2rem rgb(0 37 77 / 18%);
}
.project-menu-actions button {
  padding: 0.6rem 0.7rem;
  border: 0;
  border-radius: 0.4rem;
  text-align: left;
  color: var(--color-deep-navy);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.project-menu-actions button:hover { background: var(--color-sky-100); }
.project-menu-actions.is-renaming { width: min(18rem, calc(100vw - 2rem)); }
.project-rename-form { display: grid; gap: 0.45rem; padding: 0.35rem; }
.project-rename-form label { color: var(--color-deep-navy); font-size: 0.78rem; font-weight: 700; }
.project-rename-form input {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgb(0 76 151 / 35%);
  border-radius: 0.4rem;
  color: var(--color-deep-navy);
  background: var(--color-white);
  font: inherit;
}
.project-rename-form input:focus-visible {
  border-color: var(--color-sky-600);
  outline: 0.18rem solid rgb(0 132 197 / 22%);
}
.project-rename-controls { display: flex; justify-content: flex-end; gap: 0.3rem; }
.project-rename-controls button:first-child { background: var(--color-deep-navy); color: var(--color-white); }
.project-rename-controls button:disabled { cursor: wait; opacity: 0.6; }

.composer-note,
.workspace-status {
  color: var(--color-ink-650);
  font-size: 0.76rem;
}

.composer-note {
  margin: 0.45rem 0 0;
}

.workspace-status {
  min-height: 1.2rem;
  margin: 0.7rem 0 0;
}

.workspace-footer {
  display: flex;
  min-width: 0;
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgb(255 255 255 / 70%);
  background: var(--color-deep-navy);
  font-size: 0.72rem;
}

.workspace-footer .request-reference {
  color: rgb(255 255 255 / 52%);
}

.workspace-nav-link {
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.workspace-nav-link:hover,
.workspace-nav-link:focus-visible {
  color: var(--color-deep-navy);
  background: var(--color-corn-gold);
}

.management-main {
  width: min(88rem, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem) var(--space-page) 3rem;
}

.management-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.62fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.management-intro h1 {
  max-width: none;
  margin-bottom: 0.55rem;
  color: var(--color-deep-navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.management-intro p {
  max-width: 48rem;
  margin: 0;
}

.boundary-notice,
.teacher-review-banner,
.student-review-strip {
  display: flex;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(255 205 0 / 72%);
  border-left: 0.35rem solid var(--color-corn-gold);
  border-radius: 0.8rem;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--color-deep-navy);
  background: rgb(255 205 0 / 14%);
  font-size: 0.86rem;
  line-height: 1.45;
}

.management-status {
  min-height: 1.4rem;
  margin: 0 0 1rem;
  color: var(--color-forest-800);
  font-weight: 800;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.management-card {
  min-width: 0;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  border: 1px solid rgb(0 76 151 / 14%);
  border-top: 0.35rem solid var(--color-sky-blue);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 0.8rem 2rem rgb(0 39 77 / 7%);
}

.management-card:nth-child(even) {
  border-top-color: var(--color-corn-gold);
}

.management-card-wide {
  grid-column: 1 / -1;
}

.management-card-heading,
.student-record-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.management-card h2,
.management-card h3 {
  margin: 0;
  color: var(--color-deep-navy);
}

.management-card > p {
  color: var(--color-ink-650);
  line-height: 1.55;
}

.stacked-form {
  display: grid;
  gap: 0.65rem;
}

.stacked-form label,
.student-control-grid label,
.student-control-grid legend,
.safety-record label {
  color: var(--color-deep-navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.stacked-form label span {
  color: var(--color-ink-650);
  font-weight: 600;
}

.stacked-form .button-link,
.stacked-form .quiet-button {
  justify-self: start;
}

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

.form-grid-two label {
  display: grid;
  gap: 0.35rem;
}

.record-list {
  display: grid;
  margin: 1rem 0 0;
  padding: 0;
  gap: 0.55rem;
  list-style: none;
}

.record-list li {
  display: flex;
  padding: 0.75rem;
  border-radius: 0.75rem;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--color-deep-navy);
  background: rgb(0 76 151 / 6%);
}

.record-list span,
.empty-copy {
  color: var(--color-ink-650);
  font-size: 0.82rem;
}

.import-preview {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.8rem;
  background: rgb(0 76 151 / 6%);
}

.import-preview[hidden] {
  display: none;
}

.credential-vault {
  border-color: rgb(255 205 0 / 72%);
  background: rgb(255 251 230 / 98%);
}

.credential-vault[hidden] {
  display: none;
}

.credential-warning {
  font-weight: 800;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.8rem;
}

.credential-card {
  padding: 1rem;
  border: 1px solid rgb(0 76 151 / 18%);
  border-radius: 0.85rem;
  background: var(--color-white);
  break-inside: avoid;
}

.credential-card p {
  margin: 0.55rem 0;
  overflow-wrap: anywhere;
}

.credential-card code {
  color: var(--color-deep-navy);
  font-size: 0.92rem;
}

.danger-text {
  color: #8f1d1d;
}

.student-records,
.safety-records {
  display: grid;
  gap: 0.85rem;
}

.student-record,
.safety-record {
  padding: 1rem;
  border: 1px solid rgb(0 76 151 / 12%);
  border-radius: 0.9rem;
  background: rgb(248 251 255 / 90%);
}

.student-record-heading p,
.safety-record p {
  margin: 0.3rem 0 0;
  color: var(--color-ink-650);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.student-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
  gap: 0.8rem;
}

.student-control-grid > div,
.student-control-grid fieldset {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid rgb(0 76 151 / 11%);
  border-radius: 0.75rem;
  align-content: start;
  gap: 0.5rem;
  background: var(--color-white);
}

.mode-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.mode-checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 650;
}

.mode-checkboxes input {
  width: auto;
}

.safety-record {
  display: grid;
  gap: 0.6rem;
}

.student-auth-frame {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 80% 12%, rgb(255 205 0 / 16%), transparent 24rem),
    var(--color-paper);
}

.student-auth-header,
.student-auth-footer {
  display: flex;
  padding: 0.9rem var(--space-page);
  align-items: center;
  justify-content: space-between;
  color: var(--color-white);
  background: var(--color-deep-navy);
}

.student-auth-main {
  display: grid;
  padding: clamp(1.5rem, 5vw, 4rem) var(--space-page);
  place-items: center;
}

.student-auth-card {
  width: min(32rem, 100%);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid rgb(0 76 151 / 15%);
  border-top: 0.4rem solid var(--color-corn-gold);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 1.5rem 3rem rgb(0 39 77 / 12%);
}

.student-auth-card h1 {
  max-width: none;
  color: var(--color-deep-navy);
  font-size: clamp(2rem, 5vw, 3rem);
}

.student-auth-card > p {
  color: var(--color-ink-650);
  line-height: 1.6;
}

.teacher-review-banner {
  margin: 1rem 0;
}

.student-auth-footer {
  font-size: 0.78rem;
}

.student-review-strip {
  border-width: 0 0 1px;
  border-left-width: 0.35rem;
  border-radius: 0;
}

.student-workspace-main {
  min-height: calc(100vh - 12rem);
}

.student-safety-summary {
  margin-top: auto;
  padding: 0.8rem;
  border-radius: 0.75rem;
  background: rgb(255 205 0 / 12%);
}

.student-safety-summary h2 {
  margin: 0;
  color: var(--color-deep-navy);
  font-size: 0.9rem;
}

.student-safety-summary p {
  margin: 0.4rem 0 0;
  color: var(--color-ink-650);
  font-size: 0.78rem;
  line-height: 1.45;
}

.account-center-frame,
.student-account-frame {
  background:
    radial-gradient(circle at 86% 9%, rgb(255 205 0 / 15%), transparent 26rem),
    linear-gradient(145deg, #f8fbfd, var(--color-sky-100));
}

.account-center-navigation {
  display: grid;
  justify-items: end;
  gap: 0.75rem;
}

.account-center-main,
.student-account-main {
  display: grid;
  width: min(76rem, 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem) var(--space-page) 3.5rem;
  align-content: start;
  gap: 1rem;
}

.student-account-main {
  width: min(64rem, 100%);
}

.account-center-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.account-center-intro h1 {
  max-width: none;
  color: var(--color-deep-navy);
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1;
}

.account-center-intro p:not(.eyebrow) {
  max-width: 48rem;
  margin: 0.6rem 0 0;
  color: var(--color-ink-650);
}

.account-section-nav {
  display: flex;
  max-width: 31rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.account-section-nav a {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgb(0 76 151 / 13%);
  border-radius: 999px;
  color: var(--color-national-blue);
  background: rgb(255 255 255 / 72%);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.account-section-nav a:hover,
.account-section-nav a:focus-visible {
  background: var(--color-corn-gold);
}

.account-center-status {
  min-height: 1.35rem;
  margin: 0;
  color: var(--color-national-blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.account-card {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.65rem);
  scroll-margin-top: 1rem;
  border: 1px solid rgb(0 76 151 / 13%);
  border-top: 0.34rem solid var(--color-sky-blue, #6bb7df);
  border-radius: 1.15rem;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 0.9rem 2.4rem rgb(0 39 77 / 7%);
}

.account-card:nth-of-type(even) {
  border-top-color: var(--color-corn-gold);
}

.account-card h2,
.account-card h3,
.account-card h4 {
  margin: 0;
  color: var(--color-deep-navy);
}

.account-card h2 {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.account-card h3 {
  font-size: 1.08rem;
}

.account-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.account-card-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.compact-heading {
  align-items: center;
}

.compact-heading p,
.account-card > p,
.security-grid section > p {
  color: var(--color-ink-650);
  line-height: 1.55;
}

.compact-heading p {
  margin: 0.3rem 0 0;
}

.account-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 0;
  gap: 0.65rem;
}

.account-facts > div {
  min-width: 0;
  padding: 0.85rem;
  border-radius: 0.75rem;
  background: rgb(0 76 151 / 6%);
}

.account-facts dt {
  color: var(--color-ink-650);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-facts dd {
  margin: 0.35rem 0 0;
  color: var(--color-deep-navy);
  font-weight: 820;
  overflow-wrap: anywhere;
}

.profile-completion,
.available-units {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  color: var(--color-national-blue);
  background: var(--color-sky-100);
  font-size: 0.78rem;
}

.profile-section-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.enrichment-notice {
  padding: 0.8rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--color-primary, #176b54) 28%, #d8e5df);
  border-radius: 0.72rem;
  background: #f3faf7;
}

.enrichment-notice .eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
}

.enrichment-notice h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.enrichment-notice p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  line-height: 1.42;
}

.enrichment-boundary {
  color: var(--color-ink-650);
}

.enrichment-state {
  color: #315e50;
  font-size: 0.85rem !important;
  font-weight: 650;
}

.enrichment-consent {
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cfe1d9;
  border-radius: 0.62rem;
  background: #f8fbf9;
  color: var(--color-ink-800);
  font-size: 0.86rem;
  line-height: 1.4;
}

.state-instructional-context {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #9fc1dc;
  border-left: 0.3rem solid var(--color-national-blue);
  border-radius: 0.72rem;
  background: #f4f8fc;
}

.state-instructional-context[hidden] {
  display: none;
}

.state-instructional-context h3,
.state-instructional-context h4,
.state-instructional-context p {
  margin: 0;
}

.state-instructional-context h3 {
  font-size: 1.05rem;
}

.state-instructional-context > div > p:not(.eyebrow),
.state-instructional-requirement > p {
  margin-top: 0.3rem;
  color: var(--color-ink-650);
  font-size: 0.9rem;
  line-height: 1.45;
}

.state-instructional-requirement-list {
  display: grid;
  gap: 0.65rem;
}

.state-instructional-requirement {
  padding-top: 0.7rem;
  border-top: 1px solid #cbdce9;
}

.state-instructional-sources {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
}

.state-instructional-verified {
  font-size: 0.78rem !important;
}

.school-finder {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0;
}

.school-finder h3,
.school-finder p {
  margin-top: 0;
}

.school-option-list {
  display: grid;
  gap: 0.5rem;
}

.school-option {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #cad8d2;
  border-radius: 0.7rem;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.school-option:hover,
.school-option:focus-visible {
  border-color: #287a61;
  box-shadow: 0 0 0 3px rgb(40 122 97 / 14%);
}

.school-option span,
.selected-school span,
.selected-school small {
  display: block;
  color: #536761;
}

.selected-school {
  padding: 0.9rem;
  border-left: 4px solid #287a61;
  border-radius: 0.4rem;
  background: #f6faf8;
}

.manual-school-details {
  padding: 0.8rem;
  border: 1px solid #d7dfdc;
  border-radius: 0.7rem;
}

.manual-school-details > summary {
  cursor: pointer;
  font-weight: 650;
}

.profile-editor {
  border: 1px solid var(--color-border, #c8d7e4);
  border-radius: 0.75rem;
  background: #fff;
}

.profile-editor > summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-weight: 700;
}

.profile-editor-completion {
  color: #49677f;
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-section-form {
  padding: 0 1rem 1rem;
}

.profile-field {
  min-width: 0;
}

.profile-field-suggestion {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.25rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #b9d8ca;
  border-radius: 0.62rem;
  background: #f3faf7;
  color: var(--color-ink-800);
  font-size: 0.82rem;
  font-weight: 500;
}

.profile-field-suggestion[hidden] {
  display: none;
}

.profile-field-suggestion strong {
  color: #15543e;
  font-size: 0.8rem;
}

.profile-field-suggestion-value {
  white-space: normal;
}

.profile-field-suggestion small {
  color: var(--color-ink-650);
  font-weight: 500;
}

.profile-field-suggestion .quiet-button {
  justify-self: start;
  padding: 0.42rem 0.65rem;
}

.account-form label.profile-checkbox {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  gap: 0.55rem;
}

.profile-checkbox input {
  width: auto;
}

.account-form .profile-checkbox input[type="checkbox"] {
  flex: 0 0 1rem;
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  min-height: 1rem;
  margin: 0.12rem 0 0;
  padding: 0;
  border-radius: 0.2rem;
  accent-color: var(--color-primary, #176b54);
}

.saved-courses {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #d6e1e9;
}

.saved-course-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.saved-course-card {
  padding: 0.85rem 1rem;
  border: 1px solid #c8d7e4;
  border-radius: 0.75rem;
  background: #fff;
}

.saved-course-card h4,
.saved-course-card p {
  margin: 0 0 0.45rem;
}

.active-context-label {
  margin: 0.25rem 0 0;
  color: #49677f;
  font-size: 0.85rem;
  font-weight: 700;
}

.project-context-settings {
  position: relative;
}

.project-context-settings > summary {
  cursor: pointer;
  font-weight: 800;
  list-style-position: inside;
  white-space: nowrap;
}

.project-context-settings-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.6rem);
  right: 0;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgb(0 76 151 / 20%);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgb(0 34 68 / 18%);
}

.project-context-settings-panel label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.project-context-settings-panel select,
.project-context-settings-panel textarea {
  width: 100%;
}

.project-context-settings-panel .field-help {
  margin: 0 0 0.75rem;
  color: #49677f;
  font-size: 0.82rem;
}

.field-help {
  display: block;
  color: #49677f;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}

.lesson-template-panel {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgb(0 76 151 / 18%);
  border-radius: 0.85rem;
  background: #f7fbff;
}

.lesson-template-panel h4,
.lesson-template-panel p {
  margin-top: 0;
}

.lesson-template-panel > label {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0;
  font-weight: 800;
}

.lesson-template-current {
  display: flex;
  gap: 0.35rem 0.8rem;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 0.7rem 0.8rem;
  border-radius: 0.65rem;
  background: #fff;
}

.lesson-template-current span {
  color: #49677f;
  font-size: 0.86rem;
}

.memory-suggestion-item {
  list-style: none;
}

.memory-suggestion-card {
  max-width: 44rem;
  margin: 0.25rem 0 0 1rem;
  padding: 1rem;
  border: 2px solid #ffbf00;
  border-radius: 0.85rem;
  background: #fffaf0;
}

.memory-suggestion-card h3,
.memory-suggestion-card p {
  margin: 0 0 0.55rem;
}

.memory-suggestion-card textarea {
  width: 100%;
}

.memory-suggestion-field {
  color: #49677f;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
}

.privacy-boundary,
.billing-boundary {
  margin: 1rem 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgb(255 205 0 / 55%);
  border-left: 0.32rem solid var(--color-corn-gold);
  border-radius: 0.75rem;
  color: var(--color-deep-navy);
  background: rgb(255 205 0 / 12%);
  font-size: 0.8rem;
  line-height: 1.5;
}

.account-form {
  display: grid;
  gap: 0.72rem;
}

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

.account-form label,
.billing-interval {
  display: grid;
  gap: 0.35rem;
  color: var(--color-deep-navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.account-form label span {
  color: var(--color-ink-650);
  font-weight: 600;
}

.account-form input,
.account-form select,
.billing-interval select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.68rem 0.78rem;
  border: 1px solid rgb(0 76 151 / 22%);
  border-radius: 0.68rem;
  color: var(--color-ink-900);
  background: var(--color-white);
  font: inherit;
}

.account-form .button-link,
.account-form .quiet-button {
  justify-self: start;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
  gap: 1rem;
}

.security-grid > section {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgb(0 76 151 / 11%);
  border-radius: 0.85rem;
  background: rgb(248 251 255 / 90%);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mfa-setup-result,
.recovery-code-panel {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  background: var(--color-sky-100);
}

.mfa-setup-result code {
  overflow-wrap: anywhere;
}

.recovery-code-panel {
  border: 0.12rem dashed var(--color-national-blue);
  background: var(--color-white);
}

.recovery-code-panel ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-left: 1.8rem;
  gap: 0.35rem 1rem;
}

.session-section {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgb(0 76 151 / 12%);
}

.session-list {
  display: grid;
  margin-top: 0.75rem;
  gap: 0.55rem;
}

.session-record {
  display: flex;
  padding: 0.8rem;
  border: 1px solid rgb(0 76 151 / 10%);
  border-radius: 0.72rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgb(0 76 151 / 4%);
}

.session-record p {
  margin: 0.25rem 0;
  color: var(--color-ink-650);
  font-size: 0.8rem;
}

.session-record span {
  color: var(--color-ink-650);
  font-size: 0.72rem;
}

.billing-interval {
  width: min(16rem, 100%);
  margin: 1rem 0;
}

.plan-grid,
.token-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.purchase-card {
  display: grid;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgb(0 76 151 / 13%);
  border-radius: 0.85rem;
  align-content: start;
  gap: 0.65rem;
  background: rgb(248 251 255 / 94%);
}

.purchase-card strong {
  color: var(--color-national-blue);
  font-size: 1.05rem;
}

.purchase-card p {
  margin: 0;
  color: var(--color-ink-650);
  font-size: 0.8rem;
  line-height: 1.45;
}

.purchase-card .button-link {
  justify-self: start;
  margin-top: auto;
}

.auto-renew-panel {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgb(0 76 151 / 14%);
  border-radius: 0.9rem;
  background: rgb(248 251 255 / 94%);
}

.auto-renew-panel > p {
  color: var(--color-ink-650);
  line-height: 1.55;
}

.auto-renew-state {
  padding: 0.38rem 0.6rem;
  border-radius: 999px;
  color: var(--color-national-blue);
  background: var(--color-sky-100);
  font-size: 0.72rem;
  font-weight: 820;
}

.toggle-control,
.consent-control {
  display: flex !important;
  padding: 0.8rem;
  border: 1px solid rgb(0 76 151 / 13%);
  border-radius: 0.75rem;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--color-white);
  line-height: 1.45;
}

.toggle-control {
  align-items: center;
}

.toggle-control input,
.consent-control input {
  width: 1.1rem;
  min-width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  margin: 0.12rem 0 0;
  accent-color: var(--color-national-blue);
}

.auto-renew-trigger {
  margin: 0;
  color: var(--color-ink-650);
  font-size: 0.8rem;
}

.auto-renew-trigger strong {
  color: var(--color-deep-navy);
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0 1.25rem;
  gap: 0.8rem;
}

.usage-grid > div {
  display: grid;
  padding: 0.85rem;
  border-radius: 0.8rem;
  gap: 0.35rem;
  background: rgb(0 76 151 / 6%);
}

.usage-grid .recorded-token-usage {
  grid-column: 1 / -1;
  border: 1px solid rgb(0 76 151 / 18%);
  background: var(--color-sky-100);
}

.recorded-token-usage small {
  color: var(--color-ink-650);
  line-height: 1.4;
}

.usage-grid span {
  color: var(--color-ink-650);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.usage-grid progress {
  width: 100%;
  accent-color: var(--color-national-blue);
}

.account-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.student-password-form {
  max-width: 34rem;
  margin-top: 1rem;
}

@media (max-width: 70rem) {
  .management-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .management-card-wide {
    grid-column: 1 / -1;
  }

  .student-control-grid {
    grid-template-columns: 1fr;
  }

  .account-center-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-section-nav {
    justify-content: flex-start;
  }

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

@media (max-width: 48rem) {
  .management-intro,
  .management-grid,
  .form-grid-two {
    grid-template-columns: 1fr;
  }

  .management-card-wide {
    grid-column: auto;
  }

  .management-card-heading,
  .student-record-heading {
    flex-direction: column;
  }

  .credential-grid {
    grid-template-columns: 1fr;
  }

  .student-auth-header,
  .student-auth-footer {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .workspace-header {
    align-items: flex-start;
  }

  .workspace-account {
    gap: 0.4rem;
    flex-wrap: wrap;
  }

  .account-label {
    display: none;
  }

  .account-form-grid,
  .security-grid,
  .account-facts,
  .usage-grid,
  .plan-grid,
  .token-pack-grid {
    grid-template-columns: 1fr;
  }

  .account-card-heading,
  .account-action-card,
  .session-record {
    align-items: flex-start;
    flex-direction: column;
  }

  .recovery-code-panel ol {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: var(--color-white);
  }

  body * {
    visibility: hidden;
  }

  .credential-vault,
  .credential-vault *,
  .recovery-code-panel.is-printing,
  .recovery-code-panel.is-printing * {
    visibility: visible;
  }

  .credential-vault,
  .recovery-code-panel.is-printing {
    position: absolute;
    inset: 0;
    display: block;
    border: 0;
    box-shadow: none;
  }

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

  .recovery-code-panel.is-printing ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .no-print {
    display: none !important;
  }

}

@media (max-width: 60rem) {
  .workspace-main {
    grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
  }

  .agent-state {
    display: none;
  }

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

  .conversation-header > div,
  .conversation-controls {
    width: 100%;
  }

  .conversation-controls .mode-control {
    flex: 1 1 0;
  }

  .conversation-controls select {
    width: 100%;
  }
}

@media (max-width: 44rem) {
  .login-panel,
  .signup-panel,
  .login-choice-grid {
    grid-template-columns: 1fr;
  }

  .subscription-plan-grid {
    grid-template-columns: 1fr;
  }

  .workspace-header {
    align-items: flex-start;
  }

  .workspace-account {
    flex-wrap: wrap;
  }

  .account-label {
    max-width: 11rem;
  }

  .workspace-main {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    min-height: auto;
  }

  .project-navigation {
    max-height: 12rem;
  }

  .conversation-panel {
    min-height: 34rem;
  }

  .conversation-transcript {
    flex-direction: column-reverse;
  }

  .prompt-navigation {
    width: 100%;
    padding: 0.5rem 0.25rem 0;
    flex: 0 0 auto;
  }

  .prompt-navigation-markers {
    display: none;
  }

  .prompt-navigation-select-label {
    display: grid;
    width: 100%;
    gap: 0.25rem;
  }

  .prompt-navigation-select-label select {
    width: 100%;
    padding: 0.55rem 0.65rem;
  }

  .workspace-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 30rem) {
  .workspace-header {
    flex-direction: column;
  }

  .workspace-account {
    width: 100%;
    justify-content: space-between;
  }

  .account-label {
    max-width: 13rem;
  }

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

  .conversation-header > div {
    width: 100%;
  }

  .conversation-header h2 {
    max-width: 100%;
  }

  .conversation-controls {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .mode-control,
  .mode-control select {
    width: 100%;
  }

  .conversation-message {
    max-width: 94%;
  }

  .composer-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .send-button {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .student-workspace-frame .composer-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .student-workspace-frame .send-button {
    grid-column: auto;
    justify-content: flex-start;
  }

  .workspace-footer .request-reference {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.presentation-visual-dialog {
  width: min(68rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  color: var(--color-deep-navy);
  background: var(--color-white);
  box-shadow: 0 1.5rem 4rem rgb(0 39 77 / 32%);
}

.presentation-visual-dialog::backdrop { background: rgb(0 39 77 / 58%); }
.presentation-visual-dialog.is-fallback {
  position: fixed;
  inset: 1rem;
  z-index: 1000;
  display: block;
  margin: auto;
  overflow: auto;
}
.presentation-visual-dialog > form { padding: clamp(1rem, 3vw, 2rem); }
.presentation-visual-dialog h2 { margin-top: 0; }
.presentation-visual-list { display: grid; gap: 1rem; margin: 1.25rem 0; }
.presentation-visual-list fieldset {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgb(0 76 151 / 24%);
  border-radius: .75rem;
}
.presentation-visual-list legend { padding: 0 .4rem; font-weight: 800; }
.presentation-visual-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.presentation-visual-choice {
  display: grid;
  grid-template-columns: auto minmax(7rem, 10rem) 1fr;
  gap: .7rem;
  align-items: start;
  padding: .7rem;
  border: 2px solid rgb(0 76 151 / 18%);
  border-radius: .65rem;
  cursor: pointer;
}
.presentation-visual-choice:has(input:checked) { border-color: var(--color-sky-600); background: var(--color-sky-100); }
.presentation-visual-choice input,
.presentation-visual-none input { width: 1.2rem; height: 1.2rem; accent-color: var(--color-sky-600); }
.presentation-visual-preview {
  display: grid;
  min-height: 6rem;
  place-items: center;
  overflow: hidden;
  border-radius: .45rem;
  color: #476782;
  background: #e8f0f5;
  font-size: .8rem;
}
.presentation-visual-preview.is-loading::after { content: "Loading preview…"; }
.presentation-visual-preview img { width: 100%; height: 7rem; object-fit: cover; }
.presentation-visual-details { display: grid; gap: .3rem; font-size: .8rem; overflow-wrap: anywhere; }
.presentation-visual-details strong { font-size: .95rem; }
.presentation-visual-none { grid-column: 1 / -1; padding: .5rem; cursor: pointer; }
.presentation-visual-notice { padding: .8rem; border-radius: .55rem; background: #eef7ff; }
.presentation-visual-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; }

.enrichment-review {
  margin-block: 1.5rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgb(26 98 71 / 24%);
  border-radius: .9rem;
  background: #f7fbf7;
}

.enrichment-processing {
  display: flex;
  gap: .7rem;
  align-items: center;
  margin: 1rem 0;
  padding: .8rem 1rem;
  border: 1px solid rgb(0 78 145 / 22%);
  border-radius: .7rem;
  color: var(--color-deep-navy);
  background: #eef7ff;
  font-weight: 700;
}

.enrichment-processing-spinner {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  border: .18rem solid rgb(0 78 145 / 24%);
  border-top-color: var(--color-deep-navy);
  border-radius: 50%;
  animation: enrichment-processing-spin .8s linear infinite;
}

@keyframes enrichment-processing-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .enrichment-processing-spinner { animation: none; }
}

.enrichment-fact-list {
  display: grid;
  gap: 1rem;
}

.enrichment-fact {
  padding: 1rem;
  border: 1px solid rgb(0 39 77 / 16%);
  border-left: .35rem solid #63788a;
  border-radius: .7rem;
  background: var(--color-white);
}

.enrichment-fact-suggested { border-left-color: #b26a00; }
.enrichment-fact-accepted,
.enrichment-fact-overridden { border-left-color: #1a6247; }
.enrichment-fact-rejected { opacity: .76; }
.enrichment-fact h4 { margin: 0; }
.enrichment-fact-value { margin-block: .45rem; font-size: 1.05rem; font-weight: 700; }
.enrichment-fact-source,
.enrichment-fact-state { margin-block: .35rem; color: #476176; font-size: .88rem; }
.enrichment-fact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  margin-top: .8rem;
}
.enrichment-fact-actions input { flex: 1 1 16rem; min-width: 10rem; }
.enrichment-fact-transparency { padding-top: .45rem; border-top: 1px solid rgb(0 39 77 / 10%); }

.intelligence-capability-panel {
  margin-block: 1.5rem;
  padding: clamp(.9rem, 1.8vw, 1.25rem);
  border: 1px solid rgb(0 39 77 / 16%);
  border-radius: .9rem;
  background: #f8fafc;
}
.intelligence-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .85rem;
}
.intelligence-capability-grid article {
  padding: .8rem .9rem;
  border: 1px solid rgb(0 39 77 / 12%);
  border-radius: .65rem;
  background: var(--color-white);
}
.intelligence-capability-grid h4 { margin: 0 0 .4rem; }
.intelligence-capability-grid ul { margin: 0; padding-left: 1.15rem; }
.intelligence-capability-grid li { margin-block: .3rem; color: #334f65; font-size: .9rem; }
.intelligence-capability-privacy { margin: .85rem 0 0; color: #476176; font-size: .88rem; }
@media (max-width: 760px) {
  .presentation-visual-choices { grid-template-columns: 1fr; }
  .presentation-visual-choice { grid-template-columns: auto minmax(6rem, 8rem) 1fr; }
  .presentation-visual-actions > * { width: 100%; justify-content: center; }
  .enrichment-fact-actions > * { width: 100%; justify-content: center; }
  .intelligence-capability-grid { grid-template-columns: 1fr; }
}
.program-quick-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-bottom: 1px solid var(--border-color, #d9e0e7);
  background: linear-gradient(135deg, #f8fbff 0%, #f5fbf6 100%);
}

.program-actions-heading {
  min-width: 9rem;
}

.program-actions-heading .eyebrow {
  margin: 0;
  white-space: nowrap;
  font-size: 0.72rem;
}

.program-actions-heading h2 {
  max-width: 10rem;
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  line-height: 1.15;
}

.program-action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.45rem;
}

.program-action-card {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid #cad6e2;
  border-radius: 10px;
  color: #12233a;
  background: #fff;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px rgb(20 42 67 / 6%);
}

.program-action-card:hover,
.program-action-card:focus-visible {
  border-color: #0066b3;
  box-shadow: 0 6px 18px rgb(0 102 179 / 14%);
  transform: translateY(-1px);
}

.program-action-card strong,
.program-action-card small {
  display: block;
}

.program-action-card small {
  margin-top: 0.05rem;
  color: #526273;
  overflow: hidden;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-action-icon {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e8f3ff;
  color: #005b9f;
  font-size: 0.88rem;
  font-weight: 800;
}

.program-action-card.field .program-action-icon {
  background: #e9f7eb;
  color: #216b2c;
}

.program-action-card.evidence .program-action-icon {
  background: #fff4cf;
  color: #805f00;
}

.program-action-card.more .program-action-icon {
  background: #eee9ff;
  color: #5632a8;
}

.teacher-tools-dialog {
  width: min(1080px, calc(100vw - 2rem));
  overflow: auto;
}

.teacher-tool-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr);
  gap: 0.75rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.teacher-tool-controls label {
  display: grid;
  gap: 0.35rem;
  font-weight: 750;
}

.teacher-tool-controls input,
.teacher-tool-controls select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #b9c8d8;
  border-radius: 10px;
  color: #17283b;
  background: #fff;
  font: inherit;
}

.teacher-tool-count,
.teacher-tool-empty {
  margin: 0;
  padding: 0.75rem clamp(1rem, 4vw, 2rem) 0;
  color: #526579;
}

.teacher-tool-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 clamp(1rem, 4vw, 2rem) 1rem;
}

.teacher-tool-library .program-action-card {
  min-height: 78px;
}

.teacher-tool-library .program-action-card small {
  white-space: normal;
}

.teacher-tool-library-actions {
  padding: 0 clamp(1rem, 4vw, 2rem) 1.5rem;
}

@media (max-width: 700px) {
  .teacher-tool-controls,
  .teacher-tool-library {
    grid-template-columns: 1fr;
  }
}

.program-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: #17283b;
  background: #fff;
  box-shadow: 0 24px 80px rgb(10 28 48 / 28%);
}

.program-dialog::backdrop {
  background: rgb(8 24 41 / 58%);
  backdrop-filter: blur(2px);
}

.state-library-dialog {
  width: min(980px, calc(100vw - 2rem));
}

.state-library-content {
  display: grid;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2rem) 1.25rem;
}

.state-library-panel {
  padding: 1rem;
  border: 1px solid #d4dee8;
  border-radius: 14px;
  background: #f8fafc;
}

.state-library-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.state-library-section-heading h3,
.state-library-resource h3 {
  margin: 0;
}

.state-library-section-heading p,
.state-library-resource-meta,
.state-library-status {
  color: #526579;
}

.state-library-section-heading p {
  margin: 0.3rem 0 0;
}

.state-library-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 180px) auto;
  align-items: end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.state-library-search label {
  display: grid;
  gap: 0.3rem;
  font-weight: 800;
}

.state-library-search label span {
  color: #657487;
  font-size: 0.82rem;
  font-weight: 500;
}

.state-library-search input {
  min-height: 44px;
  padding: 0.6rem 0.7rem;
  border: 1px solid #aebdcc;
  border-radius: 9px;
  font: inherit;
}

.state-library-status {
  margin: 0.9rem 0 0.5rem;
}

.state-library-results {
  display: grid;
  gap: 0.65rem;
}

.state-library-resource {
  padding: 0.8rem;
  border: 1px solid #d4dee8;
  border-radius: 10px;
  background: #fff;
}

.state-library-resource h3 {
  font-size: 1rem;
}

.state-library-resource p {
  margin: 0.35rem 0;
}

.state-library-badge {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #e9eef3;
  color: #405368;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.state-library-badge.approved,
.state-library-badge.published {
  background: #e3f4e7;
  color: #1f672f;
}

.state-library-badge.pending {
  background: #fff2c7;
  color: #705600;
}

.state-library-badge.failed {
  background: #fde8e8;
  color: #952c2c;
}

.state-library-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid #d4dee8;
  background: #fff;
}

@media (max-width: 720px) {
  .state-library-search {
    grid-template-columns: 1fr;
  }

  .state-library-section-heading {
    display: grid;
  }
}

.program-dialog-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  margin: 0.55rem 0.55rem 0 0;
}

.program-dialog-close button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #eff3f7;
  color: #25384c;
  font-size: 1.5rem;
  cursor: pointer;
}

.program-dialog-heading,
.program-form,
.evidence-summary,
.evidence-list,
.field-session-console {
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.program-dialog-heading {
  padding-top: 1.6rem;
}

.program-dialog-heading h2 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.program-dialog-heading p:last-child {
  max-width: 65ch;
  color: #516275;
}

.program-form {
  padding-block: 1rem 1.5rem;
}

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

.program-form-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.program-form-grid label span {
  color: #657487;
  font-size: 0.86rem;
  font-weight: 500;
}

.program-form-grid .wide {
  grid-column: 1 / -1;
}

.program-form-grid input,
.program-form-grid select,
.program-form-grid textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.72rem;
  border: 1px solid #b9c5d1;
  border-radius: 9px;
  color: #17283b;
  background: #fff;
  font: inherit;
}

.program-form-grid textarea {
  resize: vertical;
}

.program-checkbox-group,
.survey-question-builder,
.survey-response-field {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid #cbd5df;
  border-radius: 10px;
}

.program-checkbox-group legend,
.survey-question-builder legend,
.survey-response-field legend {
  padding-inline: 0.25rem;
  font-weight: 800;
}

.program-checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
}

.program-checkbox-group label,
.survey-required-control,
.survey-response-field label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.program-checkbox-group input,
.survey-required-control input,
.survey-response-field input[type="radio"],
.survey-response-field input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.survey-dialog {
  width: min(850px, calc(100vw - 2rem));
}

.survey-question-card,
.survey-management-card,
.survey-response-field {
  margin-bottom: 0.8rem;
  padding: 0.85rem;
  border: 1px solid #d7dfe7;
  border-radius: 12px;
  background: #f9fbfd;
}

.survey-question-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.survey-question-card > label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.survey-management {
  padding: 0 2rem 1.5rem;
}

.survey-management h3,
.survey-management-card h4 {
  margin-top: 0;
}

.survey-management-card h4 a {
  color: var(--navy, #002d55);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.survey-owner-preview {
  margin: 0.8rem 0;
  padding: 0.85rem;
  border-left: 4px solid var(--gold, #ffcc00);
  border-radius: 8px;
  background: #fff;
}

.survey-owner-preview h5,
.survey-owner-preview p {
  margin-top: 0;
}

.survey-owner-preview > ol {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.4rem;
}

.survey-owner-preview .evidence-receipt-meta {
  display: block;
  margin-top: 0.2rem;
}

.survey-response-questions {
  display: grid;
  gap: 0.8rem;
}

.survey-response-field label {
  margin-top: 0.55rem;
}

.survey-response-field > input,
.survey-response-field > textarea,
.survey-response-field > select {
  width: 100%;
  min-height: 46px;
  margin-top: 0.55rem;
  padding: 0.65rem 0.72rem;
  border: 1px solid #b9c5d1;
  border-radius: 9px;
  font: inherit;
}

.teacher-survey-inbox {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid #d7dfe7;
  border-radius: 14px;
  background: #f3f7fb;
}

.teacher-survey-inbox h2,
.teacher-survey-inbox h3,
.teacher-survey-inbox p {
  margin: 0;
}

.teacher-survey-inbox-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.teacher-survey-inbox-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid #d7dfe7;
  border-radius: 10px;
  background: #fff;
}

.teacher-survey-inbox-card p {
  margin-top: 0.25rem;
  color: #596a7d;
  font-size: 0.86rem;
}

.program-privacy-note,
.field-safety-boundary {
  margin: 1rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: #f3f7fb;
  color: #405166;
  font-size: 0.92rem;
}

.field-safety-boundary {
  border-left: 4px solid #c68c00;
  background: #fff8df;
}

.field-safety-boundary p {
  margin: 0.25rem 0 0;
}

.field-session-console {
  padding-block: 0 1.5rem;
}

.field-console-card,
.evidence-receipt {
  margin: 0 0 0.75rem;
  padding: 0.9rem;
  border: 1px solid #d7dfe7;
  border-radius: 12px;
  background: #fff;
}

.field-console-actions,
.evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.field-console-actions button,
.evidence-actions button {
  min-height: 44px;
}

.field-safety-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: #fff8df;
}

.field-safety-confirmation input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
}

.field-station-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.9rem 0;
  padding: 0;
  list-style: none;
}

.field-station-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 52px;
  padding: 0.7rem;
  border-radius: 10px;
  background: #f1f7f2;
}

.field-timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 800;
}

.evidence-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-block: 0.8rem;
}

.evidence-summary span {
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  background: #eef3f8;
  font-size: 0.9rem;
}

.evidence-list {
  max-height: 55vh;
  overflow: auto;
  padding-bottom: 1rem;
}

.evidence-receipt h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.evidence-receipt-meta {
  color: #596a7d;
  font-size: 0.88rem;
}

.evidence-dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.evidence-dimensions span {
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: #f2f6f9;
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .program-action-buttons,
  .program-form-grid {
    grid-template-columns: 1fr;
  }

  .program-action-buttons {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .program-action-card {
    flex: 0 0 auto;
    min-width: 10.75rem;
  }

  .program-action-card small {
    display: none;
  }

  .program-form-grid .wide {
    grid-column: auto;
  }

  .teacher-survey-inbox-card {
    align-items: stretch;
    flex-direction: column;
  }

  .program-quick-actions {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.4rem 0.55rem;
  }

  .program-dialog {
    width: 100vw;
    max-width: none;
    max-height: 94vh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }
}
/* Keep the deferred school-student entry visible and readable. */
.student-login-unavailable {
  background: #f1f2f3;
  border-color: #c5c8cc;
  color: #505760;
  box-shadow: none;
}
.student-login-unavailable input:disabled,
.student-login-unavailable button:disabled {
  background: #e1e3e6;
  color: #505760;
  border-color: #b9bec5;
  cursor: not-allowed;
  opacity: 1;
}

/* Faculty reports use the existing Breezy palette and keyboard-native controls. */
.faculty-dashboard { max-width: 1440px; margin: 0 auto; padding: 2rem; }
.faculty-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.faculty-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-block: 1.5rem; }
.faculty-filters label { display: grid; gap: .4rem; flex: 1 1 180px; }
.faculty-filters select, .faculty-filters input { width: 100%; }
.faculty-access, .faculty-coverage { padding: 1rem; background: #edf5fc; border-left: 4px solid #004c97; border-radius: .5rem; }
.faculty-access.is-enabled { background: #e9f7eb; border-left-color: #216b2c; color: #164b20; font-weight: 750; }
.faculty-access.is-disabled { background: #fff4cf; border-left-color: #b78100; color: #5f4500; font-weight: 750; }
.faculty-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block: 1.5rem; }
.faculty-tools button { display: grid; text-align: left; gap: .6rem; padding: 1.3rem; border: 2px solid #bdcbd9; border-radius: .8rem; background: white; color: #06294b; }
.faculty-tools button[aria-pressed="true"] { border-color: #004c97; background: #edf5fc; }
.faculty-tools button:disabled { border-color: #d6dce2; background: #f2f4f6; color: #65717d; cursor: not-allowed; opacity: 1; }
.faculty-tools strong { font-size: 1.15rem; }
.faculty-table-wrap { overflow-x: auto; margin-block: 1.5rem; }
.faculty-table-wrap table { width: 100%; border-collapse: collapse; }
.faculty-table-wrap th, .faculty-table-wrap td { padding: .8rem; text-align: left; border-bottom: 1px solid #bdcbd9; vertical-align: top; }
.faculty-table-wrap th { background: #edf5fc; }
.faculty-dashboard details { border: 1px solid #bdcbd9; padding: 1rem; margin-block: .6rem; border-radius: .5rem; }
.faculty-dashboard pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; }
@media (max-width: 700px) { .faculty-tools { grid-template-columns: 1fr; } .faculty-dashboard { padding: 1rem; } }
.faculty-heading h1 { max-width: none; margin: .4rem 0 .7rem; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; }
.faculty-dashboard select, .faculty-dashboard input { min-height: 44px; padding: .6rem .8rem; border: 1px solid #b5c7d8; border-radius: .5rem; background: white; color: #06294b; font: inherit; }
.faculty-dashboard [data-faculty-participation] label { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.faculty-table-wrap table { min-width: 950px; }
.faculty-table-wrap caption { text-align: left; padding-block: .5rem; }
