/* v244 — growth book and badge report enhancement
   Scope: growth.html + badges.html only.
   Goal: make progress visible to the child and useful to parents without changing reward rules. */

body[data-v244-report="true"] .v244-report-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
  margin-top:14px;
}
body[data-v244-report="true"] .v244-report-card{
  border-radius:26px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(37,99,235,.12);
  box-shadow:0 14px 34px rgba(31,74,111,.09);
  padding:16px;
  overflow:hidden;
}
body[data-v244-report="true"] .v244-report-card.is-wide{
  grid-column:1 / -1;
}
body[data-v244-report="true"] .v244-report-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
body[data-v244-report="true"] .v244-report-head h2,
body[data-v244-report="true"] .v244-report-head h3{
  margin:0;
  font-size:24px;
  line-height:1.12;
  letter-spacing:-.045em;
}
body[data-v244-report="true"] .v244-report-head p{
  margin:4px 0 0;
  color:#64748b;
  font-size:13px;
  font-weight:900;
  line-height:1.35;
}
body[data-v244-report="true"] .v244-report-icon{
  width:48px;
  height:48px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#eff6ff,#ecfeff);
  font-size:25px;
  flex:0 0 auto;
}
body[data-v244-report="true"] .v244-mini-list{
  display:grid;
  gap:10px;
}
body[data-v244-report="true"] .v244-mini-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:58px;
  border-radius:20px;
  background:#f8fbff;
  border:1px solid #e2e8f0;
  padding:10px;
}
body[data-v244-report="true"] .v244-mini-row i{
  width:40px;
  height:40px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:#fff;
  font-style:normal;
  font-size:21px;
  box-shadow:0 8px 18px rgba(31,41,55,.07);
}
body[data-v244-report="true"] .v244-mini-row strong{
  display:block;
  min-width:0;
  font-size:16px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body[data-v244-report="true"] .v244-mini-row span{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:12px;
  font-weight:900;
  line-height:1.25;
}
body[data-v244-report="true"] .v244-mini-row em{
  font-style:normal;
  border-radius:999px;
  background:#fff7ed;
  color:#c2410c;
  padding:7px 10px;
  font-size:12px;
  font-weight:1000;
  white-space:nowrap;
}
body[data-v244-report="true"] .v244-summary-box{
  border-radius:24px;
  background:linear-gradient(135deg,#eff6ff,#ecfeff);
  border:1px solid rgba(37,99,235,.14);
  padding:16px;
  color:#0f172a;
  font-size:18px;
  font-weight:950;
  line-height:1.6;
}
body[data-v244-report="true"] .v244-summary-box p{
  margin:0 0 8px;
}
body[data-v244-report="true"] .v244-summary-box p:last-child{
  margin-bottom:0;
}
body[data-v244-report="true"] .v244-star-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
body[data-v244-report="true"] .v244-star-card{
  min-height:82px;
  border-radius:22px;
  background:#f8fbff;
  border:1px solid #e2e8f0;
  padding:12px;
}
body[data-v244-report="true"] .v244-star-card strong{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:15px;
  line-height:1.2;
}
body[data-v244-report="true"] .v244-star-card b{
  color:#1d4ed8;
  font-size:24px;
  line-height:1;
}
body[data-v244-report="true"] .v244-star-card span{
  display:block;
  margin-top:8px;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}
body[data-v244-report="true"] .v244-badge-progress{
  display:grid;
  gap:10px;
}
body[data-v244-report="true"] .v244-progress-row{
  border-radius:22px;
  background:#f8fbff;
  border:1px solid #e2e8f0;
  padding:12px;
}
body[data-v244-report="true"] .v244-progress-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:1000;
}
body[data-v244-report="true"] .v244-progress-top span:first-child{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body[data-v244-report="true"] .v244-progress-top span:last-child{
  color:#1d4ed8;
  white-space:nowrap;
}
body[data-v244-report="true"] .v244-progress-bar{
  height:12px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
  margin-top:10px;
}
body[data-v244-report="true"] .v244-progress-bar i{
  display:block;
  height:100%;
  width:var(--v244-pct,0%);
  border-radius:999px;
  background:linear-gradient(90deg,#2563eb,#0ea5e9,#facc15);
}
body[data-v244-report="true"] .v244-progress-row small{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:900;
  margin-top:7px;
  line-height:1.35;
}
body[data-v244-report="true"] .v244-earned-ribbon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  border-radius:999px;
  padding:0 11px;
  background:#dcfce7;
  color:#166534;
  font-size:12px;
  font-weight:1000;
}
body[data-v244-report="true"] .v4-badge-card{
  align-items:stretch;
}
body[data-v244-report="true"] .v4-badge-card small{
  font-size:12.5px;
}
body[data-v244-report="true"] .v4-badge-card .v244-progress-bar{
  height:9px;
  margin-top:8px;
}
body[data-v244-report="true"] .v244-empty-strong{
  border-radius:22px;
  background:#f8fbff;
  border:1px dashed #cbd5e1;
  padding:18px;
  color:#64748b;
  font-weight:950;
  line-height:1.45;
}
body[data-v244-report="true"] .v244-report-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
body[data-v244-report="true"] .v244-report-actions .v4-btn.primary{
  min-width:178px;
}

@media (orientation:landscape) and (max-height:820px) and (min-width:900px){
  body[data-v244-report="true"] .v239-hero-panel{min-height:360px !important;}
  body[data-v244-report="true"] .v4-hero h1{font-size:36px !important;margin-bottom:6px !important;}
  body[data-v244-report="true"] .v4-hero p{font-size:16px !important;line-height:1.45 !important;}
  body[data-v244-report="true"] .v244-report-grid{gap:10px;margin-top:10px;}
  body[data-v244-report="true"] .v244-report-card{padding:13px;border-radius:22px;}
  body[data-v244-report="true"] .v244-report-head{margin-bottom:8px;}
  body[data-v244-report="true"] .v244-report-head h2,
  body[data-v244-report="true"] .v244-report-head h3{font-size:21px;}
  body[data-v244-report="true"] .v244-mini-row{min-height:52px;padding:8px;}
  body[data-v244-report="true"] .v244-star-card{min-height:72px;padding:10px;}
}

@media (max-width:899px){
  body[data-v244-report="true"] .v244-report-grid{grid-template-columns:1fr;}
  body[data-v244-report="true"] .v244-report-card.is-wide{grid-column:auto;}
  body[data-v244-report="true"] .v244-star-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:560px){
  body[data-v244-report="true"] .v244-star-grid{grid-template-columns:1fr;}
  body[data-v244-report="true"] .v244-mini-row{grid-template-columns:auto 1fr;}
  body[data-v244-report="true"] .v244-mini-row em{grid-column:2;justify-self:start;}
  body[data-v244-report="true"] .v244-summary-box{font-size:16px;}
}
