:root {
  --bg: #f7f3ed;
  --card: #fffaf2;
  --ink: #2d241d;
  --muted: #76695c;
  --line: #e4d7c5;
  --accent: #9b4d24;
  --accent-dark: #733717;
  --ok: #287a4b;
  --warn: #9a6a05;
  --bad: #9a2f22;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: radial-gradient(circle at top left, #fff2da, var(--bg) 42rem); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: rgba(255, 250, 242, 0.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 2; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--ink); }
nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.container { width: min(1050px, calc(100vw - 2rem)); margin: 2rem auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.25rem; box-shadow: 0 10px 30px rgba(45, 36, 29, 0.06); margin-bottom: 1rem; }
.narrow { max-width: 420px; margin: 4rem auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
h1, h2 { margin-top: 0; line-height: 1.1; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 650; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .75rem .85rem; background: white; color: var(--ink); font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; padding: .72rem 1rem; color: white; background: var(--accent); font-weight: 750; cursor: pointer; }
button:hover, .button:hover { background: var(--accent-dark); text-decoration: none; }
.secondary { background: #eee1d2; color: var(--ink); }
.secondary:hover { background: #dfcfbd; }
.inline { display: inline; }
.inline button { padding: .45rem .7rem; }
.messages { display: grid; gap: .5rem; margin-bottom: 1rem; }
.message { padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: white; }
.message.success { border-color: #b8dfc8; color: var(--ok); }
.message.error { border-color: #efc0b8; color: var(--bad); }
.attendance-form, .user-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; align-items: end; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
.checkbox input { width: auto; }
.table { display: grid; gap: .5rem; }
.table-row { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 1rem; align-items: center; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.pill { display: inline-flex; border-radius: 999px; padding: .25rem .6rem; font-size: .82rem; font-weight: 800; background: #eee1d2; }
.pill.joined, .pill.admin { background: #d9f1e2; color: var(--ok); }
.pill.maybe { background: #fff0bd; color: var(--warn); }
.pill.declined { background: #f8d6d0; color: var(--bad); }
.empty { text-align: center; padding: 3rem 1rem; }
@media (max-width: 700px) { .topbar, .page-title { align-items: flex-start; flex-direction: column; } .table-row { grid-template-columns: 1fr; } }
