:root { --fg: #1c1c1c; --bg: #fafafa; --accent: #1b5e20; --gap: 1rem; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: var(--fg); background: var(--bg); }
.site-header { padding: var(--gap); background: var(--accent); }
.site-header a { color: #fff; font-weight: 600; text-decoration: none; }
main { max-width: 40rem; margin: 0 auto; padding: var(--gap); }
.site-header { display: flex; justify-content: space-between; align-items: center; }
.site-header nav { display: flex; gap: var(--gap); align-items: center; }
.site-header nav a, .site-header nav button.link { color: #fff; text-decoration: none; font-size: .95rem; }
h1 { font-size: 1.6rem; line-height: 1.2; }
.muted { color: #666; }
.crumbs { margin-bottom: 0; font-size: .9rem; }
.error { color: #b00020; }
.error ul { margin: .25rem 0; padding-left: 1.25rem; }
.notice { background: #e8f5e9; padding: .75rem 1rem; border-radius: .5rem; }
.card { background: #fff; border: 1px solid #ddd; border-radius: .5rem; padding: .75rem 1rem; margin: .5rem 0; }
.badge { font-size: .75rem; padding: .1rem .5rem; border-radius: 1rem; background: #eee; text-transform: uppercase; letter-spacing: .03em; }
.badge.open { background: #c8e6c9; }
.badge.closed { background: #ffe0b2; }
.stack { display: flex; flex-direction: column; gap: .9rem; }
.stack label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
.stack label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
input, select, textarea { font: inherit; padding: .6rem; border: 1px solid #bbb; border-radius: .4rem; width: 100%; background: #fff; }
input[type=checkbox], input[type=radio] { width: auto; padding: 0; margin: 0; flex: none; }
fieldset { border: 1px solid #ddd; border-radius: .5rem; }
button, .button { display: inline-block; font: inherit; font-weight: 600; padding: .65rem 1.1rem; border: 0; border-radius: .4rem; background: var(--accent); color: #fff; text-decoration: none; cursor: pointer; }
.button.secondary { background: #e0e0e0; color: var(--fg); }
button.link { background: none; padding: 0; font-weight: 400; }
form.inline { display: inline; }
.row { border: 1px solid #ddd; border-radius: .5rem; padding: .75rem; margin: .5rem 0; background: #fff; display: flex; flex-direction: column; gap: .6rem; }
.row label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .25rem; margin: .5rem 0; }
.checks label.check, .row label.check { flex-direction: row; font-weight: 400; }
button.secondary { background: #e0e0e0; color: var(--fg); }
button.small { align-self: flex-start; padding: .35rem .75rem; font-size: .85rem; }
summary { cursor: pointer; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; margin-bottom: 0; }
.saved { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
button.chip { background: #e8f5e9; color: var(--accent); border: 1px solid #a5d6a7; padding: .3rem .7rem; font-size: .9rem; border-radius: 1rem; }
button.danger { background: #b00020; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: .35rem 0; border-bottom: 1px solid #eee; }
button.link { color: #b00020; text-decoration: underline; margin-left: .5rem; }
main.wide { max-width: 64rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 2px solid #ddd; margin: .5rem 0 1rem; }
.tabs a { padding: .5rem .9rem; text-decoration: none; color: var(--fg); border-radius: .4rem .4rem 0 0; }
.tabs a.active { background: var(--accent); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .6rem; margin: 1rem 0; }
.tile { background: #fff; border: 1px solid #ddd; border-radius: .5rem; padding: .75rem; text-align: center; }
.tile strong { display: block; font-size: 1.8rem; line-height: 1.1; }
.tile span { color: #666; font-size: .85rem; }
.tile.warn { border-color: #b00020; } .tile.warn strong { color: #b00020; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
th { background: #f0f0f0; font-size: .85rem; }
table.narrow-table { width: auto; min-width: 16rem; }
tr.muted td { color: #888; }
@media print {
  .no-print, .site-header { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  main, main.wide { max-width: none; padding: 0; }
  .table-wrap { overflow: visible; }
  th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  tr { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
.notice.warn { background: #fff8e1; border: 1px solid #ffe082; }
.badge.waitlist, .badge.pending_late { background: #ffe082; }
.badge.cancelled { background: #ffcdd2; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 1rem; }
.filters a { padding: .25rem .7rem; border: 1px solid #ccc; border-radius: 1rem; text-decoration: none; color: var(--fg); font-size: .9rem; }
.filters a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.badge.paid { background: #c8e6c9; }
.badge.unpaid, .badge.overpaid { background: #ffcdd2; }
.badge.partial { background: #ffe082; }
td form.inline select { width: auto; padding: .25rem; }
.hf { border-top: 1px dashed #ddd; padding-top: .5rem; }
.hf .hf-date { display: none; flex-direction: column; gap: .25rem; margin-top: .4rem; font-weight: 600; }
.hf:has(input[value=yes]:checked) .hf-date { display: flex; }
@supports not selector(:has(*)) { .hf .hf-date { display: flex; } }
.hf label.check { display: flex; flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; margin: .25rem 0; }
.onfile { margin: 0 0 .25rem; color: #1b5e20; }
.badge.hf-verified { background: #c8e6c9; }
.badge.hf-reported { background: #e3f2fd; }
.badge.hf-expiring { background: #ffe082; }
.badge.hf-missing { background: #ffcdd2; }
