.next-continuation { border-inline-start: 3px solid var(--accent-2); }
.next-continuation-main { min-width: 0; }
.next-continuation-main > p { margin: 9px 0 0; line-height: 1.65; overflow-wrap: anywhere; }
.next-continuation-main > p > span, .next-week-row p > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.next-obstacle { padding: 10px 12px; border-radius: 10px; margin: 10px 0; background: color-mix(in srgb,var(--accent) 8%,var(--panel)); }
.next-obstacle small, .next-obstacle > span { font-size: 12px; color: var(--muted); }
.next-obstacle p { margin: 4px 0; overflow-wrap: anywhere; }
.next-form { display: grid; gap: 18px; min-width: 0; }
.next-form label, #nextObstacleFields { display: grid; gap: 9px; min-width: 0; }
.next-form .field { width: 100%; min-width: 0; box-sizing: border-box; }
.next-form [hidden] { display: none !important; }
.next-modes { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.next-modes legend { margin-bottom: 10px; }
.next-modes label { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px; flex: 1 1 100px; }
.next-modes label:has(:checked) { border-color: var(--accent-2); background: color-mix(in srgb,var(--accent-2) 8%,var(--panel)); }
.next-week { margin-bottom: 18px; }
.next-week header > small { letter-spacing: .08em; color: var(--accent-2); font-size: 11px; }
.next-week header > h2 { margin: 10px 0; }
.next-week header > p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.next-week-row { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.next-week-row > div { min-width: 0; flex: 1; }
.next-title { appearance: none; color: var(--text); border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; font: inherit; font-weight: 600; overflow-wrap: anywhere; }
.next-title:hover { color: var(--accent-2); }
.next-week-row > div > small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.next-week-row p { line-height: 1.65; margin: 12px 0 0; overflow-wrap: anywhere; }
.next-followups { margin-bottom: 14px; }
.next-followups summary { padding: 12px 0; cursor: pointer; color: var(--accent); font-size: 14px; }
.next-followups > div { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.next-followups > div > span { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
@media(max-width:560px) {
 .next-week-row { flex-wrap: wrap; gap: 10px; }
 .next-week-row > div { flex-basis: 100%; }
 .next-week-row > button { margin-left: auto; }
 .next-followups > div { flex-wrap: wrap; }
 .next-followups .next-title { width: 100%; }
 .next-continuation .flow-continuation-actions { width: 100%; display: flex; flex-wrap: wrap; }
}

.next-agenda-state { display: block; white-space: normal; overflow-wrap: anywhere; line-height: 1.65; color: var(--accent); }
/* Quiet evidence first, with all actions reachable on narrow screens. */
.next-week-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 22px 0; }
.next-week-summary > div { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.next-week-summary small { display: block; color: var(--muted); font-size: 12px; }
.next-week-summary b { display: block; color: var(--accent-2); font-size: 28px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.next-week-summary b span { font-size: 12px; font-weight: 400; }
.next-week-summary p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 8px 0 0; }
.next-week-row > .next-week-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; justify-content: flex-end; }
.next-evidence { margin-top: 14px; font-size: 12px; color: var(--muted); }
.next-evidence summary { cursor: pointer; padding: 8px 0; }
.next-evidence button { display: flex; flex-wrap: wrap; justify-content: space-between; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); text-align: left; padding: 12px 0; cursor: pointer; gap: 10px; font: inherit; }
.next-evidence button:hover { color: var(--accent-2); }
.next-evidence blockquote { margin: 12px 0; padding: 4px 0 4px 14px; border-left: 2px solid var(--line); }
.next-evidence blockquote p { margin: 4px 0; color: var(--text); font-size: 13px; }
.next-date-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.next-organize > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.next-parked { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.next-parked summary { cursor: pointer; padding: 8px 0; font-size: 13px; color: var(--muted); }
.next-parked summary small { margin-left: 12px; font-size: 11px; }
.next-parked > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.next-parked > div .next-title { min-width: 0; }
.next-parked .btn { flex-shrink: 0; }
@media(max-width:560px) {
 .next-week-summary { grid-template-columns: 1fr; gap: 8px; margin: 16px 0; }
 .next-week-summary > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 12px 14px; }
 .next-week-summary p { margin: 0; grid-column: 1; }
 .next-week-summary b { margin: 0; grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 25px; }
 .next-week-row > .next-week-actions { flex-basis: 100%; }
 .next-week-actions .btn { flex: 1; }
 .next-organize .btn { min-width: 0; padding-inline: 10px; }
}
