/* v246 — Today task / growth book / badge closed-loop bridge
   Scope: index.html, growth.html, badges.html only.
   Goal: make the next task, today's completion state, latest record and next badge read from the same local growth state. */
body[data-v246-bridge="true"] .v246-bridge-stack{
  display:grid;
  gap:10px;
  margin-top:12px;
}
body[data-v246-bridge="true"] .v246-bridge-card{
  border-radius:22px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(37,99,235,.12);
  box-shadow:0 10px 24px rgba(30,64,175,.07);
  padding:12px;
}
body[data-v246-bridge="true"] .v246-bridge-card strong{
  display:block;
  color:#0f172a;
  font-size:15px;
  line-height:1.25;
  letter-spacing:-.02em;
}
body[data-v246-bridge="true"] .v246-bridge-card span,
body[data-v246-bridge="true"] .v246-bridge-card small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:12.5px;
  font-weight:900;
  line-height:1.35;
}
body[data-v246-bridge="true"] .v246-bridge-card em{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  margin-top:8px;
  padding:0 10px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-style:normal;
  font-size:12px;
  font-weight:1000;
}
body[data-v246-bridge="true"] .v246-bridge-card.is-done{
  background:linear-gradient(135deg,#ecfdf5,#f0fdfa);
  border-color:rgba(13,148,136,.18);
}
body[data-v246-bridge="true"] .v246-bridge-card.is-done em{
  background:#dcfce7;
  color:#166534;
}
body[data-v246-bridge="true"] .v246-closure-list{
  display:grid;
  gap:9px;
}
body[data-v246-bridge="true"] .v246-closure-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:54px;
  padding:9px 10px;
  border-radius:20px;
  background:#f8fbff;
  border:1px solid #e2e8f0;
}
body[data-v246-bridge="true"] .v246-closure-row i{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#fff;
  font-style:normal;
  font-size:20px;
  box-shadow:0 8px 18px rgba(31,41,55,.06);
}
body[data-v246-bridge="true"] .v246-closure-row strong{
  display:block;
  min-width:0;
  color:#0f172a;
  font-size:15.5px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body[data-v246-bridge="true"] .v246-closure-row span{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}
body[data-v246-bridge="true"] .v246-closure-row em{
  min-width:58px;
  min-height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-style:normal;
  font-size:12px;
  font-weight:1000;
  background:#eff6ff;
  color:#1d4ed8;
}
body[data-v246-bridge="true"] .v246-closure-row.is-done{
  background:#f0fdfa;
  border-color:rgba(13,148,136,.20);
}
body[data-v246-bridge="true"] .v246-closure-row.is-done em{
  background:#dcfce7;
  color:#166534;
}
body[data-v246-bridge="true"] .v246-closure-row.is-next{
  background:linear-gradient(135deg,#ffffff,#eff6ff);
  border-color:rgba(37,99,235,.25);
  box-shadow:0 10px 24px rgba(37,99,235,.09);
}
body[data-v246-bridge="true"] .v246-mini-meter{
  height:10px;
  margin-top:8px;
  border-radius:999px;
  overflow:hidden;
  background:#e2e8f0;
}
body[data-v246-bridge="true"] .v246-mini-meter i{
  display:block;
  height:100%;
  width:var(--v246-pct,0%);
  border-radius:999px;
  background:linear-gradient(90deg,#2563eb,#14b8a6,#facc15);
}
body[data-v246-bridge="true"] .v246-next-badge-card{
  border-radius:22px;
  background:linear-gradient(135deg,#fff7ed,#eff6ff);
  border:1px solid rgba(251,146,60,.18);
  padding:12px;
}
body[data-v246-bridge="true"] .v246-next-badge-card strong{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:#0f172a;
  font-size:15px;
}
body[data-v246-bridge="true"] .v246-next-badge-card span{
  color:#64748b;
  font-size:12px;
  font-weight:900;
  line-height:1.35;
}
body[data-v246-bridge="true"] .v244-report-actions .v4-btn.primary{
  background:#fff !important;
  color:#1d4ed8 !important;
  box-shadow:inset 0 0 0 1px rgba(37,99,235,.18) !important;
}
@media (orientation:landscape) and (max-height:820px) and (min-width:900px){
  body[data-v246-bridge="true"] .v246-bridge-stack{gap:8px;margin-top:9px;}
  body[data-v246-bridge="true"] .v246-bridge-card{padding:10px;border-radius:20px;}
  body[data-v246-bridge="true"] .v246-closure-row{min-height:48px;padding:7px 9px;}
  body[data-v246-bridge="true"] .v246-closure-row i{width:34px;height:34px;font-size:18px;}
}
@media (max-width:899px){
  body[data-v246-bridge="true"] .v246-closure-row{grid-template-columns:auto minmax(0,1fr);}
  body[data-v246-bridge="true"] .v246-closure-row em{grid-column:2;justify-self:start;}
}
