:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #243d3b; background: #f5f5ef; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1280px; margin: auto; padding: 48px 28px; }
.page-header, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.page-header { margin-bottom: 30px; }
.eyebrow { color: #667872; font-size: .9rem; margin: 0 0 8px; }
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -.055em; margin: 0; font-weight: 750; }
h2 { font-size: 1.25rem; letter-spacing: -.02em; margin: 0 0 8px; }
p { line-height: 1.55; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.card { background: #fff; border: 1px solid #e0e5db; border-radius: 18px; box-shadow: 0 6px 25px #344b3410; overflow: hidden; }
.section-heading { padding: 26px 24px 18px; }
.section-heading p { margin: 0; color: #6a7973; font-size: .9rem; }
.badge { background: #edf3d9; color: #486027; padding: 8px 12px; font-size: .75rem; border-radius: 20px; white-space: nowrap; }
.roster { padding: 24px; }
.hint, .footnote { color: #687972; font-size: .82rem; }
.hint { margin: 0 0 20px; }
.footnote { margin: 20px 0 0; }
.schedule > .footnote { padding: 0 24px 24px; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { text-align: left; background: #f6f8f3; color: #697c72; font-size: .72rem; text-transform: uppercase; letter-spacing: .055em; padding: 14px 12px; }
th:first-child { width: 19%; padding-left: 24px; }
th:nth-child(2) { width: 19%; }
th:last-child { width: 14%; text-align: center; }
td { padding: 20px 12px; border-bottom: 1px solid #edf0e9; vertical-align: top; font-size: .9rem; overflow-wrap: anywhere; }
td:first-child { padding-left: 24px; }
td:last-child { text-align: center; }
tr:last-child td { border-bottom: 0; }
.date { display: block; font-weight: 650; }
.year, .this-week { display: block; margin-top: 5px; font-size: .72rem; color: #748379; }
.this-week { color: #35785c; font-weight: 650; }
.picker { font-weight: 650; }
.no-dinner { background: #fafbf8; }
.no-dinner .picker { color: #7c847e; font-weight: 400; }
textarea, input { font: inherit; border: 1px solid #cbd7cd; border-radius: 8px; background: white; color: #243d3b; }
textarea { display: block; width: 100%; min-height: 76px; padding: 10px; resize: vertical; line-height: 1.4; }
textarea:disabled { background: #f2f4ef; color: #7b867f; }
.edit-meta { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: .68rem; color: #7b877f; }
.save-state { color: #337857; }
.edit-meta.invalid, .save-state.failed { color: #a03d32; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: #35765d; margin-top: 12px; cursor: pointer; }
button { font: inherit; font-weight: 600; border: 0; border-radius: 9px; padding: 10px 15px; color: #fff; background: #306e56; cursor: pointer; }
button:hover:not(:disabled) { background: #24533f; }
button:disabled { opacity: .45; cursor: default; }
.quiet { background: #e7ece2; color: #365e47; font-size: .85rem; }
.quiet:hover:not(:disabled) { background: #dce5d5; }
:focus-visible { outline: 3px solid #b88936; outline-offset: 3px; }
#people { list-style: none; padding: 0; margin: 0 0 24px; }
.person { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid #edf0e9; }
.position { min-width: 24px; height: 24px; border-radius: 50%; background: #edf3e8; color: #5c7759; display: grid; place-items: center; font-size: .75rem; }
.person-name { flex: 1; overflow-wrap: anywhere; font-size: .9rem; }
.person button { padding: 5px 7px; font-size: .85rem; background: transparent; color: #5a7062; }
.person button:hover:not(:disabled) { background: #edf3e8; }
.person .remove { color: #a06356; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.add-row { display: flex; gap: 8px; }
.add-row input { min-width: 0; width: 100%; padding: 10px; }
.notice { background: #faf5df; padding: 14px 18px; margin: 0 24px 18px; font-size: .9rem; border-radius: 8px; }
#error { background: #fff0e9; border: 1px solid #e9b9aa; color: #8b3e2f; border-radius: 10px; padding: 14px 18px; }
footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; color: #7b877d; font-size: .78rem; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } .roster { max-width: none; } }
@media (max-width: 600px) {
  main { padding: 28px 14px; }
  .section-heading { padding: 22px 18px; align-items: start; }
  .badge { display: none; }
  thead { display: none; }
  tbody, tr, td { display: block; }
  tr { padding: 18px; border-bottom: 1px solid #e4e9df; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  td, td:first-child { padding: 0; border: 0; }
  td:first-child { grid-column: 1; }
  td:nth-child(2) { grid-column: 1; }
  td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
  td:last-child { grid-column: 2; grid-row: 1 / 3; }
  td:last-child::before { content: "No dinner"; display: block; font-size: .75rem; color: #687972; }
  .year { display: inline; margin-left: 6px; }
  .date { display: inline; }
  .this-week { display: inline-block; margin-left: 8px; }
  footer { flex-direction: column; }
}
