:root {
  --bg: #fbf6ee;
  --card: #ffffff;
  --ink: #2a1c19;
  --muted: #7a6a63;
  --line: #eadfd2;
  --red: #9e2b25;
  --red-soft: #f6e4e1;
  --gold: #b88a44;
  --gold-soft: #f5ecdc;
  --green: #2f7a4f;
  --green-soft: #e3f1e8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(60, 30, 20, .06), 0 6px 24px rgba(60, 30, 20, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 28px 16px 64px; }
.wrap.wide { max-width: 980px; }
h1, h2, h3, .serif { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: .01em; }
h1 { font-size: 2.4rem; line-height: 1.1; margin: 0 0 6px; }
h2 { font-size: 1.6rem; margin: 0 0 10px; }
h3 { font-size: 1.25rem; margin: 0 0 6px; }
p { margin: 0 0 12px; }
a { color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }

.hero { text-align: center; padding: 20px 0 24px; }
.hero .kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; color: var(--gold); font-weight: 600; }
.hero .date { color: var(--muted); font-size: .95rem; }
.ornament { color: var(--gold); font-size: 1.1rem; letter-spacing: .5em; margin: 6px 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }

label { display: block; font-weight: 600; margin-bottom: 8px; }
input[type=text], input[type=password], input[type=search], select {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: 13px 18px; cursor: pointer; text-decoration: none; background: var(--red); color: #fff; min-height: 48px; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--red); border: 1.5px solid var(--line); }
.btn.gold { background: var(--gold); }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: .9rem; border-radius: 10px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.linkish { background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; padding: 6px; }

.err { color: var(--red); font-size: .92rem; margin-top: 8px; min-height: 1.2em; }

/* Guest results */
.result { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.result:first-child { border-top: 0; }
.result .name { font-weight: 600; font-size: 1.1rem; }
.tablebadge { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; text-align: center; line-height: 1; box-shadow: 0 0 0 4px var(--gold-soft); }
.tablebadge small { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 3px; }
.tablebadge b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.9rem; }

.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.notes li { display: flex; gap: 12px; align-items: flex-start; }
.notes .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--gold-soft); display: grid; place-items: center; font-size: 1.1rem; }

/* Bridal */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.person { font: inherit; text-align: left; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.person:hover { border-color: var(--gold); }
.person b { display: block; }
.person span { font-size: .8rem; color: var(--muted); }
.grouplabel { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 14px 0 8px; }

.now { background: var(--red); color: #fff; border: 0; }
.now .label, .next .label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; opacity: .85; }
.now .time { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.1rem; opacity: .9; }
.now .task { font-size: 1.2rem; font-weight: 600; margin: 6px 0 8px; line-height: 1.4; }
.now .ctx { font-size: .9rem; opacity: .85; }
.next { background: var(--gold-soft); border-color: transparent; }
.next .label { color: var(--gold); opacity: 1; }
.next .task { font-weight: 600; margin-top: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: #6d5226; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline .sec { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding: 16px 0 6px; }
.timeline .slot { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.timeline .slot .t { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.timeline .slot .what { font-size: .82rem; color: var(--muted); }
.timeline .slot .mine { font-weight: 500; }
.timeline .slot.personal .mine { color: var(--ink); }
.timeline .slot.current { background: var(--red-soft); margin: 0 -12px; padding: 12px; border-radius: 12px; border-top-color: transparent; }
.timeline .slot.current .t { color: var(--red); }
.timeline .slot.past { opacity: .5; }
.timeline .note { font-size: .82rem; color: #6d5226; background: var(--gold-soft); padding: 6px 10px; border-radius: 8px; margin-top: 6px; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; background: var(--gold-soft); padding: 4px; border-radius: 12px; }
.tabs button { flex: 1; font: inherit; font-weight: 600; font-size: .9rem; border: 0; background: transparent; padding: 9px 12px; border-radius: 9px; cursor: pointer; color: #6d5226; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

footer { text-align: center; margin-top: 30px; }
