* {
  box-sizing: border-box;
}

/* Platform AI governance */
.ai-governance-panel {
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 92% 2%, color-mix(in srgb, var(--blue) 13%, transparent), transparent 28%),
    var(--panel);
}
.ai-governance-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 32px;
  border-bottom: 1px solid var(--border);
}
.ai-governance-hero > div:first-child { max-width: 740px; }
.ai-governance-hero h2 { margin: 4px 0 8px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.ai-governance-hero p:last-child { margin: 0; color: var(--muted); line-height: 1.65; }
.ai-governance-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-governance-content { display: grid; gap: 24px; padding: 28px 32px 34px; }
.ai-governance-loading,
.ai-governance-error {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 210px;
  color: var(--muted);
  text-align: center;
}
.ai-governance-window { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ai-governance-window span { font-weight: 800; }
.ai-governance-window small { color: var(--muted); }
.ai-governance-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: color-mix(in srgb, var(--panel) 92%, var(--blue) 8%); }
.ai-governance-metric { display: grid; gap: 6px; min-width: 0; padding: 20px; border-right: 1px solid var(--border); }
.ai-governance-metric:last-child { border-right: 0; }
.ai-governance-metric span { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ai-governance-metric strong { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.ai-governance-metric small { color: var(--muted); line-height: 1.4; }
.ai-governance-metric.is-attention { box-shadow: inset 0 3px #d99b2b; }
.ai-governance-metric.is-clear { box-shadow: inset 0 3px #22a06b; }
.ai-governance-systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ai-system-card { display: grid; align-content: start; gap: 18px; min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); box-shadow: 0 12px 30px rgba(24, 35, 52, .05); }
.ai-system-card header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.ai-system-card header p { margin: 0 0 3px; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ai-system-card h3 { margin: 0; font-size: 1.05rem; }
.ai-system-card header > b { padding: 6px 9px; border-radius: 999px; background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); font-size: .7rem; white-space: nowrap; }
.ai-system-card > p { margin: 0; color: var(--muted); line-height: 1.55; }
.ai-system-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(145deg, var(--blue), #7159d9); color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .04em; }
.governance-bars { display: grid; gap: 10px; }
.governance-bar-row { display: grid; grid-template-columns: 88px minmax(80px, 1fr) 52px; align-items: center; gap: 10px; font-size: .78rem; }
.governance-bar-row > span { color: var(--muted); font-weight: 700; }
.governance-bar-row > strong { text-align: right; }
.governance-bar { height: 8px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--muted) 14%, transparent); }
.governance-bar i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--bar-color); }
.ai-system-card footer { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: .76rem; line-height: 1.45; }
.governance-catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.governance-catalog-grid span { display: grid; gap: 2px; padding: 14px; border-radius: 13px; background: color-mix(in srgb, var(--blue) 7%, transparent); color: var(--muted); font-size: .78rem; }
.governance-catalog-grid strong { color: var(--text); font-size: 1.25rem; }
.governance-boundaries { display: grid; gap: 14px; }
.governance-boundaries > div:last-child { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.governance-boundaries article { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--panel) 95%, var(--blue) 5%); }
.governance-boundaries article span { color: var(--blue); font-size: .74rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.governance-boundaries article p { margin: 8px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.ai-governance-disclaimer { margin: 0; padding: 16px 18px; border-left: 4px solid #d99b2b; border-radius: 0 12px 12px 0; background: color-mix(in srgb, #d99b2b 9%, transparent); color: var(--muted); font-size: .82rem; line-height: 1.55; }
.ai-governance-disclaimer strong { color: var(--text); }
@media (max-width: 1120px) {
  .ai-governance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-governance-metric:nth-child(2n) { border-right: 0; }
  .ai-governance-metric:last-child { grid-column: 1 / -1; border-top: 1px solid var(--border); }
  .governance-boundaries > div:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ai-governance-hero { align-items: stretch; flex-direction: column; padding: 24px; }
  .ai-governance-actions > * { flex: 1; }
  .ai-governance-content { padding: 22px 20px 28px; }
  .ai-governance-window { align-items: flex-start; flex-direction: column; }
  .ai-governance-systems,
  .governance-boundaries > div:last-child { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ai-governance-metrics { grid-template-columns: 1fr; }
  .ai-governance-metric { border-right: 0; border-bottom: 1px solid var(--border); }
  .ai-governance-metric:last-child { grid-column: auto; border-bottom: 0; }
  .ai-system-card header { grid-template-columns: auto minmax(0, 1fr); }
  .ai-system-card header > b { grid-column: 1 / -1; justify-self: start; }
}

/* Public site */
.landing-page {
  background: var(--surface);
}

.landing-nav {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  width: min(1180px, calc(100% - 48px));
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

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

.landing-brand strong {
  font-size: 15px;
  letter-spacing: 0;
}

.landing-brand small {
  color: inherit;
  font-size: 11px;
  opacity: 0.7;
}

.landing-nav .landing-brand {
  color: #fff;
}

.landing-links {
  gap: 22px;
}

.landing-links a,
.landing-theme-toggle {
  color: #f4f8fa;
  font-size: 13px;
}

.landing-theme-toggle {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(7, 20, 33, 0.32);
}

.landing-hero {
  position: relative;
  display: flex;
  min-height: 620px;
  height: clamp(620px, 82svh, 760px);
  align-items: center;
  padding: 112px max(24px, calc((100% - 1180px) / 2)) 112px;
  background-image: linear-gradient(90deg, rgba(7, 20, 33, 0.96) 0%, rgba(7, 20, 33, 0.78) 46%, rgba(7, 20, 33, 0.18) 82%), url("/classroom-hero.png");
  background-position: center 46%;
}

.landing-hero-copy {
  width: min(650px, 100%);
}

.landing-hero-copy h1 {
  margin: 12px 0 18px;
  font-size: 64px;
  line-height: 1;
}

.landing-hero-copy p:not(.eyebrow) {
  max-width: 590px;
  font-size: 19px;
}

.hero-proof {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 32px;
  left: max(24px, calc((100% - 1180px) / 2));
  justify-content: space-between;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.landing-access-band,
.platform-band,
.pricing-section,
.landing-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.landing-access-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 90px;
  align-items: center;
  padding: 88px 0;
}

.access-copy {
  max-width: 660px;
}

.access-copy h2,
.section-intro h2,
.category-copy h2,
.classroom-copy h2 {
  margin: 8px 0 16px;
  font-size: 40px;
  line-height: 1.12;
}

.access-copy > p:last-of-type,
.section-intro > p:last-child,
.category-copy > p:last-child,
.classroom-copy > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.access-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 750;
}

.landing-signin {
  padding: 30px;
  box-shadow: var(--shadow);
}

.landing-signin h2 {
  font-size: 26px;
}

#landing-google-signin {
  min-height: 40px;
  margin-top: 14px;
}

.custom-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.signin-consent {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.signin-consent a { color: var(--accent-strong); font-weight: 700; }

.custom-google-login:hover,
.custom-google-login:focus-visible {
  border-color: var(--blue);
  outline: none;
}

.custom-google-login span {
  color: #4285f4;
  font-size: 18px;
  font-weight: 850;
}

.login-access-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.platform-band {
  padding: 86px 0 94px;
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 720px;
}

.policy-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.policy-levels article {
  min-height: 240px;
  padding: 28px 34px 32px 0;
}

.policy-levels article + article {
  padding-left: 34px;
  border-left: 1px solid var(--line-strong);
}

.policy-levels span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.policy-levels h3 {
  margin: 52px 0 10px;
  font-size: 25px;
}

.policy-levels p {
  color: var(--muted);
  line-height: 1.55;
}

.category-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 90px;
  align-items: center;
  padding: 88px max(24px, calc((100% - 1180px) / 2));
  background: #102934;
  color: #f4f8fa;
}

.category-copy .eyebrow {
  color: #7bd4c8;
}

.category-copy > p:last-child {
  color: #b9c9d1;
}

.category-index {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.category-index > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.category-index span {
  color: #9eb2bb;
  font-size: 13px;
}

.classroom-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  width: min(1180px, calc(100% - 48px));
  margin: 96px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.classroom-image {
  min-height: 510px;
  background-image: linear-gradient(rgba(7, 20, 33, 0.06), rgba(7, 20, 33, 0.06)), url("/classroom-hero.png");
  background-position: 68% center;
  background-size: cover;
}

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

.classroom-copy dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.classroom-copy dl div {
  display: grid;
  gap: 5px;
}

.classroom-copy dt {
  color: var(--accent);
  font-size: 20px;
  font-weight: 850;
}

.classroom-copy dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pricing-section {
  padding: 88px 0 96px;
  border-top: 1px solid var(--line);
}

.pricing-section .section-intro {
  margin-bottom: 40px;
}

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

.pricing-plan {
  min-height: 250px;
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
}

.landing-footer p {
  color: var(--muted);
  font-size: 13px;
}

.landing-footer > a:last-child {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

:root[data-theme="dark"] .landing-page {
  background: var(--bg);
}

:root[data-theme="dark"] .category-band {
  background: #0b252d;
}

@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-access-band,
  .category-band,
  .classroom-band {
    gap: 44px;
  }

  .classroom-copy {
    padding: 38px;
  }
}

@media (max-width: 760px) {
  .landing-nav {
    width: min(100% - 32px, 1180px);
    padding: 16px 0;
  }

  .landing-brand small,
  .landing-links > a:not(.landing-signin-link) {
    display: none;
  }

  .landing-links {
    gap: 8px;
  }

  .landing-theme-toggle,
  .landing-links .landing-signin-link {
    padding: 8px 9px;
    font-size: 12px;
  }

  .landing-hero {
    min-height: 620px;
    height: 88svh;
    padding: 96px 20px 116px;
    background-image: linear-gradient(90deg, rgba(7, 20, 33, 0.92), rgba(7, 20, 33, 0.56)), url("/classroom-hero.png");
    background-position: 58% center;
  }

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

  .landing-hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .hero-proof {
    right: 20px;
    bottom: 22px;
    left: 20px;
    display: grid;
    gap: 7px;
  }

  .landing-access-band,
  .platform-band,
  .pricing-section,
  .landing-footer,
  .classroom-band {
    width: min(100% - 32px, 1180px);
  }

  .landing-access-band {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 64px 0;
  }

  .access-copy h2,
  .section-intro h2,
  .category-copy h2,
  .classroom-copy h2 {
    font-size: 32px;
  }

  .platform-band {
    padding: 64px 0;
  }

  .policy-levels {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .policy-levels article,
  .policy-levels article + article {
    min-height: 0;
    padding: 24px 0;
    border-left: 0;
  }

  .policy-levels article + article {
    border-top: 1px solid var(--line-strong);
  }

  .policy-levels h3 {
    margin: 24px 0 8px;
  }

  .category-band {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 64px 20px;
  }

  .classroom-band {
    grid-template-columns: 1fr;
    margin-block: 64px;
  }

  .classroom-image {
    min-height: 280px;
  }

  .classroom-copy {
    padding: 30px 24px;
  }

  .classroom-copy dl {
    grid-template-columns: 1fr;
  }

  .pricing-section {
    padding: 64px 0;
  }

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

  .pricing-plan {
    min-height: 0;
  }

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

[hidden] {
  display: none !important;
}

:root {
  color-scheme: light;
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-muted: #f8fafb;
  --line: #dce3e8;
  --line-strong: #bcc9d3;
  --text: #16212b;
  --ink: #16212b;
  --muted: #647382;
  --accent: #16746a;
  --accent-strong: #0d4f48;
  --blue: #165cc7;
  --warning: #9a5b00;
  --danger: #b42318;
  --shadow: 0 20px 50px rgba(20, 35, 53, 0.09);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1419;
  --surface: #171e25;
  --surface-muted: #1d252d;
  --line: #303b45;
  --line-strong: #465460;
  --text: #edf3f7;
  --ink: #edf3f7;
  --muted: #9aabb8;
  --accent: #48b9a9;
  --accent-strong: #8ed8cd;
  --blue: #79a9f5;
  --warning: #f0b65b;
  --danger: #ff8e86;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Aptos, Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 160ms ease, color 160ms ease;
}

/* Classroom operations */
.operations-panel { min-width: 0; }
.operations-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.operations-metrics article { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-muted); }
.operations-metrics span, .operations-metrics small { display: block; color: var(--muted); font-size: 11px; }
.operations-metrics strong { display: block; margin: 4px 0 2px; overflow: hidden; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.operations-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.operations-workspace, .operations-actions, .operations-lower-grid > section, .support-layout > section, .technology-layout > section, .integration-section { min-width: 0; }
.operations-actions { display: grid; gap: 12px; }
.compact-heading { display: flex; min-height: 32px; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.compact-heading h3, .operations-actions h3, .support-layout h3 { margin: 0; font-size: 15px; }
.compact-heading span { color: var(--muted); font-size: 11px; }
.insight-window-label { display: flex; align-items: center; gap: 7px; }
.insight-window-label select { min-width: 88px; padding: 6px 24px 6px 8px; font-size: 11px; }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.device-card { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.device-card.is-offline { opacity: 0.72; }
.device-card-header, .device-card-status, .device-tab, .compact-list-item, .message-item { display: flex; align-items: center; gap: 9px; }
.device-card-header { justify-content: space-between; padding: 11px 12px; border-bottom: 1px solid var(--line); background: var(--surface-muted); }
.device-card-header > div { min-width: 0; }
.device-card-header strong, .device-card-header small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-card-header small { color: var(--muted); font-size: 11px; }
.presence-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--line-strong); }
.presence-dot.is-online { background: #1d9c72; box-shadow: 0 0 0 3px rgba(29,156,114,.13); }
.device-card-status { justify-content: space-between; padding: 9px 12px; color: var(--muted); font-size: 11px; }
.device-tabs { max-height: 170px; overflow: auto; border-top: 1px solid var(--line); }
.device-tab { min-width: 0; padding: 8px 10px 8px 12px; border-bottom: 1px solid var(--line); }
.device-tab:last-child { border-bottom: 0; }
.device-tab > div { min-width: 0; flex: 1; }
.device-tab strong, .device-tab small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-tab strong { font-size: 12px; }
.device-tab small { color: var(--muted); font-size: 10px; }
.device-tab button { width: 28px; height: 28px; flex: 0 0 28px; padding: 0; font-size: 16px; line-height: 1; }
.command-form, .support-form { display: grid; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-muted); }
.command-form label, .support-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.command-form textarea { min-height: 70px; resize: vertical; }
.scene-form > p { margin: -2px 0 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.scene-form textarea { min-height: 58px; }
.scene-form label small { font-weight: 500; line-height: 1.35; }
.scene-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scene-list, .compact-list, .message-feed { display: grid; gap: 7px; }
.scene-item, .compact-list-item, .message-item { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.scene-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
.scene-item small, .compact-list-item small, .message-item small { color: var(--muted); font-size: 10px; }
.scene-item button { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.operations-lower-grid { display: grid; grid-template-columns: 1.15fr .85fr 1fr; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.classroom-insight-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 9px; }
.classroom-insight-summary span { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-muted); }
.classroom-insight-summary strong, .classroom-insight-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classroom-insight-summary strong { font-size: 14px; }
.classroom-insight-summary small { margin-top: 2px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.message-item { align-items: flex-start; }
.message-item > div, .compact-list-item > div { min-width: 0; flex: 1; }
.message-item p { margin: 3px 0 0; font-size: 12px; line-height: 1.4; }
.inline-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-bottom: 9px; }
.support-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.support-layout > section { padding-right: 18px; border-right: 1px solid var(--line); }
.support-layout > section:last-child { padding-right: 0; border-right: 0; }
.support-form .wide-field { grid-column: 1 / -1; }
.technology-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.platform-coverage-section { margin: 4px 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.platform-coverage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.platform-coverage-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-muted); }
.platform-coverage-card > strong { display: block; margin-bottom: 9px; font-size: 13px; }
.platform-coverage-card > div { display: grid; gap: 7px; }
.platform-coverage-card span { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid var(--line); }
.platform-coverage-card b { min-width: 0; font-size: 12px; }
.platform-coverage-card small { color: var(--muted); font-size: 10px; text-align: right; }
.technology-device-row { grid-template-columns: 16px minmax(185px, 1.35fr) minmax(70px, .5fr) minmax(95px, .7fr) minmax(120px, .8fr) minmax(90px, .6fr); }
.integration-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.integration-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-muted); }
.integration-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.integration-card strong { font-size: 13px; }
.toggle-line { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.screen-record-controls { position: absolute; z-index: 2; top: 14px; left: 14px; display: flex; gap: 7px; }
.screen-annotation-controls { position: absolute; z-index: 3; top: 58px; left: 14px; display: flex; max-width: calc(100% - 28px); align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; background: rgba(7,20,33,.92); color: #f8fcff; box-shadow: 0 10px 24px rgba(0,0,0,.24); }
.screen-annotation-controls[hidden] { display: none; }
.screen-annotation-controls label { display: flex; align-items: center; gap: 6px; color: #dbe8eb; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.screen-annotation-controls input[type="color"] { width: 34px; height: 30px; padding: 2px; border-color: rgba(255,255,255,.3); background: transparent; }
.screen-annotation-controls input[type="range"] { width: 94px; }
.screen-annotation-controls span { color: #bcd0d5; font-size: 10px; }

@media (max-width: 1100px) {
  .operations-layout, .technology-layout { grid-template-columns: 1fr; }
  .operations-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-lower-grid, .support-layout { grid-template-columns: 1fr 1fr; }
  .support-layout > section { padding-right: 0; border-right: 0; }
}

@media (max-width: 760px) {
  .operations-metrics, .device-grid, .operations-actions, .operations-lower-grid, .support-layout, .integration-grid, .platform-coverage-grid { grid-template-columns: 1fr; }
  .technology-device-row { grid-template-columns: 16px minmax(0, 1fr) auto; }
  .technology-device-row > :nth-child(n + 4) { grid-column: 2 / -1; }
}

.landing-page {
  min-height: 100vh;
  background: var(--bg);
}

.landing-nav {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0;
}

.landing-nav .side-brand {
  border: 0;
  padding: 0;
}

.landing-links { display: flex; align-items: center; gap: 18px; }

.landing-links a {
  color: #f8fcff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.landing-links .landing-signin-link {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  color: #fff;
}

.landing-hero {
  display: grid;
  min-height: 700px;
  align-items: center;
  padding: 118px max(24px, calc((100% - 1240px) / 2)) 90px;
  background-image: linear-gradient(90deg, rgba(7, 20, 33, 0.94) 0%, rgba(7, 20, 33, 0.74) 43%, rgba(7, 20, 33, 0.16) 76%), url("/classroom-hero.png");
  background-position: center;
  background-size: cover;
}

.landing-hero-copy {
  max-width: 640px;
  color: #fff;
}

.landing-hero-copy .eyebrow {
  color: #9ee5d9;
}

.landing-hero-copy h1 {
  margin: 10px 0 16px;
  max-width: 600px;
  font-size: 58px;
  line-height: 1.02;
  font-weight: 760;
}

.landing-hero-copy p:not(.eyebrow) {
  max-width: 520px;
  color: #d9e4ea;
  font-size: 18px;
  line-height: 1.55;
}

.button.landing-cta {
  display: inline-flex;
  margin-top: 24px;
  background: #d6fb62;
  color: #123239;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 24px; }
.button.landing-cta { margin-top: 0; }
.hero-text-link { color: #fff; font-size: 14px; font-weight: 750; text-decoration: none; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 52px; color: #d6e4e8; font-size: 12px; font-weight: 700; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof span::before { width: 5px; height: 5px; border-radius: 50%; background: #d6fb62; content: ""; }

.landing-content {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 64px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 74px 0 88px;
}

.landing-signin {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(20, 35, 53, 0.08);
}

.landing-signin form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.pricing-section h2 {
  margin: 6px 0 18px;
  font-size: 32px;
  font-weight: 760;
}

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

.pricing-plan {
  width: 100%;
  min-height: 230px;
  color: var(--ink);
  text-align: left;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pricing-plan:hover,
.pricing-plan:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(31, 111, 104, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.pricing-plan > span,
.pricing-plan small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pricing-plan strong {
  display: block;
  margin: 16px 0 3px;
  font-size: 30px;
}

.pricing-plan p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pricing-plan .pricing-plan-access {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.pricing-plan-access i {
  color: var(--accent-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.pricing-plan-access em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.pricing-plan b {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
}

.pricing-plan.is-selected {
  border-color: #1a8377;
  box-shadow: 0 16px 36px rgba(22, 116, 106, 0.14);
}

.screen-block-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 7px; margin-top: 12px; }
.screen-block-controls select { min-width: 0; padding: 8px; font-size: 12px; }
.screen-block-controls button { padding: 8px 10px; font-size: 12px; }

.plan-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.plan-summary strong { color: var(--accent); }
.plan-summary span { flex: 1; color: var(--muted); font-size: 14px; }
.plan-summary a { color: var(--accent); font-size: 14px; font-weight: 800; text-decoration: none; }

.ai-roadmap {
  display: grid;
  grid-template-columns: minmax(180px, .85fr) 1fr;
  gap: 16px 28px;
  align-items: end;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.ai-roadmap h3 { margin: 5px 0 0; font-size: 20px; }
.ai-roadmap p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; }
.ai-roadmap-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-roadmap-list span { padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--accent-strong); background: var(--surface-muted); font-size: 13px; font-weight: 700; }

.app-frame {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 14px;
  background: #102934;
  color: #d9e7ee;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-brand strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.side-brand span {
  display: block;
  margin-top: 2px;
  color: #9eb2bf;
  font-size: 12px;
}

.side-nav {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}

.side-nav a,
.side-nav-item,
.class-nav summary {
  width: 100%;
  padding: 10px 12px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: #c9d9e2;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.side-nav a:hover,
.side-nav a.active,
.side-nav-item:hover,
.side-nav-item.active,
.class-nav summary:hover {
  background: rgba(143, 212, 203, 0.13);
  color: #fff;
}

.class-nav {
  border-radius: 6px;
}

.class-nav summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

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

.class-nav summary span {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #dceef6;
  font-size: 11px;
  text-align: center;
}

.class-nav[open] {
  background: rgba(255, 255, 255, 0.04);
}

.class-list-nav {
  display: grid;
  gap: 2px;
  padding: 2px 6px 8px 24px;
}

.class-list-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #aec4d0;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.class-list-nav button small {
  min-width: 20px;
  color: #8facba;
  font-size: 11px;
  text-align: right;
}

.class-list-nav button.active small,
.class-list-nav button:hover small {
  color: #dceef6;
}

.class-list-nav button:hover,
.class-list-nav button.active {
  background: rgba(143, 212, 203, 0.13);
  color: #fff;
}

.admin-only {
  display: none;
}

.super-admin-only {
  display: none;
}

.district-only {
  display: none !important;
}

body:not(.is-district-admin) #districtDashboard {
  display: none !important;
}

#classNav[hidden] {
  display: none !important;
}

body.is-admin .teacher-only,
body.is-admin .class-nav {
  display: none;
}

body.is-admin .admin-only {
  display: block;
}

body.is-super-admin .teacher-only,
body.is-super-admin .admin-only,
body.is-super-admin .class-nav {
  display: none;
}

body.is-super-admin .side-nav-item:not(.super-admin-only) {
  display: none;
}

body.is-super-admin .super-admin-only {
  display: block;
}

body.is-district-admin .teacher-only,
body.is-district-admin .admin-only,
body.is-district-admin .super-admin-only,
body.is-district-admin .class-nav {
  display: none;
}

body.is-district-admin .side-nav-item:not(.district-only) {
  display: none;
}

body.is-district-admin .district-only {
  display: block !important;
}

.side-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px;
  color: #b7c9d4;
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #45d483;
  box-shadow: 0 0 0 4px rgba(69, 212, 131, 0.14);
}

.app-shell {
  width: min(1400px, calc(100% - 56px));
  margin: 32px auto 56px;
}

body.is-admin .sidebar { background: #16264a; }
body.is-admin .metrics article::before { background: #3869d6; }
body.is-super-admin .sidebar { background: #30203b; }
body.is-super-admin .metrics article::before { background: #9b4d9e; }
body.is-district-admin .sidebar { background: #173b36; }
body.is-district-admin .metrics article::before { background: #15937f; }
body.is-admin .topbar { border-top: 3px solid #3869d6; }
body.is-super-admin .topbar { border-top: 3px solid #9b4d9e; }
body.is-district-admin .topbar { border-top: 3px solid #15937f; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.theme-toggle {
  white-space: nowrap;
}

.landing-theme-toggle {
  width: auto;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(8, 25, 36, 0.28);
  color: #fff;
  box-shadow: none;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }

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

.page-title {
  min-width: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  font-weight: 760;
  line-height: 1.15;
}

h2 {
  font-size: 18px;
  line-height: 1.25;
}

#subtitle {
  color: var(--muted);
  margin-top: 4px;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel,
.metrics article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(20, 35, 53, 0.045);
}

.panel {
  padding: 24px;
  margin-bottom: 20px;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 16px;
  align-items: stretch;
}

.login-copy {
  min-height: 260px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #102a3a;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-copy .eyebrow {
  color: #8fd4cb;
}

.login-copy h2 {
  font-size: 30px;
  margin: 8px 0;
}

.login-copy p:not(.eyebrow) {
  max-width: 560px;
  color: #d7e2ea;
  line-height: 1.55;
}

.auth-panel {
  margin: 0;
}

.auth-panel form {
  display: grid;
  gap: 12px;
}

#google-signin,
#landing-google-signin { display: block; width: 100%; min-height: 44px; margin-top: 18px; overflow: visible; }
#google-signin > div,
#landing-google-signin > div { max-width: 100%; }

.school-settings { margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-muted); }
.school-settings .row { margin-bottom: 12px; }
.school-settings-fields { display: grid; grid-template-columns: 120px 110px minmax(130px, 1fr) minmax(180px, 1.2fr) minmax(170px, 1fr) auto; gap: 8px; }
.school-settings-fields input, .school-settings-fields select, .school-settings-fields button { margin: 0; }
.school-settings-summary { align-items: center; }
.school-access-toggle { margin-left: auto; white-space: nowrap; }
.school-access-toggle.school-access-unused { border-color: var(--warning); color: var(--warning); }
.school-access-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1px;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}
.school-access-details[hidden] { display: none; }
.school-access-details > div { display: grid; gap: 4px; min-width: 0; padding: 12px; background: var(--surface); }
.school-access-details small, .school-access-details span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.school-access-details strong { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .school-access-details { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}
@media (max-width: 620px) {
  .school-access-toggle { width: 100%; margin-left: 0; }
  .school-access-details { grid-template-columns: 1fr; }
}
.rank-number { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--surface-muted); color: var(--accent-strong); font-size: 12px; }

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

.metrics article {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 20px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.metrics article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.metrics article:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(20, 35, 53, 0.08);
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 27px;
  line-height: 1.1;
}

.metrics article small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.teacher-overview {
  display: grid;
  gap: 22px;
}

.overview-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--line);
}

.overview-header h2 {
  margin-top: 5px;
  font-size: 24px;
}

.overview-header > div:first-child > p:last-child {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.overview-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.overview-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.overview-metrics article {
  min-height: 128px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px 28px;
}

.overview-classes-section {
  grid-row: span 2;
}

.overview-section {
  min-width: 0;
  border-top: 2px solid var(--line-strong, var(--line));
}

.overview-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.overview-section-heading h3 {
  margin-top: 2px;
  font-size: 15px;
}

.text-button {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  box-shadow: none;
  font-size: 12px;
}

.text-button:hover {
  background: transparent;
  text-decoration: underline;
}

.overview-class-list,
.overview-live-list,
.overview-activity-list {
  display: grid;
}

.overview-class-row,
.overview-live-row {
  display: grid;
  width: 100%;
  min-height: 61px;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  text-align: left;
}

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

.overview-live-row {
  grid-template-columns: 9px minmax(0, 1fr) auto;
}

.overview-class-row:hover,
.overview-live-row:hover {
  padding-inline: 8px;
  background: var(--surface-muted);
}

.overview-class-row span:first-child,
.overview-live-row span:nth-child(2),
.overview-activity-row > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.overview-class-row strong,
.overview-live-row strong,
.overview-activity-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.overview-class-row small,
.overview-live-row small,
.overview-activity-row small,
.overview-live-row time,
.overview-activity-row time,
.overview-row-value {
  color: var(--muted);
  font-size: 12px;
}

.overview-row-value,
.overview-live-row time,
.overview-activity-row time {
  white-space: nowrap;
}

.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.presence-dot.is-live {
  background: #15937f;
  box-shadow: 0 0 0 3px rgba(21, 147, 127, 0.12);
}

.overview-activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 57px;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
}

.overview-account-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-heading > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section-heading.compact {
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.status-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.status-pill.is-live {
  background: var(--surface-muted);
  color: var(--accent-strong);
}

.status-pill.is-saving {
  background: #eef4ff;
  color: var(--blue);
}

.status-pill.is-error {
  background: #fff0ed;
  color: var(--danger);
}

label {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  font-weight: 700;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 12px 0;
  padding: 12px;
  background: var(--surface-muted);
}

legend {
  color: var(--text);
  font-weight: 700;
  padding: 0 5px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin: 8px 0;
}

.check input {
  width: auto;
}

.compact-check { align-self: center; margin: 0; white-space: nowrap; }

small {
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 9px 10px;
  font: 14px Arial, sans-serif;
  background: var(--surface);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(31, 111, 104, 0.16);
  border-color: var(--accent);
}

textarea {
  min-height: 70px;
  resize: vertical;
}

button {
  border: 0;
  border-radius: 7px;
  padding: 10px 14px;
  background: #165cc7;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 92, 199, 0.2);
}

button:hover {
  filter: brightness(0.96);
}

button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

button.danger-button {
  background: var(--danger);
  box-shadow: 0 6px 14px rgba(180, 35, 24, 0.16);
}

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

.ops-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 16px;
  margin-bottom: 16px;
}

.ops-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
}

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

.ops-list span {
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
}

.ops-list strong {
  font-size: 14px;
}

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

.license-meter {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #edf2f7;
}

.license-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transition: width 180ms ease;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.class-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.class-card details,
.group-card details {
  display: grid;
}

.class-card summary,
.group-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.class-card summary::-webkit-details-marker,
.group-card summary::-webkit-details-marker {
  display: none;
}

.class-card summary::before,
.group-card summary::before {
  content: ">";
  color: var(--muted);
  font-weight: 800;
  transform: rotate(0deg);
  transition: transform 140ms ease;
}

.class-card details[open] summary::before,
.group-card details[open] summary::before {
  transform: rotate(90deg);
}

.class-card summary > span:first-child,
.group-card summary > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.class-card summary strong,
.group-card summary strong {
  font-size: 16px;
}

.dropdown-panel {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.class-folder-body {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.class-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.class-card .class-section > summary {
  min-height: 48px;
  padding: 10px 12px;
  background: var(--surface);
}

.class-card .class-section > summary > span:first-of-type {
  font-weight: 750;
}

.class-card .class-section > summary > small {
  margin-left: auto;
  color: var(--muted);
}

.class-card .class-section > summary::before {
  transform: rotate(0deg);
}

.class-card .class-section[open] > summary::before {
  transform: rotate(90deg);
}

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

.class-basics {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.policy-template-picker {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) max-content minmax(260px, 1fr);
  align-items: end;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}

.policy-template-picker label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.policy-template-picker small {
  align-self: center;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.class-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 0.35fr) minmax(120px, 0.35fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

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

.class-student-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(150px, auto);
  align-items: center;
  gap: 14px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.class-student-row:last-child { border-bottom: 0; }
.class-student-row > div { min-width: 0; }
.class-student-row strong,
.class-student-row small { display: block; }
.class-student-row small { color: var(--muted); }

.panel-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

.category-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.category-option select { width: 100%; }
.category-option select:disabled { cursor: not-allowed; opacity: 0.78; }

.category-option.is-locked {
  border-color: #e6c987;
  background: #fff9ec;
}

.category-text {
  display: grid;
  gap: 3px;
}

.category-title {
  font-weight: 700;
}

.category-description { color: var(--muted); line-height: 1.35; }

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

.group-builder {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.group-form,
.group-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.group-form {
  padding: 14px;
}

.group-form {
  position: sticky;
  top: 18px;
}

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

.wide-field {
  grid-column: 1 / -1;
}

.inline-filter {
  min-width: 220px;
  margin: 0;
  text-align: left;
}

.class-filter {
  max-width: 260px;
  margin-bottom: 14px;
}

.join-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding-top: 12px;
}

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

.screen-class-section + .screen-class-section {
  margin-top: 24px;
}

.screen-class-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 15px;
}

.screen-class-section h3 span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.screen-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(20, 35, 53, 0.045);
  cursor: zoom-in;
}

.screen-shot {
  aspect-ratio: 16 / 9;
  background: #17212b;
  border-bottom: 1px solid var(--line);
}

.screen-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: #cbd5df;
  font-weight: 700;
}

.screen-body {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.screen-body strong,
.screen-body small {
  display: block;
}

.screen-body p {
  min-height: 34px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
}

.screen-url {
  display: block;
  max-width: 100%;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

code.screen-url {
  color: var(--muted);
}

.screen-modal {
  position: fixed;
  inset: 24px;
  z-index: 20;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(20, 35, 53, 0.28);
}

.screen-modal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111827;
  border-radius: 6px;
}

.screen-image-stage {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #111827;
}

.screen-image-stage > img,
.screen-image-stage > canvas,
.screen-image-stage > .modal-capture-status {
  grid-area: 1 / 1;
}

.screen-image-stage > canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.screen-image-stage > canvas[hidden] {
  display: none;
}

.screen-modal.is-annotating .screen-image-stage {
  outline: 2px solid #ffde59;
  outline-offset: -2px;
}

.modal-capture-status {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.modal-capture-status[hidden] {
  display: none;
}

.screen-modal > div {
  display: grid;
  gap: 4px;
}

.screen-modal > .screen-record-controls,
.screen-modal > .screen-annotation-controls {
  display: flex;
}

.screen-modal > .screen-annotation-controls[hidden] {
  display: none;
}

.screen-modal-block-controls {
  grid-template-columns: minmax(140px, 1fr) auto auto;
  align-items: center;
  margin-top: 8px;
}

.screen-current-url {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.modal-close {
  justify-self: end;
}

.table {
  display: grid;
  gap: 8px;
}

.row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(92px, 0.7fr));
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  overflow-wrap: anywhere;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(20, 35, 53, 0.025);
}

.row strong {
  font-size: 14px;
}

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

.badge {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.badge.good {
  background: #e8f4f1;
  color: var(--accent-strong);
}

.badge.warn {
  background: #fff5db;
  color: var(--warning);
}

.badge.danger {
  background: #fff0ed;
  color: var(--danger);
}

.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.activity-grid .panel {
  margin: 0;
}

.activity-grid .wide {
  grid-column: 1 / -1;
}

.visit-student {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.visit-student + .visit-student {
  margin-top: 7px;
}

.visit-student summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.visit-student summary::-webkit-details-marker {
  display: none;
}

.visit-student summary span {
  color: var(--muted);
  font-size: 12px;
}

.visit-student[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.visit-list {
  display: grid;
}

.visit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 70px 132px;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.visit-row:last-child {
  border-bottom: 0;
}

.visit-host {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-link {
  display: block;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-status:empty {
  min-height: 1px;
}

.visit-row time {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.history-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
}

.history-actions small,
.student-membership-heading small,
.student-class-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.student-trend-report {
  display: grid;
  gap: 16px;
  margin: 4px 0 20px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-muted);
}

.student-trend-heading,
.student-trend-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.student-trend-heading > div { justify-content: flex-start; }
.student-trend-heading span,
.student-trend-heading small { color: var(--muted); font-size: 10px; }
.student-trend-heading > small { max-width: 440px; line-height: 1.45; text-align: right; }

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

.student-trend-windows article {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.student-trend-windows article > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.student-trend-windows article > strong { font-size: 20px; }
.student-trend-windows article > div { display: flex; flex-wrap: wrap; gap: 5px 10px; }
.student-trend-windows small { color: var(--muted); font-size: 10px; }

.student-trend-columns {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

.student-weekly-trend,
.student-host-trends { display: grid; }

.student-week-row {
  display: grid;
  grid-template-columns: 64px minmax(80px, 1fr) 36px 62px;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.student-week-row time,
.student-week-row small { color: var(--muted); }
.student-week-row strong,
.student-week-row small { text-align: right; }
.student-week-bar { height: 7px; overflow: hidden; border-radius: 99px; background: var(--line); }
.student-week-bar i { display: block; min-width: 2px; height: 100%; border-radius: inherit; background: var(--accent); }

.student-host-trends > div {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.student-host-trends > div > span { min-width: 0; }
.student-host-trends strong,
.student-host-trends small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-host-trends strong { font-size: 11px; }
.student-host-trends small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.student-host-trends b { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.student-host-trends b.is-up { color: var(--warning); }
.student-host-trends b.is-down { color: var(--success); }

.investigation-panel {
  display: grid;
  gap: 18px;
}

.investigation-boundary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.investigation-boundary strong {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 12px;
}

.investigation-boundary span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.investigation-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.investigation-filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.investigation-host-filter { grid-column: span 2; }

.investigation-filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.investigation-summary {
  display: grid;
  gap: 12px;
}

.investigation-scope {
  display: flex;
  align-items: center;
  gap: 10px;
}

.investigation-scope strong {
  color: var(--accent-strong);
  font-size: 11px;
  text-transform: uppercase;
}

.investigation-scope span,
.investigation-summary > p {
  color: var(--muted);
  font-size: 11px;
}

.investigation-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.investigation-metrics article {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.investigation-metrics span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.investigation-metrics strong { align-self: end; font-size: 20px; }

.investigation-result-row {
  grid-template-columns: minmax(140px, .9fr) minmax(220px, 1.5fr) auto 80px 120px;
}

.investigation-result-row > span,
.investigation-result-row time { min-width: 0; }
.investigation-student strong,
.investigation-student small,
.investigation-website strong,
.investigation-website small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.investigation-student small,
.investigation-website small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.investigation-activity { width: fit-content; padding: 4px 7px; border-radius: 99px; background: var(--surface-muted); color: var(--muted); font-size: 10px; font-weight: 800; }
.investigation-activity.is-blocked { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.investigation-activity.is-flagged { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); color: var(--warning); }
.investigation-result-row time { color: var(--muted); font-size: 11px; text-align: right; }

.investigation-audit {
  display: grid;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.investigation-audit-row { grid-template-columns: minmax(0, 1fr) 90px 150px; }
.investigation-audit-row span strong,
.investigation-audit-row span small { display: block; }
.investigation-audit-row span small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.investigation-audit-row b,
.investigation-audit-row time { color: var(--muted); font-size: 11px; text-align: right; }

@media (max-width: 900px) {
  .investigation-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .investigation-host-filter { grid-column: span 1; }
  .investigation-filter-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .investigation-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .investigation-result-row { grid-template-columns: minmax(0, 1fr) auto; }
  .investigation-result-row .investigation-website { grid-column: 1 / -1; grid-row: 2; }
  .investigation-result-row .investigation-activity { grid-column: 2; grid-row: 1; }
  .investigation-result-row .muted,
  .investigation-result-row time { text-align: left; }
}

@media (max-width: 620px) {
  .investigation-boundary,
  .investigation-scope { flex-direction: column; }
  .investigation-filter-grid { grid-template-columns: 1fr; }
  .investigation-filter-actions { flex-direction: column; align-items: stretch; }
  .investigation-filter-actions button { width: 100%; }
  .investigation-audit-row { grid-template-columns: 1fr; }
  .investigation-audit-row b,
  .investigation-audit-row time { text-align: left; }
}

.student-class-results:not(:empty) {
  margin-bottom: 18px;
}

.student-membership-heading,
.student-class-row,
.student-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.student-membership-heading {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--surface-muted);
}

.student-membership-heading > span,
.student-history-heading > span {
  color: var(--muted);
  font-size: 12px;
}

.student-class-list {
  border: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
}

.student-class-row {
  min-height: 56px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
}

.student-class-row:last-child { border-bottom: 0; }

.student-history-heading {
  margin-top: 18px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}

.student-directory-heading {
  margin-top: 20px;
}

.lookup-form,
.category-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

.student-picker {
  position: relative;
  min-width: 0;
}

.student-picker input {
  width: 100%;
}

.student-matches {
  position: absolute;
  z-index: 4;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(20, 31, 43, 0.15);
}

.student-matches button {
  display: grid;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.student-matches button:last-child { border-bottom: 0; }
.student-matches button:hover { background: var(--surface-muted); }
.student-matches span { color: var(--muted); font-size: 12px; }

.category-form {
  grid-template-columns: minmax(160px, 0.8fr) minmax(150px, 0.6fr) auto minmax(220px, 1.5fr) auto;
}

.category-form textarea {
  min-height: 42px;
}

.site-list-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.site-list-form textarea {
  min-height: 116px;
}

.site-list-form label {
  display: grid;
  gap: 7px;
}

.site-list-form label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.category-catalog {
  display: grid;
  gap: 8px;
}

.category-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
}

.category-choice-row {
  grid-template-columns: minmax(220px, 1fr) minmax(130px, 180px);
}

.category-select-label {
  display: grid;
  gap: 5px;
}

.category-select-label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

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

.category-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
}

.toggle-control input {
  position: absolute;
  opacity: 0;
}

.toggle-control span {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: #c8d0da;
  transition: background 160ms ease;
}

.toggle-control span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.toggle-control input:checked + span { background: var(--accent); }
.toggle-control input:checked + span::after { transform: translateX(16px); }
.toggle-control input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.plan-create-form,
.plan-catalog {
  display: grid;
  gap: 12px;
}

.plan-create-form {
  grid-template-columns: minmax(180px, 0.8fr) minmax(150px, 0.45fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
  align-items: end;
  margin-bottom: 20px;
}

.plan-create-form textarea,
.plan-dropdown textarea {
  min-height: 70px;
}

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

.plan-dropdown {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
}

.plan-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

.plan-dropdown summary::-webkit-details-marker { display: none; }
.plan-dropdown summary span:first-child { display: grid; gap: 3px; }
.plan-dropdown summary small { color: var(--muted); }

.plan-dropdown form {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.teacher-access-row {
  grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.3fr) auto auto;
}

.admin-row {
  grid-template-columns: 28px minmax(180px, 1fr) auto minmax(190px, 0.75fr);
}

.activity-site-name { min-width: 0; }
.activity-site-name strong,
.activity-site-name small { display: block; }
.activity-site-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-site-name small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.admin-row .badge { white-space: nowrap; }

.district-school-row {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.district-school-row:last-child { border-bottom: 0; }

.deployment-details,
.report-status {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.deployment-details {
  display: block;
  max-width: 920px;
}

.deployment-scope-note {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--blue) 32%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--blue) 6%, var(--surface));
}

.deployment-scope-note strong { font-size: 14px; }
.deployment-scope-note span { color: var(--muted); font-size: 12px; line-height: 1.55; }

.deployment-channel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.deployment-channel {
  min-width: 0;
  padding: 20px 24px 20px 0;
}

.deployment-channel + .deployment-channel {
  padding-right: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.deployment-channel h3 {
  margin: 3px 0 12px;
  font-size: 18px;
}

.deployment-channel .deployment-line {
  grid-template-columns: 92px minmax(0, 1fr);
}

.deployment-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 6px;
}

.deployment-target {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.deployment-target header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deployment-target header span {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.deployment-target header b {
  color: var(--accent-strong);
  font-size: 10px;
}

.deployment-target > strong { font-size: 14px; }
.deployment-target > small { color: var(--muted); line-height: 1.45; }
.deployment-target > div { display: flex; flex-wrap: wrap; gap: 6px; }
.deployment-target a { padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--blue); font-size: 11px; font-weight: 750; }

.extension-build-form {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin-bottom: 20px;
}

.extension-build-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.extension-build-form textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  font: 13px/1.55 Consolas, "Courier New", monospace;
}

.extension-build-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.extension-build-actions span {
  color: var(--muted);
  font-size: 13px;
}

.deployment-line {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.deployment-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.deployment-line code,
.deployment-line a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.deployment-line a {
  color: var(--blue);
  font-weight: 700;
}

.deployment-subheading {
  margin: 28px 0 7px;
  font-size: 17px;
}

.deployment-instruction,
.deployment-footnote {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.deployment-instruction { margin: 0 0 8px; }
.deployment-footnote { margin: 12px 0 0; font-size: 12px; }

@media (max-width: 760px) {
  .extension-build-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .deployment-channel-list {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .deployment-channel,
  .deployment-channel + .deployment-channel {
    padding: 18px 0;
    border-left: 0;
  }

  .deployment-channel + .deployment-channel {
    border-top: 1px solid var(--line);
  }

  .deployment-line {
    grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
  }
}

.platform-category-form {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 16px;
  max-width: 920px;
  margin-bottom: 26px;
}

.platform-category-form label { display: grid; align-content: start; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.platform-category-form .wide-field { grid-row: span 2; }
.platform-category-form textarea { min-height: 124px; resize: vertical; }
.platform-category-form button { align-self: start; }
.platform-category-form > span { color: var(--muted); font-size: 12px; }

.service-status-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); gap: 22px; margin-top: 22px; }
.status-admin-list { display: grid; gap: 9px; }
.status-admin-service { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-muted); }
.status-admin-service div, .status-admin-incident .compact-heading > div { display: grid; gap: 4px; }
.status-admin-service small, .status-admin-incident small { color: var(--muted); }
.status-service-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding-top: 6px; }
.status-incident-form textarea, .status-update-form textarea { min-height: 84px; resize: vertical; }
.status-incidents-admin { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.status-admin-incident { padding: 16px 0; border-top: 1px solid var(--line); }
.status-admin-incident:first-of-type { border-top: 0; }
.status-update-history p { margin: 8px 0; line-height: 1.5; }
.status-update-history p strong { margin-right: 5px; text-transform: capitalize; }
.status-update-history p small { margin-left: 6px; }
.status-update-form { grid-template-columns: 180px minmax(0, 1fr) auto; align-items: end; margin-top: 12px; }
.billing-automation-bar { display: flex; align-items: center; gap: 14px; margin: 16px 0; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-muted); }
.billing-automation-bar span, .invoice-delivery { color: var(--muted); font-size: 12px; }
.invoice-estimate { display: grid; gap: 5px; padding: 13px; border-left: 4px solid var(--accent); background: var(--surface-muted); }
.invoice-estimate span, .invoice-estimate small { color: var(--muted); }
.invoice-create-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.purchase-order-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.purchase-order-control button { white-space: nowrap; }
.billing-restriction-banner { margin: 0 0 16px; padding: 13px 16px; color: #7e1722; border: 1px solid #e7a5ad; border-radius: 7px; background: #fff0f2; font-weight: 700; }
.platform-review-row { grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.5fr) auto auto; }
.platform-review-row > div { display: grid; gap: 3px; }
.platform-review-row small { color: var(--muted); }
.platform-review-row a { min-width: 0; overflow: hidden; color: var(--blue); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.review-queue-section + .review-queue-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.unknown-site-review-row { grid-template-columns: minmax(180px, .8fr) minmax(220px, 1.4fr) minmax(170px, .65fr) auto; }
.unknown-site-review-row > div { display: grid; gap: 3px; }
.unknown-site-review-row small { color: var(--muted); }
.unknown-site-review-row a { min-width: 0; overflow: hidden; color: var(--blue); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.unknown-site-review-row label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 750; }

.email-monitor-beta { display: grid; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line); }
.extension-build-form .email-monitor-beta .check { display: flex; align-items: center; gap: 9px; width: fit-content; margin: 0; }
.extension-build-form .email-monitor-beta .check input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--accent); }
.email-monitor-beta > p { max-width: 720px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.email-monitor-beta > div { display: flex; align-items: center; gap: 12px; }
.email-monitor-beta > div span { color: var(--muted); font-size: 12px; }

@media (max-width: 720px) {
  .platform-category-form { grid-template-columns: 1fr; }
  .platform-category-form .wide-field { grid-row: auto; }
  .service-status-layout { grid-template-columns: 1fr; }
  .status-update-form { grid-template-columns: 1fr; }
  .status-service-choices { grid-template-columns: 1fr; }
  .platform-review-row { grid-template-columns: 1fr; }
  .unknown-site-review-row { grid-template-columns: 1fr; }
}

/* Intelligence, assessment, and district operations */
.feature-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: start;
}

.school-entitlements {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.school-feature-mode {
  margin: 12px 0 4px;
}

.plan-feature-fieldset {
  min-width: 0;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.plan-feature-fieldset legend {
  padding: 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

[data-plan-form] .plan-feature-fieldset {
  grid-column: 1 / -1;
}

.school-entitlements > summary {
  display: flex;
  padding: 15px 4px 8px;
  cursor: pointer;
}

.school-entitlements > summary span,
.school-feature-card span {
  display: grid;
  gap: 3px;
}

.school-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 12px 0;
}

.school-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.school-feature-card input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.school-feature-card small,
.school-entitlements summary small {
  color: var(--muted);
  line-height: 1.4;
}

.school-billing-fields,
.invoice-create-form,
.invoice-edit-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
}

.school-billing-fields label,
.invoice-create-form label,
.invoice-edit-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.school-billing-fields .wide-field,
.invoice-create-form .wide-field,
.invoice-edit-form .wide-field {
  grid-column: 1 / -1;
}

.invoice-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.invoice-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.invoice-card > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  cursor: pointer;
}

.invoice-card > summary > span:first-child {
  display: grid;
  gap: 4px;
}

.invoice-line-items {
  display: grid;
  gap: 7px;
  padding: 0 16px 14px;
}

.invoice-line-items > div,
.invoice-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.invoice-edit-form {
  margin: 0 16px 16px;
}

@media (max-width: 900px) {
  .school-feature-grid,
  .school-billing-fields,
  .invoice-create-form,
  .invoice-edit-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .school-feature-grid,
  .school-billing-fields,
  .invoice-create-form,
  .invoice-edit-form,
  .invoice-card > summary {
    grid-template-columns: 1fr;
  }
}

.feature-form {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.request-list,
.trust-card-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.access-request-card,
.trust-card {
  display: grid;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.access-request-card:first-child,
.trust-card:first-child {
  border-top: 0;
}

.trust-card-header,
.request-card-header,
.trust-card-metrics,
.request-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-card-header div,
.request-card-header div {
  min-width: 0;
}

.trust-card-header strong,
.request-card-header strong {
  display: block;
  overflow-wrap: anywhere;
}

.trust-card-header small,
.request-card-header small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.trust-card-metrics {
  justify-content: flex-start;
}

.trust-score {
  min-width: 72px;
  font-size: 24px;
  font-weight: 800;
}

.trust-evidence,
.trust-dependencies {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.trust-evidence code,
.trust-dependencies code {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
}

.request-actions select,
.request-actions input {
  width: auto;
  min-width: 110px;
}

@media (max-width: 900px) {
  .feature-workspace {
    grid-template-columns: 1fr;
  }
}

.guide-page { width: min(760px, calc(100% - 40px)); margin: 80px auto; }
.guide-page h1 { margin: 8px 0 14px; font-size: 40px; }
.guide-intro, .guide-note { max-width: 680px; color: var(--muted); line-height: 1.6; }
.guide-steps { display: grid; gap: 14px; margin: 30px 0; padding: 24px 24px 24px 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); line-height: 1.55; }
.guide-note { padding: 14px; border-left: 3px solid var(--accent); background: #f1f8f6; }
.guide-back { display: inline-block; margin-top: 24px; color: var(--blue); font-weight: 750; text-decoration: none; }

.deployment-id {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
}

.deployment-id span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.deployment-id code {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.deployment-actions {
  margin-top: 16px;
}

.report-runs {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--muted);
  text-align: center;
}

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  display: none;
  max-width: min(380px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 18px 40px rgba(20, 35, 53, 0.16);
  font-weight: 700;
}

:root[data-theme="dark"] .pricing-plan.is-selected {
  border-color: #54b7aa;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .status-pill.is-saving {
  background: #1a3048;
}

:root[data-theme="dark"] .status-pill.is-error,
:root[data-theme="dark"] .badge.danger {
  background: #3a2524;
}

:root[data-theme="dark"] .badge.good {
  background: #18352f;
}

:root[data-theme="dark"] .badge.warn {
  background: #3a311d;
}

:root[data-theme="dark"] .badge {
  color: var(--text);
}

:root[data-theme="dark"] .category-option.is-locked {
  border-color: #806c3d;
  background: #2b281f;
}

:root[data-theme="dark"] .license-meter {
  background: #26313a;
}

:root[data-theme="dark"] .guide-note {
  background: #182b28;
}

#toast.is-visible {
  display: block;
}

.join-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}

.join-shell {
  width: min(460px, 100%);
}

@media (max-width: 760px) {
  .landing-nav,
  .landing-content {
    width: min(100% - 32px, 1240px);
  }

  .landing-hero {
    min-height: 590px;
    padding: 110px 16px 72px;
    background-image: linear-gradient(90deg, rgba(7, 20, 33, 0.91), rgba(7, 20, 33, 0.48)), url("/classroom-hero.png");
  }

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

  .landing-content,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .plan-summary,
  .ai-roadmap {
    grid-template-columns: 1fr;
  }

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

  .ai-roadmap p {
    grid-column: auto;
  }
  .app-frame {
    grid-template-columns: 1fr;
  }

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

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

  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .topbar-actions .status-pill {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .topbar-actions button {
    min-width: 0;
    padding-inline: 8px;
    white-space: normal;
  }

  .login-layout,
  .activity-grid,
  .ops-grid,
  .group-builder,
  .field-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-classes-section {
    grid-row: auto;
  }

  .overview-header {
    align-items: stretch;
    flex-direction: column;
  }

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

  .ops-list {
    grid-template-columns: 1fr;
  }

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

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

  .overview-metrics article {
    min-height: 118px;
    padding: 16px;
  }

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

  .visit-row time {
    grid-column: 1 / -1;
    text-align: left;
  }

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

  .class-basics,
  .class-create-form,
  .class-student-row,
  .policy-template-picker,
  .student-trend-windows,
  .student-trend-columns {
    grid-template-columns: 1fr;
  }

  .student-trend-heading { align-items: flex-start; flex-direction: column; }
  .student-trend-heading > small { text-align: left; }

  .class-student-row {
    gap: 6px;
  }

  .lookup-form,
  .category-form,
  .category-card,
  .site-list-form,
  .plan-create-form {
    grid-template-columns: 1fr;
  }
}

/* Keep the public-site rules above the console's legacy landing defaults in the cascade. */
.landing-page { background: var(--surface); }
.landing-nav { width: min(1180px, calc(100% - 48px)); padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.landing-links { gap: 22px; }
.landing-links a, .landing-theme-toggle { color: #f4f8fa; font-size: 13px; }
.landing-hero { display: flex; min-height: 620px; height: clamp(620px, 82svh, 760px); padding: 112px max(24px, calc((100% - 1180px) / 2)) 112px; background-image: linear-gradient(90deg, rgba(7, 20, 33, 0.96) 0%, rgba(7, 20, 33, 0.78) 46%, rgba(7, 20, 33, 0.18) 82%), url("/classroom-hero.png"); background-position: center 46%; }
.landing-hero-copy h1 { font-size: 64px; }
.landing-hero-copy p:not(.eyebrow) { max-width: 590px; font-size: 19px; }
.hero-proof { display: flex; margin: 0; }
.landing-signin { padding: 30px; box-shadow: var(--shadow); }
.pricing-section h2 { margin: 8px 0 16px; font-size: 40px; }
.pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.button.landing-cta { padding: 12px 17px; border-radius: 6px; font-weight: 800; }
.landing-access-band { padding-top: 56px; }

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .landing-nav { width: min(100% - 32px, 1180px); padding: 16px 0; }
  .landing-links { gap: 8px; }
  .landing-links > a:not(.landing-signin-link) { display: none; }
  .landing-theme-toggle, .landing-links .landing-signin-link { padding: 8px 9px; font-size: 12px; }
  .landing-theme-toggle, .landing-links .landing-signin-link { flex-shrink: 0; white-space: nowrap; }
  .landing-hero { min-height: 620px; height: 88svh; padding: 96px 20px 116px; background-image: linear-gradient(90deg, rgba(7, 20, 33, 0.92), rgba(7, 20, 33, 0.56)), url("/classroom-hero.png"); background-position: 58% center; }
  .landing-hero-copy h1 { font-size: 43px; }
  .landing-hero-copy p:not(.eyebrow) { font-size: 16px; }
  .hero-proof { display: grid; margin: 0; }
  .pricing-section h2 { font-size: 32px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .landing-access-band { padding-top: 48px; }
}

body.is-login-portal .landing-page {
  min-height: 100vh;
  background-image: linear-gradient(90deg, rgba(7, 20, 33, 0.97), rgba(7, 20, 33, 0.76)), url("/classroom-hero.png");
  background-position: center;
  background-size: cover;
}

body.is-login-portal .landing-hero,
body.is-login-portal .platform-band,
body.is-login-portal .category-band,
body.is-login-portal .classroom-band,
body.is-login-portal .pricing-section,
body.is-login-portal .landing-footer,
body.is-login-portal .landing-links > a {
  display: none;
}

body.is-login-portal .landing-access-band {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 70px;
}

body.is-login-portal .access-copy {
  color: #f7fbfd;
}

body.is-login-portal .access-copy .eyebrow {
  color: #8ed8cd;
}

body.is-login-portal .access-copy > p:last-of-type {
  color: #c5d2d9;
}

body.is-login-portal .access-facts {
  color: #9ee5d9;
}

body.is-login-portal .landing-signin {
  border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 760px) {
  body.is-login-portal .landing-page {
    background-image: linear-gradient(rgba(7, 20, 33, 0.9), rgba(7, 20, 33, 0.96)), url("/classroom-hero.png");
  }

  body.is-login-portal .landing-access-band {
    min-height: 100vh;
    padding-top: 104px;
  }

  body.is-login-portal .access-copy {
    display: none;
  }
}

/* Authentication and enrollment estimator */
.access-steps {
  display: grid;
  gap: 0;
  max-width: 600px;
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: access-step;
}

.access-steps li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: access-step;
}

.access-steps strong {
  color: var(--accent-strong);
  font-size: 13px;
  text-transform: uppercase;
}

.access-steps span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.landing-signin {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}

.signin-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.signin-heading .brand-mark {
  width: 42px;
  height: 42px;
}

.signin-heading .eyebrow,
.signin-heading h2 {
  margin: 0;
}

.signin-heading h2 {
  margin-top: 3px;
  font-size: 25px;
}

#landing-password-login {
  display: grid;
  gap: 15px;
}

#landing-password-login label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

#landing-password-login input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 62px;
}

.password-field button {
  position: absolute;
  top: 5px;
  right: 5px;
  min-height: 34px;
  padding: 5px 9px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 12px;
}

#passwordSignInButton {
  min-height: 45px;
  margin-top: 2px;
}

.login-status,
.trial-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.login-status[data-state="error"],
.trial-status[data-state="error"] { color: var(--danger); }
.login-status[data-state="success"],
.trial-status[data-state="success"] { color: var(--good); }

.estimate-delivery {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
  gap: 54px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.estimate-delivery h3 { margin: 7px 0 12px; font-size: 29px; }
.estimate-delivery > div > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.estimate-delivery > div > a { color: var(--accent); font-weight: 750; }
.estimate-delivery form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.estimate-delivery label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.estimate-delivery .wide-field,
.estimate-delivery button,
.estimate-delivery .trial-status { grid-column: 1 / -1; }
.estimate-delivery input { min-height: 43px; }
.estimate-delivery .trial-status { margin: 0; text-align: left; }

.report-preferences {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(240px, .7fr) auto;
  gap: 14px;
  align-items: end;
  margin: 20px 0 24px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.report-preferences > label:not(.report-opt-in) { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.report-preferences input[type="email"] { min-height: 42px; }
.report-opt-in { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.report-opt-in input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.report-opt-in span { display: grid; gap: 4px; }
.report-opt-in strong { color: var(--text); font-size: 14px; }
.report-opt-in small { color: var(--muted); line-height: 1.45; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

@media (max-width: 900px) {
  .estimate-delivery { grid-template-columns: 1fr; gap: 26px; }
  .report-preferences { grid-template-columns: 1fr; align-items: stretch; }
}

@media (max-width: 620px) {
  .estimate-delivery form { grid-template-columns: 1fr; }
  .estimate-delivery label,
  .estimate-delivery .wide-field,
  .estimate-delivery button,
  .estimate-delivery .trial-status { grid-column: 1; }
}

/* Public homepage refresh */
.login-portal-only { display: none; }

.landing-hero {
  background-image: linear-gradient(90deg, rgba(7, 20, 33, 0.96) 0%, rgba(7, 20, 33, 0.78) 46%, rgba(7, 20, 33, 0.14) 82%), url("/classroom-hero-v2.webp");
  background-position: center;
}

.classroom-image {
  background-image: linear-gradient(rgba(7, 20, 33, 0.04), rgba(7, 20, 33, 0.04)), url("/classroom-control-v2.webp");
  background-position: 48% center;
}

.capability-band {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 12px;
}

.systems-showcase {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 18px;
}

.systems-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .38fr);
  gap: 48px;
  align-items: end;
}

.systems-callout {
  display: grid;
  gap: 7px;
  padding: 20px 22px;
  border-left: 3px solid #d6fb62;
  background: #102f3a;
  color: #fff;
}

.systems-callout strong { font-size: 18px; }
.systems-callout span { color: #bcd1d7; font-size: 12px; line-height: 1.5; }

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

.system-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(18, 47, 58, 0.06);
}

.system-card-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #102f3a, #174956);
  color: #fff;
}

.system-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.system-card-featured .system-kicker { color: #d6fb62; }
.system-card h3 { margin: 14px 0 13px; max-width: 640px; font-size: 24px; line-height: 1.2; }
.system-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.system-card-featured p { color: #c7d9dd; }
.system-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 24px 0 0; list-style: none; }
.system-card li { padding: 8px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; color: #e9f2f4; font-size: 12px; font-weight: 700; }
.system-card b, .system-card a { margin-top: auto; padding-top: 24px; color: var(--accent-strong); font-size: 13px; text-decoration: none; }

.system-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.system-flow span { padding: 7px 9px; border-radius: 4px; background: var(--surface-muted); color: var(--accent-strong); font-size: 11px; font-weight: 800; }
.system-flow i { height: 1px; flex: 1; background: var(--line-strong); }

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--line-strong);
}

.capability-list article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  min-height: 150px;
  padding: 26px 28px 26px 0;
  border-bottom: 1px solid var(--line);
}

.capability-list article:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.capability-list article > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.capability-list h3 { margin: 0 0 9px; font-size: 20px; }
.capability-list p { margin: 0; color: var(--muted); line-height: 1.55; }

.trial-request {
  margin-top: 54px;
  padding: 54px 0 62px;
  border-bottom: 0;
}

.trial-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 22px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.trial-points span::before {
  margin-right: 7px;
  color: var(--accent);
  content: "+";
}

.landing-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(2, minmax(120px, .45fr)) minmax(210px, .7fr);
  gap: 54px;
  align-items: start;
  padding: 42px 0 34px;
}

.landing-footer > div { display: grid; gap: 10px; }
.landing-footer > div > strong { font-size: 12px; text-transform: uppercase; color: var(--accent-strong); }
.landing-footer a { color: var(--text); text-decoration: none; font-size: 13px; }
.landing-footer a:hover { color: var(--accent); }
.landing-footer span { color: var(--muted); font-size: 13px; }
.footer-brand p { max-width: 430px; margin: 6px 0 0; color: var(--muted); line-height: 1.55; }
.footer-legal { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

body.is-login-portal .landing-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px;
  background-image: linear-gradient(90deg, rgba(7, 20, 33, 0.95), rgba(7, 20, 33, 0.62)), url("/classroom-hero-v2.webp");
  background-position: center;
  background-size: cover;
}

body.is-login-portal .landing-page > :not(.login-portal-only) { display: none; }
body.is-login-portal .login-portal-only { display: block; width: min(420px, 100%); }
.login-portal-shell { display: grid; gap: 16px; }
.login-brand { justify-self: center; color: #fff; }
.login-portal-only .landing-signin { padding: 34px; background: rgba(255, 255, 255, 0.98); }
.login-portal-only .landing-signin > .eyebrow { margin: 0 0 8px; }
.login-portal-only h1 { margin: 0 0 26px; color: #16212b; font-size: 27px; line-height: 1.15; }
.login-portal-only #landing-password-login label { color: #16212b; }
.login-portal-only #landing-password-login input { background: #fff; color: #16212b; }
.login-return { justify-self: center; color: #e8f2f4; font-size: 12px; text-decoration: none; }

@media (max-width: 760px) {
  .landing-hero {
    background-image: linear-gradient(90deg, rgba(7, 20, 33, 0.91), rgba(7, 20, 33, 0.54)), url("/classroom-hero-v2.webp");
    background-position: 57% center;
  }
  .capability-band { width: min(100% - 32px, 1180px); padding-top: 70px; }
  .systems-showcase { width: min(100% - 32px, 1180px); padding-top: 70px; }
  .systems-heading, .systems-grid { grid-template-columns: 1fr; }
  .system-card-featured { grid-column: auto; }
  .system-card { min-height: 280px; }
  .capability-list { grid-template-columns: 1fr; }
  .capability-list article,
  .capability-list article:nth-child(even) { min-height: 0; padding: 22px 0; border-left: 0; }
  .landing-footer { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .beta-option { grid-template-columns: 22px minmax(0, 1fr); }
  .beta-option b { grid-column: 2; justify-self: start; }
  .trial-request { gap: 30px; }
  .landing-footer { grid-template-columns: 1fr; }
  .footer-brand,
  .footer-legal { grid-column: 1; }
  .login-portal-only .landing-signin { padding: 28px 22px; }
}

.signin-trust {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.signin-trust span + span::before {
  margin-right: 10px;
  content: "\00b7";
}

body.is-login-portal .access-steps { border-color: rgba(255, 255, 255, 0.18); }
body.is-login-portal .access-steps li { border-color: rgba(255, 255, 255, 0.14); }
body.is-login-portal .access-steps span { color: #c5d2d9; }
body.is-login-portal .landing-signin {
  background: rgba(247, 251, 253, 0.97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.pricing-grid {
  gap: 10px;
  margin-top: 36px;
}

.pricing-plan {
  min-height: 208px;
  padding: 20px;
}

.pricing-estimator {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.estimator-controls {
  padding: 34px;
}

.estimator-heading h3 {
  margin: 5px 0 7px;
  font-size: 25px;
}

.estimator-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.selected-plan-features {
  display: grid;
  gap: 13px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--surface-alt) 72%, transparent);
}

.selected-plan-feature-heading {
  display: grid;
  gap: 3px;
}

.selected-plan-feature-heading strong {
  color: var(--ink);
  font-size: 13px;
}

.selected-plan-feature-heading span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.selected-plan-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.selected-plan-feature-grid > span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: var(--surface);
  font-size: 11px;
  font-weight: 720;
}

.selected-plan-feature-grid i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
}

.selected-plan-feature-grid small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.selected-plan-feature-grid .is-included i {
  background: color-mix(in srgb, var(--good) 14%, transparent);
  color: var(--good);
}

.selected-plan-feature-grid .is-locked {
  color: var(--muted);
}

.selected-plan-feature-grid .is-locked i {
  background: color-mix(in srgb, var(--muted) 10%, transparent);
  color: var(--muted);
}

.enrollment-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px 18px;
  align-items: center;
  margin-top: 30px;
}

.enrollment-control > span {
  display: flex;
  grid-column: 1 / -1;
  align-items: baseline;
  justify-content: space-between;
}

.enrollment-control output {
  color: var(--accent-strong);
  font-size: 26px;
  font-weight: 850;
}

.enrollment-control input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.enrollment-control input[type="number"] {
  min-height: 42px;
  text-align: right;
}

.beta-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-top: 26px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.beta-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.beta-option span { display: grid; gap: 5px; }
.beta-option small { color: var(--muted); line-height: 1.45; }
.beta-option b {
  padding: 5px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--accent-strong);
  font-size: 11px;
  white-space: nowrap;
}

.estimate-disclaimer {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.estimate-result {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  background: #0e2834;
  color: #f5fbfc;
}

.estimate-result > p { margin: 0; color: #b9cdd5; font-size: 13px; }
.estimate-result > strong { margin-top: 10px; font-size: 42px; line-height: 1; }
.estimate-result > span { margin-top: 9px; color: #a6d8cf; font-size: 13px; }
.estimate-result dl { margin: 32px 0 26px; }
.estimate-result dl div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.estimate-result dt { color: #b9cdd5; }
.estimate-result dd { margin: 0; font-weight: 750; }
.estimate-result .button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  background: #8ed8cd;
  color: #08222b;
  text-align: center;
  text-decoration: none;
}

.trial-request {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 70px;
  align-items: center;
  margin-top: 72px;
  padding: 46px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.trial-request h3 { margin: 7px 0 12px; font-size: 29px; }
.trial-request > div > p:last-child { color: var(--muted); line-height: 1.6; }
.trial-request form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.trial-request label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.trial-request label:first-child,
.trial-request label:nth-child(3),
.trial-request button,
.trial-request .trial-status { grid-column: 1 / -1; }
.trial-request input { min-height: 43px; }
.trial-request button { min-height: 44px; }
.trial-request .trial-status { margin: 0; text-align: left; }

@media (max-width: 980px) {
  .pricing-estimator { grid-template-columns: 1fr; }
  .estimate-result { min-height: 330px; border-top: 1px solid var(--line); border-left: 0; }
  .trial-request { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .landing-access-band { grid-template-columns: 1fr; gap: 34px; }
  .landing-signin { padding: 23px; }
  .signin-trust { flex-wrap: wrap; }
  .estimator-controls,
  .estimate-result { padding: 24px; }
  .enrollment-control { grid-template-columns: 1fr 92px; }
  .beta-option { grid-template-columns: 22px 1fr; }
  .beta-option b { grid-column: 2; justify-self: start; }
  .selected-plan-feature-grid { grid-template-columns: 1fr; }
  .selected-plan-feature-grid > span { grid-template-columns: 18px minmax(0, 1fr); }
  .selected-plan-feature-grid small { grid-column: 2; }
  .estimate-result > strong { font-size: 36px; }
  .trial-request { margin-top: 50px; padding: 36px 0; }
  .trial-request form { grid-template-columns: 1fr; }
  .trial-request label,
  .trial-request label:first-child,
  .trial-request label:nth-child(3),
  .trial-request button,
  .trial-request .trial-status { grid-column: 1; }
}

/* Essay Detection teacher workspace */
.essay-teacher-panel { padding: 30px; }
.essay-guidance { max-width: 760px; margin: -8px 0 28px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.essay-service-state { padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); font-size: 11px; font-weight: 750; }
.essay-service-state.is-online { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); color: var(--good); }
.essay-teacher-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.essay-assignment-form { display: grid; align-content: start; gap: 14px; padding-right: 34px; border-right: 1px solid var(--line); }
.essay-assignment-form h3, .essay-browser-heading h3 { margin: 0; font-size: 18px; }
.essay-assignment-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.essay-assignment-form input, .essay-assignment-form select { min-height: 41px; }
.essay-assignment-form textarea { min-height: 116px; }
.essay-assignment-form > p { min-height: 18px; margin: 0; color: var(--muted); font-size: 11px; }
.essay-assignment-form > p[data-state="error"] { color: var(--danger); }
.essay-assignment-form > p[data-state="success"] { color: var(--good); }
.essay-browser-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.essay-browser-heading > span { color: var(--accent-strong); font-size: 22px; font-weight: 850; }
.essay-assignment-list { margin-top: 12px; border-top: 1px solid var(--line); }
.essay-assignment-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.essay-assignment-row > div:first-child { display: grid; gap: 5px; }
.essay-assignment-row span { color: var(--muted); font-size: 12px; }
.essay-code { display: grid; gap: 3px; }
.essay-code small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.essay-code b { color: var(--accent-strong); font-family: Consolas, monospace; letter-spacing: 0; }
.essay-row-actions { display: flex; gap: 6px; }
.essay-row-actions button { min-height: 34px; padding: 6px 9px; font-size: 11px; white-space: nowrap; }
.essay-submission-review { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.essay-submission-list { display: grid; gap: 0; margin-top: 14px; border-top: 1px solid var(--line); }
.essay-submission-row { display: grid; grid-template-columns: minmax(190px, .7fr) 150px minmax(220px, 1fr); gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.essay-student { display: grid; gap: 4px; }
.essay-student span { color: var(--muted); font-size: 11px; }
.essay-signal { display: grid; gap: 3px; padding-left: 12px; border-left: 3px solid var(--line-strong); }
.essay-signal strong { font-size: 22px; }
.essay-signal span { color: var(--muted); font-size: 10px; }
.essay-signal.is-low { border-color: var(--good); }
.essay-signal.is-inconclusive { border-color: var(--warn); }
.essay-signal.is-elevated, .essay-signal.is-error { border-color: var(--danger); }
.essay-review-note { color: var(--muted); font-size: 11px; line-height: 1.5; }
.essay-teacher-evidence { display: grid; grid-column: 1 / -1; gap: 11px; padding: 14px; border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line)); border-radius: 7px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.essay-teacher-evidence > div { display: grid; gap: 4px; }
.essay-teacher-evidence > div > span { color: var(--accent-strong); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.essay-teacher-evidence > div > strong { font-size: 13px; line-height: 1.45; }
.essay-teacher-evidence small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.essay-evidence-quality,
.essay-context-chip { padding: 10px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.essay-evidence-quality.is-strong { border-color: color-mix(in srgb, var(--success) 55%, var(--line)); }
.essay-evidence-quality.is-limited,
.essay-evidence-quality.is-insufficient,
.essay-evidence-quality.is-unsupported { border-color: color-mix(in srgb, var(--warning) 62%, var(--line)); }
.essay-context-chip.is-unstable { border-color: color-mix(in srgb, var(--warning) 68%, var(--line)); }
.essay-context-chip.is-stable { border-color: color-mix(in srgb, var(--success) 45%, var(--line)); }
.essay-evidence-reasons { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.essay-teacher-evidence details { padding-top: 8px; border-top: 1px solid var(--line); }
.essay-teacher-evidence summary { color: var(--accent-strong); font-size: 10px; font-weight: 800; cursor: pointer; }
.essay-teacher-evidence ol { display: grid; gap: 6px; margin: 9px 0 0; padding-left: 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.essay-next-actions { padding: 11px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: 6px; background: var(--surface); }
.essay-next-actions small { margin-top: 8px; }
.essay-submission-row details { grid-column: 1 / -1; }
.essay-submission-row summary { color: var(--accent-strong); font-size: 12px; font-weight: 750; cursor: pointer; }
.essay-submission-row details p { max-height: 360px; overflow: auto; margin: 12px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-muted); font-family: Georgia, serif; line-height: 1.7; white-space: pre-wrap; }
.essay-detector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.essay-detector-grid span { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 10px; }
.essay-detector-grid strong { color: var(--text); font-size: 14px; }
.essay-detector-details ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.essay-signal-explanation { display: grid; gap: 2px; margin-top: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-muted); }
.essay-signal-explanation > strong { font-size: 10px; }
.essay-signal-explanation li { margin-top: 5px; }
.essay-signal-explanation li b { display: block; color: var(--text); font-size: 10px; }
.essay-passage-analysis { display: grid; gap: 7px; margin-top: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-muted); }
.essay-passage-analysis > strong { font-size: 11px; }
.essay-passage-analysis p { margin: 0; }
.essay-passage-analysis ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.essay-passage-analysis li { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 10px; }
.essay-passage-analysis li span { color: var(--muted); text-align: right; }
.essay-submission-row .essay-detector-details > p { max-height: none; margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--muted); font-family: inherit; font-size: 10px; }
.essay-submission-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

/* Teacher replay */
.replay-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .6fr) auto; gap: 12px; align-items: end; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.replay-toolbar label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.replay-toolbar select, .replay-toolbar button { min-height: 42px; }
.replay-privacy { margin: 12px 0 22px; color: var(--muted); font-size: 11px; }
.replay-list { display: grid; gap: 18px; }
.replay-card { padding: 22px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.replay-card-header, .replay-card-header > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.replay-card-header > div { justify-content: flex-start; }
.replay-card-header strong, .replay-card-header small { display: block; }
.replay-card-header small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.replay-number { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--accent-strong); font-size: 12px; font-weight: 850; }
.replay-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.replay-metrics > span { display: grid; gap: 4px; padding: 15px 12px; border-right: 1px solid var(--line); }
.replay-metrics > span:last-child { border-right: 0; }
.replay-metrics strong { font-size: 18px; }
.replay-metrics small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.replay-columns { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; }
.replay-columns h3 { margin: 0 0 10px; font-size: 14px; }
.replay-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.replay-facts span, .replay-interventions span { padding: 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 10px; }
.replay-facts strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 17px; }
.replay-interventions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.replay-interventions span { padding: 7px 9px; }
.replay-interventions b { margin-left: 5px; color: var(--text); }
.replay-suggestions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.replay-suggestions > strong { font-size: 12px; }
.replay-suggestions ul { margin: 8px 0 12px; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.replay-suggestions small { color: var(--muted); font-size: 9px; }

@media (max-width: 1080px) {
  .essay-teacher-layout { grid-template-columns: 1fr; }
  .essay-assignment-form { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .essay-assignment-row { grid-template-columns: minmax(0, 1fr) 100px; }
  .essay-row-actions { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .essay-teacher-panel { padding: 20px; }
  .essay-assignment-row, .essay-submission-row { grid-template-columns: 1fr; gap: 10px; }
  .essay-row-actions, .essay-submission-row details { grid-column: 1; }
  .essay-signal { padding: 8px 0 8px 12px; }
  .replay-toolbar, .replay-columns { grid-template-columns: 1fr; }
  .replay-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .replay-metrics > span { border-bottom: 1px solid var(--line); }
  .replay-card-header { align-items: flex-start; flex-direction: column; }
  .screen-record-controls, .screen-annotation-controls { right: 14px; flex-wrap: wrap; }
  .screen-annotation-controls { top: 62px; }
  .screen-annotation-controls span { flex-basis: 100%; }
}

/* Product-led public homepage */
.skip-link {
  position: fixed;
  z-index: 10000;
  top: -80px;
  left: 16px;
  padding: 10px 14px;
  border-radius: 5px;
  background: #d6fb62;
  color: #071421;
  font-weight: 850;
  text-decoration: none;
}

.skip-link:focus {
  top: 14px;
}

.landing-page .landing-hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  gap: clamp(44px, 6vw, 84px);
  align-items: center;
  min-height: 740px;
  height: auto;
  padding: 142px max(24px, calc((100% - 1180px) / 2)) 112px;
  background:
    radial-gradient(circle at 84% 18%, rgba(47, 205, 185, .22), transparent 29%),
    radial-gradient(circle at 48% 108%, rgba(214, 251, 98, .1), transparent 33%),
    linear-gradient(135deg, #061522 0%, #0a2531 57%, #0d353a 100%);
}

.landing-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 610px;
}

.landing-page .landing-hero-copy .eyebrow {
  color: #96e0d4;
}

.landing-page .landing-hero-copy h1 {
  max-width: 690px;
  margin: 16px 0 22px;
  font-size: clamp(48px, 5vw, 72px);
  line-height: .98;
  letter-spacing: -.045em;
}

.landing-page .landing-hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: #c8d8dd;
  font-size: 18px;
  line-height: 1.65;
}

.landing-page .hero-actions {
  flex-wrap: wrap;
  margin-top: 30px;
}

.landing-page .hero-text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.hero-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 30px;
  color: #dce8eb;
  font-size: 11px;
  font-weight: 750;
}

.hero-reassurance span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.hero-reassurance span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d6fb62;
  content: "";
}

.hero-console {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(203, 230, 234, .34);
  border-radius: 14px;
  background: #f6f9fa;
  color: #10232e;
  box-shadow: 0 36px 90px rgba(0, 0, 0, .38), 0 0 0 7px rgba(255, 255, 255, .035);
  transform: perspective(1300px) rotateY(-2deg) rotateX(1deg);
  transform-origin: center;
}

.hero-console::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.hero-console-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 49px;
  padding: 0 18px;
  border-bottom: 1px solid #dbe5e8;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.hero-console-brand {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.hero-console-brand img {
  width: 21px;
  height: 21px;
}

.hero-console-status {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f7f3;
  color: #17685f;
}

.hero-console-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27aa91;
  box-shadow: 0 0 0 3px rgba(39, 170, 145, .14);
}

.hero-console-user {
  justify-self: end;
  color: #687c84;
}

.hero-console-layout {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 430px;
}

.hero-console-layout aside {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 18px 10px;
  background: #102a35;
}

.hero-console-layout aside span {
  padding: 9px 8px;
  border-radius: 5px;
  color: #a9bec5;
  font-size: 9px;
  font-weight: 750;
}

.hero-console-layout aside .is-active {
  background: rgba(97, 211, 194, .15);
  color: #eafffb;
}

.hero-console-main {
  min-width: 0;
  padding: 22px;
  background:
    linear-gradient(rgba(246, 249, 250, .92), rgba(246, 249, 250, .92)),
    linear-gradient(90deg, #dce5e8 1px, transparent 1px),
    linear-gradient(#dce5e8 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
}

.hero-console-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.hero-console-heading div {
  display: grid;
  gap: 3px;
}

.hero-console-heading small {
  color: #6b7f87;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.hero-console-heading strong {
  font-size: 16px;
}

.hero-console-heading button,
.hero-console-alert button {
  min-height: 30px;
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: #1c8578;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  pointer-events: none;
}

.hero-console-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 17px;
}

.hero-console-metrics > div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid #dae4e7;
  border-radius: 7px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 14px rgba(30, 59, 70, .05);
}

.hero-console-metrics small,
.hero-console-metrics span {
  overflow: hidden;
  color: #71858d;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-console-metrics strong {
  font-size: 21px;
  line-height: 1;
}

.hero-screen-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.hero-screen-preview article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7e2e5;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(30, 59, 70, .05);
}

.mini-browser {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 21px;
  padding: 0 6px;
  border-bottom: 1px solid #e2e9eb;
  background: #eef3f4;
}

.mini-browser span {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ec907f;
  box-shadow: 8px 0 #e9c75e, 16px 0 #66cbb1;
}

.mini-browser b {
  overflow: hidden;
  margin-left: 14px;
  color: #7a8b92;
  font-size: 6px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-page {
  position: relative;
  display: flex;
  height: 97px;
  gap: 6px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
  background: #f7f9fa;
}

.mini-page-learning {
  align-items: center;
  background: linear-gradient(145deg, #eaf4ff, #f7fbff);
}

.mini-page-learning i {
  width: 29%;
  height: 36px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(32, 69, 101, .1);
}

.mini-page-learning i:first-child {
  height: 50px;
  background: #5b91df;
}

.mini-page-doc {
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 18px 22px;
  background: #f1f3f4;
}

.mini-page-doc::before {
  position: absolute;
  inset: 9px 22px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 50, 60, .09);
  content: "";
}

.mini-page-doc i {
  position: relative;
  z-index: 1;
  width: 82%;
  height: 3px;
  background: #b6c3c8;
}

.mini-page-doc i:nth-child(2) { width: 65%; }
.mini-page-doc i:nth-child(3) { width: 76%; }
.mini-page-doc i:nth-child(4) { width: 48%; }

.mini-page-chart {
  background: linear-gradient(150deg, #f5f1ff, #eef9f7);
}

.mini-page-chart i {
  width: 14px;
  border-radius: 3px 3px 0 0;
  background: #5e79d8;
}

.mini-page-chart i:nth-child(1) { height: 24px; }
.mini-page-chart i:nth-child(2) { height: 42px; }
.mini-page-chart i:nth-child(3) { height: 31px; }
.mini-page-chart i:nth-child(4) { height: 58px; background: #2ba58f; }

.hero-screen-preview footer {
  display: grid;
  gap: 1px;
  padding: 8px 9px;
}

.hero-screen-preview footer strong {
  font-size: 8px;
}

.hero-screen-preview footer span {
  color: #74878e;
  font-size: 7px;
}

.hero-console-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid #eadfaf;
  border-radius: 7px;
  background: #fffcec;
}

.hero-console-alert > span {
  padding: 5px 7px;
  border-radius: 4px;
  background: #f0dd87;
  color: #604e13;
  font-size: 7px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-console-alert p {
  display: grid;
  gap: 1px;
  margin: 0;
  color: #65777e;
  font-size: 7px;
}

.hero-console-alert p strong {
  color: #263b44;
  font-size: 8px;
}

.hero-console-alert button {
  border: 1px solid #cfdadc;
  background: #fff;
  color: #27444e;
}

.outcome-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 48px));
  margin: -43px auto 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(16, 47, 58, .13);
}

.outcome-strip article {
  display: grid;
  gap: 5px;
  min-height: 86px;
  align-content: center;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
}

.outcome-strip article:last-child {
  border-right: 0;
}

.outcome-strip strong {
  color: var(--text);
  font-size: 24px;
  letter-spacing: -.03em;
}

.outcome-strip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.platform-band .policy-levels {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

:root[data-theme="dark"] .outcome-strip {
  box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
}

@media (max-width: 1080px) {
  .landing-page .landing-hero {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 132px;
    padding-bottom: 108px;
  }

  .landing-hero-copy {
    max-width: 760px;
  }

  .hero-console {
    width: min(820px, 100%);
    transform: none;
  }

  .platform-band .policy-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-levels article:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .landing-page .landing-hero {
    min-height: 0;
    padding: 112px 18px 86px;
  }

  .landing-page .landing-hero-copy h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .landing-page .landing-hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-reassurance {
    display: grid;
  }

  .hero-console-bar {
    grid-template-columns: 1fr auto;
  }

  .hero-console-user {
    display: none;
  }

  .hero-console-layout {
    grid-template-columns: 1fr;
  }

  .hero-console-layout aside {
    display: none;
  }

  .hero-console-main {
    padding: 16px;
  }

  .hero-console-metrics {
    grid-template-columns: repeat(3, minmax(86px, 1fr));
    overflow-x: auto;
  }

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

  .hero-screen-preview article:nth-child(3) {
    display: none;
  }

  .hero-console-alert {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hero-console-alert button {
    display: none;
  }

  .outcome-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - 32px, 1180px);
    margin-top: -32px;
  }

  .outcome-strip article {
    min-height: 78px;
    padding: 15px 16px;
  }

  .outcome-strip article:nth-child(2) {
    border-right: 0;
  }

  .outcome-strip article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .platform-band .policy-levels {
    grid-template-columns: 1fr;
  }

  .policy-levels article,
  .policy-levels article:nth-child(3) {
    border-left: 0;
  }

  .policy-levels article + article {
    border-top: 1px solid var(--line);
  }
}

/* Platform category intelligence center */
.platform-category-launch {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 28px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.platform-category-launch > div {
  display: grid;
  gap: 5px;
}

.platform-category-launch span {
  color: var(--muted);
  font-size: 12px;
}

.category-center-hero {
  display: flex;
  gap: 36px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 0 30px;
  border-bottom: 1px solid var(--line-strong);
}

.category-center-hero > div:first-child {
  max-width: 760px;
}

.category-center-hero h2 {
  margin: 7px 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.035em;
}

.category-center-hero p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.category-center-actions .button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  text-decoration: none;
}

.category-center-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category-center-metrics article {
  display: grid;
  gap: 5px;
  min-height: 105px;
  align-content: center;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.category-center-metrics article:last-child {
  border-right: 0;
}

.category-center-metrics span,
.category-center-metrics small {
  color: var(--muted);
  font-size: 10px;
}

.category-center-metrics span {
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.category-center-metrics strong {
  font-size: 27px;
  letter-spacing: -.03em;
}

.category-center-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, .35fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
}

.category-center-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-center-toolbar input,
.category-center-toolbar select {
  min-height: 42px;
  background: var(--surface);
}

.category-center-toolbar > span {
  align-self: center;
  padding: 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.category-center-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr);
  gap: 22px;
  align-items: start;
}

.platform-category-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.platform-category-admin-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(18, 47, 58, .055);
}

.platform-category-admin-card > header,
.platform-category-admin-card > footer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.platform-category-admin-card header > div {
  display: grid;
  gap: 5px;
}

.platform-category-admin-card h4 {
  margin: 1px 0 0;
  font-size: 20px;
}

.platform-category-admin-card header code {
  color: var(--muted);
  font-size: 9px;
}

.platform-category-admin-card > p {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.category-kind {
  width: max-content;
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.category-kind-allow {
  background: color-mix(in srgb, var(--good) 13%, var(--surface));
  color: var(--good);
}

.category-kind-block {
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  color: var(--danger);
}

.category-kind-flagged {
  background: color-mix(in srgb, var(--warn) 15%, var(--surface));
  color: var(--warn);
}

.category-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-card-stats span {
  display: grid;
  gap: 3px;
  padding: 12px 8px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.category-card-stats span:first-child {
  padding-left: 0;
}

.category-card-stats span:last-child {
  border-right: 0;
}

.category-card-stats strong {
  color: var(--text);
  font-size: 16px;
}

.category-coverage {
  display: grid;
  gap: 7px;
}

.category-coverage > span {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.category-coverage b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.category-coverage small,
.category-recent-items small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.category-recent-items {
  display: grid;
  gap: 8px;
}

.category-recent-items > strong {
  font-size: 10px;
  text-transform: uppercase;
}

.category-recent-items > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.category-recent-items code {
  max-width: 100%;
  overflow: hidden;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent-strong);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-category-admin-card > footer {
  align-items: center;
  color: var(--muted);
  font-size: 9px;
}

.category-publish-panel {
  position: sticky;
  top: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category-publish-panel > div:first-child,
.category-publish-panel .platform-category-form,
.category-governance-note {
  padding: 22px;
}

.category-publish-panel > div:first-child {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
}

.category-publish-panel h3 {
  margin: 6px 0 9px;
  font-size: 23px;
}

.category-publish-panel p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.category-publish-panel .platform-category-form {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.category-governance-note {
  display: grid;
  gap: 7px;
}

.category-governance-note strong {
  font-size: 11px;
  text-transform: uppercase;
}

.category-governance-note span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.category-suggestion {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.category-suggestion strong {
  font-size: 11px;
}

.category-suggestion small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .category-center-layout {
    grid-template-columns: 1fr;
  }

  .category-publish-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .category-center-hero,
  .platform-category-launch {
    align-items: stretch;
    flex-direction: column;
  }

  .category-center-actions {
    justify-content: flex-start;
  }

  .category-center-metrics,
  .platform-category-catalog {
    grid-template-columns: 1fr 1fr;
  }

  .category-center-metrics article:nth-child(2) {
    border-right: 0;
  }

  .category-center-metrics article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .category-center-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .category-center-metrics,
  .platform-category-catalog {
    grid-template-columns: 1fr;
  }

  .category-center-metrics article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .category-center-metrics article:last-child {
    border-bottom: 0;
  }
}

.safety-center-panel {
  display: grid;
  gap: 20px;
}

.safety-center-panel[hidden] {
  display: none;
}

.safety-boundary {
  display: grid;
  grid-template-columns: minmax(150px, 0.25fr) 1fr;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, #c87137 38%, var(--line));
  border-left: 4px solid #c87137;
  background: color-mix(in srgb, #c87137 7%, var(--surface));
}

.safety-boundary strong {
  color: color-mix(in srgb, #c87137 78%, var(--text));
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.safety-boundary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.safety-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 0.25fr)) max-content;
  gap: 12px;
  align-items: end;
}

.safety-toolbar label,
.safety-action-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.safety-review-queue {
  display: grid;
  gap: 14px;
}

.safety-review-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 5px solid #82939b;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.safety-review-card.urgency-elevated {
  border-left-color: #d39a2c;
}

.safety-review-card.urgency-urgent {
  border-left-color: #d36b2c;
}

.safety-review-card.urgency-emergency {
  border-left-color: #b83d3d;
}

.safety-review-card > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.safety-review-card h3 {
  margin: 4px 0;
  font-size: 17px;
}

.safety-review-card header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.safety-source {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.safety-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.safety-urgency-emergency,
.safety-urgency-urgent,
.safety-status-escalated,
.safety-priority-critical,
.safety-priority-high {
  border-color: color-mix(in srgb, #b83d3d 35%, var(--line));
  background: color-mix(in srgb, #b83d3d 11%, var(--surface));
  color: color-mix(in srgb, #b83d3d 82%, var(--text));
}

.safety-urgency-elevated,
.safety-status-open,
.safety-priority-moderate {
  border-color: color-mix(in srgb, #d39a2c 35%, var(--line));
  background: color-mix(in srgb, #d39a2c 10%, var(--surface));
  color: color-mix(in srgb, #9a6811 82%, var(--text));
}

.safety-status-resolved {
  border-color: color-mix(in srgb, #24856f 35%, var(--line));
  background: color-mix(in srgb, #24856f 10%, var(--surface));
  color: color-mix(in srgb, #24856f 82%, var(--text));
}

.safety-priority-routine {
  border-color: color-mix(in srgb, #648090 32%, var(--line));
  background: color-mix(in srgb, #648090 8%, var(--surface));
  color: color-mix(in srgb, #4f6875 84%, var(--text));
}

.safety-review-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 20px;
}

.safety-review-details > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.safety-review-details dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.safety-review-details dl div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.safety-review-details dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.safety-review-details dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
}

.safety-review-details .safety-review-target {
  grid-column: 1 / -1;
}

.safety-review-target.is-overdue dd {
  color: #b83d3d;
}

.safety-signal-evidence {
  display: grid;
  grid-template-columns: max-content minmax(100px, 0.3fr) minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.safety-signal-evidence strong {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.safety-signal-evidence span,
.safety-signal-evidence small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
}

.safety-signal-evidence em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
}

.safety-priority-explanation {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}

.safety-priority-explanation summary {
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.safety-priority-explanation p,
.safety-priority-explanation small {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.safety-action-form {
  display: grid;
  grid-template-columns: minmax(170px, 0.25fr) minmax(240px, 1fr) max-content;
  gap: 10px;
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.safety-resolution {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  font-size: 11px;
  line-height: 1.55;
}

.safety-timeline {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.safety-timeline summary {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.safety-timeline ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.safety-timeline li {
  padding-left: 4px;
  font-size: 10px;
}

.safety-timeline li span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.safety-timeline li p {
  margin: 4px 0 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .safety-review-details,
  .safety-toolbar,
  .safety-action-form {
    grid-template-columns: 1fr;
  }

  .safety-toolbar button,
  .safety-action-form button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .safety-boundary {
    grid-template-columns: 1fr;
  }

  .safety-review-card > header {
    flex-direction: column;
  }

  .safety-badges {
    justify-content: flex-start;
  }

  .safety-review-details dl,
  .safety-signal-evidence {
    grid-template-columns: 1fr;
  }
}
