/* The free planning tools. Builds on /style.css: same tokens, same type, same pill. */
:root {
  --muted-strong: #5b5b63;
  --accent-on-soft: #8a2c47;
  --ok: #24683f;
  --ok-soft: #e3f1e8;
  --warn: #9a5b12;
  --warn-soft: #fbf0dc;
  --danger: #b4232f;
  --danger-soft: #fbe6e7;
  --focus: #b23a5c;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --muted-strong: #b8b8c0;
    --accent-on-soft: #f0a0b8;
    --ok: #74c69a;
    --ok-soft: #1c3226;
    --warn: #e9b56a;
    --warn-soft: #3a2c16;
    --danger: #f08a92;
    --danger-soft: #3e1c20;
    --focus: #d9678a;
  }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.top nav a { white-space: nowrap; }
.top nav a.get-app { color: var(--accent); font-weight: 600; }
.brand { white-space: nowrap; }
@media (max-width: 520px) {
  .top nav a[href='/support'] { display: none; }
}

/* Page head */
.crumbs { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.crumbs a { color: var(--muted); }
.tool-head { padding: 24px 0 8px; max-width: 760px; }
.tool-head h1 { font-size: clamp(32px, 6vw, 48px); margin-bottom: 12px; }
.tool-head .lead { font-size: 19px; color: var(--muted); margin: 0; }
.tool-layout { max-width: 760px; }

/* The form panel */
.panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.fields { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label, fieldset legend { font-weight: 600; font-size: 16px; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.field-error { font-size: 14px; color: var(--danger); margin: 0; font-weight: 600; }
.field-error::before { content: '! '; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 8px; }

input[type='date'], input[type='text'], input[type='number'], input[inputmode], select, textarea {
  font: inherit; font-size: 17px; color: var(--text); background: var(--bg);
  border: 1px solid var(--hairline); border-radius: 12px; padding: 11px 14px; width: 100%; min-height: 48px;
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input[type='date'] { display: block; }
input::-webkit-date-and-time-value { text-align: left; }
textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
input.short { max-width: 140px; }

/* Segmented choice built from radios, so it works with a keyboard and a screen reader. */
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.choice label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 500; background: var(--bg); min-height: 48px; }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { accent-color: var(--accent); width: 20px; height: 20px; margin: 3px 0 0; flex: none; }
.switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.switches .check { border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; background: var(--bg); }
.switches .check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
details.more { border-top: 1px solid var(--hairline); padding-top: 14px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--accent); }
details.more[open] summary { margin-bottom: 14px; }

/* Buttons */
.btn { font: inherit; font-weight: 600; border-radius: 999px; padding: 12px 22px; cursor: pointer; border: 1px solid transparent; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-deep); }
.btn-primary:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--accent-deep); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-deep); }
.btn-secondary { background: var(--accent-soft); color: var(--accent-deep); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--hairline); }
.btn-small { min-height: 38px; padding: 7px 14px; font-size: 15px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { .btn-secondary { color: var(--text); } }
.link-button { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.saved-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.enhance-note { background: var(--warn-soft); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.js .enhance-note { display: none; }

/* Results */
.result { scroll-margin-top: 16px; }
.result > h2:first-child { margin-top: 0; }
.big-date { font-family: 'Outfit', -apple-system, sans-serif; font-size: clamp(34px, 7vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 6px 0 4px; }
.kicker { text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; font-weight: 600; color: var(--muted); margin: 0; }
.status { border-radius: 12px; padding: 12px 16px; margin: 16px 0 0; font-size: 16px; }
.status strong { display: block; }
.status-warn { background: var(--warn-soft); color: var(--text); border-left: 4px solid var(--warn); }
.status-danger { background: var(--danger-soft); color: var(--text); border-left: 4px solid var(--danger); }
.status-ok { background: var(--ok-soft); color: var(--text); border-left: 4px solid var(--ok); }
.status-info { background: var(--surface-muted); color: var(--text); border-left: 4px solid var(--faint); }
.quote { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--surface-muted); border-radius: 12px; padding: 14px 16px; margin: 16px 0 0; }
.quote q { font-size: 18px; quotes: none; font-weight: 500; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; border-radius: 999px; padding: 2px 9px; vertical-align: 2px; white-space: nowrap; }
.tag-assumed { background: var(--warn-soft); color: var(--warn); }
.tag-confirmed { background: var(--ok-soft); color: var(--ok); }
.tag-past { background: var(--danger-soft); color: var(--danger); }
.tag-muted { background: var(--surface-muted); color: var(--muted); }
.tag-accent { background: var(--accent-soft); color: var(--accent-deep); }
@media (prefers-color-scheme: dark) { .tag-accent { color: var(--text); } }

/* A vertical timeline that reads on a 320px screen. */
.timeline { list-style: none; padding: 0; margin: 20px 0 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 30px; margin: 0; }
.timeline li::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: -8px; width: 2px; background: var(--hairline); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline li.is-key::after { background: var(--accent); }
.timeline li.is-past::after { border-color: var(--danger); }
.timeline .t-date { font-weight: 600; }
.timeline .t-label { display: block; }
.timeline .t-basis { display: block; color: var(--muted); font-size: 15px; }

/* Summary cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin: 16px 0 0; }
.stat { background: var(--surface-muted); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.stat .n { font-family: 'Outfit', -apple-system, sans-serif; font-size: 26px; font-weight: 600; display: block; line-height: 1.2; overflow-wrap: anywhere; }
.stat .l { font-size: 14px; color: var(--muted); }
.stat.warn { background: var(--warn-soft); }
.stat.danger { background: var(--danger-soft); }

/* Tables that turn into cards on a phone */
.table-wrap { margin: 16px 0 0; overflow-x: auto; }
table.data td { overflow-wrap: anywhere; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
table.data th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tfoot td { font-weight: 700; border-bottom: 0; }
@media (max-width: 640px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td, table.stack tfoot { display: block; }
  table.stack thead { display: none; }
  table.stack tr { border-bottom: 1px solid var(--hairline); padding: 10px 0; }
  table.stack td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-weight: 500; text-align: left; }
  table.stack td.num { white-space: normal; }
  table.stack td.cell-main { display: block; text-align: left; font-weight: 600; }
  table.stack td.cell-main::before { display: none; }
}

/* The app module */
.app-cta { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 8px 28px; background: var(--accent-soft); border-radius: 20px; padding: 26px 28px 0; margin: 28px 0; overflow: hidden; }
.app-cta-text { padding-bottom: 26px; align-self: center; }
.app-name { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: 'Outfit', -apple-system, sans-serif; font-weight: 600; font-size: 16px; }
.app-name img { width: 28px; height: 28px; border-radius: 7px; }
.app-cta h2 { margin: 0 0 6px; font-size: clamp(22px, 3.2vw, 28px); text-wrap: balance; }
.app-cta-body { font-size: 17px; margin: 0 0 18px; color: var(--muted-strong); max-width: 42ch; text-wrap: pretty; }
.app-cta-actions { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; }
.app-shot { align-self: end; display: block; }
.app-shot img { width: 100%; aspect-ratio: 600 / 620; object-fit: cover; object-position: top; border-radius: 28px 28px 0 0; border: 7px solid #1c1c1f; border-bottom: 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12); margin: 0 auto; display: block; }
.qr { display: none; gap: 10px; align-items: center; font-size: 14px; color: var(--muted-strong); }
.qr img { width: 84px; height: 84px; background: #fff; padding: 5px; border-radius: 8px; flex: none; }
.qr p { margin: 0; max-width: 90px; line-height: 1.35; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { .qr { display: flex; } }
@media (max-width: 760px) {
  .app-cta { grid-template-columns: 1fr; padding: 22px 22px 0; }
  .app-cta-text { padding-bottom: 6px; }
  .app-shot img { max-width: 250px; aspect-ratio: 600 / 420; }
}

/* Reading below the tool */
.reading { max-width: 760px; }
.reading h2 { margin-top: 44px; }
.example { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 16px 18px; margin: 0 0 16px; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 0; }
.related a { display: block; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--text); }
.related a strong { color: var(--accent); display: block; }
.related a span { color: var(--muted); font-size: 15px; }

/* Index */
.tool-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 28px 0; }
.tool-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); }
.tool-card:hover { border-color: var(--accent); color: var(--text); }
.tool-card h2 { font-size: 21px; margin: 0 0 8px; }
.tool-card p { color: var(--muted); margin: 0 0 14px; font-size: 16px; }
.tool-card .go { margin-top: auto; color: var(--accent); font-weight: 600; }

/* Undo and short messages */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--text); color: var(--bg); border-radius: 12px; padding: 12px 18px; display: flex; gap: 16px; align-items: center; z-index: 10; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.toast .link-button { color: var(--bg); font-weight: 700; }

@media (max-width: 520px) {
  .panel { padding: 18px; }
  .row-2 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .actions .btn, .form-actions .btn { width: auto; flex: 1 1 auto; }
  .quote { flex-direction: column; align-items: stretch; }
}
@media (max-width: 360px) {
  .brand img { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn-primary:hover, .btn-primary:active { transform: none; }
}

/* Print: the result and its reasoning, without the page around it. */
.print-only { display: none; }
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-muted: #f4f4f3; --text: #000; --muted: #444; --hairline: #ccc; }
  body { font-size: 12pt; background: #fff; }
  header.top nav, footer, .no-print, .app-cta, [data-app-cta], .actions, .form-actions, .reading, .crumbs, .toast, .saved-note, #inputs { display: none !important; }
  .panel { border: 0; padding: 0; margin: 0 0 12pt; }
  .print-only { display: block; }
  a { color: #000; text-decoration: none; }
  .timeline li, table.data tr, .task { break-inside: avoid; }
  .tool-head .lead { display: none; }
}
.mt { margin-top: 12px; }

/* Checklist */
.task-group { padding: 18px 20px; }
.task-group h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.count { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; font-weight: 700; background: var(--surface-muted); color: var(--muted); border-radius: 999px; padding: 1px 9px; }
.tasks { list-style: none; padding: 0; margin: 0; }
.task { border-top: 1px solid var(--hairline); padding: 14px 0; margin: 0; scroll-margin-top: 16px; }
.task:first-child { border-top: 0; }
.task-row { display: flex; gap: 12px; align-items: flex-start; }
.task-row > input[type='checkbox'] { accent-color: var(--accent); width: 22px; height: 22px; margin: 2px 0 0; flex: none; cursor: pointer; }
.task-body { min-width: 0; flex: 1; }
.task-title { font-weight: 600; cursor: pointer; display: block; }
.is-done .task-title { text-decoration: line-through; color: var(--muted); }
.task-meta { margin: 2px 0 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.task-date { font-weight: 600; color: var(--accent-deep); }
@media (prefers-color-scheme: dark) { .task-date { color: var(--accent); } }
.task-reason { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.task-after { margin: 4px 0 0; font-size: 14px; }
.task-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; font-size: 14px; }
.date-editor { margin-top: 10px; max-width: 320px; }
.date-editor .actions { margin-top: 8px; }
.next { background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; margin: 18px 0 0; }
.next h3 { margin: 0 0 8px; }
.next-list { margin: 0; padding-left: 22px; }
.next-list li { margin-bottom: 10px; }
.next-list a { font-weight: 600; color: var(--text); }
.next-date { display: block; font-size: 14px; font-weight: 600; color: var(--accent-deep); }
@media (prefers-color-scheme: dark) { .next-date { color: var(--accent); } }
.next-why { display: block; font-size: 14px; color: var(--muted); }
@media print {
  .task-group { border: 0; padding: 0; }
  .task-row > input[type='checkbox'] { appearance: none; -webkit-appearance: none; border: 1.5px solid #000; border-radius: 4px; }
  .task-row > input[type='checkbox']:checked::after { content: '✓'; display: block; text-align: center; line-height: 18px; }
  .next { background: none; border: 1px solid #ccc; }
}
.result h2, .panel .kicker + h2 { margin-top: 4px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 400px) { .cards.three .stat .n { font-size: 20px; } }

/* Guest list */
.blank-downloads { border-top: 1px solid var(--hairline); margin-top: 22px; padding-top: 16px; }
.blank-downloads .actions { margin-top: 8px; }
#mapping { border-top: 1px solid var(--hairline); margin-top: 22px; padding-top: 16px; }
#mapping h3 { margin-top: 0; }
.mapping-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin: 14px 0; }
.mapping-grid label { font-size: 15px; overflow-wrap: anywhere; }
.issues { background: var(--warn-soft); border-radius: 12px; padding: 14px 18px; margin: 16px 0 0; }
.issues h3 { margin: 0 0 8px; font-size: 17px; }
.issues ul { margin: 0; padding-left: 20px; }
.issues li { margin-bottom: 8px; font-size: 15px; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.list-head h3 { margin: 0; }
.list-head .btn { width: auto; }
.guests { list-style: none; padding: 0; margin: 0; }
.guest { border-top: 1px solid var(--hairline); padding: 10px 0; margin: 0; }
.guest-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.1fr) auto; gap: 8px; align-items: center; }
.guest-main input, .guest-main select { min-height: 42px; padding: 8px 12px; font-size: 16px; }
.guest-main select { padding-right: 32px; }
.guest-buttons { display: flex; gap: 6px; }
.guest-buttons .btn { width: auto; white-space: nowrap; }
.guest.needs-review .guest-name input { border-color: var(--warn); }
.review-note { margin: 6px 0 0; }
.guest-details { background: var(--surface-muted); border-radius: 12px; padding: 14px; margin-top: 10px; display: grid; gap: 12px; }
.remember { border-top: 1px solid var(--hairline); margin-top: 12px; padding-top: 14px; display: grid; gap: 6px; justify-items: start; }
.remember .hint { margin: 0; }
@media (max-width: 700px) {
  .guest-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .guest-main .guest-name { grid-column: 1 / -1; }
  .guest-buttons { grid-column: 1 / -1; }
  .guest-buttons .btn { flex: 1; }
}

/* Budget */
.hint-inline { font-weight: 400; color: var(--muted); font-size: 14px; }
.no-top { margin-top: 0; }
.money-input { max-width: 150px; text-align: right; font-variant-numeric: tabular-nums; }
.budget-table td .field { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.budget-table select { min-height: 40px; padding: 7px 32px 7px 12px; font-size: 15px; }
.budget-table .amount { font-variant-numeric: tabular-nums; }
.budget-table tr.total td { border-top: 2px solid var(--text); }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; font-weight: 400; margin-top: 4px; }
.cat-name { display: block; font-weight: 600; }
.budget-table select { min-width: 132px; }
table.stack td::before { flex: none; }
.row-extra:empty { display: none; }
.row-extra { font-weight: 400; margin-top: 10px; }
.row-extra .field { max-width: 200px; }
.composition-wrap { margin: 18px 0 0; }
.composition { width: 100%; height: 28px; display: block; }
.seg-contingency { fill: var(--faint); background: var(--faint); }
.seg-fixed { fill: var(--accent-deep); background: var(--accent-deep); }
.seg-open { fill: var(--accent); background: var(--accent); }
.seg-left { fill: var(--ok); background: var(--ok); }
.seg-limit { fill: var(--text); background: var(--text); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; margin: 0; }
.legend .key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
@media (max-width: 640px) {
  .budget-table td .field { justify-content: flex-end; }
  .budget-table select { min-width: 0; width: auto; }
}
@media print { .composition-wrap { display: none; } }

/* Payment schedule */
.vendor { display: grid; gap: 16px; }
.vendor-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vendor-head h3, .vendor-head h4 { margin: 0; }
.installment { border-top: 1px solid var(--hairline); padding-top: 14px; display: grid; gap: 12px; }
.installment h4 { margin: 0; font-size: 17px; display: flex; gap: 10px; align-items: baseline; font-family: 'Outfit', -apple-system, sans-serif; }
.computed { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 600; color: var(--accent-deep); font-size: 16px; }
@media (prefers-color-scheme: dark) { .computed { color: var(--accent); } }
.choice.compact { grid-template-columns: repeat(auto-fit, minmax(110px, max-content)); }
.choice.compact label { min-height: 42px; padding: 8px 14px; }
.add-middle { justify-self: start; }
.field-slot:empty { display: none; }
.months-chart { width: 100%; height: auto; display: block; margin: 8px 0 4px; }
.bar { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.bar-top { fill: var(--accent); }
.bar-label { fill: var(--muted); font-size: 22px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
table.months { max-width: 420px; }
.month-group h4 { margin: 18px 0 0; display: flex; gap: 10px; align-items: center; }
.month-group:first-child h4 { margin-top: 4px; }
.paid-group summary { cursor: pointer; font-weight: 600; font-family: 'Outfit', -apple-system, sans-serif; font-size: 19px; }
.block { display: block; font-weight: 400; }
@media print {
  .paid-group { display: block; }
  .months-chart { max-height: 140px; }
}

.vendor-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; margin: 12px 0; }
.vendor-summary .btn { width: auto; flex: none; }
.bar-empty { fill: var(--hairline); }
@media (min-width: 641px) {
  table.pay-table { table-layout: fixed; }
  table.pay-table th:nth-child(1) { width: 32%; }
  table.pay-table th:nth-child(2) { width: 15%; }
  table.pay-table th:nth-child(6) { width: 19%; }
}

/* Text on tinted panels needs a stronger tone to keep 4.5:1. */
.stat .l, .count, .tag-muted, .next-why, .issues, .status .hint { color: var(--muted-strong); }
.issues .link-button, .status .link-button, .next-date { color: var(--accent-on-soft); }
@media (prefers-color-scheme: dark) { .next-date { color: var(--accent-on-soft); } }

/* Where the page stops and the app carries on */
.nudge { font-size: 15px; color: var(--muted-strong); margin: 12px 0 0; }
.nudge a, #export-note a { font-weight: 600; white-space: nowrap; }
.partner-panel { background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; margin: 14px 0 0; display: grid; gap: 6px; justify-items: start; }
.partner-panel p { margin: 0; }
.partner-panel .partner-title { font-family: 'Outfit', -apple-system, sans-serif; font-weight: 600; font-size: 18px; }
.partner-panel a { font-weight: 600; }
@media print { .partner-panel, .nudge, #partner { display: none !important; } }
.task-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); margin: 8px 6px 0 4px; flex: none; }
.is-done .task-dot { background: var(--ok); border-color: var(--ok); }
p.task-title { margin: 0; cursor: default; }
