@font-face {
  font-family: Heebo;
  src: url("../brand/fonts/Heebo.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 16px/1.6 Heebo, Arial, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.25; letter-spacing: -.8px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
.small, small { font-size: 14px; }
.muted { color: var(--muted); }
.eyebrow { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.skip-link { position: absolute; top: -80px; background: #fff; padding: 16px; }
.skip-link:focus { top: 0; z-index: 40; }
.sidebar {
  position: fixed; inset: 0 0 0 auto; width: 228px;
  background: var(--navy); color: #fff; padding: 30px 18px;
  display: flex; flex-direction: column; z-index: 10;
}
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 36px; }
.brand img { border-radius: 50%; }
.brand strong { display: block; font-size: 17px; }
.brand span { font-size: 14px; color: #c7d7e6; }
.nav-caption { color: #c7d7e6; font-size: 14px; margin: 0 8px 12px; }
.nav-button {
  display: flex; align-items: center; width: 100%; min-height: 50px;
  border: 0; border-radius: 12px; background: transparent; color: #d9e5ef;
  padding: 12px 14px; text-align: right; margin-bottom: 8px;
}
.nav-button[aria-current="page"] { background: #fff; color: var(--navy); font-weight: 700; }
.sidebar-bottom { margin-top: auto; color: #c7d7e6; font-size: 14px; padding-top: 20px; }
.sidebar-bottom p { color: #fff; font-weight: 600; margin-bottom: 4px; overflow-wrap: anywhere; }
.workspace { margin-right: 228px; }
.demo-strip {
  min-height: 40px; padding: 8px 36px; background: #e9eef4; color: #435970;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px;
}
.text-button { background: none; border: 0; color: var(--action); min-height: 44px; font-weight: 600; }
.topbar { display: flex; justify-content: space-between; gap: 20px; padding: 28px 36px 18px; align-items: center; }
.sync { font-size: 14px; color: var(--muted); }
main { padding: 0 36px 40px; max-width: 1280px; }
.login-card, .parent-status, .panel, .child-row, .metric, .hero {
  background: #fff; border: 1px solid var(--line);
}
.login-card, .parent-status, .panel { border-radius: 20px; }
.login-card { padding: 24px; max-width: 520px; }
.login-grid { display: grid; gap: 12px; margin-top: 20px; }
.login-grid button {
  min-height: 56px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; text-align: right; padding: 12px 16px; display: grid; gap: 2px;
}
.login-grid button:hover { background: #edf2f7; }
.child-switch { display: flex; gap: 10px; margin-bottom: 20px; }
.child-switch button {
  min-height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; padding: 8px 18px;
}
.child-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.parent-status { padding: 24px; margin-bottom: 24px; }
.parent-status .row, .row {
  display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px;
}
.parent-heading { display: flex; align-items: center; gap: 16px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.primary, .secondary {
  min-height: 44px; border-radius: 12px; padding: 10px 16px; font-weight: 600;
  border: 1px solid transparent; display: inline-flex; align-items: center;
}
.primary { background: var(--action); color: #fff; }
.secondary { background: #fff; border-color: var(--line); color: var(--text); }
.pill {
  border-radius: 999px; padding: 4px 10px; font-size: 14px; white-space: nowrap;
  background: #edf2f7; color: var(--muted);
}
.pill.success { background: var(--success-soft); color: var(--success); }
.pill.review { background: var(--review-soft); color: var(--review); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.search { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 14px; width: 260px; }
.roster { display: flex; flex-direction: column; gap: 12px; }
.child-row {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px;
}
.avatar {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: #e8edf6; color: #344f70; font-weight: 700; flex-shrink: 0;
}
.avatar.large { width: 64px; height: 64px; font-size: 24px; border-radius: 20px; }
.child-main { flex: 1; min-width: 0; }
.child-main p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.child-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.inline-alert { color: var(--danger); font-size: 14px; display: block; margin-top: 4px; }
.hero {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  background: var(--navy); color: #fff; border-radius: 20px; padding: 28px 30px; margin-bottom: 24px;
}
.hero .eyebrow, .hero .muted, .hero-stat small { color: #c7d7e6; }
.hero h2 { font-size: 26px; margin: 4px 0 7px; }
.hero-number { font-size: 48px; font-weight: 600; line-height: 1.1; display: block; }
.hero-number span { font-size: 22px; color: #c7d7e6; }
.hero-stat { min-width: 150px; text-align: center; border-right: 1px solid #567087; padding-right: 28px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.metric { border-radius: 16px; padding: 18px 22px; }
.metric span { font-size: 14px; color: var(--muted); }
.metric strong { font-size: 30px; display: block; }
.panel { overflow: hidden; }
.panel-head { padding: 22px 24px 16px; display: flex; justify-content: space-between; align-items: center; }
.panel-body { padding: 0 24px 24px; }
.count { background: #edf2f7; border-radius: 100%; min-width: 29px; text-align: center; padding: 1px 8px; font-size: 14px; }
.task { display: flex; gap: 14px; align-items: center; padding: 18px 24px; border-top: 1px solid #e9eef3; }
.task p { font-size: 14px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; border-right: 2px solid #d9e3ed; padding: 0 22px 26px; margin-right: 6px; }
.timeline li:last-child { border-right-color: transparent; padding-bottom: 0; }
.timeline li:before {
  content: ""; position: absolute; right: -6px; top: 8px; width: 10px; height: 10px;
  border-radius: 50%; background: #6488b1;
}
.timeline time, .timeline p { font-size: 14px; color: var(--muted); }
.timeline strong { display: block; }
.empty, .denied, .error { padding: 32px; color: var(--muted); }
.error { color: var(--danger); }
.reason-field { display: grid; gap: 6px; margin-top: 16px; }
.reason-field input { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.toast {
  position: fixed; bottom: 24px; left: 24px; background: var(--navy); color: #fff;
  padding: 14px 20px; border-radius: 14px; opacity: 0; pointer-events: none;
}
.toast.show { opacity: 1; }
@media (max-width: 760px) {
  .sidebar {
    inset: auto 0 0 0; width: 100%; height: 76px; flex-direction: row;
    background: #fff; color: var(--text); border-top: 1px solid var(--line); padding: 6px 10px;
  }
  .brand, .nav-caption, .sidebar-bottom { display: none; }
  #nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); width: 100%; gap: 6px; }
  .nav-button { color: var(--muted); margin: 0; justify-content: center; }
  .nav-button[aria-current="page"] { background: #eaf1fa; color: var(--action); }
  .workspace { margin-right: 0; padding-bottom: 84px; }
  .topbar, .demo-strip, main { padding-right: 16px; padding-left: 16px; }
  .toolbar, .child-row, .hero, .parent-status .row { flex-wrap: wrap; }
  .search, .metrics { width: 100%; }
  .metrics { grid-template-columns: 1fr; }
  .child-actions { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
