:root {
  --navy: #07182e;
  --navy-2: #0c3152;
  --blue: #08699f;
  --cyan: #36d9ff;
  --violet: #735cff;
  --sky: #dff7ff;
  --gold: #f7c653;
  --green: #158765;
  --ink: #0b1d2e;
  --muted: #52697c;
  --line: #d4e1e9;
  --paper: #ffffff;
  --wash: #f3f8fb;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(4, 26, 48, .12);
}

@keyframes fadeInScale {
  0% { opacity: .01; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeInScale .35s ease-out both;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  overflow-y: visible;
  color: var(--ink);
  background: #f7fbfd;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--navy);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  color: white;
  background: var(--navy);
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(9, 45, 79, .1);
  backdrop-filter: blur(12px);
}
.nav-shell {
  width: min(1180px, calc(100% - 2rem));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.1;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 14px 5px 14px 5px;
  font-weight: 900;
  letter-spacing: -.08em;
}
.brand strong { display: block; font-size: 1.1rem; letter-spacing: -.02em; }
.brand small { display: block; margin-top: .22rem; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  padding: .6rem .78rem;
  color: #334b5e;
  border-radius: 10px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
}
.nav-links a:hover { color: var(--navy); background: var(--wash); }
.nav-links a[aria-current="page"]:not(.nav-school) { color: var(--navy); background: var(--sky); }
.nav-links .nav-school { margin-left: .35rem; color: white; background: var(--navy); }
.nav-links .nav-school:hover { color: white; background: var(--navy-2); }
.nav-toggle {
  display: none;
  padding: .55rem .8rem;
  color: white;
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 189, 63, .24), transparent 27rem),
    linear-gradient(125deg, #082744 0%, #0c476b 54%, #107a92 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -12rem;
  bottom: -14rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255, 255, 255, .03), 0 0 0 8rem rgba(255, 255, 255, .025);
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr .75fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: 4.8rem 0;
}
.eyebrow {
  margin: 0 0 .85rem;
  color: var(--blue);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero .eyebrow, .page-hero .eyebrow { color: #9bddff; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
.hero h1 { max-width: 760px; margin-bottom: 1.2rem; font-size: clamp(2.7rem, 5.2vw, 4.9rem); }
.hero-copy { max-width: 720px; margin: 0; color: rgba(255, 255, 255, .82); font-size: clamp(1.05rem, 1.5vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.landing-logout-form { margin: 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--navy); box-shadow: 0 8px 18px rgba(9, 45, 79, .2); }
.hero .button-primary { color: var(--navy); background: var(--gold); }
.button-ghost { color: white; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); }
.button-light { color: var(--navy); background: white; }
.button-secondary { color: var(--navy); border-color: var(--line); background: white; }
.hero-panel {
  padding: 2rem;
  color: white;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .15);
  backdrop-filter: blur(14px);
}
.hero-panel strong { display: block; margin-bottom: 1rem; font-size: 1.2rem; }
.hero-panel ul { margin: 1.2rem 0 0; padding-left: 1.2rem; color: rgba(255, 255, 255, .83); }
.hero-panel li + li { margin-top: .65rem; }
.status-dot { display: block; width: 12px; height: 12px; margin-bottom: 1rem; background: #78f0bf; border-radius: 50%; box-shadow: 0 0 0 6px rgba(120, 240, 191, .13); }
.route-panel > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: .8rem;
  padding: .75rem 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.route-panel > div span { color: var(--gold); font-size: 1.8rem; font-weight: 900; line-height: 1; }
.route-panel > div p { margin: 0; color: rgba(255, 255, 255, .84); font-weight: 750; }
.route-panel small { display: block; margin-top: 1rem; color: rgba(255, 255, 255, .62); }

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.compact-section { padding-top: clamp(3rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 5vw, 4.5rem); }
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading h2, .impact-copy h2, .dashboard-toolbar h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.5rem); }
.section-heading > p:last-child { color: var(--muted); font-size: 1.07rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card {
  position: relative;
  min-height: 270px;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(9, 45, 79, .045);
}
.service-card::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -6rem;
  width: 16rem;
  height: 16rem;
  background: var(--card-accent, var(--sky));
  border-radius: 50%;
  opacity: .4;
}
.service-card > * { position: relative; z-index: 1; }
.analytics-card { --card-accent: #d9e4ff; }
.card-number { display: block; color: #93a6b4; font-size: .8rem; font-weight: 900; letter-spacing: .12em; }
.card-kicker { margin: 2rem 0 .5rem; color: var(--blue); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.service-card h3 { margin-bottom: .8rem; color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.service-card p:not(.card-kicker) { max-width: 480px; margin-bottom: 1.5rem; color: var(--muted); }
.service-card a { color: var(--navy); font-weight: 900; text-underline-offset: 4px; }
.trust-band { padding: 1.2rem 1rem; background: var(--wash); border-top: 1px solid var(--line); }
.trust-band-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.trust-band-inner div { padding: 1.1rem 1.25rem; background: white; }
.trust-band-inner strong, .trust-band-inner span { display: block; }
.trust-band-inner strong { color: var(--navy); }
.trust-band-inner span { margin-top: .2rem; color: var(--muted); font-size: .88rem; }

.impact-section {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-left: max(1rem, calc((100vw - 1180px) / 2));
  padding-right: max(1rem, calc((100vw - 1180px) / 2));
  background: var(--wash);
}
.impact-list { display: grid; gap: .75rem; }
.impact-list div { padding: 1.2rem 1.35rem; background: white; border: 1px solid var(--line); border-radius: 14px; }
.impact-list strong, .impact-list span { display: block; }
.impact-list strong { color: var(--navy); }
.impact-list span { margin-top: .2rem; color: var(--muted); }

.page-hero { color: white; background: linear-gradient(125deg, var(--navy), var(--navy-2)); }
.page-hero-analytics { background: linear-gradient(125deg, #18355d, #266b92); }
.page-shell { width: min(980px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(3.7rem, 7vw, 5.8rem) 0; }
.page-shell h1 { max-width: 850px; margin-bottom: 1.1rem; font-size: clamp(2.45rem, 4.7vw, 4.35rem); }
.page-shell p:not(.eyebrow) { max-width: 780px; color: rgba(255, 255, 255, .82); font-size: 1.12rem; }
.page-shell .button { margin-top: 1.2rem; }
.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.info-card { padding: 2rem; border: 1px solid var(--line); border-radius: 18px; }
.info-card > span { color: var(--blue); font-size: .75rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.info-card h2 { margin: 2rem 0 .8rem; color: var(--navy); font-size: 1.45rem; }
.info-card p { margin-bottom: 0; color: var(--muted); }
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.action-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.action-card > span {
  color: var(--blue);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.action-card h2 { margin: 2rem 0 .6rem; color: var(--navy); font-size: 1.4rem; }
.action-card p { margin: 0 0 1.2rem; color: var(--muted); font-size: .94rem; }
.action-card a {
  min-height: 44px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-weight: 900;
  text-underline-offset: 3px;
}
.compact-callout {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto clamp(3.5rem, 7vw, 6rem);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 2rem;
  border-radius: var(--radius);
}
.compact-callout h2 { margin-bottom: .6rem; font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.compact-callout p:last-child { margin-bottom: 0; color: var(--muted); }
.privacy-callout { background: #fff7df; border: 1px solid #f0d58d; }
.callout-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.callout-actions a {
  padding: .65rem .85rem;
  color: var(--navy);
  background: white;
  border: 1px solid rgba(9, 45, 79, .15);
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 850;
  text-decoration: none;
}
.status-banner {
  margin-bottom: 3rem;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #5b430d;
  background: #fff8e7;
  border: 1px solid #efd792;
  border-radius: 14px;
}
.status-banner strong { color: #704c0b; }
.status-banner span { flex: 1; }
.status-banner a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #704c0b;
  font-weight: 900;
}
.official-link-row {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.official-link-row a { padding: 1.15rem; background: white; text-decoration: none; }
.official-link-row strong, .official-link-row span { display: block; }
.official-link-row strong { color: var(--navy); }
.official-link-row span { margin-top: .25rem; color: var(--muted); font-size: .82rem; }
.official-link-row a:hover { background: #f9fcfd; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.analytics-benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.analytics-benefit-grid article { padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; }
.analytics-benefit-grid article > span { color: var(--blue); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.analytics-benefit-grid h2 { margin: 1.2rem 0 .65rem; color: var(--navy); font-size: 1.35rem; }
.analytics-benefit-grid p { margin: 0; color: var(--muted); }

.dashboard-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.dashboard-toolbar h2 { margin-bottom: .4rem; }
.dashboard-toolbar p:last-child { margin: 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.metric-card { padding: 1.5rem; background: var(--wash); border: 1px solid var(--line); border-radius: 16px; }
.metric-card span, .metric-card small { display: block; color: var(--muted); }
.metric-card strong { display: block; margin: 1rem 0 .35rem; color: var(--navy); font-size: 2.6rem; line-height: 1; }
.dashboard-panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.dashboard-panels .chart-card:last-child { grid-column: 1 / -1; }
.chart-card { margin-top: 1rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.grade-chart { display: grid; gap: .9rem; margin-top: 2rem; }
.grade-chart > div { display: grid; grid-template-columns: 80px 1fr 60px; align-items: center; gap: .8rem; }
.grade-chart div div { height: 12px; overflow: hidden; background: #e6edf1; border-radius: 999px; }
.grade-chart i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #47b9bd); border-radius: inherit; }
.grade-chart strong { text-align: right; }
.quality-list { margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; list-style: none; }
.quality-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 1rem; background: var(--wash); border: 1px solid var(--line); border-radius: 12px; }
.quality-list li.ok { background: #effaf5; border-color: #d2f1df; }
.quality-list li.watch { background: #fff7df; border-color: #f3d88a; }
.quality-list span { color: var(--muted); font-weight: 750; }
.quality-list strong { color: var(--navy); }
.dashboard-unavailable { max-width: 760px; margin: 0 auto; text-align: center; }
.dashboard-unavailable h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.dashboard-unavailable > p:not(.eyebrow) { color: var(--muted); }
.linked-dashboard { margin-top: 1rem; padding: 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--wash); border: 1px solid var(--line); border-radius: 14px; }
.linked-dashboard p { margin: .2rem 0 0; color: var(--muted); }
.privacy-strip { margin-top: 1rem; padding: 1.2rem; color: #345266; background: var(--sky); border-radius: 12px; }

.legal-shell, .error-shell { width: min(800px, calc(100% - 2rem)); min-height: 60vh; margin: 0 auto; padding: 5rem 0; }
.legal-shell h1 { color: var(--navy); font-size: clamp(2.4rem, 5vw, 4rem); }
.legal-shell h2 { margin: 2.2rem 0 .7rem; color: var(--navy); font-size: 1.35rem; }
.legal-shell p { color: #465e70; }
.legal-shell a { color: var(--blue); font-weight: 800; }
.error-shell { text-align: center; }
.error-shell > span { color: var(--blue); font-size: 5rem; font-weight: 900; }
.error-shell h1 { font-size: 2.5rem; }
.error-shell p { max-width: 580px; margin: 0 auto 2rem; color: var(--muted); }

.site-footer { padding: 3rem 1rem 1.5rem; color: white; background: #071e32; }
.footer-shell { width: min(1180px, 100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; }
.footer-shell p { max-width: 620px; color: rgba(255, 255, 255, .62); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; align-content: start; }
.footer-links a { color: rgba(255, 255, 255, .8); }
.copyright { width: min(1180px, 100%); margin: 2rem auto 0; padding-top: 1.2rem; color: rgba(255, 255, 255, .45); border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: grid; }
  .nav-links .nav-school { margin-left: 0; text-align: center; }
  .hero-grid, .impact-section, .compact-callout { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding: 5rem 0; }
  .hero-panel { max-width: 580px; }
  .three-grid, .metric-grid, .action-grid, .official-link-row, .analytics-benefit-grid, .dashboard-panels { grid-template-columns: repeat(2, 1fr); }
  .callout-actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .brand small { display: none; }
  .hero h1 { font-size: 2.7rem; }
  .service-grid, .three-grid, .metric-grid, .action-grid, .official-link-row, .trust-band-inner, .analytics-benefit-grid, .dashboard-panels, .quality-list { grid-template-columns: 1fr; }
  .service-card { min-height: 245px; }
  .impact-section { gap: 2rem; }
  .dashboard-toolbar, .linked-dashboard, .footer-shell { align-items: stretch; flex-direction: column; }
  .dashboard-toolbar .button { width: 100%; }
  .grade-chart > div { grid-template-columns: 55px 1fr 42px; }
  .status-banner { align-items: flex-start; flex-direction: column; }
  .compact-callout { margin-bottom: 3rem; }
}

@media print {
  .site-header, .site-footer, .page-hero, .privacy-callout { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .animate-fade-in { animation: none !important; }
}

.school-unavailable-note {
  margin: 1.25rem 0;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(81, 204, 255, 0.28);
  border-radius: 18px;
  background: rgba(8, 28, 52, 0.78);
}
.school-unavailable-note strong,
.school-unavailable-note span { display: block; }
.school-unavailable-note span { margin-top: 0.35rem; color: var(--muted); }
.school-unavailable-note[hidden],
.home-service-grid[hidden] { display: none !important; }

/* 2026 NJSafeAI visual system */
.site-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.site-ambient i { position: absolute; display: block; }
.ambient-orb {
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .09;
}
.ambient-orb-one { top: 20rem; right: -18rem; background: var(--cyan); }
.ambient-orb-two { top: 65rem; left: -20rem; background: var(--violet); }
.ambient-grid {
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(8, 70, 112, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 70, 112, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent 0, black 20rem, black 75%, transparent);
}
.site-header,
main,
.site-footer { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  background: rgba(5, 20, 38, .92);
  border-bottom: 1px solid rgba(109, 217, 255, .18);
  box-shadow: 0 8px 35px rgba(2, 13, 27, .16);
  backdrop-filter: blur(22px) saturate(140%);
}
.nav-shell { min-height: 82px; }
.brand { color: white; }
.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: linear-gradient(145deg, #0e4778, #07182e);
  border: 1px solid rgba(89, 221, 255, .42);
  border-radius: 15px 7px 15px 7px;
  box-shadow: inset 0 0 18px rgba(54, 217, 255, .1), 0 0 22px rgba(54, 217, 255, .09);
  letter-spacing: -.06em;
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
}
.brand-mark span { position: relative; z-index: 1; }
.brand strong { font-size: 1.12rem; }
.brand small { color: rgba(186, 220, 240, .63); }
.nav-links a { color: rgba(227, 242, 251, .78); border: 1px solid transparent; }
.nav-links a:hover { color: white; background: rgba(255, 255, 255, .07); }
.nav-links a[aria-current="page"]:not(.nav-school) {
  color: #d8f8ff;
  background: rgba(54, 217, 255, .1);
  border-color: rgba(54, 217, 255, .18);
  box-shadow: inset 0 0 18px rgba(54, 217, 255, .04);
}
.nav-links .nav-school {
  color: #06182d;
  background: linear-gradient(120deg, #d9f9ff, #76e8ff);
  box-shadow: 0 8px 24px rgba(54, 217, 255, .14);
}
.nav-links .nav-school:hover { color: #06182d; background: white; }
.nav-links .nav-login {
  color: #06182d;
  background: linear-gradient(120deg, #fff8da, #ffd86a);
  box-shadow: 0 8px 24px rgba(255, 216, 106, .14);
}
.nav-links .nav-login:hover { color: #06182d; background: white; }
.nav-toggle {
  color: #dffaff;
  background: rgba(54, 217, 255, .1);
  border: 1px solid rgba(54, 217, 255, .28);
}
.nav-status {
  padding: .35rem .58rem;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  color: rgba(211, 241, 250, .7);
  border: 1px solid rgba(120, 240, 191, .2);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.nav-status i,
.live-chip i {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: #78f0bf;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(120, 240, 191, .8);
}

.hero {
  min-height: 620px;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 34%, rgba(54, 217, 255, .13), transparent 24rem),
    radial-gradient(circle at 12% 95%, rgba(115, 92, 255, .22), transparent 29rem),
    linear-gradient(128deg, #041324 0%, #082b49 54%, #0a3851 100%);
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(139, 224, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 224, 255, .055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(105deg, black, transparent 72%);
}
.hero::after {
  right: -9rem;
  bottom: -13rem;
  width: 39rem;
  height: 39rem;
  border-color: rgba(54, 217, 255, .2);
  box-shadow:
    0 0 0 4.5rem rgba(54, 217, 255, .025),
    0 0 0 9rem rgba(115, 92, 255, .025);
}
.hero-grid {
  min-height: 620px;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 5.5rem 0;
}
.hero h1 {
  max-width: 800px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.25rem, 6.2vw, 5.8rem);
  line-height: .98;
  text-wrap: balance;
}
.hero-copy { max-width: 700px; color: rgba(224, 241, 249, .78); }
.signal-eyebrow { display: flex; align-items: center; gap: .55rem; }
.signal-eyebrow > span {
  width: 18px;
  height: 1px;
  display: inline-block;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.hero-badge {
  width: fit-content;
  margin-bottom: 1.2rem;
  padding: .42rem .72rem;
  color: #bceffc;
  background: rgba(54, 217, 255, .08);
  border: 1px solid rgba(54, 217, 255, .2);
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.button {
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button-primary {
  color: white;
  background: linear-gradient(115deg, #087fc4, #6757e8);
  box-shadow: 0 10px 28px rgba(39, 94, 192, .24);
}
.button-primary:hover { box-shadow: 0 15px 34px rgba(39, 94, 192, .3); }
.hero .button-primary {
  color: #041525;
  background: linear-gradient(120deg, #e0fbff, #61e1ff);
  box-shadow: 0 12px 32px rgba(54, 217, 255, .2);
}
.button-ghost { border-color: rgba(145, 224, 249, .3); background: rgba(255, 255, 255, .055); backdrop-filter: blur(10px); }
.button-light { color: #061a30; background: linear-gradient(120deg, #ffffff, #dffaff); box-shadow: 0 10px 28px rgba(2, 18, 35, .14); }
.button-secondary { background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); }
.hero-trust-line {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.hero-trust-line span,
.hero-signal-row span {
  padding: .38rem .64rem;
  color: rgba(217, 239, 248, .7);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(178, 227, 245, .12);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 720;
}

.command-panel {
  position: relative;
  padding: 1.2rem;
  background: linear-gradient(145deg, rgba(15, 58, 88, .72), rgba(5, 23, 43, .72));
  border-color: rgba(74, 220, 255, .22);
  border-radius: 28px;
  box-shadow: inset 0 0 50px rgba(54, 217, 255, .03), 0 32px 90px rgba(0, 0, 0, .28);
}
.command-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 22px;
}
.panel-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.panel-topline small { color: rgba(211, 238, 248, .78); font-size: .62rem; font-weight: 850; letter-spacing: .12em; }
.live-chip {
  padding: .36rem .58rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #baf6da;
  background: rgba(120, 240, 191, .07);
  border: 1px solid rgba(120, 240, 191, .16);
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.command-orbit {
  position: relative;
  width: min(310px, 78vw);
  aspect-ratio: 1;
  margin: .3rem auto;
  display: grid;
  place-items: center;
}
.orbit-ring {
  position: absolute;
  border: 1px solid rgba(69, 219, 255, .24);
  border-radius: 50%;
}
.orbit-ring::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--cyan);
}
.orbit-ring-one { inset: 15%; animation: orbit-spin 18s linear infinite; }
.orbit-ring-two { inset: 29%; border-style: dashed; animation: orbit-spin 12s linear infinite reverse; }
.orbit-core {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: white;
  background: radial-gradient(circle at 38% 32%, #1477a4, #07182e 72%);
  border: 1px solid rgba(76, 221, 255, .5);
  border-radius: 26px 10px 26px 10px;
  box-shadow: inset 0 0 28px rgba(54, 217, 255, .17), 0 0 34px rgba(54, 217, 255, .15);
  font-size: 1.45rem;
  font-weight: 950;
}
.orbit-node {
  position: absolute;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #bdefff;
  background: rgba(6, 26, 49, .92);
  border: 1px solid rgba(54, 217, 255, .33);
  border-radius: 50%;
  font-size: .64rem;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(54, 217, 255, .09);
}
.orbit-node-one { top: 13%; left: 27%; }
.orbit-node-two { top: 43%; right: 7%; }
.orbit-node-three { bottom: 10%; left: 26%; }
.orbit-node-four { bottom: 25%; right: 19%; }
.command-readout { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.command-readout > div {
  padding: .7rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .55rem;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(174, 225, 244, .1);
  border-radius: 12px;
}
.command-readout > div > span { color: var(--cyan); font-size: .65rem; font-weight: 900; }
.command-readout p { margin: 0; }
.command-readout strong,
.command-readout small { display: block; }
.command-readout strong { margin-bottom: 0; font-size: .76rem; }
.command-readout small { margin-top: .12rem; color: rgba(201, 229, 240, .48); font-size: .58rem; line-height: 1.3; }

.section { position: relative; }
.section-heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}
.section-heading-row > div { max-width: 700px; }
.section-heading-row > p { max-width: 390px; margin: 0 0 .5rem; color: var(--muted); }
.service-grid { gap: 1.15rem; }
.service-card {
  min-height: 390px;
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .76);
  border-color: rgba(128, 165, 187, .24);
  box-shadow: 0 18px 60px rgba(4, 31, 57, .07);
  backdrop-filter: blur(18px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-glow), transparent);
}
.service-card::after {
  right: -7rem;
  bottom: -8rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, var(--card-accent), transparent 67%);
  opacity: .42;
}
.service-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--card-glow) 38%, transparent);
  box-shadow: 0 30px 78px rgba(4, 31, 57, .13);
}
.review-card { --card-accent: #ffe7b8; --card-glow: #f7c653; }
.analytics-card { --card-accent: #bdf4df; --card-glow: #25bc8b; }
.ai-card { --card-accent: #ffe7b8; --card-glow: #f7c653; }
.card-topline { display: flex; align-items: center; justify-content: space-between; }
.access-chip {
  padding: .28rem .48rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.access-chip.public { color: #5545c7; background: #f0edff; border-color: #d9d2ff; }
.access-chip.local { color: #08769a; background: #e8faff; border-color: #c3f0fc; }
.access-chip.gated { color: #167355; background: #e9f9f2; border-color: #c2ead9; }
.access-chip.planned { color: #836019; background: #fff5dc; border-color: #f5dc99; }
.pathway-sigil {
  width: 58px;
  height: 58px;
  margin-top: 1.5rem;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: linear-gradient(145deg, rgba(255, 255, 255, .88), var(--card-accent));
  border: 1px solid rgba(8, 70, 112, .1);
  border-radius: 18px 7px 18px 7px;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, .6);
  font-size: 1.2rem;
  font-weight: 950;
}
.card-kicker { margin-top: 1.4rem; }
.service-card p:not(.card-kicker) { margin-bottom: 1rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 1.3rem; }
.card-tags span {
  padding: .25rem .42rem;
  color: #52697c;
  background: rgba(239, 246, 249, .8);
  border: 1px solid rgba(115, 146, 166, .15);
  border-radius: 7px;
  font-size: .65rem;
  font-weight: 750;
}
.service-card > a { margin-top: auto; text-decoration: none; }

.system-section {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 92% 30%, rgba(54, 217, 255, .12), transparent 25rem),
    linear-gradient(125deg, #06172c, #092a47);
}
.system-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(128, 221, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 221, 255, .04) 1px, transparent 1px);
  background-size: 46px 46px;
}
.system-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.system-copy h2 { max-width: 560px; margin-bottom: 1rem; font-size: clamp(2.25rem, 4.6vw, 4rem); }
.system-copy > p:not(.eyebrow) { max-width: 540px; color: rgba(218, 239, 247, .67); }
.system-copy .eyebrow { color: var(--cyan); }
.system-copy .text-link { color: #bdefff; font-weight: 850; text-underline-offset: 4px; }
.system-stack { display: grid; gap: .7rem; }
.system-stack article {
  padding: 1.05rem 1.15rem;
  display: grid;
  grid-template-columns: 42px 1fr max-content;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(137, 220, 250, .13);
  border-radius: 15px;
  backdrop-filter: blur(12px);
}
.system-stack article > span { color: var(--cyan); font-size: .72rem; font-weight: 900; }
.system-stack strong { display: block; }
.system-stack p { margin: .15rem 0 0; color: rgba(210, 234, 243, .58); font-size: .84rem; }
.system-stack i {
  padding: .28rem .45rem;
  color: #91eaff;
  background: rgba(54, 217, 255, .07);
  border: 1px solid rgba(54, 217, 255, .14);
  border-radius: 6px;
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
}
.trust-band {
  padding: 1.35rem 1rem;
  background: rgba(239, 246, 249, .74);
  border: 0;
  backdrop-filter: blur(12px);
}
.trust-band-inner { gap: .7rem; overflow: visible; background: transparent; border: 0; }
.trust-band-inner div {
  padding: 1.25rem;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(120, 157, 178, .18);
  border-radius: 14px;
}

.ai-ops-section {
  position: relative;
}
.ops-grid,
.system-map-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ops-grid article,
.system-map-grid article,
.decision-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 2.5vw, 1.8rem);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(120, 157, 178, .2);
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(7, 31, 54, .055);
  backdrop-filter: blur(15px);
}
.ops-grid article::before,
.system-map-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.ops-grid span,
.system-map-grid span {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: .28rem .48rem;
  color: #066ca3;
  background: #e8faff;
  border: 1px solid #c3f0fc;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ops-grid h3,
.system-map-grid strong {
  display: block;
  margin: 0 0 .65rem;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.14;
}
.ops-grid p,
.system-map-grid p,
.system-map-grid small {
  margin: 0;
  color: var(--muted);
}
.system-map-grid small {
  display: block;
  margin-top: 1rem;
  color: #276174;
  font-weight: 750;
}
.decision-section { padding-top: 0; }
.decision-panel {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 2rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(54, 217, 255, .16), transparent 18rem),
    linear-gradient(120deg, rgba(255, 255, 255, .86), rgba(240, 249, 255, .8));
}
.decision-panel h2 { margin-bottom: 1rem; font-size: clamp(1.9rem, 3.4vw, 3rem); }
.decision-panel p { color: var(--muted); }
.decision-panel ul {
  margin: 0;
  padding: 1.1rem 1.1rem 1.1rem 2rem;
  color: #23495e;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(120, 157, 178, .18);
  border-radius: 16px;
}
.decision-panel li + li { margin-top: .65rem; }

.audience-grid,
.tool-model-grid,
.addendum-grid {
  display: grid;
  gap: 1rem;
}
.audience-grid,
.tool-model-grid { grid-template-columns: repeat(3, 1fr); }
.addendum-grid { grid-template-columns: repeat(5, 1fr); }
.audience-grid article,
.tool-model-grid article,
.addendum-grid article {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 2.4vw, 1.65rem);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(120, 157, 178, .2);
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(7, 31, 54, .055);
  backdrop-filter: blur(15px);
}
.audience-grid article::before,
.tool-model-grid article::before,
.addendum-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.audience-grid span,
.addendum-grid span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: #836019;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.audience-grid h3,
.tool-model-grid h3,
.addendum-grid h3 {
  margin-bottom: .7rem;
  color: var(--navy);
  font-size: 1.2rem;
}
.audience-grid p,
.tool-model-grid p,
.addendum-grid p,
.audience-grid small {
  margin: 0;
  color: var(--muted);
}
.audience-grid small {
  display: block;
  margin-top: .9rem;
  color: #276174;
  font-weight: 750;
}
.model-chip {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: .28rem .48rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.model-chip.standardize { color: #167355; background: #e9f9f2; border-color: #c2ead9; }
.model-chip.review { color: #08769a; background: #e8faff; border-color: #c3f0fc; }
.model-chip.keep { color: #836019; background: #fff5dc; border-color: #f5dc99; }
.boundary-panel {
  background:
    radial-gradient(circle at 90% 10%, rgba(247, 198, 83, .17), transparent 18rem),
    linear-gradient(120deg, rgba(255, 255, 255, .88), rgba(255, 248, 225, .8));
}

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 15%, rgba(54, 217, 255, .14), transparent 25rem),
    linear-gradient(125deg, #06172c, #0b3655);
}
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10rem;
  bottom: -16rem;
  width: 35rem;
  height: 35rem;
  border: 1px solid rgba(88, 221, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(54, 217, 255, .025), 0 0 0 8rem rgba(115, 92, 255, .02);
}
.page-hero-analytics {
  background:
    radial-gradient(circle at 80% 15%, rgba(83, 235, 187, .16), transparent 24rem),
    linear-gradient(125deg, #06172c, #0b3c4c 60%, #0c5e62);
}
.page-hero-analytics .page-shell {
  padding-block: clamp(2.75rem, 4vw, 3.75rem);
}
.page-hero-analytics .page-shell h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.2rem);
}
.page-hero-ai {
  background:
    radial-gradient(circle at 80% 15%, rgba(247, 198, 83, .2), transparent 24rem),
    linear-gradient(125deg, #06172c, #2c284f 58%, #5d3d17);
}
.page-shell { width: min(1180px, calc(100% - 2rem)); padding: clamp(4.2rem, 7vw, 6.4rem) 0; }
.page-shell h1 { max-width: 920px; font-size: clamp(2.8rem, 5.4vw, 5rem); }
.page-shell p:not(.eyebrow) { max-width: 810px; color: rgba(221, 240, 248, .76); }
.hero-signal-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.hero-signal-row strong { margin-right: .22rem; color: #d8f9ff; }

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.journey-step {
  padding: 1.5rem;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(120, 157, 178, .2);
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(7, 31, 54, .05);
}
.journey-step > span {
  color: #5545c7;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.journey-step h3 { margin: 1.1rem 0 .55rem; color: var(--navy); }
.journey-step p { margin: 0; color: var(--muted); }
.section-actions { margin-top: 1.4rem; }

.action-grid { gap: 1rem; }
.action-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: rgba(255, 255, 255, .74);
  border-color: rgba(120, 157, 178, .2);
  box-shadow: 0 15px 45px rgba(7, 31, 54, .06);
  backdrop-filter: blur(15px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.action-card::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(115, 92, 255, .12), transparent 70%);
}
.action-card:hover { transform: translateY(-5px); border-color: rgba(115, 92, 255, .28); box-shadow: 0 24px 60px rgba(7, 31, 54, .1); }
.action-card > * { position: relative; z-index: 1; }
.action-sigil {
  width: 44px;
  height: 44px;
  margin-top: 1.1rem;
  display: grid;
  place-items: center;
  color: #5545c7;
  background: #f0edff;
  border: 1px solid #ddd7ff;
  border-radius: 13px 5px 13px 5px;
  font-size: .95rem;
  font-style: normal;
  font-weight: 950;
}
.action-card h2 { margin-top: 1.2rem; }
.privacy-callout {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 20%, rgba(115, 92, 255, .12), transparent 17rem),
    rgba(245, 244, 255, .9);
  border-color: rgba(115, 92, 255, .18);
  box-shadow: 0 18px 55px rgba(31, 31, 89, .07);
}
.privacy-callout {
  background:
    radial-gradient(circle at 90% 20%, rgba(54, 217, 255, .12), transparent 17rem),
    rgba(238, 251, 255, .9);
  border-color: rgba(54, 177, 211, .18);
}

.analytics-benefit-grid article {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .74);
  border-color: rgba(120, 157, 178, .2);
  box-shadow: 0 15px 45px rgba(7, 31, 54, .055);
  backdrop-filter: blur(15px);
}
.analytics-benefit-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, #27c99a, transparent);
}
.metric-card,
.chart-card {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(120, 157, 178, .2);
  box-shadow: 0 15px 45px rgba(7, 31, 54, .055);
  backdrop-filter: blur(15px);
}
.metric-card { position: relative; overflow: hidden; }
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #28cda0, #36d9ff);
}
.grade-chart i { background: linear-gradient(90deg, #16a67c, #36d9ff); box-shadow: 0 0 10px rgba(54, 217, 255, .18); }
.privacy-strip { color: #205068; background: linear-gradient(120deg, #e4faff, #edf3ff); border: 1px solid rgba(54, 177, 211, .15); }

.status-banner { color: #27546a; background: linear-gradient(120deg, #eafaff, #f1f3ff); border-color: rgba(54, 177, 211, .2); }
.status-banner strong,
.status-banner a { color: #08769a; }
.official-link-row { gap: .7rem; overflow: visible; background: transparent; border: 0; }
.official-link-row a {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(124, 161, 182, .18);
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(5, 31, 55, .045);
  transition: transform .2s ease, border-color .2s ease;
}
.official-link-row a:hover { transform: translateY(-3px); border-color: rgba(54, 177, 211, .3); }

.legal-shell,
.error-shell {
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(124, 161, 182, .2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.legal-shell h2 { padding-top: .5rem; border-top: 1px solid rgba(124, 161, 182, .17); }
.contact-shell { min-height: 52vh; }
.contact-address {
  margin: 2rem 0 1.25rem;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink) !important;
  background: linear-gradient(120deg, rgba(223, 247, 255, .9), rgba(239, 236, 255, .82));
  border: 1px solid rgba(54, 183, 225, .24);
  border-radius: 16px;
  text-decoration: none;
}
.contact-address span {
  color: #08769a;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.contact-address strong { overflow-wrap: anywhere; }
.contact-note {
  padding-left: 1rem;
  border-left: 3px solid rgba(8, 127, 196, .35);
  font-size: .92rem;
}
.error-shell > span {
  color: #087fc4;
  background: none;
}
.error-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.error-actions .text-link { padding: .7rem; }
.error-details { max-width: 620px; margin: 2rem auto 0; padding: .8rem 1rem; color: var(--muted); background: #f2f7fa; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.error-details summary { color: #36586a; font-weight: 850; cursor: pointer; }
.error-details p { margin: .65rem 0 .2rem; text-align: left; }
.error-details small { overflow-wrap: anywhere; }

.site-footer {
  padding-top: 3.5rem;
  background:
    radial-gradient(circle at 80% 0, rgba(54, 217, 255, .09), transparent 24rem),
    #041322;
  border-top: 1px solid rgba(54, 217, 255, .14);
}
.footer-shell { align-items: flex-start; }
.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }
.footer-brand .brand-mark { flex: 0 0 auto; }
.footer-brand strong { font-size: 1.15rem; }
.footer-brand p { margin: .35rem 0 0; }
.footer-links { max-width: 440px; justify-content: flex-end; }
.footer-links a { color: rgba(219, 239, 247, .72); text-underline-offset: 4px; }
.footer-links a:hover { color: white; }
.footer-meta {
  width: min(1180px, 100%);
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, .68);
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: .82rem;
}
.footer-meta p { margin: 0; }
.status-dot-small { width: 7px; height: 7px; display: inline-block; margin: 0 .3rem 0 0; box-shadow: 0 0 8px rgba(120, 240, 191, .7); }

.footer-brand small,
.form-note {
  display: block;
  margin-top: .35rem;
  font-size: .82rem;
}
.footer-brand small { color: rgba(219, 239, 247, .58); }
.form-note { color: var(--muted); }

.school-picker-card {
  margin: 0 0 1.25rem;
  padding: 1rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(219, 239, 247, .7);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(54, 217, 255, .14);
  border-radius: 18px;
}

.school-picker-card label {
  flex: 1 1 420px;
  color: rgba(255, 255, 255, .88);
  font-weight: 700;
}

.school-picker-card select {
  width: 100%;
  min-height: 44px;
  margin-top: .4rem;
  color: var(--ink);
  background: white;
}
.school-picker-card select option { color: var(--ink); background: white; }

.section > .school-picker-card {
  margin-top: -1rem;
  margin-bottom: 1.35rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .82);
  border-color: rgba(9, 45, 79, .1);
}
.section > .school-picker-card label { color: var(--navy); }

.school-picker-card > div {
  flex: 1 1 420px;
  display: grid;
  gap: .35rem;
}

.school-picker-card > div span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.school-picker-card > div strong {
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.35;
}

.school-picker-card span {
  flex: 0 1 420px;
  line-height: 1.45;
}

.focus-mode-banner.warning,
.privacy-strip.warning {
  border-color: rgba(255, 194, 87, .38);
  background: rgba(255, 194, 87, .08);
}

/* Final visual alignment pass */
.nav-shell,
.hero-grid,
.section,
.trust-band-inner,
.footer-shell,
.footer-meta {
  width: min(1180px, calc(100% - 2rem));
}

.nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-status {
  flex: 0 0 auto;
}

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

.hero-badge,
.live-chip,
.access-chip,
.status-dot-small {
  white-space: nowrap;
}

.hero-trust-line,
.hero-signal-row,
.card-tags {
  align-items: stretch;
}

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

.page-tools .tool-model-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.action-card,
.metric-card,
.chart-card,
.hub-card,
.school-picker-card,
.compact-callout {
  box-shadow: 0 18px 55px rgba(6, 31, 55, .08);
}

.service-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.service-card a {
  margin-top: auto;
}

.card-topline {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.pathway-sigil,
.action-sigil {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: 1.2rem;
  color: var(--navy);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(9, 45, 79, .1);
  border-radius: 18px;
  font-style: normal;
  font-weight: 950;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .2rem 0 1.2rem;
}

.card-tags span {
  padding: .35rem .55rem;
  color: #385063;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(9, 45, 79, .08);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.page-shell {
  width: min(1060px, calc(100% - 2rem));
}

.action-card {
  min-height: 310px;
}

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

.metric-card strong {
  font-size: clamp(2rem, 4vw, 2.7rem);
  overflow-wrap: anywhere;
}

.dashboard-panels {
  align-items: stretch;
}

.dashboard-builder { display: grid; gap: 1rem; }
#dashboard-title,
.builder-template-control select,
.dashboard-widget-controls select {
  width: 100%;
  min-height: 44px;
  padding: .75rem .85rem;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: .8rem;
}
.builder-template-control { max-width: 440px; display: grid; gap: .45rem; margin-top: 1.2rem; }
.dashboard-goal-fieldset {
  min-width: 0;
  margin: 1.25rem 0 1rem;
  padding: 0;
  border: 0;
}
.dashboard-goal-fieldset legend {
  margin-bottom: .7rem;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 900;
}
.dashboard-goal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.dashboard-goal-card {
  position: relative;
  min-height: 132px;
  padding: 1rem 1rem 1rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  color: var(--navy);
  background: linear-gradient(145deg, #fff, #f4fafc);
  border: 1px solid #c8dce5;
  border-radius: 1rem;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.dashboard-goal-card:hover {
  border-color: #58b8d2;
  box-shadow: 0 12px 28px rgba(8, 74, 105, .1);
  transform: translateY(-1px);
}
.dashboard-goal-card:has(input:focus-visible) {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px white;
}
.dashboard-goal-card:has(input:checked) {
  background: linear-gradient(145deg, #effcff, #e6f6fb);
  border-color: #168db0;
  box-shadow: inset 0 0 0 1px #168db0, 0 12px 30px rgba(8, 107, 143, .12);
}
.dashboard-goal-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.dashboard-goal-marker {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.45rem;
  height: 1.45rem;
  border: 2px solid #9db9c5;
  border-radius: 50%;
  background: white;
}
.dashboard-goal-card:has(input:checked) .dashboard-goal-marker {
  border: 5px solid #168db0;
}
.dashboard-goal-card strong { font-size: 1rem; }
.dashboard-goal-card small { color: var(--muted); line-height: 1.45; }
.dashboard-widget-options { margin: 1rem 0; padding: 0; display: grid; gap: .7rem; list-style: none; }
.dashboard-widget-option {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .8fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .85rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: .85rem;
}
.dashboard-widget-option.is-unavailable { background: #fff8e8; border-color: #ebd692; }
.dashboard-widget-option.is-unavailable .dashboard-widget-controls { display: none; }
.dashboard-widget-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--navy);
  font-weight: 850;
}
.dashboard-widget-toggle input { width: 1.15rem; height: 1.15rem; accent-color: var(--blue); }
.dashboard-widget-availability { color: var(--muted); }
.dashboard-widget-controls { display: flex; align-items: center; gap: .4rem; }
.dashboard-widget-controls label { min-width: 108px; color: var(--muted); font-size: .72rem; font-weight: 800; }
.dashboard-widget-controls select { min-height: 44px; margin-top: .2rem; padding: .35rem .45rem; font-size: .78rem; }
.admin-quick-steps { margin: 1rem 0 0; padding-left: 1.3rem; color: var(--ink); }
.admin-quick-steps li { margin: .65rem 0; line-height: 1.55; }
.widget-order-button {
  min-width: 44px;
  min-height: 44px;
  padding: .4rem .55rem;
  color: var(--navy);
  background: white;
  border: 1px solid #bfd2dd;
  border-radius: .55rem;
  font-weight: 800;
  cursor: pointer;
}
.widget-order-button:disabled { opacity: .4; cursor: not-allowed; }
.builder-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.validation-badge {
  flex: 0 0 auto;
  padding: .4rem .65rem;
  color: #4c5961;
  background: #eef3f6;
  border: 1px solid #d5e0e6;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
}
.validation-badge.validation-valid { color: #116147; background: #eaf9f2; border-color: #bee6d3; }
.validation-badge.validation-fallback { color: #76570c; background: #fff7df; border-color: #ead187; }
.validation-badge.validation-invalid { color: #842f2f; background: #fff0f0; border-color: #edc1c1; }
.builder-preview-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0; }
.builder-preview-meta div { padding: .75rem; background: var(--wash); border: 1px solid var(--line); border-radius: .7rem; }
.builder-preview-meta dt { color: var(--muted); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.builder-preview-meta dd { margin: .25rem 0 0; color: var(--navy); font-weight: 850; overflow-wrap: anywhere; }
.validation-check-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; list-style: none; }
.validation-check-list li { padding: .65rem .7rem; display: flex; align-items: flex-start; gap: .5rem; background: #f4f7f9; border: 1px solid var(--line); border-radius: .65rem; color: var(--muted); font-size: .8rem; }
.validation-check-list li strong { color: #166447; }
.validation-check-list li.watch strong { color: #8a5c00; }
.dashboard-unavailable-list { margin-top: .9rem; padding: .8rem; color: #6d4b07; background: #fff8e5; border: 1px solid #ead28d; border-radius: .75rem; }
.dashboard-unavailable-list ul { margin: .45rem 0 0; padding-left: 1.15rem; }
.dashboard-widget-unavailable { border-color: #e0c982 !important; background: #fff9e9 !important; }
.dashboard-unavailable-note { margin-top: .75rem; padding: .65rem .75rem; color: #6f530d; background: #fff6d9; border: 1px solid #ead188; border-radius: .65rem; font-size: .82rem; font-weight: 750; }
.dashboard-definition {
  margin: .45rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.dashboard-comparison-note {
  margin: 1rem 0 0;
  padding: .8rem .9rem;
  color: #174e45;
  background: #edf9f5;
  border: 1px solid #c4e7db;
  border-radius: .75rem;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.5;
}
.metric-card.widget-size-compact { padding: 1rem; }
.metric-card.widget-size-compact strong { font-size: 1.8rem; }
.dashboard-layout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.dashboard-layout > .widget-size-compact { grid-column: span 1; }
.dashboard-layout > .widget-size-standard { grid-column: span 2; }
.dashboard-layout > .widget-size-wide { grid-column: 1 / -1; }
.dashboard-layout > .chart-card.widget-size-compact { padding: 1.1rem; }
@media (max-width: 760px) {
  .journey-grid { grid-template-columns: 1fr; }
  .dashboard-widget-option { grid-template-columns: 1fr; }
  .dashboard-widget-controls { justify-content: flex-start; flex-wrap: wrap; }
  .builder-preview-meta,
  .validation-check-list { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-layout > .widget-size-wide { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .dashboard-goal-grid { grid-template-columns: 1fr; }
  .builder-preview-heading { align-items: stretch; flex-direction: column; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-layout > .widget-size-compact,
  .dashboard-layout > .widget-size-standard,
  .dashboard-layout > .widget-size-wide { grid-column: auto; }
}

.chart-card {
  background: white;
}

.privacy-strip {
  border: 1px solid rgba(54, 217, 255, .16);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .85rem;
}

@media (max-width: 1120px) {
  .service-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-tools .tool-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .action-grid,
  .official-link-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .school-picker-card {
    align-items: stretch;
    flex-direction: column;
  }
  .school-picker-card span {
    flex: 0 1 auto;
  }
  .service-grid,
  .metric-grid,
  .action-grid,
  .official-link-row,
  .dashboard-panels,
  .hub-form-grid,
    .page-tools .tool-model-grid {
    grid-template-columns: 1fr;
  }
  .service-card,
  .action-card {
    min-height: auto;
  }
  .footer-shell {
    grid-template-columns: 1fr;
  }
}

.motion-ready [data-reveal] {
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
}
.motion-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(22px);
}

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

@media (max-width: 1120px) {
  .nav-status { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .ops-grid,
  .system-map-grid,
  .audience-grid,
  .tool-model-grid { grid-template-columns: repeat(2, 1fr); }
  .addendum-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .decision-panel { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .site-header { min-height: 78px; }
  .nav-shell { min-height: 78px; }
  .nav-links {
    top: 78px;
    color: white;
    background: rgba(5, 20, 38, .98);
    border-color: rgba(54, 217, 255, .14);
  }
  .nav-links a { color: rgba(230, 244, 250, .8); }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding: 4.7rem 0; }
  .hero-copy-block { max-width: 760px; }
  .command-panel { width: min(620px, 100%); }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .system-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ops-grid,
  .system-map-grid,
  .audience-grid,
  .tool-model-grid { grid-template-columns: 1fr; }
  .addendum-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .site-ambient { display: none; }
  .nav-shell { width: min(100% - 1.25rem, 1180px); }
  .brand-mark { width: 45px; height: 45px; }
  .hero { min-height: auto; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 3.5rem); }
  .hero-grid { padding: 4rem 0; }
  .hero-trust-line span { flex: 1 1 44%; text-align: center; }
  .command-panel { padding: 1rem; }
  .command-orbit { width: min(260px, 75vw); }
  .command-readout { grid-template-columns: 1fr; }
  .command-readout > div { padding: .58rem .7rem; }
  .section { width: min(100% - 1.25rem, 1180px); }
  .service-card { min-height: 350px; }
  .system-stack article { grid-template-columns: 32px 1fr; }
  .system-stack article > i { display: none; }
  .page-shell { width: min(100% - 1.25rem, 1180px); }
  .page-shell h1 { font-size: clamp(2.45rem, 12vw, 3.4rem); }
  .hero-signal-row span { flex: 1 1 44%; text-align: center; }
  .ops-grid article,
  .system-map-grid article,
  .audience-grid article,
  .tool-model-grid article,
  .addendum-grid article,
  .decision-panel { padding: 1.15rem; border-radius: 16px; }
  .addendum-grid { grid-template-columns: 1fr; }
  .official-link-row { gap: .65rem; }
  .legal-shell,
  .error-shell { width: min(100% - 1.25rem, 800px); margin-top: 1.5rem; padding: 1.35rem; }
  .contact-address { align-items: flex-start; flex-direction: column; }
  .footer-shell { width: min(100% - 1.25rem, 1180px); }
  .footer-links { justify-content: flex-start; }
  .footer-meta { width: min(100% - 1.25rem, 1180px); align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring { animation: none; }
  .motion-ready [data-reveal],
  .motion-ready [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}

/* Homepage UX refinement */
.nav-toggle > span:first-child {
  position: relative;
  width: 18px;
  height: 12px;
  display: inline-block;
  margin-right: .45rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.nav-toggle > span:first-child::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  border-top: 2px solid currentColor;
}
.nav-toggle[aria-expanded="true"] > span:first-child { border-color: transparent; }
.nav-toggle[aria-expanded="true"] > span:first-child::before,
.nav-toggle[aria-expanded="true"] > span:first-child::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] > span:first-child::after { transform: rotate(-45deg); }

.home-hero {
  min-height: 650px;
  background:
    radial-gradient(circle at 76% 32%, rgba(54, 217, 255, .16), transparent 25rem),
    radial-gradient(circle at 9% 96%, rgba(115, 92, 255, .2), transparent 31rem),
    linear-gradient(128deg, #041322 0%, #082b49 56%, #0a4055 100%);
}
.home-hero .hero-grid {
  min-height: 650px;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .78fr);
}
.home-hero h1 { max-width: 820px; }
.home-hero h1 span {
  color: #a9efff;
  background: linear-gradient(100deg, #effdff 10%, #74e5ff 72%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-proof {
  max-width: 710px;
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(159, 226, 249, .14);
  border: 1px solid rgba(159, 226, 249, .14);
  border-radius: 16px;
}
.hero-proof div { padding: .85rem 1rem; background: rgba(4, 22, 40, .42); }
.hero-proof strong,
.hero-proof span { display: block; }
.hero-proof strong { color: #f2fbff; font-size: .78rem; }
.hero-proof span { margin-top: .16rem; color: rgba(202, 230, 240, .57); font-size: .68rem; }

/* Homepage-only refinements keep private dashboard layouts unchanged. */
.page-index .home-hero { min-height: auto; }
.page-index .home-hero .hero-grid { min-height: 540px; padding-block: 3.5rem; gap: 3rem; }
.page-index .home-hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.3rem); line-height: 1.1; }
.page-index .hero-copy { max-width: 36rem; color: #d1e4ee; }
.page-index .home-access-note { margin: 1rem 0 0; color: #bbd1df; font-size: .85rem; }
.page-index .access-preview { border-color: #396075; box-shadow: 0 20px 60px #00132245; }
.page-index .access-preview-heading { margin: 1.5rem 0; grid-template-columns: 1fr; }
.page-index .access-preview-mark { display: none; }
.page-index .access-preview-heading h2 { font-size: 1.65rem; }
.page-index .home-panel-label { color: #abe7f4; font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.page-index .home-indicators { margin: 0; padding: 0; list-style: none; }
.page-index .home-indicators small { color: #d1e4ee; font-size: .87rem; }
.page-index .home-panel-note { margin: 1rem 0 0; color: #bbd1df; font-size: .82rem; }
.page-index #analytics-purpose { padding-block: 2rem; }
.home-safeguards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #cddde5; }
.home-safeguards h2 { font-size: 1rem; margin: 0 0 .4rem; }
.home-safeguards p { margin: 0; color: #445c6c; font-size: .92rem; }
.page-index .resource-card { min-height: 220px; box-shadow: none; border-top: 3px solid #1b7188; }
@media (max-width: 960px) {
  .page-index .home-hero .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-index .access-preview { max-width: none; }
}
@media (max-width: 600px) {
  .page-index .home-hero .hero-grid { padding-block: 2.5rem; }
  .home-safeguards { grid-template-columns: 1fr; gap: 1.2rem; }
}
.resource-section { padding-top: 1rem; }
.resource-access-note { color: var(--muted); line-height: 1.65; margin-top: 1.25rem; }
.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.resource-card {
  min-height: 245px;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(145deg, #ffffff, #f3f9fc);
  border: 1px solid rgba(9, 48, 76, .11);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(4, 29, 50, .08);
}
.resource-card-label {
  color: #186a82;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.resource-card h3 { margin: .7rem 0 .45rem; color: var(--navy); font-size: 1.35rem; }
.resource-card p { margin: 0 0 1.2rem; color: var(--muted); line-height: 1.65; }
.resource-link {
  margin-top: auto;
  color: #075e78;
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: .22rem;
}
.resource-link:hover { color: #043e54; }

.access-preview {
  padding: 1.4rem;
  align-self: center;
}
.access-preview-heading {
  margin: 2.1rem 0 1.7rem;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 1rem;
}
.access-preview-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: white;
  background: radial-gradient(circle at 35% 30%, #1a7ca2, #07182e 72%);
  border: 1px solid rgba(93, 226, 255, .42);
  border-radius: 22px 9px 22px 9px;
  box-shadow: inset 0 0 28px rgba(54, 217, 255, .15), 0 0 28px rgba(54, 217, 255, .1);
  font-size: 1.25rem;
  font-weight: 950;
}
.access-preview-heading .eyebrow { margin-bottom: .38rem; color: #83e7ff; }
.access-preview-heading h2 { margin: 0; color: white; font-size: clamp(1.55rem, 2.4vw, 2.2rem); }
.access-steps { margin: 0; padding: 0; display: grid; gap: .65rem; list-style: none; }
.access-steps li {
  position: relative;
  padding: .9rem 1rem;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: .8rem;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(174, 225, 244, .11);
  border-radius: 14px;
}
.access-steps li > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #06182d;
  background: #8deaff;
  border-radius: 10px 4px 10px 4px;
  font-size: .72rem;
  font-weight: 950;
}
.access-steps strong,
.access-steps small { display: block; }
.access-steps strong { color: #effbff; font-size: .84rem; }
.access-steps small { margin-top: .12rem; color: rgba(199, 228, 240, .55); font-size: .7rem; }
.access-audiences { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.access-audiences span {
  flex: 1 1 auto;
  padding: .4rem .5rem;
  color: rgba(218, 242, 250, .7);
  background: rgba(54, 217, 255, .045);
  border: 1px solid rgba(54, 217, 255, .11);
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 800;
  text-align: center;
}

.pathway-section { padding-top: clamp(4.5rem, 8vw, 7rem); }
.home-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-service-grid .service-card { min-height: 430px; }
.home-service-grid .pathway-sigil svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-service-grid .service-card h3 { font-size: clamp(1.45rem, 2vw, 1.9rem); }
.home-service-grid .service-card p:not(.card-kicker) { font-size: .93rem; }
.home-service-grid .card-status {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #68501a;
  font-size: .78rem;
  font-weight: 850;
}
.home-service-grid .card-status i {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(247, 198, 83, .18);
}

.school-context-card {
  margin-bottom: 1.5rem !important;
  padding: 1rem 1.1rem !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.2fr) auto;
  align-items: center !important;
  gap: 1.2rem !important;
  background: linear-gradient(120deg, rgba(255, 255, 255, .92), rgba(238, 250, 255, .86)) !important;
  border-color: rgba(42, 154, 194, .18) !important;
}
.school-picker-control label,
.school-picker-summary > span { color: #08769a !important; font-size: .68rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.school-picker-control select {
  min-height: 48px;
  padding: .7rem 2.4rem .7rem .8rem;
  border: 1px solid #c2d9e5;
  border-radius: 12px;
}
.school-picker-summary strong,
.school-picker-summary small { display: block; }
.school-picker-summary strong { margin-top: .18rem; color: var(--navy); font-size: .92rem; }
.school-picker-summary small { margin-top: .12rem; color: var(--muted); font-size: .72rem; }
.school-site-link {
  min-height: 44px;
  padding: .65rem .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  color: white;
  background: var(--navy);
  border-radius: 11px;
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.school-site-link:hover { background: var(--navy-2); }

.home-assurance {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 88% 10%, rgba(54, 217, 255, .13), transparent 26rem),
    linear-gradient(125deg, #051525, #092d48);
}
.home-assurance::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(128, 221, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 221, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.assurance-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
}
.assurance-copy .eyebrow { color: #89e9ff; }
.assurance-copy h2 { margin-bottom: 1.1rem; font-size: clamp(2.15rem, 4.2vw, 3.7rem); }
.assurance-copy > p:not(.eyebrow) { color: rgba(214, 238, 247, .66); }
.assurance-copy .text-link { color: #a9efff; font-weight: 850; text-underline-offset: 4px; }
.assurance-list { display: grid; gap: .75rem; }
.assurance-list > div {
  padding: 1.15rem 1.25rem;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(151, 222, 248, .12);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}
.assurance-list > div > span { color: #59dbfa; font-size: .7rem; font-weight: 950; }
.assurance-list p { margin: 0; }
.assurance-list strong,
.assurance-list small { display: block; }
.assurance-list small { margin-top: .22rem; color: rgba(208, 235, 245, .57); }

@media (max-width: 1120px) {
  .home-hero .hero-grid { grid-template-columns: 1fr; }
  .access-preview { width: min(700px, 100%); }
  .home-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-service-grid .service-card { min-height: 390px; }
  .school-context-card { grid-template-columns: 1fr 1fr; }
  .school-site-link { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .home-hero h1 br { display: none; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .hero-proof span { margin-top: 0; text-align: right; }
  .access-preview-heading { grid-template-columns: 58px 1fr; }
  .access-preview-mark { width: 58px; height: 58px; border-radius: 18px 7px 18px 7px; }
  .home-service-grid,
  .school-context-card,
  .assurance-grid,
  .resource-card-grid { grid-template-columns: 1fr !important; }
  .school-site-link { grid-column: auto; }
  .home-service-grid .service-card { min-height: auto; }
  .home-service-grid .service-card > a,
  .assurance-copy .text-link,
  .footer-links a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer-links { row-gap: .25rem; }
}

@media (max-width: 520px) {
  .home-hero .hero-actions .button,
  .home-hero .landing-logout-form { width: 100%; }
  .home-hero .hero-grid { padding-top: 3.4rem; }
  .access-preview { border-radius: 22px; }
  .access-preview-heading { margin-top: 1.6rem; }
  .access-steps li { padding: .8rem; }
}

@media (max-width: 900px) {
  .nav-links.open {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: .4rem;
    padding: .85rem 1rem 1rem;
  }
  .nav-links.open a {
    width: 100%;
    padding: .78rem 1rem;
    text-align: left;
  }
  .nav-links.open .nav-login,
  .nav-links.open .nav-school { margin-left: 0; text-align: center; }
}

@media (max-width: 760px) {
  .home-hero h1 span::before { content: " "; }
}

/* Private admin needs guide */
.admin-needs-guide { width: min(1280px, calc(100% - 2rem)); }
.needs-model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.needs-model-grid article {
  position: relative;
  padding: 1.35rem;
  overflow: hidden;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(120, 157, 178, .2);
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(7, 31, 54, .055);
}
.needs-model-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.needs-model-grid article > span { color: #08769a; font-size: .72rem; font-weight: 900; }
.needs-model-grid h2 { margin: 1.1rem 0 .55rem; color: var(--navy); font-size: 1.3rem; }
.needs-model-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.needs-heading { margin-top: clamp(3rem, 6vw, 5rem); }
.needs-guide-table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(120, 157, 178, .2);
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(6, 31, 55, .08);
}
.needs-guide-table { width: 100%; min-width: 1040px; border-collapse: collapse; font-size: .86rem; line-height: 1.45; }
.needs-guide-table th,
.needs-guide-table td { padding: 1rem; vertical-align: top; text-align: left; border-bottom: 1px solid rgba(120, 157, 178, .16); }
.needs-guide-table thead th { color: white; background: var(--navy); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }
.needs-guide-table tbody th { width: 15%; color: var(--navy); background: rgba(239, 247, 250, .7); }
.needs-guide-table tbody td:nth-child(2),
.needs-guide-table tbody td:nth-child(3) { width: 22%; color: #385063; }
.needs-guide-table tbody td:nth-child(4) { width: 12%; }
.needs-guide-table tbody td:last-child { width: 24%; color: #385063; }
.needs-guide-table tbody tr:last-child th,
.needs-guide-table tbody tr:last-child td { border-bottom: 0; }
.need-status { padding: .3rem .5rem; display: inline-flex; border: 1px solid; border-radius: 999px; font-size: .65rem; font-weight: 900; letter-spacing: .04em; white-space: nowrap; }
.need-status-available { color: #167355; background: #e9f9f2; border-color: #c2ead9; }
.need-status-google_first { color: #08769a; background: #e8faff; border-color: #c3f0fc; }
.need-status-integration { color: #836019; background: #fff5dc; border-color: #f5dc99; }
.need-status-governance { color: #7b332a; background: #fff1ef; border-color: #edb6ae; }
.needs-boundary { margin-top: 1.25rem; }
@media (max-width: 1000px) { .needs-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .admin-needs-guide { width: min(100% - 1.25rem, 1280px); }
  .needs-model-grid { grid-template-columns: 1fr; }
}

.nav-logout-form {
  margin: 0;
}

.nav-logout {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.6rem 0.75rem;
}

.nav-logout:hover,
.nav-logout:focus-visible {
  color: var(--accent, #38bdf8);
}

.dashboard-source-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.04);
}

.dashboard-source-card div {
  min-width: 0;
}

.dashboard-source-card span,
.dashboard-source-card strong {
  display: block;
}

.dashboard-source-card span {
  color: var(--muted, #64748b);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-source-card strong {
  margin-top: 0.3rem;
  overflow-wrap: anywhere;
}

.analytics-query-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-top: 1rem;
}

.analytics-query-form label {
  width: 100%;
  font-weight: 800;
}

.analytics-query-form select {
  min-width: min(100%, 24rem);
  padding: 0.75rem;
  border: 1px solid rgba(100, 116, 139, 0.45);
  border-radius: 0.7rem;
  background: #fff;
}

.analytics-query-answer {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.8rem;
  background: rgba(14, 116, 144, 0.08);
}

.analytics-query-answer:empty {
  display: none;
}

.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}

.assistant-suggestions button {
  min-height: 40px;
  padding: .55rem .75rem;
  color: #123f57;
  background: #edf9fc;
  border: 1px solid #b8dfe9;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.assistant-suggestions button:hover,
.assistant-suggestions button:focus-visible {
  color: #071f34;
  background: #dff5fa;
  border-color: #67bdd1;
}

.save-confirmation {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .75rem;
  color: #0b5c43;
  background: #e8f8f1;
  border: 1px solid #a9ddc8;
  border-radius: .7rem;
  font-weight: 900;
}

.save-confirmation::before {
  content: "✓";
}

.page-logout-confirmation .account-card {
  margin-block: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbdde5;
  border-radius: 1.2rem;
  box-shadow: 0 22px 65px rgba(6, 31, 55, .12);
}

.page-logout-confirmation .account-card h1,
.page-logout-confirmation .account-card h2 {
  color: #071f34;
}

.page-logout-confirmation .account-card p:not(.eyebrow) {
  color: #3f586b;
}

@media (max-width: 780px) {
  .dashboard-source-card {
    grid-template-columns: 1fr 1fr;
  }

  .nav-logout-form,
  .nav-logout {
    width: 100%;
    text-align: left;
  }
}

.analytics-subnav {
  position: sticky;
  top: 82px;
  z-index: 17;
  border-bottom: 1px solid rgba(148, 163, 184, .25);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}

body.private-session .analytics-subnav { top: 140px; }

.analytics-subnav .page-shell {
  display: flex;
  gap: .4rem;
  padding-block: .65rem;
}

.analytics-subnav a {
  min-height: 44px;
  padding: .55rem .8rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  border-radius: .65rem;
  font-weight: 800;
  text-decoration: none;
}

.analytics-subnav a:hover,
.analytics-subnav a[aria-current="page"] {
  color: var(--navy);
  background: #e9f7f4;
}

.ai-boundary-note {
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  color: #174e45;
  background: #edf9f5;
  border: 1px solid #c4e7db;
  border-radius: .8rem;
  font-weight: 750;
}

.builder-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  max-width: 760px;
  margin-top: 1rem;
}

.builder-filter-grid label,
.dashboard-toolbar-actions label {
  display: grid;
  gap: .4rem;
  color: var(--navy);
}

.builder-filter-grid select,
.dashboard-toolbar-actions select,
.analytics-query-form input {
  width: 100%;
  min-height: 44px;
  padding: .7rem .8rem;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: .75rem;
}

.dashboard-toolbar-actions {
  display: flex;
  align-items: end;
  gap: .65rem;
}

.dashboard-toolbar-actions label span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-widget-controls {
  flex-wrap: wrap;
}

.dashboard-widget-controls label {
  min-width: 92px;
}

.data-details {
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: white;
}

.data-details > summary,
.chart-table-details > summary,
.analytics-query-answer summary {
  padding: .85rem 1rem;
  color: var(--navy);
  cursor: pointer;
  font-weight: 850;
}

.data-details .dashboard-source-card {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 .9rem .9rem;
}

.data-details .builder-preview-meta,
.data-details .validation-check-list {
  margin-inline: 1rem;
}

.data-details .validation-check-list {
  margin-bottom: 1rem;
}

.native-chart {
  width: 100%;
  margin-top: 1rem;
  overflow-x: auto;
}

.native-chart svg {
  display: block;
  width: 100%;
  min-width: 480px;
  height: auto;
}

.chart-track { fill: #e9eff2; }
.chart-bar { fill: #0d8a78; }
.chart-axis-label { fill: #52606a; font-size: 14px; font-weight: 700; }
.chart-value { fill: #102a43; font-size: 14px; font-weight: 850; }
.chart-line { stroke: #0d8a78; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: white; stroke: #1769aa; stroke-width: 4; }
.donut-total { fill: #102a43; font-size: 28px; font-weight: 900; }
.donut-label { fill: #65727b; font-size: 13px; font-weight: 750; }

.chart-small-multiples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .7rem;
}

.chart-small-multiples > div {
  display: grid;
  gap: .4rem;
  padding: 1rem;
  background: #f1f7f8;
  border: 1px solid var(--line);
  border-radius: .8rem;
}

.chart-small-multiples span { color: var(--muted); font-weight: 750; }
.chart-small-multiples strong { color: var(--navy); font-size: 1.7rem; }

.chart-table-details {
  margin-top: .65rem;
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.chart-table-details table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.chart-table-details caption {
  padding: .6rem;
  color: var(--muted);
  text-align: left;
}

.chart-table-details th,
.chart-table-details td {
  padding: .55rem .75rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

/* Role-aware command center and embedded NJSafeAI copilot */
.workspace-dock {
  position: sticky;
  top: 82px;
  z-index: 18;
  color: #dff8ff;
  background: rgba(6, 26, 46, .9);
  border-bottom: 1px solid rgba(54, 217, 255, .15);
  box-shadow: 0 12px 35px rgba(3, 16, 29, .12);
  backdrop-filter: blur(22px) saturate(145%);
}
.workspace-dock-inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.workspace-identity { display: flex; align-items: center; gap: .72rem; line-height: 1.15; }
.workspace-identity small,
.workspace-identity strong { display: block; }
.workspace-identity small { margin-bottom: .18rem; color: rgba(189, 225, 239, .56); font-size: .64rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.workspace-identity strong { color: #eefcff; font-size: .8rem; letter-spacing: .02em; }
.workspace-pulse {
  width: 11px;
  height: 11px;
  background: #55e3b2;
  border: 2px solid #0b3146;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(85, 227, 178, .1), 0 0 15px rgba(85, 227, 178, .55);
}
.workspace-actions { display: flex; align-items: center; gap: .45rem; }
.workspace-logout { margin: 0; }
.workspace-action {
  min-height: 36px;
  padding: .48rem .7rem;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: rgba(223, 248, 255, .76);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(155, 226, 248, .12);
  border-radius: 9px;
  font-size: .72rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.workspace-action:hover { color: white; background: rgba(255, 255, 255, .09); border-color: rgba(155, 226, 248, .25); }
.workspace-action kbd,
.workspace-next-card kbd {
  padding: .12rem .32rem;
  color: rgba(220, 244, 251, .55);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 5px;
  font: 700 .62rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.workspace-action-ai {
  color: #06182d;
  background: linear-gradient(120deg, #c9f8ff, #7fe8ff);
  border-color: rgba(154, 240, 255, .6);
  box-shadow: 0 6px 20px rgba(54, 217, 255, .16);
}
.workspace-action-ai:hover { color: #06182d; background: white; }
.workspace-action-ai kbd { color: #235168; background: rgba(7, 36, 57, .08); border-color: rgba(7, 36, 57, .1); }
.ai-spark { color: #513dc4; }

.copilot-head > button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #557084;
  background: #edf5f8;
  border: 1px solid #d8e6ec;
  border-radius: 10px;
  font-size: 1.35rem;
  cursor: pointer;
}
.copilot-backdrop { position: fixed; inset: 0; z-index: 58; background: rgba(2, 13, 25, .58); backdrop-filter: blur(5px); }
.copilot-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(520px, 100%);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0, rgba(54, 217, 255, .14), transparent 20rem),
    linear-gradient(180deg, #f8fdff, #f2f7fb);
  border-left: 1px solid rgba(73, 193, 226, .3);
  box-shadow: -30px 0 100px rgba(1, 14, 28, .3);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility .3s;
}
.copilot-panel.is-open { transform: translateX(0); visibility: visible; }
.copilot-head { padding: 1.15rem 1.2rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; color: white; background: rgba(5, 24, 44, .96); border-bottom: 1px solid rgba(54, 217, 255, .18); }
.copilot-head small { color: rgba(190, 229, 242, .58); font-size: .62rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.copilot-head h2 { margin: .18rem 0 0; font-size: 1.35rem; }
.copilot-head > button { color: #dffaff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.copilot-orbit { width: 42px; height: 42px; display: grid; place-items: center; color: #06182d; background: linear-gradient(145deg, #d7fbff, #65e2ff); border-radius: 14px 6px 14px 6px; box-shadow: 0 0 20px rgba(54, 217, 255, .2); }
.copilot-status { padding: .62rem 1.2rem; display: flex; justify-content: space-between; gap: .8rem; color: #4e6a7b; background: #e9f6fa; border-bottom: 1px solid #d3e6ed; font-size: .68rem; }
.copilot-status span { display: flex; align-items: center; gap: .35rem; color: #167355; font-weight: 850; }
.copilot-status i { width: 7px; height: 7px; background: #2ac48e; border-radius: 50%; box-shadow: 0 0 8px rgba(42, 196, 142, .5); }
.copilot-form { padding: 1rem 1.2rem; display: grid; gap: .8rem; background: rgba(255, 255, 255, .7); border-bottom: 1px solid #d8e6ec; }
.copilot-form label { color: #234458; font-size: .73rem; font-weight: 850; }
.copilot-form select,
.copilot-form textarea { width: 100%; margin-top: .35rem; padding: .72rem .78rem; color: var(--ink); background: white; border: 1px solid #cbdde5; border-radius: 11px; resize: vertical; outline: 0; }
.copilot-form select:focus,
.copilot-form textarea:focus { border-color: #38bfe2; box-shadow: 0 0 0 4px rgba(54, 217, 255, .1); }
.copilot-starters { display: flex; flex-wrap: wrap; gap: .38rem; }
.copilot-starters button {
  min-height: 44px;
  padding: .38rem .55rem;
  color: #17627a;
  background: #eafaff;
  border: 1px solid #c7edf7;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 850;
  cursor: pointer;
}
.copilot-starters button:hover { color: #0a3e52; background: #d9f6ff; }
.copilot-submit { min-height: 44px; color: white; background: linear-gradient(120deg, #12275f, #087fc4); border: 0; }
.copilot-submit:disabled { opacity: .68; cursor: wait; }
.copilot-form > p { margin: 0; color: #6b7f8c; font-size: .66rem; line-height: 1.45; }
.copilot-output { min-height: 0; padding: 1.1rem 1.2rem; overflow-y: auto; }
.copilot-empty { min-height: 100%; display: grid; place-content: center; justify-items: center; color: #617887; text-align: center; }
.copilot-empty > span { width: 46px; height: 46px; display: grid; place-items: center; color: #5545c7; background: #ece9ff; border: 1px solid #dcd6ff; border-radius: 15px 6px 15px 6px; }
.copilot-empty h3 { margin: 1rem 0 .4rem; color: var(--navy); }
.copilot-empty p { max-width: 340px; margin: 0; font-size: .82rem; }
.copilot-result { padding: 1.1rem; background: white; border: 1px solid #d4e3e9; border-radius: 17px; box-shadow: 0 14px 38px rgba(7, 31, 54, .07); }
.copilot-result-chip { padding: .28rem .48rem; display: inline-flex; color: #167355; background: #e8f8f1; border: 1px solid #c4ebda; border-radius: 999px; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.copilot-result h3 { margin: .85rem 0 .5rem; color: var(--navy); font-size: 1.2rem; }
.copilot-result-summary { color: #3d596a; font-size: .83rem; }
.copilot-result-section { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid #e0eaee; }
.copilot-result-section h4 { margin: 0 0 .48rem; color: #174d63; font-size: .78rem; }
.copilot-result-section ul { margin: 0; padding-left: 1.1rem; color: #486171; font-size: .78rem; }
.copilot-result-section li + li { margin-top: .35rem; }
.copilot-result-sources p { margin: .32rem 0; color: #476776; font-size: .74rem; }
.copilot-review { margin-top: 1rem; padding: .65rem .75rem; color: #6d561f; background: #fff7df; border: 1px solid #eed998; border-radius: 10px; font-size: .7rem; font-weight: 800; }
.copilot-copy { margin-top: .75rem; padding: .48rem .7rem; color: #174d63; background: #edf8fb; border: 1px solid #cfe5ec; border-radius: 9px; font-size: .7rem; font-weight: 850; cursor: pointer; }
.copilot-result-error .copilot-result-chip { color: #7b332a; background: #fff1ef; border-color: #edb6ae; }
.action-error-details { margin-top: .85rem; padding-top: .75rem; color: #657b88; border-top: 1px solid #e0eaee; font-size: .7rem; }
.action-error-details summary { color: #4d6878; font-weight: 850; cursor: pointer; }
.action-error-details p { margin: .45rem 0 0; overflow-wrap: anywhere; }
.copilot-foot { min-height: 52px; padding: .75rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #6a7d89; background: white; border-top: 1px solid #d8e6ec; font-size: .68rem; }
.copilot-foot a { color: #08769a; font-weight: 900; text-decoration: none; }

.workspace-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(54, 217, 255, .16), transparent 25rem),
    radial-gradient(circle at 16% 90%, rgba(115, 92, 255, .22), transparent 27rem),
    linear-gradient(125deg, #041322, #0a2b4b 55%, #10375b);
}
.workspace-hero-grid { position: relative; z-index: 1; width: min(1180px, calc(100% - 2rem)); min-height: 560px; margin: 0 auto; padding: clamp(4rem, 7vw, 6rem) 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.workspace-hero-copy h1 { max-width: 760px; margin-bottom: 1.2rem; color: white; font-size: clamp(3rem, 5.4vw, 5.2rem); }
.workspace-hero-copy h1 span { color: #8feaff; text-shadow: 0 0 28px rgba(54, 217, 255, .17); }
.workspace-hero-copy > p:not(.eyebrow) { max-width: 720px; color: rgba(220, 241, 249, .76); font-size: 1.08rem; }
.workspace-hero-copy .button-light span { color: #6048d7; }
.workspace-signal-row { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.workspace-signal-row > span { min-width: 148px; padding: .65rem .75rem; display: grid; grid-template-columns: auto 1fr; column-gap: .5rem; align-items: center; background: rgba(255, 255, 255, .055); border: 1px solid rgba(147, 225, 248, .13); border-radius: 11px; }
.workspace-signal-row i { grid-row: 1 / span 2; width: 7px; height: 7px; background: #55e3b2; border-radius: 50%; box-shadow: 0 0 9px rgba(85, 227, 178, .6); }
.workspace-signal-row strong,
.workspace-signal-row small { display: block; }
.workspace-signal-row strong { color: #eafaff; font-size: .72rem; }
.workspace-signal-row small { color: rgba(205, 232, 242, .5); font-size: .6rem; }
.workspace-orbit-card { position: relative; width: min(430px, 100%); aspect-ratio: 1; margin-left: auto; display: grid; place-items: center; }
.orbit-core { position: relative; z-index: 3; width: 148px; height: 148px; display: grid; place-content: center; justify-items: center; color: white; background: radial-gradient(circle at 35% 25%, #175488, #07182e 72%); border: 1px solid rgba(100, 226, 255, .42); border-radius: 50%; box-shadow: 0 0 0 12px rgba(54, 217, 255, .035), 0 0 55px rgba(54, 217, 255, .16); }
.orbit-core > span { color: #83eaff; font-size: 1.4rem; }
.orbit-core strong { margin-top: .22rem; font-size: 1.05rem; }
.orbit-core small { color: rgba(209, 239, 249, .58); font-size: .62rem; }
.orbit-node { position: absolute; z-index: 4; min-width: 116px; padding: .68rem .75rem; color: white; background: rgba(9, 37, 65, .92); border: 1px solid rgba(115, 214, 245, .2); border-radius: 13px; box-shadow: 0 14px 40px rgba(1, 14, 28, .23); backdrop-filter: blur(16px); }
.orbit-node span { color: #75e5ff; font-size: .57rem; font-weight: 950; }
.orbit-node strong,
.orbit-node small { display: block; }
.orbit-node strong { margin-top: .18rem; font-size: .78rem; }
.orbit-node small { color: rgba(203, 232, 242, .5); font-size: .6rem; }
.orbit-node-one { top: 9%; left: 3%; }
.orbit-node-two { top: 19%; right: -2%; }
.orbit-node-three { bottom: 7%; left: 10%; }
.orbit-ring { position: absolute; border: 1px solid rgba(101, 222, 251, .2); border-radius: 50%; }
.orbit-ring-one { width: 72%; height: 72%; box-shadow: 0 0 40px rgba(54, 217, 255, .04) inset; }
.orbit-ring-two { width: 98%; height: 98%; border-style: dashed; animation: workspace-orbit-spin 36s linear infinite; }
@keyframes workspace-orbit-spin { to { transform: rotate(360deg); } }

.workspace-tool-section { padding-bottom: 2rem; }
.workspace-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.workspace-tool-card { min-height: 260px; padding: 1.4rem; display: flex; flex-direction: column; color: inherit; background: rgba(255, 255, 255, .82); border: 1px solid rgba(120, 157, 178, .2); border-radius: 22px; box-shadow: 0 16px 46px rgba(7, 31, 54, .06); text-align: left; text-decoration: none; cursor: pointer; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.workspace-tool-card:hover { transform: translateY(-6px); border-color: rgba(54, 177, 211, .34); box-shadow: 0 25px 65px rgba(7, 31, 54, .11); }
.workspace-tool-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.workspace-tool-top small { color: #7a8f9d; font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.workspace-tool-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #08769a; background: #e4f8ff; border: 1px solid #c7edf7; border-radius: 14px 6px 14px 6px; font-weight: 950; }
.workspace-tool-card h3 { margin: 2rem 0 .6rem; color: var(--navy); font-size: 1.5rem; }
.workspace-tool-card p { margin: 0 0 1.2rem; color: var(--muted); font-size: .9rem; }
.workspace-tool-card > strong { margin-top: auto; color: #08769a; font-size: .82rem; }
.workspace-tool-analytics .workspace-tool-icon { color: #157658; background: #e7f8f1; border-color: #c4ebda; }
.workspace-next-section { padding-top: 1rem; }
.workspace-next-card { padding: clamp(1.5rem, 4vw, 2.7rem); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; color: white; background: radial-gradient(circle at 90% 10%, rgba(54, 217, 255, .15), transparent 20rem), linear-gradient(125deg, #07182e, #102c61); border: 1px solid rgba(54, 217, 255, .16); border-radius: 25px; box-shadow: 0 25px 75px rgba(5, 24, 44, .18); }
.workspace-next-card h2 { max-width: 760px; margin-bottom: .65rem; font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.workspace-next-card p:last-child { max-width: 760px; margin: 0; color: rgba(220, 241, 249, .7); }
.workspace-next-card kbd { color: #dffaff; }
.workspace-next-card .button-primary { color: #07182e; background: linear-gradient(120deg, #d9f9ff, #7ce9ff); white-space: nowrap; }

@media (max-width: 1020px) {
  .workspace-hero-grid { grid-template-columns: 1fr; }
  .workspace-orbit-card { width: min(390px, 78vw); margin: 0 auto; }
  .workspace-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .workspace-dock { top: 78px; }
  .workspace-action kbd { display: none; }
}
@media (max-width: 700px) {
  .workspace-dock-inner { min-height: 52px; }
  .workspace-identity small { display: none; }
  .workspace-actions { gap: .3rem; }
  .workspace-action { min-height: 44px; padding: .42rem .52rem; }
  .workspace-action > span:not(.ai-spark) { display: none; }
  .workspace-tool-grid { grid-template-columns: 1fr; }
  .workspace-tool-card { min-height: 220px; }
  .workspace-next-card { grid-template-columns: 1fr; }
  .workspace-next-card .button { width: 100%; }
  .workspace-orbit-card { width: min(330px, 90vw); }
  .orbit-node { min-width: 100px; padding: .52rem .6rem; }
  .copilot-status { align-items: flex-start; flex-direction: column; gap: .25rem; }
}
@media (max-width: 460px) {
  .workspace-identity strong { font-size: .68rem; }
  .workspace-action { font-size: .66rem; }
  .workspace-action kbd { display: none; }
  .workspace-logout { display: block; }
  .workspace-logout .workspace-action { padding-inline: .55rem; }
  .workspace-hero-grid { min-height: auto; padding: 3.4rem 0; }
  .workspace-hero-copy h1 { font-size: clamp(2.6rem, 14vw, 3.55rem); }
  .workspace-signal-row > span { flex: 1 1 45%; min-width: 0; }
  .workspace-orbit-card { display: none; }
  .copilot-form { padding: .85rem; }
  .copilot-output { padding: .85rem; }
  .copilot-foot { padding: .7rem .85rem; }
}

@media print {
  .workspace-dock,
  .copilot-panel,
  .copilot-backdrop { display: none !important; }
}

.progress-ring {
  --progress: 0%;
  width: 42px;
  height: 42px;
  margin-top: .45rem;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, white 70%, transparent 71%), conic-gradient(#0d8a78 var(--progress), #e1eaed 0);
}

.dashboard-reload-note {
  max-width: 31rem;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.4;
}

.analytics-query-form input {
  flex: 1 1 22rem;
}

@media (max-width: 760px) {
  .analytics-subnav .page-shell {
    overflow-x: auto;
    white-space: nowrap;
  }

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

  .dashboard-toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .native-chart svg {
    min-width: 420px;
  }
}

@media (max-width: 900px) {
  .analytics-subnav { top: 78px; }
  body.private-session .analytics-subnav { top: 136px; }
}

@media (max-width: 700px) {
  body.private-session .analytics-subnav { top: 130px; }
}
