:root {
  font-family: system-ui, sans-serif;
  color: #172941;
  background: #f0f5f8;
  --navy: #102744;
  --blue: #2058a4;
  --ink: #172941;
  --muted: #465c73;
  --line: #d6e1ea;
  --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #3777cd; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.15rem; }
h3 { font-size: .9rem; }
p { line-height: 1.5; }
a { color: inherit; }
.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.masthead {
  color: var(--white);
  background: radial-gradient(ellipse at 92% 20%, #245791 0%, transparent 58%), var(--navy);
}
.topbar, .section-title { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.topbar { padding-block: .85rem; border-bottom: 1px solid #ffffff35; }
.brand { display: inline-flex; gap: .55rem; align-items: center; font-weight: 750; text-decoration: none; }
.mark { display: grid; place-items: center; background: #d9eaff; color: var(--navy); border-radius: .6rem; width: 2rem; height: 2rem; font-size: 1.5rem; }
.hero { padding-block: 1.75rem 2rem; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4rem); line-height: 1.04; letter-spacing: -.06em; margin: .28rem 0 .45rem; }
.hero p { color: #dceaff; }
.eyebrow { font-weight: 750; font-size: .67rem; letter-spacing: .14em; }
.tabs { display: flex; gap: .1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.tabs button { flex: 1; background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 650; min-height: 3.2rem; padding: .5rem .3rem; }
.tabs button[aria-current] { border-bottom-color: var(--blue); color: var(--blue); }
main { padding-bottom: 2rem; }
.session-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; text-align: center; margin-bottom: 1rem; }
.session-bar .eyebrow { color: var(--blue); margin-bottom: .15rem; }
.session-bar h2 { font-size: clamp(.95rem, 4vw, 1.5rem); }
.cards { display: grid; gap: .85rem; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); padding: 1rem; border-radius: 1rem; min-width: 0; box-shadow: 0 3px 14px #10274408; }
.card .section-title { margin-bottom: .8rem; }
.card p + p { margin-top: .55rem; }
.muted, small { color: var(--muted); }
.quiet, .primary, .secondary, .icon, .name-chip {
  border-radius: .65rem; padding: .45rem .72rem; min-height: 2.6rem; font-weight: 650;
}
.quiet { color: white; background: transparent; border: 1px solid #ffffff60; }
.primary { color: white; background: var(--blue); border: 1px solid var(--blue); }
.secondary, .icon, .name-chip { color: var(--navy); background: #edf4fa; border: 1px solid var(--line); }
.icon { min-width: 2.65rem; line-height: 1; font-size: 1.4rem; }
.text-button { border: 0; background: transparent; color: var(--blue); text-decoration: underline; padding: .25rem 0; text-align: left; }
.return { display: block; margin: -.55rem auto 1rem; }
.count { display: flex; gap: .8rem; align-items: center; font-weight: 650; }
.count strong { font-size: 3rem; letter-spacing: -.06em; color: var(--blue); line-height: 1; }
progress { width: 100%; margin: .8rem 0 .5rem; accent-color: var(--blue); }
.rsvp-groups > div { padding: .7rem 0; border-top: 1px solid var(--line); }
.rsvp-groups h3 span { color: var(--muted); margin-left: .3rem; }
.names { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.name-chip { background: #eff5fc; font-size: .88rem; }
.pool-status, .details { margin: 0 0 .7rem; }
.pool-status div, .details div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); }
dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.scoreboard { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-bottom: .65rem; }
.team { padding: .65rem; border-radius: .65rem; text-align: center; border: 1px solid var(--line); }
.team strong { font-size: 2rem; }
.team button { display: block; margin: .1rem auto; }
.blue { background: #e3efff; }
.white { background: #f6f7fa; }
.member-list { padding: 0; margin: 0; list-style: none; }
.member-list li { border-top: 1px solid var(--line); }
.member-list button { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: .6rem; text-align: left; padding: .6rem 0; color: var(--ink); }
.member-list small { display: block; }
.member-list .tag { margin-left: auto; text-align: center; }
.tag { display: inline-block; font-size: .72rem; font-weight: 650; background: #edf4fa; padding: .2rem .5rem; border-radius: 1rem; }
.avatar { flex: none; width: 2.6rem; height: 2.6rem; background: #dbeafb; color: var(--navy); display: grid; place-items: center; border-radius: 50%; overflow: hidden; font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-profile { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.member-profile .avatar { width: 4.5rem; height: 4.5rem; }
.table-wrap { overflow-x: auto; margin: .55rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { padding: .5rem .35rem; border-bottom: 1px solid var(--line); text-align: center; }
th:first-child { text-align: left; }
.empty { padding: .8rem 0 0; }
dialog { width: min(34rem, 100% - 1.5rem); max-height: 90dvh; border: 1px solid var(--line); color: var(--ink); border-radius: 1rem; padding: 1rem; }
dialog::backdrop { background: #10274499; }
.dialog-title { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .75rem; }
form { display: grid; gap: .75rem; }
label { display: grid; gap: .24rem; font-weight: 600; }
input, textarea, select { background: white; color: var(--ink); border: 1px solid #aebed0; border-radius: .55rem; padding: .55rem; min-height: 2.6rem; min-width: 0; width: 100%; }
.section-title select { width: auto; }
.paired { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.paired label + label { margin-top: .55rem; }
.form-error { color: #a52026; }
.form-error:empty { display: none; }
#notice { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); background: var(--navy); color: white; padding: .65rem 1rem; border-radius: .6rem; z-index: 1; }
@media (min-width: 48rem) {
  .hero { padding-block: 2.5rem; }
  .cards { grid-template-columns: 1.12fr 1fr; }
  .attendance { grid-row: span 2; }
  .season { grid-column: 1 / -1; }
  .tabs button { flex: 0 1 11rem; }
  .card { padding: 1.2rem; }
}
