/* Today's plan card on the Home page (v283). Compact on a phone; light and dark come from the tokens. */
.plan { padding: var(--space-3) var(--space-4); }
.plan__countdown { margin: 0 0 var(--space-2); font-weight: 700; font-size: var(--text-body-lg, 1.125rem); color: var(--color-text); }
.plan__list { list-style: none; margin: 0; padding: 0; }
.plan__item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-1); min-height: 44px; border-top: 1px solid var(--color-border); }
.plan__item:first-child { border-top: 0; }
.plan__box { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.plan__tick { grid-column: 1; grid-row: 1; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.plan__tick::before { content: ""; width: 22px; height: 22px; box-sizing: border-box; border: 2px solid var(--color-border-strong); border-radius: 6px; background: var(--color-surface); }
.plan__box:checked + .plan__tick::before {
  background: var(--color-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--color-success);
}
.plan__box:focus-visible + .plan__tick::before { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.plan__link { grid-column: 2; padding-block: var(--space-2); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.plan__est { grid-column: 3; font-size: var(--text-xs); white-space: nowrap; padding-inline: var(--space-1) 0; }
.plan__item.is-done .plan__link { color: var(--color-text-muted); font-weight: 500; text-decoration: line-through; text-decoration-thickness: 1px; }
.plan__status { margin: var(--space-2) 0 0; }
@media (max-width: 400px) {
  .plan { padding-inline: var(--space-3); }
  .plan__item { grid-template-columns: 44px minmax(0, 1fr); }
  .plan__est { grid-column: 2; grid-row: 2; padding: 0 0 var(--space-2); margin-top: calc(-1 * var(--space-2)); }
}
