:root {
  --ink: #172D32; --paper: #FFFDF7; --teal: #00A6AD; --teal-dark: #008C92; --sky: #DDF2FA;
  --muted: #4B6166; --line: #E7EEF0; --coral: #B4472C; --coral-bg: #FDEBE5; --mint: #0E7C66; --mint-bg: #DDF5EF;
  --head: Fredoka, "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
  --body: "Varela Round", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--sky); }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--sky); font-size: 16px; line-height: 1.5; }
[hidden] { display: none !important; }
.top { display: flex; align-items: center; justify-content: space-between; max-width: 720px; margin: 0 auto; padding: 16px; }
.logo { font-family: var(--head); font-weight: 600; font-size: 24px; color: var(--teal); text-decoration: none; letter-spacing: .02em; }
.logo span { color: var(--ink); font-weight: 500; font-size: 18px; margin-left: 4px; }
main { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; margin: 0 0 8px; line-height: 1.2; }
h1 { font-size: 30px; } h2 { font-size: 21px; } h3 { font-size: 18px; }
h2.section { margin: 24px 4px 10px; }
.card { background: var(--paper); border-radius: 22px; padding: 22px; margin: 0 0 16px; box-shadow: 0 1px 0 rgba(23,45,50,.04); }
.narrow { max-width: 460px; margin: 24px auto; }
.lead { font-size: 17px; margin: 0 0 16px; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.msg { min-height: 1.2em; font-size: 15px; margin: 10px 0 0; }
.msg.error, .danger { color: var(--coral); }
.notice { background: var(--mint-bg); color: var(--mint); padding: 10px 14px; border-radius: 12px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 8px; } .row input { flex: 1; min-width: 0; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); }
button, .button { font: inherit; font-weight: 600; border-radius: 999px; padding: 11px 20px; border: 2px solid var(--teal); cursor: pointer;
  background: var(--paper); color: var(--teal); text-decoration: none; display: inline-block; text-align: center; }
button.primary, .button.primary { background: var(--teal); color: #fff; }
button.primary:hover, .button.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
button.ghost { border-color: transparent; background: transparent; padding: 6px 10px; }
button.small { font-size: 14px; padding: 7px 14px; }
button.ghost.small { padding: 6px 8px; }
.hello { margin: 8px 4px 16px; }
.list { display: grid; gap: 12px; margin-bottom: 16px; }
.empty { background: var(--paper); border-radius: 18px; padding: 18px; color: var(--muted); margin: 0; }
.group-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--paper);
  border-radius: 20px; padding: 18px 20px; color: inherit; text-decoration: none; border: 2px solid transparent; }
.group-card:hover { border-color: var(--teal); }
.group-card h3 { margin: 0; } .group-card p { margin: 2px 0 0; }
.next { display: grid; justify-items: end; text-align: right; gap: 2px; font-size: 15px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--sky); font-size: 12px; color: var(--ink); margin-left: 6px; }
.next .pill { margin: 0; }
.pill.going { background: var(--mint-bg); color: var(--mint); } .pill.cant { background: var(--coral-bg); color: var(--coral); }
.back { display: inline-block; margin: 0 4px 10px; color: var(--teal); text-decoration: none; font-size: 15px; }
.group-head { margin: 0 4px 14px; }
.invite input { font-size: 14px; color: var(--muted); }
.playdate { background: var(--paper); border-radius: 20px; padding: 18px 20px; }
.playdate .when { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.playdate h3 a { color: inherit; }
.playdate p { margin: 4px 0; }
.playdate .note { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 15px; }
.who { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .who .pill { margin: 0; }
.rsvp { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.members { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.members li { display: flex; gap: 12px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; font-family: var(--head); color: var(--teal); flex: none; }
.ticks { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.ticks li::before { content: "✓ "; color: var(--teal); font-weight: bold; }
.price { font-size: 18px; }
.extras { border: 1.5px dashed var(--line); border-radius: 14px; padding: 10px 14px; }
.extras summary { cursor: pointer; color: var(--teal); font-weight: 600; font-size: 15px; }
.extras[open] summary { margin-bottom: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 8px; align-items: center; }
.extras-out { margin: 8px 0; display: grid; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink); text-decoration: none; font-size: 14px; }
.chip:hover { border-color: var(--teal); }
.chip.pay { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.split { background: var(--sky); border-radius: 12px; padding: 8px 12px; }
.split p { margin: 0 0 6px; }
.newto { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e7eef0; }
.newto-head { font-family: Fredoka, sans-serif; font-size: 18px; margin: 0 0 8px; color: var(--ink); }
.newto-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: 14px; color: #4b6166; }
.newto-list span { margin-right: 6px; }
.c-promo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); margin-bottom: 14px; }
.c-promo:hover { border-color: #00A6AD; }
.c-promo-emoji { font-size: 30px; }
.toggle { display: flex; flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; cursor: pointer; }
.toggle input { width: auto; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: 15px; margin: 0; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
@media (max-width: 520px) {
  .row2 { grid-template-columns: 1fr; }
  .link-row { grid-template-columns: 1fr auto; }
  .link-row select { grid-column: 1 / -1; }
  h1 { font-size: 26px; }
  .group-card { flex-direction: column; align-items: flex-start; }
  .next { justify-items: start; text-align: left; }
}
.kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 0 0 6px; }
