@font-face {
  font-family: "Noto Sans Sinhala";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 93%;
  src: url("fonts/NotoSansSinhala-Regular.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0D81-0DF4, U+111E1-111F4, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Sinhala";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  size-adjust: 93%;
  src: url("fonts/NotoSansSinhala-SemiBold.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0D81-0DF4, U+111E1-111F4, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Sinhala";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  size-adjust: 93%;
  src: url("fonts/NotoSansSinhala-Bold.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0D81-0DF4, U+111E1-111F4, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Tamil";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/NotoSansTamil-Regular.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
  font-family: "Noto Sans Tamil";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/NotoSansTamil-SemiBold.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
  font-family: "Noto Sans Tamil";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/NotoSansTamil-Bold.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}

:root {
  --paper: #f3efe6;
  --paper-2: #fffaf3;
  --ink: #1c1915;
  --ink-soft: #5c564c;
  --line: #e2d9cc;
  --forest: #1e4a38;
  --forest-2: #2f6b52;
  --clay: #9a4632;
  --clay-soft: #f3e2db;
  --gold: #c4a36a;
  --brand-violet: #5347a8;
  --brand-coral: #ed6a5a;
  --brand-teal: #26a69a;
  --brand-yellow: #f6bf3c;
  --brand-stripe: linear-gradient(90deg, var(--brand-coral) 0 25%, var(--brand-yellow) 25% 50%, var(--brand-teal) 50% 75%, var(--brand-violet) 75%);
  --shadow: 0 18px 40px rgba(48, 36, 22, 0.08);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  /* Small capital labels. Sinhala and Tamil have no capitals, so the same pixel size reads smaller. */
  --kicker-scale: 1;
}

:root[lang="si"] {
  --serif: "Noto Sans Sinhala", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Noto Sans Sinhala", "Avenir Next", "Segoe UI", sans-serif;
  --kicker-scale: 1.2;
  --kicker-case: none;
  --kicker-track: 0;
}
:root[lang="si"] body {
  line-height: 1.55;
}
:root[lang="si"] h1,
:root[lang="si"] h2,
:root[lang="si"] h3,
:root[lang="si"] .panel h2,
:root[lang="si"] .brand strong {
  font-weight: 600;
  letter-spacing: 0;
}

:root[lang="ta"] {
  --serif: "Noto Sans Tamil", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Noto Sans Tamil", "Avenir Next", "Segoe UI", sans-serif;
  --kicker-scale: 1.2;
  --kicker-case: none;
  --kicker-track: 0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(196, 163, 106, 0.18), transparent 50%),
    linear-gradient(180deg, #f7f3eb 0%, var(--paper) 40%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
body[data-env]::before {
  content: attr(data-env);
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 20;
  font-size: calc(11px * var(--kicker-scale));
  font-weight: 700;
  letter-spacing: var(--kicker-track, 0.14em);
  text-transform: var(--kicker-case, uppercase);
  color: var(--clay);
  background: var(--clay-soft);
  border-radius: 999px;
  padding: 4px 10px;
}
a { color: var(--forest); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.wrap { width: min(1380px, calc(100% - 32px)); margin: 0 auto; }
.top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 18px;
}
.top::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--brand-stripe);
}
.top-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.menu-btn {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
}
.menu-btn:hover { background: white; border-color: #cfc3b2; }
.menu-btn .ico { width: 20px; height: 20px; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(28, 25, 21, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.app-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 95;
  width: min(300px, calc(100vw - 40px));
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(28, 25, 21, 0.2);
  transform: translateX(-102%);
  transition: transform 180ms ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.drawer-head strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.drawer-head strong::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--brand-stripe);
}
.drawer-body {
  padding: 12px;
  overflow-y: auto;
  display: grid;
  gap: 16px;
  align-content: start;
}
.drawer-group { display: grid; gap: 2px; }
.drawer-group + .drawer-group {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.app-frame { display: block; }
.app-main { min-width: 0; }
@media (min-width: 1024px) {
  .app-shell .wrap {
    width: min(1440px, calc(100% - 32px));
  }
  .app-shell .app-frame {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }
  .app-shell .drawer-backdrop {
    display: none;
  }
  .app-shell .app-drawer {
    position: sticky;
    top: 16px;
    left: auto;
    bottom: auto;
    z-index: 1;
    width: auto;
    max-height: calc(100vh - 32px);
    transform: none;
    transition: none;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin: 4px 0 32px;
  }
  .app-shell .app-drawer .drawer-head {
    display: none;
  }
  .app-shell .app-drawer .drawer-body {
    gap: 12px;
  }
  .app-shell .app-drawer .drawer-group + .drawer-group {
    padding-top: 10px;
  }
  .app-shell .app-drawer .drawer-link {
    padding: 7px 12px;
    font-size: 14.5px;
  }
  .app-shell .menu-btn[aria-expanded="true"] {
    background: #eef6f2;
    border-color: rgba(30, 74, 56, 0.25);
    color: var(--forest);
  }
  .app-shell.nav-collapsed .app-frame {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-shell.nav-collapsed .app-drawer {
    display: none;
  }
}
.drawer-label {
  font-size: calc(11px * var(--kicker-scale));
  font-weight: 700;
  letter-spacing: var(--kicker-track, 0.1em);
  text-transform: var(--kicker-case, uppercase);
  color: var(--ink-soft);
  padding: 6px 12px 4px;
  margin: 0;
}
.drawer-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.drawer-link:hover { background: white; }
.drawer-link.active {
  background: #eef6f2;
  color: var(--forest);
  font-weight: 600;
}
.drawer-school-picker {
  min-width: 0;
}
.drawer-school-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.drawer-school-summary::-webkit-details-marker { display: none; }
.drawer-school-summary:hover { background: white; }
.drawer-school-summary .ico {
  width: 16px;
  height: 16px;
  color: var(--ink-soft);
  transition: transform 150ms ease;
}
.drawer-school-picker[open] .drawer-school-summary .ico { transform: rotate(180deg); }
.drawer-school-count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--clay-soft);
  color: var(--clay);
  font-size: 11px;
  text-align: center;
}
.drawer-school-list {
  display: grid;
  gap: 2px;
  max-height: 260px;
  margin-top: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer-school-list .drawer-link { padding-left: 14px; }
.workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 10px;
  padding: 2px 2px;
}
.workspace-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
}
.workspace-crumb .muted { font-weight: 500; }
.workspace-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.workspace-principal {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.workspace-meta-label { color: var(--ink-soft); }
.workspace-principal-name { color: var(--ink); }
.workspace-meta-sep { color: var(--ink-soft); }

.school-logo {
  display: block;
  object-fit: contain;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.school-logo.xs { width: 24px; height: 24px; padding: 2px; border-radius: 6px; }
.school-logo.sm { width: 32px; height: 32px; padding: 2px; border-radius: 8px; }
.school-logo.md { width: 48px; height: 48px; padding: 3px; border-radius: 12px; }
.school-logo.lg { width: 72px; height: 72px; padding: 4px; border-radius: 14px; }
.school-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.school-card-head h2 { margin: 0; }
.school-head-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.school-head-brand h1 { margin: 0; }
.drawer-school-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 6px;
}
.drawer-school-head .drawer-label {
  margin: 0;
  padding: 0;
}
.drawer-profile-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.drawer-profile-btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 36px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.drawer-profile-btn:hover { color: var(--ink); background: rgba(255,255,255,0.6); }
.drawer-profile-btn.active {
  background: white;
  color: var(--forest);
  box-shadow: 0 1px 3px rgba(30, 38, 34, 0.08);
}
.profile-picker-wrap {
  max-width: 740px;
  margin: 32px auto;
}
.profile-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.profile-pick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.profile-pick-card:hover {
  border-color: var(--forest);
  box-shadow: 0 6px 20px rgba(31, 92, 68, 0.1);
  transform: translateY(-1px);
}
.profile-pick-card:disabled { opacity: 0.6; cursor: wait; transform: none; }
.profile-pick-card h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 24px;
}
.profile-pick-cta {
  margin-top: auto;
  padding-top: 10px;
  color: var(--forest);
  font-weight: 600;
  font-size: 14px;
}
.school-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  margin-bottom: 16px;
}
.school-logo-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.school-logo-empty {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px dashed #cfc3b2;
  background: white;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-align: center;
  flex-shrink: 0;
}
.hidden-file-input { display: none; }
.face-policy-fill { flex: 1; min-width: 0; }
.school-names-grid { margin-top: 8px; }
.report-brand .school-report-logo {
  height: 56px;
  width: 56px;
  object-fit: contain;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line);
  padding: 3px;
}
.workspace-content { padding-bottom: 48px; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo {
  display: block;
  height: 46px;
  width: auto;
  filter: drop-shadow(0 5px 10px rgba(49, 40, 111, 0.14));
}
.nav a.sign-in {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.nav a.sign-in:hover { background: white; color: var(--ink); }
.brand strong { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.brand span { display: block; color: var(--ink-soft); font-size: 11px; font-weight: 600; letter-spacing: 0.055em; }
.nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav a, .btn, .btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
}
.nav a { color: var(--ink); }
.nav a:hover { background: rgba(255, 255, 255, 0.7); }
.btn {
  background: var(--forest);
  color: #f7f3eb;
  border-color: var(--forest);
}
.btn:hover { background: var(--forest-2); }
.btn-quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-quiet:hover { background: white; }
.btn.danger { background: transparent; color: var(--clay); border-color: #e4c8c0; }
.btn.danger-solid { background: var(--clay); color: #fffaf3; border-color: var(--clay); }
.btn.danger-solid:hover { background: #7f3726; border-color: #7f3726; }

.hero { padding: 28px 0 12px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  max-width: 12ch;
}
.hero.hero-wide h1 { max-width: none; }
.hero.hero-wide .head-row { align-items: center; }
.lede { max-width: 46rem; color: var(--ink-soft); font-size: 18px; margin: 0; }
.banner {
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 250, 243, 0.8);
  color: var(--ink-soft);
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 8px 0 48px; }
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
}
.card:hover { border-color: #cfc3b2; }
.card h2 { font-family: var(--serif); font-size: 28px; line-height: 1.1; margin: 0; }
.meta { color: var(--ink-soft); font-size: 14px; }
.muted { color: var(--ink-soft); font-size: inherit; }
.cell-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.link-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}
.link-tag-rel { color: var(--ink-soft); font-size: 13px; }
.link-tag-x {
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}
.link-tag-x:hover { background: var(--clay-soft); color: var(--clay); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: calc(11px * var(--kicker-scale));
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--kicker-track, 0.08em);
  text-transform: var(--kicker-case, uppercase);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--ink-soft);
}
.chip.on { color: var(--forest); border-color: #b7d2c6; background: #eef6f2; }
.chip.foundation { color: #244b6e; border-color: #b7cde0; background: #edf4fb; }
.foundation-notice {
  margin: 14px 0 16px;
  padding: 12px 14px;
  border: 1px solid #c7d9ea;
  border-left: 3px solid #244b6e;
  border-radius: 10px;
  background: #f3f8fc;
  color: #244b6e;
  font-size: 14px;
  line-height: 1.45;
}
.foundation-notice strong {
  display: block;
  margin-bottom: 2px;
  color: #1c3b57;
}
.foundation-notice p {
  margin: 0;
  color: var(--ink-soft);
}
.people-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.people-head h2 { margin: 0; }
.people-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  min-height: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}
.people-help-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.people-help-btn:hover {
  color: var(--forest);
  border-color: var(--forest);
  background: var(--forest-soft, #eef6f2);
}
.study-modal.people-guide-modal { width: min(46rem, calc(100vw - 24px)); }
.people-guide > p.meta { margin: 0 0 14px; }
.people-guide-list {
  display: grid;
  gap: 10px;
}
.people-guide-card {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.people-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.people-guide-head h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.people-guide-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.people-guide-roles {
  list-style: none;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.people-guide-roles li {
  display: grid;
  gap: 3px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
}
.people-guide-role-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.people-guide-access {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
}
.chip.status-active { color: var(--forest); border-color: #b7d2c6; background: #eef6f2; }
.chip.status-leave { color: #6b5420; border-color: #e4d3a8; background: #f8f1df; }
.chip.warn { color: var(--clay); border-color: #e4c8c0; background: var(--clay-soft); }

.school-head { padding: 18px 0 8px; }
.school-head h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 58px); line-height: 0.98; margin: 8px 0; }
.prose p { max-width: 42rem; }
.page-list { list-style: none; padding: 0; margin: 18px 0 40px; }
.page-list a {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  font-family: var(--serif);
  font-size: 22px;
}

.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin: 12px 0 20px;
}
.panel h2 { font-family: var(--serif); margin: 0 0 8px; font-size: 28px; }
dialog.modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
}
dialog.modal::backdrop { background: rgba(28, 25, 21, 0.46); }
body.modal-open { overflow: hidden; }
.modal-card {
  position: relative;
  width: min(26rem, calc(100vw - 24px));
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(48, 36, 22, 0.18);
}
.modal-card h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  padding-right: 40px;
}
.modal-card .stack { display: grid; gap: 12px; max-width: none; }
.modal-card .stack > p.meta { margin: 0; }
.modal-card.people-modal {
  width: min(34rem, calc(100vw - 24px));
  max-height: min(86vh, 860px);
  overflow: auto;
}
.people-modal form.stack h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  padding-right: 36px;
  color: var(--ink);
}
.add-row { margin: 0 0 14px; }
.modal-card.confirm-modal {
  width: min(26rem, calc(100vw - 24px));
  display: grid;
  gap: 12px;
}
.modal-card.confirm-modal h2 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
  padding-right: 36px;
}
.modal-card.confirm-modal p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.45;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
.modal-card.history-modal {
  width: min(48rem, calc(100vw - 24px));
  max-height: min(86vh, 860px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.history-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.history-pager .btn-quiet:disabled { opacity: 0.4; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 0;
  line-height: 1;
  font-size: 22px;
}
.modal-close:hover { background: var(--paper); }
.modal-card.demo-modal {
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 18px 18px 16px;
  display: grid;
  gap: 12px;
}
.demo-modal h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  margin: 0;
  padding-right: 42px;
}
.demo-video {
  width: 100%;
  max-height: calc(100vh - 120px);
  aspect-ratio: 16 / 9;
  background: #1c1915;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}
.sign-in-card {
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.face-signin-btn { width: 100%; min-height: 38px; font-weight: 600; }
.face-divider { text-align: center; margin: 2px 0; }
.face-onboard {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.face-onboard strong { font-size: 14px; color: var(--ink); }
.face-capture { display: grid; gap: 12px; justify-items: center; }
.face-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #1c1915;
  border: 1px solid var(--line);
}
.face-video, .face-still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
}
.face-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54%;
  height: 76%;
  transform: translate(-50%, -50%);
  border-radius: 50% / 48%;
  border: 3px dashed rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 999px rgba(28, 25, 21, 0.28);
  pointer-events: none;
  transition: border-color 160ms ease, border-style 160ms ease;
}
.face-guide.ok { border-style: solid; border-color: #5cd69d; }
.face-guide.warn { border-style: solid; border-color: #ef866c; }
.face-dots { display: flex; gap: 8px; justify-content: center; }
.face-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  transition: background 160ms ease, transform 160ms ease;
}
.face-dot.done { background: var(--forest); transform: scale(1.15); }
.face-status { margin: 0; font-size: 15px; font-weight: 600; text-align: center; }
.face-actions { justify-content: center; }
.face-slot { display: grid; gap: 10px; }
.face-choices { display: grid; gap: 8px; }
.face-choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 140ms ease, background 140ms ease, transform 120ms ease;
}
.face-choice:hover:not(:disabled) {
  border-color: var(--forest);
  background: #fdfbf7;
}
.face-choice:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.face-choice:disabled { opacity: 0.6; cursor: default; }
.face-choice .face { flex-shrink: 0; width: 38px; height: 38px; font-size: 13px; border: 0; }
.face-choice-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.face-choice-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.face-choice-head strong { font-size: 15px; color: inherit; }
.face-choice-sub { font-size: 13px; color: var(--ink-soft); }
.face-choice-email { font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; }
.face-policy-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 14px;
  margin: 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.family-access {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 12px 0 16px;
  padding: 12px 14px 4px;
}
.family-access > strong { font-size: 14px; }
.family-access .face-policy-row {
  border: 0;
  border-radius: 0;
  margin: 8px 0 0;
  padding: 8px 0;
}
.face-policy-row strong { font-size: 14px; color: var(--ink); }
.face-policy-row p.meta { margin: 4px 0 6px; }
.pin-input {
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.35em;
  font-weight: 600;
  min-height: 42px;
}
form.stack { display: grid; gap: 10px; max-width: 32rem; }
label { display: grid; gap: 4px; font-size: 14px; color: var(--ink-soft); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 6px 10px;
  min-height: 34px;
}
textarea { min-height: 140px; resize: vertical; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.error { color: var(--clay); margin: 0; }
.status { color: var(--ink-soft); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.table th, .table td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: calc(12px * var(--kicker-scale)); letter-spacing: var(--kicker-track, 0.08em); text-transform: var(--kicker-case, uppercase); color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.table td:last-child { white-space: nowrap; }
.icon-row { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.icon-btn {
  width: 32px; height: 32px; min-height: 32px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink);
}
.icon-btn:hover { background: white; }
.icon-btn.danger { color: var(--clay); border-color: #e4c8c0; }
.icon-btn.danger:hover { background: var(--clay-soft); }
.with-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.label-line { display: inline-flex; align-items: center; gap: 6px; }
.info { position: relative; display: inline-flex; }
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
}
.info-btn:hover, .info.open .info-btn { color: var(--forest); background: #eef6f2; }
.info-blurb {
  display: none;
  position: fixed;
  z-index: 80;
  width: min(18rem, calc(100vw - 24px));
  padding: 8px 10px;
  background: var(--ink);
  color: #f7f3eb;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  box-shadow: var(--shadow);
}
.info-blurb.open { display: block; }
.ico { width: 16px; height: 16px; display: block; }
.split { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding-bottom: 48px; }
.side a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: inherit; }
.side a.active, .side a:hover { background: white; }
.item { padding: 12px 0; border-top: 1px solid var(--line); }
.item h3 { margin: 0 0 4px; font-family: var(--serif); }
.check { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.check input { width: auto; min-height: 0; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--forest); border-color: transparent; }

.pills, .segment, .checks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill, .segment button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  min-height: 32px;
  padding: 0 12px;
}
.pill.on, .segment button.on { background: var(--forest); color: #f7f3eb; border-color: var(--forest); }
.segment { width: fit-content; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: white; }
.segment button { border: 0; border-radius: 0; }
.checks label { color: var(--ink); font-size: 15px; }
.checks label.is-disabled { color: var(--ink-soft); opacity: 0.65; cursor: not-allowed; }
.checks .check-req { font-size: 12px; color: var(--ink-soft); }

.chip.practice { color: #6b5420; border-color: #e4d3a8; background: #f8f1df; }
.chip.graded, .chip.on { color: var(--forest); border-color: #b7d2c6; background: #eef6f2; }
.chip.due { color: var(--clay); border-color: #e4c8c0; background: var(--clay-soft); }

.work {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.work strong { font-family: var(--serif); font-size: 24px; font-weight: 560; }
.work:hover strong { color: var(--forest); }
.work .meter { grid-column: 1 / -1; }
.meter { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.meter span { display: block; height: 100%; background: var(--forest-2); }
.head-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.roster { display: grid; gap: 12px; }
.person {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: white;
}
.person h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; }
.answer { white-space: pre-wrap; margin: 8px 0; }
.result {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #eef6f2;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 8px 0 16px;
}
.score { font-family: var(--serif); font-size: 56px; line-height: 0.9; color: var(--forest); margin: 0; }
.score span { font-size: 22px; color: var(--ink-soft); }
.empty h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 6px; }
.panel .empty { padding: 10px 0 4px; }
.panel .empty h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--ink-soft); margin: 0 0 4px; }
.panel .empty p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.tabs {
  display: flex;
  gap: 4px;
  margin: 2px 0 18px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  margin: 0 0 -1px;
  padding: 8px 14px 10px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  min-height: 0;
  color: var(--ink-soft);
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--forest); }
.tabs .count {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.tabs button.on .count { color: var(--forest); }
.tabs-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2px 0 18px;
  border-bottom: 1px solid var(--line);
}
.tabs-row .tabs {
  margin: 0;
  border-bottom: 0;
  flex-wrap: wrap;
}
.tabs-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 24px); }
  .split { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; gap: 10px; }
  .brand span { display: none; }
  .hero h1 { max-width: none; }
  .result { flex-direction: column; align-items: flex-start; }
  .work { grid-template-columns: 1fr; }
  body[data-env]::before { top: auto; bottom: 12px; }
  .pages th:nth-child(2), .pages td:nth-child(2) { display: none; }
}

.who { display: flex; align-items: center; gap: 10px; }
.faces { display: flex; align-items: center; }
.face {
  position: relative;
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--forest); color: #fff; font-size: 11px; font-weight: 700;
}
.faces .face {
  border: 2px solid var(--paper); margin-left: -10px; flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(20, 24, 20, 0.16);
}
.faces .face:first-child { margin-left: 0; }
.faces .face:nth-child(1) { z-index: 1; }
.faces .face:nth-child(2) { z-index: 2; }
.faces .face:nth-child(3) { z-index: 3; }
.faces .face:nth-child(4) { z-index: 4; }
.faces .face:nth-child(5) { z-index: 5; }
.faces .face:nth-child(n+6) { z-index: 6; }
.faces .face:hover { z-index: 8; }
.face.self { box-shadow: 0 0 0 2px var(--forest), 0 1px 3px rgba(20, 24, 20, 0.16); }
.school-public .faces .face { border-color: #fff; }
.school-public .face.self { box-shadow: 0 0 0 2px var(--school-deep), 0 1px 3px rgba(20, 24, 20, 0.16); }
.theme-space .faces .face, .theme-future .faces .face { border-color: #14132f; }
.face-badge {
  position: absolute; bottom: -3px; right: -3px; z-index: 2;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px; background: #dc2626; color: #fff;
  border: 1.5px solid var(--paper-2);
  font-size: 9px; font-weight: 800; line-height: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.account-wrap { position: relative; }
.account {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 0; padding: 0; min-height: 34px;
}
.account-name { font-weight: 600; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  min-width: 220px; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 12px; display: grid; gap: 6px;
}
.account-menu[hidden] { display: none; }
.lang-switch {
  display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.lang-switch-menu {
  padding-top: 6px; margin-top: 2px; border-top: 1px solid var(--line);
}
.lang-switch-signin {
  justify-content: flex-start; padding-right: 44px; margin-bottom: 6px;
}
.lang-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-family: "Noto Sans Sinhala", "Noto Sans Tamil", var(--sans);
  line-height: 1.3;
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--forest); color: var(--ink); }
.lang-btn.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  font-weight: 600;
}
.site-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin: 8px 0 18px; }
.site-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.table-wrap { overflow-x: auto; }
.pages { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.pages th, .pages td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pages th { font-size: calc(12px * var(--kicker-scale)); letter-spacing: var(--kicker-track, 0.06em); text-transform: var(--kicker-case, uppercase); color: var(--ink-soft); white-space: nowrap; }
.activity-log { width: 100%; border-collapse: collapse; font-size: 14px; }
.activity-log th, .activity-log td {
  text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line);
  vertical-align: middle; line-height: 1.35;
}
.activity-log th { font-size: calc(11px * var(--kicker-scale)); letter-spacing: var(--kicker-track, 0.06em); text-transform: var(--kicker-case, uppercase); color: var(--ink-soft); font-weight: 600; }
.activity-log td:first-child, .activity-log td:nth-child(2) { white-space: nowrap; }
.panel > .history-pager { margin-top: 12px; }
.route { font-family: ui-monospace, monospace; font-size: 14px; }
.status-pill { display: inline-flex; align-items: center; white-space: nowrap; flex-shrink: 0; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-right: 6px; }
.status-pill.on { background: #e5f2ea; color: var(--forest); }
.status-pill.off { background: var(--clay-soft); color: var(--clay); }
.toggle { position: relative; width: 52px; height: 30px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #d9d0c4; border-radius: 30px; cursor: pointer; }
.slider::before { content: ""; position: absolute; width: 22px; height: 22px; left: 4px; top: 4px; background: #fff; border-radius: 50%; transition: transform .15s; }
.toggle input:checked + .slider { background: var(--forest); }
.toggle input:checked + .slider::before { transform: translateX(22px); }
.toggle input:focus-visible + .slider { outline: 2px solid var(--forest); outline-offset: 2px; }
.theme-modal .modal-card { max-width: 920px; max-height: min(86vh, 860px); overflow: auto; }
.pending-changes { display: grid; gap: 10px; margin: 0 0 18px; }
.student-picks { display: grid; gap: 6px; margin-top: 6px; }
.pick label { position: relative; display: block; }
.pick-menu {
  position: absolute; z-index: 4; left: 0; right: 0; top: 100%;
  background: white; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 24px rgba(28, 25, 21, 0.08); padding: 6px; display: grid; gap: 2px;
}
.pick-menu button {
  text-align: left; background: transparent; border: 0; border-radius: 8px;
  padding: 6px 10px; font: inherit; cursor: pointer;
}
.pick-menu button:hover { background: var(--paper); }
.pick-chips { display: grid; gap: 8px; margin-top: 8px; }
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pick-row select { width: auto; min-width: 160px; }
.pick-chip {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 6px 12px; font: inherit; cursor: pointer;
}
.history-list { display: grid; gap: 0; overflow: auto; min-height: 8rem; }
.table tr.off { opacity: 0.72; }
.theme-picker { margin: 26px 0 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.theme-picker .site-head { margin-bottom: 14px; }
.theme-picker h3 { margin: 0; }
.theme-groups { display: grid; gap: 26px; }
.theme-group-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.theme-group-head h4 { margin: 0; font-size: 16px; }
.theme-group-head span { color: var(--ink-soft); font-size: 12px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.theme-choice {
  display: grid;
  gap: 4px;
  min-height: 152px;
  padding: 10px;
  text-align: left;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
}
.theme-choice:hover { border-color: #c8bdaf; transform: translateY(-1px); }
.theme-choice.selected { border-color: var(--forest); box-shadow: 0 0 0 2px rgba(30,74,56,.12); }
.theme-choice > span:last-child { color: var(--ink-soft); font-size: 12px; }
.theme-feedback { min-height: 21px; margin: 8px 0 0; }
.theme-mini {
  position: relative;
  overflow: hidden;
  height: 78px;
  margin-bottom: 4px;
  border-radius: 11px;
  background: #f5d95f;
}
.theme-mini::before {
  content: "";
  position: absolute;
  left: 10px; right: 34px; top: 15px; height: 9px;
  border-radius: 8px; background: rgba(255,255,255,.9);
  box-shadow: 0 16px 0 rgba(255,255,255,.65);
}
.theme-mini i { position: absolute; display: block; border-radius: 50%; }
.theme-mini i:nth-child(1) { width: 24px; height: 24px; right: 10px; top: 9px; background: #fff; }
.theme-mini i:nth-child(2) { width: 44px; height: 18px; left: 10px; bottom: 8px; background: #ef89a5; border-radius: 9px; }
.theme-mini i:nth-child(3) { width: 28px; height: 18px; right: 10px; bottom: 8px; background: #79cdb4; border-radius: 9px; }
.theme-swatch-garden .theme-mini { background: #82c995; }
.theme-swatch-ocean .theme-mini { background: linear-gradient(#7dd5ee 58%, #236caa 59%); }
.theme-swatch-crayon .theme-mini { background: repeating-linear-gradient(0deg,#fff 0 15px,#d7ecf7 16px); border: 2px dashed #e85545; }
.theme-swatch-space .theme-mini { background: radial-gradient(circle at 70% 25%,#ffd869 0 9px,transparent 10px),#161642; }
.theme-swatch-jungle .theme-mini { background: linear-gradient(135deg,#123f2f,#45a85e); }
.theme-swatch-candy .theme-mini { background: linear-gradient(135deg,#ff91c9,#a684f5,#68dce6); }
.theme-swatch-chalkboard .theme-mini { background: #24483c; border: 5px solid #b98b57; }
.theme-swatch-collage .theme-mini { background: #cfaa79; border-radius: 2px; }
.theme-swatch-storybook .theme-mini { background: #f3dfad; border: 3px double #7f4d35; }
.theme-swatch-academy .theme-mini { background: linear-gradient(135deg,#153b69 0 72%,#d6ad4e 72%); }
.theme-swatch-science .theme-mini { background: radial-gradient(circle at 72% 28%,#31bdd0 0 8px,transparent 9px),linear-gradient(135deg,#f7fdff,#c7edf1); border: 2px solid #36a8b7; }
.theme-swatch-explorer .theme-mini { background: linear-gradient(25deg,transparent 48%,#87653f 49% 51%,transparent 52%),#e5ce96; }
.theme-swatch-library .theme-mini { background: repeating-linear-gradient(90deg,#753745 0 12px,#e0b05b 12px 20px,#315765 20px 34px); }
.theme-swatch-sports .theme-mini { background: linear-gradient(120deg,#146b48 0 60%,#f28a31 60%); }
.theme-swatch-arts .theme-mini { background: radial-gradient(circle at 25% 60%,#ef5b63 0 13px,transparent 14px),radial-gradient(circle at 68% 30%,#367fd0 0 16px,transparent 17px),#fff; border: 2px solid #222; }
.theme-swatch-eco .theme-mini { background: linear-gradient(135deg,#dce6c7,#4e8d5d); }
.theme-swatch-future .theme-mini { background: linear-gradient(90deg,rgba(69,224,229,.18) 1px,transparent 1px),linear-gradient(#141d35,#293b68); background-size: 12px 12px,auto; }
.theme-swatch-heritage .theme-mini { background: linear-gradient(135deg,#bf633f,#e5bd78); border: 3px double #683d2e; }
.theme-swatch-mathematics .theme-mini { background: conic-gradient(from 45deg,#ffc94f 0 25%,#4e8bc6 0 50%,#ec675f 0 75%,#68b68a 0); }
.editor-tools, .format, .block-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.block { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.blocks { display: grid; gap: 10px; }
.block-head { justify-content: space-between; color: var(--ink-soft); font-size: 13px; }
.write { min-height: 44px; padding: 8px 10px; border-radius: 8px; background: var(--paper); }
.write:focus { outline: 2px solid var(--forest); }
.story { width: min(740px, 100%); padding-bottom: 28px; }
.story .rich > p:first-child {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  max-width: 18em;
  margin: 8px 0 18px;
}
.story h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin: 1.3em 0 0.35em;
}
.story p { font-size: 18px; line-height: 1.65; max-width: 40rem; }
.story blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--gold);
}
.story blockquote p {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  margin: 0;
}
.story ul { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; gap: 8px; }
.story li {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}
.story figure { margin: 8px 0 22px; }
.story img { width: 100%; height: auto; border-radius: 18px; display: block; }
.story figcaption { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }
.rich figure { margin: 12px 0 18px; }
.rich img { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.rich figcaption { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }
.rich h2, .prose h2 { font-family: var(--serif); }

/* Public school sites are intentionally brighter and more playful than the
   workspace. The page content remains the same editable set of blocks. */
.school-public {
  --school-blue: #2d8fca;
  --school-yellow: #ffd55a;
  --school-pink: #f58ca8;
  --school-mint: #8edbc2;
  --school-deep: #163f55;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 213, 90, 0.3) 0 90px, transparent 92px),
    radial-gradient(circle at 94% 48%, rgba(245, 140, 168, 0.2) 0 120px, transparent 122px),
    linear-gradient(180deg, #eaf8ff 0 440px, #fff9ea 440px 100%);
  color: var(--school-deep);
}
.school-public.theme-garden {
  --school-blue: #398b67;
  --school-yellow: #f5cd58;
  --school-pink: #ee8f70;
  --school-mint: #88d0a6;
  --school-deep: #244d3b;
  background:
    radial-gradient(circle at 6% 22%, rgba(245, 205, 88, 0.27) 0 90px, transparent 92px),
    radial-gradient(circle at 96% 55%, rgba(136, 208, 166, 0.25) 0 130px, transparent 132px),
    linear-gradient(180deg, #e9f8ed 0 440px, #fffaf0 440px 100%);
}
.school-public.theme-ocean {
  --school-blue: #477fc6;
  --school-yellow: #ffd45e;
  --school-pink: #ef8f77;
  --school-mint: #81d3c9;
  --school-deep: #24466a;
}
.school-public .top {
  position: relative;
  z-index: 3;
  padding: 10px 14px;
  top: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(34, 77, 95, 0.08);
  backdrop-filter: blur(12px);
}
.school-public .top .logo { height: 34px; }
.school-public .top .brand { gap: 9px; }
.school-public .top .brand strong { font-size: 18px; }
.school-public .top .brand span { font-size: 10px; }
.school-public .top .nav a,
.school-public .top .account {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}
.school-public .top .nav a.btn {
  min-height: auto;
  padding: 6px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--school-deep);
  font-weight: 600;
}
.school-public .top .nav a.btn:hover {
  background: transparent;
  color: var(--school-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) and (min-width: 721px) {
  .school-public .top {
    top: 0;
    margin-bottom: -42px;
    opacity: 0.72;
    transform: translateY(calc(-100% + 8px));
    transition: transform 220ms ease, opacity 180ms ease, box-shadow 180ms ease;
  }
  .school-public .top::after {
    content: "Menu";
    position: absolute;
    left: 50%;
    bottom: -23px;
    padding: 3px 12px 5px;
    border-radius: 0 0 12px 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--school-deep);
    font-size: calc(10px * var(--kicker-scale));
    font-weight: 800;
    letter-spacing: var(--kicker-track, 0.08em);
    text-transform: var(--kicker-case, uppercase);
    transform: translateX(-50%);
    transition: opacity 120ms ease;
  }
  .school-public .top:hover,
  .school-public .top:focus-within {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 14px 34px rgba(34, 77, 95, 0.14);
  }
  .school-public .top:hover::after,
  .school-public .top:focus-within::after { opacity: 0; }
}
.school-public .mark {
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--school-yellow) 0 36%, transparent 38%),
    conic-gradient(from 0deg, var(--school-pink), var(--school-yellow), var(--school-mint), var(--school-blue), var(--school-pink));
}
.school-public main.wrap { padding-top: 42px; }
.school-public .school-head {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 36px 44px 40px;
  border: 8px solid rgba(255, 255, 255, 0.65);
  border-radius: 42px 42px 86px 42px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,250,224,0.88)),
    var(--school-yellow);
  box-shadow: 0 24px 70px rgba(40, 79, 94, 0.14);
}
.school-public .school-head::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0;
  height: 12px;
  background: linear-gradient(90deg,
    var(--school-pink) 0 25%,
    var(--school-yellow) 25% 50%,
    var(--school-mint) 50% 75%,
    var(--school-blue) 75%);
}
.school-public .school-kicker {
  display: inline-flex;
  padding: 8px 14px;
  margin-bottom: 15px;
  border-radius: 999px;
  background: var(--school-blue);
  color: white;
  font-size: calc(13px * var(--kicker-scale));
  font-weight: 800;
  letter-spacing: var(--kicker-track, 0.04em);
  text-transform: var(--kicker-case, none);
  transform: rotate(-1deg);
}
.school-public .school-head .meta {
  color: var(--school-deep);
  font-size: 14px;
  font-weight: 700;
}
.school-public .school-head h1 {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 12px 0 0;
  color: var(--school-deep);
  font-family: "Arial Rounded MT Bold", "Avenir Next", var(--sans);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.school-doodles span { position: absolute; display: block; }
.doodle-sun {
  width: 132px;
  height: 132px;
  right: 17%;
  top: 52px;
  border: 17px solid rgba(255,255,255,0.72);
  border-radius: 50%;
  background: var(--school-yellow);
  box-shadow: 0 0 0 12px rgba(255, 213, 90, 0.2);
}
.doodle-cloud {
  width: 190px;
  height: 70px;
  right: 4%;
  bottom: 56px;
  border-radius: 60px;
  background: #fff;
  box-shadow: -55px 12px 0 -4px #fff, -20px -28px 0 8px #fff;
}
.doodle-star {
  right: 37%;
  top: 42px;
  color: var(--school-pink);
  font-size: 44px;
  transform: rotate(14deg);
}
.school-public .story {
  position: relative;
  width: min(900px, calc(100% - 56px));
  margin: -34px auto 54px;
  padding: 48px 58px 62px;
  border: 1px solid rgba(56, 108, 122, 0.1);
  border-radius: 34px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 26px 70px rgba(35, 77, 91, 0.12);
}
.school-public .story::before {
  content: "✦";
  position: absolute;
  left: -24px;
  top: 120px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--school-pink);
  color: white;
  font-size: 25px;
  transform: rotate(-9deg);
  box-shadow: 0 8px 20px rgba(79, 54, 48, 0.15);
}
.school-public .story .rich > p:first-child {
  max-width: 25em;
  margin: 0 auto 22px;
  color: var(--school-deep);
  font-family: "Arial Rounded MT Bold", "Avenir Next", var(--sans);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.32;
  text-align: center;
}
.school-public .story figure {
  position: relative;
  margin: 24px auto 56px;
  padding: 12px 12px 16px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(28, 70, 84, 0.18);
  transform: rotate(-1.2deg);
}
.school-public .story figure::before,
.school-public .story figure::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 82px;
  height: 26px;
  background: rgba(255, 213, 90, 0.72);
  transform: rotate(-7deg);
}
.school-public .story figure::before { left: 9%; }
.school-public .story figure::after { right: 9%; transform: rotate(7deg); }
.school-public .story img { border-radius: 16px; }
.school-public .story figcaption { padding: 9px 7px 0; }
.school-public .story h2 {
  display: inline-block;
  margin: 38px 0 14px;
  padding: 3px 12px 7px;
  border-radius: 14px;
  background: linear-gradient(transparent 48%, rgba(255, 213, 90, 0.62) 48%);
  color: var(--school-deep);
  font-family: "Arial Rounded MT Bold", "Avenir Next", var(--sans);
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.school-public .story p {
  color: #385464;
  font-size: 18px;
  line-height: 1.72;
}
.school-public .story blockquote {
  position: relative;
  margin: 34px 0;
  padding: 28px 34px 30px 78px;
  border: 0;
  border-radius: 26px 26px 26px 7px;
  background: var(--school-blue);
  color: white;
  transform: rotate(0.4deg);
}
.school-public .story blockquote::before {
  content: "“";
  position: absolute;
  left: 24px;
  top: 8px;
  color: var(--school-yellow);
  font-family: Georgia, serif;
  font-size: 76px;
  line-height: 1;
}
.school-public .story blockquote p {
  max-width: none;
  color: white;
  font-family: "Arial Rounded MT Bold", "Avenir Next", var(--sans);
  font-size: clamp(21px, 2.8vw, 28px);
  font-weight: 700;
}
.school-public .story ul {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 30px;
}
.school-public .story li {
  position: relative;
  min-height: 138px;
  padding: 54px 18px 18px;
  border: 0;
  border-radius: 22px;
  background: #fff3c9;
  color: var(--school-deep);
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 9px 0 rgba(255, 213, 90, 0.35);
}
.school-public .story li:nth-child(2) {
  background: #dff5ec;
  box-shadow: 0 9px 0 rgba(142, 219, 194, 0.35);
}
.school-public .story li:nth-child(3) {
  background: #fde3ea;
  box-shadow: 0 9px 0 rgba(245, 140, 168, 0.3);
}
.school-public .story li::before {
  content: "★";
  position: absolute;
  left: 18px;
  top: 14px;
  color: #e8a723;
  font-size: 25px;
}
.school-public .story li:nth-child(2)::before { content: "✎"; color: var(--school-blue); }
.school-public .story li:nth-child(3)::before { content: "♥"; color: var(--school-pink); }
.school-public .page-list {
  width: min(900px, calc(100% - 56px));
  margin: -30px auto 70px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.school-public .page-list a {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: white;
  box-shadow: 0 7px 20px rgba(35, 77, 91, 0.1);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
}

/* Ocean Explorer — wide waves, cool blues, and bubble-like shapes. */
.school-public.theme-ocean {
  background:
    radial-gradient(circle at 8% 32%, rgba(255,255,255,.4) 0 18px, transparent 20px),
    radial-gradient(circle at 92% 55%, rgba(255,255,255,.35) 0 36px, transparent 38px),
    linear-gradient(180deg, #9ee8f4 0 460px, #e8fbf8 460px 100%);
}
.theme-ocean .school-head {
  border-radius: 34px 80px 34px 110px;
  background: linear-gradient(145deg, #e9fdff 0 62%, #77d2ea 62%);
}
.theme-ocean .school-head::after {
  height: 28px;
  background:
    radial-gradient(40px 18px at 20px 0, transparent 19px, #2373b6 20px 39px, transparent 40px) 0 0 / 80px 28px repeat-x;
}
.theme-ocean .doodle-sun { background: #ffcf5b; border-color: rgba(255,255,255,.55); }
.theme-ocean .doodle-cloud { border: 5px solid rgba(255,255,255,.7); background: transparent; box-shadow: none; }
.theme-ocean .doodle-star { color: #ef755e; }
.theme-ocean .story { border-radius: 70px 28px 70px 28px; }
.theme-ocean .story::before { content: "≈"; background: #2384ba; }
.theme-ocean .story blockquote { border-radius: 50px 50px 50px 8px; background: #176ca4; }
.theme-ocean .story li { background: #e3f8fb; box-shadow: 0 9px 0 #b6e9ee; }

/* Crayon Box — ruled paper, scribbled borders, primary colors. */
.school-public.theme-crayon {
  --school-blue: #2468d4;
  --school-yellow: #ffd63f;
  --school-pink: #ed4e49;
  --school-mint: #36ad6d;
  --school-deep: #22365b;
  background:
    linear-gradient(90deg, transparent 58px, rgba(235,78,73,.2) 59px 61px, transparent 62px),
    repeating-linear-gradient(0deg, #fffdf6 0 31px, #cfe5f2 32px 33px);
}
.theme-crayon .top { border: 3px solid #22365b; box-shadow: 6px 6px 0 #ffd63f; backdrop-filter: none; }
.theme-crayon .school-head {
  border: 4px dashed #ed4e49;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 10px 10px 0 #2468d4;
  transform: rotate(-.35deg);
}
.theme-crayon .school-head::after { height: 9px; background: repeating-linear-gradient(90deg,#ed4e49 0 32px,#ffd63f 32px 64px,#36ad6d 64px 96px,#2468d4 96px 128px); }
.theme-crayon .school-head h1,
.theme-crayon .story h2 { text-shadow: 2px 2px 0 #ffd63f; }
.theme-crayon .doodle-sun { border: 5px dashed #ed4e49; box-shadow: none; }
.theme-crayon .doodle-cloud { border: 4px solid #2468d4; box-shadow: none; }
.theme-crayon .story {
  border: 4px solid #22365b;
  border-radius: 12px;
  box-shadow: 10px 10px 0 #36ad6d;
  transform: rotate(.2deg);
}
.theme-crayon .story figure { border: 4px solid #22365b; border-radius: 8px; box-shadow: 8px 8px 0 #ffd63f; }
.theme-crayon .story blockquote { border: 4px dashed white; border-radius: 12px; background: #ed4e49; }
.theme-crayon .story li { border: 3px solid currentColor; border-radius: 8px; box-shadow: 6px 6px 0 #ffd63f; }

/* Space Cadet — dark sky, glowing planets, and mission cards. */
.school-public.theme-space {
  --school-blue: #7257d8;
  --school-yellow: #ffd35a;
  --school-pink: #ff6f9f;
  --school-mint: #5ce0dd;
  --school-deep: #f1f2ff;
  background:
    radial-gradient(circle at 15% 15%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 82% 32%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 45% 67%, #7fe4e2 0 2px, transparent 3px),
    #10112f;
  background-size: 130px 130px, 170px 170px, 210px 210px, auto;
}
.theme-space .top { color: #f3f4ff; background: rgba(28,27,68,.9); border-color: #53518e; }
.theme-space .brand span, .theme-space .nav a { color: #d8d9ff; }
.theme-space .school-head {
  border-color: #403d85;
  border-radius: 54px;
  background: radial-gradient(circle at 78% 35%, #7a61dc 0 14%, transparent 14.5%), linear-gradient(135deg,#26255e,#13133c);
  box-shadow: 0 0 70px rgba(113,91,218,.45);
}
.theme-space .school-head .meta, .theme-space .school-head h1 { color: #f4f2ff; }
.theme-space .school-head::after { background: linear-gradient(90deg,#7257d8,#5ce0dd,#ff6f9f); }
.theme-space .doodle-sun { background: #ff6f9f; border-color: #ffd35a; box-shadow: 0 0 45px #ff6f9f; }
.theme-space .doodle-cloud { width: 150px; height: 150px; border: 12px solid #5ce0dd; border-radius: 50%; background: transparent; box-shadow: none; }
.theme-space .doodle-star { color: #ffd35a; }
.theme-space .story { background: #f7f7ff; border: 3px solid #7770ba; box-shadow: 0 0 45px rgba(92,224,221,.28); }
.theme-space .story .rich > p:first-child,
.theme-space .story h2 { color: #29275f; }
.theme-space .story p { color: #46456f; }
.theme-space .story::before { content: "✦"; background: #7257d8; box-shadow: 0 0 22px #5ce0dd; }
.theme-space .story blockquote { background: linear-gradient(135deg,#30306d,#7257d8); }
.theme-space .story li { background: #eceaff; box-shadow: 0 9px 0 #cec8ff; }

/* Jungle Trail — dense greens, leaf forms, and expedition labels. */
.school-public.theme-jungle {
  --school-blue: #16604a;
  --school-yellow: #f4bd43;
  --school-pink: #ed754d;
  --school-mint: #66bd68;
  --school-deep: #173d2e;
  background:
    radial-gradient(ellipse at 0 30%, #63a65e 0 70px, transparent 72px),
    radial-gradient(ellipse at 100% 58%, #39794e 0 110px, transparent 112px),
    linear-gradient(180deg,#184f3c 0 440px,#edf4d8 440px);
}
.theme-jungle .top { background: #f2f0d5; border-radius: 8px 24px 8px 24px; }
.theme-jungle .school-head {
  border-color: #9bc669;
  border-radius: 12px 90px 12px 90px;
  background: linear-gradient(125deg,#f3efcb 0 56%,#3b8652 56%);
}
.theme-jungle .school-head::after { background: repeating-linear-gradient(135deg,#f4bd43 0 18px,#173d2e 18px 36px); }
.theme-jungle .doodle-sun { border-radius: 70% 0 70% 0; background: #65bd68; border-color: #b7df72; transform: rotate(25deg); }
.theme-jungle .doodle-cloud { border-radius: 70% 0 70% 0; background: #9bd369; box-shadow: none; transform: rotate(-15deg); }
.theme-jungle .story { border-radius: 12px 48px 12px 48px; border: 4px solid #3c8152; }
.theme-jungle .story::before { content: "⌁"; background: #ed754d; }
.theme-jungle .story blockquote { background: #174f3c; border-radius: 4px 30px 30px 30px; }
.theme-jungle .story li { background: #e3f1ce; box-shadow: 0 9px 0 #acd080; }

/* Candy Pop — soft gradients, bubbles, and high-energy color. */
.school-public.theme-candy {
  --school-blue: #8a67dc;
  --school-yellow: #ffe36d;
  --school-pink: #ff79b7;
  --school-mint: #67dfdc;
  --school-deep: #59366f;
  background:
    radial-gradient(circle at 8% 28%,#ffe36d 0 70px,transparent 72px),
    radial-gradient(circle at 94% 52%,#8a67dc 0 95px,transparent 97px),
    linear-gradient(150deg,#ffe9f4,#eae5ff 55%,#ddfbf8);
}
.theme-candy .school-head {
  border-radius: 90px 30px 90px 30px;
  background: linear-gradient(120deg,#fff5bd,#ffd8ed 48%,#d9d2ff);
  box-shadow: 0 22px 0 rgba(255,121,183,.28);
}
.theme-candy .school-head::after { height: 14px; border-radius: 20px; background: linear-gradient(90deg,#ff79b7,#ffe36d,#67dfdc,#8a67dc); }
.theme-candy .doodle-sun { background: #ff79b7; border-color: #fff; box-shadow: 0 0 0 14px #ffe36d; }
.theme-candy .doodle-cloud { border-radius: 50%; background: #67dfdc; box-shadow: -52px 10px 0 #8a67dc, -10px -25px 0 #ff79b7; }
.theme-candy .story { border-radius: 52px; box-shadow: 0 24px 0 rgba(103,223,220,.22), 0 48px 80px rgba(89,54,111,.12); }
.theme-candy .story::before { content: "♥"; border-radius: 50%; background: #ff79b7; }
.theme-candy .story blockquote { border-radius: 38px; background: linear-gradient(135deg,#ff79b7,#8a67dc); }
.theme-candy .story li { border-radius: 35px; }

/* Chalkboard Class — a classic classroom board with chalk marks. */
.school-public.theme-chalkboard {
  --school-blue: #315b4d;
  --school-yellow: #efd481;
  --school-pink: #dd8f7c;
  --school-mint: #a7d1b3;
  --school-deep: #203b32;
  background: #e8d8b9;
}
.theme-chalkboard .top { border: 3px solid #9f754d; border-radius: 4px; background: #f5ead1; box-shadow: 6px 6px 0 #b98b57; }
.theme-chalkboard .school-head {
  border: 14px solid #9f754d;
  border-radius: 5px;
  background:
    linear-gradient(rgba(255,255,255,.025),rgba(255,255,255,.025)),
    #284d40;
  box-shadow: inset 0 0 45px rgba(0,0,0,.25), 0 18px 40px rgba(60,42,25,.2);
}
.theme-chalkboard .school-head .meta,
.theme-chalkboard .school-head h1 { color: #f7f1d9; }
.theme-chalkboard .school-head h1 { font-family: "Chalkboard SE","Comic Sans MS",var(--sans); font-weight: 600; }
.theme-chalkboard .school-kicker { border: 2px dashed #f7f1d9; background: transparent; }
.theme-chalkboard .school-head::after { height: 7px; background: #dfc37b; }
.theme-chalkboard .doodle-sun { border: 4px dashed #efd481; background: transparent; box-shadow: none; }
.theme-chalkboard .doodle-cloud { border: 4px dashed #f7f1d9; background: transparent; box-shadow: none; }
.theme-chalkboard .story { border: 3px solid #9f754d; border-radius: 5px; background: #fff9e9; box-shadow: 8px 8px 0 #b98b57; }
.theme-chalkboard .story h2 { font-family: "Chalkboard SE","Comic Sans MS",var(--sans); background: none; border-bottom: 3px dashed #315b4d; border-radius: 0; }
.theme-chalkboard .story blockquote { border-radius: 3px; background: #315b4d; }
.theme-chalkboard .story li { border: 2px dashed #315b4d; border-radius: 4px; box-shadow: none; background: #f5ead1; }

/* Paper Collage — kraft paper, cut edges, tape, and offset layers. */
.school-public.theme-collage {
  --school-blue: #27697b;
  --school-yellow: #eecb63;
  --school-pink: #d95c55;
  --school-mint: #74a878;
  --school-deep: #45382c;
  background:
    linear-gradient(rgba(255,255,255,.13),rgba(255,255,255,.13)),
    #cfae7f;
}
.theme-collage .top { border-radius: 0; background: #f2e6c9; box-shadow: 8px 8px 0 rgba(69,56,44,.22); transform: rotate(.25deg); }
.theme-collage .school-head {
  border: 0;
  border-radius: 0;
  background: #f3d66e;
  box-shadow: 14px 14px 0 #27697b, -10px -10px 0 #d95c55;
  transform: rotate(-.7deg);
}
.theme-collage .school-head::after { height: 0; }
.theme-collage .school-kicker { border-radius: 0; background: #d95c55; }
.theme-collage .doodle-sun { border: 0; border-radius: 0; background: #d95c55; box-shadow: none; transform: rotate(12deg); }
.theme-collage .doodle-cloud { border-radius: 0; background: #f4eee1; box-shadow: -40px 16px 0 #74a878; transform: rotate(-7deg); }
.theme-collage .story { border: 0; border-radius: 0; background: #f7f0df; box-shadow: 14px 14px 0 rgba(69,56,44,.22); transform: rotate(.35deg); }
.theme-collage .story::before { content: "✂"; border-radius: 0; background: #27697b; }
.theme-collage .story figure { border-radius: 0; transform: rotate(1.5deg); }
.theme-collage .story img { border-radius: 0; }
.theme-collage .story blockquote { border-radius: 0; background: #27697b; transform: rotate(-1deg); }
.theme-collage .story li { border-radius: 0; box-shadow: 7px 7px 0 rgba(69,56,44,.18); transform: rotate(-1deg); }
.theme-collage .story li:nth-child(2) { transform: rotate(1deg); }

/* Once Upon a School — quiet parchment and an illustrated-book frame. */
.school-public.theme-storybook {
  --school-blue: #76523c;
  --school-yellow: #d9b766;
  --school-pink: #a45b61;
  --school-mint: #798e68;
  --school-deep: #523a2b;
  background: #eee0bc;
}
.theme-storybook .top { border: 3px double #8a6746; border-radius: 2px; background: #f8efd7; box-shadow: none; }
.theme-storybook .school-head {
  min-height: 390px;
  padding: 70px 18% 70px;
  text-align: center;
  border: 9px double #76523c;
  border-radius: 180px 180px 20px 20px;
  background: linear-gradient(rgba(250,240,207,.92),rgba(250,240,207,.92)), #f4e7c2;
  box-shadow: inset 0 0 0 8px #d9b766;
}
.theme-storybook .school-head h1 { max-width: none; font-family: Georgia,var(--serif); font-weight: 600; }
.theme-storybook .school-kicker { background: transparent; color: #76523c; border-bottom: 1px solid #76523c; border-radius: 0; }
.theme-storybook .school-head::after { height: 5px; background: #76523c; }
.theme-storybook .school-doodles { opacity: .2; }
.theme-storybook .doodle-sun { left: 8%; right: auto; border: 3px double #76523c; background: transparent; box-shadow: none; }
.theme-storybook .doodle-cloud { right: 6%; border: 3px double #76523c; background: transparent; box-shadow: none; }
.theme-storybook .story { border: 8px double #8a6746; border-radius: 4px; background: #fff9e9; box-shadow: 0 24px 50px rgba(82,58,43,.18); }
.theme-storybook .story::before { content: "1"; border-radius: 50%; background: #76523c; font-family: Georgia,serif; }
.theme-storybook .story .rich > p:first-child,
.theme-storybook .story h2,
.theme-storybook .story blockquote p { font-family: Georgia,var(--serif); }
.theme-storybook .story h2 { display: block; text-align: center; background: none; }
.theme-storybook .story h2::before,
.theme-storybook .story h2::after { content: " — "; color: #d9b766; }
.theme-storybook .story blockquote { border: 1px solid #d9b766; border-radius: 50%; background: #f4e7c2; text-align: center; }
.theme-storybook .story blockquote p { color: #523a2b; }
.theme-storybook .story li { border: 1px solid #d9b766; border-radius: 50% 50% 12px 12px; background: #f8efd7; box-shadow: none; text-align: center; }

/* Academy Blue — structured, confident, and suited to a primary school. */
.school-public.theme-academy {
  --school-blue: #183f70;
  --school-yellow: #d8b253;
  --school-pink: #a84450;
  --school-mint: #77968d;
  --school-deep: #183452;
  background: linear-gradient(180deg,#e8eef5 0 430px,#f6f3eb 430px);
}
.theme-academy .top { border-radius: 8px; border-bottom: 4px solid #d8b253; background: #fff; box-shadow: 0 8px 24px rgba(24,63,112,.12); }
.theme-academy .mark { border-radius: 3px; background: linear-gradient(135deg,#183f70 0 65%,#d8b253 65%); }
.theme-academy .school-head {
  min-height: 340px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(115deg,#183f70 0 66%,#234f86 66%);
  box-shadow: 0 20px 45px rgba(24,63,112,.24);
}
.theme-academy .school-head .meta, .theme-academy .school-head h1 { color: white; }
.theme-academy .school-kicker { border-radius: 3px; background: #d8b253; color: #183452; text-transform: var(--kicker-case, uppercase); letter-spacing: var(--kicker-track, .12em); }
.theme-academy .school-head::after { height: 9px; background: #d8b253; }
.theme-academy .doodle-sun { border: 8px double #d8b253; border-radius: 50%; background: transparent; box-shadow: none; }
.theme-academy .doodle-cloud { display: none; }
.theme-academy .doodle-star { color: #d8b253; font-size: 72px; }
.theme-academy .story { border-radius: 8px; border-top: 7px solid #183f70; box-shadow: 0 20px 45px rgba(24,63,112,.13); }
.theme-academy .story::before { content: "A"; border-radius: 4px; background: #183f70; font-weight: 800; }
.theme-academy .story h2 { display: block; border-bottom: 2px solid #d8b253; border-radius: 0; background: none; }
.theme-academy .story blockquote { border-radius: 4px; background: #183f70; }
.theme-academy .story li { border-radius: 6px; background: #edf2f7; box-shadow: 0 6px 0 #cbd7e4; }

/* Science Lab — bright white surfaces, cyan glass, and molecule motifs. */
.school-public.theme-science {
  --school-blue: #168da1;
  --school-yellow: #f3cb4d;
  --school-pink: #ef6e73;
  --school-mint: #68cbb8;
  --school-deep: #174653;
  background:
    linear-gradient(90deg,rgba(22,141,161,.07) 1px,transparent 1px),
    linear-gradient(rgba(22,141,161,.07) 1px,transparent 1px),
    #f4fcfd;
  background-size: 32px 32px;
}
.theme-science .top { border: 1px solid #a8dbe2; background: rgba(255,255,255,.94); box-shadow: 0 8px 30px rgba(22,141,161,.1); }
.theme-science .school-head {
  border: 2px solid #8ed7df;
  border-radius: 34px 10px 34px 10px;
  background: linear-gradient(130deg,#fff 0 62%,#c8f1f2 62%);
  box-shadow: 0 18px 45px rgba(22,141,161,.15);
}
.theme-science .school-head::after { background: linear-gradient(90deg,#168da1,#68cbb8,#f3cb4d); }
.theme-science .doodle-sun { width: 96px; height: 96px; border: 8px solid #168da1; background: transparent; box-shadow: 58px 30px 0 -31px #ef6e73,-46px 48px 0 -34px #f3cb4d; }
.theme-science .doodle-cloud { width: 125px; height: 125px; border: 7px solid #68cbb8; border-radius: 50%; background: transparent; box-shadow: none; }
.theme-science .doodle-star { color: #168da1; }
.theme-science .story { border: 2px solid #b8e3e7; border-radius: 16px; box-shadow: 0 20px 55px rgba(22,141,161,.12); }
.theme-science .story::before { content: "⚗"; background: #168da1; }
.theme-science .story h2 { background: linear-gradient(transparent 55%,#bdecef 55%); }
.theme-science .story blockquote { border-radius: 10px; background: linear-gradient(135deg,#168da1,#216e8f); }
.theme-science .story li { border: 2px solid #a8dbe2; border-radius: 12px; background: #effcfc; box-shadow: none; }

/* World Explorer — cartography, compass points, and expedition notes. */
.school-public.theme-explorer {
  --school-blue: #496b73;
  --school-yellow: #d6a84f;
  --school-pink: #b65b46;
  --school-mint: #799773;
  --school-deep: #483c2c;
  background:
    radial-gradient(circle at 12% 35%,transparent 0 70px,rgba(83,68,44,.08) 71px 73px,transparent 74px),
    #e7d5aa;
}
.theme-explorer .top { border-radius: 3px; border: 1px solid #9f8051; background: #f2e7c8; box-shadow: 5px 5px 0 rgba(72,60,44,.2); }
.theme-explorer .school-head {
  border: 7px double #80643f;
  border-radius: 6px;
  background:
    linear-gradient(30deg,transparent 49%,rgba(106,81,45,.16) 50% 51%,transparent 52%),
    #ead9aa;
  box-shadow: 0 18px 45px rgba(72,60,44,.2);
}
.theme-explorer .school-head::after { background: repeating-linear-gradient(90deg,#b65b46 0 18px,#ead9aa 18px 36px); }
.theme-explorer .school-kicker { border-radius: 2px; background: #496b73; text-transform: var(--kicker-case, uppercase); }
.theme-explorer .doodle-sun { border: 5px dashed #80643f; background: transparent; box-shadow: inset 0 0 0 18px #d6a84f; }
.theme-explorer .doodle-sun::after { content: "N"; display: grid; place-items: center; height: 100%; color: #483c2c; font-weight: 900; }
.theme-explorer .doodle-cloud { border-radius: 0; background: #b65b46; clip-path: polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%); box-shadow: none; }
.theme-explorer .story { border-radius: 3px; background: #f8efd5; box-shadow: 10px 10px 0 rgba(72,60,44,.18); }
.theme-explorer .story::before { content: "⌖"; border-radius: 50%; background: #b65b46; }
.theme-explorer .story blockquote { border-radius: 3px; background: #496b73; }
.theme-explorer .story li { border: 1px solid #a98b58; border-radius: 3px; background: #eee0b8; box-shadow: none; }

/* Book Club — a warm library with spines, bookmarks, and reading cards. */
.school-public.theme-library {
  --school-blue: #315765;
  --school-yellow: #d9ad59;
  --school-pink: #7b3f4a;
  --school-mint: #728b75;
  --school-deep: #43322d;
  background: linear-gradient(180deg,#7b3f4a 0 430px,#efe6d3 430px);
}
.theme-library .top { border-radius: 4px; border-bottom: 6px solid #d9ad59; background: #fff9ea; }
.theme-library .school-head {
  border: 12px solid #5d302e;
  border-radius: 4px 4px 30px 30px;
  background: linear-gradient(110deg,#fff3d5 0 67%,#d9ad59 67%);
  box-shadow: inset 0 -14px 0 #7b3f4a,0 18px 45px rgba(67,50,45,.25);
}
.theme-library .school-head::after { height: 16px; background: repeating-linear-gradient(90deg,#7b3f4a 0 35px,#315765 35px 60px,#d9ad59 60px 72px); }
.theme-library .school-kicker { border-radius: 0 0 10px 10px; background: #7b3f4a; }
.theme-library .doodle-sun { border: 10px solid #7b3f4a; border-radius: 4px; background: #d9ad59; box-shadow: 15px 15px 0 #315765; transform: rotate(6deg); }
.theme-library .doodle-cloud { display: none; }
.theme-library .story { border-radius: 5px; border-left: 12px solid #7b3f4a; box-shadow: 10px 10px 0 #d9ad59; }
.theme-library .story::before { content: "¶"; border-radius: 2px; background: #315765; font-family: Georgia,serif; }
.theme-library .story .rich > p:first-child,
.theme-library .story h2,
.theme-library .story blockquote p { font-family: Georgia,var(--serif); }
.theme-library .story h2 { background: none; border-bottom: 3px solid #d9ad59; border-radius: 0; }
.theme-library .story blockquote { border-radius: 3px; background: #7b3f4a; }
.theme-library .story li { border-radius: 4px; background: #f4e7ca; box-shadow: inset 7px 0 #315765; }

/* Sports Day — field markings, strong diagonals, and team energy. */
.school-public.theme-sports {
  --school-blue: #176b4b;
  --school-yellow: #f4c842;
  --school-pink: #ef7e2f;
  --school-mint: #65b879;
  --school-deep: #173e32;
  background:
    linear-gradient(90deg,transparent 49.7%,rgba(255,255,255,.35) 50%,transparent 50.3%),
    #2e8a5b;
}
.theme-sports .top { border-radius: 50px; background: #fff; border: 3px solid #173e32; box-shadow: 0 7px 0 #f4c842; }
.theme-sports .school-head {
  border: 6px solid white;
  border-radius: 70px 12px 70px 12px;
  background: linear-gradient(120deg,#176b4b 0 64%,#ef7e2f 64%);
  box-shadow: 0 18px 0 #f4c842;
}
.theme-sports .school-head .meta, .theme-sports .school-head h1 { color: white; }
.theme-sports .school-kicker { background: white; color: #176b4b; text-transform: var(--kicker-case, uppercase); }
.theme-sports .school-head::after { height: 0; }
.theme-sports .doodle-sun { border: 8px solid white; background: #ef7e2f; box-shadow: inset 0 0 0 4px #173e32; }
.theme-sports .doodle-cloud { width: 170px; height: 8px; border-radius: 0; background: white; box-shadow: 0 30px 0 white,0 60px 0 white; transform: rotate(-20deg); }
.theme-sports .doodle-star { color: #f4c842; }
.theme-sports .story { border-radius: 12px; border-top: 10px solid #176b4b; box-shadow: 0 14px 0 #f4c842; }
.theme-sports .story::before { content: "●"; border: 4px solid #173e32; background: white; color: #ef7e2f; }
.theme-sports .story h2 { background: none; border-left: 9px solid #ef7e2f; border-radius: 0; }
.theme-sports .story blockquote { border-radius: 50px; background: #176b4b; }
.theme-sports .story li { border-radius: 8px; background: #e2f2e7; box-shadow: 0 8px 0 #65b879; }

/* Arts Studio — gallery white with expressive painted forms. */
.school-public.theme-arts {
  --school-blue: #287cc1;
  --school-yellow: #f4c84d;
  --school-pink: #ef565f;
  --school-mint: #43a985;
  --school-deep: #25262c;
  background:
    radial-gradient(circle at 5% 30%,rgba(239,86,95,.3) 0 90px,transparent 92px),
    radial-gradient(circle at 95% 58%,rgba(40,124,193,.23) 0 120px,transparent 122px),
    #f6f5f1;
}
.theme-arts .top { border: 2px solid #25262c; border-radius: 0; background: #fff; box-shadow: 7px 7px 0 #f4c84d; }
.theme-arts .school-head {
  border: 3px solid #25262c;
  border-radius: 0;
  background:
    radial-gradient(circle at 82% 35%,#ef565f 0 75px,transparent 77px),
    linear-gradient(135deg,#fff 0 68%,#f4c84d 68%);
  box-shadow: 12px 12px 0 #287cc1;
}
.theme-arts .school-head::after { height: 10px; background: linear-gradient(90deg,#ef565f 0 32%,#f4c84d 32% 54%,#43a985 54% 76%,#287cc1 76%); }
.theme-arts .school-kicker { border-radius: 0; background: #25262c; }
.theme-arts .doodle-sun { border: 0; border-radius: 42% 58% 65% 35%; background: #287cc1; box-shadow: none; transform: rotate(20deg); }
.theme-arts .doodle-cloud { border-radius: 0; background: #43a985; box-shadow: -38px 24px 0 #ef565f; transform: rotate(-8deg); }
.theme-arts .story { border: 2px solid #25262c; border-radius: 0; box-shadow: 12px 12px 0 #f4c84d; }
.theme-arts .story::before { content: "✎"; border-radius: 0; background: #ef565f; }
.theme-arts .story figure { border-radius: 0; border: 2px solid #25262c; transform: rotate(-1deg); }
.theme-arts .story img { border-radius: 0; }
.theme-arts .story blockquote { border-radius: 0; background: #287cc1; transform: rotate(-.6deg); }
.theme-arts .story li { border: 2px solid #25262c; border-radius: 0; box-shadow: 6px 6px 0 #43a985; }

/* Eco Campus — mature botanical forms and recycled-paper warmth. */
.school-public.theme-eco {
  --school-blue: #356d58;
  --school-yellow: #d8bd64;
  --school-pink: #bd7355;
  --school-mint: #76aa75;
  --school-deep: #27483a;
  background:
    radial-gradient(ellipse at 0 40%,rgba(83,132,77,.25) 0 100px,transparent 102px),
    radial-gradient(ellipse at 100% 65%,rgba(118,170,117,.28) 0 130px,transparent 132px),
    #e8ead9;
}
.theme-eco .top { border-radius: 16px 4px 16px 4px; background: #faf8e9; border-color: #9aab7e; }
.theme-eco .school-head {
  border: 0;
  border-radius: 90px 16px 90px 16px;
  background: linear-gradient(130deg,#f5f0cf 0 62%,#66936a 62%);
  box-shadow: 0 20px 45px rgba(39,72,58,.18);
}
.theme-eco .school-head::after { background: linear-gradient(90deg,#356d58,#76aa75,#d8bd64); }
.theme-eco .school-kicker { background: #356d58; }
.theme-eco .doodle-sun { border-radius: 80% 0 80% 0; border: 8px solid #d8bd64; background: #76aa75; transform: rotate(18deg); box-shadow: none; }
.theme-eco .doodle-cloud { border-radius: 80% 0 80% 0; background: #356d58; box-shadow: none; transform: rotate(-20deg); }
.theme-eco .doodle-star { color: #bd7355; }
.theme-eco .story { border-radius: 30px 6px 30px 6px; background: #faf8e9; }
.theme-eco .story::before { content: "⌁"; border-radius: 80% 0 80% 0; background: #356d58; }
.theme-eco .story h2 { background: linear-gradient(transparent 55%,rgba(118,170,117,.35) 55%); }
.theme-eco .story blockquote { border-radius: 4px 34px 34px 34px; background: #356d58; }
.theme-eco .story li { border-radius: 18px 4px 18px 4px; background: #e6edd7; box-shadow: 0 8px 0 #b9cc9d; }

/* Digital Future — a grid, luminous accents, and modular panels. */
.school-public.theme-future {
  --school-blue: #2ed7d2;
  --school-yellow: #f2d74b;
  --school-pink: #ff5d8f;
  --school-mint: #58b5ff;
  --school-deep: #0c1834;
  background:
    linear-gradient(90deg,rgba(46,215,210,.1) 1px,transparent 1px),
    linear-gradient(rgba(46,215,210,.1) 1px,transparent 1px),
    #0d1730;
  background-size: 36px 36px;
}
.theme-future .top { border: 1px solid #2ed7d2; border-radius: 4px; background: rgba(12,24,52,.94); color: white; box-shadow: 0 0 24px rgba(46,215,210,.3); }
.theme-future .brand span, .theme-future .nav a { color: #bfeeed; }
.theme-future .school-head {
  border: 1px solid #2ed7d2;
  border-radius: 4px 56px 4px 56px;
  background: linear-gradient(135deg,#12244b,#1d3260);
  box-shadow: 0 0 35px rgba(46,215,210,.28);
}
.theme-future .school-head .meta, .theme-future .school-head h1 { color: white; }
.theme-future .school-kicker { border: 1px solid #2ed7d2; border-radius: 2px; background: transparent; color: #2ed7d2; text-transform: var(--kicker-case, uppercase); }
.theme-future .school-head::after { height: 4px; background: linear-gradient(90deg,#2ed7d2,#58b5ff,#ff5d8f); }
.theme-future .doodle-sun { border: 3px solid #2ed7d2; border-radius: 8px; background: transparent; box-shadow: 0 0 25px #2ed7d2; transform: rotate(45deg); }
.theme-future .doodle-cloud { border: 3px solid #58b5ff; border-radius: 4px; background: transparent; box-shadow: none; }
.theme-future .doodle-star { color: #ff5d8f; }
.theme-future .story { border: 1px solid #58b5ff; border-radius: 4px; background: #f7fbff; box-shadow: 0 0 35px rgba(88,181,255,.25); }
.theme-future .story::before { content: ">_"; width: 62px; border-radius: 3px; background: #0d1730; color: #2ed7d2; font-family: monospace; }
.theme-future .story h2 { border-radius: 2px; background: linear-gradient(90deg,rgba(46,215,210,.25),transparent); }
.theme-future .story blockquote { border-radius: 3px; background: linear-gradient(135deg,#12244b,#2a4980); }
.theme-future .story li { border: 1px solid #58b5ff; border-radius: 3px; background: #edf7ff; box-shadow: 5px 5px 0 rgba(46,215,210,.35); }

/* Heritage School — terracotta, woven geometry, and local warmth. */
.school-public.theme-heritage {
  --school-blue: #365f63;
  --school-yellow: #dcae62;
  --school-pink: #b85c3d;
  --school-mint: #798f69;
  --school-deep: #56372b;
  background:
    repeating-linear-gradient(135deg,rgba(184,92,61,.06) 0 10px,transparent 10px 20px),
    #eee0c4;
}
.theme-heritage .top { border: 3px double #7b4b37; border-radius: 5px; background: #faf0d8; box-shadow: none; }
.theme-heritage .school-head {
  border: 8px double #7b4b37;
  border-radius: 5px 50px 5px 50px;
  background: linear-gradient(125deg,#f4dcae 0 66%,#b85c3d 66%);
  box-shadow: 0 18px 0 rgba(54,95,99,.25);
}
.theme-heritage .school-head::after { background: repeating-linear-gradient(90deg,#b85c3d 0 18px,#dcae62 18px 36px,#365f63 36px 54px); }
.theme-heritage .school-kicker { border-radius: 2px; background: #365f63; }
.theme-heritage .doodle-sun { border: 8px double #7b4b37; background: #dcae62; box-shadow: none; }
.theme-heritage .doodle-cloud { border-radius: 3px; background: #798f69; box-shadow: -35px 18px 0 #dcae62; }
.theme-heritage .story { border: 5px double #7b4b37; border-radius: 4px; background: #fff7e5; }
.theme-heritage .story::before { content: "✦"; border-radius: 3px; background: #b85c3d; }
.theme-heritage .story h2 { background: none; border-bottom: 4px double #dcae62; border-radius: 0; }
.theme-heritage .story blockquote { border-radius: 4px; background: #365f63; }
.theme-heritage .story li { border: 2px solid #dcae62; border-radius: 4px; background: #f5e4c3; box-shadow: none; }

/* Math Workshop — geometric fields, graph-paper rhythm, and logic blocks. */
.school-public.theme-mathematics {
  --school-blue: #377ab5;
  --school-yellow: #f0c84f;
  --school-pink: #e6625d;
  --school-mint: #5caf82;
  --school-deep: #213b56;
  background:
    linear-gradient(90deg,rgba(55,122,181,.09) 1px,transparent 1px),
    linear-gradient(rgba(55,122,181,.09) 1px,transparent 1px),
    #f8fbf5;
  background-size: 24px 24px;
}
.theme-mathematics .top { border-radius: 0; border: 3px solid #213b56; background: white; box-shadow: 7px 7px 0 #f0c84f; }
.theme-mathematics .school-head {
  border: 5px solid #213b56;
  border-radius: 0 70px 0 70px;
  background: conic-gradient(from 45deg at 85% 42%,#e6625d 0 25%,#f0c84f 0 50%,#5caf82 0 75%,#377ab5 0) right/34% 100% no-repeat,#fff;
  box-shadow: 10px 10px 0 #377ab5;
}
.theme-mathematics .school-head::after { height: 8px; background: repeating-linear-gradient(90deg,#377ab5 0 25px,#f0c84f 25px 50px,#e6625d 50px 75px,#5caf82 75px 100px); }
.theme-mathematics .school-kicker { border-radius: 0; background: #213b56; }
.theme-mathematics .doodle-sun { border: 5px solid #213b56; border-radius: 0; background: #f0c84f; box-shadow: none; transform: rotate(45deg); }
.theme-mathematics .doodle-cloud { border: 5px solid #213b56; border-radius: 50%; background: #5caf82; box-shadow: none; }
.theme-mathematics .doodle-star { color: #e6625d; }
.theme-mathematics .story { border: 4px solid #213b56; border-radius: 0; box-shadow: 10px 10px 0 #f0c84f; }
.theme-mathematics .story::before { content: "∑"; border-radius: 0; background: #377ab5; font-family: Georgia,serif; }
.theme-mathematics .story h2 { border-radius: 0; background: linear-gradient(90deg,#f0c84f 0 8px,transparent 8px); padding-left: 22px; }
.theme-mathematics .story blockquote { border-radius: 0; background: #213b56; }
.theme-mathematics .story li { border: 3px solid #213b56; border-radius: 0; box-shadow: 6px 6px 0 #5caf82; }

/* Sign-in opened from a school page uses that page's theme. */
dialog.modal.school-public {
  min-height: 0;
  background: transparent;
}
dialog.modal.school-public .modal-card {
  color: var(--school-deep);
  border: 1px solid rgba(56, 108, 122, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 26px 70px rgba(35, 77, 91, 0.16);
}
dialog.modal.school-public .modal-card h1 {
  color: var(--school-deep);
  font-family: "Arial Rounded MT Bold", "Avenir Next", var(--sans);
  font-weight: 800;
  letter-spacing: -0.025em;
}
dialog.modal.school-public .modal-card label,
dialog.modal.school-public .modal-card .meta { color: color-mix(in srgb, var(--school-deep) 70%, white); }
dialog.modal.school-public .modal-card .btn {
  background: var(--school-blue);
  border-color: var(--school-blue);
  color: white;
}
dialog.modal.school-public .modal-card .btn:hover {
  background: var(--school-deep);
  border-color: var(--school-deep);
}
dialog.modal.school-public .modal-card input {
  border-color: color-mix(in srgb, var(--school-blue) 30%, white);
  border-radius: 14px;
}
dialog.modal.school-public .modal-card input:focus { outline-color: var(--school-blue); }
dialog.modal.school-public .modal-close {
  border-color: color-mix(in srgb, var(--school-blue) 28%, white);
  background: white;
  color: var(--school-deep);
}
dialog.modal.school-public .modal-close:hover { background: var(--school-yellow); }
dialog.modal.school-public .error { color: var(--school-pink); }
dialog.modal.school-public .face-choice {
  border-color: color-mix(in srgb, var(--school-blue) 26%, white);
  color: var(--school-deep);
}
dialog.modal.school-public .face-choice:hover:not(:disabled) {
  border-color: var(--school-blue);
  background: color-mix(in srgb, var(--school-blue) 6%, white);
}
dialog.modal.school-public .face-choice-sub,
dialog.modal.school-public .face-choice-email {
  color: color-mix(in srgb, var(--school-deep) 72%, white);
}

dialog.modal.theme-ocean .modal-card { border-radius: 36px 18px 36px 18px; }
dialog.modal.theme-crayon .modal-card {
  border: 4px solid #22365b;
  border-radius: 12px;
  box-shadow: 8px 8px 0 #36ad6d;
}
dialog.modal.theme-crayon .modal-card h1 { text-shadow: 2px 2px 0 #ffd63f; }
dialog.modal.theme-crayon .modal-card input,
dialog.modal.theme-crayon .modal-close { border-radius: 8px; border-color: #22365b; }
dialog.modal.theme-space .modal-card {
  color: #29275f;
  background: #f7f7ff;
  border: 3px solid #7770ba;
  border-radius: 28px;
  box-shadow: 0 0 45px rgba(92, 224, 221, 0.35);
}
dialog.modal.theme-space .modal-card h1,
dialog.modal.theme-space .modal-close { color: #29275f; }
dialog.modal.theme-space .modal-card label,
dialog.modal.theme-space .modal-card .meta { color: #46456f; }
dialog.modal.theme-jungle .modal-card { border: 4px solid #3c8152; border-radius: 12px 40px 12px 40px; }
dialog.modal.theme-candy .modal-card {
  border-radius: 40px;
  background: linear-gradient(180deg, #fff, #fff7fb);
  box-shadow: 0 16px 0 rgba(103, 223, 220, 0.28), 0 36px 70px rgba(89, 54, 111, 0.14);
}
dialog.modal.theme-chalkboard .modal-card {
  border: 3px solid #9f754d;
  border-radius: 5px;
  background: #fff9e9;
  box-shadow: 8px 8px 0 #b98b57;
}
dialog.modal.theme-chalkboard .modal-card h1 { font-family: "Chalkboard SE", "Comic Sans MS", var(--sans); font-weight: 600; text-shadow: none; }
dialog.modal.theme-chalkboard .modal-card input,
dialog.modal.theme-chalkboard .modal-close { border-radius: 4px; }
dialog.modal.theme-collage .modal-card {
  border: 0;
  border-radius: 0;
  background: #f7f0df;
  box-shadow: 12px 12px 0 rgba(69, 56, 44, 0.22);
}
dialog.modal.theme-collage .modal-card input,
dialog.modal.theme-collage .modal-close { border-radius: 0; }
dialog.modal.theme-storybook .modal-card {
  border: 8px double #8a6746;
  border-radius: 4px;
  background: #fff9e9;
}
dialog.modal.theme-storybook .modal-card h1 { font-family: Georgia, var(--serif); font-weight: 600; }
dialog.modal.theme-academy .modal-card { border: 0; border-top: 7px solid #183f70; border-radius: 8px; }
dialog.modal.theme-academy .modal-card input,
dialog.modal.theme-academy .modal-close { border-radius: 6px; }
dialog.modal.theme-science .modal-card { border: 2px solid #b8e3e7; border-radius: 16px; }
dialog.modal.theme-explorer .modal-card {
  border-radius: 3px;
  background: #f8efd5;
  box-shadow: 8px 8px 0 rgba(72, 60, 44, 0.18);
}
dialog.modal.theme-explorer .modal-card input,
dialog.modal.theme-explorer .modal-close { border-radius: 3px; }
dialog.modal.theme-library .modal-card { border-radius: 5px; border-left: 12px solid #7b3f4a; box-shadow: 8px 8px 0 #d9ad59; }
dialog.modal.theme-library .modal-card h1 { font-family: Georgia, var(--serif); font-weight: 600; }
dialog.modal.theme-sports .modal-card { border-radius: 12px; border-top: 10px solid #176b4b; box-shadow: 0 12px 0 #f4c842; }
dialog.modal.theme-arts .modal-card { border: 2px solid #25262c; border-radius: 0; box-shadow: 10px 10px 0 #f4c84d; }
dialog.modal.theme-arts .modal-card input,
dialog.modal.theme-arts .modal-close { border-radius: 0; }
dialog.modal.theme-eco .modal-card { border-radius: 28px 6px 28px 6px; background: #faf8e9; }
dialog.modal.theme-future .modal-card {
  color: #10203f;
  border: 1px solid #58b5ff;
  border-radius: 4px;
  background: #f7fbff;
  box-shadow: 0 0 35px rgba(88, 181, 255, 0.28);
}
dialog.modal.theme-future .modal-card h1,
dialog.modal.theme-future .modal-close { color: #10203f; }
dialog.modal.theme-future .modal-card .btn { background: #0d1730; border-color: #2ed7d2; color: #d9fffc; }
dialog.modal.theme-future .modal-card .btn:hover { background: #16305f; border-color: #2ed7d2; }
dialog.modal.theme-future .modal-card input,
dialog.modal.theme-future .modal-close { border-radius: 4px; }
dialog.modal.theme-heritage .modal-card { border: 5px double #7b4b37; border-radius: 4px; background: #fff7e5; }
dialog.modal.theme-heritage .modal-card input,
dialog.modal.theme-heritage .modal-close { border-radius: 3px; }
dialog.modal.theme-mathematics .modal-card { border: 4px solid #213b56; border-radius: 0; box-shadow: 8px 8px 0 #f0c84f; }
dialog.modal.theme-mathematics .modal-card input,
dialog.modal.theme-mathematics .modal-close { border-radius: 0; }

@media (max-width: 720px) {
  .school-public .top { top: 8px; border-radius: 18px; }
  .school-public .account-name { display: none; }
  .school-public main.wrap { padding-top: 28px; }
  .school-public .school-head {
    min-height: 270px;
    padding: 30px 24px 120px;
    border-width: 5px;
    border-radius: 30px 30px 62px 30px;
  }
  .school-public .school-head h1 { max-width: none; font-size: clamp(28px, 8.5vw, 38px); }
  .doodle-sun { width: 82px; height: 82px; right: 15%; top: auto; bottom: 48px; border-width: 10px; }
  .doodle-cloud { width: 120px; height: 42px; right: 7%; bottom: 35px; box-shadow: -35px 8px 0 -3px #fff, -12px -18px 0 5px #fff; }
  .doodle-star { right: 35%; top: auto; bottom: 90px; }
  .school-public .story {
    width: calc(100% - 18px);
    margin-top: -24px;
    padding: 38px 22px 46px;
    border-radius: 26px;
  }
  .school-public .story::before { display: none; }
  .school-public .story ul { grid-template-columns: 1fr; }
  .school-public .story li { min-height: 0; }
  .school-public .story blockquote { padding: 26px 22px 28px 62px; }
  .school-public .page-list { width: calc(100% - 18px); }
}

/* Study library & reusable materials */
.study-subjects { margin: 12px 0; }
.study-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.study-filters.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.study-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}
.study-list { display: grid; gap: 0; }
.study-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.study-card-main { min-width: 0; flex: 1; display: grid; gap: 6px; }
.study-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.15;
  font-weight: 560;
}
.study-card h3 a { color: inherit; text-decoration: none; }
.study-card h3 a:hover { color: var(--forest); }
.study-chips { gap: 6px; }
.study-summary { margin: 0; color: var(--ink); font-size: 15px; }
.class-note {
  margin: 0;
  font-size: 14px;
  color: var(--forest);
  background: #eef6f2;
  border-radius: 8px;
  padding: 4px 10px;
  width: fit-content;
}
.study-modal {
  width: min(44rem, calc(100vw - 24px));
  max-height: min(88vh, 880px);
  overflow: auto;
}
.study-modal.editor-modal { width: min(54rem, calc(100vw - 24px)); }
.study-modal h2 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 8px;
  padding-right: 36px;
}
.editor-form { max-width: none !important; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.short-area { min-height: 92px; }
.assign-box {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.teacher-note-box {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #d5c7aa;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: #fcf8ee;
}
.teacher-note-box strong { display: block; margin-bottom: 4px; color: var(--ink); }
.teacher-note-head { font-weight: 650; margin: 12px 0 2px; }
.teacher-note-box .teacher-note-head:first-of-type { margin-top: 6px; }
.teacher-note-list { margin: 2px 0 4px; padding-left: 1.25em; }
.teacher-note-list li { margin: 2px 0; }
.study-reader .rich { margin-top: 12px; }
.pick-mat-list { max-height: 52vh; overflow: auto; }

@media (max-width: 760px) {
  .study-filters, .study-filters.three { grid-template-columns: 1fr; }
  .study-card { flex-direction: column; }
}

/* Classes, lessons & report cards */
.chip.lesson {
  color: #244b6e;
  border-color: #b7cde0;
  background: #edf4fb;
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.class-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.class-card-top { display: grid; gap: 6px; }
.class-card h3 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 560;
}
.class-card h3 a { color: inherit; text-decoration: none; }
.class-card h3 a:hover { color: var(--forest); }
.class-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.class-card-actions { gap: 6px; flex-wrap: wrap; }
.pick-box { margin-top: 8px; max-height: 180px; overflow: auto; }
.pick-students { max-height: 220px; }
.btn-sm { min-height: 28px; padding: 0 10px; font-size: 13px; }
.simple-list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.table-wrap { width: 100%; overflow-x: auto; margin: 10px 0; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table th {
  font-size: calc(12px * var(--kicker-scale));
  text-transform: var(--kicker-case, uppercase);
  letter-spacing: var(--kicker-track, 0.08em);
  color: var(--ink-soft);
  font-weight: 600;
  background: rgba(243, 239, 230, 0.55);
}
.data-table .num-col { text-align: right; white-space: nowrap; }
.gradebook-table td { padding: 8px 6px; }
.compact-input {
  width: 100%;
  min-width: 110px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 14px;
}
.score-input { min-width: 78px; max-width: 96px; }
.student-link { color: var(--forest); text-decoration: none; font-weight: 600; }
.student-link:hover { text-decoration: underline; }
.student-sub-preview { margin: 3px 0 0; font-size: 12px; }

.report-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.inline-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.inline-filter select {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 14px;
}
.report-quick-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}
.report-sheet {
  padding: 24px;
  background: white;
}
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 16px;
}
.report-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.report-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
}
.report-title-block { flex: 1; min-width: 240px; }
.report-title-block h2 { margin: 8px 0 4px; font-size: 26px; }
.report-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  margin-bottom: 14px;
}
.report-meta-grid span.meta { display: block; font-size: calc(12px * var(--kicker-scale)); text-transform: var(--kicker-case, uppercase); letter-spacing: var(--kicker-track, 0.06em); }
.report-meta-grid strong { font-size: 15px; font-weight: 400; }
.report-sub-note {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 14px;
  white-space: pre-wrap;
}
.report-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.report-kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: white;
  display: grid;
  gap: 2px;
}
.report-kpi strong {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--forest);
  line-height: 1.15;
}
.report-sheet h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 18px 0 8px;
}
.report-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
}
.report-group-head h4 {
  font-family: var(--sans);
  font-size: calc(13px * var(--kicker-scale));
  font-weight: 600;
  letter-spacing: var(--kicker-track, 0.04em);
  text-transform: var(--kicker-case, uppercase);
  color: var(--ink-2);
  margin: 0;
}
.report-group-head .count {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.report-class-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0;
  background: var(--paper-2);
}
.report-overlap-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 18px;
}
.report-overlap-day {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--paper-2);
  display: grid;
  gap: 8px;
}
.report-overlap-date {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.report-overlap-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}
.report-overlap-pill {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
}
.report-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}
.data-table th.bar-col,
.data-table td.bar-col {
  width: 1%;
  white-space: nowrap;
}
.report-bar-svg {
  display: block;
  width: 96px;
  height: 8px;
}
.report-bar-bg {
  fill: var(--paper-2);
  stroke: var(--line);
  stroke-width: 1;
}
.report-bar-fill {
  fill: var(--forest);
}
.report-month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 8px;
  margin: 10px 0 18px;
}
.report-month-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.report-month-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.report-month-head strong { font-size: 13px; color: var(--ink); }
.report-month-primary { font-size: 12.5px; font-weight: 700; color: var(--forest); white-space: nowrap; }
.report-month-primary.zero { color: var(--ink-soft); font-weight: 500; }
.report-month-tile .report-bar-svg { width: 100%; height: 7px; }
.report-month-line { font-size: 11.5px; color: var(--ink-soft); line-height: 1.3; }
/* Report type chips and very faded row tints */
.chip.type-public,
.chip.type-meeting { color: #6b5420; border-color: #e4d3a8; background: #f8f1df; }
.chip.type-vacation,
.chip.type-workshop { color: #244b6e; border-color: #b7cde0; background: #edf4fb; }
.chip.type-closure { color: var(--clay); border-color: #e4c8c0; background: var(--clay-soft); }
.chip.type-school-holiday,
.chip.type-event { color: var(--forest); border-color: #b7d2c6; background: #eef6f2; }
.chip.type-school-closed,
.chip.type-celebration { color: #683b5c; border-color: #dfcad8; background: #f7eef4; }
.chip.type-sports { color: #18575c; border-color: #b2d7da; background: #ebf7f8; }
.chip.type-trip { color: #8b4528; border-color: #e3c7b8; background: #f8ece6; }
.chip.type-other { color: var(--ink-soft); border-color: #dbd3c6; background: #f5f1ea; }

.data-table tbody tr.month-band { background: rgba(243, 239, 230, 0.28); }
button.chip {
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  padding: 5px 11px;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 12.5px;
}
button.chip:hover { border-color: var(--ink-soft); }
.cal-filter-row { margin: 8px 0 10px; }
.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.cal-dot-closed { background: #c26557; }
.cal-dot-event { background: var(--forest); }
.cal-dot-leave { background: #3b72a8; }
.multi-filter { position: relative; }
.multi-filter > summary { list-style: none; }
.multi-filter > summary::-webkit-details-marker { display: none; }
.multi-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
}
.multi-filter-btn:hover { border-color: var(--ink-soft); }
.multi-filter-caret { color: var(--ink-soft); font-size: 11px; }
.multi-filter-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  min-width: 220px;
  max-height: 340px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(28, 25, 21, 0.14);
  padding: 6px;
}
.multi-filter-group {
  font-size: calc(10.5px * var(--kicker-scale));
  font-weight: 700;
  letter-spacing: var(--kicker-track, 0.08em);
  text-transform: var(--kicker-case, uppercase);
  color: var(--ink-soft);
  padding: 6px 8px 3px;
}
.multi-filter-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.multi-filter-opt:hover { background: var(--paper); }
.multi-filter-opt input[type="checkbox"] { width: auto; margin: 0; }
.multi-filter-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 6px 4px 2px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.multi-filter-foot .btn,
.multi-filter-foot .btn-quiet { padding: 4px 10px; font-size: 12.5px; }
.pdf-modal .pdf-modal-card {
  width: min(1040px, calc(100vw - 24px));
  height: min(90vh, 920px);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pdf-modal-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
}
.pdf-viewer-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #525659;
}
.pdf-viewer-loading {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  pointer-events: none;
}
.pdf-viewer-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.att-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin: 0 0 14px;
  border: 1px solid #b7d2c6;
  border-radius: 14px;
  background: #eef6f2;
}
.att-banner-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
}
.att-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}
.att-date-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.att-date-input {
  width: auto;
  min-width: 155px;
  padding: 5px 10px;
  min-height: 34px;
}
.att-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.att-kpi {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.att-kpi strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  color: var(--ink);
}
.att-kpi span {
  display: block;
  margin-top: 3px;
  font-size: calc(12px * var(--kicker-scale));
  text-transform: var(--kicker-case, uppercase);
  letter-spacing: var(--kicker-track, 0.06em);
  color: var(--ink-soft);
}
.att-kpi.good strong { color: var(--forest); }
.att-kpi.warn strong { color: var(--clay); }
.att-seg {
  display: inline-flex;
  gap: 4px;
  flex-wrap: nowrap;
}
.att-opt {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.att-opt:hover { border-color: #cfc3b2; color: var(--ink); }
.att-opt.on.present { background: var(--forest); border-color: var(--forest); color: #fffaf3; }
.att-opt.on.late { background: #8a6418; border-color: #8a6418; color: #fffaf3; }
.att-opt.on.absent { background: var(--clay); border-color: var(--clay); color: #fffaf3; }
.att-opt.on.excused { background: #5c564c; border-color: #5c564c; color: #fffaf3; }
.att-note-input {
  min-width: 150px;
  max-width: 260px;
  min-height: 30px;
  padding: 4px 8px;
  font-size: 14px;
}
.guardian-list { display: grid; gap: 4px; }
.guardian-line { font-size: 14px; line-height: 1.35; }
.guardian-line .meta { font-size: 13px; }
.class-section-title {
  font-family: var(--serif);
  font-size: 22px;
  margin: 18px 0 8px;
}
.recent-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 16px;
}

.student-combo {
  position: relative;
}
.student-combo-bar {
  display: flex;
  gap: 6px;
  align-items: center;
}
.student-combo-bar input {
  flex: 1 1 auto;
  min-width: 0;
}
.student-combo-toggle {
  flex: 0 0 auto;
  min-width: 38px;
  padding: 0 10px;
}
.student-combo-menu {
  margin-top: 6px;
  max-height: 220px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(32, 26, 20, 0.1);
  padding: 4px;
}
.student-combo-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}
.student-combo-opt:hover,
.student-combo-opt:focus-visible {
  background: #eef6f2;
  outline: none;
}
.student-combo-opt-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: 8px;
}
.student-combo-add {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  flex-shrink: 0;
}
.student-combo-empty {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink-soft);
}
.student-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  padding: 2px 0;
}
.student-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6f2;
  border: 1px solid #b7d2c6;
  color: var(--forest);
  font-size: 14px;
  font-weight: 500;
}
.student-chip button {
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}
.student-chip button:hover {
  color: var(--clay);
}

.sched-day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 10px;
}
.sched-rows {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}
.sched-row {
  display: grid;
  grid-template-columns: 112px 112px minmax(150px, 1.4fr) minmax(130px, 1fr) minmax(90px, 0.7fr) auto;
  gap: 6px;
  align-items: center;
}
.sched-row input,
.sched-row select {
  min-height: 34px;
  padding: 4px 8px;
  font-size: 14px;
}
@media (max-width: 760px) {
  .sched-row {
    grid-template-columns: 1fr 1fr;
  }
}
.sched-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 10px 0 18px;
}
.sched-day-col {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.sched-day-col.today {
  border-color: #b7d2c6;
  background: #f3f9f6;
}
.sched-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.sched-slot {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
}
.sched-slot-time {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--forest);
}
.sched-slot-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.sched-slot-meta {
  font-size: 13px;
  color: var(--ink-soft);
}
.sched-day-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 18px;
}
.sched-day-card.override {
  background: #fcf6ea;
  border-color: #e4cfa2;
}
.sched-day-card.closed {
  background: #fbf1ee;
  border-color: #e5bfb3;
}

@media print {
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
    animation: none !important;
    backdrop-filter: none !important;
  }
  body { background: white !important; min-height: auto !important; }
  body[data-env]::before,
  header.top,
  aside.side,
  .app-drawer,
  .drawer-backdrop,
  .menu-btn,
  .workspace-bar,
  .no-print { display: none !important; }
  .wrap { width: 100% !important; max-width: none !important; margin: 0 !important; }
  .split,
  .app-frame { display: block !important; }
  .table-wrap { overflow: visible !important; }
  .report-sheet {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .report-sheet h3,
  .report-class-block .head-row { break-after: avoid; }
  .report-kpi,
  .report-overlap-day,
  .data-table tr { break-inside: avoid; }
}

.timeoff-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.timeoff-month h3 { margin: 0; }
.timeoff-year {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0 8px;
}
.timeoff-mini {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 10px 12px;
  background: white;
}
.timeoff-mini h3 { margin: 0 0 8px; font-size: 15px; }
.timeoff-mini h3 .meta { font-weight: 500; }
.timeoff-mini-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.timeoff-mini-head {
  text-align: center;
  font-size: calc(10px * var(--kicker-scale));
  letter-spacing: var(--kicker-track, 0.04em);
  text-transform: var(--kicker-case, uppercase);
  color: var(--ink-soft);
}
.timeoff-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  line-height: 1;
}
button.timeoff-cell { width: 100%; cursor: pointer; }
.timeoff-cell.weekend { color: var(--ink-soft); }
.timeoff-cell.mute { visibility: hidden; }
.timeoff-cell.approved { background: #e5f2ea; color: var(--forest); font-weight: 700; }
.timeoff-cell.pending { background: #fbf3df; color: #8a5a12; font-weight: 700; }
.timeoff-cell.mixed { background: linear-gradient(135deg, #e5f2ea 50%, #fbf3df 50%); font-weight: 700; }
.timeoff-cell.closed { background: #f8e8e4; color: #8a4034; font-weight: 700; }
.timeoff-cell.partial { background: linear-gradient(135deg, #f8e8e4 50%, transparent 50%); color: #8a4034; font-weight: 700; }
.timeoff-cell.event { background: #e7f0e4; color: var(--forest); font-weight: 700; }
.timeoff-cell.leave { background: #e8f1fa; color: #244b6e; font-weight: 700; }
.timeoff-cell.event-leave { background: linear-gradient(135deg, #e7f0e4 50%, #e8f1fa 50%); color: var(--ink); font-weight: 700; }
.timeoff-cell.overlap { box-shadow: inset 0 0 0 2px var(--clay); }
.timeoff-cell.today { box-shadow: inset 0 0 0 2px var(--forest); }
.timeoff-cell.on { box-shadow: inset 0 0 0 2px var(--ink); }
button.timeoff-open {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
button.timeoff-open:hover { text-decoration: underline; }
.timeoff-zoom {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 12px;
}
.timeoff-zoom-head {
  text-align: center;
  font-size: calc(11px * var(--kicker-scale));
  letter-spacing: var(--kicker-track, 0.04em);
  text-transform: var(--kicker-case, uppercase);
  color: var(--ink-soft);
}
.timeoff-zoom-day {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 6px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  font-size: 12px;
  line-height: 1.3;
}
button.timeoff-zoom-day { width: 100%; cursor: pointer; }
.timeoff-zoom-day .num { font-weight: 700; }
.timeoff-zoom-day .who { display: block; }
.timeoff-zoom-day .who.quiet { color: var(--ink-soft); }
.timeoff-zoom-day.mute { visibility: hidden; }
.timeoff-zoom-day.weekend { background: transparent; color: var(--ink-soft); }
.timeoff-zoom-day.approved { background: #e5f2ea; }
.timeoff-zoom-day.pending { background: #fbf3df; }
.timeoff-zoom-day.mixed { background: linear-gradient(135deg, #e5f2ea 50%, #fbf3df 50%); }
.timeoff-zoom-day.closed { background: #f8e8e4; color: #8a4034; }
.timeoff-zoom-day.partial { background: linear-gradient(135deg, #f8e8e4 55%, white 55%); color: #8a4034; }
.timeoff-zoom-day.event { background: #e7f0e4; }
.timeoff-zoom-day.leave { background: #e8f1fa; }
.timeoff-zoom-day.event-leave { background: linear-gradient(135deg, #e7f0e4 50%, #e8f1fa 50%); }
.timeoff-zoom-day.overlap { box-shadow: inset 0 0 0 2px var(--clay); }
.timeoff-zoom-day.busy { box-shadow: inset 0 0 0 2px var(--clay); }
.timeoff-zoom-day.today { box-shadow: inset 0 0 0 2px var(--forest); }
.timeoff-zoom-day.on { box-shadow: inset 0 0 0 2px var(--ink); }
.timeoff-day-detail { margin: 8px 0 16px; }
.timeoff-day-detail h2,
.timeoff-day-detail h3 { margin-bottom: 8px; }
.timeoff-balances {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.timeoff-balance {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: white;
}
.timeoff-balance strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  color: var(--ink);
}
.timeoff-list { display: grid; gap: 8px; margin: 8px 0 16px; }
.timeoff-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: white;
}
.timeoff-guide {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: white;
  margin: 0 0 12px;
}
.timeoff-guide.warn { border-color: #e4c8c0; background: #fdf7f5; }
.timeoff-guide h3 { margin: 0 0 6px; font-size: 20px; }
.timeoff-guide p { margin: 6px 0; }
.timeoff-tight { color: var(--clay); margin: 6px 0; }
.timeoff-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--clay-soft);
  color: var(--clay);
}
.timeoff-pill.approved { background: #e5f2ea; color: var(--forest); }
.timeoff-pill.pending { background: #fbf3df; color: #8a5a12; }
.modal-card.timeoff-categories-modal {
  width: min(52rem, calc(100vw - 24px));
  max-height: min(86vh, 860px);
  overflow: auto;
}
.timeoff-categories-modal h2 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 8px;
  padding-right: 40px;
}
.timeoff-categories-modal .timeoff-row input[type="text"] {
  flex: 1 1 12rem;
  min-width: 8rem;
}
.timeoff-form { margin: 8px 0 16px; }
.timeoff-allow { width: 5.5rem; }
.timeoff-row .check, .timeoff-guide .row { margin-top: 6px; }

.roster-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}
.roster-kpi {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: white;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
button.roster-kpi {
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
button.roster-kpi:hover {
  border-color: var(--forest);
  background: #fafcf9;
}
.roster-kpi.warn {
  background: #fdf9ef;
  border-color: #e6d1a3;
}
button.roster-kpi.warn:hover {
  border-color: #b7791f;
  background: #fcf4e0;
}
.roster-kpi-label {
  font-size: calc(11px * var(--kicker-scale));
  letter-spacing: var(--kicker-track, 0.06em);
  text-transform: var(--kicker-case, uppercase);
  color: var(--ink-soft);
}
.roster-kpi-val {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
  font-weight: 400;
}
.roster-kpi-sub {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.3;
}
.roster-pending {
  border: 1px solid #e6d1a3;
  border-radius: 14px;
  background: #fdf9ef;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.roster-pending-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.roster-pending-head strong { font-size: 15px; }
.roster-pending-list { display: grid; gap: 8px; }
.roster-pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: white;
  border: 1px solid #eadcc0;
  border-radius: 11px;
  padding: 9px 12px;
}
.roster-pending-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.roster-pending-meta { font-size: 13px; color: var(--ink-soft); }
.roster-pending-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.roster-flag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #f8e4de;
  color: var(--clay);
}
.roster-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 10px;
}
.roster-seg {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--paper-2);
  gap: 2px;
}
.roster-seg button {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}
.roster-seg button:hover { color: var(--ink); }
.roster-seg button.on {
  background: white;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.roster-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.roster-nav-title {
  min-width: 132px;
  text-align: center;
  font-size: 17px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
}
.roster-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.roster-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.roster-filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.roster-filter-select {
  width: auto;
  min-width: 140px;
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 999px;
}
.roster-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.roster-toggle input { width: auto; margin: 0; }
.roster-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-soft);
}
.roster-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.roster-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
}
.roster-dot.approved { background: #2d6a4f; }
.roster-dot.pending { background: #d69e2e; }
.roster-dot.closed { background: #d98c7c; }
.roster-dot.overlap { background: var(--clay); }
.roster-month-pills {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 12px;
}
.roster-month-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font: inherit;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
}
.roster-month-pill:hover {
  border-color: var(--forest);
  color: var(--ink);
}
.roster-month-pill.on {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
  font-weight: 600;
}
.roster-month-pill.now:not(.on) {
  border-color: #9dc2b0;
  color: var(--forest);
}
.roster-month-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 6px;
}
.roster-month-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.roster-month-dot.approved { background: #2d6a4f; }
.roster-month-dot.pending { background: #d69e2e; }
.roster-month-dot.overlap { background: var(--clay); }
.roster-month-pill.on .roster-month-dot.approved { background: #b7e4c7; }
.roster-month-pill.on .roster-month-dot.pending { background: #fde68a; }
.roster-month-pill.on .roster-month-dot.overlap { background: #fca5a5; }
.roster-matrix-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  margin: 0 0 16px;
}
.roster-empty {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.roster-empty p { margin: 0; }
.roster-matrix {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.roster-matrix th,
.roster-matrix td {
  border-bottom: 1px solid #efece5;
  border-right: 1px solid #f4f1ea;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}
.roster-matrix th:last-child,
.roster-matrix td:last-child { border-right: 0; }
.roster-matrix tbody tr:last-child td { border-bottom-color: var(--line); }
.roster-matrix tfoot td { border-bottom: 0; background: #faf8f4; }
.roster-matrix .roster-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  background: white;
  width: 196px;
  min-width: 196px;
  max-width: 196px;
  text-align: left;
  padding: 7px 12px;
  border-right: 1px solid var(--line);
  box-shadow: 2px 0 6px -2px rgba(20, 32, 24, 0.08);
}
.roster-matrix thead .roster-sticky {
  z-index: 4;
  background: #faf8f4;
  font-size: calc(11px * var(--kicker-scale));
  text-transform: var(--kicker-case, uppercase);
  letter-spacing: var(--kicker-track, 0.05em);
  color: var(--ink-soft);
  font-weight: 600;
}
.roster-matrix tfoot .roster-sticky {
  z-index: 3;
  background: #faf8f4;
  font-size: calc(11px * var(--kicker-scale));
  text-transform: var(--kicker-case, uppercase);
  letter-spacing: var(--kicker-track, 0.05em);
  color: var(--ink-soft);
  font-weight: 600;
}
.roster-month-band-row th.roster-month-group {
  background: #f4f1ea;
  border-bottom: 1px solid var(--line);
  padding: 5px 10px;
  text-align: left;
  font-size: calc(11px * var(--kicker-scale));
  font-weight: 600;
  letter-spacing: var(--kicker-track, 0.04em);
  text-transform: var(--kicker-case, uppercase);
  color: var(--ink-soft);
  white-space: nowrap;
}
.roster-month-group-label {
  position: sticky;
  left: 208px;
  display: inline-block;
}
.roster-matrix .month-start {
  border-left: 2px solid #dcd5c7;
}
.roster-matrix .roster-month-group:nth-child(2).month-start,
.roster-matrix .roster-day-row .roster-day-th:first-child.month-start,
.roster-matrix tbody tr .roster-day-td:nth-child(2).month-start,
.roster-matrix tfoot tr .roster-cov-cell:nth-child(2).month-start {
  border-left: 0;
}
.roster-staff-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.roster-staff-name > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.roster-staff-role {
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.roster-staff-days {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e8f3ec;
  color: var(--forest);
  flex-shrink: 0;
}
.roster-staff-days:empty {
  display: none;
}
.roster-day-th {
  min-width: 34px;
  width: 34px;
  background: #faf8f4;
}
.roster-day-th.wknd { background: #f2efe8; color: var(--ink-soft); }
.roster-day-th.closed { background: #f8e8e4; color: #8a4034; }
.roster-day-th.today {
  background: #e5f2ea;
  box-shadow: inset 0 2px 0 var(--forest);
}
.roster-day-th-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  line-height: 1.15;
}
.roster-day-th-btn:hover { background: rgba(31, 78, 56, 0.07); }
.roster-day-wd { font-size: 10px; opacity: 0.72; font-weight: 500; }
.roster-day-num { font-size: 12px; font-weight: 600; }
.roster-day-td { height: 36px; min-width: 34px; width: 34px; }
.roster-day-td.wknd { background: #f6f4ef; }
.roster-day-td.closed { background: #fbf1ee; }
.roster-day-td.today { background: #f3f9f5; }
.roster-scroll-hint {
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
}
.roster-scroll-hint:empty { display: none; }
.roster-cell-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  padding: 3px 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.roster-cell-btn:hover { background: rgba(31, 78, 56, 0.06); }
.roster-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.roster-bar.approved {
  background: #2d6a4f;
  color: white;
}
.roster-bar.approved.half {
  background: #d8ede0;
  color: #1f4e38;
  border: 1px solid #2d6a4f;
}
.roster-bar.pending {
  background: #fbf0d2;
  color: #8a5a12;
  border: 1px dashed #c48a28;
}
.roster-bar.mixed {
  background: linear-gradient(135deg, #2d6a4f 50%, #f3d58d 50%);
  color: white;
}
.roster-cov-cell {
  height: 30px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}
.roster-cov-cell.has { color: var(--forest); background: #edf6f0; }
.roster-cov-cell.busy { color: var(--clay); background: #f8e4de; }
.roster-cov-cell.overlap { color: #9b2c2c; background: #f6d4cc; font-weight: 700; }
.roster-cov-cell.wknd { background: #f2efe8; }
.roster-cov-cell.closed { background: #f8e8e4; }
.roster-day-th.overlap {
  background: #f8e4de;
  color: #8a2c22;
  box-shadow: inset 0 2px 0 var(--clay);
}
.roster-day-td.overlap {
  background: rgba(182, 74, 52, 0.08);
}
.roster-staff-filter-search {
  width: 100%;
  padding: 5px 8px;
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12.5px;
  background: var(--paper-2);
  color: var(--ink);
}
.roster-staff-opt-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.roster-staff-opt-role {
  font-size: 11px;
  color: var(--ink-soft);
}
.roster-compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.roster-compare-badge.ok {
  background: #edf6f0;
  color: var(--forest);
  border: 1px solid #cce3d5;
}
.roster-compare-badge.warn {
  background: #f8e4de;
  color: #8a2c22;
  border: 1px solid #e6b8ac;
  cursor: pointer;
}
.roster-compare-badge.warn:hover {
  background: #f4d6cd;
}
.roster-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 8px;
}
.roster-section-head h3 { margin: 0; font-size: 16px; }
.roster-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  margin: 0 0 14px;
}
.roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.roster-table th {
  text-align: left;
  font-size: calc(11px * var(--kicker-scale));
  text-transform: var(--kicker-case, uppercase);
  letter-spacing: var(--kicker-track, 0.06em);
  color: var(--ink-soft);
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #faf8f4;
  white-space: nowrap;
}
.roster-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #efece5;
  vertical-align: middle;
}
.roster-table tbody tr:last-child td { border-bottom: 0; }
.roster-table tr.month-band td { background: rgba(243, 239, 230, 0.28); }
.roster-table-sub { display: block; font-size: 12px; color: var(--ink-soft); }
.roster-day-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .roster-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster-month-pills { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .roster-matrix .roster-sticky { width: 140px; min-width: 140px; max-width: 140px; padding: 6px 8px; }
  .roster-month-group-label { left: 150px; }
  .roster-day-th, .roster-day-td { min-width: 31px; width: 31px; }
  .timeoff-year { grid-template-columns: 1fr; }
  .timeoff-row { align-items: flex-start; }
  .timeoff-zoom { grid-template-columns: 1fr; }
  .timeoff-zoom-head,
  .timeoff-zoom-day.mute { display: none; }
  .timeoff-zoom-day { min-height: 0; }
}

.school-public .signup-card { min-height: 0; background: rgba(255, 255, 255, 0.92); }
.school-public .signup-card-featured {
  border: 2px solid var(--forest);
  box-shadow: 0 12px 30px rgba(30, 74, 56, 0.14);
  margin: 16px 0 24px;
}
.school-public .signup-direct-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 0;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--forest);
}
.signup-other-title { margin: 24px 0 10px; }
.school-public .signup-card h2 { font-size: 26px; }
.school-public .signup-list { padding-bottom: 48px; }
.signup-people { display: grid; gap: 8px; }
.signup-person {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.lang-settings-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.lang-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  cursor: pointer;
}
.lang-setting-row.is-locked {
  background: #faf8f4;
  cursor: default;
}
.lang-setting-info {
  display: grid;
  gap: 3px;
}
.lang-setting-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  color: var(--ink);
}
.lang-setting-native {
  color: var(--ink-soft);
  font-size: 15px;
}
.lang-setting-code {
  font-size: 12px;
  color: var(--ink-soft);
  background: #f3efe6;
  padding: 1px 6px;
  border-radius: 6px;
}
.lang-setting-ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-setting-ctrl input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  accent-color: var(--forest);
  cursor: pointer;
}
.lang-setting-row.is-locked input[type="checkbox"] {
  cursor: not-allowed;
}

.i18n-ov-toolbar {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.i18n-ov-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.i18n-ov-search {
  flex: 1 1 260px;
  min-width: 200px;
}
.i18n-ov-summary {
  margin: 10px 0 6px;
}
.i18n-ov-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.i18n-ov-row {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.i18n-ov-row.is-overridden {
  border-color: #bfd9cc;
  background: #f8fcf9;
}
.i18n-ov-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.i18n-ov-key {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  word-break: break-word;
}
.i18n-ov-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.i18n-ov-default {
  margin: 0;
  font-size: 13px;
}
.i18n-ov-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 15px;
}
.i18n-ov-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.i18n-ov-tokens {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.i18n-ov-note {
  font-size: 13px;
  margin: 0;
}
.i18n-ov-more {
  margin-top: 12px;
}

/* Dynamic paged questions: builder, interactive pager, and answer review */
.chip.paged {
  background: #e8f3ee;
  border-color: #bfd9cc;
  color: var(--forest);
}
.chip.warn {
  background: #fdf2dc;
  border-color: #e7c989;
  color: #7c5210;
}

.btn-link {
  background: transparent;
  border: 0;
  padding: 2px 0;
  color: var(--forest);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover {
  color: var(--forest-2);
}

.q-builder {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf7f1;
  gap: 10px;
}
.q-paged-toggle {
  margin: 0;
  font-weight: 600;
}
.q-paged-help {
  margin: -4px 0 4px;
  font-size: 13px;
}
.q-builder-list {
  display: grid;
  gap: 10px;
}
.q-builder-item {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.q-builder-prompt {
  min-height: 68px;
  resize: vertical;
}
.q-extras-toggle {
  justify-self: start;
}
.q-builder-extras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.q-paste-box {
  padding: 12px 14px;
  border: 1px dashed var(--gold);
  border-radius: 12px;
  background: var(--paper-2);
}

.qp-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.qp-shell {
  margin-top: 12px;
  gap: 14px;
}
.qp-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 14px;
}
.qp-counter {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.qp-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.qp-skip-jump {
  cursor: pointer;
  font-family: inherit;
}
.qp-skip-jump:hover {
  filter: brightness(0.96);
}

.qp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qp-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 36px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}
.qp-dot:hover {
  border-color: var(--forest);
  transform: translateY(-1px);
}
.qp-dot.answered {
  background: #e8f3ee;
  border-color: #9dc5b2;
  color: var(--forest);
}
.qp-dot.skipped {
  background: #fdf2dc;
  border-color: #e4bf74;
  color: #7c5210;
}
.qp-dot.current {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
  box-shadow: 0 4px 12px rgba(30, 74, 56, 0.22);
}

.qp-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 24px rgba(48, 36, 22, 0.05);
}
.qp-qnum {
  font-size: calc(11px * var(--kicker-scale));
  font-weight: 700;
  text-transform: var(--kicker-case, uppercase);
  letter-spacing: var(--kicker-track, 0.07em);
  color: var(--forest);
}
.qp-prompt {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-wrap;
}
.qp-input {
  min-height: 92px;
  resize: vertical;
  font-size: 16px;
}
.qp-extra-wrap {
  display: grid;
  gap: 8px;
}
.qp-hint-box {
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: #fbf6eb;
  font-size: 14px;
  color: var(--ink);
}
.qp-key-box {
  padding: 10px 12px;
  border-left: 3px solid var(--forest);
  border-radius: 8px;
  background: #eef6f2;
  font-size: 14px;
  color: var(--forest);
  font-weight: 600;
}
.qp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}
.qp-skip-btn {
  border-color: #e4bf74;
  color: #7c5210;
  background: #fffaf0;
}
.qp-skip-btn:hover {
  background: #fdf2dc;
}
.qp-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.qp-status {
  margin: 0;
  min-height: 20px;
}
.qp-review-banner {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.qp-review-banner.warn {
  background: #fdf2dc;
  border: 1px solid #e7c989;
  color: #7c5210;
}
.qp-review-banner.ok {
  background: #e8f3ee;
  border: 1px solid #bfd9cc;
  color: var(--forest);
}

.qp-teacher-preview {
  margin: 12px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf7f1;
}
.qp-teacher-preview summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--forest);
}
.qp-teacher-qlist {
  margin: 12px 0 6px;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}
.qp-teacher-prompt {
  white-space: pre-wrap;
  color: var(--ink);
}
.qp-teacher-key {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
}

.qa-review-list {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}
.qa-review-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfbf7;
}
.qa-review-prompt {
  font-weight: 600;
  color: var(--ink);
  white-space: pre-wrap;
}
.qa-review-answer {
  margin: 0;
  padding: 8px 11px;
  border-radius: 8px;
  background: white;
  border: 1px solid #ece5d8;
  white-space: pre-wrap;
}
.qa-review-empty {
  margin: 0;
  font-style: italic;
}

@media (max-width: 760px) {
  .q-builder-extras {
    grid-template-columns: 1fr;
  }
  .qp-card {
    padding: 15px;
  }
  .qp-prompt {
    font-size: 18px;
  }
  .qp-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .qp-actions .row {
    justify-content: space-between;
  }
}

/* System views: Platform, Traffic & security, Access logs, Backup, Settings */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.status-grid .panel {
  margin: 0;
}
.status-grid dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
  font-size: 14px;
}
.status-grid dt {
  color: var(--muted);
}
.status-grid dd {
  margin: 0;
  word-break: break-word;
}
.status-grid h4 {
  margin: 16px 0 8px;
  font-size: 15px;
}
.status-ok, .status-bad {
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 14px;
}
.status-ok {
  background: #eef6f2;
  border: 1px solid #b7d2c6;
  color: var(--forest);
}
.status-bad {
  background: #fdf2ee;
  border: 1px solid #e7bfb2;
  color: var(--ink);
}
.status-bad strong {
  color: var(--clay);
}
.status-bad ul {
  margin: 6px 0 0 18px;
  padding: 0;
}
.status-card-wide {
  margin-top: 16px;
}
.status-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.status-card-head .ico {
  width: 18px;
  height: 18px;
  color: var(--forest);
  flex-shrink: 0;
}
.status-note {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.status-note code, .status-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  word-break: break-all;
}
.status-note code {
  background: var(--paper);
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.status-tree-name {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}
.status-tree-name .ico {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--muted);
}
.status-tree-row--dir .status-tree-name .ico {
  color: var(--forest);
}
.status-tree-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  word-break: break-word;
}
.status-tree-row--dir .status-tree-label {
  font-weight: 600;
  color: var(--ink);
}
.status-tree-toggle {
  border: none;
  background: none;
  padding: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.status-tree-toggle:hover {
  color: var(--ink);
  background: var(--paper);
}
.status-tree-toggle .ico {
  width: 14px;
  height: 14px;
  margin: 0;
  transition: transform 0.15s ease;
}
.status-tree-toggle[aria-expanded="true"] .ico {
  transform: rotate(90deg);
}
.status-tree-toggle-spacer {
  width: 20px;
  flex-shrink: 0;
  display: inline-block;
}
.status-tree-row[hidden] {
  display: none;
}
.status-at-rest {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.status-at-rest--encrypted,
.status-at-rest--fields_encrypted,
.status-at-rest--all_encrypted {
  color: var(--forest);
}
.status-at-rest--plaintext,
.status-at-rest--all_plaintext {
  color: #b45309;
}
.status-at-rest--mixed {
  color: #92400e;
}
.status-at-rest--unknown {
  color: var(--muted);
}
.status-stream-id {
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.status-present-yes {
  color: var(--forest);
  font-weight: 600;
}
.status-present-no {
  color: var(--muted);
}
.sys-table-wrap {
  overflow-x: auto;
}
.sys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.sys-table th, .sys-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.sys-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sys-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sys-table .sys-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.sys-table .sys-tools input[type="password"] {
  width: 160px;
  padding: 6px 9px;
  font-size: 13px;
}
.sys-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  margin-left: 6px;
}
.sys-pill.encrypted {
  color: var(--forest);
  border-color: #b7d2c6;
  background: #eef6f2;
}
.sys-pill.warn {
  color: var(--clay);
  border-color: #e7bfb2;
  background: #fdf2ee;
}
.sys-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 16px;
}
.sys-form-grid .wide {
  grid-column: 1 / -1;
}
.sys-check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}
.sys-check-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.token-secret-box {
  background: #eef6f2;
  border: 1px solid #b7d2c6;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.token-secret-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  word-break: break-all;
  background: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #cde0d6;
}
.restore-note {
  margin: 8px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
}
.restore-note.hint {
  background: #eef6f2;
  border: 1px solid #b7d2c6;
  color: var(--forest);
}
.restore-note.error {
  background: #fdf2ee;
  border: 1px solid #e7bfb2;
  color: var(--clay);
}
tr.restore-note-row td {
  padding-top: 0;
  border-bottom: 1px solid var(--line);
}
.sys-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.sys-head-row h3 {
  margin: 0;
}
.sys-info-table th {
  width: 180px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}
.setup-switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* ==========================================================================
   Marketing Landing Page (.landing-page / .mkt-*)
   ========================================================================== */

.landing-page .mkt-nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.landing-page .mkt-nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}
.lang-switch-top {
  margin: 0 2px;
}

.mkt-btn-lg {
  min-height: 46px;
  padding: 0 22px;
  font-size: 15.5px;
  font-weight: 600;
  gap: 8px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.mkt-btn-lg .ico {
  width: 17px;
  height: 17px;
  transition: transform 140ms ease;
}
.mkt-btn-lg:hover .ico {
  transform: translateX(3px);
}
.btn.mkt-btn-lg {
  box-shadow: 0 8px 22px rgba(30, 74, 56, 0.18);
}
.btn.mkt-btn-lg:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(30, 74, 56, 0.22);
}
.btn-quiet.mkt-btn-lg {
  background: rgba(255, 250, 243, 0.75);
}
.btn-quiet.mkt-btn-lg:hover {
  background: #ffffff;
  border-color: #cfc3b2;
  transform: translateY(-1px);
}
.mkt-btn-demo:hover .ico { transform: none; }

/* --- Hero ---------------------------------------------------------------- */

.mkt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 52px);
}
.mkt-hero-copy {
  min-width: 0;
}
.mkt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: calc(12px * var(--kicker-scale));
  font-weight: 600;
  letter-spacing: var(--kicker-track, 0.06em);
  text-transform: var(--kicker-case, uppercase);
  color: var(--forest);
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(48, 36, 22, 0.04);
}
.mkt-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.2);
}
.mkt-hero h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 13ch;
  color: var(--ink);
}
:root[lang="si"] .mkt-hero h1,
:root[lang="ta"] .mkt-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.18;
  max-width: 18ch;
}
.mkt-hero-sub {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.3;
  color: var(--forest);
  margin: 0 0 12px;
  font-weight: 500;
}
.mkt-hero-desc {
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.6;
  margin: 0 0 26px;
}
.mkt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
}
.mkt-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.mkt-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.mkt-proof-item .ico {
  width: 16px;
  height: 16px;
  color: var(--forest);
  flex-shrink: 0;
}
.mkt-proof-link {
  text-decoration: none;
  color: var(--forest);
  font-weight: 600;
}
.mkt-proof-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Interactive Workspace Preview --------------------------------------- */

.mkt-showcase {
  min-width: 0;
  position: relative;
}
.mkt-preview-window {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 54px rgba(48, 36, 22, 0.11), 0 2px 6px rgba(48, 36, 22, 0.04);
  overflow: hidden;
  container-type: inline-size;
}
.mkt-preview-window::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--brand-stripe);
}
.mkt-preview-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 230, 0.55);
}
.mkt-preview-dots {
  display: inline-flex;
  gap: 6px;
}
.mkt-preview-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d7ccbc;
}
.mkt-preview-dots span:nth-child(1) { background: rgba(237, 106, 90, 0.72); }
.mkt-preview-dots span:nth-child(2) { background: rgba(246, 191, 60, 0.85); }
.mkt-preview-dots span:nth-child(3) { background: rgba(38, 166, 154, 0.75); }
.mkt-preview-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mkt-preview-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--forest);
  background: #eef6f2;
  border: 1px solid #c5ddd1;
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.mkt-preview-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
}
.mkt-preview-tab {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 5px 5px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
@container (max-width: 560px) {
  .mkt-preview-tab {
    font-size: 10.5px;
    padding: 5px 4px;
  }
}
@container (max-width: 480px) {
  .mkt-preview-tab {
    font-size: 9.5px;
    padding: 4px 3px;
  }
}
.mkt-preview-tab:hover {
  color: var(--ink);
  background: var(--paper);
}
.mkt-preview-tab.active {
  background: var(--forest);
  color: #fffaf3;
  border-color: var(--forest);
}
.mkt-preview-body {
  display: grid;
  padding: 18px 18px 20px;
  min-height: 300px;
}
.mkt-pv-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.mkt-pv-panel:not(.is-active) {
  visibility: hidden;
  pointer-events: none;
}
.mkt-pv-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.mkt-pv-head strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
}
.mkt-pv-sub {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-soft);
}
.mkt-pv-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.mkt-pv-stat {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.mkt-pv-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.05;
}
.mkt-pv-stat span {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}
.mkt-pv-stat.is-present strong { color: var(--forest); }
.mkt-pv-stat.is-late strong { color: #9a6d14; }
.mkt-pv-stat.is-absent strong { color: var(--clay); }
.mkt-pv-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
  gap: 2px;
}
.mkt-pv-bar-present { flex: 26; background: var(--forest); border-radius: 999px 0 0 999px; }
.mkt-pv-bar-late { flex: 1; background: var(--brand-yellow); }
.mkt-pv-bar-absent { flex: 2; background: var(--brand-coral); border-radius: 0 999px 999px 0; }
.mkt-pv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.mkt-pv-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 11px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}
.mkt-pv-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.mkt-pv-pill.is-present { background: #e8f4ee; color: var(--forest); }
.mkt-pv-pill.is-late { background: #fbf1d8; color: #7e590e; }
.mkt-pv-pill.is-absent { background: var(--clay-soft); color: var(--clay); }
.mkt-pv-row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.mkt-pv-row-main strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.mkt-pv-row-meta {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.3;
}
.mkt-pv-signup-btn {
  appearance: none;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #fffaf3;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.mkt-pv-signup-btn:hover {
  background: #164935;
  border-color: #164935;
}
.mkt-pv-signup-btn.is-joined {
  background: #e8f4ee;
  color: var(--forest);
  border-color: #b7d8c6;
}
.mkt-pv-signup-btn.is-joined:hover {
  background: #d8ece1;
}

.mkt-pv-sheet {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 11px;
}
.mkt-pv-sheet-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(70px, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}
.mkt-pv-meter {
  height: 7px;
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}
.mkt-pv-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest) 0%, var(--brand-teal) 100%);
}
.mkt-pv-fill.is-92 { width: 92%; }
.mkt-pv-fill.is-88 { width: 88%; }
.mkt-pv-fill.is-95 { width: 95%; }
.mkt-pv-quote {
  margin: 4px 0 0;
  padding: 9px 12px;
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.mkt-pv-foot {
  margin: auto 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.mkt-pv-events {
  display: grid;
  gap: 10px;
}
.mkt-pv-event {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 11px 13px;
  display: grid;
  gap: 5px;
}
.mkt-pv-event.is-coral { border-left-color: var(--brand-coral); }
.mkt-pv-event.is-teal { border-left-color: var(--brand-teal); }
.mkt-pv-event.is-violet { border-left-color: var(--brand-violet); }
.mkt-pv-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.mkt-pv-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.mkt-pv-tag.is-coral { background: #fdece9; color: #b24032; }
.mkt-pv-tag.is-teal { background: #e5f6f4; color: #19746b; }
.mkt-pv-tag.is-violet { background: #eeecfa; color: var(--brand-violet); }
.mkt-pv-aud {
  font-size: 12px;
  color: var(--ink-soft);
}
.mkt-pv-event strong {
  font-size: 14.5px;
  color: var(--ink);
}

.mkt-pv-face-stage {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-top: 4px;
}
.mkt-pv-face-frame {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 42%, #f4faf7 0%, #e5f0ea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mkt-pv-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--forest);
  border-style: solid;
  border-width: 0;
}
.mkt-pv-corner.is-tl { top: 10px; left: 10px; border-top-width: 2.5px; border-left-width: 2.5px; border-top-left-radius: 6px; }
.mkt-pv-corner.is-tr { top: 10px; right: 10px; border-top-width: 2.5px; border-right-width: 2.5px; border-top-right-radius: 6px; }
.mkt-pv-corner.is-bl { bottom: 10px; left: 10px; border-bottom-width: 2.5px; border-left-width: 2.5px; border-bottom-left-radius: 6px; }
.mkt-pv-corner.is-br { bottom: 10px; right: 10px; border-bottom-width: 2.5px; border-right-width: 2.5px; border-bottom-right-radius: 6px; }
.mkt-pv-face-avatar .ico {
  width: 54px;
  height: 54px;
  color: var(--forest);
}
.mkt-pv-face-check {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-teal);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(38, 166, 154, 0.35);
}
.mkt-pv-face-check .ico {
  width: 16px;
  height: 16px;
}
.mkt-pv-face-info {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
}
.mkt-pv-face-info p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* --- Section rhythm & headers ------------------------------------------- */

.mkt-section {
  padding: clamp(36px, 5.5vw, 68px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 18px;
}
.mkt-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.mkt-kicker {
  margin: 0 0 8px;
  font-size: calc(11.5px * var(--kicker-scale));
  font-weight: 700;
  letter-spacing: var(--kicker-track, 0.12em);
  text-transform: var(--kicker-case, uppercase);
  color: var(--clay);
}
.mkt-kicker.is-light {
  color: #f6d78a;
}
.mkt-sec-head h2,
.mkt-cta-copy h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: var(--ink);
}
.mkt-sec-lede {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.55;
}

/* --- Modular Capabilities Grid ------------------------------------------ */

.mkt-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mkt-module-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 22px 20px;
  box-shadow: 0 12px 30px rgba(48, 36, 22, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.mkt-module-card:hover {
  transform: translateY(-2px);
  border-color: #cfc3b2;
  box-shadow: 0 18px 38px rgba(48, 36, 22, 0.09);
}
.mkt-module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mkt-icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}
.mkt-icon-tile .ico {
  width: 21px;
  height: 21px;
}
.mkt-icon-tile.tone-coral { background: #fdece9; border-color: #f6ccc5; color: #c44737; }
.mkt-icon-tile.tone-forest { background: #e8f4ee; border-color: #c1ddce; color: var(--forest); }
.mkt-icon-tile.tone-teal { background: #e4f6f4; border-color: #b7e2dc; color: #19746b; }
.mkt-icon-tile.tone-violet { background: #eeecfa; border-color: #d1ccf0; color: var(--brand-violet); }
.mkt-icon-tile.tone-gold { background: #fcf3db; border-color: #eed89c; color: #8c6411; }
.mkt-icon-tile.tone-clay { background: var(--clay-soft); border-color: #e4c8c0; color: var(--clay); }

.mkt-module-card h3 {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.18;
  margin: 2px 0 0;
  color: var(--ink);
}
.mkt-module-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}
.mkt-tag-row {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mkt-mini-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

/* --- Role-based Workspaces ---------------------------------------------- */

.mkt-roles-wrap {
  display: grid;
  gap: 16px;
}
.mkt-role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mkt-role-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.mkt-role-tab:hover {
  background: #ffffff;
  color: var(--ink);
  border-color: #cfc3b2;
}
.mkt-role-tab.active {
  background: var(--forest);
  color: #fffaf3;
  border-color: var(--forest);
}
.mkt-role-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 5px solid var(--forest);
  border-radius: 22px;
  padding: clamp(22px, 3.5vw, 34px);
  box-shadow: var(--shadow);
}
.mkt-role-panel.is-forest { border-left-color: var(--forest); }
.mkt-role-panel.is-teal { border-left-color: var(--brand-teal); }
.mkt-role-panel.is-coral { border-left-color: var(--brand-coral); }
.mkt-role-panel.is-violet { border-left-color: var(--brand-violet); }

.mkt-role-kicker {
  display: inline-block;
  font-size: calc(11.5px * var(--kicker-scale));
  font-weight: 700;
  letter-spacing: var(--kicker-track, 0.1em);
  text-transform: var(--kicker-case, uppercase);
  color: var(--forest);
  margin-bottom: 8px;
}
.mkt-role-copy h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--ink);
}
.mkt-role-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.mkt-role-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.mkt-role-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
}
.mkt-check-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e8f4ee;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.mkt-check-badge .ico {
  width: 14px;
  height: 14px;
}

/* --- Trilingual & Trust Highlight Pair ---------------------------------- */

.mkt-highlight-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.mkt-card-forest,
.mkt-card-trust {
  border-radius: 24px;
  padding: clamp(26px, 3.6vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mkt-card-forest {
  background:
    radial-gradient(480px 260px at 100% 0%, rgba(246, 191, 60, 0.14), transparent 65%),
    linear-gradient(155deg, #1e4a38 0%, #153729 100%);
  color: #f7f3eb;
  box-shadow: 0 22px 46px rgba(21, 55, 41, 0.22);
}
.mkt-card-forest h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  margin: 0;
  color: #fffaf3;
}
.mkt-card-forest p {
  margin: 0;
  color: rgba(247, 243, 235, 0.86);
  font-size: 15.5px;
  line-height: 1.6;
}
.lang-switch-forest {
  margin-top: auto;
  padding-top: 8px;
  gap: 8px;
}
.lang-switch-forest .lang-btn {
  border-color: rgba(255, 250, 243, 0.34);
  color: #fffaf3;
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 15px;
  font-size: 14px;
}
.lang-switch-forest .lang-btn:hover {
  border-color: #fffaf3;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.lang-switch-forest .lang-btn.active {
  background: #fffaf3;
  border-color: #fffaf3;
  color: var(--forest);
}

.mkt-card-trust {
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mkt-card-trust h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}
.mkt-card-trust p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.mkt-trust-pills {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mkt-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.mkt-trust-pill .ico {
  width: 15px;
  height: 15px;
  color: var(--forest);
}

/* --- Free Tier Eligibility ---------------------------------------------- */

.mkt-free-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(26px, 3.8vw, 40px);
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(30, 74, 56, 0.08), transparent 65%),
    var(--paper-2);
  border: 1px solid rgba(30, 74, 56, 0.22);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mkt-free-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mkt-free-copy h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.14;
  margin: 0;
  color: var(--ink);
}
.mkt-free-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.62;
  max-width: 72ch;
}
.mkt-free-pills {
  margin-top: 0;
  padding-top: 2px;
}

/* --- Closing CTA & Footer ----------------------------------------------- */

.mkt-cta {
  padding-bottom: clamp(28px, 4vw, 48px);
}
.mkt-cta-card {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.mkt-cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-stripe);
}
.mkt-cta-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 52ch;
}
.mkt-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.mkt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
}
.mkt-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mkt-footer-logo {
  width: 36px;
  height: 36px;
  display: block;
}
.mkt-footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.mkt-footer-brand span {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
}
.mkt-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.mkt-footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}
.mkt-footer-links a:hover {
  color: var(--forest);
}

/* --- Responsive Breakpoints --------------------------------------------- */

@media (max-width: 1020px) {
  .mkt-hero,
  .mkt-role-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .mkt-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mkt-highlight-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .landing-page .mkt-nav-link {
    display: none;
  }
  .mkt-preview-tabs {
    flex-wrap: wrap;
  }
  .mkt-preview-tab {
    font-size: 12.5px;
    padding: 5px 11px;
  }
  .mkt-module-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mkt-pv-face-stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .mkt-pv-sheet-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .mkt-pv-meter {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mkt-btn-lg,
  .mkt-btn-lg .ico,
  .mkt-module-card,
  .mkt-preview-tab,
  .mkt-role-tab {
    transition: none;
  }
}

/* --- School Dashboard --------------------------------------------------- */

.dash-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-hero-main {
  flex: 1 1 320px;
  min-width: 0;
}

.dash-hero-chips {
  margin-bottom: 8px;
  gap: 6px;
  align-items: center;
}

.dash-hero-main h2 {
  margin: 0 0 4px;
}

.dash-hero-main > .meta {
  margin: 0;
}

.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dash-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e4c8c0;
  background: var(--clay-soft);
  color: var(--clay);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease;
}

.dash-alert-pill:hover {
  border-color: var(--clay);
  background: #efd5cb;
}

.dash-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  flex-shrink: 0;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
}

.dash-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
}

.dash-kpi-btn {
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.dash-kpi-btn:hover {
  border-color: var(--forest);
  box-shadow: 0 6px 18px rgba(30, 74, 56, 0.08);
}

.dash-kpi-label {
  font-size: calc(12px * var(--kicker-scale));
  font-weight: 700;
  letter-spacing: var(--kicker-track, 0.06em);
  text-transform: var(--kicker-case, uppercase);
  color: var(--ink-soft);
}

.dash-kpi-val {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
}

.dash-kpi-sub {
  font-size: 13px;
  line-height: 1.3;
}

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

.dash-card {
  margin: 0;
}

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

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

.dash-panel-head h3 {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
  margin: 0;
}

.dash-subhead {
  font-size: calc(12px * var(--kicker-scale));
  font-weight: 700;
  letter-spacing: var(--kicker-track, 0.06em);
  text-transform: var(--kicker-case, uppercase);
  color: var(--ink-soft);
  margin: 16px 0 8px;
}

.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
}

.dash-row-btn,
.dash-row-link {
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.dash-row-btn:hover,
.dash-row-link:hover {
  border-color: var(--forest);
  background: #f9f6ee;
}

.dash-row-main {
  flex: 1 1 auto;
  min-width: 0;
}

.dash-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.dash-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dash-time-badge {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  color: var(--forest);
  background: #eef6f2;
  border: 1px solid #b7d2c6;
  border-radius: 8px;
  padding: 4px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-att-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dash-att-nums {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.dash-att-nums strong {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}

.dash-att-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dash-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 14px;
}

.dash-progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--forest);
  transition: width 220ms ease;
}

.dash-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.dash-balance-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.dash-balance-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.dash-balance-tile strong {
  font-size: 17px;
  color: var(--ink);
}

.dash-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 8px;
}

.dash-people-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.dash-people-tile strong {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
}

.dash-children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.dash-child-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.dash-child-card > p {
  margin: 0;
}

.dash-child-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dash-child-head h4 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0;
}

.dash-child-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dash-child-actions {
  margin-top: 4px;
  gap: 8px;
}

.dash-att-filters {
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .dash-row {
    flex-direction: column;
    align-items: flex-start;
  }
}






