:root {
  --bg: #f7f8f5; --surface: #ffffff; --ink: #1d2a24; --muted: #5d6b64; --line: #dfe4df;
  --brand: #2f6b4f; --brand-ink: #ffffff; --warn-bg: #fff4d6; --warn-ink: #6b4d00;
  --ok-bg: #e3f3e8; --ok-ink: #1f5a36; --bad-bg: #fbe4e1; --bad-ink: #8a2a1d;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--brand); }
.banner { background: var(--warn-bg); color: var(--warn-ink); text-align: center; padding: 6px 16px; font-size: 14px; font-weight: 600; }
.top { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); font-size: 18px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
main { max-width: 960px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-size: 28px; margin: 8px 0 12px; } h2 { font-size: 20px; margin: 28px 0 8px; } h3 { font-size: 17px; margin: 20px 0 8px; }
.muted { color: var(--muted); }
.crumbs { margin: 0; color: var(--muted); font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--brand); }
.card h2 { margin: 0; font-size: 18px; }
.list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.list th, .list td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list th { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.list tr:last-child td { border-bottom: 0; }
.list tr.past, .list tr.done { color: var(--muted); }
.actions { text-align: right; white-space: nowrap; }
button, .button { display: inline-block; font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none; }
button.secondary, .button.secondary { background: transparent; color: var(--brand); }
button:disabled { opacity: .45; cursor: default; }
button.link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 400; text-decoration: underline; }
form.inline { display: inline; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--line); }
.pill.ok, .pill.approved, .pill.open { background: var(--ok-bg); color: var(--ok-ink); }
.pill.full, .pill.rejected, .pill.closed { background: var(--bad-bg); color: var(--bad-ink); }
.pill.pending { background: var(--warn-bg); color: var(--warn-ink); }
.flash { padding: 10px 14px; border-radius: 8px; margin: 8px 0; background: var(--ok-bg); color: var(--ok-ink); }
.flash.error { background: var(--bad-bg); color: var(--bad-ink); }
.notice { padding: 10px 14px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 12px 0; }
.stat { display: flex; flex-direction: column; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.stat strong { font-size: 30px; line-height: 1.1; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 8px 0 16px; }
.grid-form .wide { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input.hours { width: 6em; display: inline-block; }
.range { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.range input { width: auto; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.heading-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.people { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.person-btn { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-weight: 400; }
.person-btn:hover { border-color: var(--brand); }
.person-btn .muted { font-size: 14px; }
@media (max-width: 640px) {
  .list thead { display: none; }
  .list, .list tbody, .list tr, .list td { display: block; width: 100%; }
  .list tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .list td { border: 0; padding: 4px 12px; }
  .actions { text-align: left; }
}
