:root {
  color-scheme: light;
  --paper: #f4f4ed;
  --white: #fffefa;
  --ink: #1d2721;
  --muted: #788078;
  --line: #e6e9e1;
  --green: #143e2e;
  --green-dark: #0e2b21;
  --lime: #d8f36a;
  --mint: #e7f2df;
  --orange: #f2a273;
  --shadow: 0 12px 36px rgba(25, 44, 33, .055);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 14px; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.topbar { height: 76px; padding: 0 max(6.4vw, calc((100vw - 1180px) / 2)); display: flex; align-items: center; border-bottom: 1px solid rgba(33, 50, 38, .07); background: rgba(255,255,252,.78); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #193e2e; font-weight: 750; letter-spacing: -.9px; font-size: 21px; }
.brand-dot, .title-period { color: #a9c84d; }
.brand-mark { width: 25px; height: 25px; background: var(--green); border-radius: 7px; display: grid; grid-template: repeat(2,1fr)/repeat(2,1fr); gap: 3px; padding: 5px; transform: rotate(-4deg); }
.brand-mark span { border: 1px solid rgba(216,243,106,.9); border-radius: 2px; }
.main-nav { display: flex; gap: 32px; margin-left: 82px; height: 100%; align-items: center; }
.nav-link { color: #838b82; font-weight: 600; height: 100%; display: flex; align-items: center; position: relative; }
.nav-link.active { color: var(--green); }
.nav-link.active::after { position: absolute; content: ""; height: 2px; width: 18px; border-radius: 4px; background: #b3d251; left: 0; bottom: 0; }
.topbar-right { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.season-pill { border: 1px solid #e2e6dc; border-radius: 999px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; color: #667268; font-size: 11px; font-weight: 650; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #8db744; box-shadow: 0 0 0 3px #edf5dc; }
.icon-button { border: 1px solid #e2e6dc; background: transparent; border-radius: 11px; width: 38px; height: 38px; display: grid; place-items: center; color: #667268; }
.icon-button:hover { color: var(--green); background: #eef2e9; }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.page-shell { max-width: 1100px; margin: 0 auto; padding: 25px 28px 45px; }
.demo-note { min-height: 40px; padding: 9px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid #e7e6d5; border-radius: 9px; background: #fbf9e9; color: #817b58; font-size: 11px; line-height: 1.4; }
.demo-note strong { color: #5f5c43; }
.demo-note-icon { flex: 0 0 17px; height: 17px; width: 17px; border: 1px solid #c9c595; border-radius: 50%; display: grid; place-items: center; font-family: Georgia,serif; font-size: 11px; font-weight: 700; }
.demo-note-close { margin-left: auto; border: 1px solid #c9c595; border-radius: 7px; background: transparent; color: #5f5c43; font-size: 11px; font-weight: 600; padding: 5px 9px; cursor: pointer; white-space: nowrap; }
.demo-note.dismissed { display: none; }
.intro-row { display: flex; justify-content: space-between; align-items: end; padding: 40px 2px 22px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 8px; color: #7b887a; letter-spacing: 1.65px; font-size: 9px; font-weight: 760; }
.eyebrow-line { width: 20px; height: 2px; border-radius: 2px; background: #a9c84d; }
h1, h2, p { margin-top: 0; }
h1 { color: #1c2a20; font-size: clamp(34px, 4.2vw, 49px); line-height: 1.07; letter-spacing: -2.1px; margin: 12px 0 8px; font-weight: 680; }
.mobile-break { display: none; }
.intro-copy { color: #737e74; margin: 0; font-size: 13px; }
.button { min-height: 42px; border: 0; border-radius: 8px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: 12px; font-weight: 700; transition: transform .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.button-dark { background: #e7eae2; color: #435446; margin-bottom: 3px; }
.button-dark:hover { background: #dce2d5; }
.button-green { background: var(--green); color: white; }
.button-green:hover { background: #20583d; }
.button-lime { background: var(--lime); color: #20321e; min-width: 142px; margin-top: 24px; box-shadow: 0 6px 18px rgba(216,243,106,.13); }
.button-lime:hover { background: #e2f98b; }
.button-lime span { font-size: 17px; font-weight: 500; }
.match-card { min-height: 267px; background: linear-gradient(112deg, #173e2e 0%, #133929 54%, #0f3024 100%); border-radius: 14px; color: white; padding: 26px 32px; display: flex; position: relative; overflow: hidden; box-shadow: 0 16px 32px rgba(16,50,35,.12); }
.match-card-content { z-index: 2; position: relative; width: 62%; }
.match-card-topline { display: flex; justify-content: space-between; align-items: center; max-width: 495px; }
.live-tag { color: #e0efcf; display: inline-flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 750; letter-spacing: 1.3px; }
.live-tag span { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.week-tag { color: rgba(233,242,220,.49); font-size: 9px; letter-spacing: 1px; }
.match-date-block { display: flex; align-items: center; gap: 15px; margin-top: 24px; }
.date-square { width: 54px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; }
.date-square span { font-size: 8px; font-weight: 700; letter-spacing: 1.1px; color: #d3e0ce; }
.date-square strong { font-size: 23px; line-height: 1.2; font-weight: 650; }
.match-day { margin: 0 0 2px; color: #b2c5b3; font-size: 11px; font-weight: 500; }
.match-date-block h2 { font-size: 25px; letter-spacing: -.8px; margin: 0; font-weight: 650; }
.heading-dot { color: var(--lime); }
.match-meta { display: flex; align-items: center; gap: 13px; margin-top: 17px; color: #d4e2d5; font-size: 11px; }
.meta-item { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.meta-item svg { width: 15px; height: 15px; fill: none; stroke: #a9c854; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.meta-divider { height: 15px; width: 1px; background: rgba(255,255,255,.2); }
.pitch-art { z-index: 1; position: absolute; width: 41%; height: 100%; right: 0; top: 0; opacity: .82; }
.pitch-lines { position: absolute; top: 26px; bottom: 29px; right: 26px; left: 15px; border: 1px solid rgba(216,243,106,.29); border-radius: 3px; overflow: hidden; transform: perspective(550px) rotateY(-13deg) rotateX(3deg); }
.pitch-half { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid rgba(216,243,106,.28); }
.pitch-circle { position: absolute; border: 1px solid rgba(216,243,106,.3); width: 93px; height: 93px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.pitch-box { position: absolute; top: 25%; bottom: 25%; width: 18%; border: 1px solid rgba(216,243,106,.28); }
.pitch-box-left { left: 0; border-left: 0; }
.pitch-box-right { right: 0; border-right: 0; }
.pitch-ball { position: absolute; width: 7px; height: 7px; left: 59%; top: 35%; background: var(--lime); border-radius: 50%; box-shadow: 0 0 12px rgba(216,243,106,.8); }
.pitch-note { position: absolute; right: 23px; bottom: 52px; width: 78px; height: 78px; background: var(--lime); color: #183828; border-radius: 50%; transform: rotate(8deg); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; line-height: 1; box-shadow: 0 9px 20px rgba(0,0,0,.18); }
.pitch-note-mark { font-size: 36px; letter-spacing: -4px; margin-right: 3px; }
.pitch-bottom-label { position: absolute; right: 34px; bottom: 15px; color: rgba(229,241,217,.63); font-size: 8px; letter-spacing: 1.5px; font-weight: 700; }
.pitch-bottom-label span { color: var(--lime); margin-left: 7px; }
.grain { position: absolute; inset: 0; opacity: .085; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.squad-strip { min-height: 76px; background: var(--white); border: 1px solid #e8ebe4; border-radius: 11px; margin-top: 13px; display: flex; align-items: center; padding: 0 21px; gap: 15px; box-shadow: 0 5px 15px rgba(25,44,33,.025); }
.squad-number { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.squad-number strong { font-size: 24px; color: #1c3829; letter-spacing: -.8px; }
.squad-number span { font-size: 11px; color: #707c71; }
.squad-number b { color: #5f6c61; font-weight: 700; }
.capacity-track { appearance: none; -webkit-appearance: none; height: 5px; min-width: 70px; flex: 1; max-width: 155px; border: 0; background: #edf0e9; border-radius: 8px; overflow: hidden; }
.capacity-track::-webkit-progress-bar { background: #edf0e9; border-radius: 8px; }
.capacity-track::-webkit-progress-value { background: #99b943; border-radius: 8px; transition: width .35s ease; }
.capacity-track::-moz-progress-bar { background: #99b943; border-radius: 8px; }
.squad-faces { display: flex; align-items: center; padding-left: 4px; }
.squad-face { width: 27px; height: 27px; border: 2px solid white; border-radius: 50%; background: #e6eddb; color: #4a6349; display: grid; place-items: center; margin-left: -5px; font-size: 8px; font-weight: 750; }
.squad-face:nth-child(3n+2) { background: #f0e6d8; color: #886448; }
.squad-face:nth-child(3n) { background: #e0eaf0; color: #557286; }
.squad-face.more { background: #f1f2ed; color: #8a9189; width: 31px; }
.maybe-summary { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; color: #707c71; }
.maybe-dot { width: 7px; height: 7px; border-radius: 50%; background: #e5a36e; flex: 0 0 auto; }
.squad-divider { width: 1px; height: 26px; background: #e9ece5; }
.squad-status { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; color: #667368; }
.status-check { background: #e6f0da; color: #678b36; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(320px, .86fr); gap: 15px; margin-top: 19px; align-items: stretch; }
.panel { background: var(--white); border: 1px solid #e8ebe4; border-radius: 12px; box-shadow: var(--shadow); padding: 22px 23px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-heading .section-kicker { margin-bottom: 8px; }
.panel-heading h2, .app-dialog h2 { color: #24352a; font-size: 21px; letter-spacing: -.7px; font-weight: 680; margin: 0; }
.mini-count { border: 1px solid #e8ece4; background: #fafbf8; border-radius: 30px; padding: 6px 10px; font-size: 10px; color: #667368; white-space: nowrap; }
.rsvp-form { display: grid; grid-template-columns: minmax(95px,1fr) auto auto; gap: 8px; margin-top: 20px; }
.rsvp-form input, .dialog-form input { min-width: 0; border: 1px solid #e2e7df; background: #fff; border-radius: 7px; height: 40px; padding: 0 11px; color: var(--ink); outline: none; font-size: 11px; }
.rsvp-form input:focus, .dialog-form input:focus { border-color: #9ab64b; box-shadow: 0 0 0 3px rgba(169,200,77,.15); }
.rsvp-form input::placeholder, .dialog-form input::placeholder { color: #afb5ad; }
.status-select { display: flex; align-items: stretch; border: 1px solid #e3e7df; background: #f8f9f5; border-radius: 7px; padding: 3px; gap: 1px; }
.status-option { border: 0; background: transparent; color: #8b938b; font-size: 9px; font-weight: 700; padding: 0 8px; border-radius: 5px; display: flex; align-items: center; gap: 5px; }
.status-option.selected { background: white; color: #2f4733; box-shadow: 0 1px 4px rgba(25,44,33,.09); }
.option-dot { width: 6px; height: 6px; border-radius: 50%; }
.going-dot { background: #8bb449; }
.maybe-dot { background: #e5a36e; }
.out-dot { background: #aeb6af; }
.submit-rsvp { min-height: 40px; padding: 0 12px; gap: 8px; font-size: 10px; white-space: nowrap; }
.submit-rsvp span { font-size: 15px; font-weight: 400; }
.form-hint { margin: 8px 0 17px; font-size: 11px; line-height: 1.45; color: #737e74; }
.roster-header { display: flex; justify-content: space-between; padding: 0 2px 7px; border-bottom: 1px solid #eff1eb; color: #748074; font-size: 9px; letter-spacing: 1.1px; font-weight: 750; }
.roster-header div { display: flex; gap: 35px; }
.roster-copy-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eff1eb; }
.roster-copy-tools > span { color: #748074; font-size: 10px; }
.roster-copy-tools .button { min-height: 36px; padding: 0 12px; gap: 7px; font-size: 10px; }
.roster-copy-tools svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.roster-list { max-height: 380px; overflow: auto; scrollbar-width: thin; scrollbar-color: #e0e6dc transparent; }
.roster-row { min-height: 43px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #f1f2ee; }
.roster-avatar { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #4b6549; background: #eaf0e2; font-size: 8px; font-weight: 800; flex: 0 0 auto; }
.roster-row:nth-child(3n+2) .roster-avatar { color: #876447; background: #f4eadf; }
.roster-row:nth-child(3n) .roster-avatar { color: #526f7b; background: #e3edf0; }
.roster-name { font-size: 11px; color: #435046; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-status { min-width: 58px; display: flex; align-items: center; gap: 6px; font-size: 10px; color: #68766a; }
.roster-status .option-dot { width: 6px; height: 6px; }
.remove-rsvp { width: 25px; height: 25px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #b1b8af; font-size: 15px; opacity: .6; }
.remove-rsvp:hover { background: #fff0ed; color: #b65d50; opacity: 1; }
.roster-empty, .permit-empty { padding: 20px 8px; text-align: center; color: #929c91; font-size: 11px; }
.hidden { display: none !important; }
.panel-footnote { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 10px; color: #748074; }
.footnote-star { color: #adc94f; font-size: 14px; }
.permits-panel { padding: 22px 23px 20px; display: flex; flex-direction: column; }
.permit-heading { align-items: start; }
.permits-panel.is-empty { align-self: start; }
.permit-list { display: flex; flex-direction: column; gap: 8px; }
.permit-card { position: relative; border: 1px solid #e9ece5; border-radius: 9px; padding: 11px 11px 10px 46px; display: flex; align-items: center; min-height: 66px; gap: 10px; }
.permit-icon { position: absolute; left: 12px; top: 13px; width: 25px; height: 25px; display: grid; place-items: center; background: #f1f4e7; border-radius: 7px; color: #8eaa4a; }
.permit-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.permit-copy { min-width: 0; flex: 1; }
.permit-title { margin: 0 0 4px; font-size: 11px; font-weight: 700; color: #3f4f42; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.permit-subtitle { margin: 0; font-size: 10px; color: #707c71; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.permit-countdown { text-align: right; white-space: nowrap; min-width: 52px; }
.permit-countdown strong { display: block; color: #778b50; font-size: 11px; letter-spacing: -.2px; }
.permit-countdown.overdue strong { color: #b45d4f; }
.permit-countdown span { color: #707c71; font-size: 10px; }
.permit-actions { position: absolute; right: 8px; top: 7px; display: flex; gap: 3px; opacity: 0; transition: opacity .15s ease; }
.permit-card:hover .permit-actions, .permit-card:focus-within .permit-actions { opacity: 1; }
.permit-action { width: 28px; height: 28px; border: 0; background: white; border-radius: 5px; color: #68766a; font-size: 13px; display: grid; place-items: center; }
.permit-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.permit-action:hover { color: #38553d; background: #f1f4eb; }
.permit-action.delete:hover { color: #ad5547; background: #fff0ed; }
.permit-add-link { display: inline-flex; align-items: center; align-self: start; gap: 7px; background: transparent; border: 0; padding: 10px 0; margin-top: 5px; color: #526b45; font-size: 11px; font-weight: 700; }
.permit-add-link:hover { color: #274d34; }
.permit-add-link span { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #d7e1ca; border-radius: 50%; font-size: 13px; line-height: 1; }
.permits-panel.is-empty .permit-empty { padding: 16px 0 0; text-align: left; color: #617064; font-size: 13px; line-height: 1.5; }
.permits-panel.is-empty .permit-add-link { min-height: 42px; padding: 0 14px; margin-top: 12px; background: var(--green); border-radius: 8px; color: #fffefa; font-size: 12px; }
.permits-panel.is-empty .permit-add-link:hover { background: var(--green-dark); color: #fffefa; }
.permits-panel.is-empty .permit-add-link span { border-color: rgba(255,255,255,.6); color: #fffefa; }
.permit-reminder-note { margin-top: auto; border-top: 1px solid #eef0eb; padding-top: 12px; display: flex; gap: 8px; align-items: center; color: #6f7b70; font-size: 11px; line-height: 1.4; }
.reminder-icon { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: #eff3e8; color: #627e3c; display: grid; place-items: center; }
.reminder-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.page-footer { margin-top: 22px; padding: 0 2px; display: flex; align-items: center; gap: 12px; color: #a2a89e; font-size: 9px; }
.footer-brand { display: flex; align-items: center; gap: 5px; color: #4e6251; font-size: 12px; font-weight: 750; letter-spacing: -.4px; }
.brand-mark.small { width: 17px; height: 17px; border-radius: 5px; gap: 2px; padding: 3px; }
.footer-week { margin-left: auto; color: #a6aca3; letter-spacing: .5px; }
.app-dialog { width: min(430px, calc(100% - 28px)); max-height: min(92vh, 760px); overflow: auto; border: 1px solid #e7ebe2; border-radius: 14px; padding: 26px; background: #fffefa; color: var(--ink); box-shadow: 0 25px 80px rgba(17,39,27,.25); }
.app-dialog::backdrop { background: rgba(15,31,22,.47); backdrop-filter: blur(3px); }
.dialog-close-row { display: flex; justify-content: end; margin: -10px -10px 15px; }
.dialog-close { width: 29px; height: 29px; border: 1px solid #e8ece4; background: #fafbf7; border-radius: 8px; color: #879186; font-size: 19px; line-height: 1; }
.app-dialog .section-kicker { margin-bottom: 8px; }
.dialog-copy { color: #899389; font-size: 11px; line-height: 1.55; margin: 8px 0 20px; }
.dialog-form { display: flex; flex-direction: column; gap: 8px; }
.dialog-form label { color: #59675a; font-size: 10px; font-weight: 700; margin-top: 4px; }
.dialog-form label span { font-weight: 450; color: #a0a79e; }
.dialog-form input { width: 100%; height: 42px; font-size: 11px; }
.dialog-form .button { margin-top: 9px; min-height: 43px; }
.settings-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings-two-col > div { display: flex; flex-direction: column; gap: 8px; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 25px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: #173b2b; color: white; padding: 11px 16px; border-radius: 9px; box-shadow: 0 8px 28px rgba(17,39,27,.2); font-size: 11px; transition: opacity .2s ease, transform .2s ease; max-width: calc(100% - 28px); text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.toast-error { background: #7a342a; }
.button:disabled { opacity: .65; cursor: wait; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 840px) {
  .topbar { padding: 0 25px; }
  .page-shell { padding: 22px 24px 35px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .permits-panel { min-height: 315px; }
  .permit-reminder-note { margin-top: 10px; }
  .pitch-art { width: 38%; }
  .match-card-content { width: 70%; }
  .squad-strip { gap: 11px; padding: 0 15px; }
  .capacity-track { max-width: 110px; }
  .squad-status { display: none; }
  .squad-divider { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 13px; }
  .topbar { height: 62px; padding: 0 17px; }
  .brand { font-size: 19px; }
  .main-nav { margin-left: 22px; gap: 16px; font-size: 10px; }
  .season-pill { display: none; }
  .topbar-right { gap: 0; }
  .icon-button { width: 34px; height: 34px; }
  .page-shell { padding: 15px 14px 30px; }
  .demo-note { padding: 9px; gap: 7px; font-size: 11px; }
  .intro-row { display: block; padding: 29px 1px 16px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  h1 { margin: 10px 0 7px; font-size: 35px; letter-spacing: -1.8px; }
  .mobile-break { display: initial; }
  .intro-copy { font-size: 12px; max-width: 300px; line-height: 1.5; }
  .intro-row .intro-actions { margin-top: 12px; justify-content: flex-start; }
  .intro-actions .edit-match-trigger { display: none; }
  .intro-actions .post-notice-trigger { min-height: 38px; padding: 8px 12px; font-size: 11px; }
  .match-card { min-height: 253px; padding: 20px 18px; border-radius: 12px; }
  .match-card-content { width: 100%; }
  .match-card-topline { max-width: 100%; }
  .week-tag { font-size: 9px; }
  .match-date-block { margin-top: 23px; gap: 11px; }
  .date-square { width: 48px; height: 53px; }
  .match-date-block h2 { font-size: 21px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .match-day { font-size: 11px; }
  .match-meta { gap: 9px; font-size: 10px; margin-top: 15px; flex-wrap: wrap; max-width: 100%; }
  .meta-item { gap: 5px; }
  .meta-item svg { width: 13px; height: 13px; }
  .button-lime { min-height: 38px; margin-top: 19px; font-size: 10px; min-width: 126px; }
  .pitch-art { width: 34%; opacity: .6; }
  .pitch-lines { top: 42px; bottom: 54px; left: 0; right: -18px; }
  .pitch-circle { width: 56px; height: 56px; }
  .pitch-note { width: 56px; height: 56px; right: 10px; bottom: 44px; font-size: 8px; }
  .pitch-note-mark { font-size: 27px; }
  .pitch-bottom-label { display: none; }
  .squad-strip { padding: 11px 12px; min-height: 62px; display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; }
  .squad-number { grid-column: 1; grid-row: 1; gap: 5px; }
  .squad-number strong { font-size: 20px; }
  .squad-number span { font-size: 10px; }
  .capacity-track { grid-column: 2; grid-row: 1; min-width: 32px; width: 100%; }
  .squad-faces { grid-column: 3; grid-row: 1; justify-content: end; }
  .squad-face { width: 25px; height: 25px; font-size: 7px; }
  .squad-face.more { width: 27px; }
  .maybe-summary { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid #f0f1ec; padding-top: 7px; font-size: 10px; }
  .content-grid { margin-top: 12px; gap: 12px; }
  .panel { padding: 19px 15px; border-radius: 11px; }
  .panel-heading h2 { font-size: 19px; }
  .panel-heading .section-kicker { font-size: 9px; }
  .rsvp-form { grid-template-columns: minmax(0,1fr) auto; gap: 7px; margin-top: 16px; }
  .rsvp-form input { grid-column: 1 / -1; height: 42px; }
  .status-select { height: 38px; }
  .status-option { padding: 0 7px; }
  .submit-rsvp { min-height: 38px; }
  .form-hint { font-size: 11px; margin-bottom: 14px; }
  .roster-list { max-height: 380px; }
  .roster-copy-tools { align-items: flex-start; flex-direction: column; gap: 8px; }
  .remove-rsvp { opacity: .9; }
  .permit-actions { opacity: 1; }
  .permits-panel { min-height: 0; }
  .permit-reminder-note { font-size: 11px; }
  .page-footer { gap: 7px; font-size: 8px; margin-top: 17px; }
  .footer-week { font-size: 7px; }
  .app-dialog { padding: 21px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.roster-row.is-sample { opacity: .55; font-style: italic; }
.recent-games { margin: 14px 0 0; font-size: 11px; color: var(--muted); }
.button-link-danger { border: 0; background: transparent; color: #7a342a; font-size: 12px; text-decoration: underline; cursor: pointer; padding: 8px 0 0; text-align: left; }
@media (max-width: 560px) { .demo-note { flex-wrap: wrap; } .demo-note-close { margin-left: 0; } }

/* Permits tab: the match, squad strip and roll call give way to the permit list */
body.view-permits .intro-row, body.view-permits .match-card, body.view-permits .squad-strip, body.view-permits .rsvp-panel { display: none; }
body.view-permits .content-grid { grid-template-columns: 1fr; }
body.view-permits .permits-panel { min-height: 420px; }
body.view-permits .permits-panel.is-empty { min-height: 0; }

.pitch-dots { position: absolute; inset: 0; }
.pitch-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fffefa; box-shadow: 0 0 0 2px rgba(14,43,33,.55), 0 0 10px rgba(255,254,250,.55); transition: left .4s ease, top .4s ease; }
.pitch-dot.team-1 { background: var(--orange); box-shadow: 0 0 0 2px rgba(14,43,33,.55), 0 0 10px rgba(242,162,115,.6); }
.pitch-dot.pop { animation: dot-pop .7s ease-out; }
@keyframes dot-pop { 0% { transform: scale(0); opacity: 0; } 55% { transform: scale(2.3); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pitch-dot.pop { animation: none; } }

.roster-actions { display: inline-flex; align-items: center; gap: 6px; justify-self: end; min-width: 25px; }
.lock-button { border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--green); font-size: 10px; font-weight: 700; padding: 4px 9px; cursor: pointer; }
.lock-button:hover { background: var(--mint); }
.locked-pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: var(--mint); color: var(--green); font-size: 10px; font-weight: 700; padding: 4px 9px; white-space: nowrap; }
.locked-pill svg { width: 12px; height: 12px; flex: 0 0 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---- update banner ---- */
.notice-banner { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; background: #fbf4d6; border: 1px solid #ecd98a; color: #5c4a05; font-size: 13px; font-weight: 600; line-height: 1.4; }
.notice-banner.is-cancelled { background: #fbe4df; border-color: #e5a79d; color: #7a2a1d; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.button-quiet { border: 1px solid var(--line); background: var(--white); color: var(--green); border-radius: 9px; padding: 10px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.button-quiet:hover { background: var(--mint); }

/* ---- match card ---- */
.map-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.map-link:hover { text-decoration-color: currentColor; }
.match-notes { margin: 12px 0 0; max-width: 46ch; font-size: 12px; line-height: 1.5; color: rgba(231,242,223,.82); }
.match-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.button-ghost { border: 1px solid rgba(231,242,223,.35); background: transparent; color: #e7f2df; border-radius: 9px; padding: 10px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.button-ghost:hover { background: rgba(231,242,223,.1); }
#join-hero:disabled { opacity: .6; cursor: not-allowed; }

/* ---- join box: one name, one tap ---- */
.join { display: grid; gap: 10px; margin: 6px 0 12px; }
.join-label { font-size: 11px; font-weight: 700; letter-spacing: .6px; color: var(--muted); text-transform: uppercase; }
.join input { height: 50px; font-size: 16px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); color: var(--ink); width: 100%; box-sizing: border-box; }
.join input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.join input:read-only { background: #f3f6f2; }
.join-hint { margin: -5px 0 0; font-size: 11px; line-height: 1.4; color: var(--muted); }
.join-actions { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.join-btn { height: 52px; border-radius: 11px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.join-btn:hover:not(:disabled) { background: var(--mint); }
.join-btn.join-in { background: var(--green); color: #fff; border-color: var(--green); font-size: 16px; }
.join-btn.join-in:hover:not(:disabled) { background: var(--green-dark); }
.join-btn.selected { box-shadow: 0 0 0 3px rgba(216,243,106,.9); }
.join-btn:disabled { opacity: .45; cursor: not-allowed; }
.join-status { position: relative; margin: 0 0 10px; padding: 12px 14px; border-radius: 11px; background: var(--mint); color: var(--green); font-size: 13px; line-height: 1.45; }
.celebrate-canvas { position: fixed; z-index: 30; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }
.celebrate-badge { position: fixed; z-index: 31; top: max(84px, 13vh); left: 50%; width: max-content; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 14px 22px 14px 14px; border-radius: 18px; background: var(--celebrate-bg, #143e2e); color: var(--celebrate-ink, #f7fbe9); box-shadow: 0 18px 50px rgba(14, 43, 33, .38), 0 0 0 1px rgba(255, 255, 255, .08) inset; cursor: pointer; transform: translate(-50%, 0); animation: celebrate-in .55s cubic-bezier(.2, 1.35, .35, 1) both; }
.celebrate-badge.is-leaving { animation: celebrate-out .26s ease-in both; }
.celebrate-badge.is-still { animation: none; }
.celebrate-check { flex: 0 0 52px; width: 52px; height: 52px; }
.celebrate-check svg { width: 100%; height: 100%; display: block; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.celebrate-ring { stroke: var(--celebrate-accent, #d8f36a); stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; animation: celebrate-draw .6s .1s ease-out forwards; }
.celebrate-tick { stroke: var(--celebrate-accent, #d8f36a); stroke-width: 4.5; stroke-dasharray: 40; stroke-dashoffset: 40; animation: celebrate-draw .4s .5s ease-out forwards; }
.is-still .celebrate-ring, .is-still .celebrate-tick { animation: none; stroke-dashoffset: 0; }
.celebrate-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.celebrate-text strong { font-size: clamp(18px, 4.6vw, 23px); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.celebrate-text span { font-size: 13px; line-height: 1.35; opacity: .8; }
@keyframes celebrate-in { from { opacity: 0; transform: translate(-50%, 26px) scale(.86); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes celebrate-out { to { opacity: 0; transform: translate(-50%, -14px) scale(.96); } }
@keyframes celebrate-draw { to { stroke-dashoffset: 0; } }
.join-line { margin: 0; font-weight: 600; }
.join-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.join-chip { border: 1px solid rgba(20,62,46,.25); background: var(--white); color: var(--green); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.join-chip:hover { background: #fff; border-color: var(--green); }
@media (max-width: 560px) { .join-actions { grid-template-columns: 1fr 1fr; } .join-btn.join-in { grid-column: 1 / -1; height: 58px; } }

/* ---- teams ---- */
.teams-panel { margin-top: 15px; }
.teams-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.team h3 { margin: 0 0 8px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.team ol { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.8; }
.team li.is-me { font-weight: 800; color: var(--green); }
.pitch-dot-sample { width: 11px; height: 11px; border-radius: 50%; background: #fffefa; box-shadow: 0 0 0 2px var(--green); display: inline-block; }
.pitch-dot-sample.orange { background: var(--orange); }
@media (max-width: 560px) { .teams-grid { grid-template-columns: 1fr; } }
body.view-permits .teams-panel { display: none; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.check-row input { width: auto; height: auto; }

/* ---- dark theme ---- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --celebrate-bg: #1f3a2b;
  --celebrate-ink: #f2f7ea;
  --celebrate-accent: #d8f36a;
  --paper: #111813;
  --white: #1b241e;
  --ink: #e7eee9;
  --muted: #a5b0a7;
  --line: #354138;
  --green: #b4d06b;
  --green-dark: #26382b;
  --mint: #27362b;
  --shadow: 0 12px 36px rgba(0, 0, 0, .2);
}
:root[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
:root[data-theme="dark"] .topbar { background: rgba(22, 30, 24, .94); border-color: #2e3a31; }
:root[data-theme="dark"] .brand { color: #e7eee9; }
:root[data-theme="dark"] .nav-link { color: #a1ada3; }
:root[data-theme="dark"] .season-pill,
:root[data-theme="dark"] .icon-button { border-color: var(--line); color: #bdc9be; }
:root[data-theme="dark"] .icon-button:hover { background: #29372d; color: var(--green); }
:root[data-theme="dark"] .demo-note { background: #292916; border-color: #514b2c; color: #d0c997; }
:root[data-theme="dark"] .demo-note strong,
:root[data-theme="dark"] .demo-note-close { color: #eee4b7; }
:root[data-theme="dark"] .demo-note-icon,
:root[data-theme="dark"] .demo-note-close { border-color: #756d43; }
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .section-kicker { color: #a4b29f; }
:root[data-theme="dark"] h1,
:root[data-theme="dark"] .panel-heading h2,
:root[data-theme="dark"] .app-dialog h2 { color: #e6eee7; }
:root[data-theme="dark"] .intro-copy,
:root[data-theme="dark"] .form-hint { color: #a1ada3; }
:root[data-theme="dark"] .button-dark { background: #2b382e; color: #d3dfd3; }
:root[data-theme="dark"] .button-dark:hover { background: #354438; }
:root[data-theme="dark"] .button-quiet { background: var(--white); color: var(--green); }
:root[data-theme="dark"] .button-quiet:hover { background: var(--mint); }
:root[data-theme="dark"] .button-green,
:root[data-theme="dark"] .join-btn.join-in { background: #31563b; border-color: #466d4c; color: #f4f8f2; }
:root[data-theme="dark"] .button-green:hover,
:root[data-theme="dark"] .join-btn.join-in:hover:not(:disabled) { background: #3b6746; }
:root[data-theme="dark"] .button-lime { color: #22301b; }
:root[data-theme="dark"] .squad-strip,
:root[data-theme="dark"] .panel { background: var(--white); border-color: #303c33; }
:root[data-theme="dark"] .squad-number strong { color: #dfe9dd; }
:root[data-theme="dark"] .squad-number span,
:root[data-theme="dark"] .squad-number b,
:root[data-theme="dark"] .maybe-summary,
:root[data-theme="dark"] .squad-status { color: #b1beb3; }
:root[data-theme="dark"] .capacity-track,
:root[data-theme="dark"] .capacity-track::-webkit-progress-bar { background: #354238; }
:root[data-theme="dark"] .squad-face { border-color: var(--white); background: #314332; color: #cfdfbd; }
:root[data-theme="dark"] .squad-face:nth-child(3n+2) { background: #45372b; color: #e1c2a0; }
:root[data-theme="dark"] .squad-face:nth-child(3n) { background: #2d3e46; color: #bed4df; }
:root[data-theme="dark"] .squad-face.more { background: #303932; color: #c0c9c0; }
:root[data-theme="dark"] .squad-divider { background: #354238; }
:root[data-theme="dark"] .status-check { background: #30412d; color: #b4d06b; }
:root[data-theme="dark"] .mini-count { background: #222d25; border-color: #354138; color: #bdc9be; }
:root[data-theme="dark"] .rsvp-form input,
:root[data-theme="dark"] .dialog-form input,
:root[data-theme="dark"] .join input { background: #131b16; border-color: #3b4940; color: var(--ink); }
:root[data-theme="dark"] .rsvp-form input:read-only,
:root[data-theme="dark"] .join input:read-only { background: #202b23; }
:root[data-theme="dark"] .rsvp-form input::placeholder,
:root[data-theme="dark"] .dialog-form input::placeholder { color: #829087; }
:root[data-theme="dark"] .status-select { background: #202a23; border-color: #3a463d; }
:root[data-theme="dark"] .status-option { color: #a6b1a8; }
:root[data-theme="dark"] .status-option.selected { background: #3a493d; color: #e1ebdf; }
:root[data-theme="dark"] .roster-header { border-color: #303b33; color: #a7b2a8; }
:root[data-theme="dark"] .roster-copy-tools { border-color: #303b33; }
:root[data-theme="dark"] .roster-copy-tools > span { color: #aab6ab; }
:root[data-theme="dark"] .roster-list { scrollbar-color: #475449 transparent; }
:root[data-theme="dark"] .roster-row { border-color: #2c372f; }
:root[data-theme="dark"] .roster-avatar { background: #304132; color: #c6daba; }
:root[data-theme="dark"] .roster-row:nth-child(3n+2) .roster-avatar { background: #43362a; color: #e0c09d; }
:root[data-theme="dark"] .roster-row:nth-child(3n) .roster-avatar { background: #2c3d45; color: #bfd5df; }
:root[data-theme="dark"] .roster-name { color: #d5ded6; }
:root[data-theme="dark"] .roster-status,
:root[data-theme="dark"] .panel-footnote { color: #aab6ab; }
:root[data-theme="dark"] .remove-rsvp { color: #a4afa5; }
:root[data-theme="dark"] .remove-rsvp:hover,
:root[data-theme="dark"] .permit-action.delete:hover { background: #442b28; color: #f09b89; }
:root[data-theme="dark"] .roster-empty,
:root[data-theme="dark"] .permit-empty { color: #a0aca2; }
:root[data-theme="dark"] .permit-card { border-color: #354138; }
:root[data-theme="dark"] .permit-icon { background: #2b382a; color: #b4d06b; }
:root[data-theme="dark"] .permit-title { color: #dce6dc; }
:root[data-theme="dark"] .permit-subtitle,
:root[data-theme="dark"] .permit-countdown span { color: #a6b2a8; }
:root[data-theme="dark"] .permit-countdown strong { color: #bed57d; }
:root[data-theme="dark"] .permit-action { background: #273229; color: #d0dbd1; }
:root[data-theme="dark"] .permit-action:hover { background: #354538; color: #d9e8d6; }
:root[data-theme="dark"] .permit-add-link { color: #bfd58a; }
:root[data-theme="dark"] .permit-add-link:hover { color: #d2e8a0; }
:root[data-theme="dark"] .permit-add-link span { border-color: #4c6043; }
:root[data-theme="dark"] .permits-panel.is-empty .permit-empty { color: #c0cbc0; }
:root[data-theme="dark"] .permits-panel.is-empty .permit-add-link { background: #31563b; }
:root[data-theme="dark"] .permits-panel.is-empty .permit-add-link:hover { background: #3b6746; }
:root[data-theme="dark"] .permit-reminder-note { border-color: #354138; color: #aebaae; }
:root[data-theme="dark"] .reminder-icon { background: #2e3b2d; color: #c0d88c; }
:root[data-theme="dark"] .page-footer,
:root[data-theme="dark"] .footer-week { color: #818d83; }
:root[data-theme="dark"] .footer-brand { color: #bfcebf; }
:root[data-theme="dark"] .app-dialog { background: #1b241e; border-color: #3a463d; color: var(--ink); }
:root[data-theme="dark"] .dialog-close { background: #263128; border-color: #3a463d; color: #bdc8bd; }
:root[data-theme="dark"] .dialog-copy { color: #a3afa5; }
:root[data-theme="dark"] .dialog-form label { color: #c6d0c7; }
:root[data-theme="dark"] .dialog-form label span { color: #8f9b91; }
:root[data-theme="dark"] .button-link-danger { color: #f09b89; }
:root[data-theme="dark"] .join input:focus { outline-color: #b4d06b; }
:root[data-theme="dark"] .join-btn { background: #222d25; color: #dce5dd; }
:root[data-theme="dark"] .join-btn:hover:not(:disabled) { background: #2c3b30; }
:root[data-theme="dark"] .join-status { background: #27362b; color: #c8dca2; }
:root[data-theme="dark"] .join-chip { border-color: #536449; color: #c1d894; }
:root[data-theme="dark"] .join-chip:hover { background: #2c392d; border-color: #91ad5f; }
:root[data-theme="dark"] .team li.is-me { color: #c1d894; }
:root[data-theme="dark"] .lock-button { color: #d1e3a5; }
:root[data-theme="dark"] .lock-button:hover { background: #30402f; }
:root[data-theme="dark"] .locked-pill { background: #30402f; color: #d1e3a5; }
:root[data-theme="dark"] .notice-banner { background: #38321e; border-color: #625631; color: #eadb9f; }
:root[data-theme="dark"] .notice-banner.is-cancelled { background: #402a27; border-color: #70433a; color: #f0b4a6; }
:root[data-theme="dark"] .toast { background: #24432f; }
:root[data-theme="dark"] .toast.toast-error { background: #713a32; }
:root[data-theme="dark"] .pitch-dot { box-shadow: 0 0 0 2px rgba(14,43,33,.85), 0 0 10px rgba(255,254,250,.4); }
:root[data-theme="dark"] .pitch-dot-sample { background: #e7eee9; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root:not([data-theme="dark"]) .theme-icon-sun { display: none; }
:root:not([data-theme="dark"]) .theme-icon-moon { display: block; }
:root[data-theme="dark"] button:focus-visible,
:root[data-theme="dark"] a:focus-visible,
:root[data-theme="dark"] input:focus-visible { outline: 2px solid #b4d06b; outline-offset: 2px; }

.demo-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fbf4d6; border: 1px solid #ecd98a; color: #5c4a05; font-size: 12px; line-height: 1.4; }
.demo-banner a { color: inherit; font-weight: 700; }
:root[data-theme="dark"] .demo-banner { background: #292916; border-color: #514b2c; color: #e5dca9; }

/* Club code and Cornell email fields (shown only when the server asks for them) */
.join-extra { display: grid; gap: 6px; margin-top: 6px; }
.roster-copy-tools > div, .roster-copy-tools { flex-wrap: wrap; }

/* Organizer sign-ups list */
.signup-list { display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; margin-top: 4px; }
.signup-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; }
.signup-who { display: grid; gap: 2px; min-width: 0; }
.signup-who strong { font-size: 14px; }
.signup-email { font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
.signup-when { font-size: 11px; color: var(--muted); }
.signup-row .button-quiet { flex: none; padding: 8px 12px; }
