/* Tokens: docs/DESIGN.md */
:root {
  --bg: #FBF7F2; --surface: #FFFFFF; --ink: #231A16; --ink2: #6B5D55; --line: rgba(35,26,22,.12);
  --accent: #9A2545; --onAccent: #FFFFFF; --soft: #F6E6EA; --ok: #2F6E3B; --warn: #8A5300;
  --yesBg: #E5F1E7; --maybeBg: #FBEFD9; --noBg: #EFEAE6; --noFg: #6B5D55;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120F; --surface: #231C18; --ink: #F5EEE8; --ink2: #BFB2A8; --line: rgba(245,238,232,.14);
    --accent: #F08AA3; --onAccent: #17120F; --soft: #3A2229; --ok: #7CC48A; --warn: #E8B45A;
    --yesBg: #1F3324; --maybeBg: #3A2C17; --noBg: #2A2421; --noFg: #BFB2A8;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 Mukta, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.15; }
h2 { margin: 0; font-size: 20px; font-weight: 700; }
.muted { color: var(--ink2); }
.small { font-size: 13px; }

.shell { display: flex; min-height: 100vh; }
.side { width: 240px; flex-shrink: 0; padding: 24px 16px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.brand { font-size: 14px; font-weight: 800; letter-spacing: .04em; color: var(--accent); padding: 0 12px; }
.side .event { padding: 0 12px 16px; color: var(--ink2); font-size: 15px; }
.nav a { min-height: 44px; padding: 0 12px; border-radius: 12px; display: flex; align-items: center; gap: 10px; color: var(--ink2); }
.nav a[aria-current="page"] { background: var(--soft); color: var(--accent); font-weight: 700; }
main { flex: 1; min-width: 0; padding: 24px 32px 96px; display: flex; flex-direction: column; gap: 18px; }

.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grow { flex: 1 1 260px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 28px; font-weight: 800; }
.soft { background: var(--soft); border: 0; }

.btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--onAccent); }
.pill { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--onAccent); }
input[type=search], input[type=text] { height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 12px; min-width: 0; }
label.field { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink2); }

.sheet { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.sheet table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 15px; }
.sheet th { text-align: left; font-size: 14px; font-weight: 600; color: var(--ink2); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.sheet td { padding: 4px 8px; border-bottom: 1px solid var(--line); }
.sheet .c { text-align: center; }
.sheet tfoot td { font-weight: 700; padding: 12px 8px; border-bottom: 0; }
.chip { width: 76px; min-height: 40px; border: 0; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; }
.chip.Yes { background: var(--yesBg); color: var(--ok); }
.chip.Maybe { background: var(--maybeBg); color: var(--warn); }
.chip.No { background: var(--noBg); color: var(--noFg); }
select { height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 6px; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); }

.fnrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.fnrow .plan { margin-left: auto; font-size: 22px; font-weight: 800; color: var(--accent); }
.list { display: flex; flex-direction: column; gap: 10px; }
pre.msg { margin: 0; white-space: pre-wrap; font: inherit; font-size: 15px; background: var(--soft); border-radius: 12px; padding: 12px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font-size: 22px; cursor: pointer; }
.stepper b { width: 28px; text-align: center; font-size: 22px; }
.banner { border-radius: 20px; background: #7A1E36; color: #F8E9C9; padding: 28px 16px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.banner b { font-size: 30px; }
.vendors { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.photo { height: 110px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink2); margin-bottom: 8px; }
.note { border-left: 0; border-radius: 12px; background: var(--maybeBg); color: var(--ink); padding: 10px 14px; font-size: 14px; }

/* Phone: menu becomes a bottom bar */
@media (max-width: 760px) {
  .shell { display: block; }
  .side { position: fixed; bottom: 0; left: 0; right: 0; width: auto; flex-direction: row; padding: 6px 8px 10px; border-right: 0; border-top: 1px solid var(--line); z-index: 5; }
  .side .brand, .side .event, .side .foot { display: none; }
  .nav { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
  .nav a { flex-direction: column; justify-content: center; gap: 2px; font-size: 13px; min-height: 52px; }
  main { padding: 20px 16px 96px; }
}
.rsvp main { max-width: 560px; margin: 0 auto; padding-bottom: 40px; }
