:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #1f2933;
  --muted: #667085;
  --line: #d9e1e8;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --forest: #24483c;
  --blue: #2d5f88;
  --gold: #ba8b29;
  --red: #9f463d;
  --shadow: 0 18px 60px rgba(31, 41, 51, 0.12);
}

* {
  box-sizing: border-box;
}

*:focus,
*:focus-visible {
  -webkit-focus-ring-color: transparent !important;
  outline: 0 !important;
  outline-offset: 0 !important;
}

button:focus-visible,
button:focus,
a:focus-visible,
a:focus,
input:focus-visible,
input:focus,
select:focus-visible,
select:focus,
textarea:focus-visible,
textarea:focus,
summary:focus,
summary:focus-visible,
[tabindex]:focus,
[tabindex]:focus-visible {
  box-shadow: none !important;
  outline: 0 !important;
}

details > summary:focus,
details > summary:focus-visible {
  box-shadow: none;
  outline: none;
}

[v-cloak] {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}

button {
  -webkit-appearance: none;
  appearance: none;
}

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

button,
a {
  border: 0;
  border-radius: 6px;
  background: var(--forest);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  text-decoration: none;
}

button:hover,
a:hover {
  background: #18342b;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:disabled:hover {
  background: var(--forest);
}

#app {
  display: block;
  min-height: 100vh;
}

.public-site {
  background: #f7f5ef;
  min-height: 100vh;
}

.public-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 225, 232, 0.9);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 12px clamp(18px, 4vw, 52px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.public-brand,
.public-brand:hover {
  background: transparent;
  min-height: 0;
  padding: 0;
}

.public-brand img {
  display: block;
  height: 68px;
  object-fit: contain;
  width: 196px;
}

.public-nav nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.public-nav nav a,
.public-nav nav button,
.public-nav-menu-trigger {
  background: transparent;
  color: var(--ink);
  min-height: 34px;
}

.public-nav nav a:hover,
.public-nav nav button:hover,
.public-nav nav button.active,
.public-nav-menu.active .public-nav-menu-trigger,
.public-nav-menu:hover .public-nav-menu-trigger,
.public-nav-menu-trigger:hover {
  background: #e8f0ed;
  color: var(--forest);
}

.public-nav-menu {
  display: inline-flex;
  position: relative;
}

.public-nav-menu-trigger {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  padding: 0 12px;
}

.public-nav-menu-trigger::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  content: "";
  font-size: 0.72rem;
  margin-left: 7px;
}

.public-nav-menu div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  min-width: 190px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 60;
}

.public-nav-menu div {
  display: none;
}

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

.public-nav-menu div button {
  justify-content: flex-start;
  width: 100%;
}

.public-hero {
  color: #fff;
  display: grid;
  min-height: clamp(520px, 78vh, 720px);
  overflow: hidden;
  position: relative;
}

.public-hero-bg,
.public-hero-overlay,
.public-hero-content {
  grid-area: 1 / 1;
}

.public-hero-bg {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.public-hero-overlay {
  background: linear-gradient(90deg, rgba(15, 31, 25, 0.88), rgba(15, 31, 25, 0.58) 45%, rgba(15, 31, 25, 0.18));
}

.public-hero-content {
  align-self: center;
  max-width: 760px;
  padding: clamp(36px, 7vw, 92px);
  position: relative;
}

.public-hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
  max-width: 12ch;
}

.public-hero-content p:not(.eyebrow) {
  color: #f5ead0;
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 620px;
}

.public-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.public-hero-actions .light,
.public-library-section .light {
  background: #f5e7bf;
  color: #172820;
}

.public-hero-actions .light:hover,
.public-library-section .light:hover {
  background: #ead59c;
}

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

.public-band article {
  background: #fff;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: clamp(22px, 4vw, 38px);
  position: relative;
}

.public-band article:first-child {
  border-left: 0;
}

.public-entry-card::before {
  border-radius: 999px;
  content: "";
  height: 6px;
  left: clamp(22px, 4vw, 38px);
  position: absolute;
  right: clamp(22px, 4vw, 38px);
  top: 16px;
}

.public-entry-card {
  padding-top: clamp(34px, 5vw, 48px);
}

.entry-academy::before {
  background: #2f674e;
}

.entry-family::before {
  background: #9a7b2f;
}

.entry-trade::before {
  background: #193985;
}

.entry-support::before {
  background: #6d4631;
}

.public-band button {
  justify-self: start;
  margin-top: 6px;
}

.public-entry-card button {
  background: #f8faf9;
}

.public-band span,
.public-program-card span {
  color: var(--muted);
  display: block;
}

.public-band > article > span,
.public-section .eyebrow,
.public-split-section .eyebrow,
.public-portal-section .eyebrow {
  color: var(--gold);
  font-weight: 900;
}

.public-band strong {
  font-size: 1.18rem;
}

.public-band p,
.public-section p,
.public-split-section p,
.public-program-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.public-about-section {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  background: #fbfaf6;
  min-height: auto;
  padding: clamp(34px, 6vw, 76px) clamp(18px, 5vw, 72px);
}

.public-about-section > div:first-child {
  display: grid;
  gap: 14px;
  max-width: 680px;
}

.public-about-section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
  line-height: 1.06;
  margin: 0;
}

.public-about-section p,
.public-value-grid p,
.public-team-grid p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.public-value-grid,
.public-team-grid {
  display: grid;
  gap: 12px;
}

.public-value-grid article,
.public-team-grid article,
.public-visit-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.06);
  display: grid;
  gap: 8px;
  padding: 18px;
}

.public-value-grid strong,
.public-team-grid strong,
.public-visit-card strong {
  font-size: 1.05rem;
}

.public-section,
.public-split-section,
.public-portal-section {
  min-height: calc(100vh - 83px);
  padding: clamp(34px, 6vw, 76px) clamp(18px, 5vw, 72px);
}

.public-section-head {
  display: grid;
  gap: 8px;
  margin: 0 auto 24px;
  max-width: 820px;
  text-align: center;
}

.public-section-head h2,
.public-split-section h2,
.public-portal-section h2 {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

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

.public-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: -8px 0 22px;
}

.public-subnav button {
  background: #e8f0ed;
  color: var(--forest);
}

.public-subnav button.active,
.public-subnav button:hover {
  background: var(--forest);
  color: #fff;
}

.academy-program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.academy-benefits-grid {
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 4px auto 18px;
  max-width: 1120px;
  padding: 12px;
}

.academy-benefits-grid article {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 12px;
}

.academy-info-details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.07);
  margin: 0 auto;
  max-width: 1120px;
  padding: 0;
}

.academy-info-details summary {
  color: var(--forest);
  cursor: pointer;
  font-weight: 800;
  list-style-position: inside;
  padding: 18px;
}

.academy-info-details .public-detail-grid {
  border-top: 1px solid var(--line);
  padding: 18px;
}

.public-program-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.07);
  display: grid;
  overflow: hidden;
}

.public-program-card img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.trade-logo-crop {
  aspect-ratio: 1;
  background: #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  width: min(220px, 100%);
}

.trade-logo-crop img {
  aspect-ratio: auto;
  left: -18%;
  max-width: none;
  object-fit: initial;
  position: absolute;
  top: -10%;
  width: 462%;
}

.public-program-card > .trade-logo-crop {
  align-self: center;
  display: block;
  justify-self: center;
  margin: 18px 18px 0;
  padding: 0;
  width: min(180px, calc(100% - 36px));
}

.trade-coming-soon {
  display: block;
  min-height: calc(100vh - 83px);
}

.trade-coming-soon-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  grid-column: 1 / -1;
  justify-content: center;
  margin: 0 auto;
  max-width: 720px;
  min-height: calc(100vh - 83px);
  padding: 54px 20px 72px;
  text-align: center;
}

.trade-coming-soon-inner .trade-logo-crop {
  margin-bottom: 10px;
  width: min(240px, 70vw);
}

.trade-coming-label {
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.trade-coming-soon-inner h2 {
  color: var(--ink);
  line-height: 1.12;
  margin: 0;
  max-width: 680px;
}

.trade-updates-link {
  margin-top: 10px;
  min-height: 42px;
  padding: 0 18px;
}

.public-program-card div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.public-program-card h3 {
  font-size: 1.05rem;
  margin: 0;
}

.public-program-card span {
  font-size: 0.86rem;
  line-height: 1.45;
}

.public-card-action {
  justify-self: start;
  margin-top: 4px;
}

.public-program-detail {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  min-height: calc(100vh - 83px);
  padding: clamp(34px, 6vw, 76px) clamp(18px, 5vw, 72px);
}

.family-page {
  background: #fbfaf6;
}

.trade-detail {
  background: #f4f5f2;
}

.trade-detail .eyebrow,
.trade-detail h2 {
  color: #142d68;
}

.trade-detail > img {
  border-color: rgba(20, 45, 104, 0.2);
}

.trade-detail .public-detail-grid article {
  border-top: 4px solid #142d68;
}

.public-program-detail > div:first-child {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.trade-coming-soon > .trade-coming-soon-inner {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.trade-coming-soon-inner .trade-logo-crop {
  margin-left: auto;
  margin-right: auto;
}

.public-program-detail h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
  line-height: 1.06;
  margin: 0;
}

.public-program-detail p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.public-program-detail > img {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(31, 41, 51, 0.08);
  display: block;
  max-height: 440px;
  object-fit: cover;
  width: 100%;
}

.public-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.public-center-action {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.public-support-page {
  background: #fbfaf6;
}

.support-feature {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  margin: 0 auto 18px;
  max-width: 1120px;
}

.support-feature article,
.support-feature aside,
.support-stewardship-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(31, 41, 51, 0.08);
  display: grid;
  gap: 10px;
  padding: clamp(18px, 3vw, 28px);
}

.support-feature article {
  border-top: 6px solid var(--gold);
}

.support-feature h3 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.08;
  margin: 0;
}

.support-feature p,
.support-stewardship-grid p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.support-feature a {
  justify-self: start;
  margin-top: 8px;
}

.support-feature aside {
  align-content: center;
  background: #1d3329;
  color: #fff;
}

.support-feature aside p {
  color: #f5ead0;
}

.support-giving-grid article {
  border-top: 4px solid var(--gold);
}

.support-stewardship-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px auto 0;
  max-width: 1120px;
}

.public-detail-grid {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-detail-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(31, 41, 51, 0.08);
  display: grid;
  gap: 8px;
  padding: 18px;
}

.public-detail-grid strong {
  font-size: 1.05rem;
}

.public-date-grid {
  margin: -4px 0 22px;
}

.public-camp-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(31, 41, 51, 0.08);
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  padding: 18px;
}

.public-camp-section h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
}

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

.public-camp-grid article {
  border: 1px solid #edf1f3;
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.public-camp-placeholder {
  align-content: center;
  background: #f8faf9;
  min-height: 170px;
}

.public-camp-grid img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.public-camp-grid .featured-camp {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.public-camp-grid .featured-camp img {
  aspect-ratio: auto;
  height: 100%;
}

.public-camp-grid .featured-camp > div {
  align-content: center;
  padding: clamp(18px, 4vw, 34px);
}

.public-camp-grid .featured-camp strong {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.public-camp-grid div {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.public-camp-grid span,
.public-camp-details p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.public-camp-grid details {
  border-top: 1px solid #edf1f3;
  margin-top: 6px;
  padding-top: 8px;
}

.public-camp-grid summary {
  color: var(--forest);
  cursor: pointer;
  font-weight: 800;
}

.public-camp-grid details p {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 8px;
}

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

.public-camp-details article {
  background: #f8faf9;
  border: 1px solid #edf1f3;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.public-interest-form {
  border-top: 1px solid #edf1f3;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) auto;
  padding-top: 18px;
}

.public-interest-form h3,
.public-interest-form p {
  margin: 0;
}

.request-helper {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-top: 6px !important;
}

.public-interest-form label {
  display: grid;
  gap: 6px;
}

.public-interest-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  padding: 10px 12px;
}

.public-interest-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  padding: 10px 12px;
  resize: vertical;
}

.public-interest-form button {
  align-self: end;
  min-height: 42px;
}

.public-interest-form small {
  color: var(--green);
  grid-column: 1 / -1;
}

.public-request-section {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: clamp(28px, 5vw, 52px) clamp(18px, 5vw, 72px);
}

.contact-request-section {
  background: linear-gradient(135deg, #fbfaf6 0%, #eef4f0 100%);
  border-top: 0;
  margin-top: -1px;
  padding-top: 0;
}

.public-site-request-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(31, 41, 51, 0.08);
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)) auto;
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px;
}

.public-visit-form {
  grid-column: 1 / -1;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr)) auto;
}

.public-form-wide {
  grid-column: 2 / span 3;
}

.request-email {
  white-space: nowrap;
  word-break: keep-all;
}

.public-split-section {
  align-items: center;
  background: linear-gradient(135deg, #fbfaf6 0%, #eef4f0 100%);
  border-bottom: 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: auto;
  padding-bottom: 18px;
}

.public-split-section > div {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 920px;
  text-align: center;
}

.public-visit-section .eyebrow {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.public-split-section img {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 360px;
  object-fit: contain;
  padding: 22px;
  width: 100%;
}

.public-library-section {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.public-library-section .public-section-head {
  margin: 0;
  max-width: 760px;
  text-align: left;
}

.public-team-section {
  background: #fff;
  border-top: 0;
  margin-bottom: 24px;
  margin-top: -42px;
  min-height: auto;
}

.public-team-section .public-team-grid {
  border-top: 1px solid var(--line);
  padding: 18px;
}

.public-member-benefits {
  background: #fff;
  border-top: 1px solid var(--line);
  min-height: auto;
}

.public-team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 980px;
}

.public-visit-card {
  align-self: center;
}

.public-visit-card span {
  color: var(--muted);
  line-height: 1.5;
}

.public-visit-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(31, 41, 51, 0.08);
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 18px;
}

.public-visit-list span {
  color: var(--muted);
}

.public-portal-section {
  align-items: center;
  background: #172820;
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
}

.public-portal-section > div {
  display: grid;
  gap: 12px;
  max-width: 650px;
}

.public-portal-section h2 {
  color: #fff;
}

.public-login-card {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.public-login-card > img {
  height: 180px;
  max-width: 100%;
  width: 280px;
}

.public-login-card h3 {
  font-size: 1.35rem;
  margin: 0;
  text-align: center;
}

.login-screen {
  align-items: center;
  background: #f7f5ef;
  display: grid;
  grid-column: 1 / -1;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  justify-self: center;
  max-width: 440px;
  padding: 28px;
  width: 100%;
}

.login-card img {
  height: 118px;
  justify-self: center;
  object-fit: contain;
  width: 118px;
}

.login-card h1 {
  font-size: 1.55rem;
  margin-bottom: 0;
}

.form-error {
  background: #fff0ee;
  border: 1px solid #efb7ae;
  border-radius: 6px;
  color: var(--red);
  margin: 0;
  padding: 10px 12px;
}

.form-success {
  background: #e5f4eb;
  border: 1px solid #b7d7c3;
  border-radius: 6px;
  color: #24553a;
  margin: 0;
  padding: 10px 12px;
}

.demo-logins {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
}

.demo-logins > span {
  color: var(--muted);
  display: block;
  flex-basis: 100%;
  font-size: 0.82rem;
}

.topnav {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(31, 41, 51, 0.07);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 68px;
  padding: 10px 28px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topnav-collapsible {
  display: contents;
}

.portal-mobile-menu-button {
  display: none;
}

.topnav-brand {
  align-items: center;
  background: transparent;
  color: var(--ink);
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  min-width: 240px;
  padding: 0;
  text-align: left;
}

.topnav-brand:hover {
  background: transparent;
  color: var(--forest);
}

.topnav-brand img {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.topnav-brand strong,
.topnav-brand span,
.identity strong,
.identity span,
.topnav-account strong,
.topnav-account span,
label span,
td small,
.resource-row span,
.admin-list span {
  display: block;
}

.topnav-brand strong {
  line-height: 1.15;
}

.topnav-brand span,
.topnav-account span,
.identity span,
label span,
td small,
.panel-head span,
.resource-row p,
.resource-row span,
.admin-list span,
.admin-list p {
  color: var(--muted);
}

.topnav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topnav-links button {
  background: transparent;
  color: var(--ink);
  min-height: 34px;
}

.topnav-links button.active {
  background: #e8f0ed;
  color: var(--forest);
  font-weight: 700;
}

.admin-menu,
.account-menu {
  position: relative;
}

.admin-menu summary {
  align-items: center;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  min-height: 34px;
  padding: 0 12px;
}

.account-menu-trigger {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  min-height: 42px;
  padding: 4px 28px 4px 10px;
  position: relative;
  text-align: right;
}

.account-menu-trigger::after {
  color: var(--muted);
  content: "v";
  font-size: 0.72rem;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.admin-menu.active summary,
.admin-menu[open] summary,
.admin-menu summary:hover,
.account-menu.open .account-menu-trigger,
.account-menu-trigger:hover {
  background: #e8f0ed;
  color: var(--forest);
}

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

.admin-menu div,
.account-menu-dropdown {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  min-width: 190px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
}

.admin-menu div button,
.account-menu-dropdown button {
  background: transparent;
  color: var(--ink);
  justify-content: flex-start;
  width: 100%;
}

.account-menu-dropdown button:hover {
  background: #e8f0ed;
  color: var(--forest);
}

.topnav-account {
  align-items: end;
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
}

.account-stack {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.view-as-switcher {
  align-items: center;
  display: inline-grid;
  gap: 4px;
  grid-template-columns: auto minmax(120px, 1fr);
  justify-self: end;
}

.view-as-switcher span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.view-as-switcher select {
  background: #f8faf9;
  border-color: var(--line);
  color: var(--ink);
  min-height: 30px;
  min-width: 130px;
  padding: 0 28px 0 10px;
}

.topnav-account strong {
  font-size: 0.92rem;
}

.topnav-account span {
  font-size: 0.78rem;
}

.parent-dashboard-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.parent-dashboard-actions button {
  min-width: 118px;
}

label {
  display: grid;
  gap: 6px;
}

label span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 0 12px;
}

textarea {
  line-height: 1.45;
  min-height: 92px;
  padding-bottom: 10px;
  padding-top: 10px;
  resize: vertical;
}

main {
  margin-left: 0;
  min-width: 0;
}

.topbar {
  min-height: 72px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fcfbf7;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  margin: 0 0 6px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.8rem;
  line-height: 1.12;
}

h2 {
  font-size: 1rem;
  margin-bottom: 0;
}

.identity {
  text-align: right;
}

.workspace {
  padding: 22px 28px 38px;
}

.portal-global-status {
  padding-bottom: 0;
}

.portal-global-status .notice-band {
  border: 1px solid #efb7ae;
  border-radius: 8px;
}

.section-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  background: #e7ece8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 16px;
}

.section-tabs button {
  background: transparent;
  color: var(--ink);
  min-height: 38px;
}

.section-tabs button.active {
  background: #fff;
  color: var(--forest);
  box-shadow: 0 2px 8px rgba(31, 41, 51, 0.1);
  font-weight: 800;
}

.hero {
  background: #172820;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h2 {
  font-size: 1.8rem;
  line-height: 1.14;
  margin: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.pill-row span {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 8px 12px;
  color: #f5e7bf;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions .light {
  background: #f5e7bf;
  color: #172820;
}

.hero-actions .light:hover {
  background: #e8d49a;
}

.program-intro {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.program-intro > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.program-intro h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.program-intro p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.prize-list,
.priority-list {
  display: grid;
  gap: 16px;
  padding: 18px;
}

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

.prize-list.in-rules {
  padding: 0;
}

.prize-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.prize-list h3 {
  color: var(--forest);
  font-size: 1rem;
  margin: 0;
}

.prize-list span,
.priority-list span {
  display: block;
  border-left: 4px solid var(--gold);
  color: var(--muted);
  line-height: 1.35;
  padding-left: 12px;
}

.prize-list strong {
  display: block;
  color: var(--ink);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.book-actions {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

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

.checkbox-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.filter-menu {
  position: relative;
}

.filter-menu summary {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  min-height: 48px;
  padding: 8px 12px;
  user-select: none;
}

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

.filter-menu summary::after {
  color: var(--muted);
  content: "v";
  font-size: 0.8rem;
  font-weight: 900;
}

.filter-menu[open] summary {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(36, 72, 60, 0.1);
}

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

.filter-menu summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-menu summary strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-options {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  left: 0;
  margin-top: 6px;
  max-height: 300px;
  overflow: auto;
  padding: 12px;
  position: absolute;
  right: 0;
  z-index: 20;
}

.check-option {
  align-items: center;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
}

.check-option input,
td input,
th input {
  accent-color: var(--forest);
  min-height: auto;
  padding: 0;
  width: auto;
}

.check-option span {
  color: var(--ink);
  display: inline;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: none;
}

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.ghost:hover {
  background: #eef3f6;
}

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

.summary-grid article,
.panel,
.admin-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-grid article {
  padding: 16px;
}

.summary-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
}

.summary-grid strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.resource-view {
  display: grid;
  gap: 18px;
}

.book-catalog-view {
  grid-template-columns: minmax(0, 1fr);
}

.book-panel {
  width: 100%;
}

.book-panel .table-wrap {
  max-height: calc(100vh - 390px);
  min-height: 520px;
}

.book-panel table {
  font-size: 0.95rem;
}

.book-panel th,
.book-panel td {
  padding-left: 18px;
  padding-right: 18px;
}

.files-panel {
  max-width: 980px;
}

.file-button-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
}

.file-button-grid button {
  min-height: 58px;
  font-size: 1rem;
  font-weight: 800;
}

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

.file-preview-panel {
  max-width: 980px;
}

.file-preview {
  background: #f8faf9;
  padding: 18px;
}

.file-preview iframe {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  min-height: 760px;
  width: 100%;
}

.file-preview img {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}

.rules-panel {
  max-width: 980px;
}

.rules-content {
  display: grid;
  gap: 22px;
  padding: 22px;
}

.rules-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.rules-content h3,
.rules-content h4,
.rules-content p,
.rules-content ul {
  margin: 0;
}

.rules-content h3 {
  color: var(--forest);
  font-size: 1.2rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.rules-content h4 {
  color: var(--ink);
  font-size: 1rem;
}

.rules-content p,
.rules-content li {
  color: var(--muted);
  line-height: 1.55;
}

.rules-card {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.rules-closing {
  background: #fff7df;
  border: 1px solid #efd488;
  border-radius: 8px;
  color: #6f5217;
  font-weight: 700;
  padding: 14px;
}

.single-panel {
  grid-template-columns: minmax(0, 1fr);
}

.overview-split {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  margin-bottom: 18px;
}

.dashboard-hero {
  align-items: center;
  background: #172820;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 20px 22px;
}

.dashboard-hero h2 {
  font-size: 1.75rem;
  line-height: 1.14;
  margin: 0;
}

.dashboard-hero p {
  color: #f5e7bf;
  line-height: 1.45;
  margin: 8px 0 0;
  max-width: 780px;
}

.dashboard-hero button {
  background: #f5e7bf;
  color: #172820;
  flex: 0 0 auto;
}

.compact-dashboard-hero {
  justify-content: flex-start;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  margin-bottom: 18px;
}

.simple-dashboard-grid {
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(230px, 0.7fr));
}

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

.admin-stat-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 14px;
}

.admin-stat-strip article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
}

.admin-stat-strip span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-stat-strip strong {
  color: var(--forest);
  font-size: 1.25rem;
}

.admin-panel-section {
  display: grid;
  gap: 10px;
  padding: 14px 15px 4px;
}

.admin-panel-section + .admin-panel-section {
  border-top: 1px solid #edf1f3;
  padding-top: 14px;
}

.admin-panel-section h3 {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

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

.admin-task-list article {
  align-items: center;
  background: #f8faf8;
  border: 1px solid #e5ece5;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.admin-task-list strong {
  color: var(--ink);
  display: block;
  font-size: 0.94rem;
}

.admin-task-list span {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  margin-top: 2px;
}

.compact-dashboard-hero + .dashboard-grid {
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(240px, 0.7fr));
}

.dashboard-focus-panel,
.dashboard-side-panel,
.dashboard-link-panel {
  box-shadow: none;
}

.dashboard-action-list,
.dashboard-task-list,
.dashboard-student-list,
.dashboard-class-list,
.dashboard-metric-list {
  display: grid;
  gap: 0;
}

.dashboard-action-list article,
.dashboard-task-list article,
.dashboard-student-list article,
.dashboard-metric-list article {
  align-items: center;
  border-bottom: 1px solid #edf1f3;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 13px 15px;
}

.dashboard-student-list article {
  grid-template-columns: auto minmax(0, 1fr);
}

.dashboard-metric-list article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-action-list article:last-child,
.dashboard-task-list article:last-child,
.dashboard-student-list article:last-child,
.dashboard-metric-list article:last-child {
  border-bottom: 0;
}

.dashboard-action-list strong,
.dashboard-task-list strong,
.dashboard-student-list strong,
.dashboard-metric-list strong {
  display: block;
}

.dashboard-action-list span,
.dashboard-task-list span,
.dashboard-student-list span,
.dashboard-metric-list span {
  color: var(--muted);
  display: block;
  line-height: 1.4;
  margin-top: 3px;
}

.dashboard-class-list {
  gap: 8px;
  padding: 14px;
}

.dashboard-class-list button {
  justify-content: flex-start;
  text-align: left;
}

.dashboard-class-list a {
  justify-content: flex-start;
  text-align: left;
}

.dashboard-announcement-list {
  padding: 14px;
}

.parent-announcement-panel {
  margin-bottom: 14px;
}

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

.parent-child-assignment-list {
  display: grid;
  gap: 0;
}

.parent-child-assignment-list article {
  border-bottom: 1px solid #edf1f3;
  display: grid;
  gap: 10px;
  padding: 13px 15px;
}

.parent-schoolwork-intro {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  padding: 0 15px 14px;
}

.parent-child-schoolwork-header {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.parent-child-schoolwork-header strong {
  font-size: 1.08rem;
}

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

.parent-schoolwork-status-section {
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  padding: 11px;
}

.parent-schoolwork-status-section > header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.parent-schoolwork-status-section h3 {
  font-size: 0.92rem;
  margin: 0;
}

.parent-schoolwork-status-section > header span {
  align-items: center;
  background: #e9efec;
  border-radius: 999px;
  color: var(--forest);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  min-width: 24px;
  padding: 0 7px;
}

.parent-schoolwork-upcoming {
  border-top: 4px solid #2563eb;
}

.parent-schoolwork-missing {
  border-top: 4px solid #b45309;
}

.parent-schoolwork-completed {
  border-top: 4px solid #2f6f55;
}

.parent-schoolwork-assignment {
  width: 100%;
}

.assignment-mini-list .parent-assignment-attribution {
  color: var(--forest);
  font-weight: 750;
}

.assignment-mini-list .parent-feedback-line {
  background: #eef5f1;
  border-radius: 5px;
  color: var(--ink);
  line-height: 1.4;
  padding: 5px 7px;
}

.parent-schoolwork-empty {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
  min-height: 42px;
}

.parent-child-assignment-list article:last-child {
  border-bottom: 0;
}

.parent-child-assignment-list strong,
.parent-child-assignment-list span,
.assignment-mini-list small,
.assignment-mini-list span {
  display: block;
}

.parent-child-assignment-list span,
.assignment-mini-list small {
  color: var(--muted);
}

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

.assignment-mini-list button {
  align-items: start;
  background: #f8faf9;
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  justify-content: stretch;
  min-height: 0;
  padding: 9px 10px;
  text-align: left;
}

.assignment-mini-list .assignment-weekly-detail {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 3px;
}

.parent-assignment-overlay {
  align-items: center;
  background: rgba(15, 31, 25, 0.46);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 70;
}

.parent-assignment-dialog {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(15, 31, 25, 0.26);
  max-height: calc(100vh - 40px);
  max-width: 720px;
  overflow: auto;
  width: 100%;
}

.parent-assignment-dialog-header {
  align-items: start;
  border-top: 5px solid var(--class-color);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 24px 18px;
}

.parent-assignment-dialog-header .eyebrow {
  align-items: center;
  color: var(--class-color);
  display: flex;
  gap: 7px;
  margin-bottom: 5px;
}

.parent-assignment-dialog-header h2 {
  margin: 0;
}

.parent-assignment-close {
  flex: 0 0 auto;
}

.parent-assignment-summary {
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px 24px;
}

.parent-assignment-summary div {
  display: grid;
  gap: 3px;
}

.parent-assignment-summary span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.parent-assignment-detail-section {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 20px 24px;
}

.parent-assignment-detail-section h3,
.parent-assignment-detail-section p {
  margin: 0;
}

.parent-assignment-detail-section p {
  line-height: 1.6;
  white-space: pre-wrap;
}

.parent-assignment-detail-section .muted-detail {
  color: var(--muted);
}

.parent-assignment-file {
  align-items: center;
  background: #eef4f1;
  border: 1px solid #cbdad2;
  border-radius: 8px;
  color: var(--forest);
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  padding: 11px 13px;
  text-decoration: none;
}

.parent-assignment-file:hover {
  background: #e4efea;
}

.parent-assignment-dialog-footer {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 24px 20px;
}

.parent-assignment-dialog-footer small {
  color: var(--muted);
}

@media (max-width: 560px) {
  .parent-assignment-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .parent-assignment-dialog {
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    max-height: 92vh;
  }

  .parent-assignment-dialog-header,
  .parent-assignment-detail-section,
  .parent-assignment-dialog-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .parent-assignment-summary {
    grid-template-columns: 1fr;
    padding-left: 18px;
    padding-right: 18px;
  }
}

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

.teacher-current-panel {
  grid-column: auto;
}

.teacher-quick-post {
  display: grid;
  gap: 10px;
  padding: 14px;
}

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

.teacher-post-preview {
  background: #f8faf8;
  border: 1px solid #e5ece5;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.teacher-post-preview strong {
  color: var(--forest);
  font-size: 0.86rem;
}

.teacher-post-preview ol {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.teacher-post-preview li {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.teacher-post-preview span,
.teacher-post-preview small {
  display: block;
}

.teacher-post-preview span {
  color: var(--ink);
  font-weight: 800;
}

.teacher-post-preview small {
  color: var(--muted);
  font-size: 0.78rem;
}

.teacher-class-actions {
  gap: 8px;
  padding: 14px;
}

.teacher-class-actions > div {
  align-items: center;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-left: 5px solid var(--class-color, var(--forest));
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.teacher-class-actions strong {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.92rem;
  gap: 7px;
}

.teacher-class-actions > div > div {
  display: flex;
  gap: 7px;
}

.teacher-class-actions button:first-child {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.teacher-class-page {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.teacher-class-header {
  align-items: start;
  background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
  border-bottom: 1px solid var(--line);
  border-top: 5px solid var(--class-color, var(--forest));
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 22px;
}

.teacher-class-header h2,
.teacher-class-header p {
  margin: 0;
}

.teacher-class-header p {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 6px;
}

.teacher-class-header h2 {
  align-items: center;
  display: inline-flex;
  gap: 9px;
}

.teacher-class-header .class-summary-row {
  margin-top: 14px;
}

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

.teacher-class-page .class-tabs {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
}

.teacher-class-section {
  background: #fff;
  display: grid;
  gap: 14px;
  padding: 22px;
}

.teacher-class-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 36px;
}

.teacher-item-count {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.teacher-empty-state {
  align-items: center;
  background: linear-gradient(135deg, #f8faf8, #fff);
  border: 1px dashed #cbd8d0;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 8px auto;
  max-width: 520px;
  min-height: 180px;
  padding: 28px;
  text-align: center;
  width: 100%;
}

.teacher-empty-state strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.teacher-empty-state p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 4px;
}

.teacher-inline-post-form {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 auto;
  max-width: 1100px;
  padding: 20px;
  width: 100%;
}

.teacher-inline-post-form .compact-class-form {
  border-top: 0;
  padding: 0;
}

.assignment-compose-form {
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1040px;
  width: 100%;
}

.assignment-compose-form > * {
  grid-column: 1 / -1;
}

.assignment-compose-form .assignment-title-field input {
  font-size: 1rem;
  min-height: 44px;
}

.assignment-compose-form > label > span,
.assignment-compose-form .assignment-schedule-row label > span {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.assignment-compose-form .assignment-details-field textarea {
  min-height: 142px;
}

.assignment-compose-form label > small {
  color: var(--muted);
  line-height: 1.4;
}

.assignment-compose-form .assignment-schedule-row {
  grid-template-columns: repeat(2, minmax(180px, 240px));
  max-width: 500px;
}

.assignment-compose-form .assignment-schedule-row input,
.assignment-compose-form .assignment-schedule-row select {
  min-height: 42px;
}

.assignment-compose-options {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.school-content-form .assignment-compose-options .inline-check {
  display: inline-flex;
  gap: 9px;
}

.school-content-form .assignment-compose-options .inline-check span {
  color: var(--ink);
  font-size: 0.86rem;
  text-transform: none;
}

.assignment-compose-form .assignment-attachment-button {
  align-self: auto;
  background: #fff;
  border: 1px solid var(--forest);
  color: var(--forest);
  justify-self: start;
  min-width: 148px;
}

.assignment-compose-form .assignment-attachment-button:hover {
  background: #eef5f1;
}

.assignment-compose-form .teacher-post-preview {
  max-width: 760px;
}

.assignment-compose-form .form-actions {
  margin-top: 2px;
}

.teacher-section-heading-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.announcement-heading-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.teacher-new-button {
  font-size: 0.84rem;
  min-height: 34px;
  padding: 0 11px;
}

.panel-head .teacher-new-button span {
  color: inherit;
}

.announcement-visibility-button {
  min-height: 32px;
  min-width: 58px;
  padding: 0 9px;
}

.admin-announcement-composer,
.announcement-inline-composer {
  margin: 14px;
}

.teacher-announcement-panel {
  margin-bottom: 14px;
}

.inline-check {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.inline-check input {
  accent-color: var(--forest);
  height: 16px;
  min-height: auto;
  width: 16px;
}

.teacher-assignment-list {
  display: grid;
  gap: 0;
}

.teacher-assignment-list article {
  align-items: center;
  border-bottom: 1px solid #edf1f3;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, auto) auto;
  padding: 13px 15px;
}

.teacher-assignment-list article > div {
  min-width: 0;
}

.teacher-assignment-list article:last-child {
  border-bottom: 0;
}

.teacher-assignment-list .assignment-count-row {
  grid-column: auto;
  justify-content: flex-end;
}

.assignment-bulk-actions {
  align-items: center;
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 15px;
}

.assignment-sort-control {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 6px;
  margin-left: auto;
  text-transform: uppercase;
}

.assignment-sort-control select {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 34px;
  min-width: 145px;
  padding: 6px 8px;
  text-transform: none;
}

.announcement-panel-toggle {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.announcement-panel-toggle:hover {
  background: #f8faf9;
  color: var(--ink);
}

.dismissible-announcement {
  padding-right: 42px;
  position: relative;
}

.dismiss-announcement-button {
  align-items: center;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 10px;
  text-transform: uppercase;
  top: 10px;
  width: 28px;
}

.dismiss-announcement-button:hover {
  color: var(--ink);
}

.reporting-period-grid {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.reporting-period-row {
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 160px) minmax(130px, 160px);
  padding: 12px;
}

.reporting-period-row label {
  display: grid;
  gap: 5px;
}

.reporting-period-row span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.assignment-bulk-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.teacher-assignment-list article > input[type="checkbox"],
.school-material-list article > input[type="checkbox"] {
  accent-color: var(--forest);
  height: 16px;
  justify-self: center;
  min-height: 0;
  width: 16px;
}

.assignment-row-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.assignment-edit-form {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.4fr);
  padding: 12px;
}

.assignment-edit-form label {
  display: grid;
  gap: 7px;
}

.assignment-edit-form label:nth-child(3),
.assignment-edit-form .form-actions {
  grid-column: 1 / -1;
}

.assignment-edit-form .inline-check {
  align-items: center;
  display: inline-flex;
}

.assignment-edit-form .file-upload-button {
  justify-self: start;
}

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

.teacher-assignment-list span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 3px;
}

.teacher-assignment-list article p {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 3px 0 0;
}

.assignment-count-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.assignment-count-row span {
  background: #eef6f1;
  border: 1px solid #cfe3d6;
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 850;
  margin: 0;
  padding: 6px 9px;
}

.compact-assignment-upload {
  justify-self: start;
  min-height: 34px;
}

.assignment-upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.assignment-upload-list a {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 6px 9px;
}

.admin-announcement-panel {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.admin-announcement-panel > .admin-announcement-composer {
  order: 1;
}

.admin-announcement-panel > .admin-announcement-list,
.admin-announcement-panel > .student-empty-state {
  order: 2;
}

.admin-announcement-form {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 1fr);
  padding: 14px;
}

.admin-announcement-form > section,
.admin-announcement-form > button,
.admin-announcement-form > .form-actions {
  grid-column: 1 / -1;
}

.announcement-target-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
}

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

.announcement-class-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(240px, 1fr);
  margin-top: 8px;
}

.announcement-class-picker {
  min-width: 0;
}

.announcement-class-options {
  flex-direction: column;
  flex-wrap: nowrap;
}

.announcement-target-grid label {
  align-items: center;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  gap: 7px;
  min-height: 34px;
  padding: 7px 9px;
}

.admin-announcement-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin: 0 14px 14px;
  padding-top: 14px;
}

.admin-announcement-panel .admin-announcement-list {
  border-top: 0;
  padding-top: 14px;
}

.announcement-post-dropdown {
  border-top: 1px solid var(--line);
  display: block;
  padding: 14px;
}

.announcement-post-dropdown.member-collapsible > summary {
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(36, 72, 60, 0.2);
  color: #fff;
  min-height: 42px;
  padding: 7px 12px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  width: max-content;
}

.announcement-post-dropdown.member-collapsible > summary:hover {
  background: #18342b;
  border-color: #18342b;
  box-shadow: 0 3px 10px rgba(36, 72, 60, 0.26);
}

.announcement-post-dropdown.member-collapsible > summary:focus-visible {
  box-shadow: none;
  outline: none;
}

.announcement-post-dropdown.member-collapsible > summary strong {
  color: #fff;
  font-size: 0.88rem;
  text-transform: none;
}

.announcement-post-dropdown.member-collapsible > summary small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.73rem;
}

.announcement-post-dropdown.member-collapsible > summary::after {
  border: 0;
  color: #fff;
  content: "+";
  font-size: 1.15rem;
  height: auto;
  line-height: 1;
  margin: 0;
  transform: none;
  width: auto;
}

.announcement-post-dropdown.member-collapsible[open] > summary {
  background: #eef3f0;
  border-bottom: 1px solid #b8c9c2;
  border-color: #b8c9c2;
  box-shadow: none;
  color: var(--forest);
  margin-bottom: 12px;
  padding: 7px 12px;
  width: 100%;
}

.announcement-post-dropdown.member-collapsible[open] > summary strong,
.announcement-post-dropdown.member-collapsible[open] > summary small,
.announcement-post-dropdown.member-collapsible[open] > summary::after {
  color: var(--forest);
}

.announcement-post-dropdown.member-collapsible[open] > summary::after {
  content: "-";
  transform: none;
}

.admin-announcement-list article {
  align-items: start;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.admin-announcement-list p {
  margin: 4px 0;
}

.announcement-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.announcement-edit-form {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  width: 100%;
}

.announcement-edit-form label {
  display: grid;
  gap: 5px;
}

.announcement-edit-form label > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.announcement-edit-form textarea {
  min-height: 90px;
  resize: vertical;
}

.announcement-target-grid input {
  accent-color: var(--forest);
  min-height: auto;
  width: auto;
}

.dashboard-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
}

.dashboard-stats {
  margin-bottom: 18px;
}

.panel {
  overflow: hidden;
}

.panel-head {
  min-height: 52px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.table-wrap {
  max-height: 640px;
  overflow: auto;
}

.table-wrap.compact {
  max-height: 520px;
}

.library-landing {
  max-width: 880px;
}

.library-message {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.library-message a {
  justify-self: start;
}

.library-message p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.paperwork-hero {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 18px 20px;
}

.paperwork-hero h2 {
  font-size: 1.55rem;
  line-height: 1.16;
  margin: 0;
}

.paperwork-hero p {
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
  max-width: 760px;
}

.paperwork-stats {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.paperwork-stats span {
  background: #eef6f1;
  border: 1px solid #cfe3d6;
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 8px 10px;
}

.paperwork-layout {
  align-items: start;
  display: block;
}

.paperwork-panel {
  overflow: hidden;
}

.paperwork-list {
  display: grid;
  gap: 0;
  padding: 0;
}

.form-template-list {
  display: grid;
  gap: 0;
}

.form-template-list article {
  align-items: end;
  border-bottom: 1px solid #edf1f3;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 0.6fr) auto minmax(180px, 0.6fr);
  padding: 18px;
}

.form-template-list article:last-child {
  border-bottom: 0;
}

.form-template-list div strong,
.form-template-list div span {
  display: block;
}

.form-template-list div span {
  color: var(--muted);
  margin-top: 3px;
}

.paperwork-list article {
  align-items: start;
  border-bottom: 1px solid #edf1f3;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 140px;
  padding: 18px;
}

.paperwork-list article:last-child {
  border-bottom: 0;
}

.paperwork-list article.complete {
  background: #fbfcfb;
}

.paperwork-card-main {
  display: grid;
  gap: 6px;
}

.paperwork-card-main small {
  color: var(--muted);
}

.member-paperwork-actions {
  align-items: end;
  border-top: 1px solid #edf1f3;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(220px, 0.7fr);
  padding-top: 14px;
}

.signed-note {
  background: #fff7df;
  border: 1px solid #efd488;
  border-radius: 8px;
  color: #6f5217;
  line-height: 1.4;
  padding: 10px 12px;
}

.paperwork-list p,
.paperwork-card-main p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.paperwork-list aside {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.paperwork-list small {
  color: var(--muted);
}

.school-portal-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  margin-bottom: 18px;
}

.school-portal-grid.single-card {
  grid-template-columns: minmax(0, 1fr);
}

.program-page-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  margin-bottom: 18px;
}

.outdoors-info-card {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.outdoors-info-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.trade-vision-card {
  background: #f5f2ea;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.trade-vision-card p {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.55;
  margin: 0;
}

.trade-program-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
}

.trade-structure-grid,
.trade-area-grid {
  display: grid;
  gap: 12px;
}

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

.trade-structure-grid article,
.trade-area-grid article {
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.trade-structure-grid h3 {
  margin: 0;
}

.trade-area-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.school-portal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 14px;
}

.school-portal-card h3 {
  font-size: 1.12rem;
  margin: 4px 0 8px;
}

.school-portal-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.lower-dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  margin-bottom: 18px;
}

.upper-dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  margin-bottom: 18px;
}

.upper-school-info-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
}

.upper-info-grid,
.upper-fees-grid,
.upper-schedule-grid,
.support-stewardship-grid {
  display: grid;
  gap: 12px;
}

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

.upper-info-grid article,
.upper-fees-grid section,
.upper-schedule-grid section,
.upper-financial-note {
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.upper-info-grid p,
.upper-fees-grid p,
.upper-financial-note p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

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

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

.tuition-list span {
  align-items: center;
  background: #fff;
  border: 1px solid #edf1f3;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 10px;
}

.upper-info-note {
  font-size: 0.9rem;
}

.upper-schedule-grid table {
  background: #fff;
}

.upper-schedule-grid th {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: left;
  white-space: nowrap;
  width: 120px;
}

.upper-schedule-grid th,
.upper-schedule-grid td {
  border-bottom: 1px solid #edf1f3;
  padding: 9px 8px;
  vertical-align: top;
}

.upper-schedule-grid tr:last-child th,
.upper-schedule-grid tr:last-child td {
  border-bottom: 0;
}

.lower-student-list {
  padding: 14px;
}

.lower-subject-panel {
  margin-bottom: 18px;
}

.lower-grade-group-list {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.lower-grade-group-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.lower-grade-group-card > header {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.lower-grade-group-card > header strong {
  color: var(--ink);
  display: block;
  font-size: 1.05rem;
}

.lower-grade-group-card > header p {
  color: var(--muted);
  line-height: 1.4;
  margin: 5px 0 0;
}

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

.lower-subject-card {
  align-content: start;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.lower-subject-card strong {
  color: var(--ink);
  display: block;
  font-size: 1rem;
}

.lower-subject-card p {
  color: var(--muted);
  line-height: 1.4;
  margin: 6px 0 0;
}

.teacher-card {
  background: #f8faf9;
}

.student-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.student-chip-list span {
  background: #eef6f1;
  border: 1px solid #cfe3d6;
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 7px 10px;
}

.school-content-admin-panel,
.school-content-panel,
.school-class-panel,
.class-editor-panel {
  margin-bottom: 18px;
}

.school-class-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  padding: 14px;
}

.school-class-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.school-class-card .ghost.active {
  background: var(--forest);
  color: #fff;
}

.school-class-card strong,
.school-class-card small {
  display: block;
}

.school-class-card small {
  color: var(--muted);
  line-height: 1.35;
  margin-top: 5px;
}

.class-editor-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.45fr) minmax(180px, 1fr) auto;
  padding: 14px;
}

.class-editor-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
}

.class-editor-list article {
  border-bottom: 1px solid #edf1f3;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.classes-page-intro {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
}

.classes-page-heading {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.classes-page-heading h1,
.classes-page-heading p {
  margin: 0;
}

.classes-page-heading p {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 5px;
  max-width: 760px;
}

.classes-page-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.classes-page-counts span {
  background: #f4f7f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 8px 10px;
  white-space: nowrap;
}

.classes-page-counts strong {
  color: var(--ink);
  font-size: 1rem;
  margin-right: 3px;
}

.classes-add-form {
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 9px;
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 0.7fr) minmax(180px, 1fr) 86px auto;
  padding: 14px;
}

.classes-add-form input[type="color"] {
  min-height: 43px;
  padding: 4px;
}

.class-directory-card-title small {
  color: var(--muted);
}

.class-directory-student-count {
  color: var(--muted);
  font-size: 0.84rem;
}

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

.class-directory-edit {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.class-directory-edit .form-actions {
  align-self: end;
  margin: 0;
}

.class-editor-list article:last-child {
  border-bottom: 0;
}

.class-editor-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.45fr) minmax(180px, 1fr);
}

.class-editor-fields .form-actions {
  grid-column: 1 / -1;
}

.school-content-form {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.35fr);
  padding: 14px;
}

.school-content-form label {
  display: grid;
  gap: 7px;
}

.school-content-form label:nth-child(3),
.school-content-form label:nth-child(4) {
  grid-column: 1 / -1;
}

.school-content-form textarea {
  resize: vertical;
}

.school-material-upload {
  align-self: end;
}

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

.school-material-list article {
  align-items: center;
  background: #fff;
  border: 1px solid #edf1f3;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.35fr) auto;
  padding: 13px 15px;
}

.school-material-list article.assignment-management-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.school-material-list strong {
  display: block;
}

.school-material-list p,
.school-material-list small {
  color: var(--muted);
  line-height: 1.4;
}

.school-material-list p {
  margin: 4px 0;
}

.school-material-list video {
  background: #0f1f19;
  border-radius: 8px;
  max-height: 180px;
  width: 100%;
}

.compact-material-list {
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

.lower-weekly-work-panel,
.lower-weekly-editor-panel {
  margin-top: 18px;
}

.oaks-home-detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0;
}

.oaks-home-detail-grid section {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.oaks-home-detail-grid strong,
.oaks-home-detail-grid p {
  display: block;
  margin: 0;
}

.oaks-home-detail-grid p {
  color: var(--muted);
  margin-top: 4px;
  white-space: pre-wrap;
}

.collective-day-tracker,
.lower-subject-work-editor {
  display: grid;
  gap: 10px;
}

.collective-day-tracker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.collective-day-tracker label {
  align-items: center;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
}

.collective-day-tracker input {
  accent-color: var(--forest);
  min-height: auto;
  width: auto;
}

.collective-workspace {
  display: grid;
  gap: 16px;
  max-width: 1120px;
}

.collective-guide-panel {
  overflow: hidden;
}

.collective-guide-header {
  align-items: center;
  background: #edf2ed;
  border-bottom: 1px solid #ced9d0;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 24px;
}

.collective-guide-header h2 {
  color: #304c3d;
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1.05;
  margin: 2px 0 5px;
}

.collective-guide-header p {
  color: var(--muted);
  margin: 0;
}

.collective-guide-actions {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collective-print-controls,
.student-print-controls {
  display: grid;
  min-width: 88px;
  width: 88px;
}

.collective-print-select,
.student-print-select {
  background: #fff;
  border: 1px solid #cbd8d0;
  border-radius: 6px;
  color: var(--forest);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
  min-height: 30px;
  padding: 0 10px;
  text-align: center;
  width: 88px;
}

.collective-print-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: none !important;
}

.collective-print-select:hover,
.collective-print-select:focus,
.collective-print-select:focus-visible,
.student-print-select:hover,
.student-print-select:focus,
.student-print-select:focus-visible {
  background: #fff;
  border-color: #aebfb4;
  box-shadow: none;
  color: var(--forest);
}

.collective-guide-panel > .collective-day-tracker {
  margin: 18px 24px 0;
}

.collective-parent-checklist {
  padding: 16px 24px 20px;
}

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

.collective-day-tabs button {
  align-items: center;
  background: #f8faf9;
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  justify-content: center;
  min-height: 38px;
}

.collective-day-tabs button.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.collective-day-tabs button.complete:not(.active) {
  background: #eaf4ed;
  border-color: #a8c8b1;
  color: var(--forest);
}

.collective-day-tabs button span + span {
  margin-left: 7px;
}

.collective-daily-list {
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.collective-daily-list > header {
  align-items: center;
  background: transparent;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 3px 2px 9px 30px;
}

.collective-daily-list > header h3 {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0;
}

.collective-daily-list > header small {
  color: var(--muted);
  font-size: 0.76rem;
}

.collective-daily-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 14px;
}

.collective-daily-group {
  border-left: 1px solid var(--line);
  min-width: 0;
  padding: 0 20px;
}

.collective-daily-group:first-child {
  border-left: 0;
  padding-left: 2px;
}

.collective-daily-group:last-child {
  padding-right: 2px;
}

.collective-daily-group h4 {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  margin: 0 0 7px;
}

.collective-daily-group > label {
  align-items: start;
  border-bottom: 1px solid #e7ece8;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 16px minmax(0, 1fr);
  padding: 9px 0;
}

.collective-daily-group > label:last-child {
  border-bottom: 0;
}

.collective-daily-group > label.checked {
  background: transparent;
}

.collective-daily-group > label > input {
  accent-color: var(--forest);
  margin: 2px 0 0;
  min-height: auto;
  width: auto;
}

.collective-daily-list .collective-task-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.collective-daily-list .collective-task-line {
  align-items: baseline;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
}

.collective-daily-group > label strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0;
  margin: 0;
  text-transform: none;
}

.collective-daily-list .collective-task-line > span {
  color: #435149;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
  white-space: pre-wrap;
}

.collective-daily-list .collective-task-line > small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  font-style: italic;
  grid-column: 2;
  letter-spacing: 0;
  margin: 0;
  text-transform: none;
}

.collective-daily-group > label.checked strong,
.collective-daily-group > label.checked .collective-task-line > span {
  color: var(--muted);
}

.collective-daily-list .student-empty-state {
  padding: 20px;
}

@media (max-width: 900px) {
  .collective-daily-groups {
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
  }

  .collective-daily-group,
  .collective-daily-group:first-child,
  .collective-daily-group:last-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 14px 2px 0;
  }

  .collective-daily-group:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

.collective-break-message {
  background: #f7f4e9;
  border-left: 4px solid #d6a756;
  margin: 24px;
  padding: 20px;
}

.collective-break-message strong {
  color: #383d1c;
  display: block;
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.collective-break-message p {
  color: var(--muted);
  margin: 5px 0 0;
}

.collective-guide-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 0.88fr);
  padding: 20px 24px 24px;
}

.collective-guide-group {
  border-left: 1px solid var(--line);
  min-width: 0;
  padding: 0 20px;
}

.collective-guide-group:first-child {
  border-left: 0;
  padding-left: 0;
}

.collective-guide-group:last-child {
  padding-right: 0;
}

.collective-guide-group h3,
.collective-editor-group h3 {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 1.08rem;
  margin: 0 0 10px;
}

.collective-guide-entry {
  border-bottom: 1px solid #e7ece8;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(90px, 0.38fr) minmax(0, 1fr);
  padding: 9px 0;
}

.collective-guide-entry:last-child {
  border-bottom: 0;
}

.collective-guide-entry strong,
.collective-guide-entry span {
  display: block;
}

.collective-guide-entry span {
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 2px;
}

.collective-guide-entry p {
  color: #435149;
  line-height: 1.42;
  margin: 0;
  white-space: pre-wrap;
}

.collective-guide-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin: 0;
  padding: 14px 24px;
}

.collective-archive {
  overflow: hidden;
}

.collective-archive > summary,
.collective-editor-options > summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  padding: 15px 18px;
}

.collective-archive-list {
  border-top: 1px solid var(--line);
}

.collective-archive-list article {
  align-items: center;
  border-bottom: 1px solid #edf1ee;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 18px;
}

.collective-archive-list article:last-child {
  border-bottom: 0;
}

.collective-archive-list strong,
.collective-archive-list small {
  display: block;
}

.collective-archive-list small {
  color: var(--muted);
  margin-top: 3px;
}

.collective-editor-panel .panel-head > div:first-child h2 {
  margin: 0;
}

.collective-editor-panel {
  scroll-margin-top: 1.5rem;
}

.inline-text-link,
.inline-text-link:hover,
.inline-text-link:focus,
.inline-text-link:focus-visible {
  align-items: initial;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--blue);
  display: inline;
  font: inherit;
  justify-content: initial;
  line-height: inherit;
  min-height: 0;
  padding: 0;
  text-decoration: none;
  vertical-align: baseline;
}

.collective-year-setup {
  overflow: hidden;
}

.collective-year-setup > summary {
  cursor: pointer;
  list-style-position: inside;
  padding: 16px 18px;
}

.collective-year-setup > summary span {
  display: inline-grid;
  gap: 3px;
  margin-left: 5px;
  vertical-align: middle;
}

.collective-year-setup > summary strong,
.collective-year-setup > summary small {
  display: block;
}

.collective-year-setup > summary small,
.collective-break-editor small,
.collective-year-note {
  color: var(--muted);
}

.collective-year-setup > form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  padding: 18px;
}

.school-setup-overview {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.school-setup-overview-header,
.school-setup-editor-header {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.school-setup-overview-header h2,
.school-setup-overview-header p,
.school-setup-editor-header h2,
.school-setup-editor-header p {
  margin: 0;
}

.school-setup-overview-header p,
.school-setup-editor-header p {
  color: var(--muted);
  margin-top: 3px;
}

.school-setup-overview-header small {
  color: var(--muted);
  display: block;
  margin-top: 5px;
}

.school-setup-calendar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.school-setup-calendar-legend {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 10px 0;
}

.school-setup-calendar-legend span {
  align-items: center;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 750;
  gap: 6px;
}

.school-setup-calendar-legend i {
  border-radius: 4px;
  display: block;
  height: 12px;
  width: 12px;
}

.school-setup-calendar-legend i.break {
  background: #dce9df;
  border: 1px solid #9eb8a6;
}

.school-setup-calendar-legend i.special {
  background: #efe4c8;
  border: 1px solid #c8aa62;
}

.school-setup-calendar-legend i.milestone {
  background: var(--forest);
}

.school-setup-calendar-legend small {
  color: var(--muted);
  margin-left: auto;
}

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

.school-setup-mobile-month-controls {
  display: none;
}

.school-setup-month {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  overflow: hidden;
}

.school-setup-month h3 {
  background: #f5f8f5;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
  margin: 0;
  padding: 10px 12px;
}

.school-setup-month-weekdays,
.school-setup-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.school-setup-month-weekdays {
  background: #fafbf9;
  border-bottom: 1px solid var(--line);
}

.school-setup-month-weekdays span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
  padding: 6px 3px;
  text-align: center;
  text-transform: uppercase;
}

.school-setup-month-grid article {
  background: #fff;
  border-bottom: 1px solid #e8ece9;
  border-right: 1px solid #e8ece9;
  min-height: 76px;
  min-width: 0;
  padding: 5px;
}

.school-setup-month-grid article:nth-child(7n) {
  border-right: 0;
}

.school-setup-month-grid article:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.school-setup-month-grid article.muted {
  background: #fafbf9;
}

.school-setup-month-grid article.outside-year {
  background: #f7f7f4;
  color: #a0a7a2;
}

.school-setup-month-grid article.has-break {
  background: #eef5f0;
}

.school-setup-day-number {
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 4px;
}

.school-setup-day-event {
  border: 0;
  border-radius: 4px;
  display: block;
  font-size: 0.63rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 3px 0 0;
  min-height: 0;
  overflow: hidden;
  padding: 4px 5px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.school-setup-day-event.break {
  background: #dce9df;
  color: #234c36;
}

.school-setup-day-event.special {
  background: #efe4c8;
  color: #654c18;
}

.school-setup-day-event.milestone {
  background: var(--forest);
  color: #fff;
}

.school-setup-calendar-editor-backdrop {
  align-items: stretch;
  background: rgba(16, 28, 21, 0.3);
  display: flex;
  inset: 0;
  justify-content: flex-end;
  position: fixed;
  z-index: 120;
}

.school-setup-calendar-editor {
  background: #fff;
  box-shadow: -14px 0 38px rgba(15, 31, 25, 0.16);
  max-width: 430px;
  overflow-y: auto;
  padding: 22px;
  width: min(430px, 100%);
}

.school-setup-calendar-editor > header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 16px;
}

.school-setup-calendar-editor h2,
.school-setup-calendar-editor p {
  margin: 0;
}

.school-setup-calendar-editor p {
  color: var(--muted);
  margin-top: 4px;
}

.school-setup-calendar-editor form {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.school-setup-calendar-editor label {
  display: grid;
  gap: 6px;
}

.school-setup-calendar-editor input,
.school-setup-calendar-editor select,
.school-setup-calendar-editor textarea {
  width: 100%;
}

.school-setup-calendar-editor footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding-top: 16px;
}

.school-classes-shortcut {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 2px;
  padding: 16px 18px;
}

.school-classes-shortcut h2,
.school-classes-shortcut p {
  margin: 0;
}

.school-classes-shortcut p {
  color: var(--muted);
  margin-top: 4px;
}

.school-setup-class-color {
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  margin-right: 7px;
  width: 10px;
}

.collective-year-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.collective-year-setup label {
  display: grid;
  gap: 6px;
}

.collective-year-setup input,
.collective-year-setup select {
  width: 100%;
}

.collective-break-editor {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.collective-break-editor > header {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.collective-break-editor > header strong,
.collective-break-editor > header small {
  display: block;
}

.collective-break-list {
  border-top: 1px solid var(--line);
  margin-top: 14px;
}

.collective-break-row {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr) minmax(210px, 1.3fr) auto;
  padding: 14px 0;
}

.collective-break-row .danger-link {
  margin-bottom: 8px;
}

.collective-break-add-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}

.collective-year-note,
.collective-year-status {
  margin: 0;
}

.collective-year-status {
  background: #edf2ed;
  border-left: 3px solid var(--forest);
  color: var(--forest);
  padding: 10px 12px;
}

.collective-year-setup .form-actions {
  margin: 0;
}

.admin-school-setup {
  margin-top: 2px;
}

.school-special-date-row {
  grid-template-columns: minmax(150px, 1fr) minmax(130px, 0.7fr) minmax(140px, 0.75fr) minmax(210px, 1.3fr) auto;
}

.annual-class-setup {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.annual-class-setup-header,
.annual-school-class-group > header,
.annual-class-review-card > header,
.annual-class-teachers > header,
.annual-class-actions,
.annual-class-save {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.annual-class-setup-header strong,
.annual-class-setup-header small,
.annual-school-class-group > header strong,
.annual-school-class-group > header small,
.annual-class-review-card > header strong,
.annual-class-review-card > header small,
.annual-class-teachers > header strong,
.annual-class-teachers > header small,
.annual-teacher-row strong,
.annual-teacher-row small {
  display: block;
}

.annual-class-setup-header small,
.annual-school-class-group > header small,
.annual-class-review-card > header small,
.annual-class-teachers > header small,
.annual-teacher-row small,
.annual-class-save small,
.annual-class-empty {
  color: var(--muted);
}

.annual-class-setup-counts {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.class-rollover-notice {
  background: #f4f7f4;
  border: 1px solid #d9e3dc;
  border-left: 4px solid var(--forest);
  border-radius: 8px;
  padding: 12px 14px;
}

.class-rollover-notice p,
.annual-class-empty {
  margin: 5px 0 0;
}

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

.annual-school-class-group {
  align-content: start;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.annual-class-review-card {
  background: #fff;
  border: 1px solid #d9dfda;
  border-left: 4px solid #c59b45;
  border-radius: 9px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.annual-class-review-card.approved {
  border-left-color: var(--forest);
}

.annual-class-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1.2fr) minmax(125px, 0.8fr) minmax(170px, 1fr) 72px;
}

.annual-class-color input {
  min-height: 43px;
  padding: 4px;
}

.annual-class-teachers {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

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

.annual-teacher-row {
  align-items: center;
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(140px, 1fr) auto auto auto;
  padding: 9px 10px;
}

.annual-teacher-picker {
  align-items: end;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(180px, 1fr) auto;
}

.annual-class-actions {
  border-top: 1px solid var(--line);
  justify-content: flex-start;
  padding-top: 12px;
}

.annual-class-save {
  background: #f4f7f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.collective-editor-form {
  display: grid;
  gap: 0;
}

.collective-editor-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  padding: 18px;
}

.collective-editor-form label {
  display: grid;
  gap: 6px;
}

.collective-editor-form input,
.collective-editor-form select,
.collective-editor-form textarea {
  width: 100%;
}

.collective-editor-form textarea {
  min-height: 72px;
  resize: vertical;
}

.collective-editor-group {
  border-top: 1px solid var(--line);
  padding: 18px;
}

.collective-editor-group > div {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collective-editor-options {
  border-top: 1px solid var(--line);
}

.collective-editor-options > label {
  margin: 0 18px 14px;
}

.collective-editor-form > .form-actions {
  margin: 0 18px 18px;
}

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

.collective-reading-editor article {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.collective-reading-editor h4 {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1rem;
  margin: 0;
}

.collective-editor-field {
  display: grid;
  gap: 7px;
}

.collective-editor-field > label {
  margin: 0;
}

@media (max-width: 820px) {
  .collective-guide-header,
  .collective-archive-list article {
    align-items: flex-start;
    flex-direction: column;
  }

  .collective-guide-groups {
    grid-template-columns: 1fr;
  }

  .collective-guide-group,
  .collective-guide-group:first-child,
  .collective-guide-group:last-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
  }

  .collective-guide-group:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .collective-editor-meta,
  .collective-editor-group > div,
  .collective-reading-editor,
  .collective-year-fields,
  .collective-break-row {
    grid-template-columns: 1fr;
  }

  .collective-break-editor > header {
    align-items: flex-start;
  }

  .collective-break-row .danger-link {
    justify-self: start;
    margin-bottom: 0;
  }
}

.student-class-page {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 0.3fr) minmax(0, 1fr);
  padding: 14px;
}

.direct-class-page {
  grid-template-columns: 1fr;
  padding: 0;
}

.class-admin-hub {
  margin-bottom: 18px;
}

.class-admin-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 0.3fr) minmax(0, 1fr);
  padding: 14px;
}

.student-class-sidebar {
  display: grid;
  gap: 8px;
  align-content: start;
}

.student-class-sidebar button {
  background: #f8faf9;
  border: 1px solid var(--line);
  color: var(--ink);
  justify-content: flex-start;
  text-align: left;
}

.student-class-sidebar button.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.student-class-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.direct-class-page .student-class-detail {
  border: 0;
}

.class-admin-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.student-class-detail h2,
.student-class-detail p {
  margin: 0;
}

.student-class-detail p {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 6px;
}

.class-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.teacher-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.class-summary-row span {
  background: #eef6f1;
  border: 1px solid #cfe3d6;
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 10px;
}

.class-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

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

.class-module-grid section {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.class-module-grid p {
  font-size: 0.9rem;
}

.class-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.class-tabs button {
  background: #f8faf9;
  border: 1px solid var(--line);
  color: var(--ink);
}

.class-tabs button.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.compact-class-form {
  border-top: 1px solid var(--line);
  padding: 16px 0 0;
}

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

.assignment-list article {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 14px;
}

.class-color-row {
  border-left: 5px solid var(--class-color, var(--forest)) !important;
}

.class-color-dot {
  background: var(--class-color, var(--forest));
  border-radius: 999px;
  display: inline-block;
  height: 0.7em;
  margin-right: 7px;
  vertical-align: -0.05em;
  width: 0.7em;
}

.assignment-mini-list button {
  border-left: 5px solid var(--class-color, var(--forest));
}

.assignment-list article.complete {
  background: #f3f8f5;
}

.assignment-list article.overdue {
  background: #fff8f3;
  border-color: #e4c6a8;
}

.assignment-list label {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  white-space: nowrap;
}

.assignment-list input {
  min-height: auto;
  width: auto;
}

.assignment-list strong,
.assignment-list small {
  display: block;
}

.assignment-list small {
  color: var(--muted);
  margin-top: 4px;
}

.assignment-list .status-pill {
  display: inline-block;
  margin-bottom: 7px;
}

.due-next-list article {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.class-completed-dropdown {
  border: 0;
  padding: 0;
}

.class-completed-dropdown summary {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calendar-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
}

.calendar-panel {
  overflow: hidden;
}

.calendar-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 14px;
}

.calendar-toolbar h2 {
  margin: 0;
  text-align: center;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 9px;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid article {
  background: #fff;
  border-bottom: 1px solid #edf1f3;
  border-right: 1px solid #edf1f3;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 9px;
}

.calendar-grid article:nth-child(7n) {
  border-right: 0;
}

.calendar-grid article.muted {
  background: #fbfbf8;
  color: #a1a9b0;
}

.calendar-grid article.today {
  box-shadow: inset 0 0 0 2px var(--forest);
}

.calendar-grid article > strong {
  font-size: 0.86rem;
}

.calendar-event-list,
.calendar-upcoming-list {
  display: grid;
  gap: 6px;
}

.calendar-event {
  align-items: start;
  background: #f8faf9;
  border: 1px solid #edf1f3;
  border-left: 5px solid var(--class-color, var(--forest));
  color: var(--ink);
  display: grid;
  gap: 2px;
  justify-content: stretch;
  min-height: 0;
  padding: 6px 7px;
  text-align: left;
}

.calendar-event:hover {
  background: #eef6f1;
  color: var(--ink);
}

.calendar-event span,
.calendar-event small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event span {
  font-size: 0.78rem;
  font-weight: 850;
}

.calendar-event small,
.calendar-more {
  color: var(--muted);
  font-size: 0.72rem;
}

.calendar-side-panel,
.calendar-admin-panel {
  align-self: start;
}

.calendar-upcoming-list article {
  align-items: center;
  border-bottom: 1px solid #edf1f3;
  border-left: 5px solid var(--class-color, var(--forest));
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.calendar-upcoming-list article:last-child {
  border-bottom: 0;
}

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

.calendar-upcoming-list span {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 2px;
}

.calendar-legend,
.calendar-upcoming-panel {
  border-top: 1px solid var(--line);
  margin-top: 14px;
}

.calendar-side-panel > details:first-child {
  border-top: 0;
  margin-top: 0;
}

.calendar-legend summary,
.calendar-upcoming-panel summary {
  padding: 14px 0 10px;
}

.calendar-legend-list {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  padding-bottom: 4px;
}

.calendar-legend-list article {
  align-items: center;
  background: #f8faf9;
  border: 1px solid #edf1f3;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 9px 10px;
}

.calendar-legend-list i {
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15, 31, 25, 0.12);
  display: block;
  height: 14px;
  width: 14px;
}

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

.calendar-legend-list strong {
  font-size: 0.84rem;
}

.calendar-legend-list span {
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 1px;
}

.calendar-admin-panel {
  grid-column: 2;
}

.calendar-event-form {
  display: grid;
  gap: 10px;
  padding: 14px;
}

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

.announcement-list article {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.announcement-list p,
.announcement-list small {
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.class-progress-card {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.class-progress-card meter {
  accent-color: var(--forest);
  width: 100%;
}

.school-progress-panel {
  margin-bottom: 18px;
}

.school-progress-list {
  display: grid;
  gap: 0;
}

.school-progress-list > article {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}

.school-progress-list > article:last-child {
  border-bottom: 0;
}

.school-progress-list header,
.progress-student-list section {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.school-progress-list header span,
.progress-student-list small {
  color: var(--muted);
}

.progress-student-list {
  display: grid;
  gap: 10px;
}

.progress-student-list section {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.progress-student-list strong,
.progress-student-list small {
  display: block;
}

.progress-student-list meter {
  accent-color: var(--forest);
  min-width: 150px;
}

.student-class-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.student-class-list span {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 9px;
}

.student-class-editor {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.student-class-editor small {
  color: var(--muted);
  display: block;
  line-height: 1.35;
  margin-top: 2px;
}

.student-class-editor > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.student-class-editor label {
  align-items: center;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 7px;
  padding: 7px 10px;
}

.student-class-editor input {
  min-height: auto;
  width: auto;
}

.student-prep-panel {
  margin-bottom: 18px;
  overflow: hidden;
}

.student-prep-grid,
.school-student-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  padding: 18px;
}

.student-prep-grid > article,
.school-student-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.student-prep-grid header,
.school-student-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.school-student-head {
  align-items: center;
}

.student-prep-grid header strong,
.student-prep-grid header span,
.school-student-head strong,
.school-student-head small {
  display: block;
}

.school-student-head strong {
  font-size: 1.05rem;
}

.school-student-head small {
  color: var(--muted);
  line-height: 1.35;
  margin-top: 3px;
}

.student-prep-progress {
  background: #eef6f1;
  border: 1px solid #cfe3d6;
  border-radius: 999px;
  color: var(--forest);
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 9px;
}

.student-prep-grid header span,
.student-prep-grid p,
.student-prep-grid li {
  color: var(--muted);
  line-height: 1.4;
}

.student-prep-grid h3,
.school-student-checklist h3 {
  color: var(--forest);
  font-size: 0.78rem;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.student-prep-grid p,
.student-prep-grid ul {
  margin: 0;
}

.student-prep-grid ul {
  padding-left: 18px;
}

.back-school-viewer {
  margin-top: 18px;
  overflow: hidden;
}

.back-school-viewer iframe {
  border: 0;
  display: block;
  height: min(72vh, 820px);
  width: 100%;
}

.back-school-checklist,
.back-school-files {
  display: grid;
  gap: 0;
}

.back-school-checklist article,
.back-school-files article {
  align-items: center;
  border-bottom: 1px solid #edf1f3;
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}

.back-school-checklist article {
  grid-template-columns: auto minmax(0, 1fr);
}

.back-school-checklist.mini article {
  padding: 8px 0;
}

.back-school-checklist.mini article.checked strong {
  color: var(--muted);
  text-decoration: line-through;
}

.back-school-checklist input {
  accent-color: var(--forest);
  min-height: auto;
  width: auto;
}

.back-school-checklist article:last-child,
.back-school-files article:last-child {
  border-bottom: 0;
}

.back-school-checklist article > span {
  background: #eef6f1;
  border: 1px solid #cfe3d6;
  border-radius: 999px;
  height: 16px;
  width: 16px;
}

.back-school-files article {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.back-school-files label {
  display: grid;
  gap: 5px;
}

.back-school-files label span,
.back-school-files small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.back-school-files input[type="text"] {
  min-height: 38px;
}

.file-upload-button,
.back-school-files .file-upload-button {
  align-items: center;
  background: var(--forest);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  text-transform: none;
}

.file-upload-button input {
  display: none;
}

.back-school-files p {
  color: var(--muted);
  line-height: 1.4;
  margin: 4px 0 0;
}

.back-school-downloads {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #edf1f3;
  vertical-align: top;
}

th:first-child,
td:first-child {
  text-align: center;
  width: 48px;
}

th {
  background: #f1f5f3;
  color: #35443f;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

td small {
  margin-top: 4px;
  color: var(--red);
  font-weight: 700;
}

.load {
  width: calc(100% - 32px);
  margin: 16px;
  background: var(--forest);
}

.downloads {
  display: grid;
}

.checklist {
  display: grid;
}

.checklist article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #edf1f3;
}

.checklist p {
  color: var(--muted);
  line-height: 1.45;
  margin: 5px 0 0;
}

.status-pill {
  align-self: start;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
  text-align: center;
}

.status-pill.ready {
  background: #e5f4eb;
  color: #24553a;
}

.status-pill.next {
  background: #f6ecd2;
  color: #815d16;
}

.status-pill.active {
  background: #e5f4eb;
  color: #24553a;
}

.status-pill.invited {
  background: #eef3f6;
  color: #2d5f88;
}

.status-pill.complete {
  background: #e5f4eb;
  color: #24553a;
}

.status-pill.in {
  background: #f6ecd2;
  color: #815d16;
}

.status-pill.overdue {
  background: #fae8dd;
  color: #963f1c;
}

.status-pill.hidden {
  background: #edf1f3;
  color: #4b5563;
}

.publish-toggle {
  min-height: 0;
}

.program-subscriptions {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.program-subscriptions article {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.program-subscriptions p {
  color: var(--muted);
  line-height: 1.45;
}

.program-subscriptions article strong {
  color: var(--ink);
}

.program-subscriptions p {
  margin: 4px 0 0;
}

.family-dashboard {
  margin-bottom: 18px;
}

.family-hero {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px 22px;
}

.avatar-block {
  align-items: center;
  background: #e8f0ed;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--forest);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  justify-content: center;
  overflow: hidden;
}

.avatar-block img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.avatar-block.large {
  font-size: 1.45rem;
  height: 88px;
  width: 88px;
}

.family-photo {
  font-size: 1.35rem;
  height: 76px;
  width: 76px;
}

.clickable-family-photo {
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.clickable-family-photo:hover {
  box-shadow: 0 0 0 3px rgba(186, 139, 41, 0.32);
  transform: translateY(-1px);
}

.clickable-family-photo:focus-within {
  box-shadow: none;
}

.clickable-family-photo input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.family-photo-control {
  height: 88px;
  position: relative;
  width: 88px;
}

.photo-upload-badge,
.photo-delete-button {
  align-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  display: inline-flex;
  font-style: normal;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  padding: 0;
  position: absolute;
  width: 26px;
}

.photo-upload-badge {
  background: var(--forest);
  bottom: -2px;
  color: #fff;
  pointer-events: none;
  right: -2px;
}

.photo-delete-button {
  background: #fff0ee;
  color: var(--red);
  min-height: 26px;
  right: -8px;
  top: -8px;
  z-index: 2;
}

.photo-delete-button:hover {
  background: #f9d8d2;
  color: #783129;
}

.student-photo-control {
  height: 42px;
  position: relative;
  width: 42px;
}

.student-photo-badge,
.student-photo-delete {
  border-width: 1px;
  font-size: 0.72rem;
  height: 20px;
  min-height: 20px;
  width: 20px;
}

.student-photo-delete {
  right: -8px;
  top: -8px;
}

.student-photo {
  font-size: 0.82rem;
  height: 42px;
  width: 42px;
}

.student-photo-list {
  display: grid;
  gap: 10px;
}

.student-photo-list article {
  align-items: center;
  display: flex;
  gap: 10px;
}

.family-hero h2 {
  font-size: 1.2rem;
  margin: 0;
}

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

.family-dashboard-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: 0.8fr 1.15fr 1fr;
  background: var(--line);
}

.family-dashboard-grid section {
  background: #fff;
  display: grid;
  gap: 8px;
  padding: 18px 22px;
}

.family-dashboard-actions {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px;
}

.family-dashboard-grid h3,
.profile-box h3 {
  color: var(--forest);
  font-size: 0.82rem;
  margin: 0;
  text-transform: uppercase;
}

.family-dashboard-grid span,
.profile-box span,
.profile-box small {
  color: var(--muted);
  line-height: 1.45;
}

.program-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.program-chip-list span {
  background: #e8f0ed;
  border-radius: 999px;
  color: var(--forest);
  font-weight: 800;
  padding: 7px 10px;
}

.future-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
}

.future-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf9;
  color: var(--ink);
  font-weight: 700;
  padding: 8px 12px;
}

.notice-band {
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
  padding: 12px 18px;
}

.notice-band.success {
  background: #e5f4eb;
  color: #24553a;
  font-weight: 700;
}

.notice-band.error {
  background: #fff0ee;
  border-bottom-color: #efb7ae;
  color: var(--red);
  font-weight: 750;
}

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

.program-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.program-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.program-grid div {
  padding: 14px;
}

.program-grid p {
  margin: 8px 0;
  color: var(--forest);
  font-weight: 700;
}

.program-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.resource-row {
  padding: 16px 18px;
  border-bottom: 1px solid #edf1f3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.resource-row p {
  margin: 5px 0;
  line-height: 1.4;
}

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

.admin-list article {
  box-shadow: none;
  padding: 16px;
}

.member-admin-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.member-admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 520px;
}

.people-directory-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.people-directory-panel.member-collapsible[open] {
  display: grid;
}

.people-directory-panel > summary {
  padding: 0;
}

.people-directory-head {
  padding-top: 4px;
}

.people-stat-strip {
  margin-bottom: 0;
}

.people-directory-filters {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
}

.people-directory-filters label {
  display: grid;
  gap: 5px;
}

.people-directory-filters label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.people-directory-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  max-height: 430px;
  overflow: auto;
}

.people-directory-table button {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf1f3;
  border-radius: 0;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 44px minmax(190px, 1.2fr) minmax(110px, 0.7fr) minmax(95px, 0.55fr) minmax(190px, 1fr) minmax(110px, 0.65fr);
  justify-items: start;
  min-height: auto;
  padding: 10px 12px;
  text-align: left;
}

.people-directory-table button:hover {
  background: #f8faf9;
}

.people-directory-table button:last-child {
  border-bottom: 0;
}

.people-directory-table strong {
  display: block;
}

.people-directory-table small,
.people-directory-table button > span:not(:first-child) {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.member-directory {
  background: #f8faf9;
  border-right: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
}

.directory-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 4px 2px 8px;
}

.directory-head strong {
  color: var(--ink);
}

.directory-head span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.member-directory button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 4px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: stretch;
  min-height: auto;
  padding: 12px;
  text-align: left;
}

.member-directory {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.member-directory .directory-head {
  grid-column: 1 / -1;
}

.member-directory button strong,
.member-directory button > span:not(.directory-photo) {
  grid-column: 2;
}

.directory-photo {
  align-items: center;
  align-self: center;
  background: #e8f0ed;
  border-radius: 8px;
  color: var(--forest);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  grid-column: 1;
  grid-row: 1 / span 2;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.member-directory button.active {
  border-color: var(--forest);
  box-shadow: inset 4px 0 0 var(--forest);
}

.member-directory button span {
  color: var(--muted);
  font-size: 0.84rem;
}

.member-detail {
  background: #fff;
}

.member-detail-overlay {
  align-items: stretch;
  background: rgba(15, 31, 25, 0.34);
  display: flex;
  inset: 0;
  justify-content: flex-end;
  padding: 18px;
  position: fixed;
  z-index: 50;
}

.member-detail-drawer {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 36px);
  max-width: 980px;
  overflow: auto;
  width: min(980px, 100%);
}

.member-close-confirm-overlay {
  align-items: center;
  background: rgba(15, 31, 25, 0.3);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 60;
}

.member-close-confirm-dialog {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  max-width: 390px;
  padding: 24px;
  width: 100%;
}

.member-close-confirm-dialog > strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.member-close-confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.member-detail-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 18px;
}

.member-detail-header strong {
  display: block;
  font-size: 1.18rem;
}

.member-detail-header span {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.member-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.member-profile-stats span {
  background: #f1f5f3;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  margin-top: 0;
  padding: 6px 9px;
}

.member-detail-header .status-pill {
  color: #24553a;
  display: inline-block;
  margin-top: 0;
}

.member-detail-header .status-pill.invited {
  color: #2d5f88;
}

.member-header-actions {
  align-items: end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.member-edit-buttons {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}

.member-save-button,
.member-close-button {
  font-size: 0.82rem;
  min-height: 32px;
  padding: 0 10px;
}

.member-drawer-actions {
  background: #fff;
  border-top: 1px solid var(--line);
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px;
  position: sticky;
  z-index: 3;
}

.danger-button,
.danger-link {
  background: #fff0ee;
  border: 1px solid #efb7ae;
  color: var(--red);
}

.danger-button:hover,
.danger-link:hover {
  background: #f9d8d2;
  color: #783129;
}

.danger-link {
  min-height: 32px;
  padding: 0 10px;
}

.photo-upload-control {
  align-items: start;
  display: grid;
  gap: 6px;
  max-width: 260px;
}

.photo-upload-control input {
  background: #f8faf9;
  font-size: 0.86rem;
  min-height: auto;
  padding: 8px;
}

.invite-link-box {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) auto;
}

.invite-link-box input {
  background: #f8faf9;
  font-size: 0.86rem;
}

.invite-note {
  color: var(--muted);
  line-height: 1.4;
  margin: 8px 0 0;
  max-width: 620px;
}

.family-login-email {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.family-login-email > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.family-login-email > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.family-login-email > div > strong {
  overflow-wrap: anywhere;
}

.family-self-service {
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.calm-family-page {
  display: grid;
  gap: 0;
}

.family-profile-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 22px 24px;
}

.family-profile-header h2 {
  font-size: 1.3rem;
  margin: 0;
}

.family-profile-header p {
  color: var(--muted);
  margin: 6px 0 0;
}

.family-header-actions {
  align-items: end;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.family-summary-strip {
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 24px;
}

.family-summary-strip span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 7px 10px;
}

.family-overview-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  padding: 18px;
}

.family-overview-card,
.family-edit-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.card-title-row,
.person-summary-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.card-title-row h3,
.family-overview-card h3,
.family-edit-panel h3 {
  color: var(--forest);
  font-size: 0.82rem;
  margin: 0;
  text-transform: uppercase;
}

.full-width-profile-box h4 {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0;
  margin: 8px 0 0;
  text-transform: uppercase;
}

.person-summary-row {
  border-top: 1px solid #edf1f3;
  padding-top: 12px;
}

.person-summary-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.person-summary-row > div:not(.avatar-block) {
  min-width: 0;
}

.person-summary-row strong,
.person-summary-row span {
  display: block;
}

.person-summary-row span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3px;
}

.family-edit-panel {
  background: #fbfcfb;
  margin: 0 18px 18px;
}

.family-edit-panel > button {
  justify-self: end;
}

.family-required-forms {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  padding: 18px;
}

.family-required-forms > header {
  padding: 0 0 14px;
}

.family-required-forms > header p {
  color: var(--muted);
  margin: 4px 0 0;
}

.compact-family-forms {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.setup-progress-band {
  align-items: start;
  background: #172820;
  color: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1.2fr);
  padding: 22px 24px;
}

.setup-progress-band h2 {
  font-size: 1.45rem;
  margin: 0;
}

.setup-progress-band p {
  color: #f5e7bf;
  line-height: 1.45;
  margin: 8px 0 0;
}

.setup-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.setup-step-list span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 8px 10px;
}

.setup-step-list span.complete {
  background: #e5f4eb;
  color: #24553a;
}

.family-student-row {
  grid-template-columns: auto minmax(180px, 1fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) minmax(170px, 0.75fr) auto;
}

.compact-upload {
  margin-top: 0;
}

.compact-upload input {
  max-width: 170px;
}

.admin-photo {
  height: 88px;
  width: 88px;
}

.profile-section-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  padding: 14px;
}

.admin-actions-box,
.full-width-profile-box,
.paperwork-admin-box,
.member-collapsible {
  grid-column: 1 / -1;
}

.compact-member-detail .profile-box {
  padding: 14px;
}

.member-collapsible {
  border-color: var(--line);
  border-radius: 6px;
  gap: 0;
  overflow: hidden;
}

.member-collapsible summary {
  align-items: center;
  background: #f8faf9;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  min-height: 48px;
  padding: 11px 13px;
  transition: background 0.15s ease;
}

.member-collapsible summary:hover {
  background: #eef3f0;
}

.member-collapsible summary::-webkit-details-marker {
  display: none;
}

.member-collapsible summary::after {
  border-bottom: 2px solid #65746d;
  border-right: 2px solid #65746d;
  content: "";
  flex: 0 0 auto;
  height: 8px;
  margin-right: 3px;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  width: 8px;
}

.member-collapsible[open] summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding: 11px 13px;
}

.member-collapsible[open] summary::after {
  transform: rotate(225deg);
}

.member-collapsible summary strong,
.member-collapsible summary small {
  display: block;
}

.member-collapsible summary strong {
  color: var(--forest);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.member-collapsible summary small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  margin-top: 3px;
}

.admin-actions-box > p,
.admin-actions-box div > p {
  color: var(--muted);
  line-height: 1.4;
  margin: 4px 0 0;
}

.admin-action-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(280px, 1.3fr) minmax(240px, 0.7fr);
}

.admin-action-card {
  align-content: start;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.admin-action-card strong {
  color: var(--ink);
}

.admin-action-card span {
  color: var(--muted);
  line-height: 1.4;
}

.admin-action-card.photo-upload-control {
  max-width: none;
}

.danger-card {
  background: #fff7f5;
  border-color: #efc8c1;
}

.danger-card button {
  justify-self: start;
}

.profile-box {
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.add-family-form {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(240px, 0.9fr) minmax(260px, 1.1fr);
  padding: 18px;
}

.add-family-form .subscriptions-box,
.form-actions {
  grid-column: 1 / -1;
}

.guardian-entry-grid,
.student-entry-list {
  display: grid;
  gap: 12px;
}

.guardian-entry-row,
.student-entry-row {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.guardian-entry-row {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.5fr) minmax(190px, 0.75fr);
}

.student-entry-row {
  align-items: end;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) auto;
}

.field-note {
  background: #fff7df;
  border: 1px solid #efd488;
  border-radius: 8px;
  color: #6f5217;
  line-height: 1.4;
  margin: 0;
  padding: 10px 12px;
}

.add-row {
  justify-self: start;
}

.remove-row {
  min-width: 92px;
}

.form-actions {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 16px;
}

.student-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.student-row {
  display: grid;
  grid-template-columns: 72px minmax(220px, 1fr) minmax(130px, 0.5fr) minmax(150px, 0.55fr) 170px;
}

.family-member-table .student-row {
  grid-template-columns: 72px minmax(220px, 1fr) minmax(130px, 0.5fr) minmax(150px, 0.55fr);
}

.student-row > span {
  align-items: center;
  border-bottom: 1px solid #edf1f3;
  color: var(--ink);
  display: flex;
  gap: 8px;
  padding: 10px 12px;
}

.table-photo {
  height: 40px;
  width: 40px;
}

.student-row:last-child > span {
  border-bottom: 0;
}

.student-row.table-head > span {
  background: #f1f5f3;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.subscription-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
}

.subscription-row input {
  accent-color: var(--forest);
  min-height: auto;
  width: auto;
}

.subscription-row strong,
.subscription-row small {
  display: block;
}

.subscription-row strong {
  color: var(--ink);
}

.subscription-row small {
  color: var(--muted);
  margin-top: 2px;
}

.access-editor-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.person-edit-row {
  background: #fbfcfb;
}

.inline-person-edit {
  background: #fff;
}

.inline-person-edit.family-student-row {
  grid-template-columns: auto minmax(180px, 1fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) minmax(170px, 0.75fr);
}

.access-editor-row strong,
.access-editor-row small {
  display: block;
}

.access-editor-row small {
  color: var(--muted);
  margin-top: 2px;
}

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

.access-checkbox-grid label {
  align-items: center;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  gap: 7px;
  min-height: 34px;
  padding: 7px 9px;
}

.access-checkbox-grid input {
  accent-color: var(--forest);
  min-height: auto;
  width: auto;
}

.access-checkbox-grid input:disabled + span {
  color: var(--muted);
}

.teacher-class-picker {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.teacher-class-picker > div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-class-picker label {
  align-items: center;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  gap: 7px;
  min-height: 34px;
  padding: 7px 9px;
}

.teacher-class-picker input {
  accent-color: var(--forest);
  min-height: auto;
  width: auto;
}

.paperwork-admin-box {
  gap: 12px;
}

.paperwork-admin-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.paperwork-admin-head h3 {
  margin: 0;
}

.paperwork-admin-head p {
  color: var(--muted);
  line-height: 1.4;
  margin: 4px 0 0;
}

.paperwork-admin-head > span {
  background: #eef6f1;
  border: 1px solid #cfe3d6;
  border-radius: 999px;
  color: var(--forest);
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 850;
  padding: 7px 10px;
}

.paperwork-admin-row {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.55fr) minmax(180px, 0.65fr);
  padding: 14px;
}

.paperwork-admin-row p {
  color: var(--muted);
  margin: 4px 0 0;
}

.download-note {
  color: var(--forest);
  font-weight: 800;
}

.paperwork-upload input {
  background: #f8faf9;
  font-size: 0.86rem;
  min-height: auto;
  padding: 8px;
}

.paperwork-file-list {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.in-person-check {
  align-items: center;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.in-person-check input {
  accent-color: var(--forest);
  min-height: auto;
  width: auto;
}

.in-person-check span,
.in-person-check small {
  display: block;
}

.in-person-check small {
  color: var(--muted);
}

.paperwork-file-list > span {
  color: var(--muted);
}

.paperwork-file-list div {
  align-items: center;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.paperwork-file-list small {
  color: var(--muted);
}

.paperwork-file-list a {
  min-height: 32px;
  padding: 0 10px;
}

.student-portal-hero {
  align-items: center;
  background: #172820;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #fff;
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
}

.student-portal-hero h2 {
  font-size: 1.65rem;
  margin: 0;
}

.student-portal-hero p {
  color: #f5e7bf;
  margin: 8px 0 0;
}

.student-dashboard-grid,
.schoolwork-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.student-empty-state,
.access-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.student-empty-state p {
  color: var(--muted);
  line-height: 1.5;
}

.student-empty-state button {
  justify-self: start;
}

.access-list span {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  padding: 10px 12px;
}

.schoolwork-panel {
  max-width: 1100px;
}

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

.schoolwork-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

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

@media (max-width: 1080px) {
  .parent-schoolwork-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topnav {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topnav-brand {
    min-width: 0;
  }

  .portal-mobile-menu-button {
    background: transparent;
    border: 1px solid var(--line);
    display: grid;
    gap: 4px;
    height: 42px;
    min-height: 42px;
    padding: 10px;
    width: 42px;
  }

  .portal-mobile-menu-button:hover,
  .portal-mobile-menu-button.open {
    background: #e8f0ed;
  }

  .portal-mobile-menu-button span {
    background: var(--forest);
    display: block;
    height: 2px;
    transition: transform 160ms ease, opacity 160ms ease;
    width: 20px;
  }

  .portal-mobile-menu-button.open span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .portal-mobile-menu-button.open span:nth-child(2) {
    opacity: 0;
  }

  .portal-mobile-menu-button.open span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .topnav-collapsible {
    border-top: 1px solid var(--line);
    display: none;
    gap: 12px;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .topnav-collapsible.open {
    display: grid;
  }

  .topnav.parent-simple-nav .portal-mobile-menu-button {
    display: none;
  }

  .topnav.parent-simple-nav .topnav-collapsible {
    border-top: 0;
    display: contents;
    padding-top: 0;
  }

  .topnav.parent-simple-nav .topnav-account {
    border-top: 0;
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
  }

  .topnav-links {
    width: 100%;
  }

  .topnav-account {
    border-top: 1px solid var(--line);
    justify-content: space-between;
    padding-top: 12px;
    text-align: left;
    width: 100%;
  }

  .admin-menu div {
    left: 0;
    right: auto;
  }

  .toolbar,
  .book-actions,
  .checkbox-filters,
  .split,
  .hero,
  .section-tabs,
  .form-template-list article,
  .dashboard-grid,
  .school-portal-grid,
  .program-page-grid,
  .lower-dashboard-grid,
  .upper-dashboard-grid,
  .lower-subject-grid,
  .parent-dashboard-grid,
  .teacher-dashboard-grid,
  .admin-dashboard-grid,
  .admin-stat-strip,
  .people-directory-filters,
  .admin-announcement-form,
  .announcement-target-grid,
  .class-target-grid,
  .announcement-class-row,
  .admin-announcement-list article,
  .school-student-grid,
  .student-prep-grid,
  .summary-grid,
  .program-grid,
  .family-dashboard-grid,
  .family-profile-header,
  .family-overview-grid,
  .member-admin-layout,
  .profile-section-grid,
  .add-family-form,
  .guardian-entry-row,
  .student-entry-row,
  .family-student-row,
  .invite-link-box,
  .admin-action-grid,
  .paperwork-admin-row,
  .member-paperwork-actions,
  .school-content-form,
  .school-material-list article,
  .assignment-list article,
  .school-class-grid,
  .class-editor-form,
  .class-editor-fields,
  .student-class-page,
  .class-admin-layout,
  .class-module-grid,
  .access-checkbox-grid,
  .teacher-class-picker > div,
  .teacher-class-actions > div,
  .teacher-class-header,
  .teacher-assignment-list article,
  .calendar-layout,
  .calendar-admin-panel,
  .upper-info-grid,
  .upper-fees-grid,
  .upper-schedule-grid,
  .trade-structure-grid,
  .trade-area-grid,
  .support-feature,
  .support-stewardship-grid,
  .setup-progress-band,
  .paperwork-layout,
  .student-dashboard-grid,
  .schoolwork-grid,
  .admin-list {
    grid-template-columns: 1fr 1fr;
  }

  .people-directory-table button {
    grid-template-columns: 44px minmax(180px, 1fr) minmax(110px, 0.6fr);
  }

  .people-directory-table button > span:nth-child(n + 5) {
    grid-column: 2 / -1;
  }

  .direct-class-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .parent-schoolwork-status-grid {
    grid-template-columns: 1fr;
  }

  .teacher-inline-post-form {
    padding: 16px;
  }

  .assignment-compose-form .assignment-schedule-row {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .assignment-compose-form .assignment-attachment-button {
    width: 100%;
  }

  .topbar,
  .topnav,
  .workspace {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .public-nav nav {
    justify-content: flex-start;
  }

  .public-band article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .public-band article:first-child {
    border-top: 0;
  }

  .public-camp-grid .featured-camp {
    grid-template-columns: 1fr;
  }

  .public-camp-grid .featured-camp img {
    aspect-ratio: 16 / 10;
  }

  .public-brand img {
    height: 58px;
    width: 172px;
  }

  .parent-dashboard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .parent-dashboard-actions button {
    min-width: 0;
    width: 100%;
  }

  .parent-dashboard-actions.family-dashboard-action {
    grid-template-columns: 1fr;
  }

  .topnav.parent-simple-nav .topnav-brand {
    min-width: 0;
  }

  .topnav.parent-simple-nav .topnav-account span:not(.account-stack) {
    display: none;
  }

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

  .identity {
    text-align: left;
  }

  .topnav-links,
  .public-band,
  .public-about-section,
  .public-value-grid,
  .public-program-grid,
  .academy-program-grid,
  .public-program-detail,
  .public-detail-grid,
  .public-camp-grid,
  .public-camp-details,
  .public-interest-form,
  .public-site-request-form,
  .public-team-grid,
  .public-split-section,
  .public-library-section,
  .public-portal-section,
  .toolbar,
  .book-actions,
  .checkbox-filters,
  .split,
  .hero,
  .section-tabs,
  .form-template-list article,
  .dashboard-grid,
  .school-portal-grid,
  .program-page-grid,
  .lower-dashboard-grid,
  .upper-dashboard-grid,
  .lower-subject-grid,
  .parent-dashboard-grid,
  .teacher-dashboard-grid,
  .teacher-date-row,
  .admin-dashboard-grid,
  .admin-stat-strip,
  .people-directory-filters,
  .admin-announcement-form,
  .announcement-target-grid,
  .class-target-grid,
  .announcement-class-row,
  .admin-announcement-list article,
  .school-student-grid,
  .student-prep-grid,
  .program-intro,
  .summary-grid,
  .program-grid,
  .family-dashboard-grid,
  .family-profile-header,
  .family-overview-grid,
  .member-admin-layout,
  .profile-section-grid,
  .add-family-form,
  .guardian-entry-row,
  .student-entry-row,
  .family-student-row,
  .invite-link-box,
  .admin-action-grid,
  .paperwork-admin-row,
  .member-paperwork-actions,
  .school-content-form,
  .school-material-list article,
  .assignment-list article,
  .school-class-grid,
  .class-editor-form,
  .class-editor-fields,
  .student-class-page,
  .class-admin-layout,
  .class-module-grid,
  .access-checkbox-grid,
  .teacher-class-picker > div,
  .teacher-class-actions > div,
  .teacher-class-header,
  .teacher-assignment-list article,
  .calendar-layout,
  .calendar-admin-panel,
  .upper-info-grid,
  .upper-fees-grid,
  .upper-schedule-grid,
  .tuition-list,
  .trade-structure-grid,
  .trade-area-grid,
  .setup-progress-band,
  .paperwork-layout,
  .student-dashboard-grid,
  .schoolwork-grid,
  .admin-list,
  .resource-row {
    grid-template-columns: 1fr;
  }

  .people-directory-table {
    max-height: none;
  }

  .people-directory-table button {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .people-directory-table button > span:nth-child(n + 3) {
    grid-column: 2;
  }

  .direct-class-page {
    grid-template-columns: 1fr;
  }

  .public-form-wide {
    grid-column: 1;
  }

  .topnav-links {
    display: grid;
    gap: 8px;
  }

  .topnav-links button,
  .admin-menu summary,
  .public-nav-menu-trigger {
    justify-content: center;
    width: 100%;
  }

  .admin-menu div,
  .public-nav-menu div {
    box-shadow: none;
    margin-top: 6px;
    position: static;
  }

  .topnav-account {
    align-items: stretch;
    flex-direction: column;
  }

  .account-stack {
    justify-items: stretch;
    text-align: left;
  }

  .view-as-switcher {
    grid-template-columns: 1fr;
    justify-self: stretch;
  }

  .export-actions {
    justify-content: stretch;
  }

  .export-actions button {
    flex: 1 1 140px;
  }

  .panel-head,
  .panel-actions,
  .paperwork-admin-head,
  .school-progress-list header,
  .progress-student-list section {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-options {
    box-shadow: none;
    position: static;
  }

  .section-tabs {
    display: grid;
  }

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

  .file-button-grid {
    grid-template-columns: 1fr;
  }

  .checklist article {
    grid-template-columns: 1fr;
  }

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

  .student-row.table-head {
    display: none;
  }

  .student-portal-hero,
  .dashboard-hero,
  .family-hero,
  .paperwork-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .paperwork-list aside {
    justify-items: start;
  }

  .paperwork-stats {
    justify-content: flex-start;
  }

  .form-actions {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .announcement-heading-actions {
    justify-content: space-between;
    width: 100%;
  }

  .announcement-panel-toggle {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .announcement-panel-toggle > span {
    margin-left: auto;
    text-align: right;
  }
}
.parent-dashboard-home {
  display: grid;
  gap: 1rem;
}

.parent-dashboard-main-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.parent-dashboard-announcements .dashboard-announcement-list {
  display: grid;
  gap: 0;
  padding: 0;
}

.parent-dashboard-announcements .dashboard-announcement-list article {
  align-items: start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.parent-dashboard-announcements .dashboard-announcement-list p {
  margin: 0.35rem 0;
}

.announcement-dismiss {
  flex: 0 0 auto;
  min-height: 0;
  padding: 0.35rem 0.55rem;
}

.parent-dashboard-quiet-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin: 0;
  padding: 1rem 1.25rem;
}

.parent-student-buttons {
  display: grid;
  gap: 0;
}

.parent-student-buttons button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  min-height: 0;
  padding: 1rem 1.25rem;
  text-align: left;
  width: 100%;
}

.parent-student-buttons button:hover {
  background: #f5f8f6;
}

.parent-student-identity {
  display: grid;
  gap: 0.15rem;
}

.parent-student-buttons button small {
  color: var(--muted);
}

.parent-student-week-stats {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(108px, 1fr));
}

.parent-student-week-stat {
  align-items: center;
  background: #f4f7f5;
  border: 1px solid #dce5df;
  border-radius: 10px;
  display: grid;
  gap: 0.08rem;
  justify-items: center;
  min-width: 108px;
  padding: 0.55rem 0.8rem;
}

.parent-student-week-stat strong {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
}

.parent-student-week-stat small {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.parent-student-week-stat.is-done {
  background: #eef6f1;
  border-color: #cfe0d6;
}

.parent-student-week-stat.is-done strong {
  color: var(--forest);
}

.parent-student-week-stat.is-monday-due {
  background: #fff0ef;
  border-color: #d74b43;
}

.parent-student-week-stat.is-monday-due strong,
.parent-student-week-stat.is-monday-due small {
  color: #a92720;
}

.parent-student-buttons button b {
  color: var(--forest);
  font-size: 0.86rem;
}

.parent-student-work-panel {
  background: #fff;
  border: 1px solid #d4dfd8;
  box-shadow: 0 12px 34px rgba(36, 72, 60, 0.09);
  display: grid;
  gap: 0.7rem;
  margin: 0 auto;
  max-width: 1240px;
  overflow: hidden;
  padding: 0 0 0.8rem;
  width: 100%;
}

.parent-week-days {
  display: grid;
  gap: 1rem;
}

.parent-student-work-header,
.teacher-plan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.parent-student-work-header {
  background: linear-gradient(135deg, #274c40 0%, #386654 100%);
  border-bottom: 3px solid var(--gold);
  color: #fff;
  padding: 0.7rem 1rem;
}

.parent-student-work-header .eyebrow {
  color: #f3d795;
}

.parent-student-work-header p {
  margin-bottom: 0;
}

.parent-student-work-header h1 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.15;
  margin: 0.08rem 0 0.1rem;
}

.parent-student-work-header p:not(.eyebrow) {
  color: #e8f0eb;
  font-size: 0.78rem;
}

.parent-student-work-header .ghost {
  background: #f5e7bf;
  border-color: #f5e7bf;
  color: #172820;
  font-size: 0.86rem;
  min-height: 34px;
  padding: 0 0.8rem;
}

.parent-student-work-header .ghost:hover {
  background: #fff3d3;
}

.parent-student-work-header .student-print-select {
  background: #f5e7bf;
  border-color: #f5e7bf;
  border-radius: var(--radius-sm);
  color: #172820;
  font-size: 0.86rem;
  min-height: 34px;
}

.parent-student-work-header .student-print-select:hover,
.parent-student-work-header .student-print-select:focus,
.parent-student-work-header .student-print-select:focus-visible {
  background: #fff3d3;
  border-color: #f5e7bf;
  color: #172820;
}

.parent-student-work-actions {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
}

.parent-missing-work,
.parent-week-days,
.parent-work-empty,
.completed-week-details {
  margin-left: 1.15rem;
  margin-right: 1.15rem;
}

.parent-missing-work,
.completed-week-details {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.parent-day-group {
  display: grid;
  gap: 0.55rem;
}

.parent-day-heading {
  align-items: center;
  border-bottom: 1px solid var(--forest);
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.25rem;
}

.parent-day-heading p {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.parent-day-heading span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.parent-work-location {
  display: grid;
  gap: 0.35rem;
}

.parent-work-location h3 {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.work-location-dot {
  background: var(--forest);
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.work-location-dot.at-school {
  background: var(--gold);
}

.parent-schoolwork-assignment {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe7e2;
  border-left: 4px solid var(--forest);
  border-radius: 9px;
  color: var(--ink);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 0;
  padding: 0.55rem 0.7rem;
  text-align: left;
}

.parent-schoolwork-assignment:hover {
  background: #f8faf9;
}

.parent-schoolwork-assignment-school {
  border-left-color: var(--gold);
}

.parent-schoolwork-assignment > span,
.parent-assignment-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.parent-schoolwork-assignment strong {
  font-size: 0.84rem;
  line-height: 1.25;
}

.parent-schoolwork-assignment small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.parent-schoolwork-assignment > b {
  color: var(--forest);
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.parent-home-assignment {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.5rem;
}

.parent-home-assignment > input {
  height: 16px;
  margin: 0;
  width: 16px;
}

.parent-home-assignment > button {
  width: 100%;
}

.parent-home-assignment .parent-assignment-copy,
.parent-home-assignment .parent-assignment-copy > span {
  font-size: inherit;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.parent-home-assignment .parent-assignment-copy > strong {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.parent-work-empty {
  background: #eef5f0;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: var(--forest);
  padding: 0.75rem 0.9rem;
}

.parent-work-empty strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.completed-week-details summary {
  cursor: pointer;
  display: grid;
  font-weight: 700;
  gap: 0.2rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.completed-week-details summary::-webkit-details-marker {
  display: none;
}

.completed-week-details summary::after {
  content: "+";
  font-size: 1rem;
  grid-column: 2;
  grid-row: 1;
}

.completed-week-details[open] summary::after {
  content: "−";
}

.completed-week-details summary small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  grid-column: 1 / -1;
}

.completed-week-details[open] summary {
  margin-bottom: 0.8rem;
}

.teacher-plan-toolbar {
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.teacher-plan-toolbar > label {
  display: grid;
  gap: 0.25rem;
  min-width: 135px;
}

.compact-tabs {
  margin: 0;
}

@media (max-width: 720px) {
  .parent-student-work-panel {
    padding: 0 0 1rem;
  }

  .parent-student-work-header {
    align-items: stretch;
    flex-direction: column;
    padding: 0.9rem;
  }

  .parent-missing-work,
  .parent-week-days,
  .parent-work-empty,
  .completed-week-details {
    margin-left: 0.9rem;
    margin-right: 0.9rem;
  }

  .parent-student-work-actions {
    align-items: stretch;
    justify-items: stretch;
  }

  .parent-dashboard-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .parent-student-buttons button {
    gap: 0.8rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .parent-student-week-stats {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .parent-student-buttons button > b {
    grid-column: 2;
    grid-row: 1;
  }

  .parent-dashboard-announcements .dashboard-announcement-list article,
  .parent-schoolwork-assignment {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .parent-schoolwork-assignment > b {
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  .school-setup-year-calendar {
    grid-template-columns: minmax(0, 1fr);
  }

  .annual-school-class-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .classes-page-heading {
    align-items: stretch;
    flex-direction: column;
    padding: 0.9rem;
  }

  .classes-page-counts {
    justify-content: flex-start;
  }

  .class-directory-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-setup-overview-header,
  .school-setup-editor-header,
  .annual-class-setup-header,
  .annual-class-review-card > header,
  .annual-class-save {
    align-items: flex-start;
    flex-direction: column;
  }

  .school-setup-overview-header button,
  .school-setup-editor-header button {
    width: 100%;
  }

  .school-setup-calendar-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .school-setup-calendar-actions button:last-child {
    grid-column: 1 / -1;
  }

  .school-setup-calendar-legend small {
    flex-basis: 100%;
    margin-left: 0;
  }

  .school-setup-mobile-month-controls {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .school-setup-mobile-month-controls strong {
    text-align: center;
  }

  .school-setup-month:not(.mobile-active) {
    display: none;
  }

  .school-setup-month-grid article {
    min-height: 68px;
    padding: 4px;
  }

  .school-setup-day-event {
    font-size: 0.58rem;
    padding: 3px 4px;
  }

  .school-classes-shortcut {
    align-items: stretch;
    flex-direction: column;
  }

  .school-classes-shortcut button {
    width: 100%;
  }

  .school-setup-calendar-editor footer {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .school-setup-calendar-editor footer .danger-link {
    grid-column: 1 / -1;
  }

  .annual-class-setup-counts {
    justify-content: flex-start;
  }

  .annual-class-fields,
  .annual-teacher-picker,
  .annual-teacher-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .annual-teacher-row .ghost,
  .annual-teacher-row .danger-link,
  .annual-teacher-picker button,
  .annual-class-save button {
    width: 100%;
  }
}
