/* v245 — Today task recommendation loop
   Scope: index.html only. Keep the daily plan dynamic, compact and PAD-first. */
body[data-v245-today="true"] .v245-daily-plan{
  position:relative;
  z-index:2;
  margin-top:14px !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:9px !important;
}
body[data-v245-today="true"] .v245-plan-loading{
  min-height:80px;
  display:grid;
  place-items:center;
  border-radius:22px;
  background:#eff6ff;
  color:#1d4ed8;
  font-weight:1000;
}
body[data-v245-today="true"] .v245-task-row{
  position:relative;
  grid-template-columns:auto minmax(0,1fr) auto !important;
  align-items:center !important;
  border:1px solid rgba(37,99,235,.11) !important;
  background:rgba(255,255,255,.88) !important;
  box-shadow:0 8px 18px rgba(37,99,235,.06) !important;
}
body[data-v245-today="true"] .v245-task-row.is-next{
  border-color:rgba(37,99,235,.28) !important;
  background:linear-gradient(135deg,#ffffff,#eff6ff) !important;
  box-shadow:0 14px 30px rgba(37,99,235,.12) !important;
}
body[data-v245-today="true"] .v245-task-row.is-next:after{
  content:"下一步";
  position:absolute;
  right:12px;
  top:9px;
  border-radius:999px;
  padding:5px 9px;
  background:#fff7ed;
  color:#c2410c;
  font-size:11px;
  font-weight:1000;
}
body[data-v245-today="true"] .v245-task-row.is-done-row{
  opacity:.68;
  background:#f8fafc !important;
  box-shadow:none !important;
}
body[data-v245-today="true"] .v245-task-row.is-done-row i{
  filter:saturate(.75);
}
body[data-v245-today="true"] .v245-task-copy strong{
  display:block;
  padding-right:70px;
}
body[data-v245-today="true"] .v245-task-copy span{
  display:block;
  max-width:640px;
}
body[data-v245-today="true"] .v245-task-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}
body[data-v245-today="true"] .v245-task-actions .v4-mini-link{
  background:#f8fbff !important;
  color:#1d4ed8 !important;
  border:1px solid #dbeafe !important;
}
body[data-v245-today="true"] .v245-task-actions button.is-done{
  background:#e2e8f0 !important;
  color:#475569 !important;
  box-shadow:none !important;
  border-color:#cbd5e1 !important;
}
body[data-v245-today="true"] .v245-plan-status{
  margin-top:12px;
  padding:12px;
  border-radius:22px;
  background:linear-gradient(135deg,#eff6ff,#ecfeff);
  border:1px solid rgba(37,99,235,.12);
  display:grid;
  gap:6px;
}
body[data-v245-today="true"] .v245-plan-status strong{
  color:#1d4ed8;
  font-size:16px;
  font-weight:1000;
}
body[data-v245-today="true"] .v245-plan-status span{
  color:#475569;
  font-size:12.5px;
  font-weight:850;
  line-height:1.35;
}
body[data-v245-today="true"] .v245-plan-status em{
  justify-self:end;
  font-style:normal;
  font-size:12px;
  font-weight:1000;
  color:#0f766e;
}
body[data-v245-today="true"] .v245-plan-meter{
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.82);
  box-shadow:inset 0 0 0 1px rgba(37,99,235,.10);
}
body[data-v245-today="true"] .v245-plan-meter i{
  display:block;
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#2563eb,#14b8a6);
  transition:width .25s ease;
}
body[data-v245-today="true"] .v245-all-done-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:86px;
  padding:12px;
  border-radius:24px;
  background:linear-gradient(135deg,#ecfeff,#eff6ff);
  border:1px solid rgba(14,116,144,.18);
  box-shadow:0 12px 28px rgba(14,116,144,.10);
}
body[data-v245-today="true"] .v245-all-done-card i{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:#fff;
  font-style:normal;
  font-size:26px;
}
body[data-v245-today="true"] .v245-all-done-card strong{
  display:block;
  font-size:18px;
  color:#0f172a;
}
body[data-v245-today="true"] .v245-all-done-card span{
  display:block;
  margin-top:4px;
  color:#475569;
  font-size:13px;
  font-weight:850;
}
body[data-v245-today="true"] .v245-all-done-card a{
  min-height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#2563eb;
  color:#fff !important;
  font-weight:1000;
  white-space:nowrap;
}
@media (orientation:landscape) and (min-width:981px) and (max-height:820px){
  body[data-v245-today="true"] .v245-daily-plan{gap:7px !important;margin-top:10px !important;}
  body[data-v245-today="true"] .v245-task-row{min-height:54px !important;padding:7px 10px !important;}
  body[data-v245-today="true"] .v245-task-row.is-next:after{display:none;}
  body[data-v245-today="true"] .v245-task-copy strong{padding-right:0;font-size:16px !important;}
  body[data-v245-today="true"] .v245-task-copy span{-webkit-line-clamp:1;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;}
  body[data-v245-today="true"] .v245-task-actions button,
  body[data-v245-today="true"] .v245-task-actions .v4-mini-link{min-height:36px !important;padding:0 10px !important;}
  body[data-v245-today="true"] .v245-plan-status{padding:10px;border-radius:20px;margin-top:9px;}
  body[data-v245-today="true"] .v245-plan-status span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
}
@media (max-width:980px){
  body[data-v245-today="true"] .v245-task-row{grid-template-columns:auto minmax(0,1fr) !important;}
  body[data-v245-today="true"] .v245-task-actions{grid-column:2;justify-content:flex-start;}
  body[data-v245-today="true"] .v245-all-done-card{grid-template-columns:auto minmax(0,1fr);}
  body[data-v245-today="true"] .v245-all-done-card a{grid-column:2;justify-self:start;}
}
