/* ==========================================================================
   JORIE DAILY — wishlist-move.css · Phase 36 · Move to Next Month ♡
   Built only from existing tokens and components: the Wishlist dialog
   (.wish-dialog), the Today reminder box (.jd-remind), .btn / .plan-btn and
   the Wishlist category art. Works in the original and Winter Arc themes,
   light and dark. Loaded on Today and Wishlist.
   ========================================================================== */

/* ---------- Wishlist page: the button and the success line ---------------- */
.wm-open .icon { width: 15px; height: 15px; }
.wm-flash {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: -8px 0 22px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.wm-flash[hidden] { display: none; }
.wm-flash a { color: inherit; font-weight: 700; text-underline-offset: 3px; }

/* ---------- The dialog ------------------------------------------------------ */
.wm-dialog { width: min(560px, calc(100vw - 26px)); }
.wm-form { gap: 16px; }
.wm-form h2 { text-wrap: balance; }
.wm-lede { margin: -6px 0 0; color: var(--ink-2); }
.wm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 38px; }
.wm-count { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wm-bar .plan-btn[hidden] { display: none; }

.wm-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  max-height: min(46vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.wm-item {
  display: grid;
  grid-template-columns: auto 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dur-1, 160ms) ease, background-color var(--dur-1, 160ms) ease;
}
.wm-item:hover { border-color: var(--line-2); }
.wm-item:has(input:checked) { border-color: var(--ink-3); background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.wm-item:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.wm-item input { width: var(--ds-check, 18px); height: var(--ds-check, 18px); margin: 0; accent-color: var(--burgundy); }
.wm-item__art.wish-art {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  transition: none;
}
.wm-item__art .wish-art__icon { width: 30px; height: 30px; max-width: none; }
.wm-item__text { display: grid; gap: 2px; min-width: 0; }
.wm-item__title { font: 600 1.02rem/1.3 var(--font-display); overflow-wrap: anywhere; }
.wm-item__meta { font-size: var(--fs-xs); color: var(--ink-3); overflow-wrap: anywhere; }
.wm-item__note { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.wm-item.is-disabled { cursor: not-allowed; background: var(--surface-sunk); border-style: dashed; }
.wm-item.is-disabled .wm-item__title, .wm-item.is-disabled .wm-item__art { opacity: 0.6; }
.wm-empty { margin: 0; padding: 18px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
.wm-dest { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; }
.wm-dest strong { color: var(--ink); font-weight: 600; }
.wm-dialog.is-busy .wm-item { cursor: progress; }
.wm-dialog .wish-dialog__actions .btn { min-width: 120px; }

/* ---------- Today: the month-end reminder (inside the welcome panel) ------ */
.wm-remind__text { margin: 6px 0 0; color: var(--ink-2); line-height: 1.55; max-width: 60ch; }
.wm-remind__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.wm-remind--quiet { padding-block: 10px; }
.wm-remind__links { margin: 0 !important; padding: 0 !important; border-top: 0 !important; }
.wm-remind__links li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.wm-remind__no { flex: none; }

@media (max-width: 520px) {
  .wm-item { grid-template-columns: auto 40px minmax(0, 1fr); gap: 10px; padding: 9px 10px; }
  .wm-item__art.wish-art { width: 40px; height: 40px; }
  .wm-item__art .wish-art__icon { width: 26px; height: 26px; }
  .wm-dialog .wish-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .wm-dialog .wish-dialog__actions .btn { min-width: 0; width: 100%; }
  .wm-remind__actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .wm-item { transition: none; } }
