*{box-sizing:border-box}
:root{
  --bg:#080b14;
  --panel:#12182a;
  --panel2:#171d32;
  --text:#f8f9ff;
  --muted:#b9c0d8;
  --pink:#ff4ecb;
  --blue:#4fd8ff;
  --purple:#a06dff;
  --green:#5be090;
  --wellness:#b66cff;
  --growth:#66dc89;
  --enjoyment:#55b9ff;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
html,body{margin:0;min-height:100%;background:radial-gradient(circle at top,#182345 0,#080b14 42%,#05070d 100%);color:var(--text)}
body{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
button{font:inherit;color:inherit}
button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.hidden{display:none!important}
.kids-topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;background:rgba(7,10,18,.95);border-bottom:1px solid rgba(255,255,255,.08);backdrop-filter:blur(18px)}
.kids-brand,.grownup-link,.view-head button,.kids-nav button{border:0;background:none;cursor:pointer}
.kids-brand{display:flex;align-items:center;gap:9px;text-align:left}
.brand-orb{width:44px;height:44px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,rgba(255,78,203,.18),rgba(79,216,255,.18))}
.brand-orb img{width:100%;height:100%;object-fit:contain}
.kids-brand b{display:block;font-size:.95rem;letter-spacing:.06em}.kids-brand small{display:block;color:var(--muted);font-size:.7rem}
.grownup-link{padding:8px 11px;border:1px solid rgba(255,255,255,.18);border-radius:999px;font-size:.72rem;font-weight:900;letter-spacing:.05em}
.kids-app{width:min(860px,100%);margin:0 auto;padding:18px 16px 34px}
.view{display:none}.view.active{display:block}
.eyebrow{display:block;font-size:.72rem;font-weight:900;letter-spacing:.13em;color:#dfe4f8;margin-bottom:7px}
.befopo-hero{display:grid;grid-template-columns:minmax(170px,270px) 1fr;align-items:center;gap:22px;padding:22px;border-radius:30px;background:linear-gradient(145deg,rgba(255,78,203,.14),rgba(79,216,255,.09));border:1px solid rgba(255,255,255,.1)}
.befopo-slot{min-height:220px;display:grid;place-items:center}
.befopo-slot img{width:100%;max-height:300px;object-fit:contain;filter:drop-shadow(0 18px 34px rgba(0,0,0,.3))}
.hero-copy h1,.category-hero h1,.grownup-card h1{margin:0;font-size:clamp(2rem,6vw,3.8rem);line-height:.98}
.hero-copy p{margin:12px 0 0;color:var(--muted);font-size:1.15rem}
.kids-category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
.category-card{border:1px solid rgba(255,255,255,.1);border-radius:24px;background:var(--panel);padding:16px;text-align:left;cursor:pointer;min-height:230px;transition:.15s ease}
.category-card:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.28)}
.category-card img{display:block;width:100%;height:140px;object-fit:contain;margin-bottom:8px}
.category-card b,.category-card small{display:block}.category-card b{font-size:1rem;letter-spacing:.05em}.category-card small{color:var(--muted);line-height:1.4;margin-top:5px}
.category-card.wellness{box-shadow:inset 0 0 0 1px rgba(182,108,255,.26),0 0 30px rgba(182,108,255,.07)}
.category-card.growth{box-shadow:inset 0 0 0 1px rgba(91,224,144,.24),0 0 30px rgba(91,224,144,.07)}
.category-card.enjoyment{box-shadow:inset 0 0 0 1px rgba(85,185,255,.26),0 0 30px rgba(85,185,255,.07)}
.view-head{display:flex;align-items:center;justify-content:space-between;margin:2px 0 16px;padding:8px 2px}
.view-head button{font-weight:900}.view-head span{font-size:.76rem;font-weight:900;letter-spacing:.12em;color:var(--muted)}
.category-hero{display:grid;grid-template-columns:170px 1fr;align-items:center;gap:18px;padding:18px 22px;border-radius:28px;border:1px solid rgba(255,255,255,.1);margin-bottom:16px}
.category-hero img{width:100%;height:170px;object-fit:contain}
.category-hero.wellness{background:linear-gradient(135deg,rgba(182,108,255,.17),rgba(182,108,255,.05))}
.category-hero.growth{background:linear-gradient(135deg,rgba(91,224,144,.15),rgba(91,224,144,.04))}
.category-hero.enjoyment{background:linear-gradient(135deg,rgba(85,185,255,.16),rgba(85,185,255,.04))}
.kid-activity-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kid-activity{display:flex;align-items:flex-start;gap:12px;width:100%;text-align:left;border:1px solid rgba(255,255,255,.09);background:var(--panel);padding:17px;border-radius:19px;cursor:pointer;min-height:104px}
.activity-check{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;flex:0 0 auto;background:rgba(255,255,255,.07);font-weight:950}
.kid-activity b,.kid-activity small{display:block}.kid-activity small{margin-top:5px;color:var(--muted);line-height:1.4}
.kid-activity.done{border-color:rgba(91,224,144,.45);background:rgba(91,224,144,.09)}
.kid-activity.done .activity-check{background:var(--green);color:#06140d}
.grownup-card{display:grid;grid-template-columns:190px 1fr;gap:20px;align-items:center;padding:22px;border-radius:28px;background:linear-gradient(135deg,rgba(79,216,255,.1),rgba(160,109,255,.1));border:1px solid rgba(255,255,255,.1)}
.grownup-card img{width:100%;height:190px;object-fit:contain}.grownup-card p{color:var(--muted);line-height:1.5;margin:10px 0 0}
.grownup-list{display:grid;gap:10px;margin-top:14px}.grownup-list>div{padding:17px;border-radius:18px;background:var(--panel);border:1px solid rgba(255,255,255,.08)}
.grownup-list b,.grownup-list span{display:block}.grownup-list span{color:var(--muted);margin-top:4px}
.kids-nav{position:fixed;left:50%;bottom:calc(10px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:30;width:min(640px,calc(100% - 22px));display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:7px;border-radius:22px;background:rgba(14,18,31,.95);border:1px solid rgba(255,255,255,.1);backdrop-filter:blur(18px);box-shadow:0 18px 50px rgba(0,0,0,.42)}
.kids-nav button{padding:8px 2px;border-radius:15px;color:var(--muted);font-size:.64rem;font-weight:900;letter-spacing:.03em}
.kids-nav button span{display:block;font-size:1rem;margin-bottom:2px}.kids-nav button.active{background:linear-gradient(135deg,rgba(255,78,203,.2),rgba(79,216,255,.16));color:#fff}
.toast{position:fixed;left:50%;bottom:112px;transform:translate(-50%,12px);opacity:0;pointer-events:none;transition:.2s;background:#fff;color:#111;padding:10px 14px;border-radius:999px;font-weight:900;z-index:60}
.toast.show{opacity:1;transform:translate(-50%,0)}
.celebration:not(.family-message){position:fixed;inset:0;z-index:55;display:flex;align-items:center;justify-content:center;flex-direction:column;background:rgba(5,7,13,.62);backdrop-filter:blur(4px);pointer-events:none}
.celebration:not(.family-message) img{width:min(300px,70vw);height:min(300px,70vw);object-fit:contain}.celebration:not(.family-message) b{font-size:1.8rem}
@media(max-width:700px){
  .befopo-hero,.grownup-card{grid-template-columns:1fr;text-align:center}
  .category-hero{grid-template-columns:105px 1fr;text-align:left;padding:14px 16px}
  .category-hero img{height:105px}
  .befopo-slot{min-height:170px}.category-hero img{height:150px}.grownup-card img{height:160px}
  .kids-category-grid,.kid-activity-list,.kid-subcategory-list{grid-template-columns:1fr}
  .category-card{display:grid;grid-template-columns:110px 1fr;align-items:center;gap:12px;min-height:140px}
  .category-card img{height:110px;margin:0}.category-card span{text-align:left}
  .hero-copy h1,.category-hero h1,.grownup-card h1{font-size:2.45rem}
}

/* BYP Kids pillar/subcategory structure */
.kid-subcategory-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kid-subcategory{background:var(--panel);border:1px solid rgba(255,255,255,.09);border-radius:20px;overflow:hidden}
.kid-subcategory-button{width:100%;min-height:96px;border:0;background:transparent;display:grid;grid-template-columns:38px 1fr 24px;gap:12px;align-items:center;padding:16px;text-align:left;cursor:pointer}
.subcategory-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.07);font-weight:950}
.subcategory-copy b,.subcategory-copy small{display:block}
.subcategory-copy b{font-size:.95rem;letter-spacing:.04em}
.subcategory-copy small{color:var(--muted);margin-top:4px;line-height:1.35}
.subcategory-open{font-size:1.8rem;color:var(--muted);transition:transform .15s ease}
.kid-subcategory-button[aria-expanded="true"] .subcategory-open{transform:rotate(90deg);color:#fff}
.kid-subcategory-detail{padding:0 16px 16px}
.detail-label{display:block;font-size:.68rem;font-weight:950;letter-spacing:.13em;color:var(--muted);margin-bottom:8px}
.idea-list{display:grid;gap:7px}
.idea-card{padding:11px 12px;border-radius:13px;background:rgba(255,255,255,.055);color:var(--text);font-size:.84rem;line-height:1.35}
.view[data-view="wellness"] .kid-subcategory:has(.kid-subcategory-button[aria-expanded="true"]){border-color:rgba(182,108,255,.55);box-shadow:0 0 24px rgba(182,108,255,.08)}
.view[data-view="growth"] .kid-subcategory:has(.kid-subcategory-button[aria-expanded="true"]){border-color:rgba(91,224,144,.5);box-shadow:0 0 24px rgba(91,224,144,.08)}
.view[data-view="enjoyment"] .kid-subcategory:has(.kid-subcategory-button[aria-expanded="true"]){border-color:rgba(85,185,255,.55);box-shadow:0 0 24px rgba(85,185,255,.08)}

/* BYP Kids daily planner + stronger BYP pillar treatment */
.my-day-card{
  margin-top:16px;width:100%;border:1px solid rgba(255,255,255,.12);border-radius:22px;
  background:linear-gradient(135deg,rgba(255,255,255,.045),rgba(255,255,255,.02));
  display:flex;align-items:center;justify-content:space-between;padding:17px 18px;text-align:left;cursor:pointer
}
.my-day-card b,.my-day-card small{display:block}.my-day-card b{font-size:1rem}.my-day-card small{color:var(--muted);margin-top:3px}
.my-day-card strong{min-width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.08)}
.category-hero{position:relative;overflow:hidden}
.category-hero.wellness{border-color:rgba(182,108,255,.44);box-shadow:0 0 26px rgba(182,108,255,.08)}
.category-hero.growth{border-color:rgba(91,224,144,.42);box-shadow:0 0 26px rgba(91,224,144,.08)}
.category-hero.enjoyment{border-color:rgba(85,185,255,.45);box-shadow:0 0 26px rgba(85,185,255,.08)}
.category-hero img{position:relative;z-index:1;filter:none}
.category-hero>div{position:relative;z-index:1}
.category-hero.wellness:after,.category-hero.growth:after,.category-hero.enjoyment:after{
  content:"";position:absolute;inset:auto -12% -70% 30%;height:180%;pointer-events:none;filter:blur(12px);opacity:.32
}
.category-hero.wellness:after{background:radial-gradient(circle,rgba(182,108,255,.38),transparent 68%)}
.category-hero.growth:after{background:radial-gradient(circle,rgba(91,224,144,.34),transparent 68%)}
.category-hero.enjoyment:after{background:radial-gradient(circle,rgba(85,185,255,.34),transparent 68%)}
.daily-idea{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:11px 12px;border-radius:14px;background:rgba(255,255,255,.045);margin-top:8px}
.daily-idea.today{background:rgba(255,255,255,.075)}
.daily-idea b,.daily-idea small{display:block}.daily-idea b{font-size:.66rem;letter-spacing:.11em;color:var(--muted)}.daily-idea small{margin-top:3px;line-height:1.35}
.daily-idea button{border:1px solid rgba(255,255,255,.16);background:#101522;border-radius:999px;padding:8px 10px;font-size:.66rem;font-weight:900;white-space:nowrap;cursor:pointer}
.plan-hero{padding:20px;border-radius:24px;background:linear-gradient(135deg,rgba(255,78,203,.08),rgba(79,216,255,.07));border:1px solid rgba(255,255,255,.09);margin-bottom:14px}
.plan-hero h1{margin:0;font-size:2.3rem}.plan-hero p{margin:7px 0 0;color:var(--muted)}
.quick-task-form{display:grid;grid-template-columns:minmax(0,1fr) 160px 130px auto;gap:9px;padding:13px;border-radius:20px;background:var(--panel);border:1px solid rgba(255,255,255,.09)}
.quick-task-form label span{display:block;font-size:.62rem;letter-spacing:.1em;font-weight:900;color:var(--muted);margin-bottom:5px}
.quick-task-form input{width:100%;border:1px solid rgba(255,255,255,.1);background:#0c1120;color:#fff;border-radius:11px;padding:10px}
.quick-task-form>button{align-self:end;border:0;border-radius:12px;padding:11px 16px;background:linear-gradient(90deg,var(--pink),var(--blue));font-weight:950;cursor:pointer}
.plan-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:14px 0}
.plan-tabs button{border:1px solid rgba(255,255,255,.09);background:var(--panel);border-radius:13px;padding:11px;font-size:.72rem;font-weight:900;cursor:pointer}
.plan-tabs button.active{background:linear-gradient(135deg,rgba(255,78,203,.16),rgba(79,216,255,.13));border-color:rgba(255,255,255,.2)}
.plan-panel{display:none}.plan-panel.active{display:block}
.plan-task-list,.week-list{display:grid;gap:9px}
.plan-task{display:grid;grid-template-columns:36px 1fr 34px;gap:10px;align-items:start;padding:13px;border-radius:16px;background:var(--panel);border:1px solid rgba(255,255,255,.08)}
.plan-task.done{opacity:.58}.plan-task.done .task-main>b{text-decoration:line-through}
.task-check,.task-delete{width:34px;height:34px;border-radius:10px;border:1px solid rgba(255,255,255,.11);background:#111726;color:#fff;cursor:pointer}
.task-check{font-weight:950}.task-delete{font-size:1.2rem}
.task-main>b,.task-main>small{display:block}.task-main>small{color:var(--muted);margin-top:3px}
.task-schedule{display:flex;gap:7px;margin-top:9px}.task-schedule input{border:1px solid rgba(255,255,255,.08);background:#0b1020;color:#fff;border-radius:9px;padding:7px;min-width:0}
.empty-plan,.week-empty{display:block;padding:18px;border-radius:15px;background:rgba(255,255,255,.035);color:var(--muted);text-align:center}
.week-day{display:grid;gap:8px}.week-day-head{display:flex;justify-content:space-between;padding:10px 3px 2px}.week-day-head span{color:var(--muted)}
.calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.calendar-head button{border:1px solid rgba(255,255,255,.09);background:var(--panel);border-radius:10px;padding:8px 12px;cursor:pointer}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.calendar-weekdays{margin-bottom:6px}.calendar-weekdays span{text-align:center;color:var(--muted);font-size:.68rem;font-weight:900}
.calendar-day,.calendar-blank{min-height:58px;border-radius:12px}.calendar-day{border:1px solid rgba(255,255,255,.08);background:var(--panel);display:grid;place-items:center;position:relative;cursor:pointer}.calendar-day.today{border-color:rgba(79,216,255,.48)}.calendar-day.selected{background:linear-gradient(135deg,rgba(255,78,203,.15),rgba(79,216,255,.12))}
.calendar-day span{position:absolute;right:5px;top:5px;min-width:18px;height:18px;border-radius:999px;display:grid;place-items:center;background:var(--green);color:#07140d;font-size:.6rem;font-weight:950}
.calendar-day-tasks{margin-top:12px}.selected-day-title{font-weight:950;padding:8px 2px}
.kids-nav{grid-template-columns:repeat(5,1fr)}
@media(max-width:700px){
  .quick-task-form{grid-template-columns:1fr 1fr}.quick-task-form label:first-child{grid-column:1/-1}.quick-task-form>button{width:100%}
  .daily-idea{grid-template-columns:1fr}.daily-idea button{justify-self:start}
  .calendar-day,.calendar-blank{min-height:46px}
  .kids-nav button{font-size:.56rem}
}

/* Final BYP Kids brand/art lock */
.brand-orb{
  width:48px;
  height:48px;
  border-radius:0;
  overflow:visible;
  background:transparent!important;
  box-shadow:none!important;
}
.brand-orb img{
  width:48px!important;
  height:48px!important;
  display:block!important;
  object-fit:contain!important;
  opacity:1!important;
  visibility:visible!important;
}
.befopo-hero{
  grid-template-columns:230px minmax(0,1fr);
  min-height:280px;
  overflow:visible;
}
.befopo-slot{
  width:230px;
  min-height:230px;
  position:relative;
  z-index:2;
}
.befopo-slot img{
  display:block!important;
  width:220px!important;
  height:220px!important;
  max-height:none!important;
  object-fit:contain!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
}
.category-card{
  overflow:visible;
  position:relative;
}
.category-card img{
  display:block!important;
  width:100%!important;
  height:150px!important;
  object-fit:contain!important;
  opacity:1!important;
  visibility:visible!important;
  position:relative;
  z-index:2;
  filter:none!important;
}
.category-card.wellness{
  border-color:rgba(182,108,255,.58);
  background:linear-gradient(145deg,rgba(182,108,255,.16),rgba(18,24,42,.98) 58%);
}
.category-card.growth{
  border-color:rgba(91,224,144,.55);
  background:linear-gradient(145deg,rgba(91,224,144,.14),rgba(18,24,42,.98) 58%);
}
.category-card.enjoyment{
  border-color:rgba(85,185,255,.58);
  background:linear-gradient(145deg,rgba(85,185,255,.15),rgba(18,24,42,.98) 58%);
}
.category-hero{
  grid-template-columns:190px minmax(0,1fr)!important;
  min-height:220px;
  isolation:isolate;
  overflow:visible!important;
}
.category-hero img{
  display:block!important;
  width:180px!important;
  height:180px!important;
  object-fit:contain!important;
  opacity:1!important;
  visibility:visible!important;
  position:relative;
  z-index:3!important;
  filter:none!important;
}
.category-hero>div{z-index:3!important}
.category-hero:after{z-index:0!important}
.category-hero.wellness{
  background:linear-gradient(135deg,rgba(182,108,255,.22),rgba(18,24,42,.96) 64%);
}
.category-hero.growth{
  background:linear-gradient(135deg,rgba(91,224,144,.20),rgba(18,24,42,.96) 64%);
}
.category-hero.enjoyment{
  background:linear-gradient(135deg,rgba(85,185,255,.21),rgba(18,24,42,.96) 64%);
}
@media(max-width:700px){
  .befopo-hero{grid-template-columns:125px minmax(0,1fr);min-height:180px;text-align:left}
  .befopo-slot{width:125px;min-height:125px}
  .befopo-slot img{width:125px!important;height:125px!important}
  .category-hero{grid-template-columns:120px minmax(0,1fr)!important;min-height:155px}
  .category-hero img{width:115px!important;height:115px!important}
  .category-card img{height:115px!important}
}

.plan-hero{
  display:grid!important;
  grid-template-columns:120px minmax(0,1fr)!important;
  align-items:center!important;
  gap:16px!important;
}
.plan-hero>img{
  width:115px!important;
  height:115px!important;
  display:block!important;
  object-fit:contain!important;
  opacity:1!important;
  visibility:visible!important;
}
@media(max-width:560px){
  .plan-hero{grid-template-columns:92px minmax(0,1fr)!important}
  .plan-hero>img{width:88px!important;height:88px!important}
}

/* BYP LINKS + Kid Profile + Family Messages */
.byp-link-shelf{margin-top:12px;padding:12px;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:rgba(255,255,255,.03)}
.byp-link-shelf-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.byp-link-shelf-head b,.byp-link-shelf-head small{display:block}.byp-link-shelf-head small{color:var(--muted);margin-top:2px}
.byp-link-shelf-head button{border:1px solid rgba(255,255,255,.13);background:#101522;color:#fff;border-radius:999px;padding:8px 10px;font-size:.62rem;font-weight:950;cursor:pointer}
.byp-link-grid{display:grid;gap:8px}.byp-link{display:block;text-decoration:none;color:#fff;padding:11px 12px;border-radius:13px;background:#111827;border:1px solid rgba(255,255,255,.08)}
.byp-link b,.byp-link small{display:block}.byp-link small{margin-top:3px;color:var(--muted);font-size:.66rem}
.byp-link-empty,.saved-link-empty{padding:11px;color:var(--muted);font-size:.75rem}
.personal-link-manager,.kid-profile-setup{margin-top:16px;padding:18px;border-radius:22px;background:var(--panel);border:1px solid rgba(255,255,255,.1)}
.personal-link-manager h2,.kid-profile-setup h2{margin:7px 0}.personal-link-manager p,.kid-profile-setup p{color:var(--muted);line-height:1.5}
.personal-link-form,.kid-profile-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.personal-link-form label,.kid-profile-form label{display:block}.personal-link-form label span,.kid-profile-form label>span{display:block;font-size:.63rem;font-weight:900;letter-spacing:.08em;color:var(--muted);margin-bottom:5px}
.personal-link-form input,.personal-link-form select,.kid-profile-form input,.kid-profile-form select,.kid-reply-form textarea{width:100%;border:1px solid rgba(255,255,255,.1);background:#0b1020;color:#fff;border-radius:11px;padding:10px}
.personal-link-form button,.kid-profile-form>button,.family-message-hero button,.kid-reply-form button{border:0;border-radius:12px;padding:11px 15px;background:linear-gradient(90deg,var(--pink),var(--blue));font-weight:950;cursor:pointer}
.link-title-field,.link-url-field,.kid-profile-form>button{grid-column:1/-1}
.personal-link-message,.family-message-notice{min-height:20px;margin-top:8px;color:var(--muted);font-size:.74rem}
.saved-link-manager{display:grid;gap:8px;margin-top:13px}.saved-link-heading{display:flex;justify-content:space-between;gap:10px}.saved-link-heading small{color:var(--muted)}
.saved-link-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:10px;border-radius:13px;background:#101522;border:1px solid rgba(255,255,255,.08)}
.saved-link-row a{color:#fff;text-decoration:none;min-width:0}.saved-link-row a b,.saved-link-row a small{display:block}.saved-link-row a small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.saved-link-row button{border:1px solid rgba(255,255,255,.13);background:transparent;color:#fff;border-radius:9px;padding:8px;font-size:.65rem;font-weight:900;cursor:pointer}
.personal-link-own-head{margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.09)}.personal-link-own-head b,.personal-link-own-head small{display:block}.personal-link-own-head b{font-size:.72rem;letter-spacing:.08em}.personal-link-own-head small{margin-top:4px;color:var(--muted);font-size:.7rem;line-height:1.4}
.grownup-byp-picks{display:grid;gap:9px;padding:12px;border:1px solid rgba(182,108,255,.22);border-radius:16px;background:linear-gradient(135deg,rgba(182,108,255,.09),rgba(85,185,255,.035))}
.grownup-byp-picks-head b,.grownup-byp-picks-head small,.grownup-byp-picks-empty b,.grownup-byp-picks-empty small{display:block}.grownup-byp-picks-head b,.grownup-byp-picks-empty b{font-size:.72rem;letter-spacing:.09em}.grownup-byp-picks-head small,.grownup-byp-picks-empty small{margin-top:3px;color:var(--muted);font-size:.69rem;line-height:1.4}
.grownup-byp-pick-grid{display:grid;gap:8px}.grownup-byp-pick{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px;border:1px solid rgba(255,255,255,.09);border-radius:13px;background:#101522}.grownup-byp-pick.top-pick{border-color:rgba(220,132,255,.55);box-shadow:0 0 18px rgba(182,108,255,.11)}
.grownup-byp-pick-copy{min-width:0}.grownup-byp-pick-copy em,.grownup-byp-pick-copy b,.grownup-byp-pick-copy small{display:block}.grownup-byp-pick-copy em{margin-bottom:4px;color:#efb3ff;font-size:.62rem;font-style:normal;font-weight:950;letter-spacing:.07em}.grownup-byp-pick-copy b{font-size:.78rem;line-height:1.3}.grownup-byp-pick-copy small{margin-top:3px;color:var(--muted);font-size:.68rem;line-height:1.35}
.grownup-byp-pick-actions{display:flex;gap:7px;align-items:center}.grownup-byp-pick-actions a,.grownup-byp-pick-actions button{border:1px solid rgba(255,255,255,.13);border-radius:9px;padding:8px 9px;background:transparent;color:#fff;text-decoration:none;font-size:.62rem;font-weight:950;white-space:nowrap}.grownup-byp-pick-actions button{border-color:rgba(85,185,255,.45);background:rgba(85,185,255,.08);cursor:pointer}.grownup-byp-pick-actions button:disabled{opacity:.55;cursor:default}
.grownup-byp-picks-empty{padding:11px;border:1px dashed rgba(255,255,255,.12);border-radius:13px}
@media(max-width:620px){.grownup-byp-pick{grid-template-columns:1fr}.grownup-byp-pick-actions{justify-content:flex-start;flex-wrap:wrap}}
.kid-home-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.kid-home-tool{display:flex;align-items:center;gap:12px;text-align:left;padding:14px;border-radius:18px;background:var(--panel);border:1px solid rgba(255,255,255,.1);cursor:pointer}
.kid-home-tool span:last-child b,.kid-home-tool span:last-child small{display:block}.kid-home-tool small{color:var(--muted);margin-top:3px}
.kid-home-avatar,.kid-home-icon{width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.06);display:grid;place-items:center;overflow:hidden;flex:0 0 auto}
.kid-home-avatar img{width:100%;height:100%;object-fit:cover}.kid-home-avatar b{font-size:1.2rem}
.kid-profile-card{display:grid;grid-template-columns:150px 1fr;gap:20px;align-items:center;padding:20px;border-radius:24px;background:linear-gradient(135deg,rgba(255,78,203,.12),rgba(79,216,255,.09));border:1px solid rgba(255,255,255,.1)}
.kid-profile-photo,.profile-photo-preview{width:140px;height:140px;border-radius:30px;display:grid;place-items:center;overflow:hidden;background:#111827;border:1px solid rgba(255,255,255,.12)}
.kid-profile-photo img,.profile-photo-preview img{width:100%;height:100%;object-fit:cover}.kid-profile-photo span,.profile-photo-preview span{font-size:2.4rem}
.kid-profile-card h1{margin:7px 0}.kid-profile-card p,.profile-note{color:var(--muted);line-height:1.5}.profile-note{margin-top:10px;padding:12px;border-radius:14px;background:rgba(255,255,255,.035)}
.birthday-reminder{margin-top:10px;padding:10px 12px;border-radius:12px;background:rgba(255,78,203,.11);border:1px solid rgba(255,78,203,.25);font-weight:900}
.profile-photo-picker{grid-column:1/-1;display:grid;grid-template-columns:100px 1fr;gap:14px;align-items:center}
.profile-photo-picker .profile-photo-preview{width:96px;height:96px;border-radius:22px}
.profile-check{grid-column:1/-1;display:flex!important;gap:10px;align-items:flex-start;padding:11px;border-radius:13px;background:rgba(255,255,255,.035)}
.profile-check input{width:auto;margin-top:2px}.profile-check span{margin:0!important}.profile-check b,.profile-check small{display:block}.profile-check small{color:var(--muted);margin-top:3px}
.kid-online-setup{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:12px;border-radius:14px;background:rgba(79,216,255,.06);border:1px solid rgba(79,216,255,.16)}
.kid-online-setup b,.kid-online-setup small{display:block}.kid-online-setup small{color:var(--muted);margin-top:3px}.kid-pairing-code{font-weight:950;letter-spacing:.14em;padding:9px 12px;border-radius:10px;background:#0b1020}
.family-message-hero{padding:18px;border-radius:22px;background:linear-gradient(135deg,rgba(91,224,144,.1),rgba(79,216,255,.08));border:1px solid rgba(255,255,255,.1)}
.family-message-hero h1{margin:7px 0}.family-message-hero p{color:var(--muted)}.family-message-hero button{margin-top:8px}
.family-message-thread{display:grid;gap:9px;margin-top:12px}.family-message{max-width:86%;padding:11px 12px;border-radius:15px;background:var(--panel);border:1px solid rgba(255,255,255,.08)}
.family-message.parent{justify-self:start}.family-message.kid{justify-self:end;background:rgba(79,216,255,.08);border-color:rgba(79,216,255,.2)}
.family-message b,.family-message small{display:block}.family-message small{color:var(--muted);margin-top:4px}
.kid-reply-form{margin-top:12px;padding:13px;border-radius:18px;background:var(--panel);border:1px solid rgba(255,255,255,.09)}
.kid-reply-form label>span{display:block;font-size:.63rem;font-weight:900;letter-spacing:.08em;color:var(--muted);margin-bottom:5px}.kid-reply-form textarea{min-height:100px;resize:vertical}
.kid-reply-actions{display:flex;gap:8px;align-items:center;margin-top:9px;flex-wrap:wrap}.email-parent-link{display:inline-block;text-decoration:none;color:#fff;border:1px solid rgba(255,255,255,.13);border-radius:12px;padding:10px 13px;font-size:.72rem;font-weight:900}
@media(max-width:700px){
  .personal-link-form,.kid-profile-form,.kid-home-tools{grid-template-columns:1fr}
  .kid-profile-card{grid-template-columns:100px 1fr}.kid-profile-photo{width:96px;height:96px;border-radius:22px}
  .kid-online-setup{align-items:flex-start;flex-direction:column}
}


/* ============================================================
   BYP KIDS COLOR + LIGHT VISUAL PASS
   Keep images small/light; let category color and tiny cues do
   most of the visual work.
   ============================================================ */
.kids-category-grid{
  gap:12px;
}
.category-card{
  position:relative;
  overflow:hidden;
  min-height:172px;
  padding:16px;
  isolation:isolate;
}
.category-card::before{
  content:"";
  position:absolute;
  inset:auto -20px -30px auto;
  width:120px;
  height:120px;
  border-radius:50%;
  filter:blur(12px);
  opacity:.42;
  z-index:-1;
}
.category-card::after{
  position:absolute;
  top:13px;
  left:14px;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:999px;
  font-size:16px;
  background:rgba(5,8,18,.52);
  border:1px solid rgba(255,255,255,.15);
  box-shadow:0 6px 18px rgba(0,0,0,.22);
}
.category-card.wellness{
  background:linear-gradient(145deg,rgba(128,62,190,.34),rgba(65,39,104,.18) 56%,rgba(14,17,31,.96));
  border-color:rgba(198,123,255,.6);
  box-shadow:0 0 24px rgba(177,85,255,.12),inset 0 0 0 1px rgba(196,116,255,.12);
}
.category-card.wellness::before{background:#a855f7}
.category-card.wellness::after{content:"♥";color:#f3b3ff}
.category-card.growth{
  background:linear-gradient(145deg,rgba(28,127,79,.34),rgba(27,77,54,.18) 56%,rgba(14,17,31,.96));
  border-color:rgba(91,224,144,.58);
  box-shadow:0 0 24px rgba(91,224,144,.11),inset 0 0 0 1px rgba(91,224,144,.11);
}
.category-card.growth::before{background:#37d67a}
.category-card.growth::after{content:"↑";color:#a5f7c2}
.category-card.enjoyment{
  background:linear-gradient(145deg,rgba(26,111,176,.36),rgba(26,70,113,.18) 56%,rgba(14,17,31,.96));
  border-color:rgba(85,185,255,.62);
  box-shadow:0 0 24px rgba(85,185,255,.12),inset 0 0 0 1px rgba(85,185,255,.12);
}
.category-card.enjoyment::before{background:#36b7ff}
.category-card.enjoyment::after{content:"★";color:#b8eaff}

.category-card img{
  position:absolute;
  top:10px;
  right:10px;
  width:92px;
  height:92px;
  object-fit:contain;
  margin:0;
  filter:drop-shadow(0 9px 14px rgba(0,0,0,.28));
  animation:befopoFloatKid 3.8s ease-in-out infinite;
}
.category-card > span{
  position:absolute;
  left:16px;
  right:14px;
  bottom:15px;
  max-width:78%;
}
.category-card b{
  font-size:1.04rem;
}
.category-card small{
  color:#d7dcef;
  font-size:.8rem;
}

.category-hero{
  position:relative;
  grid-template-columns:108px 1fr;
  min-height:156px;
  gap:14px;
  padding:16px 20px;
  overflow:hidden;
  isolation:isolate;
}
.category-hero::before{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  right:-45px;
  bottom:-75px;
  border-radius:50%;
  filter:blur(18px);
  opacity:.3;
  z-index:-1;
}
.category-hero::after{
  position:absolute;
  top:15px;
  right:16px;
  font-size:24px;
  opacity:.8;
}
.category-hero img{
  width:100px;
  height:112px;
  object-fit:contain;
  align-self:center;
  filter:drop-shadow(0 10px 16px rgba(0,0,0,.28));
  animation:befopoFloatKid 4s ease-in-out infinite;
}
.category-hero h1{
  font-size:clamp(2rem,4.6vw,3.35rem);
}
.category-hero.wellness{
  background:linear-gradient(135deg,rgba(136,72,190,.36),rgba(80,57,142,.19),rgba(19,24,45,.96));
  border-color:rgba(190,116,255,.62);
}
.category-hero.wellness::before{background:#a855f7}
.category-hero.wellness::after{content:"♥ ✦";color:#efb3ff}
.category-hero.growth{
  background:linear-gradient(135deg,rgba(34,135,84,.32),rgba(35,87,60,.18),rgba(19,24,45,.96));
  border-color:rgba(91,224,144,.56);
}
.category-hero.growth::before{background:#33d17a}
.category-hero.growth::after{content:"↑ ✦";color:#a5f7c2}
.category-hero.enjoyment{
  background:linear-gradient(135deg,rgba(36,121,188,.34),rgba(33,79,127,.18),rgba(19,24,45,.96));
  border-color:rgba(85,185,255,.62);
}
.category-hero.enjoyment::before{background:#36b7ff}
.category-hero.enjoyment::after{content:"★ ✦";color:#b8eaff}

/* Category rows: colorful, but still easy to scan and lightweight. */
.kid-subcategory{
  border-radius:19px;
}
.kid-subcategory-button{
  position:relative;
  overflow:hidden;
}
.kid-subcategory[data-kind="wellness"] .kid-subcategory-button{
  background:linear-gradient(110deg,rgba(117,58,171,.22),rgba(20,25,43,.96) 46%);
  border-color:rgba(182,108,255,.28);
}
.kid-subcategory[data-kind="growth"] .kid-subcategory-button{
  background:linear-gradient(110deg,rgba(32,123,76,.20),rgba(20,25,43,.96) 46%);
  border-color:rgba(91,224,144,.27);
}
.kid-subcategory[data-kind="enjoyment"] .kid-subcategory-button{
  background:linear-gradient(110deg,rgba(31,105,165,.22),rgba(20,25,43,.96) 46%);
  border-color:rgba(85,185,255,.29);
}
.kid-subcategory[data-kind="wellness"] .subcategory-icon{
  color:#f0bcff;background:rgba(171,84,230,.22);border:1px solid rgba(200,130,255,.25);
}
.kid-subcategory[data-kind="growth"] .subcategory-icon{
  color:#aaf5c6;background:rgba(58,190,111,.18);border:1px solid rgba(91,224,144,.24);
}
.kid-subcategory[data-kind="enjoyment"] .subcategory-icon{
  color:#bce9ff;background:rgba(52,150,221,.19);border:1px solid rgba(85,185,255,.26);
}

/* Small playful symbols instead of extra image downloads. */
.kid-subcategory-button::after{
  margin-left:auto;
  margin-right:8px;
  font-size:20px;
  line-height:1;
  opacity:.9;
}
.kid-subcategory[data-kind="wellness"]:nth-child(1) .kid-subcategory-button::after{content:"☺"}
.kid-subcategory[data-kind="wellness"]:nth-child(2) .kid-subcategory-button::after{content:"●"}
.kid-subcategory[data-kind="wellness"]:nth-child(3) .kid-subcategory-button::after{content:"⚽"}
.kid-subcategory[data-kind="wellness"]:nth-child(4) .kid-subcategory-button::after{content:"✦"}
.kid-subcategory[data-kind="wellness"]:nth-child(5) .kid-subcategory-button::after{content:"✧"}
.kid-subcategory[data-kind="growth"]:nth-child(1) .kid-subcategory-button::after{content:"◆"}
.kid-subcategory[data-kind="growth"]:nth-child(2) .kid-subcategory-button::after{content:"✎"}
.kid-subcategory[data-kind="growth"]:nth-child(3) .kid-subcategory-button::after{content:"$"}
.kid-subcategory[data-kind="growth"]:nth-child(4) .kid-subcategory-button::after{content:"⌂"}
.kid-subcategory[data-kind="growth"]:nth-child(5) .kid-subcategory-button::after{content:"➜"}
.kid-subcategory[data-kind="growth"]:nth-child(6) .kid-subcategory-button::after{content:"♥"}
.kid-subcategory[data-kind="enjoyment"]:nth-child(1) .kid-subcategory-button::after{content:"✦"}
.kid-subcategory[data-kind="enjoyment"]:nth-child(2) .kid-subcategory-button::after{content:"✈"}
.kid-subcategory[data-kind="enjoyment"]:nth-child(3) .kid-subcategory-button::after{content:"☀"}
.kid-subcategory[data-kind="enjoyment"]:nth-child(4) .kid-subcategory-button::after{content:"★"}
.kid-subcategory[data-kind="enjoyment"]:nth-child(5) .kid-subcategory-button::after{content:"▶"}

@keyframes befopoFloatKid{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-5px)}
}
@media (prefers-reduced-motion:reduce){
  .category-card img,.category-hero img{animation:none}
}
@media (max-width:700px){
  .category-card{min-height:158px}
  .category-card img{width:78px;height:78px}
  .category-card > span{max-width:84%}
  .category-hero{
    grid-template-columns:82px 1fr;
    min-height:136px;
    padding:14px 16px;
  }
  .category-hero img{width:78px;height:90px}
  .category-hero h1{font-size:clamp(1.8rem,9vw,2.7rem)}
}
@media (max-width:460px){
  .kids-category-grid{grid-template-columns:1fr}
  .category-card{min-height:136px}
  .category-card img{width:72px;height:72px}
}


/* ============================================================
   BYP KIDS KIDS15 — family dashboard
   Same BYP visual family as Adult Mini, with Befopo + kid energy.
   ============================================================ */
html,body{
  background:
    radial-gradient(circle at 78% 4%,rgba(79,216,255,.10),transparent 28%),
    radial-gradient(circle at 18% 14%,rgba(255,78,203,.08),transparent 25%),
    #05070d;
}
.kids-app{
  width:min(980px,100%);
  padding-top:20px;
}
.kids-dashboard-hero{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,1fr) 230px;
  align-items:center;
  gap:20px;
  min-height:220px;
  overflow:hidden;
  padding:28px 30px;
  border:1px solid rgba(79,216,255,.48);
  border-radius:28px;
  background:
    radial-gradient(circle at 15% 100%,rgba(255,78,203,.13),transparent 31%),
    radial-gradient(circle at 82% 22%,rgba(79,216,255,.17),transparent 34%),
    linear-gradient(120deg,#03030a,#08061a 58%,#03101b);
  box-shadow:0 0 30px rgba(79,216,255,.08),0 0 24px rgba(255,78,203,.07);
}
.kids-dashboard-swirl{
  position:absolute;
  inset:auto -10% -18% -7%;
  width:118%;
  height:125%;
  object-fit:cover;
  opacity:.82;
  pointer-events:none;
  z-index:-1;
}
.kids-dashboard-copy,
.kids-dashboard-befopo{position:relative;z-index:2}
.kids-dashboard-wordmark{
  display:flex;
  align-items:flex-start;
  gap:10px;
  white-space:nowrap;
  line-height:.88;
  letter-spacing:-.045em;
}
.kids-dashboard-wordmark sup{
  margin:2px 0 0 -4px;
  color:#fff;
  font-size:12px;
}
.kids-byp-word,
.kids-kids-word{
  font-size:clamp(42px,6vw,68px);
  font-weight:1000;
}
.kids-byp-word{
  color:#fff;
  text-shadow:0 0 12px rgba(255,255,255,.14);
}
.kids-kids-word,
.kids-today-word{
  color:#fff;
  background:linear-gradient(90deg,#ff4ecb 0%,#ff69d4 22%,#a06dff 58%,#4fd8ff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 9px rgba(160,109,255,.20));
}
.kids-dashboard-hero .eyebrow{
  margin-top:11px;
  margin-bottom:0;
  font-size:12px;
  letter-spacing:.19em;
  color:#fff;
}
.kids-dashboard-hero h1{
  margin:9px 0 12px;
  max-width:650px;
  font-size:clamp(31px,4vw,44px);
  line-height:1.04;
  letter-spacing:-.025em;
}
.kids-today-word{
  display:inline-block;
  font-weight:1000;
}
.kids-dashboard-pills{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
}
.kids-dashboard-pills i{
  color:#747b91;
  font-style:normal;
}
.kids-dashboard-pills .wellness{color:#cf9bff}
.kids-dashboard-pills .growth{color:#7ef2a1}
.kids-dashboard-pills .enjoyment{color:#72c9ff}
.kids-dashboard-pills .day{color:#ff7bd8}
.kids-dashboard-befopo{
  display:grid;
  justify-items:center;
  align-content:center;
  min-height:170px;
}
.kids-dashboard-befopo img{
  width:205px;
  max-width:100%;
  height:185px;
  object-fit:contain;
  filter:drop-shadow(0 14px 24px rgba(0,0,0,.26)) drop-shadow(0 0 16px rgba(79,216,255,.13));
}
.kids-dashboard-befopo span{
  margin-top:-12px;
  font-size:18px;
  font-weight:1000;
  font-style:italic;
}
.kids-dashboard-befopo small{
  margin-top:2px;
  color:#bfc7dc;
  font-size:10px;
}

.kids-pillar-dashboard{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:15px;
}
.kids-pillar-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  min-height:122px;
  padding:17px;
  border-radius:21px;
  background:#090c14;
  color:#fff;
  text-align:left;
  cursor:pointer;
}
.kids-pillar-card > i{
  font-style:normal;
  font-size:30px;
  opacity:.72;
}
.kids-pillar-icon{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  padding:11px;
  border-radius:17px;
}
.kids-pillar-icon svg{display:block;width:100%;height:100%}
.kids-pillar-copy{
  min-width:0;
  display:grid;
  gap:6px;
}
.kids-pillar-copy b{
  font-size:15px;
  letter-spacing:.055em;
}
.kids-pillar-copy small{
  color:#c0c6d6;
  font-size:12px;
  line-height:1.35;
}
.kids-pillar-card.wellness{
  border:1px solid rgba(182,108,255,.72);
  background:linear-gradient(145deg,rgba(182,108,255,.13),rgba(8,7,15,.98) 56%);
  box-shadow:0 0 22px rgba(182,108,255,.10);
}
.kids-pillar-card.wellness .kids-pillar-icon{
  color:#d4a7ff;
  border:1px solid rgba(182,108,255,.64);
  background:linear-gradient(145deg,rgba(182,108,255,.24),rgba(55,24,88,.30));
}
.kids-pillar-card.growth{
  border:1px solid rgba(91,224,144,.64);
  background:linear-gradient(145deg,rgba(91,224,144,.11),rgba(6,14,10,.98) 56%);
  box-shadow:0 0 22px rgba(91,224,144,.09);
}
.kids-pillar-card.growth .kids-pillar-icon{
  color:#7ff0a4;
  border:1px solid rgba(91,224,144,.58);
  background:linear-gradient(145deg,rgba(91,224,144,.20),rgba(17,66,35,.28));
}
.kids-pillar-card.enjoyment{
  border:1px solid rgba(85,185,255,.68);
  background:linear-gradient(145deg,rgba(85,185,255,.12),rgba(5,11,18,.98) 56%);
  box-shadow:0 0 22px rgba(85,185,255,.10);
}
.kids-pillar-card.enjoyment .kids-pillar-icon{
  color:#72c9ff;
  border:1px solid rgba(85,185,255,.60);
  background:linear-gradient(145deg,rgba(85,185,255,.22),rgba(19,52,87,.30));
}

.kids-my-day-dashboard{
  width:100%;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;
  gap:16px;
  min-height:122px;
  margin-top:14px;
  padding:18px 20px;
  border:1px solid rgba(255,78,203,.54);
  border-radius:22px;
  background:
    linear-gradient(115deg,rgba(255,78,203,.10),rgba(160,109,255,.08) 50%,rgba(79,216,255,.06)),
    #090a12;
  box-shadow:0 0 24px rgba(255,78,203,.08);
  color:#fff;
  text-align:left;
  cursor:pointer;
}
.kids-my-day-icon{
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  padding:10px;
  border:1px solid rgba(255,78,203,.58);
  border-radius:18px;
  color:#ff76d9;
  background:linear-gradient(145deg,rgba(255,78,203,.18),rgba(94,36,101,.24));
}
.kids-my-day-icon svg{display:block;width:100%;height:100%}
.kids-my-day-copy{
  display:grid;
  gap:3px;
}
.kids-my-day-copy .eyebrow{
  margin:0;
  color:#ff9be4;
  font-size:10px;
}
.kids-my-day-copy > b{
  font-size:22px;
  line-height:1.08;
}
.kids-my-day-copy > small{
  color:#bfc5d5;
  font-size:12px;
}
.kids-my-day-count{
  display:grid;
  justify-items:center;
  gap:2px;
  min-width:84px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(5,6,11,.55);
}
.kids-my-day-count strong{
  font-size:25px;
  line-height:1;
}
.kids-my-day-count small{
  color:#aeb6c8;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
}
.kids-my-day-dashboard > i{
  font-style:normal;
  color:#ff7bd8;
  font-size:32px;
}

.kids-dashboard-tools{
  gap:12px;
  margin-top:14px;
}
.kids-dashboard-tools .kid-home-tool{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:13px;
  min-height:105px;
  padding:16px;
  border-radius:20px;
  background:#090c14;
}
.kids-dashboard-tools .kid-home-tool > i{
  font-style:normal;
  font-size:28px;
  opacity:.72;
}
.kids-dashboard-tools .kid-home-tool span:nth-child(2){
  min-width:0;
}
.kids-dashboard-tools .kid-home-tool b{
  font-size:14px;
}
.kids-dashboard-tools .kid-home-tool small{
  margin-top:5px;
  font-size:11px;
  line-height:1.35;
}
.kids-profile-tool{
  border-color:rgba(79,216,255,.46)!important;
  box-shadow:0 0 20px rgba(79,216,255,.07);
}
.kids-message-tool{
  border-color:rgba(255,78,203,.44)!important;
  box-shadow:0 0 20px rgba(255,78,203,.07);
}
.kids-dashboard-tools .kid-home-avatar,
.kids-dashboard-tools .kid-home-icon{
  width:54px;
  height:54px;
  border-radius:16px;
}
.kids-dashboard-tools .kid-home-avatar{
  border:1px solid rgba(79,216,255,.42);
  background:rgba(79,216,255,.08);
}
.kids-dashboard-tools .kid-home-icon{
  padding:10px;
  color:#ff77d9;
  border:1px solid rgba(255,78,203,.44);
  background:rgba(255,78,203,.08);
}
.kids-dashboard-tools .kid-home-icon svg{display:block;width:100%;height:100%}

/* Five Kids destinations need five equal nav columns. */
.kids-nav{
  grid-template-columns:repeat(5,minmax(0,1fr));
  width:min(720px,calc(100% - 22px));
}
.kids-nav button{
  min-width:0;
  padding:9px 3px;
  font-size:.63rem;
}
.kids-nav button span{font-size:1.05rem}

@media(max-width:760px){
  .kids-dashboard-hero{
    grid-template-columns:minmax(0,1fr) 170px;
    min-height:205px;
    padding:23px;
  }
  .kids-dashboard-befopo img{
    width:165px;
    height:160px;
  }
  .kids-pillar-dashboard{
    grid-template-columns:1fr;
  }
  .kids-pillar-card{
    min-height:102px;
  }
}
@media(max-width:560px){
  .kids-app{padding:14px 12px 30px}
  .kids-dashboard-hero{
    grid-template-columns:minmax(0,1fr) 110px;
    gap:8px;
    min-height:180px;
    padding:17px;
    border-radius:22px;
  }
  .kids-byp-word,
  .kids-kids-word{font-size:34px}
  .kids-dashboard-hero .eyebrow{
    margin-top:7px;
    font-size:9px;
    letter-spacing:.13em;
  }
  .kids-dashboard-hero h1{
    margin:7px 0 9px;
    font-size:24px;
    line-height:1.04;
  }
  .kids-dashboard-pills{
    gap:6px;
    font-size:8.5px;
  }
  .kids-dashboard-befopo{
    min-height:115px;
  }
  .kids-dashboard-befopo img{
    width:108px;
    height:112px;
  }
  .kids-dashboard-befopo span{
    margin-top:-8px;
    font-size:13px;
  }
  .kids-dashboard-befopo small{
    font-size:7px;
  }
  .kids-pillar-dashboard{
    gap:9px;
    margin-top:11px;
  }
  .kids-pillar-card{
    min-height:92px;
    padding:13px;
    gap:11px;
    border-radius:18px;
  }
  .kids-pillar-icon{
    width:50px;
    height:50px;
    padding:9px;
    border-radius:15px;
  }
  .kids-pillar-copy b{font-size:13px}
  .kids-pillar-copy small{font-size:10.5px}
  .kids-pillar-card > i{font-size:25px}

  .kids-my-day-dashboard{
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:11px;
    min-height:104px;
    margin-top:10px;
    padding:14px;
    border-radius:19px;
  }
  .kids-my-day-icon{
    width:52px;
    height:52px;
    padding:9px;
    border-radius:15px;
  }
  .kids-my-day-copy > b{font-size:17px}
  .kids-my-day-copy > small{font-size:10.5px}
  .kids-my-day-count{
    min-width:62px;
    padding:8px;
  }
  .kids-my-day-count strong{font-size:21px}
  .kids-my-day-dashboard > i{display:none}

  .kids-dashboard-tools{
    grid-template-columns:1fr;
    gap:9px;
    margin-top:10px;
  }
  .kids-dashboard-tools .kid-home-tool{
    min-height:88px;
    padding:13px;
  }
  .kids-dashboard-tools .kid-home-avatar,
  .kids-dashboard-tools .kid-home-icon{
    width:48px;
    height:48px;
  }
  .kids-dashboard-tools .kid-home-tool b{font-size:13px}
  .kids-dashboard-tools .kid-home-tool small{font-size:10.5px}

  .kids-nav{
    width:calc(100% - 12px);
    gap:2px;
    padding:5px;
    border-radius:18px;
  }
  .kids-nav button{
    padding:7px 1px;
    font-size:.52rem;
    letter-spacing:0;
  }
  .kids-nav button span{
    font-size:.9rem;
  }
}


/* ============================================================
   BYP KIDS KIDS16 — preview dashboard pages
   ============================================================ */
.kids-pillar-preview{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:3px;
}
.kids-pillar-preview em{
  padding:4px 6px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(4,5,10,.38);
  color:#dbe0ec;
  font-size:8px;
  font-style:normal;
  font-weight:850;
  line-height:1;
}
.kids-pillar-card.wellness .kids-pillar-preview em{border-color:rgba(182,108,255,.24)}
.kids-pillar-card.growth .kids-pillar-preview em{border-color:rgba(91,224,144,.22)}
.kids-pillar-card.enjoyment .kids-pillar-preview em{border-color:rgba(85,185,255,.24)}

.kids-page-hero{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,1fr) 190px;
  align-items:center;
  gap:18px;
  min-height:210px;
  overflow:hidden;
  margin-bottom:16px;
  padding:24px 26px;
  border-radius:26px;
  background:#070914;
}
.kids-page-hero.wellness{
  border:1px solid rgba(182,108,255,.72);
  background:linear-gradient(115deg,rgba(78,17,92,.58),rgba(19,8,32,.94) 58%,rgba(8,7,16,.96));
  box-shadow:0 0 30px rgba(182,108,255,.11);
}
.kids-page-hero.growth{
  border:1px solid rgba(91,224,144,.66);
  background:linear-gradient(115deg,rgba(8,52,29,.66),rgba(5,22,14,.94) 58%,rgba(5,10,8,.96));
  box-shadow:0 0 30px rgba(91,224,144,.10);
}
.kids-page-hero.enjoyment{
  border:1px solid rgba(85,185,255,.70);
  background:linear-gradient(115deg,rgba(8,44,82,.66),rgba(6,19,36,.94) 58%,rgba(5,9,15,.96));
  box-shadow:0 0 30px rgba(85,185,255,.11);
}
.kids-page-hero.day{
  border:1px solid rgba(255,78,203,.68);
  background:linear-gradient(115deg,rgba(83,11,71,.66),rgba(28,9,42,.94) 58%,rgba(8,7,16,.96));
  box-shadow:0 0 30px rgba(255,78,203,.10);
}
.kids-page-hero.profile{
  border:1px solid rgba(79,216,255,.62);
  background:linear-gradient(115deg,rgba(7,46,73,.66),rgba(24,10,48,.92) 58%,rgba(7,8,17,.96));
  box-shadow:0 0 30px rgba(79,216,255,.10);
}
.kids-page-hero.messages{
  border:1px solid rgba(255,78,203,.64);
  background:linear-gradient(115deg,rgba(76,10,63,.66),rgba(28,8,38,.94) 58%,rgba(8,7,15,.96));
  box-shadow:0 0 30px rgba(255,78,203,.10);
}
.kids-page-wave{
  position:absolute;
  inset:auto -9% -30% -8%;
  width:118%;
  height:132%;
  object-fit:cover;
  opacity:.86;
  pointer-events:none;
  z-index:-1;
}
.kids-page-copy{
  position:relative;
  z-index:2;
  min-width:0;
}
.kids-page-copy .eyebrow{
  margin:0 0 7px;
  font-size:11px;
  letter-spacing:.15em;
}
.kids-page-hero.wellness .eyebrow{color:#e1b8ff}
.kids-page-hero.growth .eyebrow{color:#8df0ac}
.kids-page-hero.enjoyment .eyebrow{color:#8dd1ff}
.kids-page-hero.day .eyebrow{color:#ff91df}
.kids-page-hero.profile .eyebrow{color:#8edfff}
.kids-page-hero.messages .eyebrow{color:#ff94e1}
.kids-page-copy h1{
  margin:0;
  max-width:650px;
  font-size:clamp(29px,4vw,42px);
  line-height:1.02;
  letter-spacing:-.025em;
}
.kids-page-copy p{
  max-width:610px;
  margin:10px 0 0;
  color:#c4cada;
  font-size:13px;
  line-height:1.45;
}
.kids-page-copy button{
  margin-top:14px;
  min-height:40px;
  padding:9px 13px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:11px;
  background:rgba(7,8,14,.72);
  color:#fff;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}
.kids-page-befopo{
  position:relative;
  z-index:2;
  justify-self:end;
  width:180px;
  height:175px;
  object-fit:contain;
  filter:drop-shadow(0 13px 23px rgba(0,0,0,.28));
}

/* Category cards now show a useful preview before opening. */
.kid-subcategory-list{
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.kid-subcategory.preview-card{
  position:relative;
  overflow:hidden;
  border-radius:20px;
  background:#101525;
}
.view[data-view="wellness"] .kid-subcategory.preview-card{
  border-color:rgba(182,108,255,.46);
  background:linear-gradient(145deg,rgba(182,108,255,.08),#101525 48%);
}
.view[data-view="growth"] .kid-subcategory.preview-card{
  border-color:rgba(91,224,144,.44);
  background:linear-gradient(145deg,rgba(91,224,144,.07),#101525 48%);
}
.view[data-view="enjoyment"] .kid-subcategory.preview-card{
  border-color:rgba(85,185,255,.46);
  background:linear-gradient(145deg,rgba(85,185,255,.08),#101525 48%);
}
.kid-subcategory.preview-card .kid-subcategory-button{
  min-height:138px;
  grid-template-columns:52px minmax(0,1fr) 48px;
  gap:13px;
  padding:16px;
  align-items:start;
}
.kid-subcategory.preview-card .subcategory-icon{
  width:50px;
  height:50px;
  padding:10px;
  border-radius:15px;
}
.kid-subcategory.preview-card .subcategory-icon svg{
  display:block;
  width:100%;
  height:100%;
}
.view[data-view="wellness"] .subcategory-icon{
  color:#d4a2ff;
  border:1px solid rgba(182,108,255,.50);
  background:rgba(182,108,255,.12);
}
.view[data-view="growth"] .subcategory-icon{
  color:#80efa2;
  border:1px solid rgba(91,224,144,.48);
  background:rgba(91,224,144,.11);
}
.view[data-view="enjoyment"] .subcategory-icon{
  color:#76c9ff;
  border:1px solid rgba(85,185,255,.50);
  background:rgba(85,185,255,.11);
}
.kid-subcategory.preview-card .subcategory-copy{
  min-width:0;
  display:grid;
  align-content:start;
  gap:5px;
}
.kid-subcategory.preview-card .subcategory-copy b{
  font-size:14px;
  line-height:1.12;
}
.kid-subcategory.preview-card .subcategory-copy > small{
  margin:0;
  font-size:10.5px;
  line-height:1.35;
}
.subcategory-peek{
  display:grid;
  gap:3px;
  margin-top:5px;
  padding-top:7px;
  border-top:1px solid rgba(255,255,255,.08);
}
.subcategory-peek em{
  font-size:8px;
  font-style:normal;
  font-weight:950;
  letter-spacing:.09em;
}
.view[data-view="wellness"] .subcategory-peek em{color:#d7adff}
.view[data-view="growth"] .subcategory-peek em{color:#8bf2a9}
.view[data-view="enjoyment"] .subcategory-peek em{color:#84d0ff}
.subcategory-peek strong{
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  color:#eef1f8;
  font-size:10px;
  font-weight:750;
  line-height:1.3;
}
.kid-subcategory.preview-card .subcategory-open{
  align-self:center;
  display:grid;
  justify-items:center;
  gap:2px;
  color:#fff;
  font-size:27px;
}
.kid-subcategory.preview-card .subcategory-open small{
  font-size:7px;
  font-weight:950;
  letter-spacing:.07em;
}
.kid-subcategory.preview-card .kid-subcategory-detail{
  padding:0 16px 16px;
  border-top:1px solid rgba(255,255,255,.07);
}
.kid-subcategory.preview-card:has(.kid-subcategory-button[aria-expanded="true"]){
  grid-column:1/-1;
}
.daily-idea{
  min-height:64px;
  padding:12px;
}
.daily-idea b{font-size:.68rem}
.daily-idea small{font-size:.82rem}
.daily-idea button{
  min-height:36px;
  padding:8px 11px;
}

/* My Day mirrors the dashboard preview language from Mini. */
.kids-day-preview{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0 0 14px;
}
.kids-day-preview button{
  min-height:94px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:17px;
  background:#101522;
  color:#fff;
  text-align:left;
  cursor:pointer;
}
.kids-day-preview button:nth-child(1){border-color:rgba(255,78,203,.42);background:linear-gradient(145deg,rgba(255,78,203,.08),#101522)}
.kids-day-preview button:nth-child(2){border-color:rgba(160,109,255,.42);background:linear-gradient(145deg,rgba(160,109,255,.08),#101522)}
.kids-day-preview button:nth-child(3){border-color:rgba(79,216,255,.42);background:linear-gradient(145deg,rgba(79,216,255,.08),#101522)}
.kids-day-preview button:nth-child(4){border-color:rgba(85,185,255,.42);background:linear-gradient(145deg,rgba(85,185,255,.08),#101522)}
.preview-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(255,255,255,.07);
  font-size:18px;
  font-weight:950;
}
.kids-day-preview button > span:last-child{
  min-width:0;
  display:grid;
  gap:4px;
}
.kids-day-preview small{
  color:#aeb6c8;
  font-size:8px;
  font-weight:950;
  letter-spacing:.08em;
}
.kids-day-preview b{
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  font-size:11px;
  line-height:1.25;
}

/* Profile and messages continue the same card rhythm. */
.view[data-view="profile"] .kid-profile-card{
  min-height:180px;
  border-color:rgba(79,216,255,.30);
  background:linear-gradient(135deg,rgba(79,216,255,.08),rgba(160,109,255,.06));
}
.view[data-view="messages"] .family-message-thread,
.view[data-view="messages"] .kid-reply-form{
  border-radius:18px;
}
.grownup-card img{
  object-fit:contain;
  padding:14px;
}

/* Stronger active nav state, still one compact bar. */
.kids-nav button.active{
  background:linear-gradient(135deg,rgba(255,78,203,.30),rgba(79,216,255,.23));
  color:#fff;
  box-shadow:0 0 18px rgba(160,109,255,.15),inset 0 0 12px rgba(255,255,255,.04);
}
.kids-nav button[data-view-link="wellness"].active{box-shadow:0 0 18px rgba(182,108,255,.23);background:rgba(182,108,255,.22)}
.kids-nav button[data-view-link="growth"].active{box-shadow:0 0 18px rgba(91,224,144,.21);background:rgba(91,224,144,.18)}
.kids-nav button[data-view-link="enjoyment"].active{box-shadow:0 0 18px rgba(85,185,255,.22);background:rgba(85,185,255,.19)}
.kids-nav button[data-view-link="plan"].active{box-shadow:0 0 18px rgba(255,78,203,.21);background:rgba(255,78,203,.19)}

@media(max-width:760px){
  .kids-page-hero{
    grid-template-columns:minmax(0,1fr) 145px;
    min-height:190px;
    padding:21px;
  }
  .kids-page-befopo{
    width:140px;
    height:145px;
  }
  .kids-page-copy h1{font-size:30px}
  .kids-day-preview{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .kids-pillar-preview{gap:4px}
  .kids-pillar-preview em{font-size:7px;padding:3px 5px}

  .kids-page-hero{
    grid-template-columns:minmax(0,1fr) 104px;
    gap:8px;
    min-height:164px;
    padding:16px;
    border-radius:21px;
  }
  .kids-page-wave{
    inset:auto -15% -30% -14%;
    width:128%;
    opacity:.72;
  }
  .kids-page-copy .eyebrow{font-size:9px}
  .kids-page-copy h1{
    font-size:23px;
    line-height:1.04;
  }
  .kids-page-copy p{
    margin-top:7px;
    font-size:10.5px;
    line-height:1.35;
  }
  .kids-page-copy button{
    min-height:34px;
    margin-top:9px;
    padding:7px 9px;
    font-size:8px;
  }
  .kids-page-befopo{
    width:100px;
    height:108px;
  }

  .kid-subcategory-list{grid-template-columns:1fr}
  .kid-subcategory.preview-card .kid-subcategory-button{
    min-height:120px;
    grid-template-columns:46px minmax(0,1fr) 38px;
    gap:10px;
    padding:13px;
  }
  .kid-subcategory.preview-card .subcategory-icon{
    width:45px;
    height:45px;
    padding:8px;
  }
  .kid-subcategory.preview-card .subcategory-copy b{font-size:13px}
  .kid-subcategory.preview-card .subcategory-copy > small{font-size:10px}
  .subcategory-peek strong{font-size:9.5px}

  .kids-day-preview{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .kids-day-preview button{
    min-height:84px;
    grid-template-columns:36px minmax(0,1fr);
    gap:8px;
    padding:10px;
  }
  .preview-icon{
    width:35px;
    height:35px;
    font-size:15px;
  }
  .kids-day-preview b{font-size:10px}

  .quick-task-form{
    grid-template-columns:1fr 1fr;
  }
  .quick-task-form label:first-child{grid-column:1/-1}
  .quick-task-form>button{grid-column:1/-1}
}


/* ============================================================
   BYP KIDS KIDS18 — image-first previews
   Sample-style visual previews using four lightweight WebP sprites.
   ============================================================ */
.kids-image-preview-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:14px;
}
.kids-image-preview-card{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  min-height:275px;
  padding:0;
  overflow:hidden;
  position:relative;
}
.kids-home-preview-image{
  display:block;
  position:relative;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  flex:0 0 auto;
  overflow:hidden;
  background-image:url('/kids/assets/previews/home.webp?v=kids30');
  background-size:300% 100%;
  background-repeat:no-repeat;
  background-color:#0b1020;
  border-bottom:0;
}
.kids-home-preview-image::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:44%;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(9,12,22,0) 0%,rgba(9,12,22,.18) 38%,rgba(9,12,22,.78) 82%,rgba(9,12,22,.96) 100%);
}
.preview-wellness{background-position:0% 50%}
.preview-growth{background-position:50% 50%}
.preview-enjoyment{background-position:100% 50%}
.kids-preview-card-body{
  display:flex;
  flex-direction:column;
  flex:1;
  position:relative;
  z-index:2;
  gap:10px;
  margin-top:-28px;
  padding:36px 15px 15px;
  background:linear-gradient(180deg,rgba(9,12,22,0) 0,rgba(9,12,22,.78) 30px,rgba(9,12,22,.97) 54px,rgba(9,12,22,.98) 100%);
}
.kids-preview-title-row{
  display:grid;
  grid-template-columns:43px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.kids-preview-title-row > i{
  font-style:normal;
  font-size:25px;
  opacity:.78;
}
.kids-image-preview-card .kids-pillar-icon{
  width:43px;
  height:43px;
  padding:8px;
  border-radius:13px;
}
.kids-image-preview-card .kids-pillar-copy{
  display:grid;
  gap:3px;
  min-width:0;
}
.kids-image-preview-card .kids-pillar-copy b{
  font-size:15px;
  line-height:1.05;
}
.kids-image-preview-card .kids-pillar-copy small{
  font-size:10.5px;
  line-height:1.3;
}
.kids-home-preview-list{
  display:grid;
  gap:6px;
  margin-top:auto;
}
.kids-home-preview-list em{
  position:relative;
  display:block;
  min-height:25px;
  padding:6px 8px 6px 24px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:8px;
  background:rgba(3,5,10,.48);
  color:#f2f4fa;
  font-size:10px;
  font-style:normal;
  font-weight:850;
  line-height:1.2;
}
.kids-home-preview-list em::before{
  content:"•";
  position:absolute;
  left:9px;
  top:5px;
  font-size:14px;
  line-height:1;
}
.kids-image-preview-card.wellness .kids-home-preview-list em::before{color:#cf9bff}
.kids-image-preview-card.growth .kids-home-preview-list em::before{color:#7ef2a1}
.kids-image-preview-card.enjoyment .kids-home-preview-list em::before{color:#72c9ff}

/* Inner page cards: text + real visual preview + open affordance. */
.kid-subcategory.preview-card .kid-subcategory-button{
  min-height:154px;
  grid-template-columns:50px minmax(0,1fr) 150px 38px;
  gap:13px;
  align-items:center;
}
.subcategory-photo{
  width:150px;
  height:94px;
  justify-self:end;
  border:1px solid rgba(255,255,255,.12);
  border-radius:13px;
  background-repeat:no-repeat;
  background-size:300% 200%;
  background-color:#0b1020;
  box-shadow:0 0 14px rgba(0,0,0,.18);
}
.subcategory-photo.wellness{
  background-image:url('/kids/assets/previews/wellness.webp?v=kids19');
}
.subcategory-photo.growth{
  background-image:url('/kids/assets/previews/growth.webp?v=kids19');
}
.subcategory-photo.enjoyment{
  background-image:url('/kids/assets/previews/enjoyment.webp?v=kids19');
}
.subcategory-photo.p0{background-position:0% 0%}
.subcategory-photo.p1{background-position:50% 0%}
.subcategory-photo.p2{background-position:100% 0%}
.subcategory-photo.p3{background-position:0% 100%}
.subcategory-photo.p4{background-position:50% 100%}
.subcategory-photo.p5{background-position:100% 100%}

.kid-subcategory.preview-card .subcategory-copy{
  gap:6px;
}
.kid-subcategory.preview-card .subcategory-copy b{
  font-size:15px;
}
.kid-subcategory.preview-card .subcategory-copy > small{
  font-size:11px;
  line-height:1.38;
}
.subcategory-peek{
  margin-top:5px;
  padding:8px 9px;
  border-top:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:9px;
  background:rgba(3,5,10,.35);
}
.subcategory-peek em{
  font-size:8px;
}
.subcategory-peek strong{
  font-size:10.5px;
  line-height:1.32;
}
.kid-subcategory.preview-card .subcategory-open{
  font-size:29px;
}
.kid-subcategory.preview-card .subcategory-open small{
  font-size:7.5px;
}

/* Make the page mascots visibly present and sized consistently. */
.kids-dashboard-befopo img{
  display:block;
  min-width:150px;
  min-height:150px;
}
.kids-page-befopo{
  display:block;
  min-width:145px;
  min-height:145px;
}

/* The SVG poses stay crisp and lightweight. */
.kids-page-befopo[src$=".svg?v=kids19"]{
  width:165px;
  height:170px;
}

/* More sample-like rhythm for My Day/Profile/Messages. */
.kids-day-preview{
  gap:11px;
}
.kids-day-preview button{
  min-height:104px;
}
.view[data-view="profile"] .kid-profile-card{
  margin-top:2px;
}
.view[data-view="messages"] .family-message-thread{
  margin-top:14px;
}

/* Active nav is clearer without making the bar heavy. */
.kids-nav button.active{
  transform:translateY(-1px);
}
.kids-nav button.active span{
  transform:scale(1.08);
}

@media(max-width:760px){
  .kids-image-preview-grid{
    grid-template-columns:1fr 1fr;
  }
  .kids-image-preview-card.enjoyment{
    grid-column:1/-1;
  }
  .kids-image-preview-card.enjoyment .kids-home-preview-image{
    height:clamp(170px,28vw,205px);
    aspect-ratio:auto;
    flex-basis:auto;
    background-size:300% auto;
    background-position-y:36%;
  }
  .kid-subcategory.preview-card .kid-subcategory-button{
    grid-template-columns:48px minmax(0,1fr) 128px 34px;
    gap:10px;
  }
  .subcategory-photo{
    width:128px;
    height:84px;
  }
}

@media(max-width:560px){
  .kids-image-preview-grid{
    grid-template-columns:1fr;
    gap:10px;
  }
  .kids-image-preview-card.enjoyment{
    grid-column:auto;
  }
  .kids-image-preview-card{
    min-height:250px;
  }
  .kids-home-preview-image,
  .kids-image-preview-card.enjoyment .kids-home-preview-image{
    width:100%;
    height:auto;
    aspect-ratio:16/9;
    flex-basis:auto;
    background-size:300% 100%;
  }
  .kids-preview-card-body{
    margin-top:-26px;
    padding:34px 13px 13px;
  }
  .kids-home-preview-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px;
  }
  .kids-home-preview-list em{
    min-height:34px;
    display:grid;
    place-items:center;
    padding:5px 5px;
    text-align:center;
    font-size:8.5px;
  }
  .kids-home-preview-list em::before{
    display:none;
  }

  .kid-subcategory.preview-card .kid-subcategory-button{
    min-height:210px;
    grid-template-columns:43px minmax(0,1fr) 32px;
    grid-template-areas:
      "icon copy open"
      "photo photo photo";
    align-items:start;
    gap:9px 10px;
    padding:13px;
  }
  .kid-subcategory.preview-card .subcategory-icon{grid-area:icon}
  .kid-subcategory.preview-card .subcategory-copy{grid-area:copy}
  .kid-subcategory.preview-card .subcategory-open{
    grid-area:open;
    align-self:center;
  }
  .subcategory-photo{
    grid-area:photo;
    width:100%;
    height:105px;
    margin-top:2px;
    justify-self:stretch;
  }
  .subcategory-peek{
    padding:7px 8px;
  }
  .kids-dashboard-befopo img{
    min-width:92px;
    min-height:92px;
  }
  .kids-page-befopo{
    min-width:92px;
    min-height:98px;
  }
  .kids-page-befopo[src$=".svg?v=kids19"]{
    width:100px;
    height:108px;
  }
}


/* ============================================================
   BYP KIDS KIDS19 — daily sequence and progress
   ============================================================ */
.kids-day-rhythm-copy{
  margin:7px 0 10px;
  color:#d7dbea;
  font-size:12px;
  font-weight:750;
  line-height:1.35;
}
.kids-dashboard-pills span{
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.kids-dashboard-pills span b{
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  border:1px solid currentColor;
  border-radius:7px;
  background:rgba(255,255,255,.055);
  font-size:12px;
  line-height:1;
  font-weight:1000;
}
.kids-dashboard-pills > i{
  font-size:14px;
  opacity:.72;
}

.kids-image-preview-card{
  position:relative;
}
.kids-step-number{
  position:absolute;
  z-index:4;
  top:12px;
  left:12px;
  display:grid;
  place-items:center;
  width:42px;
  height:48px;
  border-radius:14px;
  border:1px solid currentColor;
  background:rgba(5,7,14,.76);
  backdrop-filter:blur(8px);
  font-size:30px;
  font-weight:1000;
  line-height:1;
  letter-spacing:-.06em;
  box-shadow:0 8px 20px rgba(0,0,0,.24);
}
.kids-image-preview-card.wellness .kids-step-number{color:#d29cff}
.kids-image-preview-card.growth .kids-step-number{color:#72f29a}
.kids-image-preview-card.enjoyment .kids-step-number{color:#72c9ff}

.kids-category-progress{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:8px;
  margin-top:2px;
}
.kids-category-progress > b{
  font-size:9px;
  line-height:1;
  white-space:nowrap;
}
.kids-category-progress > span{
  position:relative;
  display:block;
  height:7px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.05);
}
.kids-category-progress > span > i{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  transition:width .28s ease;
}
.kids-image-preview-card.wellness .kids-category-progress > span > i{
  background:linear-gradient(90deg,#a855f7,#ff4ecb);
}
.kids-image-preview-card.growth .kids-category-progress > span > i{
  background:linear-gradient(90deg,#39d97a,#72f29a);
}
.kids-image-preview-card.enjoyment .kids-category-progress > span > i{
  background:linear-gradient(90deg,#0a72ff,#55d9ff);
}

.kids-home-completion{
  display:grid;
  grid-template-columns:auto minmax(110px,1fr) auto;
  align-items:center;
  gap:8px;
  margin-top:9px;
  max-width:480px;
}
.kids-home-completion > b{
  color:#fff;
  font-size:10px;
  font-weight:900;
  line-height:1.2;
}
.kids-home-progress{
  display:block;
  height:8px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.055);
}
.kids-home-progress > i{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#ff4ecb,#a06dff,#4fd8ff);
  transition:width .28s ease;
}
.kids-home-completion > em{
  color:#ff9ce4;
  font-size:10px;
  font-style:normal;
  font-weight:950;
}
.kids-my-day-count{
  min-width:92px;
}

@media(max-width:560px){
  .kids-day-rhythm-copy{
    margin:5px 0 7px;
    font-size:9px;
  }
  .kids-dashboard-pills span b{
    width:16px;
    height:16px;
    border-radius:5px;
    font-size:9px;
  }
  .kids-dashboard-pills > i{
    font-size:10px;
  }
  .kids-step-number{
    top:9px;
    left:9px;
    width:36px;
    height:41px;
    border-radius:12px;
    font-size:25px;
  }
  .kids-category-progress{
    grid-template-columns:1fr;
    gap:5px;
  }
  .kids-category-progress > b{
    font-size:8.5px;
  }
  .kids-home-completion{
    grid-template-columns:1fr auto;
    gap:5px 8px;
    max-width:none;
  }
  .kids-home-completion > b{
    grid-column:1/-1;
    font-size:9px;
  }
  .kids-home-progress{
    height:7px;
  }
  .kids-home-completion > em{
    font-size:9px;
  }
}


/* ============================================================
   BYP KIDS KIDS20 — approved balloon-kids artwork
   One optimized 3x7 sprite: Home row + Wellness 2 rows +
   Growth 2 rows + Enjoyment 2 rows.
   ============================================================ */
.kids-home-preview-image,
.subcategory-photo{
  position:relative;
  overflow:hidden;
  background-image:url('/kids/assets/previews/balloon-kids.webp?v=kids21')!important;
  background-size:300% 700%!important;
  background-repeat:no-repeat!important;
  background-color:#090d18;
  border-color:transparent!important;
}

/* Home: first logical sprite row */
.preview-wellness{background-position:0% 0%!important}
.preview-growth{background-position:50% 0%!important}
.preview-enjoyment{background-position:100% 0%!important}

/* Wellness: logical rows 2–3 */
.subcategory-photo.wellness.p0{background-position:100% 33.3333%!important}
.subcategory-photo.wellness.p1{background-position:50% 16.6667%!important}
.subcategory-photo.wellness.p2{background-position:100% 16.6667%!important}
.subcategory-photo.wellness.p3{background-position:0% 66.6667%!important}
.subcategory-photo.wellness.p4{background-position:50% 33.3333%!important}
.subcategory-photo.wellness.p5{background-position:100% 33.3333%!important}

/* Growth: logical rows 4–5 */
.subcategory-photo.growth.p0{background-position:0% 50%!important}
.subcategory-photo.growth.p1{background-position:50% 50%!important}
.subcategory-photo.growth.p2{background-position:100% 50%!important}
.subcategory-photo.growth.p3{background-position:0% 66.6667%!important}
.subcategory-photo.growth.p4{background-position:50% 66.6667%!important}
.subcategory-photo.growth.p5{background-position:100% 66.6667%!important}

/* Enjoyment: logical rows 6–7 */
.subcategory-photo.enjoyment.p0{background-position:0% 83.3333%!important}
.subcategory-photo.enjoyment.p1{background-position:50% 83.3333%!important}
.subcategory-photo.enjoyment.p2{background-position:100% 83.3333%!important}
.subcategory-photo.enjoyment.p3{background-position:0% 100%!important}
.subcategory-photo.enjoyment.p4{background-position:50% 100%!important}
.subcategory-photo.enjoyment.p5{background-position:100% 100%!important}

/* Soft fade into each card instead of a hard image/content line. */
.kids-home-preview-image::after,
.subcategory-photo::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(
    to bottom,
    rgba(7,9,17,0) 48%,
    rgba(7,9,17,.18) 66%,
    rgba(7,9,17,.72) 88%,
    rgba(7,9,17,.94) 100%
  );
}
.kids-home-preview-image{
  height:148px;
  flex-basis:148px;
  border-bottom:0!important;
  box-shadow:inset 0 -22px 24px rgba(7,9,17,.38);
}
.subcategory-photo{
  height:102px;
  border:0!important;
  box-shadow:0 0 18px rgba(0,0,0,.18), inset 0 -14px 18px rgba(7,9,17,.30);
}

/* Keep generated artwork crisp; never stretch it beyond its crop. */
.kids-home-preview-image,
.subcategory-photo{
  image-rendering:auto;
  background-clip:padding-box;
}

/* Softer card transition below the image. */
.kids-preview-card-body{
  position:relative;
  margin-top:-18px;
  padding-top:28px;
  z-index:2;
  background:linear-gradient(to bottom,rgba(7,9,17,0),rgba(7,9,17,.74) 24px,rgba(7,9,17,.94) 58px);
}
.kids-image-preview-card.wellness .kids-preview-card-body{
  background:linear-gradient(to bottom,rgba(24,7,36,0),rgba(24,7,36,.78) 24px,rgba(12,8,20,.96) 58px);
}
.kids-image-preview-card.growth .kids-preview-card-body{
  background:linear-gradient(to bottom,rgba(4,28,17,0),rgba(4,28,17,.78) 24px,rgba(5,15,11,.96) 58px);
}
.kids-image-preview-card.enjoyment .kids-preview-card-body{
  background:linear-gradient(to bottom,rgba(4,20,38,0),rgba(4,20,38,.78) 24px,rgba(5,12,22,.96) 58px);
}

@media(max-width:760px){
  .kids-home-preview-image,
  .kids-image-preview-card.enjoyment .kids-home-preview-image{
    height:140px;
    flex-basis:140px;
  }
  .subcategory-photo{height:92px}
}
@media(max-width:560px){
  .kids-home-preview-image,
  .kids-image-preview-card.enjoyment .kids-home-preview-image{
    height:130px;
    flex-basis:130px;
  }
  .subcategory-photo{
    width:100%;
    height:118px;
  }
}


/* ============================================================
   BYP KIDS KIDS21 — bottom tools polish
   ============================================================ */
.kids-dashboard-tools{
  gap:16px;
  margin-top:18px;
  margin-bottom:28px;
}
.kids-dashboard-tools .kid-home-tool{
  min-height:116px;
  padding:19px 20px;
  gap:16px;
}
.kids-dashboard-tools .kid-home-tool span:nth-child(2){
  display:grid;
  align-content:center;
  gap:6px;
  min-width:0;
}
.kids-dashboard-tools .kid-home-tool span:nth-child(2) b,
.kids-dashboard-tools .kid-home-tool span:nth-child(2) small{
  display:block;
  margin:0;
}
.kids-dashboard-tools .kid-home-tool b{
  font-size:15px;
  line-height:1.1;
}
.kids-dashboard-tools .kid-home-tool small{
  font-size:11.5px;
  line-height:1.35;
}
.kids-dashboard-tools .kid-home-avatar,
.kids-dashboard-tools .kid-home-icon{
  width:58px;
  height:58px;
  border-radius:17px;
}
.kids-dashboard-tools .kid-home-tool > i{
  justify-self:end;
  align-self:center;
  margin-left:4px;
}
@media(max-width:760px){
  .kids-dashboard-tools{
    gap:12px;
    margin-top:14px;
    margin-bottom:22px;
  }
  .kids-dashboard-tools .kid-home-tool{
    min-height:104px;
    padding:16px;
  }
}
@media(max-width:560px){
  .kids-dashboard-tools{
    grid-template-columns:1fr;
    gap:10px;
    margin-top:12px;
    margin-bottom:18px;
  }
  .kids-dashboard-tools .kid-home-tool{
    min-height:92px;
    padding:14px;
    gap:12px;
  }
  .kids-dashboard-tools .kid-home-avatar,
  .kids-dashboard-tools .kid-home-icon{
    width:50px;
    height:50px;
  }
  .kids-dashboard-tools .kid-home-tool b{font-size:13.5px}
  .kids-dashboard-tools .kid-home-tool small{font-size:10.5px}
}


/* ============================================================
   BYP KIDS KIDS22 — balanced home art
   Equal visual weight across Wellness / Growth / Enjoyment.
   ============================================================ */
.kids-image-preview-grid{
  gap:16px;
}
.kids-home-preview-image{
  height:156px;
  flex-basis:156px;
  border-bottom:0!important;
  box-shadow:inset 0 -30px 34px rgba(5,7,14,.40);
}
/* Wellness already has one dominant subject, so keep the full crop. */
.preview-wellness{
  background-size:300% 700%!important;
  background-position:0% 0%!important;
}
/* Growth has three smaller subjects: bring them forward slightly. */
.preview-growth{
  background-size:327% 763%!important;
  background-position:50% 0%!important;
}
/* Enjoyment has the busiest group: a lighter zoom keeps faces readable
   without crowding out the basketball / dog / Befopo context. */
.preview-enjoyment{
  background-size:316% 737%!important;
  background-position:100% 0%!important;
}
.kids-preview-card-body{
  margin-top:-20px;
  padding-top:30px;
}
.kids-step-number{
  top:13px;
  left:13px;
  width:43px;
  height:50px;
}
/* Identical fade depth on all three cards. */
.kids-image-preview-card .kids-home-preview-image{
  position:relative;
}
.kids-image-preview-card.wellness .kids-preview-card-body{
  background:linear-gradient(to bottom,rgba(24,7,36,0),rgba(24,7,36,.80) 26px,rgba(12,8,20,.97) 62px);
}
.kids-image-preview-card.growth .kids-preview-card-body{
  background:linear-gradient(to bottom,rgba(4,28,17,0),rgba(4,28,17,.80) 26px,rgba(5,15,11,.97) 62px);
}
.kids-image-preview-card.enjoyment .kids-preview-card-body{
  background:linear-gradient(to bottom,rgba(4,20,38,0),rgba(4,20,38,.80) 26px,rgba(5,12,22,.97) 62px);
}
@media(max-width:760px){
  .kids-home-preview-image,
  .kids-image-preview-card.enjoyment .kids-home-preview-image{
    height:148px;
    flex-basis:148px;
  }
}
@media(max-width:560px){
  .kids-image-preview-grid{gap:11px}
  .kids-home-preview-image,
  .kids-image-preview-card.enjoyment .kids-home-preview-image{
    height:136px;
    flex-basis:136px;
  }
  .kids-step-number{
    top:10px;
    left:10px;
    width:37px;
    height:43px;
  }
}


/* ============================================================
   BYP KIDS KIDS23 — correct Clean Space art
   Clean Space uses the actual cleaning/home-space panel, not bubble bath.
   ============================================================ */
.subcategory-photo.wellness.p3{
  background-position:0% 66.6667%!important;
}


/* ============================================================
   BYP KIDS KIDS24 — positive Mindset art
   Mindset uses the bright calm/confidence visual, not the sleep scene.
   ============================================================ */
.subcategory-photo.wellness.p0{
  background-position:100% 33.3333%!important;
}


/* ============================================================
   BYP KIDS KIDS25 — automatic daily path
   ============================================================ */
.daily-step-group{
  display:grid;
  gap:8px;
  margin:0 0 18px;
}
.daily-step-head{
  display:grid;
  grid-template-columns:36px 1fr auto;
  align-items:center;
  gap:9px;
  padding:4px 2px 2px;
}
.daily-step-head>span{
  width:32px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.18);
  border-radius:11px;
  font-weight:950;
  font-size:1rem;
}
.daily-step-head>b{
  font-size:.82rem;
  letter-spacing:.12em;
}
.daily-step-head>small{
  color:var(--muted);
  font-size:.68rem;
  font-weight:900;
}
.daily-step-group.wellness .daily-step-head>span{color:#cf9bff;border-color:rgba(168,85,255,.45)}
.daily-step-group.growth .daily-step-head>span{color:#72f29a;border-color:rgba(99,255,140,.40)}
.daily-step-group.enjoyment .daily-step-head>span{color:#72c9ff;border-color:rgba(79,216,255,.45)}
.daily-step-list{display:grid;gap:8px}
.plan-task.preset{
  grid-template-columns:40px 1fr;
  align-items:center;
  min-height:68px;
  padding:12px 14px;
}
.plan-task.preset .task-check{
  width:38px;
  height:38px;
  border-radius:12px;
}
.plan-task.preset .task-main>b{
  font-size:.94rem;
  line-height:1.25;
}
.plan-task.preset .task-main>small{
  font-size:.67rem;
  letter-spacing:.06em;
}
.preset-link-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}
.preset-open-link,
.preset-add-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:31px;
  border:1px solid rgba(79,216,255,.34);
  border-radius:9px;
  padding:6px 9px;
  background:rgba(79,216,255,.06);
  color:#fff;
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.05em;
  text-decoration:none;
}
.preset-add-link{
  cursor:pointer;
  border-color:rgba(255,78,203,.34);
  background:rgba(255,78,203,.06);
}
.preset-link-actions small{
  color:var(--muted);
  font-size:.62rem;
}
.daily-routine-note{
  margin:0 0 12px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(168,85,255,.08),rgba(79,216,255,.06));
  color:rgba(255,255,255,.72);
  font-size:.76rem;
  line-height:1.45;
}
.extra-task-wrap{
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.08);
}
.extra-task-wrap>span{
  display:block;
  margin:0 0 9px;
  font-size:.7rem;
  font-weight:950;
  letter-spacing:.11em;
  color:var(--muted);
}


/* ============================================================
   BYP KIDS KIDS26 — link on every My Day task
   ============================================================ */
.preset-link-actions{
  align-items:stretch;
}
.preset-open-link,
.preset-add-link{
  min-height:34px;
}
.preset-open-link{
  border-color:rgba(79,216,255,.40);
}
.preset-add-link{
  border-color:rgba(255,78,203,.42);
  background:rgba(255,78,203,.08);
}
.plan-task.done .preset-link-actions{
  opacity:.9;
}
@media(max-width:560px){
  .preset-link-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .preset-open-link,
  .preset-add-link{
    width:100%;
  }
}


/* ============================================================
   BYP KIDS KIDS27 — grown-up PIN gate
   ============================================================ */
.grownup-gate{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(2,5,12,.82);
  backdrop-filter:blur(10px);
}
.grownup-gate.hidden{display:none!important}
.grownup-gate-card{
  position:relative;
  width:min(440px,100%);
  border:1px solid rgba(255,255,255,.13);
  border-radius:24px;
  padding:24px;
  background:linear-gradient(145deg,#111827,#0a0f1c);
  box-shadow:0 22px 80px rgba(0,0,0,.48);
}
.grownup-gate-card h2{
  margin:6px 0 8px;
  font-size:1.65rem;
}
.grownup-gate-card>p{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.45;
}
.grownup-gate-close{
  position:absolute;
  right:14px;
  top:14px;
  width:36px;
  height:36px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:11px;
  background:#0c1220;
  color:#fff;
  font-size:1.25rem;
  cursor:pointer;
}
.grownup-pin-form{
  display:grid;
  gap:12px;
}
.grownup-pin-form label{
  display:grid;
  gap:6px;
}
.grownup-pin-form label>span{
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.09em;
  color:#dfe7ff;
}
.grownup-pin-form input{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:#080d18;
  color:#fff;
  padding:14px;
  font:inherit;
  font-size:1.25rem;
  letter-spacing:.35em;
  text-align:center;
}
.grownup-pin-form button{
  min-height:46px;
  border:0;
  border-radius:12px;
  background:linear-gradient(90deg,var(--pink),var(--blue));
  color:#fff;
  font-weight:950;
  letter-spacing:.04em;
  cursor:pointer;
}
.grownup-gate-error{
  min-height:18px;
  margin-top:10px;
  color:#ffb2c7;
  font-size:.78rem;
  font-weight:800;
}
.grownup-gate-note{
  display:block;
  margin-top:10px;
  color:var(--muted);
  line-height:1.4;
}


/* ============================================================
   BYP KIDS KIDS28 — welcome name and photo removal
   ============================================================ */
.kids-welcome-name{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  margin:4px 0 7px;
  padding:6px 10px;
  border:1px solid rgba(79,216,255,.28);
  border-radius:999px;
  background:rgba(79,216,255,.06);
  color:#e9fbff;
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.09em;
}
.kids-welcome-name.hidden{display:none!important}
.profile-photo-actions{
  display:grid;
  gap:8px;
  align-content:start;
}
.remove-kid-photo{
  min-height:38px;
  border:1px solid rgba(255,116,145,.38);
  border-radius:10px;
  background:rgba(255,90,120,.06);
  color:#ffd7df;
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.06em;
  cursor:pointer;
}
.remove-kid-photo.hidden{display:none!important}


/* ============================================================
   BYP KIDS KIDS29 — install update offline
   ============================================================ */
.kids-device-card{
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:center;
  margin:16px 0;
  padding:18px;
  border:1px solid rgba(79,216,255,.20);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(79,216,255,.06),rgba(168,85,255,.05)),var(--panel);
}
.kids-device-copy h2{margin:5px 0 7px}
.kids-device-copy p{margin:0;color:var(--muted);line-height:1.45}
.kids-device-status{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.kids-device-status b{
  border:1px solid rgba(99,255,140,.34);
  border-radius:999px;
  padding:6px 9px;
  color:#9cffb7;
  font-size:.65rem;
  letter-spacing:.06em;
}
.kids-device-status b.offline{color:#8eeeff;border-color:rgba(79,216,255,.38)}
.kids-device-status small{color:var(--muted);font-size:.67rem}
.kids-device-actions{display:grid;gap:8px;min-width:190px}
.kids-device-actions button,
.kids-install-dialog button{
  min-height:42px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:11px;
  background:#0c1321;
  color:#fff;
  font-size:.67rem;
  font-weight:950;
  letter-spacing:.05em;
  cursor:pointer;
}
.kids-device-actions button:first-child{
  border:0;
  background:linear-gradient(90deg,var(--pink),var(--blue));
}
.kids-app-status{
  grid-column:1/-1;
  min-height:18px;
  color:var(--muted);
  font-size:.72rem;
}
.kids-install-dialog{
  width:min(430px,calc(100% - 28px));
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  padding:24px;
  background:#0c1321;
  color:#fff;
}
.kids-install-dialog::backdrop{background:rgba(2,5,12,.82);backdrop-filter:blur(8px)}
.kids-install-dialog h2{margin:6px 0 8px}
.kids-install-dialog p{color:var(--muted);line-height:1.45}
.kids-install-close{
  float:right;
  width:36px;
  min-height:36px!important;
  font-size:1.15rem!important;
}
@media(max-width:650px){
  .kids-device-card{grid-template-columns:1fr}
  .kids-device-actions{min-width:0}
}


/* ============================================================
   BYP KIDS KIDS31 — restore category pages + seamless home art
   Final override: preserve the square source artwork's aspect ratio,
   remove hard seams/overlay lines, and let the art fade directly into copy.
   ============================================================ */
.kids-home-preview-image,
.kids-image-preview-card.enjoyment .kids-home-preview-image{
  width:100%;
  height:205px;
  flex:0 0 205px;
  aspect-ratio:auto;
  border:0!important;
  box-shadow:none!important;
  background-size:300% auto!important;
  background-repeat:no-repeat!important;
  background-color:transparent!important;
}
.preview-wellness{
  background-size:300% auto!important;
  background-position:0 0!important;
}
.preview-growth{
  background-size:300% auto!important;
  background-position:50% 0!important;
}
.preview-enjoyment{
  background-size:300% auto!important;
  background-position:100% 0!important;
}
.kids-home-preview-image::after{
  display:none!important;
  content:none!important;
}
.kids-preview-card-body{
  margin-top:-54px!important;
  padding-top:62px!important;
  border-top:0!important;
}
.kids-image-preview-card.wellness .kids-preview-card-body{
  background:linear-gradient(to bottom,rgba(24,7,36,0) 0,rgba(24,7,36,.32) 18px,rgba(24,7,36,.78) 42px,rgba(12,8,20,.97) 76px)!important;
}
.kids-image-preview-card.growth .kids-preview-card-body{
  background:linear-gradient(to bottom,rgba(4,28,17,0) 0,rgba(4,28,17,.32) 18px,rgba(4,28,17,.78) 42px,rgba(5,15,11,.97) 76px)!important;
}
.kids-image-preview-card.enjoyment .kids-preview-card-body{
  background:linear-gradient(to bottom,rgba(4,20,38,0) 0,rgba(4,20,38,.32) 18px,rgba(4,20,38,.78) 42px,rgba(5,12,22,.97) 76px)!important;
}
@media(max-width:760px){
  .kids-home-preview-image,
  .kids-image-preview-card.enjoyment .kids-home-preview-image{
    height:190px;
    flex-basis:190px;
  }
}
@media(max-width:560px){
  .kids-home-preview-image,
  .kids-image-preview-card.enjoyment .kids-home-preview-image{
    height:180px;
    flex-basis:180px;
  }
  .kids-preview-card-body{
    margin-top:-48px!important;
    padding-top:56px!important;
  }
}


/* ============================================================
   BYP EASY LOAD STANDARD — KIDS33
   ============================================================ */
.kids-device-status b.online,
#kidsOfflineStatus.online{
  color:#48e879!important;
}
#kidsOfflineStatus.offline{
  color:#ff6579!important;
}
#updateKidsBtn.update-ready,
#updateKidsBtn[data-ready="1"]{
  border-color:#e5b83e!important;
  color:#ffe184!important;
  background:rgba(229,184,62,.12)!important;
  box-shadow:0 0 14px rgba(229,184,62,.16);
}
#installKidsBtn.easyload-activate{
  min-height:50px;
  font-size:12px;
  font-weight:950;
  letter-spacing:.05em;
}
.kids-easyload-finish{
  display:grid;
  gap:8px;
  margin:14px 0;
}
.kids-easyload-finish>div{
  display:grid;
  grid-template-columns:30px 1fr;
  gap:2px 10px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:13px;
  background:rgba(255,255,255,.04);
}
.kids-easyload-finish>div>span{
  grid-row:1/3;
  width:28px;height:28px;
  display:grid;place-items:center;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.23);
  font-size:11px;font-weight:950;
}
.kids-easyload-finish b{font-size:11px}
.kids-easyload-finish small,.kids-install-note{font-size:11px;line-height:1.35}
.kid-birthday-field{
  margin:0;
  padding:12px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:14px;
}
.kid-birthday-field legend{
  padding:0 5px;
  font-size:10px;
  font-weight:950;
  letter-spacing:.08em;
}
.kid-birthday-fields{
  display:grid;
  grid-template-columns:1.25fr .75fr 1fr;
  gap:8px;
}
.kid-birthday-fields label{display:grid;gap:4px}
.kid-birthday-fields label>span{
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
}
.kid-birthday-fields select{
  width:100%;
  min-height:44px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:11px;
  background:#fff;
  color:#1f2230;
  padding:8px;
  font:inherit;
}
.kid-birthday-field>small{
  display:block;
  margin-top:7px;
  font-size:10px;
  line-height:1.35;
  opacity:.72;
}
@media(max-width:460px){
  .kid-birthday-fields{grid-template-columns:1fr 1fr}
  .kid-birthday-fields label:first-child{grid-column:1/-1}
}


/* ============================================================
   KIDS34 — responsive image sizing + visible custom-task delete
   Desktop artwork can be larger without overflowing phones.
   ============================================================ */
@media (min-width: 900px){
  .kids-dashboard-befopo img{
    width:220px!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    max-width:220px!important;
  }
  .kids-page-befopo{
    width:190px!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    max-width:190px!important;
  }
  .subcategory-photo{
    width:180px!important;
    height:112px!important;
    max-width:180px!important;
  }
}
@media (min-width: 561px) and (max-width: 899px){
  .kids-dashboard-befopo img{
    width:165px!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    max-width:165px!important;
  }
  .kids-page-befopo{
    width:145px!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    max-width:145px!important;
  }
  .subcategory-photo{
    width:128px!important;
    height:84px!important;
    max-width:128px!important;
  }
}
@media (max-width: 560px){
  .kids-dashboard-befopo img{
    width:88px!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    max-width:28vw!important;
  }
  .kids-page-befopo{
    width:88px!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    max-width:28vw!important;
  }
  .kids-home-preview-image,
  .kids-image-preview-card.enjoyment .kids-home-preview-image{
    height:148px!important;
    min-height:0!important;
    max-height:148px!important;
    aspect-ratio:auto!important;
    background-size:300% auto!important;
  }
  .subcategory-photo{
    width:100%!important;
    height:92px!important;
    min-height:0!important;
    max-height:92px!important;
  }
}
.plan-task .task-delete{
  flex:0 0 auto;
  min-width:68px;
  min-height:38px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background:#17121a;
  color:#ff9cd7;
  font-size:9px;
  font-weight:950;
  letter-spacing:.06em;
}


/* KIDS35 — keep My Day Befopo artwork at its source aspect ratio. */
.kids-page-befopo{aspect-ratio:200/230!important;height:auto!important;object-fit:contain!important;}

/* Every BYP Kids area gets a grown-up resource fallback. Owner-managed Kids
   resources (subcategory2=kids) replace the built-in YouTube backups. */
.grownup-byp-pick-copy em{color:#dcb0ff}
.grownup-byp-pick.top-pick .grownup-byp-pick-copy em{color:#efb3ff}


/* ============================================================
   BYP KIDS — RESPONSIVE FULL ART LOCK
   Each balloon-kids sprite cell is square. Preserve the full cell
   on desktop, tablet, and phone instead of cropping it into wide strips.
   ============================================================ */
.kids-home-preview-image,
.kids-image-preview-card.enjoyment .kids-home-preview-image{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  flex:0 0 auto!important;
  aspect-ratio:1 / 1!important;
  background-size:300% 700%!important;
  background-repeat:no-repeat!important;
  background-color:#090d18!important;
}
.preview-wellness{background-position:0% 0%!important}
.preview-growth{background-position:50% 0%!important}
.preview-enjoyment{background-position:100% 0%!important}

.subcategory-photo{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:1 / 1!important;
  background-size:300% 700%!important;
  background-repeat:no-repeat!important;
  background-color:#090d18!important;
}

/* Desktop: larger full artwork without stretching. */
@media (min-width:900px){
  .kids-home-preview-image,
  .kids-image-preview-card.enjoyment .kids-home-preview-image{
    width:100%!important;
    aspect-ratio:1 / 1!important;
  }
  .subcategory-photo{
    width:180px!important;
    max-width:180px!important;
    aspect-ratio:1 / 1!important;
  }
}

/* Tablet: reduce the art footprint but keep every edge visible. */
@media (min-width:561px) and (max-width:899px){
  .kids-home-preview-image,
  .kids-image-preview-card.enjoyment .kids-home-preview-image{
    width:100%!important;
    aspect-ratio:1 / 1!important;
  }
  .subcategory-photo{
    width:132px!important;
    max-width:132px!important;
    aspect-ratio:1 / 1!important;
  }
}

/* Phone: use the card width and preserve the complete square image. */
@media (max-width:560px){
  .kids-home-preview-image,
  .kids-image-preview-card.enjoyment .kids-home-preview-image{
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:1 / 1!important;
  }
  .subcategory-photo{
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:1 / 1!important;
  }
}


/* ============================================================
   BYP KIDS — GUIDED DAY + PARENT CENTER
   ============================================================ */
.kids-progress-strip{
  position:sticky;
  top:64px;
  z-index:55;
  margin:0 auto 14px;
  width:min(1180px,calc(100% - 24px));
}
.kids-progress-strip.hidden{display:none!important}
.kids-progress-main{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(130px,260px) auto;
  gap:14px;
  align-items:center;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(9,12,22,.92);
  backdrop-filter:blur(16px);
  border-radius:18px;
  padding:12px 14px;
  color:#fff;
  box-shadow:0 12px 34px rgba(0,0,0,.28);
}
.kids-progress-main>span:first-child{display:grid;gap:2px;text-align:left}
.kids-progress-main b{font-size:.82rem;letter-spacing:.08em}
.kids-progress-main small{color:#b9c5d8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kids-progress-track,.kids-focus-progress-track{
  height:8px;border-radius:999px;background:rgba(255,255,255,.10);overflow:hidden;display:block
}
.kids-progress-track i,.kids-focus-progress-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#ce81ff,#62d994,#5fc4ff);border-radius:inherit;transition:width .25s ease}
.kids-progress-main strong{font-size:.92rem}

.kids-next-up-card{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(220px,.65fr);
  overflow:hidden;
  border-radius:28px;
  margin:18px 0 16px;
  background:linear-gradient(135deg,rgba(20,23,39,.98),rgba(9,12,22,.98));
  border:1px solid rgba(255,255,255,.13);
  box-shadow:0 20px 52px rgba(0,0,0,.32);
}
.kids-next-up-copy{padding:26px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px}
.kids-next-up-copy h2{font-size:clamp(1.6rem,3vw,2.5rem);margin:0}
.kids-next-up-copy p{margin:0 0 8px;color:var(--muted);font-size:1rem}
.kids-next-up-copy button{border:0;border-radius:999px;padding:13px 18px;font-weight:900;letter-spacing:.06em;background:#fff;color:#0a0d17}
.kids-next-task-art,.kids-focus-art{
  background-image:url('/kids/assets/previews/balloon-kids.webp?v=kids21');
  background-size:300% 700%;
  background-repeat:no-repeat;
  background-color:#090d18;
}
.kids-next-task-art{width:100%;min-height:0;aspect-ratio:1/1}
.kids-next-task-art.wellness.p0,.kids-focus-art.wellness.p0{background-position:100% 33.3333%}
.kids-next-task-art.wellness.p1,.kids-focus-art.wellness.p1{background-position:50% 16.6667%}
.kids-next-task-art.wellness.p2,.kids-focus-art.wellness.p2{background-position:100% 16.6667%}
.kids-next-task-art.wellness.p3,.kids-focus-art.wellness.p3{background-position:0% 66.6667%}
.kids-next-task-art.wellness.p4,.kids-focus-art.wellness.p4{background-position:50% 33.3333%}
.kids-next-task-art.growth.p0,.kids-focus-art.growth.p0{background-position:0% 50%}
.kids-next-task-art.growth.p1,.kids-focus-art.growth.p1{background-position:50% 50%}
.kids-next-task-art.growth.p2,.kids-focus-art.growth.p2{background-position:100% 50%}
.kids-next-task-art.growth.p3,.kids-focus-art.growth.p3{background-position:0% 66.6667%}
.kids-next-task-art.growth.p4,.kids-focus-art.growth.p4{background-position:50% 66.6667%}
.kids-next-task-art.growth.p5,.kids-focus-art.growth.p5{background-position:100% 66.6667%}
.kids-next-task-art.enjoyment.p0,.kids-focus-art.enjoyment.p0{background-position:0% 83.3333%}
.kids-next-task-art.enjoyment.p1,.kids-focus-art.enjoyment.p1{background-position:50% 83.3333%}
.kids-next-task-art.enjoyment.p2,.kids-focus-art.enjoyment.p2{background-position:100% 83.3333%}
.kids-next-task-art.enjoyment.p3,.kids-focus-art.enjoyment.p3{background-position:0% 100%}
.kids-next-task-art.enjoyment.p4,.kids-focus-art.enjoyment.p4{background-position:50% 100%}

.kids-explore-heading{display:flex;justify-content:space-between;gap:16px;align-items:end;margin:20px 0 10px}
.kids-explore-heading h2{margin:4px 0 0}
.kids-explore-heading button{background:transparent;border:0;color:#fff;font-weight:900}
.kids-image-preview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.kids-image-preview-grid .kids-image-preview-card{min-width:0}

.kids-explore-hero{max-width:760px;margin:16px auto 24px;text-align:center}
.kids-explore-hero h1{font-size:clamp(2rem,5vw,3.6rem);margin:6px 0}
.kids-explore-hero p{color:var(--muted)}
.kids-explore-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.kids-explore-card{display:grid;gap:10px;padding:0 0 18px;overflow:hidden;border-radius:26px;color:#fff;text-align:left;border:1px solid rgba(255,255,255,.12)}
.kids-explore-card.wellness{background:linear-gradient(#281039,#100b18)}
.kids-explore-card.growth{background:linear-gradient(#0c3020,#07130e)}
.kids-explore-card.enjoyment{background:linear-gradient(#0a2845,#07111d)}
.kids-explore-card .kids-home-preview-image{width:100%!important;aspect-ratio:1/1!important;height:auto!important}
.kids-explore-card b,.kids-explore-card small{padding:0 18px}.kids-explore-card b{font-size:1.15rem}.kids-explore-card small{color:#c9d2df}

.kids-focus-shell{
  max-width:820px;
  margin:18px auto 32px;
  overflow:hidden;
  border-radius:30px;
  border:1px solid rgba(255,255,255,.13);
  background:#0b0f1a;
  box-shadow:0 24px 60px rgba(0,0,0,.34);
}
.kids-focus-progress{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:14px;padding:16px 20px;background:rgba(255,255,255,.035)}
.kids-focus-progress>span:first-child{font-weight:900;letter-spacing:.08em;font-size:.8rem}
.kids-focus-art{width:100%;aspect-ratio:1/1}
.kids-focus-copy{padding:24px}
.kids-focus-copy h1{font-size:clamp(2rem,5vw,3.4rem);margin:6px 0 8px}
.kids-focus-copy p{color:var(--muted);font-size:1.05rem}
.kids-focus-links{margin:18px 0}
.kids-focus-links .preset-link-actions{display:grid;gap:9px}
.kids-focus-links .preset-open-link,.kids-focus-links .preset-add-link{display:block;width:100%;text-align:center}
.kids-focus-actions{display:grid;gap:10px;margin-top:20px}
.kids-focus-done{border:0;border-radius:18px;padding:17px;font-size:1rem;font-weight:950;background:linear-gradient(90deg,#ce81ff,#67d99b,#64caff);color:#071018}
.kids-focus-skip,.kids-focus-list-btn{border:1px solid rgba(255,255,255,.15);border-radius:16px;padding:13px;background:rgba(255,255,255,.04);color:#fff;font-weight:800}

.parent-center{
  margin:18px 0 24px;
  display:grid;
  gap:16px;
}
.parent-center-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;border-radius:24px;background:linear-gradient(135deg,rgba(79,31,104,.35),rgba(10,42,29,.25),rgba(8,33,58,.28));border:1px solid rgba(255,255,255,.13)}
.parent-center-head h2{margin:4px 0 6px}.parent-center-head p{margin:0;color:var(--muted)}
.parent-center-head button{border:0;border-radius:999px;padding:12px 16px;font-weight:900;white-space:nowrap}
.parent-kid-switcher{display:flex;gap:10px;overflow-x:auto;padding:2px 0 6px}
.parent-kid-chip{display:flex;align-items:center;gap:9px;padding:10px 14px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.035);color:#fff;white-space:nowrap}
.parent-kid-chip.active{background:#fff;color:#0a0d17}
.parent-kid-chip span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(128,128,128,.18);overflow:hidden;font-weight:900}
.parent-kid-chip img{width:100%;height:100%;object-fit:cover}
.parent-center-tabs{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.parent-center-tabs button{padding:10px 8px;border-radius:14px;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.035);color:#fff;font-weight:850;font-size:.75rem}
.parent-summary-card,.parent-schedule-card{padding:20px;border-radius:22px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.03)}
.parent-today-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}
.parent-stat{padding:14px;border-radius:16px;background:rgba(255,255,255,.045);display:grid;gap:4px}.parent-stat b{font-size:1.25rem}.parent-stat small{color:var(--muted)}
.parent-task-form{display:grid;gap:14px;margin-top:14px}
.parent-task-form label{display:grid;gap:6px;font-weight:850;font-size:.74rem;letter-spacing:.05em}
.parent-task-form input,.parent-task-form select{width:100%;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:#0a0e18;color:#fff;padding:11px}
.parent-task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.parent-task-form>button{border:0;border-radius:14px;padding:14px;font-weight:950}
.parent-custom-days{display:flex;flex-wrap:wrap;gap:8px}.parent-custom-days label{display:flex;align-items:center;gap:5px;padding:8px 10px;border:1px solid rgba(255,255,255,.12);border-radius:999px}
.parent-repeat-list{display:grid;gap:8px;margin-top:16px}
.parent-repeat-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid rgba(255,255,255,.09);border-radius:14px}.parent-repeat-row small{display:block;color:var(--muted);margin-top:3px}.parent-repeat-row button{border:0;border-radius:10px;padding:8px 10px;font-weight:800}
.parent-progress-bars{display:grid;gap:10px;margin-top:10px}.parent-progress-line{display:grid;grid-template-columns:110px 1fr auto;gap:10px;align-items:center}.parent-progress-line span{height:7px;border-radius:999px;background:rgba(255,255,255,.09);overflow:hidden}.parent-progress-line i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#cf91ff,#6bdca0,#68c9ff)}

@media(max-width:760px){
  .kids-progress-strip{top:58px;width:calc(100% - 16px);margin-bottom:10px}
  .kids-progress-main{grid-template-columns:1fr auto;padding:10px 12px}.kids-progress-track{grid-column:1/-1;grid-row:2}
  .kids-next-up-card{grid-template-columns:1fr}.kids-next-task-art{min-height:0;aspect-ratio:1/1;order:-1}
  .kids-image-preview-grid,.kids-explore-grid{grid-template-columns:1fr}
  .kids-image-preview-grid .kids-home-preview-image{aspect-ratio:1/1!important}
  .kids-explore-card{grid-template-columns:118px 1fr;align-items:center;padding:0;min-height:118px}
  .kids-explore-card .kids-home-preview-image{width:118px!important;height:118px!important;aspect-ratio:1/1!important;grid-row:1/3}
  .kids-explore-card b,.kids-explore-card small{padding:0 14px 0 0}
  .kids-focus-shell{border-radius:22px}.kids-focus-copy{padding:18px}
  .parent-center-head{align-items:flex-start;flex-direction:column}
  .parent-center-tabs{grid-template-columns:repeat(3,1fr)}
  .parent-task-grid{grid-template-columns:1fr 1fr}
  .parent-today-summary{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .parent-task-grid{grid-template-columns:1fr}
  .parent-center-tabs{grid-template-columns:1fr 1fr}
  .parent-progress-line{grid-template-columns:88px 1fr auto}
}


/* BYP KIDS FAMILY ACCOUNT · 2026-10-05 */
.kids-login-gate{
  position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px;
  background:radial-gradient(circle at 20% 10%,rgba(255,25,126,.2),transparent 32%),
             radial-gradient(circle at 85% 20%,rgba(48,104,255,.22),transparent 34%),#06060a
}
.kids-login-gate.hidden{display:none}
.kids-login-card{
  width:min(520px,100%);border:1px solid rgba(255,255,255,.13);border-radius:30px;padding:26px;
  background:linear-gradient(155deg,rgba(23,23,32,.98),rgba(8,8,13,.98));box-shadow:0 28px 90px rgba(0,0,0,.55)
}
.kids-login-card>img{width:66px;height:66px;object-fit:contain;margin-bottom:12px}
.kids-login-card h1{font-size:clamp(30px,7vw,48px);line-height:.95;margin:8px 0 10px}
.kids-login-card>p{opacity:.74;line-height:1.5;margin:0 0 18px}
.kids-login-card form{display:grid;gap:12px}
.kids-login-card label{display:grid;gap:6px}
.kids-login-card label>span{font-size:10px;font-weight:900;letter-spacing:.12em;opacity:.68}
.kids-login-card input{
  min-height:52px;width:100%;border-radius:15px;border:1px solid rgba(255,255,255,.14);
  background:#0d0d14;color:#fff;padding:0 14px;font:inherit;font-size:16px
}
.kids-login-card form button,.kids-login-grownup,.kids-switch-account{
  min-height:48px;border:0;border-radius:15px;padding:0 16px;font-weight:950;letter-spacing:.03em;cursor:pointer
}
.kids-login-card form button{background:linear-gradient(90deg,#ff197e,#7654ff);color:#fff}
.kids-login-grownup{width:100%;margin-top:10px;background:rgba(255,255,255,.075);color:#fff}
.kids-login-notice{min-height:22px;margin-top:10px;font-size:13px;font-weight:800;color:#ffd8e9}
.kids-switch-account{margin:12px auto 0;display:block;background:rgba(255,255,255,.075);color:#fff}
.family-message.system{border-color:rgba(100,104,255,.32);background:rgba(100,104,255,.08)}
.family-message.message-celebration{border-color:rgba(255,25,126,.35);background:rgba(255,25,126,.085)}
.family-message em{display:block;margin-top:7px;font-style:normal;font-size:11px;opacity:.7}

/* Child-facing, explicit show/hide password option. */
.kids-login-card form #kidsShowPassword.kids-reveal-password {
  min-height:42px;width:max-content;max-width:100%;
  padding:8px 15px;margin-top:-3px;margin-bottom:1px;
  border:1px solid #9a5cff;border-radius:12px;
  background:#181129;color:#fff;font-size:12px;font-weight:900;
  letter-spacing:.04em;box-shadow:none;
}
.kids-login-card form #kidsShowPassword.kids-reveal-password:focus-visible{
  outline:3px solid #42dbff;outline-offset:3px;
}

/* BYP VIVID SECTIONS · distinct bright color identity without flat dark cards */
:root{--byp-vivid-wellness:#ba69ff;--byp-vivid-growth:#1ae1aa;--byp-vivid-enjoyment:#39bfff;--byp-vivid-family:#ff4eac}
.daily-step-group{
  display:block!important;margin:14px 0 21px!important;padding:12px;
  border:1px solid rgba(255,255,255,.2)!important;border-radius:22px;
  background:linear-gradient(120deg,rgba(130,60,211,.13),rgba(17,18,41,.95));
  box-shadow:0 8px 25px #0004;
}
.daily-step-group.wellness{border-color:rgba(186,105,255,.65)!important;background:linear-gradient(125deg,rgba(173,72,242,.2),rgba(42,20,69,.69) 38%,rgba(13,13,26,.92))}
.daily-step-group.growth{border-color:rgba(26,225,170,.65)!important;background:linear-gradient(125deg,rgba(26,225,170,.16),rgba(9,49,46,.67) 40%,rgba(11,16,28,.91))}
.daily-step-group.enjoyment{border-color:rgba(57,191,255,.66)!important;background:linear-gradient(125deg,rgba(57,191,255,.18),rgba(11,48,94,.6) 40%,rgba(12,17,31,.91))}
.daily-step-group.custom{border-color:rgba(255,78,172,.6)!important;background:linear-gradient(125deg,rgba(255,78,172,.16),rgba(32,17,46,.87))}
.daily-step-group .daily-step-head{
  display:grid!important;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;
  cursor:pointer;list-style:none;padding:9px!important;border-radius:14px;
  background:rgba(255,255,255,.055);color:#fff;
}
.daily-step-group .daily-step-head::-webkit-details-marker{display:none}
.daily-step-head::marker{content:''}
.daily-step-group .daily-step-head::after{content:'⌄';font-size:23px;line-height:1;color:inherit;grid-column:4}
.daily-step-group:not([open]) .daily-step-head::after{content:'›'}
.daily-step-group .daily-step-head>small{font-size:11px;color:#e7e4f4!important}
.daily-step-group.wellness .daily-step-head{border-left:4px solid var(--byp-vivid-wellness)}
.daily-step-group.growth .daily-step-head{border-left:4px solid var(--byp-vivid-growth)}
.daily-step-group.enjoyment .daily-step-head{border-left:4px solid var(--byp-vivid-enjoyment)}
.daily-step-group.custom .daily-step-head{border-left:4px solid var(--byp-vivid-family)}
.daily-step-group .daily-step-list{margin-top:12px;display:grid;gap:10px}
.plan-task[data-byp-category]{
  border-width:1px 1px 1px 5px!important;background:linear-gradient(100deg,#1e2336,#121624)!important;
  border-color:#516481!important;box-shadow:inset 0 0 22px #0002;
}
.plan-task[data-byp-category="wellness"]{border-color:#ad64fc!important;background:linear-gradient(115deg,#291b41,#151a2e 65%)!important}
.plan-task[data-byp-category="growth"]{border-color:#18cfac!important;background:linear-gradient(115deg,#143d3a,#111b30 65%)!important}
.plan-task[data-byp-category="enjoyment"]{border-color:#36baff!important;background:linear-gradient(115deg,#143852,#141c39 65%)!important}
.plan-task[data-byp-category="custom"]{border-color:#ff61af!important;background:linear-gradient(115deg,#3c1c38,#1a1830 65%)!important}
.plan-task[data-byp-area="NUTRITION"]{border-left-color:#c88dff!important}
.plan-task[data-byp-area="MOVEMENT"]{border-left-color:#15e0d4!important}
.plan-task[data-byp-area="CLEAN SPACE"]{border-left-color:#59d3a4!important}
.plan-task[data-byp-area="HAIR & GROOMING"]{border-left-color:#ff6cce!important}
.plan-task[data-byp-category].done{opacity:.83!important}
.plan-task[data-byp-category] .task-main>b{font-size:clamp(15px,2vw,18px);line-height:1.4;color:#fff}
.plan-task[data-byp-category] .task-main>small{color:#9edaff!important;font-size:11px}
.plan-task[data-byp-category] .task-check{background:#171b2e;border-color:#6e608b;min-width:38px;min-height:38px}
.plan-task[data-byp-category] .preset-open-link{background:rgba(41,175,250,.14);border-color:rgba(75,194,255,.66);font-size:11px;line-height:1.3}
.plan-task[data-byp-category] .preset-add-link{background:rgba(249,62,176,.13);border-color:rgba(255,87,193,.65);font-size:11px;line-height:1.3}
.kids-progress-main{border-color:rgba(94,207,255,.65)!important;background:linear-gradient(110deg,#14132c,#10283e 52%,#160f2d)!important}
.kids-progress-track i{background:linear-gradient(90deg,#bc61fb,#27ddb3,#2cb6ff,#ff5cbb)!important}
.daily-step-head:focus-visible,.task-check:focus-visible,.preset-add-link:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:700px){
  .daily-step-group .daily-step-head{grid-template-columns:32px 1fr;gap:7px}
  .daily-step-group .daily-step-head>small{grid-column:2}
  .daily-step-group .daily-step-head::after{grid-column:3;grid-row:1}
  .daily-step-group{padding:8px}
  .plan-task[data-byp-category]{padding:12px!important}
  .preset-link-actions{gap:6px}
  .plan-task[data-byp-category] .preset-open-link{white-space:normal;min-height:36px}
}
@media(prefers-reduced-motion:reduce){.daily-step-group,.plan-task[data-byp-category]{transition:none}}

/* MINI-PARITY FAMILY MESSAGES · 2026-10-09
   Chat bubbles are contained in the thread; celebration overlays are reserved
   for completed-task animations only. Responsive on phones and tablets. */
.view[data-view="messages"]{min-width:0}
.kids-family-conversation{background:#10121f;border:1px solid rgba(161,117,255,.36);border-radius:24px;overflow:hidden;box-shadow:0 15px 42px rgba(0,0,0,.28)}
.kids-family-conversation-head{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:15px;padding:16px;background:linear-gradient(115deg,rgba(255,78,203,.13),rgba(80,91,239,.08) 48%,rgba(12,17,32,.97));border-bottom:1px solid rgba(255,255,255,.10)}
.kids-family-conversation-head>img{display:block;width:64px;height:64px;object-fit:contain}
.kids-family-conversation-head h1{font-size:clamp(23px,4vw,32px);margin:2px 0 5px;line-height:1.15}
.kids-family-conversation-head p{margin:0 0 8px;color:#d2cede;line-height:1.4;font-size:13px}
#familyThreadStatus{display:block;color:#c8c8db;font-size:12px}
.kids-family-conversation-head>button{border:1px solid rgba(255,255,255,.24);background:#191c30;border-radius:12px;padding:12px;cursor:pointer;font-weight:850;font-size:12px;white-space:nowrap}
.view[data-view="messages"] .family-message-thread{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-height:220px;max-height:min(54vh,570px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;margin:0;padding:20px 16px;background:radial-gradient(circle at top right,rgba(79,216,255,.05),transparent 48%),#0c101b;scrollbar-color:#8b5eca #0c101b}
.view[data-view="messages"] .family-message{position:relative!important;inset:auto!important;z-index:auto!important;display:block!important;flex:0 0 auto;align-self:flex-start;justify-self:auto;max-width:min(86%,570px);width:max-content;min-width:145px;margin:0;background:#171728;border:1px solid rgba(172,152,227,.26);border-radius:16px 16px 16px 4px;color:#fff;backdrop-filter:none!important;pointer-events:auto;text-align:left;overflow-wrap:anywhere;box-shadow:none}
.view[data-view="messages"] .family-message.kid{align-self:flex-end;background:rgba(16,88,177,.21);border-color:rgba(73,180,255,.45);border-radius:16px 16px 4px 16px}
.view[data-view="messages"] .family-message.message-celebration{align-self:flex-start;background:rgba(255,78,203,.09);border-color:rgba(255,78,203,.48);border-radius:16px 16px 16px 4px}
.view[data-view="messages"] .family-message.system{align-self:center;width:min(100%,520px);max-width:100%;text-align:center;border-radius:15px;background:rgba(130,97,222,.14);border-color:rgba(130,97,222,.35)}
.view[data-view="messages"] .family-message>div{white-space:pre-wrap;line-height:1.5;font-size:14px;margin:5px 0}
.view[data-view="messages"] .family-message b{font-size:12px;font-weight:900;letter-spacing:.03em}
.view[data-view="messages"] .family-message small{font-size:11px;color:#c0c2d0;line-height:1.4}
.view[data-view="messages"] .family-message-thread .empty-plan{padding:26px;text-align:center;color:#c8c8dc;background:rgba(255,255,255,.025);border:1px dashed rgba(255,255,255,.13);border-radius:16px}
.view[data-view="messages"] .kid-reply-form{margin:0;padding:16px;border:0;border-top:1px solid rgba(255,255,255,.11);border-radius:0;background:#15172a;display:grid;gap:9px}
.view[data-view="messages"] .kid-reply-form textarea{width:100%;min-height:80px;max-height:190px;resize:vertical;border:1px solid rgba(255,255,255,.23);border-radius:13px;padding:12px 14px;color:#fff;background:#090d1b;font-size:16px;line-height:1.45}
.view[data-view="messages"] .kid-reply-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0}
.view[data-view="messages"] .kid-reply-actions button{min-height:44px;background:linear-gradient(100deg,#e737ae,#7444ec);color:#fff;border-radius:12px;padding:12px 17px}
.view[data-view="messages"] #familyMessageNotice{min-height:0;margin:0;padding:0 16px 14px;color:#c3c9da;line-height:1.4}
@media(max-width:620px){
  .kids-family-conversation{border-radius:17px}
  .kids-family-conversation-head{grid-template-columns:46px minmax(0,1fr);gap:11px;padding:13px}
  .kids-family-conversation-head>img{width:46px;height:46px}
  .kids-family-conversation-head>button{grid-column:1/-1;width:100%;padding:10px}
  .view[data-view="messages"] .family-message-thread{min-height:220px;max-height:50vh;padding:13px 10px;gap:10px}
  .view[data-view="messages"] .family-message{max-width:92%;min-width:0}
  .view[data-view="messages"] .kid-reply-form{padding:12px}
  .view[data-view="messages"] .kid-reply-actions button{flex:1 1 200px}
}

/* Family voice notes and explicit device notification permission controls. */
.byp-family-media-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 6px}
.byp-family-media-actions button{border:1px solid #d82eef;border-radius:14px;padding:12px 15px;
 background:linear-gradient(110deg,#10142f,#28103e);color:#fff;font:800 12px/1.3 system-ui,sans-serif;
 cursor:pointer;min-height:44px;letter-spacing:.03em}
.byp-family-media-actions button:disabled{opacity:.55;cursor:wait}
.byp-family-voice-play{display:inline-block;margin:8px 0;padding:9px 12px;min-height:42px;
 border-radius:14px;border:1px solid #46acff;background:#151133;color:#fff;font-weight:800;cursor:pointer}
.byp-family-voice-player{display:block;max-width:100%;margin:8px 0}

.byp-family-push-reminders{display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  margin:10px 0;padding:10px;border:1px solid #613d9c;border-radius:12px}
.byp-family-push-reminders label{display:inline-flex;gap:7px;align-items:center;
  font:700 12px/1.3 system-ui,sans-serif}
.byp-family-push-reminders input[type=time]{max-width:120px;min-height:38px;
  border:1px solid #a163e2;border-radius:9px;padding:5px}
.byp-family-push-reminders button{min-height:42px;border-radius:10px;padding:8px 12px;
  font-weight:800;border:1px solid #e82fd9;cursor:pointer}


/* Clear BYP Kids sign-in + family notification balloon + install arrow. */
.kids-header-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.kids-header-actions .byp-header-account{min-height:40px}
.kids-header-actions .grownup-link{min-height:39px;border:1px solid rgba(255,255,255,.2)}
.kids-header-actions #kidsHeaderDownload[hidden]{display:none!important}
@media(max-width:640px){
 .kids-topbar{align-items:flex-start;gap:8px}
 .kids-brand{flex:0 1 auto;min-width:0}
 .kids-brand small{font-size:9px}
 .kids-header-actions{justify-content:flex-end;flex:0 1 auto}
 .kids-header-actions .grownup-link{font-size:9px;padding:5px 8px;min-height:32px}
 .kids-header-actions .byp-header-icon{width:36px;height:36px;min-width:36px}
}
