:root {
  --zeen-child-scale: 1.06;
  --zeen-child-ink: #172454;
  --zeen-child-blue: #4b78ec;
  --zeen-child-pink: #f06491;
  --zeen-child-mint: #4fc7aa;
  --zeen-child-sun: #ffc94a;
  --zeen-child-purple: #8764e9;
  --zeen-child-shadow: 0 9px 0 #cbd9ed, 0 19px 38px #24476e20;
}

.zeen-age-experience {
  position: relative;
  isolation: isolate;
  z-index: 9;
  width: min(1240px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(290px, .75fr) minmax(540px, 1.25fr);
  grid-template-areas: "guide options" "sound options";
  align-items: stretch;
  gap: 16px 24px;
  margin: 22px auto 32px;
  padding: 24px;
  border: 4px solid #fff;
  border-radius: 32px;
  color: var(--zeen-child-ink);
  background:
    radial-gradient(circle at 3% 5%, #fff2a7 0 7%, transparent 7.3%),
    radial-gradient(circle at 97% 96%, #c9f2ff 0 10%, transparent 10.3%),
    linear-gradient(135deg, #fffdf2, #f1f9ff 52%, #f8f1ff);
  box-shadow: 0 18px 48px #24476e1c, 0 0 0 1px #d8e5f1;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.zeen-age-experience::before,
.zeen-age-experience::after {
  position: absolute;
  z-index: -1;
  color: #f5bd39;
  font-size: 18px;
  content: "✦";
  animation: zeenTwinkle 2.4s ease-in-out infinite;
}
.zeen-age-experience::before { inset: 10px 45% auto auto; }
.zeen-age-experience::after { inset: auto auto 8px 31%; color: #7a65df; animation-delay: -1.2s; }

.zeen-age-guide {
  grid-area: guide;
  min-width: 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.zeen-age-guide > img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  object-position: 50% 12%;
  border: 4px solid #fff;
  border-radius: 24px;
  background: #daf5ee;
  box-shadow: 0 7px 0 #b7dcd4, 0 13px 23px #31536d22;
}
.zeen-age-bubble {
  position: relative;
  min-width: 0;
  display: grid;
  padding: 9px 13px;
  border: 2px solid #dbe6f2;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 18px #314d6e12;
}
.zeen-age-bubble::after {
  position: absolute;
  right: -11px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-right: 2px solid #dbe6f2;
  border-bottom: 2px solid #dbe6f2;
  background: #fff;
  transform: rotate(-45deg);
  content: "";
}
.zeen-age-bubble small { color: #14816e; font-size: 10px; font-weight: 900; }
.zeen-age-bubble strong { font-size: 20px; line-height: 1.3; }
.zeen-age-bubble span { overflow: hidden; color: #67748e; font-size: 11px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }

.zeen-listen,
.zeen-sound {
  min-height: 46px;
  border: 3px solid #fff;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #2d90e9, #536de7);
  box-shadow: 0 6px 0 #2e50ae;
  cursor: pointer;
  font: 900 13px inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.zeen-listen { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 7px; }
.zeen-listen span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #3154bb; background: #fff; font-size: 10px; }
.zeen-sound { grid-area: sound; min-width: 112px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 12px; color: #275c51; background: linear-gradient(145deg, #effff9, #c9f3df); box-shadow: 0 6px 0 #9fcfbb; }
.zeen-sound span { font-size: 20px; line-height: 1; }
.zeen-sound b { font-size: 10px; }

.zeen-age-options {
  grid-area: options;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.zeen-age-options button {
  --age-color: var(--zeen-child-pink);
  position: relative;
  min-width: 0;
  min-height: 142px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 3px solid #fff;
  border-radius: 23px;
  color: var(--zeen-child-ink);
  background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--age-color) 10%, #fff));
  box-shadow: 0 7px 0 color-mix(in srgb, var(--age-color) 28%, #d9e4ef), 0 13px 24px #304a6b16;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.zeen-age-options button:nth-child(2) { --age-color: var(--zeen-child-mint); }
.zeen-age-options button:nth-child(3) { --age-color: var(--zeen-child-purple); }
.zeen-age-options button:hover,
.zeen-age-options button:focus-visible { transform: translateY(-4px) rotate(-.5deg); filter: saturate(1.08); outline: 4px solid color-mix(in srgb, var(--age-color) 25%, transparent); outline-offset: 3px; }
.zeen-age-options button.is-active { color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--age-color) 84%, #fff), var(--age-color)); box-shadow: 0 8px 0 color-mix(in srgb, var(--age-color) 66%, #253d6f), 0 16px 27px color-mix(in srgb, var(--age-color) 26%, transparent); transform: translateY(-2px); }
.zeen-age-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 3px solid #fff; border-radius: 17px; background: #ffffffd9; box-shadow: 0 5px 12px #223b601a; font-size: 28px; }
.zeen-age-options button > span:nth-child(2) { min-width: 0; display: grid; }
.zeen-age-options b { font-size: 30px; line-height: 1; }
.zeen-age-options small { overflow: hidden; margin-top: 7px; color: inherit; font-size: 13px; font-weight: 900; white-space: nowrap; text-overflow: ellipsis; opacity: .88; }
.zeen-age-options i { position: absolute; left: 7px; top: 7px; width: 19px; height: 19px; display: none; place-items: center; border-radius: 50%; color: var(--age-color); background: #fff; font: 900 11px Arial; }
.zeen-age-options button.is-active i { display: grid; }
.zeen-child-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.zeen-kid-pressed { transform: translateY(4px) scale(.98) !important; transition-duration: 60ms !important; }
.zeen-child-spark { position: fixed; z-index: 99999; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; animation: zeenSpark .8s ease-out forwards; }

/* Shared child-facing polish. */
body.zeen-child-mode button,
body.zeen-child-mode a { -webkit-tap-highlight-color: transparent; }
body.zeen-child-mode :is(button, a, input, select):focus-visible { outline: 4px solid #65a2ff !important; outline-offset: 3px !important; }
body.zeen-child-mode .hero,
body.zeen-child-mode .hero-21 { transition: border-radius 220ms ease, box-shadow 220ms ease; }

/* Student library: every age keeps the same real material, but receives a different entrance. */
body.zeen-child-mode .student-choices,
body.zeen-child-mode .journey { border-width: 4px; box-shadow: var(--zeen-child-shadow); }
body.zeen-child-mode .subject-choice-grid button,
body.zeen-child-mode .learning-kind-grid button,
body.zeen-child-mode .stage-buttons button { transform-origin: center bottom; }
body[data-child-age="toddler"] .hero-stats,
body[data-child-age="toddler"] .student-choices > header p,
body[data-child-age="toddler"] .subject-choice-grid small,
body[data-child-age="toddler"] .learning-kind-grid small,
body[data-child-age="toddler"] .filter-panel { display: none !important; }
body[data-child-age="toddler"] .subject-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body[data-child-age="toddler"] .subject-choice-grid button { min-height: 185px; }
body[data-child-age="toddler"] .subject-choice-grid i { width: 78px; height: 78px; border-radius: 25px; font-size: 34px; }
body[data-child-age="toddler"] .subject-choice-grid b { font-size: 22px; }
body[data-child-age="toddler"] .library-shell { grid-template-columns: 1fr; }
body[data-child-age="toddler"] .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-child-age="toddler"] .item { min-height: 360px; border-radius: 32px; }
body[data-child-age="early"] .student-choices { background: linear-gradient(145deg, #fff9dd, #eefaff 48%, #faefff); }
body[data-child-age="junior"] .student-choices { background: radial-gradient(circle at 5% 10%, #ffffff26 0 8%, transparent 8.3%), linear-gradient(135deg, #eef5ff, #f2efff); }
body[data-child-age="junior"] .subject-choice-grid button:hover { transform: translateY(-7px) rotate(.7deg); }

/* Homepage: retain the smart teacher while adapting visual density. */
body[data-child-age="toddler"] .hero-proof,
body[data-child-age="toddler"] .teacher-preview-actions { display: none !important; }
body[data-child-age="toddler"] .hero-actions :is(a, button) { min-height: 68px !important; font-size: 19px !important; border-radius: 24px !important; }
body[data-child-age="toddler"] .header-actions .zeen-child-action:not([data-zeen-action="ask"]):not([data-zeen-action="library"]) { display: none !important; }
body[data-child-age="early"] .hero-copy,
body[data-child-age="early"] .teacher-showcase { border-radius: 38px !important; }
body[data-child-age="junior"] .hero-copy { background: radial-gradient(circle at 94% 5%, #fff2bd55, transparent 25%), linear-gradient(145deg, #fff, #f4f7ff) !important; }

/* Coloring already has a dedicated game layer; use this selector as its one age control. */
body.zeen-child-mode.kid-world .kid-hero .age-choices { display: none; }
body[data-child-age="toddler"].kid-world .activity-launchers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-child-age="toddler"].kid-world .activity-launchers button { min-height: 140px; border-radius: 34px; }
body[data-child-age="toddler"].kid-world .activity-launchers button span { font-size: 52px; }
body[data-child-age="early"].kid-world .kid-hero { background: radial-gradient(circle at 82% 20%, #fff 0 8%, transparent 8.3%), linear-gradient(180deg, #9fe6ff 0, #e9fbff 55%, #d9f5bd 56%, #aee486 100%); }
body[data-child-age="junior"].kid-world .kid-hero { background: radial-gradient(circle at 86% 17%, #ffffffc7 0 7%, transparent 7.3%), linear-gradient(160deg, #7bb8ff, #e8efff 50%, #b5e38a 51%, #7bc763); }

@keyframes zeenTwinkle { 50% { transform: scale(1.45) rotate(20deg); opacity: .45; } }
@keyframes zeenSpark { to { transform: translate(var(--spark-x), var(--spark-y)) scale(.2); opacity: 0; } }

@media (max-width: 1000px) {
  .zeen-age-experience { grid-template-columns: 1fr; grid-template-areas: "guide" "options" "sound"; }
  .zeen-age-options button { min-height: 118px; }
}

@media (max-width: 680px) {
  .zeen-age-experience { display: none !important; }

  body.zeen-mobile-entry-open { overflow: hidden !important; }
  .zeen-mobile-entry {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
    color: #172454;
    background: radial-gradient(circle at 12% 8%, #fff2a8 0 8%, transparent 8.4%), radial-gradient(circle at 92% 92%, #bcecff 0 12%, transparent 12.4%), linear-gradient(145deg, #fffdf1, #edf7ff 52%, #f6efff);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  }
  .zeen-mobile-entry-card { width: min(100%, 430px); display: grid; gap: 16px; padding: 18px; border: 4px solid #fff; border-radius: 32px; background: #ffffffdc; box-shadow: 0 24px 65px #26476d32, 0 0 0 1px #d8e5f0; backdrop-filter: blur(18px); }
  .zeen-entry-brand { display: flex; align-items: center; justify-content: center; gap: 10px; }
  .zeen-entry-brand img { width: 50px; height: 50px; }
  .zeen-entry-brand span { display: grid; }
  .zeen-entry-brand small { color: #258273; font-size: 10px; font-weight: 900; }
  .zeen-entry-brand b { font-size: 21px; }
  .zeen-entry-teacher { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 12px; padding: 13px; border-radius: 24px; background: linear-gradient(135deg, #edf7ff, #fff8dd); }
  .zeen-entry-teacher img { width: 78px; height: 78px; object-fit: cover; object-position: 50% 12%; border: 4px solid #fff; border-radius: 24px; background: #dff5ef; box-shadow: 0 7px 0 #acd9ce; }
  .zeen-entry-teacher span { min-width: 0; display: grid; gap: 3px; }
  .zeen-entry-teacher small { color: #218170; font-size: 10px; font-weight: 900; }
  .zeen-entry-teacher strong { font-size: 23px; line-height: 1.25; }
  .zeen-entry-teacher em { color: #6d7890; font-size: 11px; font-style: normal; line-height: 1.5; }
  .zeen-entry-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
  .zeen-entry-roles button { min-height: 162px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 12px 7px; border: 3px solid #fff; border-radius: 27px; color: #fff; background: linear-gradient(145deg, #4e82ef, #665fdc); box-shadow: 0 8px 0 #3c4dae, 0 17px 29px #314c8b28; font-family: inherit; cursor: pointer; }
  .zeen-entry-roles button + button { color: #174b43; background: linear-gradient(145deg, #a7ead8, #e4f8ec); box-shadow: 0 8px 0 #6cb9a4, 0 17px 29px #315f5724; }
  .zeen-entry-roles button span { width: 58px; height: 58px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 20px; background: #ffffffdd; font-size: 32px; }
  .zeen-entry-roles b { font-size: 20px; }
  .zeen-entry-roles small { max-width: 120px; font-size: 10px; line-height: 1.45; opacity: .88; }
  .zeen-entry-stages { display: grid; gap: 12px; }
  .zeen-entry-stages[hidden] { display: none !important; }
  .zeen-entry-stages header { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; }
  .zeen-entry-stages header > button { width: 42px; height: 42px; border: 0; border-radius: 14px; color: #315a91; background: #edf4ff; font-size: 22px; }
  .zeen-entry-stages header span { display: grid; }
  .zeen-entry-stages header b { font-size: 21px; }
  .zeen-entry-stages header small { color: #6b7890; font-size: 10px; }
  .zeen-entry-stages > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .zeen-entry-stages > div button { min-height: 112px; display: grid; place-items: center; align-content: center; gap: 4px; border: 3px solid #fff; border-radius: 23px; color: #253b75; background: linear-gradient(145deg, #eef5ff, #fff); box-shadow: 0 6px 0 #c8d7ed; font-family: inherit; }
  .zeen-entry-stages > div button:nth-child(2) { background: #effcf8; box-shadow-color: #a9d7cb; }
  .zeen-entry-stages > div button:nth-child(3) { background: #fff6e6; box-shadow-color: #ecd19c; }
  .zeen-entry-stages > div button:nth-child(4) { background: #f6efff; box-shadow-color: #d4c0ec; }
  .zeen-entry-stages > div span { font-size: 30px; }
  .zeen-entry-stages > div b { font-size: 17px; }
  .zeen-entry-stages > div small { color: #74809a; font-size: 9px; }

  .zeen-mobile-stage-bar {
    position: fixed;
    inset: auto 7px max(7px, env(safe-area-inset-bottom));
    z-index: 9998;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    border: 2px solid #fff;
    border-radius: 20px;
    background: #ffffffee;
    box-shadow: 0 14px 40px #1e365b42;
    backdrop-filter: blur(17px);
  }
  .zeen-mobile-stage-bar button { min-width: 0; min-height: 52px; display: grid; place-items: center; align-content: center; gap: 2px; border: 0; border-radius: 14px; color: #53637f; background: transparent; font-family: inherit; }
  .zeen-mobile-stage-bar button span { font-size: 18px; line-height: 1; }
  .zeen-mobile-stage-bar button b { overflow: hidden; width: 100%; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
  .zeen-mobile-stage-bar button.is-active { color: #fff; background: linear-gradient(135deg, #4d78e8, #7460df); box-shadow: 0 4px 0 #3c4fab; }
  body:has(.zeen-mobile-stage-bar) main { padding-bottom: 90px !important; }

  .zeen-age-experience { width: calc(100% - 18px); grid-template-columns: 1fr auto; gap: 10px; margin: 10px auto 16px; padding: 11px; border-radius: 25px; }
  .zeen-age-guide { grid-template-columns: 54px minmax(0, 1fr); }
  .zeen-age-guide > img { width: 54px; height: 54px; border-radius: 18px; }
  .zeen-age-bubble { padding: 7px 10px; }
  .zeen-age-bubble strong { font-size: 16px; }
  .zeen-age-bubble span { display: none; }
  .zeen-listen { min-height: 42px; }
  .zeen-sound { min-width: 58px; width: 58px; min-height: 58px; padding: 4px; border-radius: 18px; }
  .zeen-sound b { display: none; }
  .zeen-age-options { gap: 6px; }
  .zeen-age-options button { grid-template-columns: 1fr; justify-items: center; min-height: 103px; padding: 7px 3px; border-radius: 20px; text-align: center; }
  .zeen-age-icon { width: 43px; height: 43px; border-radius: 15px; font-size: 25px; }
  .zeen-age-options b { font-size: 20px; }
  .zeen-age-options small { font-size: 9px; }
  body[data-child-age="toddler"] .subject-choice-grid,
  body[data-child-age="toddler"] .items { grid-template-columns: 1fr; }
  body[data-child-age="toddler"] .subject-choice-grid button { min-height: 160px; }
}

/* Mobile homepage: one clear action at a time, without the crowded desktop shelf. */
@media (max-width: 680px) {
  body.zeen-child-mode .topbar:has(.header-actions.zeen-child-actions) {
    position: sticky !important;
    top: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 62px !important;
    max-height: 62px !important;
    gap: 8px !important;
    padding: 7px 10px !important;
    overflow: hidden !important;
  }

  body.zeen-child-mode .topbar > nav { display: none !important; }
  body.zeen-child-mode .topbar .mini-brand {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    min-width: 0;
    margin: 0 !important;
  }
  body.zeen-child-mode .topbar .mini-brand img { width: 42px !important; height: 42px !important; }
  body.zeen-child-mode .topbar .mini-brand strong { font-size: 14px !important; }

  body.zeen-child-mode .header-actions.zeen-child-actions {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    display: flex !important;
    width: auto !important;
    gap: 0 !important;
  }

  body.zeen-child-mode .header-actions.zeen-child-actions .zeen-child-action {
    display: none !important;
  }

  body.zeen-child-mode .header-actions.zeen-child-actions [data-zeen-action="studio"] {
    display: flex !important;
    width: auto !important;
    min-width: 112px !important;
    min-height: 44px !important;
    gap: 6px !important;
    padding: 5px 8px !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 0 #b9933f, 0 8px 14px #163b4b20 !important;
  }

  body.zeen-child-mode .header-actions [data-zeen-action="studio"] .zeen-action-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 10px;
    font-size: 17px;
  }

  body.zeen-child-mode .header-actions [data-zeen-action="studio"] .zeen-action-copy small,
  body.zeen-child-mode .header-actions [data-zeen-action="studio"] .zeen-action-spark { display: none; }
  body.zeen-child-mode .header-actions [data-zeen-action="studio"] .zeen-action-copy strong { font-size: 12px; }

  .zeen-age-experience {
    width: calc(100% - 14px);
    gap: 7px;
    margin: 7px auto 10px;
    padding: 8px;
    border-width: 3px;
    border-radius: 21px;
  }

  .zeen-age-guide { grid-template-columns: 42px minmax(0, 1fr); gap: 7px; }
  .zeen-age-guide > img { width: 42px; height: 42px; border-width: 3px; border-radius: 14px; box-shadow: 0 4px 0 #b7dcd4; }
  .zeen-age-bubble { padding: 5px 8px; border-radius: 13px; }
  .zeen-age-bubble::after { display: none; }
  .zeen-age-bubble small { font-size: 8px; }
  .zeen-age-bubble strong { font-size: 14px; }
  .zeen-listen { min-height: 34px; border-width: 2px; border-radius: 12px; box-shadow: 0 4px 0 #2e50ae; font-size: 11px; }
  .zeen-listen span { width: 21px; height: 21px; }
  .zeen-sound { min-width: 42px; width: 42px; min-height: 42px; height: 42px; border-width: 2px; border-radius: 13px; box-shadow: 0 4px 0 #9fcfbb; }
  .zeen-sound span { font-size: 17px; }
  .zeen-age-options { gap: 5px; }
  .zeen-age-options button { min-height: 70px; gap: 3px; padding: 5px 2px; border-width: 2px; border-radius: 16px; box-shadow: 0 4px 0 color-mix(in srgb, var(--age-color) 28%, #d9e4ef); }
  .zeen-age-icon { width: 32px; height: 32px; border-width: 2px; border-radius: 11px; font-size: 19px; }
  .zeen-age-options b { font-size: 17px; }
  .zeen-age-options small { display: none; }

  body.zeen-child-mode .hero-21 {
    min-height: 0 !important;
    padding: 0 7px 24px !important;
    overflow: visible !important;
  }

  body.zeen-child-mode.zeen-home-library-separated .hero-21:has(.teacher-showcase) {
    min-height: 0 !important;
  }

  body.zeen-child-mode .hero-intro {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.zeen-child-mode .hero-copy {
    min-height: 0 !important;
    padding: 17px !important;
    border-radius: 23px !important;
  }

  body.zeen-child-mode .hero-copy .hero-learning-art,
  body.zeen-child-mode .hero-copy .hero-actions,
  body.zeen-child-mode .hero-copy .hero-proof { display: none !important; }
  body.zeen-child-mode .hero-copy .hero-badge { margin: 0 !important; font-size: 10px !important; }
  body.zeen-child-mode .hero-copy h1 { margin: 10px 0 8px !important; font-size: clamp(30px, 9vw, 39px) !important; line-height: 1.12 !important; }
  body.zeen-child-mode .hero-copy > p { margin: 0 !important; font-size: 13px !important; line-height: 1.6 !important; }
  body.zeen-child-mode .teacher-showcase { margin: 0 !important; }

  .zeen-board-shell.is-mobile-accordion .zeen-board-teacher { grid-template-columns: 48px 1fr; gap: 9px; padding: 3px 6px 8px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-avatar { width: 44px; height: 44px; border-width: 3px; border-radius: 15px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-online { font-size: 9px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-teacher h2 { font-size: 18px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-teacher p { display: none; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-composer { margin: 0 0 8px; padding: 8px; border-radius: 16px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-composer > label { margin-bottom: 5px; font-size: 12px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-input-wrap textarea { min-height: 58px; height: 58px; padding: 8px 36px 8px 9px; border-radius: 13px; font-size: 12px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-modes button { min-height: 40px; padding: 5px 3px; border-radius: 11px; font-size: 9px; line-height: 1.25; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-submit { min-height: 45px; margin-top: 7px; border-radius: 13px; font-size: 14px; }
  .zeen-board-shell.is-mobile-accordion .zeen-classroom-board { min-height: 58px; padding: 8px 7px 15px; border-width: 5px; border-radius: 15px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-topline { min-height: 31px; margin-bottom: 4px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-question,
  .zeen-board-shell.is-mobile-accordion .zeen-board-grid { display: none; }
  .zeen-board-shell.is-mobile-accordion [data-status="ready"] .zeen-board-question { display: block; margin-bottom: 6px; padding: 7px 8px; }
  .zeen-board-shell.is-mobile-accordion [data-status="ready"] .zeen-board-grid { display: grid; grid-template-columns: 1fr; gap: 5px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-step { min-height: 0; padding: 7px 8px; border-radius: 10px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-step-toggle { grid-template-columns: 22px 21px 1fr 18px; cursor: pointer; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-step-toggle i { opacity: .85; transition: transform 160ms ease; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-step p { display: none; margin: 7px 2px 1px; padding-top: 7px; border-top: 1px dashed #ffffff26; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-step.is-open { border-color: #f1d6797d; background: #ffffff12; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-step.is-open p { display: block; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-step.is-open .zeen-board-step-toggle i { transform: rotate(180deg); }
  .zeen-board-shell.is-mobile-accordion .zeen-board-tray { display: none; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-followups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-inline: 0; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-followups strong { grid-column: 1 / -1; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-followups button { padding: 6px 3px; font-size: 9px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-full-room { grid-template-columns: 36px 1fr 20px; min-height: 51px; margin-inline: 0; border-radius: 14px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-full-room > span { width: 34px; height: 34px; font-size: 18px; }
  .zeen-board-shell.is-mobile-accordion .zeen-board-full-room > small,
  .zeen-board-shell.is-mobile-accordion .zeen-board-note { display: none; }

  body.zeen-child-mode .zeen-quest-dock,
  body.zeen-child-mode .coloring-books-entry { display: none !important; }
}

/* Desktop entrance: one calm navigation line and one short age decision. */
@media (min-width: 681px) {
  body.zeen-child-mode .topbar:has(.header-actions.zeen-child-actions) {
    position: sticky !important;
    top: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr) !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 84px !important;
    gap: clamp(12px, 2vw, 30px) !important;
    padding: 10px clamp(18px, 4vw, 64px) !important;
    background: #fffffff5 !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px #263f6910 !important;
  }

  body.zeen-child-mode .topbar .mini-brand {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }

  body.zeen-child-mode .topbar .mini-brand img {
    width: 52px !important;
    height: 52px !important;
  }

  body.zeen-child-mode .topbar .mini-brand strong { font-size: 18px !important; }

  body.zeen-child-mode .topbar > nav {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    max-width: none !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 4px !important;
    border: 1px solid #e4ebf4 !important;
    border-radius: 16px !important;
    background: #f8faff !important;
    box-shadow: inset 0 1px 0 #fff !important;
    overflow: visible !important;
  }

  body.zeen-child-mode .topbar > nav a {
    min-height: 38px !important;
    gap: 0 !important;
    padding: 8px clamp(7px, .75vw, 13px) !important;
    border: 0 !important;
    border-radius: 11px !important;
    color: #334363 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: clamp(11px, .8vw, 13px) !important;
    transform: none !important;
  }

  body.zeen-child-mode .topbar > nav a::before { display: none !important; }
  body.zeen-child-mode .topbar > nav a:hover {
    color: #214c91 !important;
    background: #edf3ff !important;
    transform: none !important;
    box-shadow: none !important;
  }

  body.zeen-child-mode .topbar > nav a:first-child {
    color: #fff !important;
    background: linear-gradient(135deg, #3f75e7, #6864df) !important;
    box-shadow: 0 4px 10px #4c6ed52b !important;
  }

  body.zeen-child-mode .header-actions.zeen-child-actions {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    display: flex !important;
    width: auto !important;
    gap: 7px !important;
  }

  body.zeen-child-mode .header-actions.zeen-child-actions .zeen-child-action {
    display: none !important;
  }

  body.zeen-child-mode .header-actions.zeen-child-actions [data-zeen-action="studio"],
  body.zeen-child-mode .header-actions.zeen-child-actions [data-zeen-action="ask"] {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 48px !important;
    gap: 7px !important;
    padding: 6px 10px !important;
    border-width: 1px !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 12px #1b3e6420 !important;
    overflow: hidden !important;
  }

  body.zeen-child-mode .header-actions.zeen-child-actions [data-zeen-action="ask"]::after,
  body.zeen-child-mode .header-actions.zeen-child-actions .zeen-child-action::before,
  body.zeen-child-mode .header-actions .zeen-action-spark { display: none !important; }

  body.zeen-child-mode .header-actions .zeen-action-icon,
  body.zeen-child-mode .header-actions .zeen-action-avatar {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
    border-width: 2px !important;
    border-radius: 11px !important;
    font-size: 18px !important;
  }

  body.zeen-child-mode .header-actions .zeen-action-copy small { display: none !important; }
  body.zeen-child-mode .header-actions .zeen-action-copy strong { font-size: 13px !important; }
}

@media (min-width: 1100px) {
  body.zeen-child-mode .zeen-age-experience {
    width: min(1280px, calc(100% - 48px));
    grid-template-columns: minmax(280px, .8fr) minmax(480px, 1.55fr) 54px;
    gap: 12px;
    margin: 12px auto 18px;
    padding: 10px 14px;
    border-width: 3px;
    border-radius: 24px;
    box-shadow: 0 12px 32px #24476e16, 0 0 0 1px #d8e5f1;
  }

  body.zeen-child-mode .zeen-age-guide {
    grid-template-columns: 52px minmax(150px, 1fr) 46px;
    gap: 8px;
  }

  body.zeen-child-mode .zeen-age-guide > img {
    width: 52px;
    height: 52px;
    border-width: 3px;
    border-radius: 17px;
    box-shadow: 0 4px 0 #b7dcd4, 0 8px 16px #31536d18;
  }

  body.zeen-child-mode .zeen-age-bubble {
    padding: 6px 10px;
    border-width: 1px;
    border-radius: 13px;
    box-shadow: 0 4px 12px #314d6e0d;
  }

  body.zeen-child-mode .zeen-age-bubble::after { display: none; }
  body.zeen-child-mode .zeen-age-bubble small { font-size: 8px; }
  body.zeen-child-mode .zeen-age-bubble strong { font-size: 16px; }
  body.zeen-child-mode .zeen-age-bubble span { display: none; }

  body.zeen-child-mode .zeen-listen {
    grid-column: 3;
    grid-row: 1;
    width: 46px;
    min-height: 46px;
    padding: 0;
    border-width: 2px;
    border-radius: 13px;
    box-shadow: 0 4px 0 #2e50ae;
    font-size: 0;
  }

  body.zeen-child-mode .zeen-listen span { width: 25px; height: 25px; font-size: 10px; }
  body.zeen-child-mode .zeen-sound {
    min-width: 52px;
    width: 52px;
    min-height: 52px;
    padding: 4px;
    border-width: 2px;
    border-radius: 14px;
    box-shadow: 0 4px 0 #9fcfbb;
  }
  body.zeen-child-mode .zeen-sound b { display: none; }

  body.zeen-child-mode .zeen-age-options { gap: 7px; }
  body.zeen-child-mode .zeen-age-options button {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 58px;
    gap: 6px;
    padding: 6px 8px;
    border-width: 2px;
    border-radius: 17px;
    box-shadow: 0 5px 0 color-mix(in srgb, var(--age-color) 28%, #d9e4ef), 0 9px 16px #304a6b10;
  }
  body.zeen-child-mode .zeen-age-icon { width: 38px; height: 38px; border-width: 2px; border-radius: 12px; font-size: 21px; }
  body.zeen-child-mode .zeen-age-options b { font-size: 19px; }
  body.zeen-child-mode .zeen-age-options small { margin-top: 3px; font-size: 9px; }
}

@media (min-width: 681px) and (max-width: 1099px) {
  body.zeen-child-mode .topbar:has(.header-actions.zeen-child-actions) {
    grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) !important;
    grid-template-rows: 54px 46px !important;
    min-height: 120px !important;
  }
  body.zeen-child-mode .topbar .mini-brand { grid-column: 2 !important; grid-row: 1 !important; }
  body.zeen-child-mode .header-actions.zeen-child-actions { grid-column: 1 !important; grid-row: 1 !important; }
  body.zeen-child-mode .topbar > nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zeen-age-experience *,
  .zeen-age-experience *::before,
  .zeen-age-experience *::after,
  .zeen-child-spark { animation: none !important; transition: none !important; }
}

@media print {
  .zeen-age-experience { display: none !important; }
}
