/* v3 one-list plan + nudge sheets. Uses shared tokens from styles.css. */

.view-list { padding-bottom: 12px; }
.lh { margin: 4px 0 18px; }
.lh h1 { font-size: 1.6rem; line-height: 1.18; margin: 2px 0 6px; }
.lh-amt { color: var(--accent); font-feature-settings: var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lh-sub { color: var(--muted); margin: 0 0 12px; font-size: 0.95rem; }
.lh-prog { display: grid; gap: 6px; margin: 10px 0 14px; font-size: 0.85rem; color: var(--muted); }
.lh-bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.lh-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.4s var(--ease); min-width: 0; }
.lh-next {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r);
  background: var(--coral-soft); border: 1px solid color-mix(in srgb, var(--coral) 30%, transparent);
}
.lh-cal {
  display: grid; place-items: center; flex: none; width: 48px; height: 52px; border-radius: 12px; background: var(--card);
  color: var(--coral); font: 700 0.7rem/1.1 var(--font); text-transform: uppercase; box-shadow: var(--shadow);
}
.lh-cal b { font-size: 0.72rem; letter-spacing: 0.06em; }
.lh-cal { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.lh-cal b { color: var(--coral); }
.lh-next-t { flex: 1; display: grid; gap: 1px; min-width: 0; font-size: 0.9rem; }
.lh-next-t span { color: var(--muted); }
.lh-next .btn { flex: none; }

.lm-head { font-size: 1rem; margin: 18px 0 8px; }
.lm-head .muted { font-weight: 500; font-size: 0.85rem; }
.lm-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.lm { display: flex; align-items: flex-start; gap: 4px; border-top: 1px solid var(--line); padding: 4px 6px 4px 8px; }
.lm:first-child { border-top: 0; }
.lm.flash { animation: lm-flash 1.6s var(--ease); }
@keyframes lm-flash { 0%, 40% { background: var(--accent-soft); } 100% { background: transparent; } }

.lm-check {
  flex: none; width: var(--tap); height: var(--tap); display: grid; place-items: center; margin-top: 2px;
  background: none; border: 0; cursor: pointer; border-radius: 50%; color: transparent; padding: 0;
}
.lm-check::before {
  content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--muted) 60%, var(--line));
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.lm-check { position: relative; }
.lm-check svg { width: 16px; height: 16px; position: relative; }
.lm-check:hover::before { border-color: var(--accent); }
.lm-check[aria-pressed="true"] { color: var(--accent-ink); }
.lm-check[aria-pressed="true"]::before { background: var(--accent); border-color: var(--accent); transform: scale(1.04); }

.lm-d { flex: 1; min-width: 0; }
.lm-d summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 12px 6px 12px 2px; border-radius: 10px; }
.lm-d summary::-webkit-details-marker { display: none; }
.lm-title { font-weight: 650; line-height: 1.3; grid-column: 1; }
.lm-meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 0.85rem; color: var(--muted); }
.lm-amt { color: var(--ink); font-feature-settings: var(--num); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.lm-amt.kind-capture { color: var(--accent); }
.lm-when.urgent { color: var(--coral); font-weight: 650; }
.lm-chev { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 18px; height: 18px; color: var(--muted); transition: transform 0.2s var(--ease); }
.lm-d[open] .lm-chev { transform: rotate(90deg); }
.lm.is-did .lm-title, .lm.is-na .lm-title { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.lm.is-did .lm-amt { color: var(--muted); }

.lm-body { padding: 0 6px 14px 2px; font-size: 0.93rem; }
.lm-body p { margin: 0 0 8px; }
.lm-h { font-weight: 700; margin-top: 4px !important; }
.lm-body .howto { margin: 0 0 10px; padding-left: 1.2em; display: grid; gap: 4px; }
.lm-tip { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--sky-soft); }
.lm-tip svg { width: 18px; height: 18px; flex: none; color: var(--sky); margin-top: 2px; }
.lm-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.lm-acts .btn svg { width: 16px; height: 16px; }
.lm-acts .link { margin-left: auto; }
.lm-list.is-done { opacity: 0.9; }

.btn .ic, .btn svg.ic { width: 16px; height: 16px; }
.btn.small { display: inline-flex; align-items: center; gap: 6px; }

.more { margin-top: 8px; }
.more .muted.small { margin: -4px 0 8px; }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.more-list a { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.more-list a:hover { border-color: var(--accent); }
.more-t { flex: 1; display: grid; gap: 2px; min-width: 0; }
.more-t span { color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.more-h { flex: none; font: 700 0.75rem/1.2 var(--font); color: var(--accent); background: var(--accent-soft); padding: 4px 8px; border-radius: 99px; max-width: 34%; text-align: center; }
.more-list .lm-chev { width: 16px; height: 16px; }

.list-foot { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 22px 0 0; }

/* ---------- nudge sheet ---------- */
dialog.nudge {
  width: min(400px, calc(100vw - 24px)); max-width: min(400px, calc(100vw - 24px)); padding: 0; border: 0;
  border-radius: 24px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg);
  margin: auto auto 16px;
}
@media (min-height: 640px) { dialog.nudge { margin: auto; } }
dialog.nudge[open] { animation: nudge-in 0.32s var(--ease); }
dialog.nudge::backdrop { background: rgba(10, 20, 15, 0.45); }
@keyframes nudge-in { from { transform: translateY(24px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.nudge-in { padding: 22px 22px 18px; text-align: center; }
.nudge-art { width: 112px; margin: -4px auto 6px; }
.nudge-art svg { width: 100%; height: auto; }
.nudge h2 { font-size: 1.35rem; margin: 0 0 8px; }
.nudge-body { text-align: left; font-size: 0.97rem; }
.nudge-body p { margin: 0 0 10px; }
.nudge-tip { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--sky-soft); font-size: 0.9rem; }
.nudge-tip svg { width: 18px; height: 18px; flex: none; color: var(--sky); margin-top: 2px; }
.nudge-next { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-soft); margin: 4px 0 6px; }
.nudge-next > span:last-child { color: var(--muted); font-size: 0.88rem; }
.nudge-acts { display: grid; gap: 6px; margin-top: 14px; justify-items: center; }
.nudge-acts .btn.wide { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; }
.nudge-acts .link { min-height: 40px; }

@media (prefers-reduced-motion: reduce) {
  dialog.nudge[open], .lm.flash { animation: none; }
}

/* ---------- save your plan (email sign-up) ---------- */
.save-card { margin: 18px 0 4px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow); }
.save-card h2 { font-size: 1.08rem; margin: 0 0 4px; }
.save-card > p { margin: 0 0 12px; font-size: 0.9rem; color: var(--muted); }
.save-f { display: grid; gap: 8px; }
.save-f label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.save-f input { font: inherit; font-size: 1rem; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; box-sizing: border-box; }
.save-f input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.save-f .btn { min-height: 48px; justify-content: center; margin-top: 4px; }
.save-msg { margin: 4px 0 0; font-size: 0.88rem; min-height: 1em; }
.save-msg.err { color: var(--coral); }
.save-fine { margin: 6px 0 0 !important; font-size: 0.78rem !important; }
.save-done { display: flex; gap: 10px; align-items: flex-start; }
.save-done svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.save-done p { margin: 0 0 4px; font-size: 0.92rem; }
.save-word { font: 700 1.05rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; background: var(--bg-2); padding: 2px 8px; border-radius: 8px; }
