:root {
  --ink: #0f172a;
  --text: #475569;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --learning: #8b5cf6;
  --learning-dark: #7c3aed;
  --learning-soft: #f3e8ff;
  --surface: #f8fafc;
  --line: #e2e8f0;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #eef3f9;
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, input, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.wrap { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.skip {
  position: fixed;
  left: 10px;
  top: 8px;
  z-index: 999;
  transform: translateY(-160%);
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 3px 14px #0f172a22;
}
.skip:focus { transform: none; }
.marketing-header {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.marketing-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 19px;
  font-weight: 850;
}
.brand img { width: 32px; height: 32px; object-fit: contain; }
.marketing-links { display: flex; align-items: center; gap: 22px; }
.marketing-links a { color: var(--text); text-decoration: none; font-weight: 650; }
.marketing-links .marketing-cta {
  background: var(--success);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
}
.demo-intro { text-align: center; padding: 54px 0 36px; }
.eyebrow {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.demo-intro h1 {
  max-width: 940px;
  margin: 14px auto;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -1.5px;
}
.demo-intro p { max-width: 820px; margin: 0 auto; color: var(--text); font-size: 18px; }
.intro-actions, .proof { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.intro-actions { margin-top: 24px; }
.proof { margin-top: 18px; color: var(--text); font-size: 13px; gap: 18px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 780;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.demo-stage {
  margin-bottom: 54px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfd9e7;
  border-radius: 24px;
  box-shadow: 0 28px 70px #0f172a1c;
}
.demo-toolbar {
  min-height: 56px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.demo-toolbar > div:first-child { min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.demo-toolbar strong { font-size: 13px; }
.demo-toolbar span { color: var(--muted); font-size: 12px; }
.toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.view-button, .reset-button { min-height: 36px; border: 0; cursor: pointer; font-weight: 750; }
.view-button { padding: 7px 12px; background: #fff; color: var(--muted); }
.view-button + .view-button { border-left: 1px solid #cbd5e1; }
.view-button.active { background: var(--primary); color: #fff; }
.reset-button { border: 1px solid #cbd5e1; background: #fff; color: var(--text); border-radius: 9px; padding: 7px 11px; }
.app-frame { min-height: 720px; background: #f5f5f5; position: relative; }
.app-view { min-height: 720px; display: none; }
.app-view.active { display: block; }
.kid-app { background: #f5f5f5; }
.kid-nav {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  z-index: 8;
}
.kid-nav-center { display: flex; gap: 9px; justify-content: center; }
.round-nav-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe7fb;
  border-radius: 12px;
  background: #f0f4ff;
  color: #0a3d91;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}
.round-nav-button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.kid-profile-wrap { justify-self: end; position: relative; }
.kid-profile-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}
.kid-profile-button:hover { background: #f8fafc; }
.kid-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #ffe4c4; font-size: 20px; }
.profile-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 210px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 45px #0f172a25;
  z-index: 30;
}
.profile-popover strong { display: block; padding: 5px 7px 8px; color: var(--muted); font-size: 12px; }
.profile-popover button { width: 100%; min-height: 40px; display: flex; gap: 9px; align-items: center; border: 0; border-radius: 9px; background: #fff; text-align: left; padding: 7px 9px; cursor: pointer; }
.profile-popover button[aria-pressed="true"] { background: #eff6ff; color: var(--primary-dark); font-weight: 750; }
.profile-popover button:last-child { margin-top: 5px; border-top: 1px solid var(--line); border-radius: 0; color: var(--text); }
.kid-search { padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.kid-search label { display: block; color: var(--muted); font-size: 12px; font-weight: 750; margin-bottom: 6px; }
.kid-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.kid-search input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 16px; }
.kid-search button { min-height: 44px; border: 0; background: #fff; color: var(--primary); font-weight: 750; cursor: pointer; }
.channel-strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.channel-chip { min-height: 38px; flex: 0 0 auto; border: 1px solid #dbe7fb; border-radius: 999px; padding: 7px 12px; background: #f8fafc; color: #0a3d91; font-weight: 700; cursor: pointer; }
.channel-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.kid-main { padding: 20px; max-width: 1180px; margin: 0 auto; }
.quest-banner { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 15px 18px; margin-bottom: 18px; border-radius: 16px; color: #fff; background: linear-gradient(90deg, #2563eb, #1d4ed8); box-shadow: 0 8px 20px #1d4ed824; }
.quest-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #ffffff22; color: #fef3c7; font-size: 22px; }
.quest-banner span, .quest-banner small { display: block; color: #dbeafe; }
.quest-banner > div:nth-child(2) span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 850; }
.quest-banner strong { display: block; font-size: 18px; margin: 2px 0; }
.quest-banner small { font-size: 13px; }
.quest-count { text-align: center; min-width: 72px; }
.quest-count b { display: block; font-size: 18px; }
.quest-count small { font-size: 10px; }
.quest-banner.complete { background: linear-gradient(90deg, #059669, #10b981); }
.feed-heading-row { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 14px; }
.section-kicker { margin: 0 0 2px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.feed-heading-row h2 { margin: 0; font-size: 26px; }
.time-pill { min-width: 118px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: right; }
.time-pill span { color: var(--muted); font-size: 11px; }
.time-pill b { display: block; font-size: 14px; }
.time-pill.over { border-color: #fecaca; background: #fff1f2; color: #b91c1c; }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.video-card { min-width: 0; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 2px 8px #0f172a0a; }
.video-card button.video-open { width: 100%; padding: 0; border: 0; background: #fff; text-align: left; cursor: pointer; }
.video-thumb { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #e2e8f0; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb::after { content: "▶"; position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; display: grid; place-items: center; padding-left: 3px; border-radius: 50%; background: #0f172acc; color: #fff; font-size: 18px; opacity: .94; }
.duration-badge, .recommend-badge { position: absolute; z-index: 2; border-radius: 7px; font-size: 11px; font-weight: 800; }
.duration-badge { right: 8px; bottom: 7px; padding: 3px 6px; color: #fff; background: #0f172acc; }
.recommend-badge { left: 8px; top: 8px; padding: 4px 7px; color: #854d0e; background: #fef3c7; border: 1px solid #fde68a; }
.watch-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #e2e8f0; z-index: 3; }
.watch-progress span { display: block; height: 100%; background: #ef4444; }
.video-copy { padding: 12px 13px 14px; }
.video-copy strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; min-height: 40px; }
.video-copy small { display: block; margin-top: 5px; color: var(--muted); }
.video-card.locked { opacity: .72; }
.video-card.locked .video-thumb::after { content: "🔒"; padding: 0; background: #0f172add; }
.empty-feed { padding: 52px 20px; text-align: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: 16px; }
.empty-feed > span { display: block; font-size: 44px; margin-bottom: 10px; }
.empty-feed strong { display: block; font-size: 18px; }
.empty-feed p { color: var(--text); margin: 6px 0 0; }
.kid-history { background: #f5f5f5; }
.history-header { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.history-header button { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; color: var(--primary); font-weight: 750; }
.history-header h2 { margin: 0; }
.history-list { display: grid; gap: 10px; }
.history-row { display: grid; grid-template-columns: 82px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.history-row img { width: 82px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.history-row strong { display: block; }
.history-row small { color: var(--muted); }
.history-row > b { color: var(--primary); }
.parent-app.active { display: grid; grid-template-columns: 280px minmax(0,1fr); background: #f8fafc; }
.parent-sidebar { min-height: 720px; display: flex; flex-direction: column; padding: 26px 22px 20px; background: #fff; border-right: 1px solid var(--line); }
.parent-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.parent-brand img { width: 32px; height: 32px; }
.parent-brand strong, .parent-brand span { display: block; }
.parent-brand strong { font-size: 18px; }
.parent-brand span { color: var(--muted); font-size: 12px; }
.parent-profile-card { display: flex; flex-direction: column; align-items: center; padding: 15px; border-radius: 14px; background: #f8fafc; }
.parent-avatar, .parent-header-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #ffe4c4; font-size: 24px; }
.parent-profile-card > strong { margin-top: 7px; }
.parent-profile-card > span:not(.parent-avatar) { color: var(--muted); font-size: 12px; }
.parent-profile-card em { margin-top: 7px; padding: 3px 8px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 11px; font-style: normal; font-weight: 750; }
.parent-menu { margin-top: 18px; display: grid; gap: 4px; }
.parent-menu button { min-height: 43px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 10px; padding: 9px 10px; background: #fff; text-align: left; cursor: pointer; color: #1e293b; font-weight: 650; }
.parent-menu button.active { color: var(--primary); background: #eff6ff; }
.parent-menu button span { width: 22px; text-align: center; }
.menu-divider { height: 1px; background: var(--line); margin: 9px 0; }
.back-to-kid { min-height: 44px; margin-top: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--primary); font-weight: 750; cursor: pointer; }
.parent-content { min-width: 0; }
.parent-header { min-height: 66px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 9px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.parent-header h2 { margin: 0; font-size: 22px; }
.parent-header-avatar { width: 38px; height: 38px; font-size: 19px; }
.mobile-parent-menu { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.parent-main { padding: 24px; max-width: 1050px; }
.parent-screen { display: none; }
.parent-screen.active { display: block; }
.kid-segments { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.kid-segment { min-width: 118px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 9px 12px; cursor: pointer; }
.kid-segment span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #ffe4c4; font-size: 19px; }
.kid-segment.active { border: 2px solid var(--primary); background: #eff6ff; color: var(--primary-dark); }
.parent-kid-detail { margin-top: 14px; }
.status-strip { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; background: #f1f5f9; color: var(--muted); font-size: 11px; font-weight: 750; }
.status-pill.on { background: #ecfdf5; color: #047857; }
.status-pill.warn { background: #fff7ed; color: #c2410c; }
.guided-button { min-height: 38px; border: 0; background: transparent; color: var(--primary); font-weight: 750; cursor: pointer; padding: 4px 2px; }
.parent-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; min-width: 230px; margin: 8px 0 18px; padding: 4px; border-radius: 12px; background: #e2e8f0; }
.parent-tabs button { min-height: 37px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 750; }
.parent-tabs button.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px #0f172a18; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.action-card, .wide-action-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px; text-align: left; cursor: pointer; }
.action-card > span:nth-child(2), .wide-action-card > span:nth-child(2) { min-width: 0; }
.action-card b, .wide-action-card b { display: block; font-size: 15px; }
.action-card small, .wide-action-card small { display: block; margin-top: 2px; color: var(--muted); white-space: normal; }
.action-card i, .wide-action-card i { color: #cbd5e1; font-size: 20px; font-style: normal; }
.action-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-size: 20px; font-weight: 800; }
.action-icon.violet { color: var(--learning); background: #faf5ff; }
.action-icon.blue { color: var(--primary); background: #eef2ff; }
.action-icon.green { color: #22c55e; background: #f0fdf4; }
.action-icon.amber { color: var(--warning); background: #fef3c7; }
.action-icon.learning { color: var(--learning); background: var(--learning-soft); }
.wide-action-card { width: 100%; margin-top: 12px; }
.parent-section-title { margin: 24px 0 10px; color: #64748b; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.history-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.history-summary-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.history-summary-grid article > span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.history-summary-grid article > b { display: block; font-size: 23px; margin-top: 4px; }
.history-summary-grid article > small { color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.blue-dot { background: var(--primary); }
.amber-dot { background: var(--warning); }
.learning-dot { background: var(--learning); }
.mastery-list { display: grid; gap: 9px; }
.mastery-list > div { display: grid; grid-template-columns: minmax(150px, auto) minmax(120px, 1fr); align-items: center; gap: 18px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.mastery-list b, .mastery-list small { display: block; }
.mastery-list small { color: var(--muted); }
.mastery-list progress { width: 100%; accent-color: var(--learning); }
.screen-lede { margin-bottom: 16px; }
.screen-lede h3 { margin: 0 0 5px; font-size: 24px; }
.screen-lede p { margin: 0; color: var(--text); }
.channel-manager, .recommend-list, .blocked-list { display: grid; gap: 10px; }
.manager-row { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.manager-row img { width: 54px; height: 54px; object-fit: cover; border-radius: 11px; }
.manager-row strong, .manager-row small { display: block; }
.manager-row small { color: var(--muted); }
.manager-row button { min-height: 38px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; padding: 6px 10px; cursor: pointer; font-weight: 750; }
.manager-row button.approved { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.manager-row button.blocked { color: #b91c1c; background: #fff1f2; border-color: #fecaca; }
.settings-group h4 { margin: 0 0 9px 4px; color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.settings-group { overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 2px 9px #0f172a0e; }
.settings-group a { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink); text-decoration: none; border-top: 1px solid #f1f5f9; }
.settings-group a:first-of-type { border-top: 0; }
.settings-group b, .settings-group small { display: block; }
.settings-group small { color: var(--muted); }
.settings-group i { color: #94a3b8; font-style: normal; }
.settings-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #e3f2fd; color: var(--primary); }
.youtube-attribution { margin-top: 16px; padding: 12px; border-radius: 12px; background: #fee2e2; color: #dc2626; text-align: center; font-size: 13px; font-weight: 700; }
.demo-disclosure { margin: 0; padding: 15px 22px; border-top: 1px solid var(--line); background: #fafcff; color: var(--muted); font-size: 12px; text-align: center; }
.demo-bottom { padding: 50px 16px; text-align: center; color: #fff; background: linear-gradient(135deg, #1d4ed8, #0891b2); }
.demo-bottom h2 { margin: 0 0 8px; font-size: 32px; }
.demo-bottom p { margin: 0 0 20px; color: #dbeafe; }
.demo-bottom .btn { background: #fff; color: var(--primary-dark); }
.demo-modal-layer { position: fixed; inset: 0; z-index: 200; padding: 22px; overflow-y: auto; background: #020617d9; display: grid; place-items: center; }
.demo-modal { width: min(760px, 100%); max-height: calc(100vh - 44px); overflow: auto; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px #0006; }
.settings-modal header, .player-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.settings-modal header h2, .player-header h2 { margin: 2px 0 0; font-size: 20px; }
.modal-kicker { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.settings-modal header button, .player-header button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #f1f5f9; font-size: 25px; cursor: pointer; }
.settings-modal-body { padding: 20px; }
.setting-block { margin-bottom: 20px; }
.setting-block:last-child { margin-bottom: 0; }
.setting-block h3 { margin: 0 0 3px; font-size: 16px; }
.setting-block > p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.range-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; }
.range-line input { width: 100%; accent-color: var(--primary); }
.range-value { min-width: 70px; font-weight: 850; color: var(--primary); text-align: right; }
.toggle-list { display: grid; gap: 10px; }
.toggle-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row small { color: var(--muted); margin-top: 2px; }
.toggle { width: 48px; height: 28px; position: relative; border: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; }
.toggle::after { content: ""; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .16s ease; }
.toggle[aria-checked="true"] { background: #22c55e; }
.toggle[aria-checked="true"]::after { transform: translateX(20px); }
.module-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.module-choice { min-height: 72px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 11px; cursor: pointer; }
.module-choice strong, .module-choice small { display: block; }
.module-choice small { color: var(--muted); }
.module-choice[aria-pressed="true"] { border: 2px solid var(--learning); background: #faf5ff; }
.setting-save { width: 100%; min-height: 44px; margin-top: 16px; border: 0; border-radius: 11px; background: var(--primary); color: #fff; font-weight: 800; cursor: pointer; }
.guided-steps { display: grid; gap: 12px; counter-reset: setup; }
.guided-steps > div { position: relative; padding: 13px 13px 13px 52px; border: 1px solid var(--line); border-radius: 12px; }
.guided-steps > div::before { counter-increment: setup; content: counter(setup); position: absolute; left: 13px; top: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #dbeafe; color: #1d4ed8; font-weight: 900; }
.player-modal { width: min(1060px, 100%); max-height: calc(100vh - 24px); background: #020617; color: #fff; }
.player-shell { min-height: 600px; position: relative; }
.player-header { border-bottom-color: #ffffff20; background: #020617; }
.player-header .modal-kicker { color: #94a3b8; }
.player-header h2 { color: #fff; max-width: 780px; }
.player-header button { background: #fff; color: #000; }
.player-content { padding: 16px 18px 20px; }
.video-surface { width: min(900px, 100%); aspect-ratio: 16 / 9; margin: 0 auto; position: relative; overflow: hidden; background: #000; border-radius: 8px; }
.youtube-player-slot, .youtube-player-slot iframe, .youtube-player-slot > div { width: 100% !important; height: 100% !important; }
.youtube-player-slot iframe { border: 0; display: block; }
.player-fallback { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 5px; text-align: center; background: #0f172a; color: #fff; }
.player-fallback span { font-size: 38px; }
.player-fallback p { margin: 0; color: #cbd5e1; }
.custom-controls { width: min(900px, 100%); margin: 14px auto 0; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; color: #cbd5e1; font-size: 12px; }
.player-progress { height: 9px; position: relative; overflow: hidden; margin: 8px 0 13px; border-radius: 99px; background: #334155; }
.player-progress span, .player-progress b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.player-progress span { background: #64748b; }
.player-progress b { background: #3b82f6; }
.control-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.control-row button { min-height: 42px; border: 1px solid #475569; border-radius: 10px; background: #1e293b; color: #fff; padding: 8px 13px; cursor: pointer; font-weight: 750; }
.control-row .play-control { min-width: 110px; background: #fff; color: #0f172a; border-color: #fff; }
.control-row .learning-now { border-color: #a78bfa; color: #ede9fe; }
.control-row button:disabled { opacity: .45; cursor: not-allowed; }
.demo-accelerator { display: block; max-width: 720px; margin: 10px auto 0; color: #94a3b8; text-align: center; }
.learning-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #e3f1ff, #fde7f3, #fff6dc); color: var(--ink); }
.learning-card { width: min(720px, 100%); padding: 24px; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px #312e8130; }
.learning-card-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; }
.learning-emoji { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--learning-soft); font-size: 28px; }
.learning-card-head div:nth-child(2) span, .learning-card-head div:nth-child(2) strong { display: block; }
.learning-card-head div:nth-child(2) span { color: var(--learning-dark); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.mastery-stars { color: #f59e0b; font-size: 18px; white-space: nowrap; }
.learning-card h3 { margin: 26px auto 18px; text-align: center; font-size: clamp(24px, 4vw, 38px); line-height: 1.15; max-width: 620px; }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answer-tile { min-height: 78px; border: 0; border-bottom: 5px solid var(--tile-shadow); border-radius: 14px; padding: 12px; background: var(--tile-bg); color: var(--tile-text); cursor: pointer; font-weight: 850; font-size: 17px; }
.answer-tile.correct { outline: 4px solid #22c55e; outline-offset: 2px; }
.answer-tile.wrong { opacity: .48; transform: translateY(2px); }
.learning-feedback { min-height: 30px; margin-top: 13px; text-align: center; font-weight: 850; font-size: 17px; }
.learning-feedback.good { color: #047857; }
.learning-feedback.bad { color: #b91c1c; }
.continue-video { min-height: 46px; margin: 4px auto 0; border: 0; border-radius: 12px; background: var(--primary); color: #fff; padding: 9px 20px; font-weight: 850; cursor: pointer; }
.learning-card > small { display: block; margin-top: 14px; text-align: center; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 400; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); padding: 11px 14px; border-radius: 12px; background: #0f172a; color: #fff; box-shadow: 0 14px 35px #0f172a40; text-align: center; font-size: 13px; font-weight: 700; }
@media (hover:hover) and (pointer:fine) {
  .video-card:hover { box-shadow: 0 9px 22px #0f172a15; transform: translateY(-1px); }
  .action-card:hover, .wide-action-card:hover, .manager-row:hover { border-color: #bfdbfe; }
}
@media (prefers-reduced-motion:no-preference) { .video-card { transition: transform .14s ease, box-shadow .14s ease; } }
@media (max-width: 980px) {
  .feed-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .parent-app.active { grid-template-columns: 230px minmax(0,1fr); }
  .parent-sidebar { padding-inline: 14px; }
}
@media (max-width: 820px) {
  .marketing-links a:not(.marketing-cta) { display: none; }
  .parent-app.active { display: block; position: relative; }
  .parent-sidebar { display: none; position: absolute; inset: 0 auto 0 0; width: min(280px, 86%); z-index: 20; box-shadow: 14px 0 40px #0f172a35; }
  .parent-app.menu-open .parent-sidebar { display: flex; }
  .mobile-parent-menu { display: grid; place-items: center; }
  .parent-main { padding: 18px; }
  .app-frame, .app-view, .parent-sidebar { min-height: 680px; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 20px, 1280px); }
  .demo-intro { padding: 38px 0 28px; }
  .demo-stage { border-radius: 16px; }
  .demo-toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .kid-nav { grid-template-columns: 1fr auto; }
  .kid-nav-spacer { display: none; }
  .kid-nav-center { justify-self: start; }
  .kid-profile-wrap { grid-column: 2; }
  .kid-main { padding: 14px; }
  .quest-banner { grid-template-columns: auto minmax(0,1fr); }
  .quest-count { grid-column: 2; text-align: left; display: flex; gap: 5px; align-items: baseline; }
  .feed-heading-row { align-items: flex-start; }
  .feed-grid { grid-template-columns: 1fr; }
  .action-grid, .history-summary-grid { grid-template-columns: 1fr; }
  .parent-header { padding-inline: 14px; }
  .history-row { grid-template-columns: 72px minmax(0,1fr); }
  .history-row > b { grid-column: 2; }
  .module-choice-grid, .answer-grid { grid-template-columns: 1fr; }
  .demo-modal-layer { padding: 8px; }
  .demo-modal { max-height: calc(100vh - 16px); border-radius: 14px; }
  .player-modal { max-height: calc(100vh - 16px); }
  .player-content { padding: 10px; }
  .learning-overlay { padding: 12px; }
  .learning-card { padding: 17px; border-radius: 18px; }
  .learning-card-head { grid-template-columns: auto minmax(0,1fr); }
  .mastery-stars { grid-column: 2; }
  .control-row button { flex: 1 1 auto; }
}
@media (max-width: 390px) {
  .toolbar-actions { align-items: stretch; flex-direction: column; }
  .view-switch { width: 100%; }
  .reset-button { width: 100%; }
  .kid-nav-center { gap: 5px; }
  .round-nav-button { width: 40px; height: 40px; }
  .kid-profile-button > span:last-child { display: none; }
  .feed-heading-row { flex-direction: column; }
  .time-pill { text-align: left; }
}