/* Season plan, who does what, handover. Built on app.css: .ph, .group, .card, .chip, .row-actions, .help. */

/* ---------- #/plan: one list of what's left (owner, 2026-11-03: dramatically simpler) ---------- */
.ph-actions .pl-season { width: auto; min-height: 40px; background-color: var(--surface); }
.pl-next { color: var(--muted); font-weight: 500; }
.pl-card { padding-top: .25rem; padding-bottom: .25rem; }
.pl-tl { list-style: none; margin: 0 -1.25rem; padding: 0; }
.pl-m + .pl-m { box-shadow: inset 0 .5px 0 var(--sep); }
.pl-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .9rem; padding: .7rem 1.25rem; min-height: 48px; }
.pl-fold > summary::-webkit-details-marker { display: none; }
.pl-fold > summary::after { content: ""; flex: none; margin-inline-start: auto; width: .45rem; height: .45rem; border: solid var(--muted);
  border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform .15s; }
.pl-fold[open] > summary::after { transform: rotate(-135deg); }
.pl-fold > summary:hover { background: var(--fill); }
.pl-day { flex: none; width: 3.4rem; font-weight: 600; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-title { min-width: 0; font-weight: 500; line-height: 1.3; text-wrap: pretty; }
.pl-overdue .pl-day { color: var(--red); }
.pl-done .pl-title { color: var(--muted); }
.pl-body { padding: 0 1.25rem .8rem calc(1.25rem + 3.4rem + .9rem); }
.pl-body > p { margin: 0 0 .3rem; }
.pl-more { box-shadow: inset 0 .5px 0 var(--sep); margin: 0 -1.25rem; }
.pl-more > summary { list-style: none; cursor: pointer; padding: .7rem 1.25rem; min-height: 44px; color: var(--muted); font-size: .95rem; }
.pl-more > summary::-webkit-details-marker { display: none; }
.pl-more > .pl-tl { margin: 0; }
.pl-add { margin-top: 1rem; }
.pl-add > summary { cursor: pointer; color: var(--tint); font-size: .95rem; padding: .4rem 0; list-style: none; }
.pl-add > summary::-webkit-details-marker { display: none; }
.pl-add > form { margin-top: .6rem; }
@media (max-width: 600px) { .pl-body { padding-inline-start: 1.25rem; } }
.pl-autonote { margin: .3rem 0 0; }
.pl-note { margin: .4rem 0 0; padding: .45rem .7rem; background: var(--fill); border-radius: var(--r-ctl); font-size: .9rem; white-space: pre-wrap; }
/* Areas nobody looks after: one summary line at the top (.pl-summary), a small muted mark on each row */
.pl-nobody { color: var(--muted); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.pl-nobody::before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-inline-end: .35rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--amber); vertical-align: .05em; }
.pl-area-title .pl-nobody { margin-inline-start: .4rem; }
.pl-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin: 0 0 1.25rem; padding: .65rem .95rem;
  border-radius: var(--r-ctl); background: var(--amber-soft); color: var(--ink); font-size: .95rem; }
.pl-summary a { font-weight: 600; white-space: nowrap; }
.pl-acts { justify-content: flex-start; flex-wrap: wrap; margin-top: .45rem; row-gap: .25rem; }
.pl-edit { margin-top: .6rem; padding: .75rem; background: var(--fill); border-radius: var(--r-ctl); }
.pl-edit input, .pl-edit textarea { background: var(--surface); }
.pl-edit-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
.pl-edit-row input[type=date] { width: auto; flex: 1 1 10rem; max-width: 14rem; margin: 0; }
.pl-edit-row button:not(.quiet) { background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep); }
.pl-edit-row:first-of-type:has(input) { margin-top: 0; }
.pl-edit label { margin-bottom: .35rem; }

/* ---------- #/team ---------- */
.pl-areas { list-style: none; margin: 0 -1.25rem; padding: 0; }
.pl-area { padding: .9rem 1.25rem; position: relative; scroll-margin-top: 5rem; }
.pl-area:first-child { padding-top: .2rem; }
.pl-area:last-child { padding-bottom: .2rem; }
.pl-area + .pl-area::before { content: ""; position: absolute; top: 0; inset-inline-start: 1.25rem; inset-inline-end: 0; border-top: .5px solid var(--sep); }
.pl-area-head { display: flex; align-items: flex-start; gap: .75rem; }
.pl-area-head .grow { flex: 1; min-width: 0; }
.pl-area-title { font-size: 1rem; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.pl-area-head .row-meta { margin: .1rem 0 0; }
.pl-handover { white-space: nowrap; padding-top: .1rem; }
.pl-people { border: 0; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; min-width: 0; }
.pl-person { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .4rem .8rem .4rem .6rem; min-height: 36px; border-radius: 999px;
  background: var(--fill); color: var(--ink); font-size: .9rem; font-weight: 500; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.pl-person input { width: 1.05rem; height: 1.05rem; margin: 0; }
.pl-person:has(input:checked) { background: var(--tint-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 45%, transparent); }
.pl-person:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--tint) 45%, transparent); outline-offset: 2px; }
.pl-person:hover { background: var(--fill-strong); }
.pl-person:has(input:checked):hover { background: color-mix(in srgb, var(--tint) 18%, transparent); }
.pl-people:disabled .pl-person { cursor: default; opacity: .75; }
.pl-warn { width: fit-content; max-width: 100%; margin: .6rem 0 0; padding: .45rem .75rem; border-radius: var(--r-ctl); background: var(--amber-soft); color: var(--ink); font-size: .9rem; }
.pl-setting select { max-width: 16rem; }
.pl-checkhelp { display: block; margin: .15rem 0 0; }
.pl-saved { min-width: 4rem; text-align: end; }

/* ---------- #/handover ---------- */
.pl-save-row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.pl-sub { font-size: .8rem; font-weight: 600; color: var(--muted); margin: 0 0 .35rem; }
.pl-sub ~ .pl-sub { margin-top: 1rem; }
.pl-change-who { margin: .6rem 0 0; }
.pl-changes > li { font-size: .9rem; }

@media (max-width: 600px) {
  .pl-acts { gap: 0 1rem; }
  .pl-acts button.quiet { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) { .pl-person { transition: none; } }

/* The Season area's icon in the sidebar and on Today (a leaf green, apart from Plots' green) */
.mg-icon.olive { background: #5f7d2a; }

/* Autosave status, one per card: "Saving…", a check and "Saved", or the error with Try again */
.pl-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.pl-flag { font-size: .875rem; min-height: 1.2rem; text-align: end; }
.pl-flag:empty { display: none; }
.pl-area-head .pl-flag { padding-top: .1rem; white-space: nowrap; }
.pl-ok { display: inline-flex; align-items: center; gap: .25rem; color: var(--tint); font-weight: 600; animation: pl-ok-in .25s cubic-bezier(.16, 1, .3, 1); }
.pl-ok svg { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pl-err { color: var(--red); }
.pl-flag button.link { font-size: .875rem; font-weight: 600; }
@keyframes pl-ok-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pl-ok { animation: none; } }
@media (max-width: 600px) {
  .pl-area-head { flex-wrap: wrap; }
  .pl-area-head .grow { flex-basis: 100%; }
  .pl-area-head .pl-flag { order: 3; }
}

/* #/handover: the list of areas */
.pl-hocard { padding-block: .3rem; }

/* The garden's year: the season pattern behind the plan and the meeting calendar */
.pl-year fieldset { border: 0; padding: 0; margin: 0; }
.pl-year legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .35rem; }
.pl-year-h { font-size: .95rem; margin: .25rem 0; }
.pl-year .list .muted { white-space: nowrap; }
.holiday-hint { color: var(--amber); margin-top: .3rem; }
.pl-hol { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .2rem .8rem; margin-top: .5rem; }
.pl-year .row-meta { display: block; }
