:root {
  color-scheme: dark;
  --ground: #0b1219;
  --panel: #14212b;
  --panel2: #1a2a34;
  --line: #2b3a43;
  --text: #eef4f2;
  --muted: #9eadaf;
  --cyan: #92e4d8;
  --gold: #e8c181;
  --green: #a5d5ad;
  --amber: #eac38b;
  --red: #e3a19c;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}
body {
  background: var(--ground);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.ambient {
  position: fixed;
  z-index: -1;
  filter: blur(65px);
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}
.ambient-a {
  width: 480px;
  height: 480px;
  background: #3ec2c0;
  top: -240px;
  left: 9%;
}
.ambient-b {
  width: 500px;
  height: 500px;
  background: #b48d56;
  bottom: -320px;
  right: 5%;
}
.shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 5vw;
}
.topbar {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff1b;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -1.5px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--cyan);
  border-radius: 13px;
  color: var(--cyan);
  font-size: 27px;
  line-height: 1;
}
.brand-mark span {
  color: var(--gold);
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 3.1px;
  font-weight: 700;
  color: var(--muted);
  margin-top: -3px;
}
.top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
}
.account-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.sign-out {
  height: 44px;
  border: 1px solid var(--line);
  background: #ffffff0a;
  color: var(--text);
  padding: 0 14px;
  border-radius: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.sign-out {
  min-width: 44px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 390px minmax(150px, 0.6fr);
  align-items: center;
  gap: clamp(25px, 5vw, 100px);
  min-height: calc(100vh - 100px);
  padding: 42px 0;
}
.context {
  align-self: center;
}
.context-number,
.side-note-label,
.side-note-index {
  font-size: 10px;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--cyan);
}
.context h1 {
  font-family: Manrope, sans-serif;
  font-size: clamp(32px, 3.4vw, 58px);
  letter-spacing: -0.06em;
  line-height: 1.13;
  margin: 24px 0;
}
.context h1 em {
  font-style: normal;
  color: var(--cyan);
}
.context p,
.side-note p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 330px;
}
.context-rule,
.side-line {
  height: 1px;
  background: var(--line);
  margin: 38px 0 18px;
}
.context-foot {
  color: var(--muted);
  font-size: 12px;
}
.tiny-orbit {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}
.side-note {
  align-self: end;
  padding-bottom: 28px;
}
.side-note p {
  font-size: 13px;
}
.side-note-index {
  color: var(--muted);
}
.phone {
  background: #101b23;
  border: 1px solid #42505a;
  border-radius: 38px;
  width: 390px;
  min-height: 740px;
  max-height: 820px;
  box-shadow:
    0 30px 90px #0009,
    0 0 0 8px #ffffff06;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone-top {
  height: 65px;
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 29px;
  font-size: 9px;
  letter-spacing: 0.21em;
  font-weight: 800;
  color: var(--cyan);
}
.screen {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 26px 25px;
  scrollbar-width: thin;
  scrollbar-color: #4c6366 transparent;
}
.tabs {
  height: 76px;
  flex: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #101b23;
  padding-bottom: 7px;
}
.tabs button {
  border: 0;
  background: none;
  color: #8a9b9d;
  min-height: 48px;
  min-width: 66px;
  font-size: 11px;
  font-weight: 700;
}
.tabs button.active {
  color: var(--cyan);
}
.tabs .nav-icon {
  display: block;
  font-size: 17px;
  line-height: 23px;
  font-weight: 400;
}
.kicker {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.19em;
  font-weight: 800;
  text-transform: uppercase;
  margin: 9px 0 10px;
}
.kicker.gold {
  color: var(--gold);
}
h2 {
  font:
    800 28px/1.16 Manrope,
    sans-serif;
  letter-spacing: -0.05em;
  margin: 0 0 18px;
}
h3 {
  font:
    800 18px/1.28 Manrope,
    sans-serif;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}
.sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 17px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 17px;
  margin: 12px 0;
}
.card.gold {
  border-color: #ad8d5c;
  background: linear-gradient(145deg, #2b2a27, #1c2529);
}
.card.cyan {
  border-color: #437b7c;
  background: linear-gradient(140deg, #193536, #172630);
}
.card.red {
  border-left: 3px solid var(--red);
}
.card.amber {
  border-left: 3px solid var(--amber);
}
.card .topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.eyelabel {
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}
.bigline {
  font:
    800 24px Manrope,
    sans-serif;
  letter-spacing: -0.04em;
  margin: 8px 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
  line-height: 1.45;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 11px 0;
  font-size: 13px;
}
.row span:last-child {
  text-align: right;
}
.divider {
  border-top: 1px solid var(--line);
  margin: 13px 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}
.badge.unknown {
  color: var(--muted);
}
.badge:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.primary,
.secondary,
.plain,
.tile {
  width: 100%;
  min-height: 48px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 13px;
  text-align: left;
  padding: 11px 15px;
}
.primary {
  border: 1px solid #b5f2e7;
  background: var(--cyan);
  color: #0b2224;
  text-align: center;
  margin-top: 12px;
}
.primary.gold-action {
  background: var(--gold);
  border-color: #f8d7a0;
  color: #30281e;
}
.secondary {
  border: 1px solid var(--line);
  background: #20313b;
  color: var(--text);
  margin-top: 9px;
}
.plain {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: center;
}
.tile {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  margin: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tile:after {
  content: "›";
  font-size: 20px;
  color: var(--cyan);
}
.input-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 22px 0 6px;
}
.input {
  width: 100%;
  height: 48px;
  border: 1px solid #61747a;
  background: #0d1921;
  color: var(--text);
  padding: 0 14px;
  border-radius: 10px;
  outline: none;
}
.input:focus {
  border-color: var(--cyan);
}
.error {
  color: var(--red);
  font-size: 12px;
  min-height: 20px;
  margin-top: 9px;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 13px;
}
.steps {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.step {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.step b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
}
.step.done {
  color: var(--cyan);
}
.step.done b {
  border-color: var(--cyan);
}
.hero-glyph {
  font:
    800 53px Manrope,
    sans-serif;
  color: var(--cyan);
  line-height: 1;
}
.empty-mark {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 24px;
  margin: 14px 0;
}
.loading {
  height: 160px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}
.toast {
  color: var(--cyan);
  font-size: 12px;
  margin-top: 12px;
}
.privacy {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
}
.privacy:before {
  content: "◇";
  color: var(--cyan);
  padding-right: 7px;
}
@media (max-width: 1060px) {
  .layout {
    grid-template-columns: 1fr 390px;
  }
  .side-note {
    display: none;
  }
  .context h1 {
    font-size: 35px;
  }
}
@media (max-width: 680px) {
  .shell {
    padding: 0;
  }
  .context {
    display: none;
  }
  .topbar {
    height: 56px;
    padding: 0 24px;
  }
  .topbar .account-name {
    display: none;
  }
  .layout {
    display: block;
    min-height: calc(100dvh - 56px);
    padding: 0;
  }
  .phone {
    width: 100%;
    min-height: calc(100dvh - 56px);
    max-height: calc(100dvh - 56px);
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .phone-top {
    height: 58px;
  }
  .screen {
    padding: 0 24px 22px;
  }
  .tabs {
    height: calc(69px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }
}
[hidden] {
  display: none !important;
}

/* P2 parent courses view (dev101): one block per course inside the Courses card */
.course h3 { margin: 10px 0 6px; font-size: 1rem; }
/* Parent report (ops3 plan v2): the Home line is the newest fact sentence; counts stay small print. */
.report-home{margin:6px 0 4px;font-size:17px;line-height:1.4;font-weight:600}
.report-lines{margin:6px 0 4px;padding-left:18px;display:grid;gap:6px;line-height:1.45}

/* Child picker (parent with 2+ confirmed children): one button per child, the current one marked. */
.child-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}
.child-picker .secondary {
  width: auto;
  flex: 1 1 0;
  min-width: 96px;
  margin-top: 0;
  text-align: center;
}
.child-picker .secondary.active {
  border-color: var(--cyan);
  color: var(--cyan);
}
